ant-design-x-vue 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +3745 -3745
- package/dist/index.esm.min.js +2 -2
- package/dist/index.umd.js +20 -20
- package/es/attachments/FileList/FileList.mjs +46 -48
- package/es/bubble/BubbleList.mjs +78 -80
- package/es/suggestion/Suggestion.mjs +42 -38
- package/lib/attachments/FileList/FileList.js +1 -1
- package/lib/bubble/BubbleList.js +1 -1
- package/lib/suggestion/Suggestion.js +1 -1
- package/package.json +2 -1
- package/typings/use-x-agent/use-x-agent.d.ts +1 -1
package/dist/index.esm.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=(t,n,o)=>((t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o)(t,"symbol"!=typeof n?n+"":n,o);import{computed as n,inject as o,provide as r,defineComponent as l,watch as i,unref as a,shallowRef as s,triggerRef as u,Fragment as c,isVNode as d,Comment as p,Text as f,reactive as v,getCurrentInstance as m,onMounted as h,onUpdated as g,onUnmounted as y,ref as b,watchEffect as w,onBeforeUnmount as x,createVNode as $,h as C,Transition as S,withDirectives as O,resolveDirective as k,cloneVNode as P,nextTick as I,toRef as E,withModifiers as j,vShow as A,onBeforeMount as M,Teleport as T,createTextVNode as z,isRef as D,toRefs as R,toRaw as B,render as N,onBeforeUpdate as F,TransitionGroup as H,createApp as L,useSlots as _,mergeProps as W,onWatcherCleanup as V,toValue as X,mergeDefaults as K,useAttrs as q,watchPostEffect as G,renderList as U,withMemo as Y,getCurrentScope as Z,onScopeDispose as Q,useTemplateRef as J,createElementBlock as ee,openBlock as te,createElementVNode as ne,useId as oe}from"vue";const re=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},le=e=>{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function ie(){return{type:[Function,Array]}}function ae(e){return{type:Object,default:e}}function se(e){return{type:Boolean,default:e}}function ue(e){return{type:Function,default:e}}function ce(e,t){return{validator:()=>!0,default:e}}function de(e){return{type:Array,default:e}}function pe(e){return{type:String,default:e}}function fe(e,t){return e?{type:e,default:t}:ce(t)}const ve="anticon",me=Symbol("GlobalFormContextKey"),he=Symbol("configProvider"),ge={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:n((()=>ve)),getPopupContainer:n((()=>()=>document.body)),direction:n((()=>"ltr"))},ye=()=>o(he,ge),be="ant";function we(){const{getPrefixCls:e,direction:t,csp:n,iconPrefixCls:o,theme:r}=ye();return{theme:r,getPrefixCls:e,direction:t,csp:n,iconPrefixCls:o}}function xe(e,t){const n=Object.create(null);for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function $e(e){return{type:Object,default:e}}function Ce(e){return{type:Boolean,default:e}}function Se(e){return{type:Array,default:e}}function Oe(e){return{type:String,default:e}}function ke(e,t){return e?{type:e,default:t}:function(e){return{validator:()=>!0,default:e}}(t)}const Pe=Symbol("XProviderContext"),Ie=s(),Ee=l({props:{value:$e()},setup:(e,{slots:t})=>((e=>{r(Pe,e),i(e,(()=>{Ie.value=a(e),u(Ie)}),{immediate:!0,deep:!0})})(n((()=>e.value))),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})});function je(e){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ae(e){var t=function(e,t){if("object"!=je(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=je(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==je(t)?t:t+""}function Me(e,t,n){return(t=Ae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){Me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function De(){return De=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},De.apply(null,arguments)}const Re=Array.isArray,Be=e=>"string"==typeof e,Ne=e=>null!==e&&"object"==typeof e,Fe=/^on[^a-z]/,He=e=>Fe.test(e),Le=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},_e=/-(\w)/g,We=Le((e=>e.replace(_e,((e,t)=>t?t.toUpperCase():"")))),Ve=/\B([A-Z])/g,Xe=Le((e=>e.replace(Ve,"-$1").toLowerCase())),Ke=Object.prototype.hasOwnProperty,qe=(e,t)=>Ke.call(e,t);function Ge(e){let t=arguments.length>2?arguments[2]:void 0;return"function"==typeof e?e(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}):e??t}function Ue(){const e=[];for(let t=0;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];if(n)if(Be(n))e.push(n);else if(Re(n))for(let t=0;t<n.length;t++){const o=Ue(n[t]);o&&e.push(o)}else if(Ne(n))for(const t in n)n[t]&&e.push(t)}return e.join(" ")}var Ye=function(){if(typeof Map<"u")return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),Ze=typeof window<"u"&&typeof document<"u"&&window.document===document,Qe=typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),Je="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Qe):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var et=["top","right","bottom","left","width","height","size","weight"],tt=typeof MutationObserver<"u",nt=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function l(){n&&(n=!1,e()),o&&a()}function i(){Je(l)}function a(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(i,t);r=e}return a}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){!Ze||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),tt?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Ze||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;et.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),ot=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},rt=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Qe},lt=dt(0,0,0,0);function it(e){return parseFloat(e)||0}function at(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+it(e["border-"+n+"-width"])}),0)}function st(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return lt;var o=rt(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],l=e["padding-"+r];t[r]=it(l)}return t}(o),l=r.left+r.right,i=r.top+r.bottom,a=it(o.width),s=it(o.height);if("border-box"===o.boxSizing&&(Math.round(a+l)!==t&&(a-=at(o,"left","right")+l),Math.round(s+i)!==n&&(s-=at(o,"top","bottom")+i)),!function(e){return e===rt(e).document.documentElement}(e)){var u=Math.round(a+l)-t,c=Math.round(s+i)-n;1!==Math.abs(u)&&(a-=u),1!==Math.abs(c)&&(s-=c)}return dt(r.left,r.top,a,s)}var ut=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof rt(e).SVGGraphicsElement}:function(e){return e instanceof rt(e).SVGElement&&"function"==typeof e.getBBox}}();function ct(e){return Ze?ut(e)?function(e){var t=e.getBBox();return dt(0,0,t.width,t.height)}(e):st(e):lt}function dt(e,t,n,o){return{x:e,y:t,width:n,height:o}}var pt=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=dt(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ct(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),ft=function(){return function(e,t){var n=function(e){var t=e.x,n=e.y,o=e.width,r=e.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(l.prototype);return ot(i,{x:t,y:n,width:o,height:r,top:n,right:t+o,bottom:r+n,left:t}),i}(t);ot(this,{target:e,contentRect:n})}}(),vt=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Ye,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(e instanceof rt(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new pt(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(e instanceof rt(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new ft(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),mt=typeof WeakMap<"u"?new WeakMap:new Ye,ht=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=nt.getInstance(),o=new vt(t,n,this);mt.set(this,o)}}();["observe","unobserve","disconnect"].forEach((function(e){ht.prototype[e]=function(){var t;return(t=mt.get(this))[e].apply(t,arguments)}}));var gt=typeof Qe.ResizeObserver<"u"?Qe.ResizeObserver:ht;const yt=e=>null!=e&&""!==e,bt=(e,t)=>{const n=De({},e);return Object.keys(t).forEach((e=>{const o=n[e];if(!o)throw new Error(`not have ${e} prop`);o.type||o.default?o.default=t[e]:o.def?o.def(t[e]):n[e]={type:o,default:t[e]}})),n},wt=Symbol("skipFlatten"),xt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=Array.isArray(e)?e:[e],o=[];return n.forEach((e=>{Array.isArray(e)?o.push(...xt(e,t)):e&&e.type===c?e.key===wt?o.push(e):o.push(...xt(e.children,t)):e&&d(e)?t&&!kt(e)?o.push(e):t||o.push(e):yt(e)&&o.push(e)})),o},$t=e=>{var t;let n=(null===(t=null==e?void 0:e.vnode)||void 0===t?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n},Ct=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach((o=>{const r=e.$props[o],l=Xe(o);(void 0!==r||l in n)&&(t[o]=r)}))}else if(d(e)&&"object"==typeof e.type){const n=e.props||{},o={};Object.keys(n).forEach((e=>{o[We(e)]=n[e]}));const r=e.type.props||{};Object.keys(r).forEach((e=>{const n=function(e,t,n,o){const r=e[n];if(null!=r){const e=qe(r,"default");if(e&&void 0===o){const e=r.default;o=r.type!==Function&&(e=>"function"==typeof e)(e)?e():e}r.type===Boolean&&(qe(t,n)||e?""===o&&(o=!0):o=!1)}return o}(r,o,e,o[e]);(void 0!==n||e in o)&&(t[e]=n)}))}return t};function St(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};return n=e.$?De(De({},n),e.$attrs):De(De({},n),e.props),(e=>{const t=Object.keys(e),n={},o={},r={};for(let l=0,i=t.length;l<i;l++){const i=t[l];He(i)?(n[i[2].toLowerCase()+i.slice(3)]=e[i],o[i]=e[i]):r[i]=e[i]}return{onEvents:o,events:n,extraAttrs:r}})(n)[t?"onEvents":"events"]}function Ot(e,t){let n=((d(e)?e.props:e.$attrs)||{}).style||{};return"string"==typeof n&&(n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={},o=/:(.+)/;return"object"==typeof e?e:(e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){const r=e.split(o);if(r.length>1){const e=t?We(r[0].trim()):r[0].trim();n[e]=r[1].trim()}}})),n)}(n,t)),n}function kt(e){return e&&(e.type===p||e.type===c&&0===e.children.length||e.type===f&&""===e.children.trim())}function Pt(){const e=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{Array.isArray(t)?e.push(...t):(null==t?void 0:t.type)===c?e.push(...Pt(t.children)):e.push(t)})),e.filter((e=>!kt(e)))}function It(e){return Array.isArray(e)&&1===e.length&&(e=e[0]),e&&e.__v_isVNode&&"symbol"!=typeof e.type}function Et(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default";var o,r;return null!==(o=t[n])&&void 0!==o?o:null===(r=e[n])||void 0===r?void 0:r.call(e)}const jt=l({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const o=v({width:0,height:0,offsetHeight:0,offsetWidth:0});let r=null,l=null;const a=()=>{l&&(l.disconnect(),l=null)},s=t=>{const{onResize:n}=e,r=t[0].target,{width:l,height:i}=r.getBoundingClientRect(),{offsetWidth:a,offsetHeight:s}=r,u=Math.floor(l),c=Math.floor(i);if(o.width!==u||o.height!==c||o.offsetWidth!==a||o.offsetHeight!==s){const e={width:u,height:c,offsetWidth:a,offsetHeight:s};De(o,e),n&&Promise.resolve().then((()=>{n(De(De({},e),{offsetWidth:a,offsetHeight:s}),r)}))}},u=m(),c=()=>{const{disabled:t}=e;if(t)return void a();const n=$t(u);n!==r&&(a(),r=n),!l&&n&&(l=new gt(s),l.observe(n))};return h((()=>{c()})),g((()=>{c()})),y((()=>{a()})),i((()=>e.disabled),(()=>{c()}),{flush:"post"}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)[0]}}});let At=e=>setTimeout(e,16),Mt=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(At=e=>window.requestAnimationFrame(e),Mt=e=>window.cancelAnimationFrame(e));let Tt=0;const zt=new Map;function Dt(e){zt.delete(e)}function Rt(e){Tt+=1;const t=Tt;return function n(o){if(0===o)Dt(t),e();else{const e=At((()=>{n(o-1)}));zt.set(t,e)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t}Rt.cancel=e=>{const t=zt.get(e);return Dt(t),Mt(t)};let Bt=!1;try{const e=Object.defineProperty({},"passive",{get(){Bt=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}function Nt(e,t,n,o){if(e&&e.addEventListener){let r=o;void 0===r&&Bt&&("touchstart"===t||"touchmove"===t||"wheel"===t)&&(r={passive:!1}),e.addEventListener(t,n,r)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}const Ft=Symbol("DisabledContextKey"),Ht=()=>o(Ft,b(void 0)),Lt=e=>{const t=Ht();return r(Ft,n((()=>{var n;return null!==(n=e.value)&&void 0!==n?n:t.value}))),e},_t={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Wt={lang:De({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:De({},_t)},Vt="${label} is not a valid ${type}",Xt={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},DatePicker:Wt,TimePicker:_t,Calendar:Wt,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Vt,method:Vt,array:Vt,object:Vt,number:Vt,date:Vt,boolean:Vt,integer:Vt,float:Vt,regexp:Vt,email:Vt,url:Vt,hex:Vt},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}},Kt=l({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:r}=t;const l=o("localeData",{}),i=n((()=>{const{componentName:t="global",defaultLocale:n}=e,o=n||Xt[t||"global"],{antLocale:r}=l,i=t&&r?r[t]:{};return De(De({},"function"==typeof o?o():o),i||{})})),a=n((()=>{const{antLocale:e}=l,t=e&&e.locale;return e&&e.exist&&!t?Xt.locale:t}));return()=>{const t=e.children||r.default,{antLocale:n}=l;return null==t?void 0:t(i.value,a.value,n)}}});function qt(e,t,r){const l=o("localeData",{});return[n((()=>{const{antLocale:n}=l,o=a(t)||Xt[e||"global"],i=e&&n?n[e]:{};return De(De(De({},"function"==typeof o?o():o),i||{}),a(r)||{})}))]}function Gt(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}let Ut=class{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join("%"):e)||null}update(e,t){const n=Array.isArray(e)?e.join("%"):e,o=t(this.cache.get(n));null===o?this.cache.delete(n):this.cache.set(n,o)}};const Yt="data-token-hash",Zt="data-css-hash",Qt="__cssinjs_instance__";function Jt(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Zt}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach((t=>{t[Qt]=t[Qt]||e,t[Qt]===e&&document.head.insertBefore(t,n)}));const o={};Array.from(document.querySelectorAll(`style[${Zt}]`)).forEach((t=>{var n;const r=t.getAttribute(Zt);o[r]?t[Qt]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0}))}return new Ut(e)}const en=Symbol("StyleContextKey"),tn={cache:Jt(),defaultCache:!0,hashPriority:"low"},nn=()=>{const e=(()=>{var e,t,n;const o=m();let r;if(o&&o.appContext){const l=null===(n=null===(t=null===(e=o.appContext)||void 0===e?void 0:e.config)||void 0===t?void 0:t.globalProperties)||void 0===n?void 0:n.__ANTDV_CSSINJS_CACHE__;l?r=l:(r=Jt(),o.appContext.config.globalProperties&&(o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=r))}else r=Jt();return r})();return o(en,s(De(De({},tn),{cache:e})))},on=le(l({name:"AStyleProvider",inheritAttrs:!1,props:{autoClear:se(),mock:pe(),cache:ae(),defaultCache:se(),hashPriority:pe(),container:fe(),ssrInline:se(),transformers:de(),linters:de()},setup(e,t){let{slots:n}=t;return(e=>{const t=nn(),n=s(De(De({},tn),{cache:Jt()}));i([()=>a(e),t],(()=>{const o=De({},t.value),r=a(e);Object.keys(r).forEach((e=>{const t=r[e];void 0!==r[e]&&(o[e]=t)}));const{cache:l}=r;o.cache=o.cache||Jt(),o.defaultCache=!l&&t.value.defaultCache,n.value=o}),{immediate:!0}),r(en,n)})(e),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}));function rn(e,t,n,o){const r=nn(),l=s(""),a=s();w((()=>{l.value=[e,...t.value].join("%")}));const u=e=>{r.value.cache.update(e,(e=>{const[t=0,n]=e||[];return t-1==0?(null==o||o(n,!1),null):[t-1,n]}))};return i(l,((e,t)=>{t&&u(t),r.value.cache.update(e,(e=>{const[t=0,o]=e||[];return[t+1,o||n()]})),a.value=r.value.cache.get(l.value)[1]}),{immediate:!0}),x((()=>{u(l.value)})),a}function ln(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function an(e,t){return!(!e||!e.contains)&&e.contains(t)}const sn="data-vc-order",un=new Map;function cn(){let{mark:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:"vc-util-key"}function dn(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function pn(e){return Array.from((un.get(e)||e).children).filter((e=>"STYLE"===e.tagName))}function fn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ln())return null;const{csp:n,prepend:o}=t,r=document.createElement("style");r.setAttribute(sn,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o)),null!=n&&n.nonce&&(r.nonce=null==n?void 0:n.nonce),r.innerHTML=e;const l=dn(t),{firstChild:i}=l;if(o){if("queue"===o){const e=pn(l).filter((e=>["prepend","prependQueue"].includes(e.getAttribute(sn))));if(e.length)return l.insertBefore(r,e[e.length-1].nextSibling),r}l.insertBefore(r,i)}else l.appendChild(r);return r}function vn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return pn(dn(t)).find((n=>n.getAttribute(cn(t))===e))}function mn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=vn(e,t);n&&dn(t).removeChild(n)}function hn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var o,r,l;!function(e,t){const n=un.get(e);if(!n||!an(document,n)){const n=fn("",t),{parentNode:o}=n;un.set(e,o),e.removeChild(n)}}(dn(n),n);const i=vn(t,n);if(i)return!(null===(o=n.csp)||void 0===o)&&o.nonce&&i.nonce!==(null===(r=n.csp)||void 0===r?void 0:r.nonce)&&(i.nonce=null===(l=n.csp)||void 0===l?void 0:l.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const a=fn(e,n);return a.setAttribute(cn(n),t),a}let gn=class e{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={map:this.cache};return e.forEach((e=>{var t;n=n?null===(t=null==n?void 0:n.map)||void 0===t?void 0:t.get(e):void 0})),null!=n&&n.value&&t&&(n.value[1]=this.cacheCallTimes++),null==n?void 0:n.value}get(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}has(e){return!!this.internalGet(e)}set(t,n){if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){const[e]=this.keys.reduce(((e,t)=>{const[,n]=e;return this.internalGet(t)[1]<n?[t,this.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(t)}let o=this.cache;t.forEach(((e,r)=>{if(r===t.length-1)o.set(e,{value:[n,this.cacheCallTimes++]});else{const t=o.get(e);t?t.map||(t.map=new Map):o.set(e,{map:new Map}),o=o.get(e).map}}))}deleteByPath(e,t){var n;const o=e.get(t[0]);if(1===t.length)return o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null===(n=o.value)||void 0===n?void 0:n[0];const r=this.deleteByPath(o.map,t.slice(1));return(!o.map||0===o.map.size)&&!o.value&&e.delete(t[0]),r}delete(e){if(this.has(e))return this.keys=this.keys.filter((t=>!function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e))),this.deleteByPath(this.cache,e)}};gn.MAX_CACHE_SIZE=20,gn.MAX_CACHE_OFFSET=5;let yn={};function bn(e,t){!function(e,t,n){!t&&!yn[n]&&(yn[n]=!0)}(0,e,t)}let wn=function(){},xn=0,$n=class{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=xn,0===e.length&&wn(e.length>0),xn+=1}getDerivativeToken(e){return this.derivatives.reduce(((t,n)=>n(e,t)),void 0)}};const Cn=new gn;function Sn(e){const t=Array.isArray(e)?e:[e];return Cn.has(t)||Cn.set(t,new $n(t)),Cn.get(t)}const On=new WeakMap;function kn(e){let t=On.get(e)||"";return t||(Object.keys(e).forEach((n=>{const o=e[n];t+=n,t+=o instanceof $n?o.id:o&&"object"==typeof o?kn(o):o})),On.set(e,t)),t}const Pn=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),In="_bAmBoO_";let En;function jn(){return void 0===En&&(En=function(e,t,n){var o,r;if(ln()){hn(e,Pn);const l=document.createElement("div");l.style.position="fixed",l.style.left="0",l.style.top="0",null==t||t(l),document.body.appendChild(l);const i=n?n(l):null===(o=getComputedStyle(l).content)||void 0===o?void 0:o.includes(In);return null===(r=l.parentNode)||void 0===r||r.removeChild(l),mn(Pn),i}return!1}(`@layer ${Pn} { .${Pn} { content: "${In}"!important; } }`,(e=>{e.className=Pn}))),En}const An={},Mn=new Map;function Tn(e,t){Mn.set(e,(Mn.get(e)||0)-1);const n=Array.from(Mn.keys()),o=n.filter((e=>(Mn.get(e)||0)<=0));n.length-o.length>0&&o.forEach((e=>{(function(e,t){typeof document<"u"&&document.querySelectorAll(`style[${Yt}="${e}"]`).forEach((e=>{var n;e[Qt]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))})(e,t),Mn.delete(e)}))}function zn(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b({});const r=nn(),l=n((()=>De({},...t.value))),i=n((()=>kn(l.value))),a=n((()=>kn(o.value.override||An)));return rn("token",n((()=>[o.value.salt||"",e.value.id,i.value,a.value])),(()=>{const{salt:t="",override:n=An,formatToken:r,getComputedToken:i}=o.value,a=i?i(l.value,n,e.value):((e,t,n,o)=>{let r=De(De({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r})(l.value,n,e.value,r),s=function(e,t){return Gt(`${t}_${kn(e)}`)}(a,t);a._tokenKey=s,function(e){Mn.set(e,(Mn.get(e)||0)+1)}(s);const u=`css-${Gt(s)}`;return a._hashId=u,[a,u]}),(e=>{var t;Tn(e[0]._tokenKey,null===(t=r.value)||void 0===t?void 0:t.cache.instanceId)}))}var Dn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Rn="comm",Bn="rule",Nn="decl",Fn=Math.abs,Hn=String.fromCharCode;function Ln(e){return e.trim()}function _n(e,t,n){return e.replace(t,n)}function Wn(e,t,n){return e.indexOf(t,n)}function Vn(e,t){return 0|e.charCodeAt(t)}function Xn(e,t,n){return e.slice(t,n)}function Kn(e){return e.length}function qn(e,t){return t.push(e),e}var Gn=1,Un=1,Yn=0,Zn=0,Qn=0,Jn="";function eo(e,t,n,o,r,l,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:l,line:Gn,column:Un,length:i,return:"",siblings:a}}function to(){return Qn=Zn<Yn?Vn(Jn,Zn++):0,Un++,10===Qn&&(Un=1,Gn++),Qn}function no(){return Vn(Jn,Zn)}function oo(){return Zn}function ro(e,t){return Xn(Jn,e,t)}function lo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function io(e){return Ln(ro(Zn-1,uo(91===e?e+2:40===e?e+1:e)))}function ao(e){for(;(Qn=no())&&Qn<33;)to();return lo(e)>2||lo(Qn)>3?"":" "}function so(e,t){for(;--t&&to()&&!(Qn<48||Qn>102||Qn>57&&Qn<65||Qn>70&&Qn<97););return ro(e,oo()+(t<6&&32==no()&&32==to()))}function uo(e){for(;to();)switch(Qn){case e:return Zn;case 34:case 39:34!==e&&39!==e&&uo(Qn);break;case 40:41===e&&uo(e);break;case 92:to()}return Zn}function co(e,t){for(;to()&&e+Qn!==57&&(e+Qn!==84||47!==no()););return"/*"+ro(t,Zn-1)+"*"+Hn(47===e?e:to())}function po(e){for(;!lo(no());)to();return ro(e,Zn)}function fo(e){return function(e){return Jn="",e}(vo("",null,null,null,[""],e=function(e){return Gn=Un=1,Yn=Kn(Jn=e),Zn=0,[]}(e),0,[0],e))}function vo(e,t,n,o,r,l,i,a,s){for(var u=0,c=0,d=i,p=0,f=0,v=0,m=1,h=1,g=1,y=0,b="",w=r,x=l,$=o,C=b;h;)switch(v=y,y=to()){case 40:if(108!=v&&58==Vn(C,d-1)){-1!=Wn(C+=_n(io(y),"&","&\f"),"&\f",Fn(u?a[u-1]:0))&&(g=-1);break}case 34:case 39:case 91:C+=io(y);break;case 9:case 10:case 13:case 32:C+=ao(v);break;case 92:C+=so(oo()-1,7);continue;case 47:switch(no()){case 42:case 47:qn(ho(co(to(),oo()),t,n,s),s),(5==lo(v||1)||5==lo(no()||1))&&Kn(C)&&" "!==Xn(C,-1,void 0)&&(C+=" ");break;default:C+="/"}break;case 123*m:a[u++]=Kn(C)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+c:-1==g&&(C=_n(C,/\f/g,"")),f>0&&(Kn(C)-d||0===m&&47===v)&&qn(f>32?go(C+";",o,n,d-1,s):go(_n(C," ","")+";",o,n,d-2,s),s);break;case 59:C+=";";default:if(qn($=mo(C,t,n,u,c,r,a,b,w=[],x=[],d,l),l),123===y)if(0===c)vo(C,t,$,$,w,l,d,a,x);else switch(99===p&&110===Vn(C,3)?100:p){case 100:case 108:case 109:case 115:vo(e,$,$,o&&qn(mo(e,$,$,0,0,r,a,b,r,w=[],d,x),x),r,x,d,a,o?w:x);break;default:vo(C,$,$,$,[""],x,0,a,x)}}u=c=f=0,m=g=1,b=C="",d=i;break;case 58:d=1+Kn(C),f=v;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==(Qn=Zn>0?Vn(Jn,--Zn):0,Un--,10===Qn&&(Un=1,Gn--),Qn))continue;switch(C+=Hn(y),y*m){case 38:g=c>0?1:(C+="\f",-1);break;case 44:a[u++]=(Kn(C)-1)*g,g=1;break;case 64:45===no()&&(C+=io(to())),p=no(),c=d=Kn(b=C+=po(oo())),y++;break;case 45:45===v&&2==Kn(C)&&(m=0)}}return l}function mo(e,t,n,o,r,l,i,a,s,u,c,d){for(var p=r-1,f=0===r?l:[""],v=function(e){return e.length}(f),m=0,h=0,g=0;m<o;++m)for(var y=0,b=Xn(e,p+1,p=Fn(h=i[m])),w=e;y<v;++y)(w=Ln(h>0?f[y]+" "+b:_n(b,/&\f/g,f[y])))&&(s[g++]=w);return eo(e,t,n,0===r?Bn:a,s,u,c,d)}function ho(e,t,n,o){return eo(e,t,n,Rn,Hn(Qn),Xn(e,2,-2),0,o)}function go(e,t,n,o,r){return eo(e,t,n,Nn,Xn(e,0,o),Xn(e,o+1,-1),o,r)}function yo(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function bo(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Nn:return e.return=e.return||e.value;case Rn:return"";case"@keyframes":return e.return=e.value+"{"+yo(e.children,o)+"}";case Bn:if(!Kn(e.value=e.props.join(",")))return""}return Kn(n=yo(e.children,o))?e.return=e.value+"{"+n+"}":""}const wo="data-ant-cssinjs-cache-path";let xo,$o=!0;function Co(e){return function(){var e;if(!xo&&(xo={},ln())){const t=document.createElement("div");t.className=wo,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach((e=>{const[t,n]=e.split(":");xo[t]=n}));const o=document.querySelector(`style[${wo}]`);o&&($o=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}(),!!xo[e]}const So=ln(),Oo="_multi_value_";function ko(e){return yo(fo(e),bo).replace(/\{%%%\:[^;];}/g,";")}const Po=new Set,Io=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{root:n,injectHash:o,parentSelectors:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:l,layer:i,path:a,hashPriority:s,transformers:u=[],linters:c=[]}=t;let d="",p={};function f(e){const n=e.getName(l);if(!p[n]){const[o]=Io(e.style,t,{root:!1,parentSelectors:r});p[n]=`@keyframes ${e.getName(l)}${o}`}}if(function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((t=>{Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(e)?e:[e]).forEach((e=>{const i="string"!=typeof e||n?e:{};if("string"==typeof i)d+=`${i}\n`;else if(i._keyframe)f(i);else{const e=u.reduce(((e,t)=>{var n;return(null===(n=null==t?void 0:t.visit)||void 0===n?void 0:n.call(t,e))||e}),i);Object.keys(e).forEach((i=>{var a;const u=e[i];if("object"!=typeof u||!u||"animationName"===i&&u._keyframe||function(e){return"object"==typeof e&&e&&("_skip_check_"in e||Oo in e)}(u)){let e=function(e,t){const n=e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`));let o=t;!Dn[e]&&"number"==typeof o&&0!==o&&(o=`${o}px`),"animationName"===e&&null!=t&&t._keyframe&&(f(t),o=t.getName(l)),d+=`${n}:${o};`};const t=null!==(a=null==u?void 0:u.value)&&void 0!==a?a:u;"object"==typeof u&&null!=u&&u[Oo]&&Array.isArray(t)?t.forEach((t=>{e(i,t)})):e(i,t)}else{let e=!1,a=i.trim(),c=!1;(n||o)&&l?a.startsWith("@")?e=!0:a=function(e,t,n){if(!t)return e;const o=`.${t}`,r="low"===n?`:where(${o})`:o;return e.split(",").map((e=>{var t;const n=e.trim().split(/\s+/);let o=n[0]||"";const l=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return o=`${l}${r}${o.slice(l.length)}`,[o,...n.slice(1)].join(" ")})).join(",")}(i,l,s):n&&!l&&("&"===a||""===a)&&(a="",c=!0);const[f,v]=Io(u,t,{root:c,injectHash:e,parentSelectors:[...r,a]});p=De(De({},p),v),d+=`${a}${f}`}}))}})),n){if(i&&jn()){const e=i.split(",");d=`@layer ${e[e.length-1].trim()} {${d}}`,e.length>1&&(d=`@layer ${i}{%%%:%}${d}`)}}else d=`{${d}}`;return[d,p]};function Eo(e,t){const o=nn(),r=n((()=>e.value.token._tokenKey)),l=n((()=>[r.value,...e.value.path]));let i=So;return rn("style",l,(()=>{const{path:n,hashId:a,layer:s,nonce:u,clientOnly:c,order:d=0}=e.value,p=l.value.join("|");if(Co(p)){const[e,t]=function(e){const t=xo[e];let n=null;if(t&&ln())if($o)n="_FILE_STYLE__";else{const t=document.querySelector(`style[${Zt}="${xo[e]}"]`);t?n=t.innerHTML:delete xo[e]}return[n,t]}(p);if(e)return[e,r.value,t,{},c,d]}const f=t(),{hashPriority:v,container:m,transformers:h,linters:g,cache:y}=o.value,[b,w]=Io(f,{hashId:a,hashPriority:v,layer:s,path:n.join("-"),transformers:h,linters:g}),x=ko(b),$=function(e,t){return Gt(`${e.join("%")}${t}`)}(l.value,x);if(i){const e={mark:Zt,prepend:"queue",attachTo:m,priority:d},t="function"==typeof u?u():u;t&&(e.csp={nonce:t});const n=hn(x,$,e);n[Qt]=y.instanceId,n.setAttribute(Yt,r.value),Object.keys(w).forEach((e=>{Po.has(e)||(Po.add(e),hn(ko(w[e]),`_effect-${e}`,{mark:Zt,prepend:"queue",attachTo:m}))}))}return[x,r.value,$,w,c,d]}),((e,t)=>{let[,,n]=e;(t||o.value.autoClear)&&So&&mn(n,{mark:Zt})})),e=>e}let jo=class{constructor(e,t){this._keyframe=!0,this.name=e,this.style=t}getName(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?`${e}-${this.name}`:this.name}};function Ao(e){return e.notSplit=!0,e}Ao(["borderTop","borderBottom"]),Ao(["borderTop"]),Ao(["borderBottom"]),Ao(["borderLeft","borderRight"]),Ao(["borderLeft"]),Ao(["borderRight"]);const Mo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function To(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function zo(e){return Math.min(1,Math.max(0,e))}function Do(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ro(e){return e<=1?"".concat(100*Number(e),"%"):e}function Bo(e){return 1===e.length?"0"+e:String(e)}function No(e,t,n){e=To(e,255),t=To(t,255),n=To(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),l=0,i=0,a=(o+r)/2;if(o===r)i=0,l=0;else{var s=o-r;switch(i=a>.5?s/(2-o-r):s/(o+r),o){case e:l=(t-n)/s+(t<n?6:0);break;case t:l=(n-e)/s+2;break;case n:l=(e-t)/s+4}l/=6}return{h:l,s:i,l:a}}function Fo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ho(e,t,n){e=To(e,255),t=To(t,255),n=To(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),l=0,i=o,a=o-r,s=0===o?0:a/o;if(o===r)l=0;else{switch(o){case e:l=(t-n)/a+(t<n?6:0);break;case t:l=(n-e)/a+2;break;case n:l=(e-t)/a+4}l/=6}return{h:l,s:s,v:i}}function Lo(e,t,n,o){var r=[Bo(Math.round(e).toString(16)),Bo(Math.round(t).toString(16)),Bo(Math.round(n).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function _o(e){return Math.round(255*parseFloat(e)).toString(16)}function Wo(e){return Vo(e)/255}function Vo(e){return parseInt(e,16)}var Xo={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Ko(e){var t={r:0,g:0,b:0},n=1,o=null,r=null,l=null,i=!1,a=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(Xo[e])e=Xo[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Yo.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Yo.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Yo.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Yo.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Yo.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Yo.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Yo.hex8.exec(e),n?{r:Vo(n[1]),g:Vo(n[2]),b:Vo(n[3]),a:Wo(n[4]),format:t?"name":"hex8"}:(n=Yo.hex6.exec(e),n?{r:Vo(n[1]),g:Vo(n[2]),b:Vo(n[3]),format:t?"name":"hex"}:(n=Yo.hex4.exec(e),n?{r:Vo(n[1]+n[1]),g:Vo(n[2]+n[2]),b:Vo(n[3]+n[3]),a:Wo(n[4]+n[4]),format:t?"name":"hex8"}:(n=Yo.hex3.exec(e),!!n&&{r:Vo(n[1]+n[1]),g:Vo(n[2]+n[2]),b:Vo(n[3]+n[3]),format:t?"name":"hex"})))))))))}(e)),"object"==typeof e&&(Zo(e.r)&&Zo(e.g)&&Zo(e.b)?(t=function(e,t,n){return{r:255*To(e,255),g:255*To(t,255),b:255*To(n,255)}}(e.r,e.g,e.b),i=!0,a="%"===String(e.r).substr(-1)?"prgb":"rgb"):Zo(e.h)&&Zo(e.s)&&Zo(e.v)?(o=Ro(e.s),r=Ro(e.v),t=function(e,t,n){e=6*To(e,360),t=To(t,100),n=To(n,100);var o=Math.floor(e),r=e-o,l=n*(1-t),i=n*(1-r*t),a=n*(1-(1-r)*t),s=o%6;return{r:255*[n,i,l,l,a,n][s],g:255*[a,n,n,i,l,l][s],b:255*[l,l,a,n,n,i][s]}}(e.h,o,r),i=!0,a="hsv"):Zo(e.h)&&Zo(e.s)&&Zo(e.l)&&(o=Ro(e.s),l=Ro(e.l),t=function(e,t,n){var o,r,l;if(e=To(e,360),t=To(t,100),n=To(n,100),0===t)r=n,l=n,o=n;else{var i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;o=Fo(a,i,e+1/3),r=Fo(a,i,e),l=Fo(a,i,e-1/3)}return{r:255*o,g:255*r,b:255*l}}(e.h,o,l),i=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Do(n),{ok:i,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var qo="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Go="[\\s|\\(]+(".concat(qo,")[,|\\s]+(").concat(qo,")[,|\\s]+(").concat(qo,")\\s*\\)?"),Uo="[\\s|\\(]+(".concat(qo,")[,|\\s]+(").concat(qo,")[,|\\s]+(").concat(qo,")[,|\\s]+(").concat(qo,")\\s*\\)?"),Yo={CSS_UNIT:new RegExp(qo),rgb:new RegExp("rgb"+Go),rgba:new RegExp("rgba"+Uo),hsl:new RegExp("hsl"+Go),hsla:new RegExp("hsla"+Uo),hsv:new RegExp("hsv"+Go),hsva:new RegExp("hsva"+Uo),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Zo(e){return!!Yo.CSS_UNIT.exec(String(e))}var Qo=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var r=Ko(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,o=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Do(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=Ho(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Ho(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=No(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=No(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Lo(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,o,r){var l=[Bo(Math.round(e).toString(16)),Bo(Math.round(t).toString(16)),Bo(Math.round(n).toString(16)),Bo(_o(o))];return r&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))&&l[3].startsWith(l[3].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*To(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*To(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Lo(this.r,this.g,this.b,!1),t=0,n=Object.entries(Xo);t<n.length;t++){var o=n[t],r=o[0];if(e===o[1])return r}return!1},e.prototype.toString=function(e){var t=!!e;e=e??this.format;var n=!1,o=this.a<1&&this.a>=0;return!t&&o&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=zo(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=zo(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=zo(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=zo(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),l=n/100;return new e({r:(r.r-o.r)*l+o.r,g:(r.g-o.g)*l+o.g,b:(r.b-o.b)*l+o.b,a:(r.a-o.a)*l+o.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var o=this.toHsl(),r=360/n,l=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,l.push(new e(o));return l},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,l=n.v,i=[],a=1/t;t--;)i.push(new e({h:o,s:r,v:l})),l=(l+a)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],l=360/t,i=1;i<t;i++)r.push(new e({h:(o+i*l)%360,s:n.s,l:n.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Jo=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function er(e){var t=Ho(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function tr(e){var t=e.r,n=e.g,o=e.b;return"#".concat(Lo(t,n,o,!1))}function nr(e,t,n){var o;return(o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?o+=360:o>=360&&(o-=360),o}function or(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(o=1),n&&5===t&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2)));var o}function rr(e,t,n){var o;return(o=n?e.v+.05*t:e.v-.15*t)>1&&(o=1),Number(o.toFixed(2))}function lr(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=Ko(e),r=5;r>0;r-=1){var l=er(o),i=tr(Ko({h:nr(l,r,!0),s:or(l,r,!0),v:rr(l,r,!0)}));n.push(i)}n.push(tr(o));for(var a=1;a<=4;a+=1){var s=er(o),u=tr(Ko({h:nr(s,a),s:or(s,a),v:rr(s,a)}));n.push(u)}return"dark"===t.theme?Jo.map((function(e){var o=e.index,r=e.opacity,l=tr(function(e,t,n){var o=n/100;return{r:(t.r-e.r)*o+e.r,g:(t.g-e.g)*o+e.g,b:(t.b-e.b)*o+e.b}}(Ko(t.backgroundColor||"#141414"),Ko(n[o]),100*r));return l})):n}var ir={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ar={},sr={};Object.keys(ir).forEach((function(e){ar[e]=lr(ir[e]),ar[e].primary=ar[e][5],sr[e]=lr(ir[e],{theme:"dark",backgroundColor:"#141414"}),sr[e].primary=sr[e][5]})),ar.red,ar.volcano;var ur=ar.gold;ar.orange,ar.yellow,ar.lime,ar.green,ar.cyan;var cr=ar.blue;ar.geekblue,ar.purple,ar.magenta,ar.grey;const dr=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};const pr={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},fr=De(De({},pr),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});function vr(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:r,colorWarning:l,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:u,colorTextBase:c}=e,d=n(s),p=n(r),f=n(l),v=n(i),m=n(a);return De(De({},o(u,c)),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorBgMask:new Qo("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const mr=(e,t)=>new Qo(e).setAlpha(t).toRgbString(),hr=(e,t)=>new Qo(e).darken(t).toHexString(),gr=e=>{const t=lr(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},yr=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:mr(o,.88),colorTextSecondary:mr(o,.65),colorTextTertiary:mr(o,.45),colorTextQuaternary:mr(o,.25),colorFill:mr(o,.15),colorFillSecondary:mr(o,.06),colorFillTertiary:mr(o,.04),colorFillQuaternary:mr(o,.02),colorBgLayout:hr(n,4),colorBgContainer:hr(n,0),colorBgElevated:hr(n,0),colorBgSpotlight:mr(o,.85),colorBorder:hr(n,15),colorBorderSecondary:hr(n,6)}};const br=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const o=n-1,r=e*Math.pow(2.71828,o/5),l=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(l/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:(e+8)/e})))}(e),n=t.map((e=>e.size)),o=t.map((e=>e.lineHeight));return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:o[1],lineHeightLG:o[2],lineHeightSM:o[0],lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function wr(e){const t=Object.keys(pr).map((t=>{const n=lr(e[t]);return new Array(10).fill(1).reduce(((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e)),{})})).reduce(((e,t)=>e=De(De({},e),t)),{});return De(De(De(De(De(De(De({},e),t),vr(e,{generateColorPalettes:gr,generateNeutralColorPalettes:yr})),br(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),dr(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return De({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:r+1},(e=>{let t=e,n=e,o=e,r=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e>16?16:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}})(o))}(e))}function xr(e){return e>=0&&e<=255}function $r(e,t){const{r:n,g:o,b:r,a:l}=new Qo(e).toRgb();if(l<1)return e;const{r:i,g:a,b:s}=new Qo(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-i*(1-e))/e),l=Math.round((o-a*(1-e))/e),u=Math.round((r-s*(1-e))/e);if(xr(t)&&xr(l)&&xr(u))return new Qo({r:t,g:l,b:u,a:Math.round(100*e)/100}).toRgbString()}return new Qo({r:n,g:o,b:r,a:1}).toRgbString()}function Cr(e){const{override:t}=e,n=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["override"]),o=De({},t);Object.keys(fr).forEach((e=>{delete o[e]}));const r=De(De({},n),o),l=1200,i=1600,a=2e3;return De(De(De({},r),{colorLink:r.colorInfoText,colorLinkHover:r.colorInfoHover,colorLinkActive:r.colorInfoActive,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:$r(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:$r(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:$r(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:$r(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:l-1,screenXL:l,screenXLMin:l,screenXLMax:i-1,screenXXL:i,screenXXLMin:i,screenXXLMax:a-1,screenXXXL:a,screenXXXLMin:a,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:`\n 0 1px 2px -2px ${new Qo("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Qo("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Qo("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),o)}const Sr=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Or=(e,t,n,o,r)=>{const l=e/2,i=l,a=1*n/Math.sqrt(2),s=l-n*(1-1/Math.sqrt(2)),u=l-t*(1/Math.sqrt(2)),c=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*l-u,p=c,f=2*l-a,v=s,m=2*l-0,h=i,g=l*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::after":{content:'""',position:"absolute",width:g,height:g,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:o,clipPath:{_multi_value_:!0,value:[`polygon(${y}px 100%, 50% ${y}px, ${2*l-y}px 100%, ${y}px 100%)`,`path('M 0 ${i} A ${n} ${n} 0 0 0 ${a} ${s} L ${u} ${c} A ${t} ${t} 0 0 1 ${d} ${p} L ${f} ${v} A ${n} ${n} 0 0 0 ${m} ${h} Z')`]},content:'""'}}};function kr(e,t){return Mo.reduce(((n,o)=>{const r=e[`${o}-1`],l=e[`${o}-3`],i=e[`${o}-6`],a=e[`${o}-7`];return De(De({},n),t(o,{lightColor:r,lightBorderColor:l,darkColor:i,textColor:a}))}),{})}const Pr={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ir=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),Er=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),jr=(e,t)=>{const{fontFamily:n,fontSize:o}=e,r=`[class^="${t}"], [class*=" ${t}"]`;return{[r]:{fontFamily:n,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[r]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Ar=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Mr=e=>({"&:focus-visible":De({},Ar(e))});function Tr(e,t,o){return r=>{const l=n((()=>null==r?void 0:r.value)),[i,a,s]=Wr(),{getPrefixCls:u,iconPrefixCls:c}=ye(),d=n((()=>u()));Eo(n((()=>({theme:i.value,token:a.value,hashId:s.value,path:["Shared",d.value]}))),(()=>[{"&":Er(a.value)}]));return[Eo(n((()=>({theme:i.value,token:a.value,hashId:s.value,path:[e,l.value,c.value]}))),(()=>{const{token:n,flush:r}=function(e){let t,n=e,o=Br;return zr&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(Dr&&t.add(n),e[n])}),o=(e,n)=>{Array.from(t)}),{token:n,keys:t,flush:o}}(a.value),i=De(De({},"function"==typeof o?o(n):o),a.value[e]),u=Rr(n,{componentCls:`.${l.value}`,prefixCls:l.value,iconCls:`.${c.value}`,antCls:`.${d.value}`},i),p=t(u,{hashId:s.value,prefixCls:l.value,rootPrefixCls:d.value,iconPrefixCls:c.value,overrideComponentToken:a.value[e]});return r(e,i),[jr(a.value,l.value),p]})),s]}}const zr=typeof CSSINJS_STATISTIC<"u";let Dr=!0;function Rr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!zr)return De({},...t);Dr=!1;const o={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),Dr=!0,o}function Br(){}const Nr=Sn(wr),Fr={token:fr,hashed:!0},Hr=Symbol("DesignTokenContext"),Lr=s(),_r=l({props:{value:ae()},setup(e,t){let{slots:o}=t;return(e=>{r(Hr,e),i(e,(()=>{Lr.value=a(e),u(Lr)}),{immediate:!0,deep:!0})})(n((()=>e.value))),()=>{var e;return null===(e=o.default)||void 0===e?void 0:e.call(o)}}});function Wr(){const e=o(Hr,n((()=>Lr.value||Fr))),t=n((()=>`4.2.6-${e.value.hashed||""}`)),r=n((()=>e.value.theme||Nr)),l=zn(r,n((()=>[fr,e.value.token])),n((()=>({salt:t.value,override:De({override:e.value.token},e.value.components),formatToken:Cr}))));return[r,n((()=>l.value[0])),n((()=>e.value.hashed?l.value[1]:""))]}const Vr=l({compatConfig:{MODE:3},setup(){const[,e]=Wr(),t=n((()=>new Qo(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{}));return()=>$("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[$("g",{fill:"none","fill-rule":"evenodd"},[$("g",{transform:"translate(24 31.67)"},[$("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),$("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"},null),$("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)"},null),$("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"},null),$("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"},null)]),$("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"},null),$("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[$("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),$("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});Vr.PRESENTED_IMAGE_DEFAULT=!0;const Xr=l({compatConfig:{MODE:3},setup(){const[,e]=Wr(),t=n((()=>{const{colorFill:t,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:r}=e.value;return{borderColor:new Qo(t).onBackground(r).toHexString(),shadowColor:new Qo(n).onBackground(r).toHexString(),contentColor:new Qo(o).onBackground(r).toHexString()}}));return()=>$("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[$("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[$("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),$("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[$("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"},null),$("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:t.value.contentColor},null)])])])}});Xr.PRESENTED_IMAGE_SIMPLE=!0;const Kr=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:l,lineHeight:i}=e;return{[t]:{marginInline:o,fontSize:l,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},qr=Tr("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,o=Rr(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[Kr(o)]}));const Gr=l({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:{prefixCls:String,imageStyle:ae(),image:ce(),description:ce()},setup(e,t){let{slots:n={},attrs:o}=t;const{direction:r,prefixCls:l}=tl("empty",e),[i,a]=qr(l);return()=>{var t,s;const u=l.value,c=De(De({},e),o),{image:d=(null===(t=n.image)||void 0===t?void 0:t.call(n))||C(Vr),description:p=(null===(s=n.description)||void 0===s?void 0:s.call(n))||void 0,imageStyle:f,class:v=""}=c,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(c,["image","description","imageStyle","class"]),h="function"==typeof d?d():d,g="object"==typeof h&&"type"in h&&h.type.PRESENTED_IMAGE_SIMPLE;return i($(Kt,{componentName:"Empty",children:e=>{const t=typeof p<"u"?p:e.description;let o=null;return o="string"==typeof h?$("img",{alt:"string"==typeof t?t:"empty",src:h},null):h,$("div",ze({class:Ue(u,v,a.value,{[`${u}-normal`]:g,[`${u}-rtl`]:"rtl"===r.value})},m),[$("div",{class:`${u}-image`,style:f},[o]),t&&$("p",{class:`${u}-description`},[t]),n.default&&$("div",{class:`${u}-footer`},[Pt(n.default())])])}},null))}}});Gr.PRESENTED_IMAGE_DEFAULT=()=>C(Vr),Gr.PRESENTED_IMAGE_SIMPLE=()=>C(Xr);const Ur=le(Gr),Yr=e=>{const{prefixCls:t}=tl("empty",e);return(e=>{switch(e){case"Table":case"List":return $(Ur,{image:Ur.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return $(Ur,{image:Ur.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return $(Ur,null,null)}})(e.componentName)};function Zr(e){return $(Yr,{componentName:e},null)}const Qr=Symbol("SizeContextKey"),Jr=()=>o(Qr,b(void 0)),el=e=>{const t=Jr();return r(Qr,n((()=>e.value||t.value))),e},tl=(e,t)=>{const r=Jr(),l=Ht(),i=o(he,De(De({},ge),{renderEmpty:e=>C(Yr,{componentName:e})})),a=n((()=>i.getPrefixCls(e,t.prefixCls))),s=n((()=>{var e,n;return null!==(e=t.direction)&&void 0!==e?e:null===(n=i.direction)||void 0===n?void 0:n.value})),u=n((()=>{var e;return null!==(e=t.iconPrefixCls)&&void 0!==e?e:i.iconPrefixCls.value})),c=n((()=>i.getPrefixCls())),d=n((()=>{var e;return null===(e=i.autoInsertSpaceInButton)||void 0===e?void 0:e.value})),p=i.renderEmpty,f=i.space,v=i.pageHeader,m=i.form,h=n((()=>{var e,n;return null!==(e=t.getTargetContainer)&&void 0!==e?e:null===(n=i.getTargetContainer)||void 0===n?void 0:n.value})),g=n((()=>{var e,n,o;return null!==(n=null!==(e=t.getContainer)&&void 0!==e?e:t.getPopupContainer)&&void 0!==n?n:null===(o=i.getPopupContainer)||void 0===o?void 0:o.value})),y=n((()=>{var e,n;return null!==(e=t.dropdownMatchSelectWidth)&&void 0!==e?e:null===(n=i.dropdownMatchSelectWidth)||void 0===n?void 0:n.value})),b=n((()=>{var e;return(void 0===t.virtual?!1!==(null===(e=i.virtual)||void 0===e?void 0:e.value):!1!==t.virtual)&&!1!==y.value})),w=n((()=>t.size||r.value)),x=n((()=>{var e,n,o;return null!==(e=t.autocomplete)&&void 0!==e?e:null===(o=null===(n=i.input)||void 0===n?void 0:n.value)||void 0===o?void 0:o.autocomplete})),$=n((()=>{var e;return null!==(e=t.disabled)&&void 0!==e?e:l.value})),S=n((()=>{var e;return null!==(e=t.csp)&&void 0!==e?e:i.csp})),O=n((()=>{var e,n;return null!==(e=t.wave)&&void 0!==e?e:null===(n=i.wave)||void 0===n?void 0:n.value}));return{configProvider:i,prefixCls:a,direction:s,size:w,getTargetContainer:h,getPopupContainer:g,space:f,pageHeader:v,form:m,autoInsertSpaceInButton:d,renderEmpty:p,virtual:b,dropdownMatchSelectWidth:y,rootPrefixCls:c,getPrefixCls:i.getPrefixCls,autocomplete:x,csp:S,iconPrefixCls:u,disabled:$,select:i.select,wave:O}};function nl(e,t){const n=De({},e);for(let e=0;e<t.length;e+=1){delete n[t[e]]}return n}function ol(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function rl(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function ll(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return rl(n.overflowY,t)||rl(n.overflowX,t)||!!(r=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}}(o=e))&&(r.clientHeight<o.scrollHeight||r.clientWidth<o.scrollWidth)}var o,r;return!1}function il(e,t,n,o,r,l,i,a){return l<e&&i>t||l>e&&i<t?0:l<=e&&a<=n||i>=t&&a>=n?l-e-o:i>t&&a<n||l<e&&a>n?i-t+r:0}var al=function(e,t){var n=window,o=t.scrollMode,r=t.block,l=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,s="function"==typeof i?i:function(e){return e!==i};if(!ol(e))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,p=[],f=e;ol(f)&&s(f);){if((f=null==(c=(u=f).parentElement)?u.getRootNode().host||null:c)===d){p.push(f);break}null!=f&&f===document.body&&ll(f)&&!ll(document.documentElement)||null!=f&&ll(f,a)&&p.push(f)}for(var v=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),b=y.height,w=y.width,x=y.top,$=y.right,C=y.bottom,S=y.left,O="start"===r||"nearest"===r?x:"end"===r?C:x+b/2,k="center"===l?S+w/2:"end"===l?$:S,P=[],I=0;I<p.length;I++){var E=p[I],j=E.getBoundingClientRect(),A=j.height,M=j.width,T=j.top,z=j.right,D=j.bottom,R=j.left;if("if-needed"===o&&x>=0&&S>=0&&C<=m&&$<=v&&x>=T&&C<=D&&S>=R&&$<=z)return P;var B=getComputedStyle(E),N=parseInt(B.borderLeftWidth,10),F=parseInt(B.borderTopWidth,10),H=parseInt(B.borderRightWidth,10),L=parseInt(B.borderBottomWidth,10),_=0,W=0,V="offsetWidth"in E?E.offsetWidth-E.clientWidth-N-H:0,X="offsetHeight"in E?E.offsetHeight-E.clientHeight-F-L:0,K="offsetWidth"in E?0===E.offsetWidth?0:M/E.offsetWidth:0,q="offsetHeight"in E?0===E.offsetHeight?0:A/E.offsetHeight:0;if(d===E)_="start"===r?O:"end"===r?O-m:"nearest"===r?il(g,g+m,m,F,L,g+O,g+O+b,b):O-m/2,W="start"===l?k:"center"===l?k-v/2:"end"===l?k-v:il(h,h+v,v,N,H,h+k,h+k+w,w),_=Math.max(0,_+g),W=Math.max(0,W+h);else{_="start"===r?O-T-F:"end"===r?O-D+L+X:"nearest"===r?il(T,D,A,F,L+X,O,O+b,b):O-(T+A/2)+X/2,W="start"===l?k-R-N:"center"===l?k-(R+M/2)+V/2:"end"===l?k-z+H+V:il(R,z,M,N,H+V,k,k+w,w);var G=E.scrollLeft,U=E.scrollTop;O+=U-(_=Math.max(0,Math.min(U+_/q,E.scrollHeight-A/q+X))),k+=G-(W=Math.max(0,Math.min(G+W/K,E.scrollWidth-M/K+V)))}P.push({el:E,top:_,left:W})}return P};function sl(e){return e===Object(e)&&0!==Object.keys(e).length}function ul(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(sl(t)&&"function"==typeof t.behavior)return t.behavior(n?al(e,t):[]);if(n){var o=function(e){return!1===e?{block:"end",inline:"nearest"}:sl(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var o=e.el,r=e.top,l=e.left;o.scroll&&n?o.scroll({top:r,left:l,behavior:t}):(o.scrollTop=r,o.scrollLeft=l)}))}(al(e,o),o.behavior)}}function cl(e,t,n){return n&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e,n),e}function dl(){return(dl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function pl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function fl(e,t){if(null==e)return{};var n,o,r={},l=Object.keys(e);for(o=0;o<l.length;o++)t.indexOf(n=l[o])>=0||(r[n]=e[n]);return r}function vl(e){return 1==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t))&&"[object Object]"===Object.prototype.toString.call(e);var t}var ml=Object.prototype,hl=ml.toString,gl=ml.hasOwnProperty,yl=/^\s*function (\w+)/;function bl(e){var t,n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){var o=n.toString().match(yl);return o?o[1]:""}return""}var wl=function(e){var t,n;return!1!==vl(e)&&"function"==typeof(t=e.constructor)&&!1!==vl(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")},xl=function(e){return e},$l=function(e,t){return gl.call(e,t)},Cl=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Sl=Array.isArray||function(e){return"[object Array]"===hl.call(e)},Ol=function(e){return"[object Function]"===hl.call(e)},kl=function(e){return wl(e)&&$l(e,"_vueTypes_name")},Pl=function(e){return wl(e)&&($l(e,"type")||["_vueTypes_name","validator","default","required"].some((function(t){return $l(e,t)})))};function Il(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function El(e,t,n){var o,r=!0,l="";o=wl(e)?e:{type:e};var i=kl(o)?o._vueTypes_name+" - ":"";if(Pl(o)&&null!==o.type){if(void 0===o.type||!0===o.type||!o.required&&void 0===t)return r;Sl(o.type)?(r=o.type.some((function(e){return!0===El(e,t)})),l=o.type.map((function(e){return bl(e)})).join(" or ")):r="Array"===(l=bl(o))?Sl(t):"Object"===l?wl(t):"String"===l||"Number"===l||"Boolean"===l||"Function"===l?function(e){if(null==e)return"";var t=e.constructor.toString().match(yl);return t?t[1]:""}(t)===l:t instanceof o.type}if(!r)return i+'value "'+t+'" should be of type "'+l+'"';if($l(o,"validator")&&Ol(o.validator)){var a=xl,s=[];if(xl=function(e){s.push(e)},r=o.validator(t),xl=a,!r){var u=(s.length>1?"* ":"")+s.join("\n* ");return s.length=0,u}}return r}function jl(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(e){return void 0!==e||this.default?Ol(e)||!0===El(this,e)?(this.default=Sl(e)?function(){return[].concat(e)}:wl(e)?function(){return Object.assign({},e)}:e,this):(xl(this._vueTypes_name+' - invalid default value: "'+e+'"'),this):this}}}),o=n.validator;return Ol(o)&&(n.validator=Il(o,n)),n}function Al(e,t){var n=jl(e,t);return Object.defineProperty(n,"validate",{value:function(e){return Ol(this.validator)&&xl(this._vueTypes_name+" - calling .validate() will overwrite the current custom validator function. Validator info:\n"+JSON.stringify(this)),this.validator=Il(e,this),this}})}function Ml(e,t,n){var o,r,l=(o=t,r={},Object.getOwnPropertyNames(o).forEach((function(e){r[e]=Object.getOwnPropertyDescriptor(o,e)})),Object.defineProperties({},r));if(l._vueTypes_name=e,!wl(n))return l;var i,a,s=n.validator,u=fl(n,["validator"]);if(Ol(s)){var c=l.validator;c&&(c=null!==(a=(i=c).__original)&&void 0!==a?a:i),l.validator=Il(c?function(e){return c.call(this,e)&&s.call(this,e)}:s,l)}return Object.assign(l,u)}function Tl(e){return e.replace(/^(?!\s*$)/gm," ")}var zl=function(){function e(){}return e.extend=function(e){var t=this;if(Sl(e))return e.forEach((function(e){return t.extend(e)})),this;var n=e.name,o=e.validate,r=void 0!==o&&o,l=e.getter,i=void 0!==l&&l,a=fl(e,["name","validate","getter"]);if($l(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var s,u=a.type;return kl(u)?(delete a.type,Object.defineProperty(this,n,i?{get:function(){return Ml(n,u,a)}}:{value:function(){var e,t=Ml(n,u,a);return t.validator&&(t.validator=(e=t.validator).bind.apply(e,[t].concat([].slice.call(arguments)))),t}})):(s=i?{get:function(){var e=Object.assign({},a);return r?Al(n,e):jl(n,e)},enumerable:!0}:{value:function(){var e,t,o=Object.assign({},a);return e=r?Al(n,o):jl(n,o),o.validator&&(e.validator=(t=o.validator).bind.apply(t,[e].concat([].slice.call(arguments)))),e},enumerable:!0},Object.defineProperty(this,n,s))},cl(e,0,[{key:"any",get:function(){return Al("any",{})}},{key:"func",get:function(){return Al("function",{type:Function}).def(this.defaults.func)}},{key:"bool",get:function(){return Al("boolean",{type:Boolean}).def(this.defaults.bool)}},{key:"string",get:function(){return Al("string",{type:String}).def(this.defaults.string)}},{key:"number",get:function(){return Al("number",{type:Number}).def(this.defaults.number)}},{key:"array",get:function(){return Al("array",{type:Array}).def(this.defaults.array)}},{key:"object",get:function(){return Al("object",{type:Object}).def(this.defaults.object)}},{key:"integer",get:function(){return jl("integer",{type:Number,validator:function(e){return Cl(e)}}).def(this.defaults.integer)}},{key:"symbol",get:function(){return jl("symbol",{validator:function(e){return"symbol"==typeof e}})}}]),e}();function Dl(e){var t;return void 0===e&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(t){function n(){return t.apply(this,arguments)||this}return pl(n,t),cl(n,0,[{key:"sensibleDefaults",get:function(){return dl({},this.defaults)},set:function(t){this.defaults=!1!==t?dl({},!0!==t?t:e):{}}}]),n}(zl)).defaults=dl({},e),t}zl.defaults={},zl.custom=function(e,t){if(void 0===t&&(t="custom validation failed"),"function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return jl(e.name||"<<anonymous function>>",{validator:function(n){var o=e(n);return o||xl(this._vueTypes_name+" - "+t),o}})},zl.oneOf=function(e){if(!Sl(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce((function(e,t){if(null!=t){var n=t.constructor;-1===e.indexOf(n)&&e.push(n)}return e}),[]);return jl("oneOf",{type:n.length>0?n:void 0,validator:function(n){var o=-1!==e.indexOf(n);return o||xl(t),o}})},zl.instanceOf=function(e){return jl("instanceOf",{type:e})},zl.oneOfType=function(e){if(!Sl(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],o=0;o<e.length;o+=1){var r=e[o];if(Pl(r)){if(kl(r)&&"oneOf"===r._vueTypes_name){n=n.concat(r.type);continue}if(Ol(r.validator)&&(t=!0),!0!==r.type&&r.type){n=n.concat(r.type);continue}}n.push(r)}return n=n.filter((function(e,t){return n.indexOf(e)===t})),jl("oneOfType",t?{type:n,validator:function(t){var n=[],o=e.some((function(e){var o=El(kl(e)&&"oneOf"===e._vueTypes_name?e.type||null:e,t);return"string"==typeof o&&n.push(o),!0===o}));return o||xl("oneOfType - provided value does not match any of the "+n.length+" passed-in validators:\n"+Tl(n.join("\n"))),o}}:{type:n})},zl.arrayOf=function(e){return jl("arrayOf",{type:Array,validator:function(t){var n,o=t.every((function(t){return!0===(n=El(e,t))}));return o||xl("arrayOf - value validation error:\n"+Tl(n)),o}})},zl.objectOf=function(e){return jl("objectOf",{type:Object,validator:function(t){var n,o=Object.keys(t).every((function(o){return!0===(n=El(e,t[o]))}));return o||xl("objectOf - value validation error:\n"+Tl(n)),o}})},zl.shape=function(e){var t=Object.keys(e),n=t.filter((function(t){var n;return!(null===(n=e[t])||void 0===n||!n.required)})),o=jl("shape",{type:Object,validator:function(o){var r=this;if(!wl(o))return!1;var l=Object.keys(o);if(n.length>0&&n.some((function(e){return-1===l.indexOf(e)}))){var i=n.filter((function(e){return-1===l.indexOf(e)}));return xl(1===i.length?'shape - required property "'+i[0]+'" is not defined.':'shape - required properties "'+i.join('", "')+'" are not defined.'),!1}return l.every((function(n){if(-1===t.indexOf(n))return!0===r._vueTypes_isLoose||(xl('shape - shape definition does not include a "'+n+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var l=El(e[n],o[n]);return"string"==typeof l&&xl('shape - "'+n+'" property validation error:\n '+Tl(l)),!0===l}))}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),o},zl.utils={validate:function(e,t){return!0===El(t,e)},toType:function(e,t,n){return void 0===n&&(n=!1),n?Al(e,t):jl(e,t)}},function(e){function t(){return e.apply(this,arguments)||this}pl(t,e)}(Dl());const Rl=Dl({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});Rl.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);const Bl=(e,t,n)=>{bn(e,`[ant-design-vue: ${t}] ${n}`)};function Nl(e,t){const{key:n}=e;let o;return"value"in e&&({value:o}=e),n??(void 0!==o?o:`rc-index-key-${t}`)}function Fl(e,t){const{label:n,value:o,options:r}=e||{};return{label:n||(t?"children":"label"),value:o||"value",options:r||"options"}}function Hl(e){const t=De({},e);return"props"in t||Object.defineProperty(t,"props",{get:()=>t}),t}function Ll(){return""}function _l(e){return e?e.ownerDocument:window.document}function Wl(){}const Vl={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,arrow:{type:Boolean,default:!0},animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},Xl=De(De({},Vl),{mobile:{type:Object}}),Kl=De(De({},Vl),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function ql(e){let{prefixCls:t,animation:n,transitionName:o}=e;return n?{name:`${t}-${n}`}:o?{name:o}:{}}function Gl(e){const{prefixCls:t,visible:n,zIndex:o,mask:r,maskAnimation:l,maskTransitionName:i}=e;if(!r)return null;let a={};return(i||l)&&(a=ql({prefixCls:t,transitionName:i,animation:l})),$(S,ze({appear:!0},a),{default:()=>[O($("div",{style:{zIndex:o},class:`${t}-mask`},null),[[k("if"),n]])]})}Gl.displayName="Mask";const Ul=l({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:Xl,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,slots:o}=t;const r=b();return n({forceAlign:()=>{},getElement:()=>r.value}),()=>{var t;const{zIndex:n,visible:l,prefixCls:i,mobile:{popupClassName:a,popupStyle:s,popupMotion:u={},popupRender:c}={}}=e,d=De({zIndex:n},s);let p=xt(null===(t=o.default)||void 0===t?void 0:t.call(o));p.length>1&&(p=$("div",{class:`${i}-content`},[p])),c&&(p=c(p));const f=Ue(i,a);return $(S,ze({ref:r},u),{default:()=>[l?$("div",{class:f,style:d},[p]):null]})}}});var Yl=function(e,t,n,o){return new(n||(n=Promise))((function(r,l){function i(e){try{s(o.next(e))}catch(e){l(e)}}function a(e){try{s(o.throw(e))}catch(e){l(e)}}function s(e){e.done?r(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(i,a)}s((o=o.apply(e,t||[])).next())}))};const Zl=["measure","align",null,"motion"];function Ql(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Jl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ql(Object(n),!0).forEach((function(t){ti(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ql(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ei(e){return(ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ti(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ni,oi={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function ri(){if(void 0!==ni)return ni;ni="";var e=document.createElement("p").style;for(var t in oi)t+"Transform"in e&&(ni=t);return ni}function li(){return ri()?"".concat(ri(),"TransitionProperty"):"transitionProperty"}function ii(){return ri()?"".concat(ri(),"Transform"):"transform"}function ai(e,t){var n=li();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function si(e,t){var n=ii();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var ui,ci=/matrix\((.*)\)/,di=/matrix3d\((.*)\)/;function pi(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function fi(e,t,n){var o=n;if("object"!==ei(t))return typeof o<"u"?("number"==typeof o&&(o="".concat(o,"px")),void(e.style[t]=o)):ui(e,t);for(var r in t)t.hasOwnProperty(r)&&fi(e,r,t[r])}function vi(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function mi(e){return vi(e)}function hi(e){return vi(e,!0)}function gi(e){var t=function(e){var t,n,o,r=e.ownerDocument,l=r.body,i=r&&r.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),o=Math.floor(t.top),{left:n-=i.clientLeft||l.clientLeft||0,top:o-=i.clientTop||l.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=mi(o),t.top+=hi(o),t}function yi(e){return null!=e&&e==e.window}function bi(e){return yi(e)?e.document:9===e.nodeType?e:e.ownerDocument}var wi=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),xi=/^(top|right|bottom|left)$/,$i="currentStyle",Ci="runtimeStyle",Si="left";function Oi(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ki(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function Pi(e,t,n){"static"===fi(e,"position")&&(e.style.position="relative");var o=-999,r=-999,l=Oi("left",n),i=Oi("top",n),a=ki(l),s=ki(i);"left"!==l&&(o=999),"top"!==i&&(r=999);var u="",c=gi(e);("left"in t||"top"in t)&&(u=function(e){return e.style.transitionProperty||e.style[li()]}(e)||"",ai(e,"none")),"left"in t&&(e.style[a]="",e.style[l]="".concat(o,"px")),"top"in t&&(e.style[s]="",e.style[i]="".concat(r,"px")),pi(e);var d=gi(e),p={};for(var f in t)if(t.hasOwnProperty(f)){var v=Oi(f,n),m="left"===f?o:r,h=c[f]-d[f];p[v]=v===f?m+h:m-h}fi(e,p),pi(e),("left"in t||"top"in t)&&ai(e,u);var g={};for(var y in t)if(t.hasOwnProperty(y)){var b=Oi(y,n),w=t[y]-c[y];g[b]=y===b?p[b]+w:p[b]-w}fi(e,g)}function Ii(e,t){var n=gi(e),o=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(ii());if(n&&"none"!==n){var o=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}(e),r={x:o.x,y:o.y};"left"in t&&(r.x=o.x+t.left-n.left),"top"in t&&(r.y=o.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),o=n.getPropertyValue("transform")||n.getPropertyValue(ii());if(o&&"none"!==o){var r,l=o.match(ci);l?((r=(l=l[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,r[5]=t.y,si(e,"matrix(".concat(r.join(","),")"))):((r=o.match(di)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,r[13]=t.y,si(e,"matrix3d(".concat(r.join(","),")")))}else si(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,r)}function Ei(e,t){for(var n=0;n<e.length;n++)t(e[n])}function ji(e){return"border-box"===ui(e,"boxSizing")}typeof window<"u"&&(ui=window.getComputedStyle?function(e,t,n){var o=n,r="",l=bi(e);return(o=o||l.defaultView.getComputedStyle(e,null))&&(r=o.getPropertyValue(t)||o[t]),r}:function(e,t){var n=e[$i]&&e[$i][t];if(wi.test(n)&&!xi.test(t)){var o=e.style,r=o[Si],l=e[Ci][Si];e[Ci][Si]=e[$i][Si],o[Si]="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o[Si]=r,e[Ci][Si]=l}return""===n?"auto":n});var Ai=["margin","border","padding"];function Mi(e,t,n){var o,r,l,i=0;for(r=0;r<t.length;r++)if(o=t[r])for(l=0;l<n.length;l++){var a=void 0;a="border"===o?"".concat(o).concat(n[l],"Width"):o+n[l],i+=parseFloat(ui(e,a))||0}return i}var Ti={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function zi(e,t,n){var o=n;if(yi(e))return"width"===t?Ti.viewportWidth(e):Ti.viewportHeight(e);if(9===e.nodeType)return"width"===t?Ti.docWidth(e):Ti.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],l=Math.floor("width"===t?e.getBoundingClientRect().width:e.getBoundingClientRect().height),i=ji(e),a=0;(null==l||l<=0)&&(l=void 0,(null==(a=ui(e,t))||Number(a)<0)&&(a=e.style[t]||0),a=Math.floor(parseFloat(a))||0),void 0===o&&(o=i?1:-1);var s=void 0!==l||i,u=l||a;return-1===o?s?u-Mi(e,["border","padding"],r):a:s?1===o?u:u+(2===o?-Mi(e,["border"],r):Mi(e,["margin"],r)):a+Mi(e,Ai.slice(o),r)}Ei(["Width","Height"],(function(e){Ti["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],Ti["viewport".concat(e)](n))},Ti["viewport".concat(e)]=function(t){var n="client".concat(e),o=t.document,r=o.body,l=o.documentElement[n];return"CSS1Compat"===o.compatMode&&l||r&&r[n]||l}}));var Di={position:"absolute",visibility:"hidden",display:"block"};function Ri(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,r=t[0];return 0!==r.offsetWidth?o=zi.apply(void 0,t):function(e,t,n){var o,r={},l=e.style;for(o in t)t.hasOwnProperty(o)&&(r[o]=l[o],l[o]=t[o]);for(o in n.call(e),t)t.hasOwnProperty(o)&&(l[o]=r[o])}(r,Di,(function(){o=zi.apply(void 0,t)})),o}function Bi(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}Ei(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);Ti["outer".concat(t)]=function(t,n){return t&&Ri(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];Ti[e]=function(t,o){var r=o;return void 0!==r?t?(ji(t)&&(r+=Mi(t,["padding","border"],n)),fi(t,e,r)):void 0:t&&Ri(t,e,-1)}}));var Ni={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:bi,offset:function(e,t,n){if(!(typeof t<"u"))return gi(e);!function(e,t,n){if(n.ignoreShake){var o=gi(e),r=o.left.toFixed(0),l=o.top.toFixed(0),i=t.left.toFixed(0),a=t.top.toFixed(0);if(r===i&&l===a)return}n.useCssRight||n.useCssBottom?Pi(e,t,n):n.useCssTransform&&ii()in document.body.style?Ii(e,t):Pi(e,t,n)}(e,t,n||{})},isWindow:yi,each:Ei,css:fi,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:Bi,getWindowScrollLeft:function(e){return mi(e)},getWindowScrollTop:function(e){return hi(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)Ni.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};Bi(Ni,Ti);var Fi=Ni.getParent;function Hi(e){if(Ni.isWindow(e)||9===e.nodeType)return null;var t,n=Ni.getDocument(e).body,o=Ni.css(e,"position");if(!("fixed"===o||"absolute"===o))return"html"===e.nodeName.toLowerCase()?null:Fi(e);for(t=Fi(e);t&&t!==n&&9!==t.nodeType;t=Fi(t))if("static"!==(o=Ni.css(t,"position")))return t;return null}var Li=Ni.getParent;function _i(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},o=Hi(e),r=Ni.getDocument(e),l=r.defaultView||r.parentWindow,i=r.body,a=r.documentElement;o;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===o.clientWidth||o===i||o===a||"visible"===Ni.css(o,"overflow")){if(o===i||o===a)break}else{var s=Ni.offset(o);s.left+=o.clientLeft,s.top+=o.clientTop,n.top=Math.max(n.top,s.top),n.right=Math.min(n.right,s.left+o.clientWidth),n.bottom=Math.min(n.bottom,s.top+o.clientHeight),n.left=Math.max(n.left,s.left)}o=Hi(o)}var u=null;Ni.isWindow(e)||9===e.nodeType||(u=e.style.position,"absolute"===Ni.css(e,"position")&&(e.style.position="fixed"));var c=Ni.getWindowScrollLeft(l),d=Ni.getWindowScrollTop(l),p=Ni.viewportWidth(l),f=Ni.viewportHeight(l),v=a.scrollWidth,m=a.scrollHeight,h=window.getComputedStyle(i);if("hidden"===h.overflowX&&(v=l.innerWidth),"hidden"===h.overflowY&&(m=l.innerHeight),e.style&&(e.style.position=u),t||function(e){if(Ni.isWindow(e)||9===e.nodeType)return!1;var t=Ni.getDocument(e),n=t.body,o=null;for(o=Li(e);o&&o!==n&&o!==t;o=Li(o))if("fixed"===Ni.css(o,"position"))return!0;return!1}(e))n.left=Math.max(n.left,c),n.top=Math.max(n.top,d),n.right=Math.min(n.right,c+p),n.bottom=Math.min(n.bottom,d+f);else{var g=Math.max(v,c+p);n.right=Math.min(n.right,g);var y=Math.max(m,d+f);n.bottom=Math.min(n.bottom,y)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Wi(e){var t,n,o;if(Ni.isWindow(e)||9===e.nodeType){var r=Ni.getWindow(e);t={left:Ni.getWindowScrollLeft(r),top:Ni.getWindowScrollTop(r)},n=Ni.viewportWidth(r),o=Ni.viewportHeight(r)}else t=Ni.offset(e),n=Ni.outerWidth(e),o=Ni.outerHeight(e);return t.width=n,t.height=o,t}function Vi(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,l=e.height,i=e.left,a=e.top;return"c"===n?a+=l/2:"b"===n&&(a+=l),"c"===o?i+=r/2:"r"===o&&(i+=r),{left:i,top:a}}function Xi(e,t,n,o,r){var l=Vi(t,n[1]),i=Vi(e,n[0]),a=[i.left-l.left,i.top-l.top];return{left:Math.round(e.left-a[0]+o[0]-r[0]),top:Math.round(e.top-a[1]+o[1]-r[1])}}function Ki(e,t,n){return e.left<n.left||e.left+t.width>n.right}function qi(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function Gi(e,t,n){var o=[];return Ni.each(e,(function(e){o.push(e.replace(t,(function(e){return n[e]})))})),o}function Ui(e,t){return e[t]=-e[t],e}function Yi(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Zi(e,t){e[0]=Yi(e[0],t.width),e[1]=Yi(e[1],t.height)}function Qi(e,t,n,o){var r=n.points,l=n.offset||[0,0],i=n.targetOffset||[0,0],a=n.overflow,s=n.source||e;l=[].concat(l),i=[].concat(i);var u={},c=0,d=_i(s,!(!(a=a||{})||!a.alwaysByViewport)),p=Wi(s);Zi(l,p),Zi(i,t);var f=Xi(p,t,r,l,i),v=Ni.merge(p,f);if(d&&(a.adjustX||a.adjustY)&&o){if(a.adjustX&&Ki(f,p,d)){var m=Gi(r,/[lr]/gi,{l:"r",r:"l"}),h=Ui(l,0),g=Ui(i,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Xi(p,t,m,h,g),p,d)||(c=1,r=m,l=h,i=g)}if(a.adjustY&&qi(f,p,d)){var y=Gi(r,/[tb]/gi,{t:"b",b:"t"}),b=Ui(l,1),w=Ui(i,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Xi(p,t,y,b,w),p,d)||(c=1,r=y,l=b,i=w)}c&&(f=Xi(p,t,r,l,i),Ni.mix(v,f));var x=Ki(f,p,d),$=qi(f,p,d);if(x||$){var C=r;x&&(C=Gi(r,/[lr]/gi,{l:"r",r:"l"})),$&&(C=Gi(r,/[tb]/gi,{t:"b",b:"t"})),r=C,l=n.offset||[0,0],i=n.targetOffset||[0,0]}u.adjustX=a.adjustX&&x,u.adjustY=a.adjustY&&$,(u.adjustX||u.adjustY)&&(v=function(e,t,n,o){var r=Ni.clone(e),l={width:t.width,height:t.height};return o.adjustX&&r.left<n.left&&(r.left=n.left),o.resizeWidth&&r.left>=n.left&&r.left+l.width>n.right&&(l.width-=r.left+l.width-n.right),o.adjustX&&r.left+l.width>n.right&&(r.left=Math.max(n.right-l.width,n.left)),o.adjustY&&r.top<n.top&&(r.top=n.top),o.resizeHeight&&r.top>=n.top&&r.top+l.height>n.bottom&&(l.height-=r.top+l.height-n.bottom),o.adjustY&&r.top+l.height>n.bottom&&(r.top=Math.max(n.bottom-l.height,n.top)),Ni.mix(r,l)}(f,p,d,u))}return v.width!==p.width&&Ni.css(s,"width",Ni.width(s)+v.width-p.width),v.height!==p.height&&Ni.css(s,"height",Ni.height(s)+v.height-p.height),Ni.offset(s,{left:v.left,top:v.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:r,offset:l,targetOffset:i,overflow:u}}function Ji(e,t,n){var o=n.target||t,r=Wi(o),l=!function(e,t){var n=_i(e,t),o=Wi(e);return!n||o.left+o.width<=n.left||o.top+o.height<=n.top||o.left>=n.right||o.top>=n.bottom}(o,n.overflow&&n.overflow.alwaysByViewport);return Qi(e,r,n,l)}function ea(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e;if(Array.isArray(e)&&(r=Pt(e)[0]),!r)return null;const l=P(r,t,o);return l.props=n?De(De({},l.props),t):l.props,wn("object"!=typeof l.props.class),l}Ji.__getOffsetParent=Hi,Ji.__getVisibleRectForElement=_i;const ta=e=>{if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){const t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){const t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1};function na(e,t){let n=null,o=null;const r=new gt((function(e){let[{target:r}]=e;if(!document.documentElement.contains(r))return;const{width:l,height:i}=r.getBoundingClientRect(),a=Math.floor(l),s=Math.floor(i);(n!==a||o!==s)&&Promise.resolve().then((()=>{t({width:a,height:s})})),n=a,o=s}));return e&&r.observe(e),()=>{r.disconnect()}}function oa(e,t){return e===t||e!=e&&t!=t}function ra(e,t){for(var n=e.length;n--;)if(oa(e[n][0],t))return n;return-1}var la=Array.prototype.splice;function ia(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}ia.prototype.clear=function(){this.__data__=[],this.size=0},ia.prototype.delete=function(e){var t=this.__data__,n=ra(t,e);return!(n<0)&&(n==t.length-1?t.pop():la.call(t,n,1),--this.size,!0)},ia.prototype.get=function(e){var t=this.__data__,n=ra(t,e);return n<0?void 0:t[n][1]},ia.prototype.has=function(e){return ra(this.__data__,e)>-1},ia.prototype.set=function(e,t){var n=this.__data__,o=ra(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};var aa="object"==typeof global&&global&&global.Object===Object&&global,sa="object"==typeof self&&self&&self.Object===Object&&self,ua=aa||sa||Function("return this")(),ca=ua.Symbol,da=Object.prototype,pa=da.hasOwnProperty,fa=da.toString,va=ca?ca.toStringTag:void 0;var ma=Object.prototype.toString;var ha=ca?ca.toStringTag:void 0;function ga(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ha&&ha in Object(e)?function(e){var t=pa.call(e,va),n=e[va];try{e[va]=void 0;var o=!0}catch{}var r=fa.call(e);return o&&(t?e[va]=n:delete e[va]),r}(e):function(e){return ma.call(e)}(e)}function ya(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ba(e){if(!ya(e))return!1;var t=ga(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var wa,xa=ua["__core-js_shared__"],$a=(wa=/[^.]+$/.exec(xa&&xa.keys&&xa.keys.IE_PROTO||""))?"Symbol(src)_1."+wa:"";var Ca=Function.prototype.toString;function Sa(e){if(null!=e){try{return Ca.call(e)}catch{}try{return e+""}catch{}}return""}var Oa=/^\[object .+?Constructor\]$/,ka=Function.prototype,Pa=Object.prototype,Ia=ka.toString,Ea=Pa.hasOwnProperty,ja=RegExp("^"+Ia.call(Ea).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Aa(e){return!(!ya(e)||function(e){return!!$a&&$a in e}(e))&&(ba(e)?ja:Oa).test(Sa(e))}function Ma(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Aa(n)?n:void 0}var Ta=Ma(ua,"Map"),za=Ma(Object,"create");var Da=Object.prototype.hasOwnProperty;var Ra=Object.prototype.hasOwnProperty;function Ba(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Na(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Fa(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Ba.prototype.clear=function(){this.__data__=za?za(null):{},this.size=0},Ba.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ba.prototype.get=function(e){var t=this.__data__;if(za){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Da.call(t,e)?t[e]:void 0},Ba.prototype.has=function(e){var t=this.__data__;return za?void 0!==t[e]:Ra.call(t,e)},Ba.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=za&&void 0===t?"__lodash_hash_undefined__":t,this},Fa.prototype.clear=function(){this.size=0,this.__data__={hash:new Ba,map:new(Ta||ia),string:new Ba}},Fa.prototype.delete=function(e){var t=Na(this,e).delete(e);return this.size-=t?1:0,t},Fa.prototype.get=function(e){return Na(this,e).get(e)},Fa.prototype.has=function(e){return Na(this,e).has(e)},Fa.prototype.set=function(e,t){var n=Na(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};function Ha(e){var t=this.__data__=new ia(e);this.size=t.size}Ha.prototype.clear=function(){this.__data__=new ia,this.size=0},Ha.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ha.prototype.get=function(e){return this.__data__.get(e)},Ha.prototype.has=function(e){return this.__data__.has(e)},Ha.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ia){var o=n.__data__;if(!Ta||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Fa(o)}return n.set(e,t),this.size=n.size,this};function La(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Fa;++t<n;)this.add(e[t])}function _a(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}function Wa(e,t){return e.has(t)}La.prototype.add=La.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},La.prototype.has=function(e){return this.__data__.has(e)};function Va(e,t,n,o,r,l){var i=1&n,a=e.length,s=t.length;if(a!=s&&!(i&&s>a))return!1;var u=l.get(e),c=l.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,f=2&n?new La:void 0;for(l.set(e,t),l.set(t,e);++d<a;){var v=e[d],m=t[d];if(o)var h=i?o(m,v,d,t,e,l):o(v,m,d,e,t,l);if(void 0!==h){if(h)continue;p=!1;break}if(f){if(!_a(t,(function(e,t){if(!Wa(f,t)&&(v===e||r(v,e,n,o,l)))return f.push(t)}))){p=!1;break}}else if(v!==m&&!r(v,m,n,o,l)){p=!1;break}}return l.delete(e),l.delete(t),p}var Xa=ua.Uint8Array;function Ka(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n}function qa(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Ga=ca?ca.prototype:void 0,Ua=Ga?Ga.valueOf:void 0;function Ya(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e}var Za=Array.isArray;function Qa(e,t,n){var o=t(e);return Za(e)?o:Ya(o,n(e))}function Ja(){return[]}var es=Object.prototype.propertyIsEnumerable,ts=Object.getOwnPropertySymbols,ns=ts?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,l=[];++n<o;){var i=e[n];t(i,n,e)&&(l[r++]=i)}return l}(ts(e),(function(t){return es.call(e,t)})))}:Ja;function os(e){return null!=e&&"object"==typeof e}function rs(e){return os(e)&&"[object Arguments]"==ga(e)}var ls=Object.prototype,is=ls.hasOwnProperty,as=ls.propertyIsEnumerable,ss=rs(function(){return arguments}())?rs:function(e){return os(e)&&is.call(e,"callee")&&!as.call(e,"callee")};var us="object"==typeof exports&&exports&&!exports.nodeType&&exports,cs=us&&"object"==typeof module&&module&&!module.nodeType&&module,ds=cs&&cs.exports===us?ua.Buffer:void 0,ps=(ds?ds.isBuffer:void 0)||function(){return!1},fs=/^(?:0|[1-9]\d*)$/;function vs(e,t){var n=typeof e;return!!(t=t??9007199254740991)&&("number"==n||"symbol"!=n&&fs.test(e))&&e>-1&&e%1==0&&e<t}function ms(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var hs={};function gs(e){return function(t){return e(t)}}hs["[object Float32Array]"]=hs["[object Float64Array]"]=hs["[object Int8Array]"]=hs["[object Int16Array]"]=hs["[object Int32Array]"]=hs["[object Uint8Array]"]=hs["[object Uint8ClampedArray]"]=hs["[object Uint16Array]"]=hs["[object Uint32Array]"]=!0,hs["[object Arguments]"]=hs["[object Array]"]=hs["[object ArrayBuffer]"]=hs["[object Boolean]"]=hs["[object DataView]"]=hs["[object Date]"]=hs["[object Error]"]=hs["[object Function]"]=hs["[object Map]"]=hs["[object Number]"]=hs["[object Object]"]=hs["[object RegExp]"]=hs["[object Set]"]=hs["[object String]"]=hs["[object WeakMap]"]=!1;var ys="object"==typeof exports&&exports&&!exports.nodeType&&exports,bs=ys&&"object"==typeof module&&module&&!module.nodeType&&module,ws=bs&&bs.exports===ys&&aa.process,xs=function(){try{return bs&&bs.require&&bs.require("util").types||ws&&ws.binding&&ws.binding("util")}catch{}}(),$s=xs&&xs.isTypedArray,Cs=$s?gs($s):function(e){return os(e)&&ms(e.length)&&!!hs[ga(e)]},Ss=Object.prototype.hasOwnProperty;function Os(e,t){var n=Za(e),o=!n&&ss(e),r=!n&&!o&&ps(e),l=!n&&!o&&!r&&Cs(e),i=n||o||r||l,a=i?function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}(e.length,String):[],s=a.length;for(var u in e)(t||Ss.call(e,u))&&(!i||!("length"==u||r&&("offset"==u||"parent"==u)||l&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||vs(u,s)))&&a.push(u);return a}var ks=Object.prototype;function Ps(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ks)}function Is(e,t){return function(n){return e(t(n))}}var Es=Is(Object.keys,Object),js=Object.prototype.hasOwnProperty;function As(e){if(!Ps(e))return Es(e);var t=[];for(var n in Object(e))js.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ms(e){return null!=e&&ms(e.length)&&!ba(e)}function Ts(e){return Ms(e)?Os(e):As(e)}function zs(e){return Qa(e,Ts,ns)}var Ds=Object.prototype.hasOwnProperty;var Rs=Ma(ua,"DataView"),Bs=Ma(ua,"Promise"),Ns=Ma(ua,"Set"),Fs=Ma(ua,"WeakMap"),Hs="[object Map]",Ls="[object Promise]",_s="[object Set]",Ws="[object WeakMap]",Vs="[object DataView]",Xs=Sa(Rs),Ks=Sa(Ta),qs=Sa(Bs),Gs=Sa(Ns),Us=Sa(Fs),Ys=ga;(Rs&&Ys(new Rs(new ArrayBuffer(1)))!=Vs||Ta&&Ys(new Ta)!=Hs||Bs&&Ys(Bs.resolve())!=Ls||Ns&&Ys(new Ns)!=_s||Fs&&Ys(new Fs)!=Ws)&&(Ys=function(e){var t=ga(e),n="[object Object]"==t?e.constructor:void 0,o=n?Sa(n):"";if(o)switch(o){case Xs:return Vs;case Ks:return Hs;case qs:return Ls;case Gs:return _s;case Us:return Ws}return t});var Zs="[object Arguments]",Qs="[object Array]",Js="[object Object]",eu=Object.prototype.hasOwnProperty;function tu(e,t,n,o,r,l){var i=Za(e),a=Za(t),s=i?Qs:Ys(e),u=a?Qs:Ys(t),c=(s=s==Zs?Js:s)==Js,d=(u=u==Zs?Js:u)==Js,p=s==u;if(p&&ps(e)){if(!ps(t))return!1;i=!0,c=!1}if(p&&!c)return l||(l=new Ha),i||Cs(e)?Va(e,t,n,o,r,l):function(e,t,n,o,r,l,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!l(new Xa(e),new Xa(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return oa(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=Ka;case"[object Set]":var s=1&o;if(a||(a=qa),e.size!=t.size&&!s)return!1;var u=i.get(e);if(u)return u==t;o|=2,i.set(e,t);var c=Va(a(e),a(t),o,r,l,i);return i.delete(e),c;case"[object Symbol]":if(Ua)return Ua.call(e)==Ua.call(t)}return!1}(e,t,s,n,o,r,l);if(!(1&n)){var f=c&&eu.call(e,"__wrapped__"),v=d&&eu.call(t,"__wrapped__");if(f||v){var m=f?e.value():e,h=v?t.value():t;return l||(l=new Ha),r(m,h,n,o,l)}}return!!p&&(l||(l=new Ha),function(e,t,n,o,r,l){var i=1&n,a=zs(e),s=a.length;if(s!=zs(t).length&&!i)return!1;for(var u=s;u--;){var c=a[u];if(!(i?c in t:Ds.call(t,c)))return!1}var d=l.get(e),p=l.get(t);if(d&&p)return d==t&&p==e;var f=!0;l.set(e,t),l.set(t,e);for(var v=i;++u<s;){var m=e[c=a[u]],h=t[c];if(o)var g=i?o(h,m,c,t,e,l):o(m,h,c,e,t,l);if(!(void 0===g?m===h||r(m,h,n,o,l):g)){f=!1;break}v||(v="constructor"==c)}if(f&&!v){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(f=!1)}return l.delete(e),l.delete(t),f}(e,t,n,o,r,l))}function nu(e,t,n,o,r){return e===t||(null==e||null==t||!os(e)&&!os(t)?e!=e&&t!=t:tu(e,t,n,o,nu,r))}function ou(e,t){return nu(e,t)}const ru={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function lu(e){return"function"!=typeof e?null:e()}function iu(e){return"object"==typeof e&&e?e:null}const au=l({compatConfig:{MODE:3},name:"Align",props:ru,emits:["align"],setup(e,t){let{expose:o,slots:r}=t;const l=b({}),a=b(),[s,u]=((e,t)=>{let n=!1,o=null;function r(){clearTimeout(o)}return[function l(i){if(n&&!0!==i)r(),o=setTimeout((()=>{n=!1,l()}),t.value);else{if(!1===e())return;n=!0,r(),o=setTimeout((()=>{n=!1}),t.value)}},()=>{n=!1,r()}]})((()=>{const{disabled:t,target:n,align:o,onAlign:r}=e;if(!t&&n&&a.value){const e=a.value;let t;const i=lu(n),s=iu(n);l.value.element=i,l.value.point=s,l.value.align=o;const{activeElement:u}=document;return i&&ta(i)?t=Ji(e,i,o):s&&(t=function(e,t,n){var o,r,l=Ni.getDocument(e),i=l.defaultView||l.parentWindow,a=Ni.getWindowScrollLeft(i),s=Ni.getWindowScrollTop(i),u=Ni.viewportWidth(i),c=Ni.viewportHeight(i),d={left:o="pageX"in t?t.pageX:a+t.clientX,top:r="pageY"in t?t.pageY:s+t.clientY,width:0,height:0},p=o>=0&&o<=a+u&&r>=0&&r<=s+c,f=[n.points[0],"cc"];return Qi(e,d,Jl(Jl({},n),{},{points:f}),p)}(e,s,o)),function(e,t){e!==document.activeElement&&an(t,e)&&"function"==typeof e.focus&&e.focus()}(u,e),r&&t&&r(e,t),!0}return!1}),n((()=>e.monitorBufferTime))),c=b({cancel:()=>{}}),d=b({cancel:()=>{}}),p=()=>{const t=e.target,n=lu(t),o=iu(t);a.value!==d.value.element&&(d.value.cancel(),d.value.element=a.value,d.value.cancel=na(a.value,s)),(l.value.element!==n||!function(e,t){return e===t||!(!e||!t)&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY)}(l.value.point,o)||!ou(l.value.align,e.align))&&(s(),c.value.element!==n&&(c.value.cancel(),c.value.element=n,c.value.cancel=na(n,s)))};h((()=>{I((()=>{p()}))})),g((()=>{I((()=>{p()}))})),i((()=>e.disabled),(e=>{e?u():s()}),{immediate:!0,flush:"post"});const f=b(null);return i((()=>e.monitorWindowResize),(e=>{e?f.value||(f.value=Nt(window,"resize",s)):f.value&&(f.value.remove(),f.value=null)}),{flush:"post"}),y((()=>{c.value.cancel(),d.value.cancel(),f.value&&f.value.remove(),u()})),o({forceAlign:()=>s(!0)}),()=>{const e=null==r?void 0:r.default();return e?ea(e[0],{ref:a},!0,!0):null}}});re("bottomLeft","bottomRight","topLeft","topRight");const su=e=>void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down",uu=function(e){return De(e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`}:{css:!1},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})},cu=function(e){return De(e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`}:{css:!1},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})},du=(e,t,n)=>void 0!==n?n:`${e}-${t}`,pu=l({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:Vl,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:o,attrs:r,slots:l}=t;const a=s(),u=s(),c=s(),[d,p]=(e=>{const t=s({width:0,height:0});return[n((()=>{const n={};if(e.value){const{width:o,height:r}=t.value;-1!==e.value.indexOf("height")&&r?n.height=`${r}px`:-1!==e.value.indexOf("minHeight")&&r&&(n.minHeight=`${r}px`),-1!==e.value.indexOf("width")&&o?n.width=`${o}px`:-1!==e.value.indexOf("minWidth")&&o&&(n.minWidth=`${o}px`)}return n})),function(e){t.value={width:e.offsetWidth,height:e.offsetHeight}}]})(E(e,"stretch")),f=s(!1);let v;i((()=>e.visible),(t=>{clearTimeout(v),t?v=setTimeout((()=>{f.value=e.visible})):f.value=!1}),{immediate:!0});const[m,g]=((e,t)=>{const n=s(null),o=s(),r=s(!1);function l(e){r.value||(n.value=e)}function a(){Rt.cancel(o.value)}return i(e,(()=>{l("measure")}),{immediate:!0,flush:"post"}),h((()=>{i(n,(()=>{"measure"===n.value&&t(),n.value&&(o.value=Rt((()=>Yl(void 0,void 0,void 0,(function*(){const e=Zl.indexOf(n.value),t=Zl[e+1];t&&-1!==e&&l(t)})))))}),{immediate:!0,flush:"post"})})),x((()=>{r.value=!0,a()})),[n,function(e){a(),o.value=Rt((()=>{let t=n.value;switch(n.value){case"align":t="motion";break;case"motion":t="stable"}l(t),null==e||e()}))}]})(f,(()=>{e.stretch&&p(e.getRootDomNode())})),y=s(),b=()=>{var e;null===(e=a.value)||void 0===e||e.forceAlign()},w=(t,n)=>{var o;const r=e.getClassNameFromAlign(n),l=c.value;c.value!==r&&(c.value=r),"align"===m.value&&(l!==r?Promise.resolve().then((()=>{b()})):g((()=>{var e;null===(e=y.value)||void 0===e||e.call(y)})),null===(o=e.onAlign)||void 0===o||o.call(e,t,n))},C=n((()=>{const t="object"==typeof e.animation?e.animation:ql(e);return["onAfterEnter","onAfterLeave"].forEach((e=>{const n=t[e];t[e]=e=>{g(),m.value="stable",null==n||n(e)}})),t})),k=()=>new Promise((e=>{y.value=e}));i([C,m],(()=>{!C.value&&"motion"===m.value&&g()}),{immediate:!0}),o({forceAlign:b,getElement:()=>u.value.$el||u.value});const P=n((()=>{var t;return!(null!==(t=e.align)&&void 0!==t&&t.points&&("align"===m.value||"stable"===m.value))}));return()=>{var t;const{zIndex:n,align:o,prefixCls:i,destroyPopupOnHide:s,onMouseenter:p,onMouseleave:v,onTouchstart:h=()=>{},onMousedown:g}=e,y=m.value,b=[De(De({},d.value),{zIndex:n,opacity:"motion"!==y&&"stable"!==y&&f.value?0:null,pointerEvents:f.value||"stable"===y?null:"none"}),r.style];let x=xt(null===(t=l.default)||void 0===t?void 0:t.call(l,{visible:e.visible}));x.length>1&&(x=$("div",{class:`${i}-content`},[x]));const I=Ue(i,r.class,c.value,!e.arrow&&`${i}-arrow-hidden`),E=f.value||!e.visible?uu(C.value.name,C.value):{};return $(S,ze(ze({ref:u},E),{},{onBeforeEnter:k}),{default:()=>!s||e.visible?O($(au,{target:e.point?e.point:e.getRootDomNode,key:"popup",ref:a,monitorWindowResize:!0,disabled:P.value,align:o,onAlign:w},{default:()=>$("div",{class:I,onMouseenter:p,onMouseleave:v,onMousedown:j(g,["capture"]),[Bt?"onTouchstartPassive":"onTouchstart"]:j(h,["capture"]),style:b},[x])}),[[A,f.value]]):null})}}}),fu=l({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:Kl,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const l=s(!1),a=s(!1),u=s(),c=s();return i([()=>e.visible,()=>e.mobile],(()=>{l.value=e.visible,e.visible&&e.mobile&&(a.value=!0)}),{immediate:!0,flush:"post"}),r({forceAlign:()=>{var e;null===(e=u.value)||void 0===e||e.forceAlign()},getElement:()=>{var e;return null===(e=u.value)||void 0===e?void 0:e.getElement()}}),()=>{const t=De(De(De({},e),n),{visible:l.value}),r=a.value?$(Ul,ze(ze({},t),{},{mobile:e.mobile,ref:u}),{default:o.default}):$(pu,ze(ze({},t),{},{ref:u}),{default:o.default});return $("div",{ref:c},[$(Gl,t,null),r])}}});function vu(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function mu(e,t,n){return De(De({},e[t]||{}),n)}const hu={methods:{setState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n="function"==typeof e?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){const e=this.getDerivedStateFromProps(Ct(this),De(De({},this.$data),n));if(null===e)return;n=De(De({},n),e||{})}De(this.$data,n),this._.isMounted&&this.$forceUpdate(),I((()=>{t&&t()}))},__emit(){const e=[].slice.call(arguments,0);let t=e[0];t=`on${t[0].toUpperCase()}${t.substring(1)}`;const n=this.$props[t]||this.$attrs[t];if(e.length&&n)if(Array.isArray(n))for(let t=0,o=n.length;t<o;t++)n[t](...e.slice(1));else n(...e.slice(1))}}},gu=Symbol("PortalContextKey"),yu=function(e){r(gu,{inTriggerContext:(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inTriggerContext:!0}).inTriggerContext,shouldRender:n((()=>{const{sPopupVisible:t,popupRef:n,forceRender:o,autoDestroy:r}=e||{};let l=!1;return(t||n||o)&&(l=!0),!t&&r&&(l=!1),l}))})},bu=l({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:Rl.func.isRequired,didUpdate:Function},setup(e,t){let r,{slots:l}=t,a=!0;const{shouldRender:s}=(()=>{yu({},{inTriggerContext:!1});const e=o(gu,{shouldRender:n((()=>!1)),inTriggerContext:!1});return{shouldRender:n((()=>e.shouldRender.value||!1===e.inTriggerContext))}})();function u(){s.value&&(r=e.getContainer())}M((()=>{a=!1,u()})),h((()=>{r||u()}));const c=i(s,(()=>{s.value&&!r&&(r=e.getContainer()),r&&c()}));return g((()=>{I((()=>{var t;s.value&&(null===(t=e.didUpdate)||void 0===t||t.call(e,e))}))})),()=>{var e;return s.value?a?null===(e=l.default)||void 0===e?void 0:e.call(l):r?$(T,{to:r},l):null:null}}});let wu;const xu=`vc-util-locker-${Date.now()}`;let $u=0;function Cu(e){const t=n((()=>!!e&&!!e.value));$u+=1;const o=`${xu}_${$u}`;w((e=>{if(ln()){if(t.value){const e=function(){if(typeof document>"u")return 0;if(void 0===wu){const e=document.createElement("div");e.style.width="100%",e.style.height="200px";const t=document.createElement("div"),n=t.style;n.position="absolute",n.top="0",n.left="0",n.pointerEvents="none",n.visibility="hidden",n.width="200px",n.height="150px",n.overflow="hidden",t.appendChild(e),document.body.appendChild(t);const o=e.offsetWidth;t.style.overflow="scroll";let r=e.offsetWidth;o===r&&(r=t.clientWidth),document.body.removeChild(t),wu=o-r}return wu}();hn(`\nhtml body {\n overflow-y: hidden;\n ${document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?`width: calc(100% - ${e}px);`:""}\n}`,o)}else mn(o);e((()=>{mn(o)}))}}),{flush:"post"})}let Su=0;const Ou=ln(),ku=e=>{if(!Ou)return null;if(e){if("string"==typeof e)return document.querySelectorAll(e)[0];if("function"==typeof e)return e();if("object"==typeof e&&e instanceof window.HTMLElement)return e}return document.body},Pu=l({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:Rl.any,visible:{type:Boolean,default:void 0},autoLock:se(),didUpdate:Function},setup(e,t){let{slots:o}=t;const r=s(),l=s(),a=s(),u=s(1),c=ln()&&document.createElement("div"),d=()=>{var e,t;r.value===c&&(null===(t=null===(e=r.value)||void 0===e?void 0:e.parentNode)||void 0===t||t.removeChild(r.value)),r.value=null};let p=null;const f=function(){return!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||r.value&&!r.value.parentNode)||(p=ku(e.getContainer),!!p&&(p.appendChild(r.value),!0))},v=()=>Ou?(r.value||(r.value=c,f(!0)),m(),r.value):null,m=()=>{const{wrapperClassName:t}=e;r.value&&t&&t!==r.value.className&&(r.value.className=t)};return g((()=>{m(),f()})),Cu(n((()=>e.autoLock&&e.visible&&ln()&&(r.value===document.body||r.value===c)))),h((()=>{let t=!1;i([()=>e.visible,()=>e.getContainer],((n,o)=>{let[r,l]=n,[i,a]=o;Ou&&(p=ku(e.getContainer),p===document.body&&(r&&!i?Su+=1:t&&(Su-=1))),t&&("function"==typeof l&&"function"==typeof a?l.toString()!==a.toString():l!==a)&&d(),t=!0}),{immediate:!0,flush:"post"}),I((()=>{f()||(a.value=Rt((()=>{u.value+=1})))}))})),x((()=>{const{visible:t}=e;Ou&&p===document.body&&(Su=t&&Su?Su-1:Su),d(),Rt.cancel(a.value)})),()=>{const{forceRender:t,visible:n}=e;let r=null;const i={getOpenCount:()=>Su,getContainer:v};return u.value&&(t||n||l.value)&&(r=$(bu,{getContainer:v,ref:l,didUpdate:e.didUpdate},{default:()=>{var e;return null===(e=o.default)||void 0===e?void 0:e.call(o,i)}})),r}}}),Iu=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],Eu=l({compatConfig:{MODE:3},name:"Trigger",mixins:[hu],inheritAttrs:!1,props:{action:Rl.oneOfType([Rl.string,Rl.arrayOf(Rl.string)]).def([]),showAction:Rl.any.def([]),hideAction:Rl.any.def([]),getPopupClassNameFromAlign:Rl.any.def(Ll),onPopupVisibleChange:Function,afterPopupVisibleChange:Rl.func.def(Wl),popup:Rl.any,arrow:Rl.bool.def(!0),popupStyle:{type:Object,default:void 0},prefixCls:Rl.string.def("rc-trigger-popup"),popupClassName:Rl.string.def(""),popupPlacement:String,builtinPlacements:Rl.object,popupTransitionName:String,popupAnimation:Rl.any,mouseEnterDelay:Rl.number.def(0),mouseLeaveDelay:Rl.number.def(.1),zIndex:Number,focusDelay:Rl.number.def(0),blurDelay:Rl.number.def(.15),getPopupContainer:Function,getDocument:Rl.func.def(_l),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:Rl.object.def((()=>({}))),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function},setup(e){const t=n((()=>{const{popupPlacement:t,popupAlign:n,builtinPlacements:o}=e;return t&&o?mu(o,t,n):n})),r=s(null);return{vcTriggerContext:o("vcTriggerContext",{}),popupRef:r,setPopupRef:e=>{r.value=e},triggerRef:s(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const e=this.$props;let t;return t=void 0!==this.popupVisible?!!e.popupVisible:!!e.defaultPopupVisible,Iu.forEach((e=>{this[`fire${e}`]=t=>{this.fireEvents(e,t)}})),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible(e){void 0!==e&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created(){r("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),yu(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick((()=>{this.updatedCal()}))},updated(){this.$nextTick((()=>{this.updatedCal()}))},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Rt.cancel(this.attachId)},methods:{updatedCal(){const e=this.$props;if(this.$data.sPopupVisible){let t;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(t=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Nt(t,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(t=t||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Nt(t,"touchstart",this.onDocumentClick,!!Bt&&{passive:!1})),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(t=t||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=Nt(t,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=Nt(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(e){const{mouseEnterDelay:t}=this.$props;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:e={}}=this;e.onPopupMouseenter&&e.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(e){var t;if(e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&an(null===(t=this.popupRef)||void 0===t?void 0:t.getElement(),e.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(e)},onFocus(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur(e){an(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(e){if(this.fireEvents("onClick",e),this.focusTime){let e;if(this.preClickTime&&this.preTouchTime?e=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?e=this.preClickTime:this.preTouchTime&&(e=this.preTouchTime),Math.abs(e-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();const t=!this.$data.sPopupVisible;(this.isClickToHide()&&!t||t&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown(){const{vcTriggerContext:e={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout((()=>{this.hasPopupMouseDown=!1}),0),e.onPopupMouseDown&&e.onPopupMouseDown(...arguments)},onDocumentClick(e){if(this.$props.mask&&!this.$props.maskClosable)return;const t=e.target,n=this.getRootDomNode(),o=this.getPopupDomNode();(!an(n,t)||this.isContextMenuOnly())&&!an(o,t)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var e;return(null===(e=this.popupRef)||void 0===e?void 0:e.getElement())||null},getRootDomNode(){var e,t,n,o;const{getTriggerDOMNode:r}=this.$props;if(r){const n="#comment"===(null===(t=null===(e=this.triggerRef)||void 0===e?void 0:e.$el)||void 0===t?void 0:t.nodeName)?null:$t(this.triggerRef);return $t(r(n))}try{const e="#comment"===(null===(o=null===(n=this.triggerRef)||void 0===n?void 0:n.$el)||void 0===o?void 0:o.nodeName)?null:$t(this.triggerRef);if(e)return e}catch{}return $t(this)},handleGetPopupClassFromAlign(e){const t=[],n=this.$props,{popupPlacement:o,builtinPlacements:r,prefixCls:l,alignPoint:i,getPopupClassNameFromAlign:a}=n;return o&&r&&t.push(function(e,t,n,o){const{points:r}=n,l=Object.keys(e);for(let n=0;n<l.length;n+=1){const i=l[n];if(vu(e[i].points,r,o))return`${t}-placement-${i}`}return""}(r,l,e,i)),a&&t.push(a(e)),t.join(" ")},getPopupAlign(){const e=this.$props,{popupPlacement:t,popupAlign:n,builtinPlacements:o}=e;return t&&o?mu(o,t,n):n},getComponent(){const e={};this.isMouseEnterToShow()&&(e.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(e.onMouseleave=this.onPopupMouseleave),e.onMousedown=this.onPopupMouseDown,e[Bt?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:t,getRootDomNode:n,$attrs:o}=this,{prefixCls:r,destroyPopupOnHide:l,popupClassName:i,popupAnimation:a,popupTransitionName:s,popupStyle:u,mask:p,maskAnimation:f,maskTransitionName:v,zIndex:m,stretch:h,alignPoint:g,mobile:y,arrow:b,forceRender:w}=this.$props,{sPopupVisible:x,point:C}=this.$data,S=De(De({prefixCls:r,arrow:b,destroyPopupOnHide:l,visible:x,point:g?C:null,align:this.align,animation:a,getClassNameFromAlign:t,stretch:h,getRootDomNode:n,mask:p,zIndex:m,transitionName:s,maskAnimation:f,maskTransitionName:v,class:i,style:u,onAlign:o.onPopupAlign||Wl},e),{ref:this.setPopupRef,mobile:y,forceRender:w});return $(fu,S,{default:this.$slots.popup||(()=>function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.$){const l=e[n];if(void 0!==l)return"function"==typeof l&&r?l(o):l;t=e.$slots[n],t=r&&t?t(o):t}else if(d(e)){const l=e.props&&e.props[n];if(void 0!==l&&null!==e.props)return"function"==typeof l&&r?l(o):l;e.type===c?t=e.children:e.children&&e.children[n]&&(t=e.children[n],t=r&&t?t(o):t)}return Array.isArray(t)&&(t=xt(t),t=1===t.length?t[0]:t,t=0===t.length?void 0:t),t}(this,"popup"))})},attachParent(e){Rt.cancel(this.attachId);const{getPopupContainer:t,getDocument:n}=this.$props,o=this.getRootDomNode();let r;t?(o||0===t.length)&&(r=t(o)):r=n(this.getRootDomNode()).body,r?r.appendChild(e):this.attachId=Rt((()=>{this.attachParent(e)}))},getContainer(){const{$props:e}=this,{getDocument:t}=e,n=t(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(e,t){const{alignPoint:n,sPopupVisible:o,onPopupVisibleChange:r}=this;this.clearDelayTimer(),o!==e&&(((e,t)=>void 0!==e[t])(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:o}),r&&r(e)),n&&t&&e&&this.setPoint(t)},setPoint(e){const{alignPoint:t}=this.$props;!t||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(e,t,n){const o=1e3*t;if(this.clearDelayTimer(),o){const t=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout((()=>{this.setPopupVisible(e,t),this.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(e){let t=()=>{};const n=St(this);return this.childOriginEvents[e]&&n[e]?this[`fire${e}`]:(t=this.childOriginEvents[e]||n[e]||t,t)},isClickToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("click")||-1!==t.indexOf("click")},isContextMenuOnly(){const{action:e}=this.$props;return"contextmenu"===e||1===e.length&&"contextmenu"===e[0]},isContextmenuToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("contextmenu")||-1!==t.indexOf("contextmenu")},isClickToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("click")||-1!==t.indexOf("click")},isMouseEnterToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("hover")||-1!==t.indexOf("mouseenter")},isMouseLeaveToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("hover")||-1!==t.indexOf("mouseleave")},isFocusToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("focus")||-1!==t.indexOf("focus")},isBlurToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("focus")||-1!==t.indexOf("blur")},forcePopupAlign(){var e;this.$data.sPopupVisible&&(null===(e=this.popupRef)||void 0===e||e.forceAlign())},fireEvents(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);const n=this.$props[e]||this.$attrs[e];n&&n(t)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:e}=this,t=Pt(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(d(e))return e.type===c?"default"===t?xt(e.children):[]:e.children&&e.children[t]?xt(e.children[t](n)):[];{const o=e.$slots[t]&&e.$slots[t](n);return xt(o)}}(this)),{alignPoint:n,getPopupContainer:o}=this.$props,r=t[0];this.childOriginEvents=St(r);const l={key:"trigger"};this.isContextmenuToShow()?l.onContextmenu=this.onContextmenu:l.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(l.onClick=this.onClick,l.onMousedown=this.onMousedown,l[Bt?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(l.onClick=this.createTwoChains("onClick"),l.onMousedown=this.createTwoChains("onMousedown"),l[Bt?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(l.onMouseenter=this.onMouseenter,n&&(l.onMousemove=this.onMouseMove)):l.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?l.onMouseleave=this.onMouseleave:l.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(l.onFocus=this.onFocus,l.onBlur=this.onBlur):(l.onFocus=this.createTwoChains("onFocus"),l.onBlur=e=>{e&&(!e.relatedTarget||!an(e.target,e.relatedTarget))&&this.createTwoChains("onBlur")(e)});const i=Ue(r&&r.props&&r.props.class,e.class);i&&(l.class=i);const a=ea(r,De(De({},l),{ref:"triggerRef"}),!0,!0),s=$(Pu,{key:"portal",getContainer:o&&(()=>o(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return $(c,null,[a,s])}});const ju=l({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:Rl.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:Rl.oneOfType([Number,Boolean]).def(!0),popupElement:Rl.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:o,attrs:r,expose:l}=t;const i=n((()=>{const{dropdownMatchSelectWidth:t}=e;return(e=>{const t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}})(t)})),a=b();return l({getPopupElement:()=>a.value}),()=>{const t=De(De({},e),r),{empty:n=!1}=t,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["empty"]),{visible:s,dropdownAlign:u,prefixCls:c,popupElement:d,dropdownClassName:p,dropdownStyle:f,direction:v="ltr",placement:m,dropdownMatchSelectWidth:h,containerWidth:g,dropdownRender:y,animation:b,transitionName:w,getPopupContainer:x,getTriggerDOMNode:C,onPopupVisibleChange:S,onPopupMouseEnter:O,onPopupFocusin:k,onPopupFocusout:P}=l,I=`${c}-dropdown`;let E=d;y&&(E=y({menuNode:d,props:e}));const j=b?`${I}-${b}`:w,A=De({minWidth:`${g}px`},f);return"number"==typeof h?A.width=`${h}px`:h&&(A.width=`${g}px`),$(Eu,ze(ze({},e),{},{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:m||("rtl"===v?"bottomRight":"bottomLeft"),builtinPlacements:i.value,prefixCls:I,popupTransitionName:j,popupAlign:u,popupVisible:s,getPopupContainer:x,popupClassName:Ue(p,{[`${I}-empty`]:n}),popupStyle:A,getTriggerDOMNode:C,onPopupVisibleChange:S}),{default:o.default,popup:()=>$("div",{ref:a,onMouseenter:O,onFocusin:k,onFocusout:P},[E])})}}}),Au={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},Mu=(e,t)=>{let{slots:n}=t;var o;const{class:r,customizeIcon:l,customizeIconProps:i,onMousedown:a,onClick:s}=e;let u;return u="function"==typeof l?l(i):d(l)?P(l):l,$("span",{class:r,onMousedown:e=>{e.preventDefault(),a&&a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},[void 0!==u?u:$("span",{class:r.split(/\s+/).map((e=>`${e}-icon`))},[null===(o=n.default)||void 0===o?void 0:o.call(n)])])};Mu.inheritAttrs=!1,Mu.displayName="TransBtn",Mu.props={class:String,customizeIcon:Rl.any,customizeIconProps:Rl.any,onMousedown:Function,onClick:Function};const Tu=l({compatConfig:{MODE:3},props:{disabled:Rl.looseBool,type:Rl.string,value:Rl.any,tag:{type:String,default:"input"},size:Rl.string,onChange:Function,onInput:Function,onBlur:Function,onFocus:Function,onKeydown:Function,onCompositionstart:Function,onCompositionend:Function,onKeyup:Function,onPaste:Function,onMousedown:Function},emits:["change","input","blur","keydown","focus","compositionstart","compositionend","keyup","paste","mousedown"],setup(e,t){let{expose:n}=t;const o=s(null);return n({focus:()=>{o.value&&o.value.focus()},blur:()=>{o.value&&o.value.blur()},input:o,setSelectionRange:(e,t,n)=>{var r;null===(r=o.value)||void 0===r||r.setSelectionRange(e,t,n)},select:()=>{var e;null===(e=o.value)||void 0===e||e.select()},getSelectionStart:()=>{var e;return null===(e=o.value)||void 0===e?void 0:e.selectionStart},getSelectionEnd:()=>{var e;return null===(e=o.value)||void 0===e?void 0:e.selectionEnd},getScrollTop:()=>{var e;return null===(e=o.value)||void 0===e?void 0:e.scrollTop}}),()=>{const{tag:t,value:n}=e,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["tag","value"]);return $(t,ze(ze({},r),{},{ref:o,value:n}),null)}}});function zu(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.scrollX||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.scrollY||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}const Du=l({compatConfig:{MODE:3},inheritAttrs:!1,props:{disabled:Rl.looseBool,type:Rl.string,value:Rl.any,lazy:Rl.bool.def(!0),tag:{type:String,default:"input"},size:Rl.string,style:Rl.oneOfType([String,Object]),class:Rl.string},emits:["change","input","blur","keydown","focus","compositionstart","compositionend","keyup","paste","mousedown"],setup(e,t){let{emit:o,attrs:r,expose:l}=t;const a=s(null),u=b(),c=b(!1);i([()=>e.value,c],(()=>{c.value||(u.value=e.value)}),{immediate:!0});const d=e=>{o("change",e)},p=e=>{c.value=!0,e.target.composing=!0,o("compositionstart",e)},f=e=>{c.value=!1,e.target.composing=!1,o("compositionend",e);const t=document.createEvent("HTMLEvents");t.initEvent("input",!0,!0),e.target.dispatchEvent(t),d(e)},v=t=>{c.value&&e.lazy?u.value=t.target.value:o("input",t)},m=e=>{o("blur",e)},h=e=>{o("focus",e)},g=e=>{o("keydown",e)},y=e=>{o("keyup",e)};l({focus:()=>{a.value&&a.value.focus()},blur:()=>{a.value&&a.value.blur()},input:n((()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.input})),setSelectionRange:(e,t,n)=>{var o;null===(o=a.value)||void 0===o||o.setSelectionRange(e,t,n)},select:()=>{var e;null===(e=a.value)||void 0===e||e.select()},getSelectionStart:()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.getSelectionStart()},getSelectionEnd:()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.getSelectionEnd()},getScrollTop:()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.getScrollTop()}});const w=e=>{o("mousedown",e)},x=e=>{o("paste",e)},C=n((()=>e.style&&"string"!=typeof e.style?function(e){return Object.keys(e).reduce(((t,n)=>{const o=e[n];return typeof o>"u"||null===o||(t+=`${n}: ${e[n]};`),t}),"")}(e.style):e.style));return()=>{const{style:t,lazy:n}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["style","lazy"]);return $(Tu,ze(ze(ze({},o),r),{},{style:C.value,onInput:v,onChange:d,onBlur:m,onFocus:h,ref:a,value:u.value,onCompositionstart:p,onCompositionend:f,onKeyup:y,onKeydown:g,onPaste:x,onMousedown:w}),null)}}}),Ru={inputRef:Rl.any,prefixCls:String,id:String,inputElement:Rl.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:Rl.oneOfType([Rl.number,Rl.string]),attrs:Rl.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},Bu=l({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:Ru,setup(e){let t=null;const n=o("VCSelectContainerEvent");return()=>{var o;const{prefixCls:r,id:l,inputElement:i,disabled:a,tabindex:s,autofocus:u,autocomplete:c,editable:d,activeDescendantId:p,value:f,onKeydown:v,onMousedown:m,onChange:h,onPaste:g,onCompositionstart:y,onCompositionend:b,onFocus:w,onBlur:x,open:C,inputRef:S,attrs:O}=e;let k=i||$(Du,null,null);const P=k.props||{},{onKeydown:I,onInput:E,onFocus:j,onBlur:A,onMousedown:M,onCompositionstart:T,onCompositionend:z,style:D}=P;return k=ea(k,De(De(De(De(De({type:"search"},P),{id:l,ref:S,disabled:a,tabindex:s,lazy:!1,autocomplete:c||"off",autofocus:u,class:Ue(`${r}-selection-search-input`,null===(o=null==k?void 0:k.props)||void 0===o?void 0:o.class),role:"combobox","aria-expanded":C,"aria-haspopup":"listbox","aria-owns":`${l}_list`,"aria-autocomplete":"list","aria-controls":`${l}_list`,"aria-activedescendant":p}),O),{value:d?f:"",readonly:!d,unselectable:d?null:"on",style:De(De({},D),{opacity:d?null:0}),onKeydown:e=>{v(e),I&&I(e)},onMousedown:e=>{m(e),M&&M(e)},onInput:e=>{h(e),E&&E(e)},onCompositionstart(e){y(e),T&&T(e)},onCompositionend(e){b(e),z&&z(e)},onPaste:g,onFocus:function(){clearTimeout(t),j&&j(arguments.length<=0?void 0:arguments[0]),w&&w(arguments.length<=0?void 0:arguments[0]),null==n||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];t=setTimeout((()=>{A&&A(o[0]),x&&x(o[0]),null==n||n.blur(o[0])}),100)}}),"textarea"===k.type?{}:{type:"search"}),!0,!0),k}}}),Nu="accept acceptcharset accesskey action allowfullscreen allowtransparency\nalt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge\ncharset checked classid classname colspan cols content contenteditable contextmenu\ncontrols coords crossorigin data datetime default defer dir disabled download draggable\nenctype form formaction formenctype formmethod formnovalidate formtarget frameborder\nheaders height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity\nis keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media\nmediagroup method min minlength multiple muted name novalidate nonce open\noptimum pattern placeholder poster preload radiogroup readonly rel required\nreversed role rowspan rows sandbox scope scoped scrolling seamless selected\nshape size sizes span spellcheck src srcdoc srclang srcset start step style\nsummary tabindex target title type usemap value width wmode wrap onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown\n onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick\n onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown\n onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel\n onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough\n onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata\n onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError".split(/[\s\n]+/);function Fu(e,t){return 0===e.indexOf(t)}function Hu(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:De({},n);const o={};return Object.keys(e).forEach((n=>{(t.aria&&("role"===n||Fu(n,"aria-"))||t.data&&Fu(n,"data-")||t.attr&&(Nu.includes(n)||Nu.includes(n.toLowerCase())))&&(o[n]=e[n])})),o}const Lu=Symbol("OverflowContextProviderKey"),_u=l({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:o}=t;return r(Lu,n((()=>e.value))),()=>{var e;return null===(e=o.default)||void 0===e?void 0:e.call(o)}}});const Wu=void 0,Vu=l({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:Rl.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:Rl.any,invalidate:Boolean},setup(e,t){let{slots:o,expose:r}=t;const l=n((()=>e.responsive&&!e.display)),i=b();function a(t){e.registerSize(e.itemKey,t)}return r({itemNodeRef:i}),y((()=>{a(null)})),()=>{var t;const{prefixCls:n,invalidate:r,item:s,renderItem:u,responsive:c,registerSize:d,itemKey:p,display:f,order:v,component:m="div"}=e,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),g=null===(t=o.default)||void 0===t?void 0:t.call(o),y=u&&s!==Wu?u(s):g;let b;r||(b={opacity:l.value?0:1,height:l.value?0:Wu,overflowY:l.value?"hidden":Wu,order:c?v:Wu,pointerEvents:l.value?"none":Wu,position:l.value?"absolute":Wu});const w={};return l.value&&(w["aria-hidden"]=!0),$(jt,{disabled:!c,onResize:e=>{let{offsetWidth:t}=e;a(t)}},{default:()=>$(m,ze(ze(ze({class:Ue(!r&&n),style:b},w),h),{},{ref:i}),{default:()=>[y]})})}}});var Xu=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Ku=l({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:Rl.any,title:Rl.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},role:String,tabindex:Number},setup(e,t){let{slots:r,attrs:l}=t;const i=o(Lu,n((()=>null)));return()=>{var t;if(!i.value){const{component:n="div"}=e,o=Xu(e,["component"]);return $(n,ze(ze({},o),l),{default:()=>[null===(t=r.default)||void 0===t?void 0:t.call(r)]})}const n=i.value,{className:o}=n,a=Xu(n,["className"]),{class:s}=l,u=Xu(l,["class"]);return $(_u,{value:null},{default:()=>[$(Vu,ze(ze(ze({class:Ue(o,s)},a),u),e),r)]})}}});const qu="responsive",Gu="invalidate";function Uu(e){return`+ ${e.length} ...`}const Yu=l({name:"Overflow",inheritAttrs:!1,props:{id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:Rl.any,component:String,itemComponent:Rl.any,onVisibleChange:Function,ssr:String,onMousedown:Function,role:String},emits:["visibleChange"],setup(e,t){let{attrs:o,emit:r,slots:l}=t;const a=n((()=>"full"===e.ssr)),u=s(null),c=n((()=>u.value||0)),d=s(new Map),p=s(0),f=s(0),v=s(0),m=s(null),h=s(null),g=n((()=>null===h.value&&a.value?Number.MAX_SAFE_INTEGER:h.value||0)),y=s(!1),b=n((()=>`${e.prefixCls}-item`)),w=n((()=>Math.max(p.value,f.value))),x=n((()=>!(!e.data.length||e.maxCount!==qu))),C=n((()=>e.maxCount===Gu)),S=n((()=>x.value||"number"==typeof e.maxCount&&e.data.length>e.maxCount)),O=n((()=>{let t=e.data;return x.value?t=null===u.value&&a.value?e.data:e.data.slice(0,Math.min(e.data.length,c.value/e.itemWidth)):"number"==typeof e.maxCount&&(t=e.data.slice(0,e.maxCount)),t})),k=n((()=>x.value?e.data.slice(g.value+1):e.data.slice(O.value.length))),P=(t,n)=>{var o;return"function"==typeof e.itemKey?e.itemKey(t):null!==(o=e.itemKey&&(null==t?void 0:t[e.itemKey]))&&void 0!==o?o:n},I=n((()=>e.renderItem||(e=>e))),E=(t,n)=>{h.value=t,n||(y.value=t<e.data.length-1,r("visibleChange",t))},j=(e,t)=>{u.value=t.clientWidth},A=(e,t)=>{const n=new Map(d.value);null===t?n.delete(e):n.set(e,t),d.value=n},M=(e,t)=>{p.value=f.value,f.value=t},T=(e,t)=>{v.value=t},z=e=>d.value.get(P(O.value[e],e));return i([c,d,f,v,()=>e.itemKey,O],(()=>{if(c.value&&w.value&&O.value){let t=v.value;const n=O.value.length,o=n-1;if(!n)return E(0),void(m.value=null);for(let e=0;e<n;e+=1){const n=z(e);if(void 0===n){E(e-1,!0);break}if(t+=n,0===o&&t<=c.value||e===o-1&&t+z(o)<=c.value){E(o),m.value=null;break}if(t+w.value>c.value){E(e-1),m.value=t-n-v.value+f.value;break}}e.suffix&&z(0)+v.value>c.value&&(m.value=null)}})),()=>{const t=y.value&&!!k.value.length,{itemComponent:n,renderRawItem:r,renderRawRest:i,renderRest:a,prefixCls:s="rc-overflow",suffix:u,component:c="div",id:d,onMousedown:p}=e,{class:f,style:v}=o,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["class","style"]);let w={};null!==m.value&&x.value&&(w={position:"absolute",left:`${m.value}px`,top:0});const E={prefixCls:b.value,responsive:x.value,component:n,invalidate:C.value},z=r?(e,t)=>{const n=P(e,t);return $(_u,{key:n,value:De(De({},E),{order:t,item:e,itemKey:n,registerSize:A,display:t<=g.value})},{default:()=>[r(e,t)]})}:(e,t)=>{const n=P(e,t);return $(Vu,ze(ze({},E),{},{order:t,key:n,item:e,renderItem:I.value,itemKey:n,registerSize:A,display:t<=g.value}),null)};let D=()=>null;const R={order:t?g.value:Number.MAX_SAFE_INTEGER,className:`${b.value} ${b.value}-rest`,registerSize:M,display:t};if(i)i&&(D=()=>$(_u,{value:De(De({},E),R)},{default:()=>[i(k.value)]}));else{const e=a||Uu;D=()=>$(Vu,ze(ze({},E),R),{default:()=>"function"==typeof e?e(k.value):e})}return $(jt,{disabled:!x.value,onResize:j},{default:()=>{var t;return $(c,ze({id:d,class:Ue(!C.value&&s,f),style:v,onMousedown:p,role:e.role},h),{default:()=>[O.value.map(z),S.value?D():null,u&&$(Vu,ze(ze({},E),{},{order:g.value,class:`${b.value}-suffix`,registerSize:T,display:!0,style:w}),{default:()=>u}),null===(t=l.default)||void 0===t?void 0:t.call(l)]})}})}}});Yu.Item=Ku,Yu.RESPONSIVE=qu,Yu.INVALIDATE=Gu;const Zu=Symbol("TreeSelectLegacyContextPropsKey");function Qu(){return o(Zu,{})}const Ju={id:String,prefixCls:String,values:Rl.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:Rl.any,placeholder:Rl.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:Rl.oneOfType([Rl.number,Rl.string]),compositionStatus:Boolean,removeIcon:Rl.any,choiceTransitionName:String,maxTagCount:Rl.oneOfType([Rl.number,Rl.string]),maxTagTextLength:Number,maxTagPlaceholder:Rl.any.def((()=>e=>`+ ${e.length} ...`)),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},ec=e=>{e.preventDefault(),e.stopPropagation()},tc=l({name:"MultipleSelectSelector",inheritAttrs:!1,props:Ju,setup(e){const t=s(),o=s(0),r=s(!1),l=Qu(),a=n((()=>`${e.prefixCls}-selection`)),u=n((()=>e.open||"tags"===e.mode?e.searchValue:"")),d=n((()=>"tags"===e.mode||e.showSearch&&(e.open||r.value))),p=b("");function f(t,n,o,r,l){return $("span",{class:Ue(`${a.value}-item`,{[`${a.value}-item-disabled`]:o}),title:"string"==typeof t||"number"==typeof t?t.toString():void 0},[$("span",{class:`${a.value}-item-content`},[n]),r&&$(Mu,{class:`${a.value}-item-remove`,onMousedown:ec,onClick:l,customizeIcon:e.removeIcon},{default:()=>[z("×")]})])}function v(t){const{disabled:n,label:o,value:r,option:i}=t,a=!e.disabled&&!n;let s=o;if("number"==typeof e.maxTagTextLength&&("string"==typeof o||"number"==typeof o)){const t=String(s);t.length>e.maxTagTextLength&&(s=`${t.slice(0,e.maxTagTextLength)}...`)}const u=n=>{var o;n&&n.stopPropagation(),null===(o=e.onRemove)||void 0===o||o.call(e,t)};return"function"==typeof e.tagRender?function(t,n,o,r,i,a){var s;let u=a;return l.keyEntities&&(u=(null===(s=l.keyEntities[t])||void 0===s?void 0:s.node)||{}),$("span",{key:t,onMousedown:t=>{ec(t),e.onToggleOpen(!open)}},[e.tagRender({label:n,value:t,disabled:o,closable:r,onClose:i,option:u})])}(r,s,n,a,u,i):f(o,s,n,a,u)}function m(t){const{maxTagPlaceholder:n=e=>`+ ${e.length} ...`}=e,o="function"==typeof n?n(t):n;return f(o,o,!1)}w((()=>{p.value=u.value})),h((()=>{i(p,(()=>{o.value=t.value.scrollWidth}),{flush:"post",immediate:!0})}));const g=t=>{const n=t.target.composing;p.value=t.target.value,n||e.onInputChange(t)};return()=>{const{id:n,prefixCls:l,values:i,open:s,inputRef:f,placeholder:h,disabled:y,autofocus:b,autocomplete:w,activeDescendantId:x,tabindex:C,compositionStatus:S,onInputPaste:O,onInputKeyDown:k,onInputMouseDown:P,onInputCompositionStart:I,onInputCompositionEnd:E}=e,j=$("div",{class:`${a.value}-search`,style:{width:o.value+"px"},key:"input"},[$(Bu,{inputRef:f,open:s,prefixCls:l,id:n,inputElement:null,disabled:y,autofocus:b,autocomplete:w,editable:d.value,activeDescendantId:x,value:p.value,onKeydown:k,onMousedown:P,onChange:g,onPaste:O,onCompositionstart:I,onCompositionend:E,tabindex:C,attrs:Hu(e,!0),onFocus:()=>r.value=!0,onBlur:()=>r.value=!1},null),$("span",{ref:t,class:`${a.value}-search-mirror`,"aria-hidden":!0},[p.value,z(" ")])]),A=$(Yu,{prefixCls:`${a.value}-overflow`,data:i,renderItem:v,renderRest:m,suffix:j,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return $(c,null,[A,!i.length&&!u.value&&!S&&$("span",{class:`${a.value}-placeholder`},[h])])}}}),nc={inputElement:Rl.any,id:String,prefixCls:String,values:Rl.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:Rl.any,placeholder:Rl.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:Rl.oneOfType([Rl.number,Rl.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},oc=l({name:"SingleSelector",setup(e){const t=s(!1),o=n((()=>"combobox"===e.mode)),r=n((()=>o.value||e.showSearch)),l=n((()=>{let n=e.searchValue||"";return o.value&&e.activeValue&&!t.value&&(n=e.activeValue),n})),a=Qu();i([o,()=>e.activeValue],(()=>{o.value&&(t.value=!1)}),{immediate:!0});const u=n((()=>!("combobox"!==e.mode&&!e.open&&!e.showSearch)&&(!!l.value||e.compositionStatus))),d=n((()=>{const t=e.values[0];return!t||"string"!=typeof t.label&&"number"!=typeof t.label?void 0:t.label.toString()})),p=()=>{if(e.values[0])return null;const t=u.value?{visibility:"hidden"}:void 0;return $("span",{class:`${e.prefixCls}-selection-placeholder`,style:t},[e.placeholder])},f=n=>{n.target.composing||(t.value=!0,e.onInputChange(n))};return()=>{var t,n,i,s;const{inputElement:v,prefixCls:m,id:h,values:g,inputRef:y,disabled:b,autofocus:w,autocomplete:x,activeDescendantId:C,open:S,tabindex:O,optionLabelRender:k,onInputKeyDown:P,onInputMouseDown:I,onInputPaste:E,onInputCompositionStart:j,onInputCompositionEnd:A}=e,M=g[0];let T=null;if(M&&a.customSlots){const e=null!==(t=M.key)&&void 0!==t?t:M.value,o=(null===(n=a.keyEntities[e])||void 0===n?void 0:n.node)||{};T=a.customSlots[null===(i=o.slots)||void 0===i?void 0:i.title]||a.customSlots.title||M.label,"function"==typeof T&&(T=T(o))}else T=k&&M?k(M.option):null==M?void 0:M.label;return $(c,null,[$("span",{class:`${m}-selection-search`},[$(Bu,{inputRef:y,prefixCls:m,id:h,open:S,inputElement:v,disabled:b,autofocus:w,autocomplete:x,editable:r.value,activeDescendantId:C,value:l.value,onKeydown:P,onMousedown:I,onChange:f,onPaste:E,onCompositionstart:j,onCompositionend:A,tabindex:O,attrs:Hu(e,!0)},null)]),!o.value&&M&&!u.value&&$("span",{class:`${m}-selection-item`,title:d.value},[$(c,{key:null!==(s=M.key)&&void 0!==s?s:M.value},[T])]),p()])}}});function rc(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=null;return x((()=>{clearTimeout(e)})),[()=>n,function(o){(o||null===n)&&(n=o),clearTimeout(e),e=setTimeout((()=>{n=null}),t)}]}function lc(){const e=t=>{e.current=t};return e}oc.props=nc,oc.inheritAttrs=!1;const ic=l({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:Rl.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:Rl.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:Rl.oneOfType([Rl.number,Rl.string]),disabled:{type:Boolean,default:void 0},placeholder:Rl.any,removeIcon:Rl.any,maxTagCount:Rl.oneOfType([Rl.number,Rl.string]),maxTagTextLength:Number,maxTagPlaceholder:Rl.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:n}=t;const o=lc(),r=b(!1),[l,i]=rc(0),a=t=>{const{which:n}=t;(n===Au.UP||n===Au.DOWN)&&t.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(t),n===Au.ENTER&&"tags"===e.mode&&!r.value&&!e.open&&e.onSearchSubmit(t.target.value),function(e){return![Au.ESC,Au.SHIFT,Au.BACKSPACE,Au.TAB,Au.WIN_KEY,Au.ALT,Au.META,Au.WIN_KEY_RIGHT,Au.CTRL,Au.SEMICOLON,Au.EQUALS,Au.CAPS_LOCK,Au.CONTEXT_MENU,Au.F1,Au.F2,Au.F3,Au.F4,Au.F5,Au.F6,Au.F7,Au.F8,Au.F9,Au.F10,Au.F11,Au.F12].includes(e)}(n)&&e.onToggleOpen(!0)},s=()=>{i(!0)};let u=null;const c=t=>{!1!==e.onSearch(t,!0,r.value)&&e.onToggleOpen(!0)},d=()=>{r.value=!0},p=t=>{r.value=!1,"combobox"!==e.mode&&c(t.target.value)},f=t=>{let{target:{value:n}}=t;if(e.tokenWithEnter&&u&&/[\r\n]/.test(u)){const e=u.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");n=n.replace(e,u)}u=null,c(n)},v=e=>{const{clipboardData:t}=e;u=t.getData("text")},m=e=>{let{target:t}=e;t!==o.current&&(void 0!==document.body.style.msTouchAction?setTimeout((()=>{o.current.focus()})):o.current.focus())},h=t=>{const n=l();t.target!==o.current&&!n&&t.preventDefault(),("combobox"!==e.mode&&(!e.showSearch||!n)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{o.current.focus()},blur:()=>{o.current.blur()}}),()=>{const{prefixCls:t,domRef:n,mode:l}=e,i={inputRef:o,onInputKeyDown:a,onInputMouseDown:s,onInputChange:f,onInputPaste:v,compositionStatus:r.value,onInputCompositionStart:d,onInputCompositionEnd:p},u=$("multiple"===l||"tags"===l?tc:oc,ze(ze({},e),i),null);return $("div",{ref:n,class:`${t}-selector`,onClick:m,onMousedown:h},[u])}}});const ac=Symbol("BaseSelectContextKey");function sc(){return o(ac,{})}function uc(e){if(!D(e))return v(e);const t=new Proxy({},{get:(t,n,o)=>Reflect.get(e.value,n,o),set:(t,n,o)=>(e.value[n]=o,!0),deleteProperty:(t,n)=>Reflect.deleteProperty(e.value,n),has:(t,n)=>Reflect.has(e.value,n),ownKeys:()=>Object.keys(e.value),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});return v(t)}const cc=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],dc=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:Rl.any,placeholder:Rl.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:Rl.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:Rl.any,clearIcon:Rl.any,removeIcon:Rl.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function});function pc(e){return"tags"===e||"multiple"===e}const fc=l({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:bt(De(De({},{prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:Rl.any,emptyOptions:Boolean}),dc()),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:o,expose:l,slots:a}=t;const u=n((()=>pc(e.mode))),c=n((()=>void 0!==e.showSearch?e.showSearch:u.value||"combobox"===e.mode)),d=s(!1);h((()=>{d.value=(()=>{if(typeof navigator>"u"||typeof window>"u")return!1;const e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substring(0,4))})()}));const p=Qu(),f=s(null),v=lc(),m=s(null),g=s(null),y=s(null),C=b(!1),[S,O,k]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=s(!1);let n;const o=()=>{clearTimeout(n)};return h((()=>{o()})),[t,(r,l)=>{o(),n=setTimeout((()=>{t.value=r,l&&l()}),e)},o]}();l({focus:()=>{var e;null===(e=g.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=g.value)||void 0===e||e.blur()},scrollTo:e=>{var t;return null===(t=y.value)||void 0===t?void 0:t.scrollTo(e)}});const P=n((()=>{var t;if("combobox"!==e.mode)return e.searchValue;const n=null===(t=e.displayValues[0])||void 0===t?void 0:t.value;return"string"==typeof n||"number"==typeof n?String(n):""})),I=void 0!==e.open?e.open:e.defaultOpen,E=s(I),j=s(I),A=t=>{E.value=void 0!==e.open?e.open:t,j.value=E.value};i((()=>e.open),(()=>{A(e.open)}));const M=n((()=>!e.notFoundContent&&e.emptyOptions));w((()=>{j.value=E.value,(e.disabled||M.value&&j.value&&"combobox"===e.mode)&&(j.value=!1)}));const T=n((()=>!M.value&&j.value)),D=t=>{const n=void 0!==t?t:!j.value;j.value!==n&&!e.disabled&&(A(n),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(n),!n&&K.value&&(K.value=!1,O(!1,(()=>{X.value=!1,C.value=!1}))))},B=n((()=>(e.tokenSeparators||[]).some((e=>["\n","\r\n"].includes(e))))),N=(t,n,o)=>{var r,l;let i=!0,a=t;null===(r=e.onActiveValueChange)||void 0===r||r.call(e,null);const s=o?null:function(e,t){if(!t||!t.length)return null;let n=!1;const o=function e(t,o){let[r,...l]=o;if(!r)return[t];const i=t.split(r);return n=n||i.length>1,i.reduce(((t,n)=>[...t,...e(n,l)]),[]).filter((e=>e))}(e,t);return n?o:null}(t,e.tokenSeparators);return"combobox"!==e.mode&&s&&(a="",null===(l=e.onSearchSplit)||void 0===l||l.call(e,s),D(!1),i=!1),e.onSearch&&P.value!==a&&e.onSearch(a,{source:n?"typing":"effect"}),i},F=t=>{var n;!t||!t.trim()||null===(n=e.onSearch)||void 0===n||n.call(e,t,{source:"submit"})};i(j,(()=>{!j.value&&!u.value&&"combobox"!==e.mode&&N("",!1,!1)}),{immediate:!0,flush:"post"}),i((()=>e.disabled),(()=>{E.value&&e.disabled&&A(!1),e.disabled&&!C.value&&O(!1)}),{immediate:!0});const[H,L]=rc(),_=function(t){var n;const o=H(),{which:r}=t;if(r===Au.ENTER&&("combobox"!==e.mode&&t.preventDefault(),j.value||D(!0)),L(!!P.value),r===Au.BACKSPACE&&!o&&u.value&&!P.value&&e.displayValues.length){const t=[...e.displayValues];let n=null;for(let e=t.length-1;e>=0;e-=1){const o=t[e];if(!o.disabled){t.splice(e,1),n=o;break}}n&&e.onDisplayValuesChange(t,{type:"remove",values:[n]})}for(var l=arguments.length,i=new Array(l>1?l-1:0),a=1;a<l;a++)i[a-1]=arguments[a];j.value&&y.value&&y.value.onKeydown(t,...i),null===(n=e.onKeydown)||void 0===n||n.call(e,t,...i)},W=function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];j.value&&y.value&&y.value.onKeyup(t,...o),e.onKeyup&&e.onKeyup(t,...o)},V=t=>{const n=e.displayValues.filter((e=>e!==t));e.onDisplayValuesChange(n,{type:"remove",values:[t]})},X=s(!1),K=b(!1),q=()=>{K.value=!0},G=()=>{K.value=!1};r("VCSelectContainerEvent",{focus:function(){O(!0),e.disabled||(e.onFocus&&!X.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&D(!0)),X.value=!0},blur:function(){if(K.value||(C.value=!0,O(!1,(()=>{X.value=!1,C.value=!1,D(!1)})),e.disabled))return;const t=P.value;t&&("tags"===e.mode?e.onSearch(t,{source:"submit"}):"multiple"===e.mode&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)}});const U=[];h((()=>{U.forEach((e=>clearTimeout(e))),U.splice(0,U.length)})),x((()=>{U.forEach((e=>clearTimeout(e))),U.splice(0,U.length)}));const Y=function(t){var n,o;const{target:r}=t,l=null===(n=m.value)||void 0===n?void 0:n.getPopupElement();if(l&&l.contains(r)){const e=setTimeout((()=>{var t;const n=U.indexOf(e);-1!==n&&U.splice(n,1),k(),!d.value&&!l.contains(document.activeElement)&&(null===(t=g.value)||void 0===t||t.focus())}));U.push(e)}for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];null===(o=e.onMousedown)||void 0===o||o.call(e,t,...a)},Z=s(null),Q=()=>{};return h((()=>{i(T,(()=>{var e;if(T.value){const t=Math.ceil(null===(e=f.value)||void 0===e?void 0:e.offsetWidth);Z.value!==t&&!Number.isNaN(t)&&(Z.value=t)}}),{immediate:!0,flush:"post"})})),function(e,t,n){function o(o){var r,l,i;let a=o.target;a.shadowRoot&&o.composed&&(a=o.composedPath()[0]||a);const s=[null===(r=e[0])||void 0===r?void 0:r.value,null===(i=null===(l=e[1])||void 0===l?void 0:l.value)||void 0===i?void 0:i.getPopupElement()];t.value&&s.every((e=>e&&!e.contains(a)&&e!==a))&&n(!1)}h((()=>{window.addEventListener("mousedown",o)})),x((()=>{window.removeEventListener("mousedown",o)}))}([f,m],T,D),function(e){r(ac,e)}(uc(De(De({},R(e)),{open:j,triggerOpen:T,showSearch:c,multiple:u,toggleOpen:D}))),()=>{const t=De(De({},e),o),{prefixCls:n,id:r,open:l,defaultOpen:i,mode:s,showSearch:d,searchValue:h,onSearch:b,allowClear:w,clearIcon:x,showArrow:C,inputIcon:O,disabled:k,loading:I,getInputElement:E,getPopupContainer:A,placement:M,animation:R,transitionName:H,dropdownStyle:L,dropdownClassName:X,dropdownMatchSelectWidth:K,dropdownRender:U,dropdownAlign:J,showAction:ee,direction:te,tokenSeparators:ne,tagRender:oe,optionLabelRender:re,onPopupScroll:le,onDropdownVisibleChange:ie,onFocus:ae,onBlur:se,onKeyup:ue,onKeydown:ce,onMousedown:de,onClear:pe,omitDomProps:fe,getRawInputElement:ve,displayValues:me,onDisplayValuesChange:he,emptyOptions:ge,activeDescendantId:ye,activeValue:be,OptionList:we}=t,xe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),$e="combobox"===s&&E&&E()||null,Ce="function"==typeof ve&&ve(),Se=De({},xe);let Oe;Ce&&(Oe=e=>{D(e)}),cc.forEach((e=>{delete Se[e]})),null==fe||fe.forEach((e=>{delete Se[e]}));const ke=void 0!==C?C:I||!u.value&&"combobox"!==s;let Pe,Ie;ke&&(Pe=$(Mu,{class:Ue(`${n}-arrow`,{[`${n}-arrow-loading`]:I}),customizeIcon:O,customizeIconProps:{loading:I,searchValue:P.value,open:j.value,focused:S.value,showSearch:c.value}},null));!k&&w&&(me.length||P.value)&&(Ie=$(Mu,{class:`${n}-clear`,onMousedown:()=>{null==pe||pe(),he([],{type:"clear",values:me}),N("",!1,!1)},customizeIcon:x},{default:()=>[z("×")]}));const Ee=$(we,{ref:y},De(De({},p.customSlots),{option:a.option})),je=Ue(n,o.class,{[`${n}-focused`]:S.value,[`${n}-multiple`]:u.value,[`${n}-single`]:!u.value,[`${n}-allow-clear`]:w,[`${n}-show-arrow`]:ke,[`${n}-disabled`]:k,[`${n}-loading`]:I,[`${n}-open`]:j.value,[`${n}-customize-input`]:$e,[`${n}-show-search`]:c.value}),Ae=$(ju,{ref:m,disabled:k,prefixCls:n,visible:T.value,popupElement:Ee,containerWidth:Z.value,animation:R,transitionName:H,dropdownStyle:L,dropdownClassName:X,direction:te,dropdownMatchSelectWidth:K,dropdownRender:U,dropdownAlign:J,placement:M,getPopupContainer:A,empty:ge,getTriggerDOMNode:()=>v.current,onPopupVisibleChange:Oe,onPopupMouseEnter:Q,onPopupFocusin:q,onPopupFocusout:G},{default:()=>Ce?It(Ce)&&ea(Ce,{ref:v},!1,!0):$(ic,ze(ze({},e),{},{domRef:v,prefixCls:n,inputElement:$e,ref:g,id:r,showSearch:c.value,mode:s,activeDescendantId:ye,tagRender:oe,optionLabelRender:re,values:me,open:j.value,onToggleOpen:D,activeValue:be,searchValue:P.value,onSearch:N,onSearchSubmit:F,onRemove:V,tokenWithEnter:B.value}),null)});let Me;return Me=Ce?Ae:$("div",ze(ze({},Se),{},{class:je,ref:f,onMousedown:Y,onKeydown:_,onKeyup:W}),[S.value&&!j.value&&$("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${me.map((e=>{let{label:t,value:n}=e;return["number","string"].includes(typeof t)?t:n})).join(", ")}`]),Ae,Pe,Ie]),Me}}}),vc=(e,t)=>{let{height:n,offset:o,prefixCls:r,onInnerResize:l}=e,{slots:i}=t;var a;let s={},u={display:"flex",flexDirection:"column"};return void 0!==o&&(s={height:`${n}px`,position:"relative",overflow:"hidden"},u=De(De({},u),{transform:`translateY(${o}px)`,position:"absolute",left:0,right:0,top:0})),$("div",{style:s},[$(jt,{onResize:e=>{let{offsetHeight:t}=e;t&&l&&l()}},{default:()=>[$("div",{style:u,class:Ue({[`${r}-holder-inner`]:r})},[null===(a=i.default)||void 0===a?void 0:a.call(i)])]})])};vc.displayName="Filter",vc.inheritAttrs=!1,vc.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const mc=(e,t)=>{let{setRef:n}=e,{slots:o}=t;var r;const l=xt(null===(r=o.default)||void 0===r?void 0:r.call(o));return l&&l.length?P(l[0],{ref:n}):l};mc.props={setRef:{type:Function,default:()=>{}}};function hc(e){return"touches"in e?e.touches[0].pageY:e.pageY}const gc=l({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup:()=>({moveRaf:null,scrollbarRef:lc(),thumbRef:lc(),visibleTimeout:null,state:v({dragging:!1,pageY:null,startTop:null,visible:!1})}),watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;null===(e=this.scrollbarRef.current)||void 0===e||e.addEventListener("touchstart",this.onScrollbarTouchStart,!!Bt&&{passive:!1}),null===(t=this.thumbRef.current)||void 0===t||t.addEventListener("touchstart",this.onMouseDown,!!Bt&&{passive:!1})},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout((()=>{this.state.visible=!1}),2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,!!Bt&&{passive:!1}),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,!!Bt&&{passive:!1}),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,!!Bt&&{passive:!1}),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,!!Bt&&{passive:!1}),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),Rt.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;De(this.state,{dragging:!0,pageY:hc(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:n,startTop:o}=this.state,{onScroll:r}=this.$props;if(Rt.cancel(this.moveRaf),t){const t=o+(hc(e)-n),l=this.getEnableScrollRange(),i=this.getEnableHeightRange(),a=i?t/i:0,s=Math.ceil(a*l);this.moveRaf=Rt((()=>{r(s)}))}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let n=e/t*100;return n=Math.max(n,20),n=Math.min(n,e/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props;return e-this.getSpinHeight()||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();return 0===e||0===t?0:e/t*n},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:n}=this.$props,o=this.getSpinHeight()+"px",r=this.getTop()+"px",l=this.showScroll(),i=l&&t;return $("div",{ref:this.scrollbarRef,class:Ue(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:l}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:i?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[$("div",{ref:this.thumbRef,class:Ue(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:o,top:r,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});const yc="object"==typeof navigator&&/Firefox/i.test(navigator.userAgent),bc=(e,t)=>{let n=!1,o=null;return function(r){let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=r<0&&e.value||r>0&&t.value;return l&&i?(clearTimeout(o),n=!1):(!i||n)&&(clearTimeout(o),n=!0,o=setTimeout((()=>{n=!1}),50)),!n&&i}};const wc=14/15;const xc=[],$c={overflowY:"auto",overflowAnchor:"none"};const Cc=l({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:Rl.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:o}=t;const r=n((()=>{const{height:t,itemHeight:n,virtual:o}=e;return!(!1===o||!t||!n)})),l=n((()=>{const{height:t,itemHeight:n,data:o}=e;return r.value&&o&&n*o.length>t})),a=v({scrollTop:0,scrollMoving:!1}),u=n((()=>e.data||xc)),c=s([]);i(u,(()=>{c.value=B(u.value).slice()}),{immediate:!0});const d=s((e=>{}));i((()=>e.itemKey),(e=>{d.value="function"==typeof e?e:t=>null==t?void 0:t[e]}),{immediate:!0});const p=s(),f=s(),m=s(),$=e=>d.value(e),C={getKey:$};function S(e){let t;t="function"==typeof e?e(a.scrollTop):e;const n=function(e){let t=e;return Number.isNaN(M.value)||(t=Math.min(t,M.value)),t=Math.max(t,0),t}(t);p.value&&(p.value.scrollTop=n),a.scrollTop=n}const[O,k,P,E]=function(e,t){const n=new Map,o=new Map,r=b(Symbol("update"));let l;function a(){Rt.cancel(l)}function s(){a(),l=Rt((()=>{n.forEach(((e,t)=>{if(e&&e.offsetParent){const{offsetHeight:n}=e;o.get(t)!==n&&(r.value=Symbol("update"),o.set(t,e.offsetHeight))}}))}))}return i(e,(()=>{r.value=Symbol("update")})),y((()=>{a()})),[function(e,o){const r=t(e);n.get(r),o?(n.set(r,o.$el||o),s()):n.delete(r)},s,o,r]}(c,$),j=v({scrollHeight:void 0,start:0,end:0,offset:void 0}),A=s(0);h((()=>{I((()=>{var e;A.value=(null===(e=f.value)||void 0===e?void 0:e.offsetHeight)||0}))})),g((()=>{I((()=>{var e;A.value=(null===(e=f.value)||void 0===e?void 0:e.offsetHeight)||0}))})),i([r,c],(()=>{r.value||De(j,{scrollHeight:void 0,start:0,end:c.value.length-1,offset:void 0})}),{immediate:!0}),i([r,c,A,l],(()=>{r.value&&!l.value&&De(j,{scrollHeight:A.value,start:0,end:c.value.length-1,offset:void 0}),p.value&&(a.scrollTop=p.value.scrollTop)}),{immediate:!0}),i([l,r,()=>a.scrollTop,c,E,()=>e.height,A],(()=>{if(!r.value||!l.value)return;let t,n,o,i=0;const s=c.value.length,u=c.value,d=a.scrollTop,{itemHeight:p,height:f}=e,v=d+f;for(let e=0;e<s;e+=1){const r=u[e],l=$(r);let a=P.get(l);void 0===a&&(a=p);const s=i+a;void 0===t&&s>=d&&(t=e,n=i),void 0===o&&s>v&&(o=e),i=s}void 0===t&&(t=0,n=0,o=Math.ceil(f/p)),void 0===o&&(o=s-1),o=Math.min(o+1,s),De(j,{scrollHeight:i,start:t,end:o,offset:n})}),{immediate:!0});const M=n((()=>j.scrollHeight-e.height));const T=n((()=>a.scrollTop<=0)),z=n((()=>a.scrollTop>=M.value)),D=bc(T,z);const[R,N]=function(e,t,n,o){let r=0,l=null,i=null,a=!1;const s=bc(t,n);return[function(t){if(!e.value)return;Rt.cancel(l);const{deltaY:n}=t;r+=n,i=n,!s(n)&&(yc||t.preventDefault(),l=Rt((()=>{o(r*(a?10:1)),r=0})))},function(t){e.value&&(a=t.detail===i)}]}(r,T,z,(e=>{S((t=>t+e))}));function F(e){r.value&&e.preventDefault()}!function(e,t,n){let o=!1,r=0,l=null,a=null;const s=()=>{l&&(l.removeEventListener("touchmove",u),l.removeEventListener("touchend",c))},u=e=>{if(o){const t=Math.ceil(e.touches[0].pageY);let o=r-t;r=t,n(o)&&e.preventDefault(),clearInterval(a),a=setInterval((()=>{o*=wc,(!n(o,!0)||Math.abs(o)<=.1)&&clearInterval(a)}),16)}},c=()=>{o=!1,s()},d=e=>{s(),1===e.touches.length&&!o&&(o=!0,r=Math.ceil(e.touches[0].pageY),l=e.target,l.addEventListener("touchmove",u,{passive:!1}),l.addEventListener("touchend",c))},p=()=>{};h((()=>{document.addEventListener("touchmove",p,{passive:!1}),i(e,(e=>{t.value.removeEventListener("touchstart",d),s(),clearInterval(a),e&&t.value.addEventListener("touchstart",d,{passive:!1})}),{immediate:!0})})),x((()=>{document.removeEventListener("touchmove",p)}))}(r,p,((e,t)=>!D(e,t)&&(R({preventDefault(){},deltaY:e}),!0)));const H=()=>{p.value&&(p.value.removeEventListener("wheel",R,!!Bt&&{passive:!1}),p.value.removeEventListener("DOMMouseScroll",N),p.value.removeEventListener("MozMousePixelScroll",F))};w((()=>{I((()=>{p.value&&(H(),p.value.addEventListener("wheel",R,!!Bt&&{passive:!1}),p.value.addEventListener("DOMMouseScroll",N),p.value.addEventListener("MozMousePixelScroll",F))}))})),x((()=>{H()}));const L=function(e,t,n,o,r,l,i,a){let s;return u=>{if(null==u)return void a();Rt.cancel(s);const c=t.value,d=o.itemHeight;if("number"==typeof u)i(u);else if(u&&"object"==typeof u){let t;const{align:o}=u;"index"in u?({index:t}=u):t=c.findIndex((e=>r(e)===u.key));const{offset:a=0}=u,p=(u,f)=>{if(u<0||!e.value)return;const v=e.value.clientHeight;let m=!1,h=f;if(v){const l=f||o;let s=0,u=0,p=0;const g=Math.min(c.length,t);for(let e=0;e<=g;e+=1){const o=r(c[e]);u=s;const l=n.get(o);p=u+(void 0===l?d:l),s=p,e===t&&void 0===l&&(m=!0)}const y=e.value.scrollTop;let b=null;switch(l){case"top":b=u-a;break;case"bottom":b=p-v+a;break;default:u<y?h="top":p>y+v&&(h="bottom")}null!==b&&b!==y&&i(b)}s=Rt((()=>{m&&l(),p(u-1,h)}),2)};p(5)}}}(p,c,P,e,$,k,S,(()=>{var e;null===(e=m.value)||void 0===e||e.delayHidden()}));o({scrollTo:L});const _=n((()=>{let t=null;return e.height&&(t=De({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},$c),r.value&&(t.overflowY="hidden",a.scrollMoving&&(t.pointerEvents="none"))),t}));return i([()=>j.start,()=>j.end,c],(()=>{if(e.onVisibleChange){const t=c.value.slice(j.start,j.end+1);e.onVisibleChange(t,c.value)}}),{flush:"post"}),{state:a,mergedData:c,componentStyle:_,onFallbackScroll:function(t){var n;const{scrollTop:o}=t.currentTarget;o!==a.scrollTop&&S(o),null===(n=e.onScroll)||void 0===n||n.call(e,t)},onScrollBar:function(e){S(e)},componentRef:p,useVirtual:r,calRes:j,collectHeight:k,setInstance:O,sharedConfig:C,scrollBarRef:m,fillerInnerRef:f,delayHideScrollBar:()=>{var e;null===(e=m.value)||void 0===e||e.delayHidden()}}},render(){const e=De(De({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:n,itemHeight:o,fullHeight:r,data:l,itemKey:i,virtual:a,component:s="div",onScroll:u,children:c=this.$slots.default,style:d,class:p}=e,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),v=Ue(t,p),{scrollTop:m}=this.state,{scrollHeight:h,offset:g,start:y,end:b}=this.calRes,{componentStyle:w,onFallbackScroll:x,onScrollBar:C,useVirtual:S,collectHeight:O,sharedConfig:k,setInstance:P,mergedData:I,delayHideScrollBar:E}=this;return $("div",ze({style:De(De({},d),{position:"relative"}),class:v},f),[$(s,{class:`${t}-holder`,style:w,ref:"componentRef",onScroll:x,onMouseenter:E},{default:()=>[$(vc,{prefixCls:t,height:h,offset:g,onInnerResize:O,ref:"fillerInnerRef"},{default:()=>function(e,t,n,o,r,l){let{getKey:i}=l;return e.slice(t,n+1).map(((e,n)=>{const l=r(e,t+n,{}),a=i(e);return $(mc,{key:a,setRef:t=>o(e,t)},{default:()=>[l]})}))}(I,y,b,P,c,k)})]}),S&&$(gc,{ref:"scrollBarRef",prefixCls:t,scrollTop:m,height:n,scrollHeight:h,count:I.length,onScroll:C,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});const Sc=Symbol("SelectContextKey");function Oc(e){return"string"==typeof e||"number"==typeof e}const kc=l({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{expose:r,slots:l}=t;const a=sc(),s=o(Sc,{}),u=n((()=>`${a.prefixCls}-item`)),d=function(e,t,n){const o=b(e());return i(t,((t,r)=>{n?n(t,r)&&(o.value=e()):o.value=e()})),o}((()=>s.flattenOptions),[()=>a.open,()=>s.flattenOptions],(e=>e[0])),p=lc(),f=e=>{e.preventDefault()},m=e=>{p.current&&p.current.scrollTo("number"==typeof e?{index:e}:e)},h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=d.value.length;for(let o=0;o<n;o+=1){const r=(e+o*t+n)%n,{group:l,data:i}=d.value[r];if(!l&&!i.disabled)return r}return-1},g=v({activeIndex:h(0)}),y=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g.activeIndex=e;const n={source:t?"keyboard":"mouse"},o=d.value[e];o?s.onActiveValue(o.value,e,n):s.onActiveValue(null,-1,n)};i([()=>d.value.length,()=>a.searchValue],(()=>{y(!1!==s.defaultActiveFirstOption?h(0):-1)}),{immediate:!0});const w=e=>s.rawValues.has(e)&&"combobox"!==a.mode;i([()=>a.open,()=>a.searchValue],(()=>{if(!a.multiple&&a.open&&1===s.rawValues.size){const e=Array.from(s.rawValues)[0],t=B(d.value).findIndex((t=>{let{data:n}=t;return n[s.fieldNames.value]===e}));-1!==t&&(y(t),I((()=>{m(t)})))}a.open&&I((()=>{var e;null===(e=p.current)||void 0===e||e.scrollTo(void 0)}))}),{immediate:!0,flush:"post"});const x=e=>{void 0!==e&&s.onSelect(e,{selected:!s.rawValues.has(e)}),a.multiple||a.toggleOpen(!1)},C=e=>"function"==typeof e.label?e.label():e.label;function S(e){const t=d.value[e];if(!t)return null;const n=t.data||{},{value:o}=n,{group:r}=t,l=Hu(n,!0),i=C(t);return t?$("div",ze(ze({"aria-label":"string"!=typeof i||r?null:i},l),{},{key:e,role:r?"presentation":"option",id:`${a.id}_list_${e}`,"aria-selected":w(o)}),[o]):null}return r({onKeydown:e=>{const{which:t,ctrlKey:n}=e;switch(t){case Au.N:case Au.P:case Au.UP:case Au.DOWN:{let e=0;if(t===Au.UP?e=-1:t===Au.DOWN?e=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Au.N?e=1:t===Au.P&&(e=-1)),0!==e){const t=h(g.activeIndex+e,e);m(t),y(t,!0)}break}case Au.ENTER:{const t=d.value[g.activeIndex];t&&!t.data.disabled?x(t.value):x(void 0),a.open&&e.preventDefault();break}case Au.ESC:a.toggleOpen(!1),a.open&&e.stopPropagation()}},onKeyup:()=>{},scrollTo:e=>{m(e)}}),()=>{const{id:e,notFoundContent:t,onPopupScroll:n}=a,{menuItemSelectedIcon:o,fieldNames:r,virtual:i,listHeight:v,listItemHeight:m}=s,h=l.option,{activeIndex:b}=g,O=Object.keys(r).map((e=>r[e]));return 0===d.value.length?$("div",{role:"listbox",id:`${e}_list`,class:`${u.value}-empty`,onMousedown:f},[t]):$(c,null,[$("div",{role:"listbox",id:`${e}_list`,style:{height:0,width:0,overflow:"hidden"}},[S(b-1),S(b),S(b+1)]),$(Cc,{itemKey:"key",ref:p,data:d.value,height:v,itemHeight:m,fullHeight:!1,onMousedown:f,onScroll:n,virtual:i},{default:(e,t)=>{var n;const{group:r,groupOption:l,data:i,value:a}=e,{key:s}=i,c="function"==typeof e.label?e.label():e.label;if(r){const e=null!==(n=i.title)&&void 0!==n?n:Oc(c)&&c;return $("div",{class:Ue(u.value,`${u.value}-group`),title:e},[h?h(i):void 0!==c?c:s])}const{disabled:d,title:p,children:f,style:v,class:m,className:g}=i,S=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(i,["disabled","title","children","style","class","className"]),k=nl(S,O),P=w(a),I=`${u.value}-option`,E=Ue(u.value,I,m,g,{[`${I}-grouped`]:l,[`${I}-active`]:b===t&&!d,[`${I}-disabled`]:d,[`${I}-selected`]:P}),j=C(e),A=!o||"function"==typeof o||P,M="number"==typeof j?j:j||a;let T=Oc(M)?M.toString():void 0;return void 0!==p&&(T=p),$("div",ze(ze({},k),{},{"aria-selected":P,class:E,title:T,onMousemove:e=>{S.onMousemove&&S.onMousemove(e),b!==t&&!d&&y(t)},onClick:e=>{d||x(a),S.onClick&&S.onClick(e)},style:v}),[$("div",{class:`${I}-content`},[h?h(i):M]),It(o)||P,A&&$(Mu,{class:`${u.value}-option-state`,customizeIcon:o,customizeIconProps:{isSelected:P}},{default:()=>[P?"✓":null]})])}})])}}});function Pc(e){const t=e,{key:n,children:o}=t,r=t.props,{value:l,disabled:i}=r,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(r,["value","disabled"]);return De({key:n,value:void 0!==l?l:n,children:null==o?void 0:o.default,disabled:i||""===i},a)}function Ic(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return xt(e).map(((e,n)=>{var o;if(!It(e)||!e.type)return null;const{type:{isSelectOptGroup:r},key:l,children:i,props:a}=e;if(t||!r)return Pc(e);const s=i&&i.default?i.default():void 0,u=(null==a?void 0:a.label)||(null===(o=i.label)||void 0===o?void 0:o.call(i))||l;return De(De({key:`__RC_SELECT_GRP__${null===l?n:String(l)}__`},a),{label:u,options:Ic(s||[])})})).filter((e=>e))}function Ec(e,t,n){const o=s(),r=s(),l=s(),a=s([]);return i([e,t],(()=>{e.value?a.value=B(e.value).slice():a.value=Ic(t.value)}),{immediate:!0,deep:!0}),w((()=>{const e=a.value,t=new Map,i=new Map,s=n.value;(function e(n){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(let r=0;r<n.length;r+=1){const l=n[r];!l[s.options]||o?(t.set(l[s.value],l),i.set(l[s.label],l)):e(l[s.options],!0)}})(e),o.value=e,r.value=t,l.value=i})),{options:o,valueOptions:r,labelOptions:l}}let jc=0;const Ac=ln();function Mc(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b("");const t=`rc_select_${function(){let e;return Ac?(e=jc,jc+=1):e="TEST_OR_SSR",e}()}`;return e.value||t}function Tc(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function zc(e,t){return Tc(e).join("").toUpperCase().includes(t)}function Dc(e,t){const{defaultValue:n,value:o=b()}=t||{};let r="function"==typeof e?e():e;void 0!==o.value&&(r=a(o)),void 0!==n&&(r="function"==typeof n?n():n);const l=b(r),s=b(r);return w((()=>{let e=void 0!==o.value?o.value:l.value;t.postState&&(e=t.postState(e)),s.value=e})),i(o,(()=>{l.value=o.value})),[s,function(e){const n=s.value;l.value=e,B(s.value)!==e&&t.onChange&&t.onChange(e,n)}]}function Rc(e){const t="function"==typeof e?e():e,n=b(t);return[n,function(e){n.value=e}]}const Bc=["inputValue"];l({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:bt(De(De({},dc()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:Rl.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:Rl.any,defaultValue:Rl.any,onChange:Function,children:Array}),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:o,attrs:l,slots:i}=t;const a=Mc(E(e,"id")),u=n((()=>pc(e.mode))),c=n((()=>!(e.options||!e.children))),d=n((()=>(void 0!==e.filterOption||"combobox"!==e.mode)&&e.filterOption)),p=n((()=>Fl(e.fieldNames,c.value))),[f,v]=Dc("",{value:n((()=>void 0!==e.searchValue?e.searchValue:e.inputValue)),postState:e=>e||""}),m=Ec(E(e,"options"),E(e,"children"),p),{valueOptions:h,labelOptions:g,options:y}=m,x=t=>Tc(t).map((t=>{var n,o;let r,l,i,a;!function(e){return!e||"object"!=typeof e}(t)?(i=t.key,l=t.label,r=null!==(n=t.value)&&void 0!==n?n:i):r=t;const s=h.value.get(r);return s&&(void 0===l&&(l=null==s?void 0:s[e.optionLabelProp||p.value.label]),void 0===i&&(i=null!==(o=null==s?void 0:s.key)&&void 0!==o?o:r),a=null==s?void 0:s.disabled),{label:l,value:r,key:i,disabled:a,option:s}})),[C,S]=Dc(e.defaultValue,{value:E(e,"value")}),O=n((()=>{var t;const n=x(C.value);return"combobox"!==e.mode||null!==(t=n[0])&&void 0!==t&&t.value?n:[]})),[k,P]=((e,t)=>{const o=s({values:new Map,options:new Map});return[n((()=>{const{values:n,options:r}=o.value,l=e.value.map((e=>{var t;return void 0===e.label?De(De({},e),{label:null===(t=n.get(e.value))||void 0===t?void 0:t.label}):e})),i=new Map,a=new Map;return l.forEach((e=>{i.set(e.value,e),a.set(e.value,t.value.get(e.value)||r.get(e.value))})),o.value.values=i,o.value.options=a,l})),e=>t.value.get(e)||o.value.options.get(e)]})(O,h),I=n((()=>{if(!e.mode&&1===k.value.length){const e=k.value[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return k.value.map((e=>{var t;return De(De({},e),{label:null!==(t="function"==typeof e.label?e.label():e.label)&&void 0!==t?t:e.value})}))})),j=n((()=>new Set(k.value.map((e=>e.value)))));w((()=>{var t;if("combobox"===e.mode){const e=null===(t=k.value[0])||void 0===t?void 0:t.value;null!=e&&v(String(e))}}),{flush:"post"});const A=(e,t)=>{const n=t??e;return{[p.value.value]:e,[p.value.label]:n}},M=s();w((()=>{if("tags"!==e.mode)return void(M.value=y.value);const t=y.value.slice();[...k.value].sort(((e,t)=>e.value<t.value?-1:1)).forEach((e=>{const n=e.value;(e=>h.value.has(e))(n)||t.push(A(n,e.label))})),M.value=t}));const T=((e,t,o,r,l)=>n((()=>{const n=o.value,i=null==l?void 0:l.value,a=null==r?void 0:r.value;if(!n||!1===a)return e.value;const{options:s,label:u,value:c}=t.value,d=[],p="function"==typeof a,f=n.toUpperCase(),v=p?a:(e,t)=>i?zc(t[i],f):t[s]?zc(t["children"!==u?u:"label"],f):zc(t[c],f),m=p?e=>Hl(e):e=>e;return e.value.forEach((e=>{if(e[s])if(v(n,m(e)))d.push(e);else{const t=e[s].filter((e=>v(n,m(e))));t.length&&d.push(De(De({},e),{[s]:t}))}else v(n,m(e))&&d.push(e)})),d})))(M,p,f,d,E(e,"optionFilterProp")),z=n((()=>"tags"!==e.mode||!f.value||T.value.some((t=>t[e.optionFilterProp||"value"]===f.value))?T.value:[A(f.value),...T.value])),D=n((()=>e.filterSort?[...z.value].sort(((t,n)=>e.filterSort(t,n))):z.value)),R=n((()=>function(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=[],{label:r,value:l,options:i}=Fl(t,!1);return function e(t,a){t.forEach((t=>{const s=t[r];if(a||!(i in t)){const e=t[l];o.push({key:Nl(t,o.length),groupOption:a,data:t,label:s,value:e})}else{let r=s;void 0===r&&n&&(r=t.label),o.push({key:Nl(t,o.length),group:!0,data:t,label:r}),e(t[i],!0)}}))}(e,!1),o}(D.value,{fieldNames:p.value,childrenAsData:c.value}))),B=t=>{const n=x(t);if(S(n),e.onChange&&(n.length!==k.value.length||n.some(((e,t)=>{var n;return(null===(n=k.value[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){const t=e.labelInValue?n.map((e=>De(De({},e),{originLabel:e.label,label:"function"==typeof e.label?e.label():e.label}))):n.map((e=>e.value)),o=n.map((e=>Hl(P(e.value))));e.onChange(u.value?t:t[0],u.value?o:o[0])}},[N,F]=Rc(null),[H,L]=Rc(0),_=n((()=>void 0!==e.defaultActiveFirstOption?e.defaultActiveFirstOption:"combobox"!==e.mode)),W=(t,n)=>{const o=()=>{var n;const o=P(t),r=null==o?void 0:o[p.value.label];return[e.labelInValue?{label:"function"==typeof r?r():r,originLabel:r,value:t,key:null!==(n=null==o?void 0:o.key)&&void 0!==n?n:t}:t,Hl(o)]};if(n&&e.onSelect){const[t,n]=o();e.onSelect(t,n)}else if(!n&&e.onDeselect){const[t,n]=o();e.onDeselect(t,n)}},V=(e,t)=>{B(e),("remove"===t.type||"clear"===t.type)&&t.values.forEach((e=>{W(e.value,!1)}))},X=(t,n)=>{var o;if(v(t),F(null),"submit"!==n.source)"blur"!==n.source&&("combobox"===e.mode&&B(t),null===(o=e.onSearch)||void 0===o||o.call(e,t));else{const e=(t||"").trim();if(e){const t=Array.from(new Set([...j.value,e]));B(t),W(e,!0),v("")}}},K=t=>{let n=t;"tags"!==e.mode&&(n=t.map((e=>{const t=g.value.get(e);return null==t?void 0:t.value})).filter((e=>void 0!==e)));const o=Array.from(new Set([...j.value,...n]));B(o),o.forEach((e=>{W(e,!0)}))},q=n((()=>!1!==e.virtual&&!1!==e.dropdownMatchSelectWidth));!function(e){r(Sc,e)}(uc(De(De({},m),{flattenOptions:R,onActiveValue:function(t,n){let{source:o="keyboard"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};L(n),e.backfill&&"combobox"===e.mode&&null!==t&&"keyboard"===o&&F(String(t))},defaultActiveFirstOption:_,onSelect:(t,n)=>{let o;const r=!u.value||n.selected;o=r?u.value?[...k.value,t]:[t]:k.value.filter((e=>e.value!==t)),B(o),W(t,r),"combobox"===e.mode?F(""):(!u.value||e.autoClearSearchValue)&&(v(""),F(""))},menuItemSelectedIcon:E(e,"menuItemSelectedIcon"),rawValues:j,fieldNames:p,virtual:q,listHeight:E(e,"listHeight"),listItemHeight:E(e,"listItemHeight"),childrenAsData:c})));const G=b();o({focus(){var e;null===(e=G.value)||void 0===e||e.focus()},blur(){var e;null===(e=G.value)||void 0===e||e.blur()},scrollTo(e){var t;null===(t=G.value)||void 0===t||t.scrollTo(e)}});const U=n((()=>nl(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"])));return()=>$(fc,ze(ze(ze({},U.value),l),{},{id:a,prefixCls:e.prefixCls,ref:G,omitDomProps:Bc,mode:e.mode,displayValues:I.value,onDisplayValuesChange:V,searchValue:f.value,onSearch:X,onSearchSplit:K,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:kc,emptyOptions:!R.value.length,activeValue:N.value,activeDescendantId:`${a}_list_${H.value}`}),i)}});var Nc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}}]},name:"down",theme:"outlined"},Fc=Symbol("iconContext"),Hc=function(){return o(Fc,{prefixCls:b("anticon"),rootClassName:b(""),csp:b()})};function Lc(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var _c="data-vc-order",Wc=new Map;function Vc(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"vc-icon-key"}function Xc(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Kc(e){return Array.from((Wc.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function qc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Lc())return null;var n=t.csp,o=t.prepend,r=document.createElement("style");r.setAttribute(_c,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o)),n&&n.nonce&&(r.nonce=n.nonce),r.innerHTML=e;var l=Xc(t),i=l.firstChild;if(o){if("queue"===o){var a=Kc(l).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(_c))}));if(a.length)return l.insertBefore(r,a[a.length-1].nextSibling),r}l.insertBefore(r,i)}else l.appendChild(r);return r}function Gc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=Wc.get(e);if(!n||!function(e,t){return!(!e||!e.contains)&&e.contains(t)}(document,n)){var o=qc("",t),r=o.parentNode;Wc.set(e,r),e.removeChild(o)}}(Xc(n),n);var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Kc(Xc(t)).find((function(n){return n.getAttribute(Vc(t))===e}))}(t,n);if(o)return n.csp&&n.csp.nonce&&o.nonce!==n.csp.nonce&&(o.nonce=n.csp.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;var r=qc(e,n);return r.setAttribute(Vc(n),t),r}function Uc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Yc(e,t,n[t])}))}return e}function Yc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zc(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function Qc(e,t,n){return C(e.tag,n?Uc({key:t},n,e.attrs):Uc({key:t},e.attrs),(e.children||[]).map((function(n,o){return Qc(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})))}function Jc(e){return lr(e)[0]}function ed(e){return e?Array.isArray(e)?e:[e]:[]}function td(e){return e&&e.getRootNode&&e.getRootNode()}function nd(e){return function(e){return!!Lc()&&td(e)instanceof ShadowRoot}(e)?td(e):null}var od=["icon","primaryColor","secondaryColor"];function rd(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ld(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){id(e,t,n[t])}))}return e}function id(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ad=v({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});var sd=function(e,t){var n=ld({},e,t.attrs),o=n.icon,r=n.primaryColor,l=n.secondaryColor,i=rd(n,od),a=ad;if(r&&(a={primaryColor:r,secondaryColor:l||Jc(r)}),Zc(o),!Zc(o))return null;var s=o;return s&&"function"==typeof s.icon&&(s=ld({},s,{icon:s.icon(a.primaryColor,a.secondaryColor)})),Qc(s.icon,"svg-".concat(s.name),ld({},i,{"data-icon":s.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};function ud(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,l=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(l.push(o.value),!t||l.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{!i&&null!=n.return&&n.return()}finally{if(a)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return cd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cd(e,t)}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function dd(e){var t=ud(ed(e),2),n=t[0],o=t[1];return sd.setTwoToneColors({primaryColor:n,secondaryColor:o})}sd.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},sd.inheritAttrs=!1,sd.displayName="IconBase",sd.getTwoToneColors=function(){return ld({},ad)},sd.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;ad.primaryColor=t,ad.secondaryColor=n||Jc(t),ad.calculated=!!n};var pd=l({name:"InsertStyles",setup:function(){return e=Hc(),t=e.prefixCls,n=e.csp,o=m(),r="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",t&&(r=r.replace(/anticon/g,t.value)),I((function(){if(Lc()){var e=nd(o.vnode.el);Gc(r,"@ant-design-vue-icons",{prepend:!0,csp:n.value,attachTo:e})}})),function(){return null};var e,t,n,o,r}}),fd=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function vd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,l=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(l.push(o.value),!t||l.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{!i&&null!=n.return&&n.return()}finally{if(a)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return md(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return md(e,t)}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function md(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function hd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){gd(e,t,n[t])}))}return e}function gd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yd(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}dd(cr.primary);var bd=function(e,t){var n,o=hd({},e,t.attrs),r=o.class,l=o.icon,i=o.spin,a=o.rotate,s=o.tabindex,u=o.twoToneColor,c=o.onClick,d=yd(o,fd),p=Hc(),f=p.prefixCls,v=p.rootClassName,m=(gd(n={},v.value,!!v.value),gd(n,f.value,!0),gd(n,"".concat(f.value,"-").concat(l.name),!!l.name),gd(n,"".concat(f.value,"-spin"),!!i||"loading"===l.name),n),h=s;void 0===h&&c&&(h=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=vd(ed(u),2),b=y[0],w=y[1];return $("span",hd({role:"img","aria-label":l.name},d,{onClick:c,class:[m,r],tabindex:h}),[$(sd,{icon:l,primaryColor:b,secondaryColor:w,style:g},null),$(pd,null,null)])};function wd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){xd(e,t,n[t])}))}return e}function xd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}bd.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},bd.displayName="AntdIcon",bd.inheritAttrs=!1,bd.getTwoToneColor=function(){var e=sd.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},bd.setTwoToneColor=dd;var $d=function(e,t){var n=wd({},e,t.attrs);return $(bd,wd({},n,{icon:Nc}),null)};$d.displayName="DownOutlined",$d.inheritAttrs=!1;var Cd={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function Sd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Od(e,t,n[t])}))}return e}function Od(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kd=function(e,t){var n=Sd({},e,t.attrs);return $(bd,Sd({},n,{icon:Cd}),null)};kd.displayName="LoadingOutlined",kd.inheritAttrs=!1;var Pd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};function Id(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Ed(e,t,n[t])}))}return e}function Ed(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jd=function(e,t){var n=Id({},e,t.attrs);return $(bd,Id({},n,{icon:Pd}),null)};jd.displayName="CheckOutlined",jd.inheritAttrs=!1;var Ad={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function Md(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Td(e,t,n[t])}))}return e}function Td(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zd=function(e,t){var n=Md({},e,t.attrs);return $(bd,Md({},n,{icon:Ad}),null)};zd.displayName="CloseOutlined",zd.inheritAttrs=!1;var Dd={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function Rd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Bd(e,t,n[t])}))}return e}function Bd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nd=function(e,t){var n=Rd({},e,t.attrs);return $(bd,Rd({},n,{icon:Dd}),null)};Nd.displayName="CloseCircleFilled",Nd.inheritAttrs=!1;var Fd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}}]},name:"search",theme:"outlined"};function Hd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Ld(e,t,n[t])}))}return e}function Ld(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _d=function(e,t){var n=Hd({},e,t.attrs);return $(bd,Hd({},n,{icon:Fd}),null)};function Wd(e){const t=Symbol("contextKey");return{useProvide:(e,n)=>{const o=v({});return r(t,o),w((()=>{De(o,e,n||{})})),o},useInject:()=>o(t,e)||{}}}_d.displayName="SearchOutlined",_d.inheritAttrs=!1;const Vd=Symbol("ContextProps"),Xd=Symbol("InternalContextProps"),Kd={id:n((()=>{})),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},qd={addFormItemField:()=>{},removeFormItemField:()=>{}},Gd=()=>{const e=o(Xd,qd),t=Symbol("FormItemFieldKey"),n=m();return e.addFormItemField(t,n.type),x((()=>{e.removeFormItemField(t)})),r(Xd,qd),r(Vd,Kd),o(Vd,Kd)},Ud=l({compatConfig:{MODE:3},name:"AFormItemRest",setup(e,t){let{slots:n}=t;return r(Xd,qd),r(Vd,Kd),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),Yd=Wd({}),Zd=l({name:"NoFormStatus",setup(e,t){let{slots:n}=t;return Yd.useProvide({}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});function Qd(e,t,n){return Ue({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const Jd=(e,t)=>t||e,ep=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},tp=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item`]:{"&:empty":{display:"none"}}}}},np=Tr("Space",(e=>[tp(e),ep(e)]));function op(e){return"symbol"==typeof e||os(e)&&"[object Symbol]"==ga(e)}function rp(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}var lp=ca?ca.prototype:void 0,ip=lp?lp.toString:void 0;function ap(e){if("string"==typeof e)return e;if(Za(e))return rp(e,ap)+"";if(op(e))return ip?ip.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var sp=/\s/;var up=/^\s+/;function cp(e){return e&&e.slice(0,function(e){for(var t=e.length;t--&&sp.test(e.charAt(t)););return t}(e)+1).replace(up,"")}var dp=/^[-+]0x[0-9a-f]+$/i,pp=/^0b[01]+$/i,fp=/^0o[0-7]+$/i,vp=parseInt;function mp(e){if("number"==typeof e)return e;if(op(e))return NaN;if(ya(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ya(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=cp(e);var n=pp.test(e);return n||fp.test(e)?vp(e.slice(2),n?2:8):dp.test(e)?NaN:+e}var hp=1/0;function gp(e){var t=function(e){return e?(e=mp(e))===hp||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),n=t%1;return t==t?n?t-n:t:0}function yp(e){return e}var bp=Object.create,wp=function(){function e(){}return function(t){if(!ya(t))return{};if(bp)return bp(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var xp=Date.now;function $p(e){return function(){return e}}var Cp=function(){try{var e=Ma(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Sp=Cp?function(e,t){return Cp(e,"toString",{configurable:!0,enumerable:!1,value:$p(t),writable:!0})}:yp,Op=function(e){var t=0,n=0;return function(){var o=xp(),r=16-(o-n);if(n=o,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Sp);function kp(e,t,n,o){for(var r=e.length,l=n+-1;++l<r;)if(t(e[l],l,e))return l;return-1}function Pp(e){return e!=e}function Ip(e,t){return!!(null==e?0:e.length)&&function(e,t,n){return t==t?function(e,t,n){for(var o=n-1,r=e.length;++o<r;)if(e[o]===t)return o;return-1}(e,t,n):kp(e,Pp,n)}(e,t,0)>-1}function Ep(e,t,n){"__proto__"==t&&Cp?Cp(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var jp=Object.prototype.hasOwnProperty;function Ap(e,t,n){var o=e[t];(!jp.call(e,t)||!oa(o,n)||void 0===n&&!(t in e))&&Ep(e,t,n)}function Mp(e,t,n,o){var r=!n;n||(n={});for(var l=-1,i=t.length;++l<i;){var a=t[l],s=void 0;void 0===s&&(s=e[a]),r?Ep(n,a,s):Ap(n,a,s)}return n}var Tp=Math.max;function zp(e,t,n){return t=Tp(void 0===t?e.length-1:t,0),function(){for(var o=arguments,r=-1,l=Tp(o.length-t,0),i=Array(l);++r<l;)i[r]=o[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=o[r];return a[t]=n(i),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,a)}}var Dp=Object.prototype.hasOwnProperty;function Rp(e){if(!ya(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Ps(e),n=[];for(var o in e)"constructor"==o&&(t||!Dp.call(e,o))||n.push(o);return n}function Bp(e){return Ms(e)?Os(e,!0):Rp(e)}var Np=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fp=/^\w*$/;function Hp(e,t){if(Za(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!op(e))||(Fp.test(e)||!Np.test(e)||null!=t&&e in Object(t))}function Lp(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],l=n.cache;if(l.has(r))return l.get(r);var i=e.apply(this,o);return n.cache=l.set(r,i)||l,i};return n.cache=new(Lp.Cache||Fa),n}Lp.Cache=Fa;var _p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wp=/\\(\\)?/g,Vp=function(e){var t=Lp(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(_p,(function(e,n,o,r){t.push(o?r.replace(Wp,"$1"):n||e)})),t}));function Xp(e,t){return Za(e)?e:Hp(e,t)?[e]:Vp(function(e){return null==e?"":ap(e)}(e))}function Kp(e){if("string"==typeof e||op(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function qp(e,t){for(var n=0,o=(t=Xp(t,e)).length;null!=e&&n<o;)e=e[Kp(t[n++])];return n&&n==o?e:void 0}var Gp=ca?ca.isConcatSpreadable:void 0;function Up(e){return Za(e)||ss(e)||!!(Gp&&e&&e[Gp])}function Yp(e){return(null==e?0:e.length)?function(e,t,n,o,r){var l=-1,i=e.length;for(n||(n=Up),r||(r=[]);++l<i;){var a=e[l];n(a)?Ya(r,a):r[r.length]=a}return r}(e):[]}var Zp=Is(Object.getPrototypeOf,Object),Qp=Function.prototype,Jp=Object.prototype,ef=Qp.toString,tf=Jp.hasOwnProperty,nf=ef.call(Object);function of(e){if(!os(e)||"[object Object]"!=ga(e))return!1;var t=Zp(e);if(null===t)return!0;var n=tf.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ef.call(n)==nf}var rf="object"==typeof exports&&exports&&!exports.nodeType&&exports,lf=rf&&"object"==typeof module&&module&&!module.nodeType&&module,af=lf&&lf.exports===rf?ua.Buffer:void 0,sf=af?af.allocUnsafe:void 0;var uf=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ya(t,ns(e)),e=Zp(e);return t}:Ja;function cf(e){return Qa(e,Bp,uf)}var df=Object.prototype.hasOwnProperty;function pf(e){var t=new e.constructor(e.byteLength);return new Xa(t).set(new Xa(e)),t}var ff=/\w*$/;var vf=ca?ca.prototype:void 0,mf=vf?vf.valueOf:void 0;function hf(e,t,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return pf(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var n=t?pf(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?pf(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,ff.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return function(e){return mf?Object(mf.call(e)):{}}(e)}}var gf=xs&&xs.isMap,yf=gf?gs(gf):function(e){return os(e)&&"[object Map]"==Ys(e)};var bf=xs&&xs.isSet,wf=bf?gs(bf):function(e){return os(e)&&"[object Set]"==Ys(e)},xf="[object Arguments]",$f="[object Function]",Cf="[object Object]",Sf={};function Of(e,t,n,o,r,l){var i,a=1&t,s=2&t,u=4&t;if(n&&(i=r?n(e,o,r,l):n(e)),void 0!==i)return i;if(!ya(e))return e;var c=Za(e);if(c){if(i=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&df.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!a)return function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}(e,i)}else{var d=Ys(e),p=d==$f||"[object GeneratorFunction]"==d;if(ps(e))return function(e,t){if(t)return e.slice();var n=e.length,o=sf?sf(n):new e.constructor(n);return e.copy(o),o}(e,a);if(d==Cf||d==xf||p&&!r){if(i=s||p?{}:function(e){return"function"!=typeof e.constructor||Ps(e)?{}:wp(Zp(e))}(e),!a)return s?function(e,t){return Mp(e,uf(e),t)}(e,function(e,t){return e&&Mp(t,Bp(t),e)}(i,e)):function(e,t){return Mp(e,ns(e),t)}(e,function(e,t){return e&&Mp(t,Ts(t),e)}(i,e))}else{if(!Sf[d])return r?e:{};i=hf(e,d,a)}}l||(l=new Ha);var f=l.get(e);if(f)return f;l.set(e,i),wf(e)?e.forEach((function(o){i.add(Of(o,t,n,o,e,l))})):yf(e)&&e.forEach((function(o,r){i.set(r,Of(o,t,n,r,e,l))}));var v=c?void 0:(u?s?cf:zs:s?Bp:Ts)(e);return function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););}(v||e,(function(o,r){v&&(o=e[r=o]),Ap(i,r,Of(o,t,n,r,e,l))})),i}Sf[xf]=Sf["[object Array]"]=Sf["[object ArrayBuffer]"]=Sf["[object DataView]"]=Sf["[object Boolean]"]=Sf["[object Date]"]=Sf["[object Float32Array]"]=Sf["[object Float64Array]"]=Sf["[object Int8Array]"]=Sf["[object Int16Array]"]=Sf["[object Int32Array]"]=Sf["[object Map]"]=Sf["[object Number]"]=Sf[Cf]=Sf["[object RegExp]"]=Sf["[object Set]"]=Sf["[object String]"]=Sf["[object Symbol]"]=Sf["[object Uint8Array]"]=Sf["[object Uint8ClampedArray]"]=Sf["[object Uint16Array]"]=Sf["[object Uint32Array]"]=!0,Sf["[object Error]"]=Sf[$f]=Sf["[object WeakMap]"]=!1;function kf(e){return Of(e,5)}function Pf(e){return e==e&&!ya(e)}function If(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function Ef(e){var t=function(e){for(var t=Ts(e),n=t.length;n--;){var o=t[n],r=e[o];t[n]=[o,r,Pf(r)]}return t}(e);return 1==t.length&&t[0][2]?If(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,o){var r=n.length,l=r;if(null==e)return!l;for(e=Object(e);r--;){var i=n[r];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++r<l;){var a=(i=n[r])[0],s=e[a],u=i[1];if(i[2]){if(void 0===s&&!(a in e))return!1}else if(!nu(u,s,3,o,new Ha))return!1}return!0}(n,0,t)}}function jf(e,t){return null!=e&&t in Object(e)}function Af(e,t){return null!=e&&function(e,t,n){for(var o=-1,r=(t=Xp(t,e)).length,l=!1;++o<r;){var i=Kp(t[o]);if(!(l=null!=e&&n(e,i)))break;e=e[i]}return l||++o!=r?l:!!(r=null==e?0:e.length)&&ms(r)&&vs(i,r)&&(Za(e)||ss(e))}(e,t,jf)}function Mf(e,t){return Hp(e)&&Pf(t)?If(Kp(e),t):function(n){var o=function(e,t,n){var o=null==e?void 0:qp(e,t);return void 0===o?n:o}(n,e);return void 0===o&&o===t?Af(n,e):nu(t,o,3)}}function Tf(e){return Hp(e)?function(e){return function(t){return null==t?void 0:t[e]}}(Kp(e)):function(e){return function(t){return qp(t,e)}}(e)}function zf(e){return"function"==typeof e?e:null==e?yp:"object"==typeof e?Za(e)?Mf(e[0],e[1]):Ef(e):Tf(e)}function Df(e,t,n,o){for(var r=-1,l=null==e?0:e.length;++r<l;){var i=e[r];t(o,i,n(i),e)}return o}var Rf=function(e,t,n){for(var o=-1,r=Object(e),l=n(e),i=l.length;i--;){var a=l[++o];if(!1===t(r[a],a,r))break}return e};var Bf=function(e){return function(t,n){if(null==t)return t;if(!Ms(t))return e(t,n);for(var o=t.length,r=-1,l=Object(t);++r<o&&!1!==n(l[r],r,l););return t}}((function(e,t){return e&&Rf(e,t,Ts)}));function Nf(e,t,n,o){return Bf(e,(function(e,r,l){t(o,e,n(e),l)})),o}var Ff=function(){return ua.Date.now()},Hf=Math.max,Lf=Math.min;function _f(e,t,n){var o,r,l,i,a,s,u=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=o,l=r;return o=r=void 0,u=t,i=e.apply(l,n)}function v(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-u>=l}function m(){var e=Ff();if(v(e))return h(e);a=setTimeout(m,function(e){var n=t-(e-s);return d?Lf(n,l-(e-u)):n}(e))}function h(e){return a=void 0,p&&o?f(e):(o=r=void 0,i)}function g(){var e=Ff(),n=v(e);if(o=arguments,r=this,s=e,n){if(void 0===a)return function(e){return u=e,a=setTimeout(m,t),c?f(e):i}(s);if(d)return clearTimeout(a),a=setTimeout(m,t),f(s)}return void 0===a&&(a=setTimeout(m,t)),i}return t=mp(t)||0,ya(n)&&(c=!!n.leading,l=(d="maxWait"in n)?Hf(mp(n.maxWait)||0,t):l,p="trailing"in n?!!n.trailing:p),g.cancel=function(){void 0!==a&&clearTimeout(a),u=0,o=s=r=a=void 0},g.flush=function(){return void 0===a?i:h(Ff())},g}var Wf=Math.max;var Vf=function(e){return function(t,n,o){var r=Object(t);if(!Ms(t)){var l=zf(n);t=Ts(t),n=function(e){return l(r[e],e,r)}}var i=e(t,n,o);return i>-1?r[l?t[i]:i]:void 0}}((function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=null==n?0:gp(n);return r<0&&(r=Wf(o+r,0)),kp(e,zf(t),r)})),Xf=Math.min;function Kf(e){return function(e){return os(e)&&Ms(e)}(e)?e:[]}var qf=function(e,t){return Op(zp(e,t,yp),e+"")}((function(e){var t=rp(e,Kf);return t.length&&t[0]===e[0]?function(e){for(var t=Ip,n=e[0].length,o=e.length,r=o,l=Array(o),i=1/0,a=[];r--;){var s=e[r];i=Xf(s.length,i),l[r]=n>=120&&s.length>=120?new La(r&&s):void 0}s=e[0];var u=-1,c=l[0];e:for(;++u<n&&a.length<i;){var d=s[u],p=d;if(d=0!==d?d:0,!(c?Wa(c,p):t(a,p))){for(r=o;--r;){var f=l[r];if(!(f?Wa(f,p):t(e[r],p)))continue e}c&&c.push(p),a.push(d)}}return a}(t):[]}));function Gf(e,t){return t.length<2?e:qp(e,function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(r);++o<r;)l[o]=e[o+t];return l}(t,0,-1))}var Uf=Object.prototype.hasOwnProperty;function Yf(e){if(null==e)return!0;if(Ms(e)&&(Za(e)||"string"==typeof e||"function"==typeof e.splice||ps(e)||Cs(e)||ss(e)))return!e.length;var t=Ys(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Ps(e))return!As(e).length;for(var n in e)if(Uf.call(e,n))return!1;return!0}function Zf(e,t){return null==(e=Gf(e,t=Xp(t,e)))||delete e[Kp(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]}function Qf(e){return of(e)?void 0:e}var Jf=function(e){return Op(zp(e,void 0,Yp),e+"")}((function(e,t){var n={};if(null==e)return n;var o=!1;t=rp(t,(function(t){return t=Xp(t,e),o||(o=t.length>1),t})),Mp(e,cf(e),n),o&&(n=Of(n,7,Qf));for(var r=t.length;r--;)Zf(n,t[r]);return n})),ev=function(e,t){return function(n,o){var r=Za(n)?Df:Nf,l=t?t():{};return r(n,e,zf(o),l)}}((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),tv=Ns&&1/qa(new Ns([,-0]))[1]==1/0?function(e){return new Ns(e)}:function(){};function nv(e){return e&&e.length?function(e,t,n){var o=-1,r=Ip,l=e.length,i=!0,a=[],s=a;if(l>=200){var u=tv(e);if(u)return qa(u);i=!1,r=Wa,s=new La}else s=a;e:for(;++o<l;){var c=e[o],d=c;if(c=0!==c?c:0,i&&d==d){for(var p=s.length;p--;)if(s[p]===d)continue e;a.push(c)}else r(s,d,n)||(s!==a&&s.push(d),a.push(c))}return a}(e):[]}const ov=Wd(null),rv=(e,t)=>{const o=ov.useInject(),r=n((()=>{if(!o||Yf(o))return"";const{compactDirection:n,isFirstItem:r,isLastItem:l}=o,i="vertical"===n?"-vertical-":"-";return Ue({[`${e.value}-compact${i}item`]:!0,[`${e.value}-compact${i}first-item`]:r,[`${e.value}-compact${i}last-item`]:l,[`${e.value}-compact${i}item-rtl`]:"rtl"===t.value})}));return{compactSize:n((()=>null==o?void 0:o.compactSize)),compactDirection:n((()=>null==o?void 0:o.compactDirection)),compactItemClassnames:r}},lv=l({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return ov.useProvide(null),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),iv=l({name:"CompactItem",props:{compactSize:String,compactDirection:Rl.oneOf(re("horizontal","vertical")).def("horizontal"),isFirstItem:se(),isLastItem:se()},setup(e,t){let{slots:n}=t;return ov.useProvide(e),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});l({name:"ASpaceCompact",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},direction:Rl.oneOf(re("horizontal","vertical")).def("horizontal"),align:Rl.oneOf(re("start","end","center","baseline")),block:{type:Boolean,default:void 0}},setup(e,t){let{attrs:o,slots:r}=t;const{prefixCls:l,direction:i}=tl("space-compact",e),a=ov.useInject(),[s,u]=np(l),c=n((()=>Ue(l.value,u.value,{[`${l.value}-rtl`]:"rtl"===i.value,[`${l.value}-block`]:e.block,[`${l.value}-vertical`]:"vertical"===e.direction})));return()=>{var t;const n=xt((null===(t=r.default)||void 0===t?void 0:t.call(r))||[]);return 0===n.length?null:s($("div",ze(ze({},o),{},{class:[c.value,o.class]}),[n.map(((t,o)=>{var r;const i=t&&t.key||`${l.value}-item-${o}`,s=!a||Yf(a);return $(iv,{key:i,compactSize:null!==(r=e.size)&&void 0!==r?r:"middle",compactDirection:e.direction,isFirstItem:0===o&&(s||(null==a?void 0:a.isFirstItem)),isLastItem:o===n.length-1&&(s||(null==a?void 0:a.isLastItem))},{default:()=>[t]})}))]))}}});const av=e=>({animationDuration:e,animationFillMode:"both"}),sv=e=>({animationDuration:e,animationFillMode:"both"}),uv=function(e,t,n,o){const r=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${r}${e}-enter,\n ${r}${e}-appear\n `]:De(De({},av(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:De(De({},sv(o)),{animationPlayState:"paused"}),[`\n ${r}${e}-enter${e}-enter-active,\n ${r}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${r}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},cv=new jo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),dv=new jo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),pv=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[uv(o,cv,dv,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},fv=new jo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vv=new jo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),mv=new jo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hv=new jo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),gv=new jo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),yv=new jo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),bv={"move-up":{inKeyframes:new jo("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new jo("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:fv,outKeyframes:vv},"move-left":{inKeyframes:mv,outKeyframes:hv},"move-right":{inKeyframes:gv,outKeyframes:yv}},wv=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:l}=bv[t];return[uv(o,r,l,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},xv=new jo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),$v=new jo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Cv=new jo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Sv=new jo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Ov=new jo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),kv=new jo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Pv=new jo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Iv=new jo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Ev={"slide-up":{inKeyframes:xv,outKeyframes:$v},"slide-down":{inKeyframes:Cv,outKeyframes:Sv},"slide-left":{inKeyframes:Ov,outKeyframes:kv},"slide-right":{inKeyframes:Pv,outKeyframes:Iv}},jv=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:l}=Ev[t];return[uv(o,r,l,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Av=new jo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Mv=new jo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Tv=new jo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zv=new jo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Dv=new jo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Rv=new jo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Bv=new jo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Nv=new jo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Fv=new jo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Hv=new jo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Lv=new jo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),_v=new jo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Wv={zoom:{inKeyframes:Av,outKeyframes:Mv},"zoom-big":{inKeyframes:Tv,outKeyframes:zv},"zoom-big-fast":{inKeyframes:Tv,outKeyframes:zv},"zoom-left":{inKeyframes:Bv,outKeyframes:Nv},"zoom-right":{inKeyframes:Fv,outKeyframes:Hv},"zoom-up":{inKeyframes:Dv,outKeyframes:Rv},"zoom-down":{inKeyframes:Lv,outKeyframes:_v}},Vv=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:l}=Wv[t];return[uv(o,r,l,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Xv=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Kv=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},qv=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`;return[{[`${n}-dropdown`]:De(De({},Ir(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft\n `]:{animationName:xv},[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft\n `]:{animationName:Cv},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:$v},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Sv},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${o}-empty`]:De(De({},Kv(e)),{color:e.colorTextDisabled}),[`${o}`]:De(De({},Kv(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":De({flex:"auto"},Pr),"&-state":{flex:"none"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${o}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},jv(e,"slide-up"),jv(e,"slide-down"),wv(e,"move-up"),wv(e,"move-down")]};function Gv(e){let{controlHeightSM:t,controlHeight:n,lineWidth:o}=e;const r=(n-t)/2-o;return[r,Math.ceil(r/2)]}function Uv(e,t){const{componentCls:n,iconCls:o}=e,r=`${n}-selection-overflow`,l=e.controlHeightSM,[i]=Gv(e),a=t?`${n}-${t}`:"";return{[`${n}-multiple${a}`]:{fontSize:e.fontSize,[r]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:i-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${l}px`,content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:l,marginTop:2,marginBottom:2,lineHeight:l-2*e.lineWidth+"px",background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":De(De({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,"\n &-input,\n &-mirror\n ":{height:l,fontFamily:e.fontFamily,lineHeight:`${l}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function Yv(e){const{componentCls:t}=e,n=Rr(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,o]=Gv(e);return[Uv(e),Uv(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"},[`${t}-selection-search`]:{marginInlineStart:o}}},Uv(Rr(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function Zv(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,l=e.controlHeight-2*e.lineWidth,i=Math.ceil(1.25*e.fontSize),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,[`${n}-selector`]:De(De({},Ir(e)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${l}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${l}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${o}px`,[`${n}-selection-search-input`]:{height:l},"&:after":{lineHeight:`${l}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${o}px`,"&:after":{display:"none"}}}}}}}function Qv(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[Zv(e),Zv(Rr(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},Zv(Rr(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function Jv(e,t,n){const{focusElCls:o,focus:r,borderElCls:l}=n,i=l?"> *":"",a=["hover",r?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${i}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":De(De({[a]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function em(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function tm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:De(De({},Jv(e,o,t)),em(n,o,t))}}const nm=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},om=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{componentCls:o,borderHoverColor:r,outlineColor:l,antCls:i}=t,a=n?{[`${o}-selector`]:{borderColor:r}}:{};return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${i}-pagination-size-changer)`]:De(De({},a),{[`${o}-focused& ${o}-selector`]:{borderColor:r,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${l}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${o}-selector`]:{borderColor:r,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},rm=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},lm=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[t]:De(De({},Ir(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:De(De({},nm(e)),rm(e)),[`${t}-selection-item`]:De({flex:1,fontWeight:"normal"},Pr),[`${t}-selection-placeholder`]:De(De({},Pr),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:De(De({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},im=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},lm(e),Qv(e),Yv(e),qv(e),{[`${t}-rtl`]:{direction:"rtl"}},om(t,Rr(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),om(`${t}-status-error`,Rr(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),om(`${t}-status-warning`,Rr(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),tm(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},am=Tr("Select",((e,t)=>{let{rootPrefixCls:n}=t;const o=Rr(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[im(o)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50})));var sm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}},{tag:"path",attrs:{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"}}]},name:"check-circle",theme:"outlined"};function um(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){cm(e,t,n[t])}))}return e}function cm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dm=function(e,t){var n=um({},e,t.attrs);return $(bd,um({},n,{icon:sm}),null)};dm.displayName="CheckCircleOutlined",dm.inheritAttrs=!1;var pm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}},{tag:"path",attrs:{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"}}]},name:"exclamation-circle",theme:"outlined"};function fm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){vm(e,t,n[t])}))}return e}function vm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mm=function(e,t){var n=fm({},e,t.attrs);return $(bd,fm({},n,{icon:pm}),null)};mm.displayName="ExclamationCircleOutlined",mm.inheritAttrs=!1;var hm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}},{tag:"path",attrs:{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"}}]},name:"info-circle",theme:"outlined"};function gm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){ym(e,t,n[t])}))}return e}function ym(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bm=function(e,t){var n=gm({},e,t.attrs);return $(bd,gm({},n,{icon:hm}),null)};bm.displayName="InfoCircleOutlined",bm.inheritAttrs=!1;var wm={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};function xm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){$m(e,t,n[t])}))}return e}function $m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cm=function(e,t){var n=xm({},e,t.attrs);return $(bd,xm({},n,{icon:wm}),null)};Cm.displayName="CloseCircleOutlined",Cm.inheritAttrs=!1;var Sm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}}]},name:"check-circle",theme:"filled"};function Om(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){km(e,t,n[t])}))}return e}function km(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pm=function(e,t){var n=Om({},e,t.attrs);return $(bd,Om({},n,{icon:Sm}),null)};Pm.displayName="CheckCircleFilled",Pm.inheritAttrs=!1;var Im={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}}]},name:"exclamation-circle",theme:"filled"};function Em(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){jm(e,t,n[t])}))}return e}function jm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Am=function(e,t){var n=Em({},e,t.attrs);return $(bd,Em({},n,{icon:Im}),null)};Am.displayName="ExclamationCircleFilled",Am.inheritAttrs=!1;var Mm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}}]},name:"info-circle",theme:"filled"};function Tm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){zm(e,t,n[t])}))}return e}function zm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dm=function(e,t){var n=Tm({},e,t.attrs);return $(bd,Tm({},n,{icon:Mm}),null)};Dm.displayName="InfoCircleFilled",Dm.inheritAttrs=!1;const Rm=["xxxl","xxl","xl","lg","md","sm","xs"];function Bm(){const[,e]=Wr();return n((()=>{const t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`{min-width: ${e.screenXXXL}px}`}))(e.value),n=new Map;let o=-1,r={};return{matchHandlers:{},dispatch:e=>(r=e,n.forEach((e=>e(r))),n.size>=1),subscribe(e){return n.size||this.register(),o+=1,n.set(o,e),e(r),o},unsubscribe(e){n.delete(e),n.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],o=this.matchHandlers[n];null==o||o.mql.removeListener(null==o?void 0:o.listener)})),n.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(De(De({},r),{[e]:n}))},l=window.matchMedia(n);l.addListener(o),this.matchHandlers[n]={mql:l,listener:o},o(l)}))},responsiveMap:t}}))}const Nm=e=>{const{antCls:t,componentCls:n,iconCls:o,avatarBg:r,avatarColor:l,containerSize:i,containerSizeLG:a,containerSizeSM:s,textFontSize:u,textFontSizeLG:c,textFontSizeSM:d,borderRadius:p,borderRadiusLG:f,borderRadiusSM:v,lineWidth:m,lineType:h}=e,g=(e,t,r)=>({width:e,height:e,lineHeight:e-2*m+"px",borderRadius:"50%",[`&${n}-square`]:{borderRadius:r},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:t,[`> ${o}`]:{margin:0}}});return{[n]:De(De(De(De({},Ir(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:l,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${m}px ${h} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),g(i,u,p)),{"&-lg":De({},g(a,c,f)),"&-sm":De({},g(s,d,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Fm=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:o,groupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:o}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:r}}}},Hm=Tr("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=Rr(e,{avatarBg:n,avatarColor:t});return[Nm(o),Fm(o)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:o,fontSize:r,fontSizeLG:l,fontSizeXL:i,fontSizeHeading3:a,marginXS:s,marginXXS:u,colorBorderBg:c}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:o,textFontSize:Math.round((l+i)/2),textFontSizeLG:a,textFontSizeSM:r,groupSpace:u,groupOverlapping:-s,groupBorderColor:c}})),Lm=Symbol("AvatarContextKey"),_m=l({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:{prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:Rl.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}},slots:Object,setup(e,t){let{slots:r,attrs:l}=t;const a=s(!0),u=s(!1),c=s(1),d=s(null),p=s(null),{prefixCls:f}=tl("avatar",e),[v,m]=Hm(f),g=o(Lm,{}),b=n((()=>"default"===e.size?g.size:e.size)),x=function(){const e=s({});let t=null;const n=Bm();return h((()=>{t=n.value.subscribe((t=>{e.value=t}))})),y((()=>{n.value.unsubscribe(t)})),e}(),C=function(e){const t=s();return w((()=>{t.value=e()}),{flush:"sync"}),t}((()=>{if("object"!=typeof e.size)return;const t=Rm.find((e=>x.value[e]));return e.size[t]})),S=e=>C.value?{width:`${C.value}px`,height:`${C.value}px`,lineHeight:`${C.value}px`,fontSize:(e?C.value/2:18)+"px"}:{},O=()=>{if(!d.value||!p.value)return;const t=d.value.offsetWidth,n=p.value.offsetWidth;if(0!==t&&0!==n){const{gap:o=4}=e;2*o<n&&(c.value=n-2*o<t?(n-2*o)/t:1)}},k=()=>{const{loadError:t}=e;!1!==(null==t?void 0:t())&&(a.value=!1)};return i((()=>e.src),(()=>{I((()=>{a.value=!0,c.value=1}))})),i((()=>e.gap),(()=>{I((()=>{O()}))})),h((()=>{I((()=>{O(),u.value=!0}))})),()=>{var t,n;const{shape:o,src:i,alt:s,srcset:h,draggable:y,crossOrigin:w}=e,x=null!==(t=g.shape)&&void 0!==t?t:o,C=Et(r,e,"icon"),P=f.value,I={[`${l.class}`]:!!l.class,[P]:!0,[`${P}-lg`]:"large"===b.value,[`${P}-sm`]:"small"===b.value,[`${P}-${x}`]:!0,[`${P}-image`]:i&&a.value,[`${P}-icon`]:C,[m.value]:!0},E="number"==typeof b.value?{width:`${b.value}px`,height:`${b.value}px`,lineHeight:`${b.value}px`,fontSize:C?b.value/2+"px":"18px"}:{},j=null===(n=r.default)||void 0===n?void 0:n.call(r);let A;if(i&&a.value)A=$("img",{draggable:y,src:i,srcset:h,onError:k,alt:s,crossorigin:w},null);else if(C)A=C;else if(u.value||1!==c.value){const e=`scale(${c.value}) translateX(-50%)`,t={msTransform:e,WebkitTransform:e,transform:e},n="number"==typeof b.value?{lineHeight:`${b.value}px`}:{};A=$(jt,{onResize:O},{default:()=>[$("span",{class:`${P}-string`,ref:d,style:De(De({},n),t)},[j])]})}else A=$("span",{class:`${P}-string`,ref:d,style:{opacity:0}},[j]);return v($("span",ze(ze({},l),{},{ref:p,class:I,style:[E,S(!!C),l.style]}),[A]))}}}),Wm={adjustX:1,adjustY:1},Vm=[0,0],Xm={left:{points:["cr","cl"],overflow:Wm,offset:[-4,0],targetOffset:Vm},right:{points:["cl","cr"],overflow:Wm,offset:[4,0],targetOffset:Vm},top:{points:["bc","tc"],overflow:Wm,offset:[0,-4],targetOffset:Vm},bottom:{points:["tc","bc"],overflow:Wm,offset:[0,4],targetOffset:Vm},topLeft:{points:["bl","tl"],overflow:Wm,offset:[0,-4],targetOffset:Vm},leftTop:{points:["tr","tl"],overflow:Wm,offset:[-4,0],targetOffset:Vm},topRight:{points:["br","tr"],overflow:Wm,offset:[0,-4],targetOffset:Vm},rightTop:{points:["tl","tr"],overflow:Wm,offset:[4,0],targetOffset:Vm},bottomRight:{points:["tr","br"],overflow:Wm,offset:[0,4],targetOffset:Vm},rightBottom:{points:["bl","br"],overflow:Wm,offset:[4,0],targetOffset:Vm},bottomLeft:{points:["tl","bl"],overflow:Wm,offset:[0,4],targetOffset:Vm},leftBottom:{points:["br","bl"],overflow:Wm,offset:[-4,0],targetOffset:Vm}},Km={prefixCls:String,id:String,overlayInnerStyle:Rl.any},qm=l({compatConfig:{MODE:3},name:"TooltipContent",props:Km,setup(e,t){let{slots:n}=t;return()=>{var t;return $("div",{class:`${e.prefixCls}-inner`,id:e.id,role:"tooltip",style:e.overlayInnerStyle},[null===(t=n.overlay)||void 0===t?void 0:t.call(n)])}}});function Gm(){}const Um=l({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:Rl.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:Rl.string.def("right"),transitionName:String,animation:Rl.any,afterVisibleChange:Rl.func.def((()=>{})),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:Rl.string.def("rc-tooltip"),mouseEnterDelay:Rl.number.def(.1),mouseLeaveDelay:Rl.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:Rl.object.def((()=>({}))),arrowContent:Rl.any.def(null),tipId:String,builtinPlacements:Rl.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function,arrow:{type:Boolean,default:!0}},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=s(),i=()=>{const{prefixCls:t,tipId:o,overlayInnerStyle:r}=e;return[e.arrow?$("div",{class:`${t}-arrow`,key:"arrow"},[Et(n,e,"arrowContent")]):null,$(qm,{key:"content",prefixCls:t,id:o,overlayInnerStyle:r},{overlay:n.overlay})]};r({getPopupDomNode:()=>l.value.getPopupDomNode(),triggerDOM:l,forcePopupAlign:()=>{var e;return null===(e=l.value)||void 0===e?void 0:e.forcePopupAlign()}});const a=s(!1),u=s(!1);return w((()=>{const{destroyTooltipOnHide:t}=e;if("boolean"==typeof t)a.value=t;else if(t&&"object"==typeof t){const{keepParent:e}=t;a.value=!0===e,u.value=!1===e}})),()=>{const{overlayClassName:t,trigger:r,mouseEnterDelay:s,mouseLeaveDelay:c,overlayStyle:d,prefixCls:p,afterVisibleChange:f,transitionName:v,animation:m,placement:h,align:g,destroyTooltipOnHide:y,defaultVisible:b}=e,w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),x=De({},w);void 0!==e.visible&&(x.popupVisible=e.visible);const C=De(De(De({popupClassName:t,prefixCls:p,action:r,builtinPlacements:Xm,popupPlacement:h,popupAlign:g,afterPopupVisibleChange:f,popupTransitionName:v,popupAnimation:m,defaultPopupVisible:b,destroyPopupOnHide:a.value,autoDestroy:u.value,mouseLeaveDelay:c,popupStyle:d,mouseEnterDelay:s},x),o),{onPopupVisibleChange:e.onVisibleChange||Gm,onPopupAlign:e.onPopupAlign||Gm,ref:l,arrow:!!e.arrow,popup:i()});return $(Eu,C,{default:n.default})}}}),Ym=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:ae(),overlayInnerStyle:ae(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},arrow:{type:[Boolean,Object],default:!0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:ae(),builtinPlacements:ae(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),Zm={adjustX:1,adjustY:1},Qm={adjustX:0,adjustY:0},Jm=[0,0];function eh(e){return"boolean"==typeof e?e?Zm:Qm:De(De({},Qm),e)}function th(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:r,arrowPointAtCenter:l}=e,i={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(n+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+t)]},topRight:{points:["br","tc"],offset:[n+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+t)]},bottomRight:{points:["tr","bc"],offset:[n+t,4]},rightBottom:{points:["bl","cr"],offset:[4,o+t]},bottomLeft:{points:["tl","bc"],offset:[-(n+t),4]},leftBottom:{points:["br","cl"],offset:[-4,o+t]}};return Object.keys(i).forEach((e=>{i[e]=l?De(De({},i[e]),{overflow:eh(r),targetOffset:Jm}):De(De({},Xm[e]),{overflow:eh(r)}),i[e].ignoreShake=!0})),i}const nh=Mo.map((e=>`${e}-inverse`));function oh(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?Mo.includes(e):[...nh,...Mo].includes(e)}(t),o=Ue({[`${e}-${t}`]:t&&n}),r={},l={};return t&&!n&&(r.background=t,l["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:l}}function rh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.map((e=>`${t}${e}`)).join(",")}function lh(e){const{sizePopupArrow:t,contentRadius:n,borderRadiusOuter:o,limitVerticalRadius:r}=e,l=t/2-Math.ceil(o*(Math.sqrt(2)-1)),i=(n>12?n+2:12)-l;return{dropdownArrowOffset:i,dropdownArrowOffsetVertical:r?8-l:i}}function ih(e,t){const{componentCls:n,sizePopupArrow:o,marginXXS:r,borderRadiusXS:l,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,showArrowCls:u,contentRadius:c=e.borderRadiusLG,limitVerticalRadius:d}=t,{dropdownArrowOffsetVertical:p,dropdownArrowOffset:f}=lh({sizePopupArrow:o,contentRadius:c,borderRadiusOuter:i,limitVerticalRadius:d}),v=o/2+r;return{[n]:{[`${n}-arrow`]:[De(De({position:"absolute",zIndex:1,display:"block"},Or(o,l,i,s,a)),{"&:before":{background:s}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:p},[`&-placement-leftBottom ${n}-arrow`]:{bottom:p},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:p},[`&-placement-rightBottom ${n}-arrow`]:{bottom:p},[rh(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map((e=>e+":not(&-arrow-hidden)")),u)]:{paddingBottom:v},[rh(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map((e=>e+":not(&-arrow-hidden)")),u)]:{paddingTop:v},[rh(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map((e=>e+":not(&-arrow-hidden)")),u)]:{paddingRight:{_skip_check_:!0,value:v}},[rh(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map((e=>e+":not(&-arrow-hidden)")),u)]:{paddingLeft:{_skip_check_:!0,value:v}}}}}const ah=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:l,zIndexPopup:i,controlHeight:a,boxShadowSecondary:s,paddingSM:u,paddingXS:c,tooltipRadiusOuter:d}=e;return[{[t]:De(De(De(De({},Ir(e)),{position:"absolute",zIndex:i,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:a,minHeight:a,padding:`${u/2}px ${c}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:l,boxShadow:s},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(l,8)}},[`${t}-content`]:{position:"relative"}}),kr(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},ih(Rr(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:l,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]},sh=l({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:bt(De(De({},Ym()),{title:Rl.any}),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(e,t){let{slots:o,emit:r,attrs:l,expose:a}=t;const{prefixCls:s,getPopupContainer:u,direction:d,rootPrefixCls:p}=tl("tooltip",e),f=n((()=>{var t;return null!==(t=e.open)&&void 0!==t?t:e.visible})),v=b(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let t=0,n=e.length;t<n;t++)if(void 0!==e[t])return e[t]}([e.open,e.visible])),m=b();let h;i(f,(e=>{Rt.cancel(h),h=Rt((()=>{v.value=!!e}))}));const g=()=>{var t;const n=null!==(t=e.title)&&void 0!==t?t:o.title;return!n&&0!==n},y=e=>{const t=g();void 0===f.value&&(v.value=!t&&e),t||(r("update:visible",e),r("visibleChange",e),r("update:open",e),r("openChange",e))};a({getPopupDomNode:()=>m.value.getPopupDomNode(),open:v,forcePopupAlign:()=>{var e;return null===(e=m.value)||void 0===e?void 0:e.forcePopupAlign()}});const w=n((()=>{var t;const{builtinPlacements:n,autoAdjustOverflow:o,arrow:r,arrowPointAtCenter:l}=e;let i=l;return"object"==typeof r&&(i=null!==(t=r.pointAtCenter)&&void 0!==t?t:l),n||th({arrowPointAtCenter:i,autoAdjustOverflow:o})})),x=e=>e||""===e,C=e=>{const t=e.type;if("object"==typeof t&&e.props&&((!0===t.__ANT_BUTTON||"button"===t)&&x(e.props.disabled)||!0===t.__ANT_SWITCH&&(x(e.props.disabled)||x(e.props.loading))||!0===t.__ANT_RADIO&&x(e.props.disabled))){const{picked:t,omitted:n}=((e,t)=>{const n={},o=De({},e);return t.forEach((t=>{e&&t in e&&(n[t]=e[t],delete o[t])})),{picked:n,omitted:o}})(Ot(e),["position","left","right","top","bottom","float","display","zIndex"]),o=De(De({display:"inline-block"},t),{cursor:"not-allowed",lineHeight:1,width:e.props&&e.props.block?"100%":void 0}),r=ea(e,{style:De(De({},n),{pointerEvents:"none"})},!0);return $("span",{style:o,class:`${s.value}-disabled-compatible-wrapper`},[r])}return e},S=()=>{var t,n;return null!==(t=e.title)&&void 0!==t?t:null===(n=o.title)||void 0===n?void 0:n.call(o)},O=(e,t)=>{const n=w.value,o=Object.keys(n).find((e=>{var o,r;return n[e].points[0]===(null===(o=t.points)||void 0===o?void 0:o[0])&&n[e].points[1]===(null===(r=t.points)||void 0===r?void 0:r[1])}));if(o){const n=e.getBoundingClientRect(),r={top:"50%",left:"50%"};o.indexOf("top")>=0||o.indexOf("Bottom")>=0?r.top=n.height-t.offset[1]+"px":(o.indexOf("Top")>=0||o.indexOf("bottom")>=0)&&(r.top=-t.offset[1]+"px"),o.indexOf("left")>=0||o.indexOf("Right")>=0?r.left=n.width-t.offset[0]+"px":(o.indexOf("right")>=0||o.indexOf("Left")>=0)&&(r.left=-t.offset[0]+"px"),e.style.transformOrigin=`${r.left} ${r.top}`}},k=n((()=>oh(s.value,e.color))),P=n((()=>l["data-popover-inject"])),[I,E]=((e,t)=>Tr("Tooltip",(e=>{if(!1===(null==t?void 0:t.value))return[];const{borderRadius:n,colorTextLightSolid:o,colorBgDefault:r,borderRadiusOuter:l}=e,i=Rr(e,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:n,tooltipBg:r,tooltipRadiusOuter:l>4?4:l});return[ah(i),Vv(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}))(e))(s,n((()=>!P.value)));return()=>{var t,n;const{openClassName:r,overlayClassName:i,overlayStyle:a,overlayInnerStyle:h}=e;let b=null!==(n=Pt(null===(t=o.default)||void 0===t?void 0:t.call(o)))&&void 0!==n?n:null;b=1===b.length?b[0]:b;let x=v.value;if(void 0===f.value&&g()&&(x=!1),!b)return null;const P=C(It(b)&&!function(e){return 1===e.length&&e[0].type===c}(b)?b:$("span",null,[b])),j=Ue({[r||`${s.value}-open`]:!0,[P.props&&P.props.class]:P.props&&P.props.class}),A=Ue(i,{[`${s.value}-rtl`]:"rtl"===d.value},k.value.className,E.value),M=De(De({},k.value.overlayStyle),h),T=k.value.arrowStyle,z=De(De(De({},l),e),{prefixCls:s.value,arrow:!!e.arrow,getPopupContainer:null==u?void 0:u.value,builtinPlacements:w.value,visible:x,ref:m,overlayClassName:A,overlayStyle:De(De({},T),a),overlayInnerStyle:M,onVisibleChange:y,onPopupAlign:O,transitionName:du(p.value,"zoom-big-fast",e.transitionName)});return I($(Um,z,{default:()=>[v.value?ea(P,{class:j}):P],arrowContent:()=>$("span",{class:`${s.value}-arrow-content`},null),overlay:S}))}}}),uh=le(sh),ch=e=>{const{componentCls:t,popoverBg:n,popoverColor:o,width:r,fontWeightStrong:l,popoverPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:u,zIndexPopup:c,marginXS:d,colorBgElevated:p}=e;return[{[t]:De(De({},Ir(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":p,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:u,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:l},[`${t}-inner-content`]:{color:o}})},ih(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",[`${t}-content`]:{display:"inline-block"}}}]},dh=e=>{const{componentCls:t}=e;return{[t]:Mo.map((n=>{const o=e[`${n}-6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}},ph=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:r,paddingSM:l,controlHeight:i,fontSize:a,lineHeight:s,padding:u}=e,c=i-Math.round(a*s),d=c/2,p=c/2-n,f=u;return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${f}px ${p}px`,borderBottom:`${n}px ${o} ${r}`},[`${t}-inner-content`]:{padding:`${l}px ${f}px`}}}},fh=Tr("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,r=Rr(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[ch(r),dh(r),o&&ph(r),Vv(r,"zoom-big")]}),(e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}})),vh=l({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:bt(De(De({},Ym()),{content:ce(),title:ce()}),De(De({},{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(e,t){let{expose:o,slots:r,attrs:l}=t;const i=b();wn(void 0===e.visible),o({getPopupDomNode:()=>{var e,t;return null===(t=null===(e=i.value)||void 0===e?void 0:e.getPopupDomNode)||void 0===t?void 0:t.call(e)}});const{prefixCls:a,configProvider:s}=tl("popover",e),[u,d]=fh(a),p=n((()=>s.getPrefixCls())),f=()=>{var t,n;const{title:o=Pt(null===(t=r.title)||void 0===t?void 0:t.call(r)),content:l=Pt(null===(n=r.content)||void 0===n?void 0:n.call(r))}=e,i=!!(Array.isArray(o)?o.length:o),s=!!(Array.isArray(l)?l.length:o);return i||s?$(c,null,[i&&$("div",{class:`${a.value}-title`},[o]),$("div",{class:`${a.value}-inner-content`},[l])]):null};return()=>{const t=Ue(e.overlayClassName,d.value);return u($(uh,ze(ze(ze({},nl(e,["title","content"])),l),{},{prefixCls:a.value,ref:i,overlayClassName:t,transitionName:du(p.value,"zoom-big",e.transitionName),"data-popover-inject":!0}),{title:f,default:r.default}))}}}),mh=le(vh),hh=l({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:{prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}},setup(e,t){let{slots:o,attrs:l}=t;const{prefixCls:i,direction:a}=tl("avatar",e),s=n((()=>`${i.value}-group`)),[u,c]=Hm(i);return w((()=>{(e=>{r(Lm,e)})({size:e.size,shape:e.shape})})),()=>{const{maxPopoverPlacement:t="top",maxCount:n,maxStyle:r,maxPopoverTrigger:i="hover",shape:d}=e,p={[s.value]:!0,[`${s.value}-rtl`]:"rtl"===a.value,[`${l.class}`]:!!l.class,[c.value]:!0},f=Et(o,e),v=xt(f).map(((e,t)=>ea(e,{key:`avatar-key-${t}`}))),m=v.length;if(n&&n<m){const e=v.slice(0,n),o=v.slice(n,m);return e.push($(mh,{key:"avatar-popover-key",content:o,trigger:i,placement:t,overlayClassName:`${s.value}-popover`},{default:()=>[$(_m,{style:r,shape:d},{default:()=>["+"+(m-n)]})]})),u($("div",ze(ze({},l),{},{class:p,style:l.style}),[e]))}return u($("div",ze(ze({},l),{},{class:p,style:l.style}),[v]))}}});_m.Group=hh,_m.install=function(e){return e.component(_m.name,_m),e.component(hh.name,hh),e};const gh={adjustX:1,adjustY:1},yh=[0,0],bh={topLeft:{points:["bl","tl"],overflow:gh,offset:[0,-4],targetOffset:yh},topCenter:{points:["bc","tc"],overflow:gh,offset:[0,-4],targetOffset:yh},topRight:{points:["br","tr"],overflow:gh,offset:[0,-4],targetOffset:yh},bottomLeft:{points:["tl","bl"],overflow:gh,offset:[0,4],targetOffset:yh},bottomCenter:{points:["tc","bc"],overflow:gh,offset:[0,4],targetOffset:yh},bottomRight:{points:["tr","br"],overflow:gh,offset:[0,4],targetOffset:yh}};const wh=l({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:Rl.string.def("rc-dropdown"),transitionName:String,overlayClassName:Rl.string.def(""),openClassName:String,animation:Rl.any,align:Rl.object,overlayStyle:{type:Object,default:void 0},placement:Rl.string.def("bottomLeft"),overlay:Rl.any,trigger:Rl.oneOfType([Rl.string,Rl.arrayOf(Rl.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:Rl.array,hideAction:Rl.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:Rl.number.def(.15),mouseLeaveDelay:Rl.number.def(.1)},emits:["visibleChange","overlayClick"],setup(e,t){let{slots:o,emit:r,expose:l}=t;const a=b(!!e.visible);i((()=>e.visible),(e=>{void 0!==e&&(a.value=e)}));const s=b();l({triggerRef:s});const u=t=>{void 0===e.visible&&(a.value=!1),r("overlayClick",t)},d=t=>{void 0===e.visible&&(a.value=t),r("visibleChange",t)},p=()=>{var t;const n=null===(t=o.overlay)||void 0===t?void 0:t.call(o),r={prefixCls:`${e.prefixCls}-menu`,onClick:u};return $(c,{key:wt},[e.arrow&&$("div",{class:`${e.prefixCls}-arrow`},null),ea(n,r,!1)])},f=n((()=>{const{minOverlayWidthMatchTrigger:t=!e.alignPoint}=e;return t})),v=()=>{var t;const n=null===(t=o.default)||void 0===t?void 0:t.call(o);return a.value&&n?ea(n[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):n},m=n((()=>e.hideAction||-1===e.trigger.indexOf("contextmenu")?e.hideAction:["click"]));return()=>{const{prefixCls:t,arrow:n,showAction:o,overlayStyle:r,trigger:l,placement:i,align:u,getPopupContainer:c,transitionName:h,animation:g,overlayClassName:y}=e,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return $(Eu,ze(ze({},b),{},{prefixCls:t,ref:s,popupClassName:Ue(y,{[`${t}-show-arrow`]:n}),popupStyle:r,builtinPlacements:bh,action:l,showAction:o,hideAction:m.value||[],popupPlacement:i,popupAlign:u,popupTransitionName:h,popupAnimation:g,popupVisible:a.value,stretch:f.value?"minWidth":"",onPopupVisibleChange:d,getPopupContainer:c}),{popup:p,default:v})}}}),xh=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},$h=Tr("Wave",(e=>[xh(e)]));function Ch(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function Sh(e){return Number.isNaN(e)?0:e}const Oh=l({props:{target:ae(),className:String},setup(e){const t=s(null),[n,o]=Rc(null),[r,l]=Rc([]),[i,a]=Rc(0),[u,c]=Rc(0),[d,p]=Rc(0),[f,v]=Rc(0),[m,g]=Rc(!1);function y(){const{target:t}=e,n=getComputedStyle(t);o(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return Ch(t)?t:Ch(n)?n:Ch(o)?o:null}(t));const r="static"===n.position,{borderLeftWidth:i,borderTopWidth:s}=n;a(r?t.offsetLeft:Sh(-parseFloat(i))),c(r?t.offsetTop:Sh(-parseFloat(s))),p(t.offsetWidth),v(t.offsetHeight);const{borderTopLeftRadius:u,borderTopRightRadius:d,borderBottomLeftRadius:f,borderBottomRightRadius:m}=n;l([u,d,m,f].map((e=>Sh(parseFloat(e)))))}let b,w,C;const O=()=>{clearTimeout(C),Rt.cancel(w),null==b||b.disconnect()},k=()=>{var e;const n=null===(e=t.value)||void 0===e?void 0:e.parentElement;n&&(N(null,n),n.parentElement&&n.parentElement.removeChild(n))};h((()=>{O(),C=setTimeout((()=>{k()}),5e3);const{target:t}=e;t&&(w=Rt((()=>{y(),g(!0)})),typeof ResizeObserver<"u"&&(b=new ResizeObserver(y),b.observe(t)))})),x((()=>{O()}));const P=e=>{"opacity"===e.propertyName&&k()};return()=>{if(!m.value)return null;const o={left:`${i.value}px`,top:`${u.value}px`,width:`${d.value}px`,height:`${f.value}px`,borderRadius:r.value.map((e=>`${e}px`)).join(" ")};return n&&(o["--wave-color"]=n.value),$(S,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[$("div",{ref:t,class:e.className,style:o,onTransitionend:P},null)]})}}});function kh(e,t){const n=m();let o;return x((()=>{null==o||o()})),function(){var r;const l=$t(n);null==o||o(),(null===(r=null==t?void 0:t.value)||void 0===r||!r.disabled)&&l&&(o=function(e,t){const n=document.createElement("div");return n.style.position="absolute",n.style.left="0px",n.style.top="0px",null==e||e.insertBefore(n,null==e?void 0:e.firstChild),N($(Oh,{target:e,className:t},null),n),()=>{N(null,n),n.parentElement&&n.parentElement.removeChild(n)}}(l,e.value))}}const Ph=l({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:o}=t;const r=m(),{prefixCls:l,wave:a}=tl("wave",e),[,s]=$h(l),u=kh(n((()=>Ue(l.value,s.value))),a);let c;const d=()=>{$t(r).removeEventListener("click",c,!0)};return h((()=>{i((()=>e.disabled),(()=>{d(),I((()=>{const t=$t(r);null==t||t.removeEventListener("click",c,!0),t&&1===t.nodeType&&!e.disabled&&(c=e=>{"INPUT"===e.target.tagName||!ta(e.target)||!t.getAttribute||t.getAttribute("disabled")||t.disabled||t.className.includes("disabled")||t.className.includes("-leave")||u()},t.addEventListener("click",c,!0))}))}),{immediate:!0,flush:"post"})})),x((()=>{d()})),()=>{var e;return null===(e=o.default)||void 0===e?void 0:e.call(o)[0]}}}),Ih=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:Rl.any,href:String,target:String,title:String,onClick:ie(),onMousedown:ie()}),Eh=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},jh=e=>{I((()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")}))},Ah=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},Mh=l({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup:e=>()=>{const{existIcon:t,prefixCls:n,loading:o}=e;if(t)return $("span",{class:`${n}-loading-icon`},[$(kd,null,null)]);const r=!!o;return $(S,{name:`${n}-loading-icon-motion`,onBeforeEnter:Eh,onEnter:jh,onAfterEnter:Ah,onBeforeLeave:jh,onLeave:e=>{setTimeout((()=>{Eh(e)}))},onAfterLeave:Ah},{default:()=>[r?$("span",{class:`${n}-loading-icon`},[$(kd,null,null)]):null]})}}),Th=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),zh=e=>{const{componentCls:t,fontSize:n,lineWidth:o,colorPrimaryHover:r,colorErrorHover:l}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-o,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Th(`${t}-primary`,r),Th(`${t}-danger`,l)]}};function Dh(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Rh(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Bh(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:De(De({},Dh(e,t)),Rh(e.componentCls,t))}}const Nh=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":De({},Mr(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Fh=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),Hh=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Lh=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),_h=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Wh=(e,t,n,o,r,l,i)=>({[`&${e}-background-ghost`]:De(De({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},Fh(De({backgroundColor:"transparent"},l),De({backgroundColor:"transparent"},i))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:r||void 0}})}),Vh=e=>({"&:disabled":De({},_h(e))}),Xh=e=>De({},Vh(e)),Kh=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),qh=e=>De(De(De(De(De({},Xh(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Fh({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Wh(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:De(De(De({color:e.colorError,borderColor:e.colorError},Fh({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Wh(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Vh(e))}),Gh=e=>De(De(De(De(De({},Xh(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Fh({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Wh(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:De(De(De({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},Fh({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Wh(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Vh(e))}),Uh=e=>De(De({},qh(e)),{borderStyle:"dashed"}),Yh=e=>De(De(De({color:e.colorLink},Fh({color:e.colorLinkHover},{color:e.colorLinkActive})),Kh(e)),{[`&${e.componentCls}-dangerous`]:De(De({color:e.colorError},Fh({color:e.colorErrorHover},{color:e.colorErrorActive})),Kh(e))}),Zh=e=>De(De(De({},Fh({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Kh(e)),{[`&${e.componentCls}-dangerous`]:De(De({color:e.colorError},Kh(e)),Fh({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),Qh=e=>De(De({},_h(e)),{[`&${e.componentCls}:hover`]:De({},_h(e))}),Jh=e=>{const{componentCls:t}=e;return{[`${t}-default`]:qh(e),[`${t}-primary`]:Gh(e),[`${t}-dashed`]:Uh(e),[`${t}-link`]:Yh(e),[`${t}-text`]:Zh(e),[`${t}-disabled`]:Qh(e)}},eg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,iconCls:o,controlHeight:r,fontSize:l,lineHeight:i,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:u}=e,c=Math.max(0,(r-l*i)/2-a),d=u-a,p=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:l,height:r,padding:`${c}px ${d}px`,borderRadius:s,[`&${p}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${p}) ${n}-loading-icon > ${o}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:Hh(e)},{[`${n}${n}-round${t}`]:Lh(e)}]},tg=e=>eg(e),ng=e=>{const t=Rr(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return eg(t,`${e.componentCls}-sm`)},og=e=>{const t=Rr(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return eg(t,`${e.componentCls}-lg`)},rg=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},lg=Tr("Button",(e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,o=Rr(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[Nh(o),ng(o),tg(o),og(o),rg(o),Jh(o),zh(o),tm(e,{focus:!1}),Bh(e)]})),ig=Wd(),ag=l({compatConfig:{MODE:3},name:"AButtonGroup",props:{prefixCls:String,size:{type:String}},setup(e,t){let{slots:o}=t;const{prefixCls:r,direction:l}=tl("btn-group",e),[,,i]=Wr();ig.useProvide(v({size:n((()=>e.size))}));const a=n((()=>{const{size:t}=e;let n="";switch(t){case"large":n="lg";break;case"small":n="sm";break;case"middle":case void 0:break;default:Bl(!t,"Button.Group","Invalid prop `size`.")}return{[`${r.value}`]:!0,[`${r.value}-${n}`]:n,[`${r.value}-rtl`]:"rtl"===l.value,[i.value]:!0}}));return()=>{var e;return $("div",{class:a.value},[xt(null===(e=o.default)||void 0===e?void 0:e.call(o))])}}}),sg=/^[\u4e00-\u9fa5]{2}$/,ug=sg.test.bind(sg);function cg(e){return"text"===e||"link"===e}const dg=l({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:bt(Ih(),{type:"default"}),slots:Object,setup(e,t){let{slots:o,attrs:r,emit:l,expose:a}=t;const{prefixCls:u,autoInsertSpaceInButton:c,direction:d,size:p}=tl("btn",e),[v,m]=lg(u),y=ig.useInject(),b=Ht(),C=n((()=>{var t;return null!==(t=e.disabled)&&void 0!==t?t:b.value})),S=s(null),O=s(void 0);let k=!1;const P=s(!1),I=s(!1),E=n((()=>!1!==c.value)),{compactSize:j,compactItemClassnames:A}=rv(u,d),M=n((()=>"object"==typeof e.loading&&e.loading.delay?e.loading.delay||!0:!!e.loading));i(M,(e=>{clearTimeout(O.value),"number"==typeof M.value?O.value=setTimeout((()=>{P.value=e}),M.value):P.value=e}),{immediate:!0});const T=n((()=>{const{type:t,shape:n="default",ghost:o,block:r,danger:l}=e,i=u.value,a=j.value||(null==y?void 0:y.size)||p.value,s=a&&{large:"lg",small:"sm",middle:void 0}[a]||"";return[A.value,{[m.value]:!0,[`${i}`]:!0,[`${i}-${n}`]:"default"!==n&&n,[`${i}-${t}`]:t,[`${i}-${s}`]:s,[`${i}-loading`]:P.value,[`${i}-background-ghost`]:o&&!cg(t),[`${i}-two-chinese-chars`]:I.value&&E.value,[`${i}-block`]:r,[`${i}-dangerous`]:!!l,[`${i}-rtl`]:"rtl"===d.value}]})),z=()=>{const e=S.value;if(!e||!1===c.value)return;const t=e.textContent;k&&ug(t)?I.value||(I.value=!0):I.value&&(I.value=!1)},D=e=>{P.value||C.value?e.preventDefault():l("click",e)},R=e=>{l("mousedown",e)};return w((()=>{Bl(!(e.ghost&&cg(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")})),h(z),g(z),x((()=>{O.value&&clearTimeout(O.value)})),a({focus:()=>{var e;null===(e=S.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=S.value)||void 0===e||e.blur()}}),()=>{var t,n;const{icon:l=(null===(t=o.icon)||void 0===t?void 0:t.call(o))}=e,i=xt(null===(n=o.default)||void 0===n?void 0:n.call(o));k=1===i.length&&!l&&!cg(e.type);const{type:a,htmlType:s,href:c,title:d,target:p}=e,m=P.value?"loading":l,h=De(De({},r),{title:d,disabled:C.value,class:[T.value,r.class,{[`${u.value}-icon-only`]:0===i.length&&!!m}],onClick:D,onMousedown:R});C.value||delete h.disabled;const g=l&&!P.value?l:$(Mh,{existIcon:!!l,prefixCls:u.value,loading:!!P.value},null),y=i.map((e=>((e,t)=>{const n=t?" ":"";if(e.type===f){let t=e.children.trim();return ug(t)&&(t=t.split("").join(n)),$("span",null,[t])}return e})(e,k&&E.value)));if(void 0!==c)return v($("a",ze(ze({},h),{},{href:c,target:p,ref:S}),[g,y]));let b=$("button",ze(ze({},h),{},{ref:S,type:s}),[g,y]);if(!cg(a)){const e=function(){return b}();b=$(Ph,{ref:"wave",disabled:!!P.value},{default:()=>[e]})}return v(b)}}});dg.Group=ag,dg.install=function(e){return e.component(dg.name,dg),e.component(ag.name,ag),e};const pg=()=>({arrow:fe([Boolean,Object]),trigger:{type:[Array,String]},menu:ae(),overlay:Rl.any,visible:se(),open:se(),disabled:se(),danger:se(),autofocus:se(),align:ae(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:ae(),forceRender:se(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:se(),destroyPopupOnHide:se(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),fg=Ih();var vg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function mg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){hg(e,t,n[t])}))}return e}function hg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gg=function(e,t){var n=mg({},e,t.attrs);return $(bd,mg({},n,{icon:vg}),null)};gg.displayName="EllipsisOutlined",gg.inheritAttrs=!1;const yg=e=>{const{componentCls:t,antCls:n,paddingXS:o,opacityLoading:r}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:r},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:o}}}}},bg=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,l=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},wg=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,dropdownArrowOffset:l,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:u,dropdownPaddingVertical:c,fontSize:d,dropdownEdgeChildPadding:p,colorTextDisabled:f,fontSizeIcon:v,controlPaddingHorizontal:m,colorBgElevated:h,boxShadowPopoverArrow:g}=e;return[{[t]:De(De({},Ir(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:i/2-r,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:v},[`${s}-down::before`]:{transition:`transform ${u}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`\n &-show-arrow${t}-placement-topLeft,\n &-show-arrow${t}-placement-top,\n &-show-arrow${t}-placement-topRight\n `]:{paddingBottom:r},[`\n &-show-arrow${t}-placement-bottomLeft,\n &-show-arrow${t}-placement-bottom,\n &-show-arrow${t}-placement-bottomRight\n `]:{paddingTop:r},[`${t}-arrow`]:De({position:"absolute",zIndex:1,display:"block"},Or(i,e.borderRadiusXS,e.borderRadiusOuter,h,g)),[`\n &-placement-top > ${t}-arrow,\n &-placement-topLeft > ${t}-arrow,\n &-placement-topRight > ${t}-arrow\n `]:{bottom:r,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:l}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:l}},[`\n &-placement-bottom > ${t}-arrow,\n &-placement-bottomLeft > ${t}-arrow,\n &-placement-bottomRight > ${t}-arrow\n `]:{top:r,transform:"translateY(-100%)"},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateY(-100%) translateX(-50%)"},[`&-placement-bottomLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:l}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:l}},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:xv},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Cv},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:$v},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Sv}})},{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}},[`${t}, ${t}-menu-submenu`]:{[n]:De(De({padding:p,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Mr(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${m}px`,color:e.colorTextDescription,transition:`all ${u}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",borderRadius:e.borderRadiusSM},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${u}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:De(De({clear:"both",margin:0,padding:`${c}px ${m}px`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${u}`,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Mr(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:v,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:m+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[jv(e,"slide-up"),jv(e,"slide-down"),wv(e,"move-up"),wv(e,"move-down"),Vv(e,"zoom-big")]]},xg=Tr("Dropdown",((e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:o,sizePopupArrow:r,controlHeight:l,fontSize:i,lineHeight:a,paddingXXS:s,componentCls:u,borderRadiusOuter:c,borderRadiusLG:d}=e,p=(l-i*a)/2,{dropdownArrowOffset:f}=lh({sizePopupArrow:r,contentRadius:d,borderRadiusOuter:c}),v=Rr(e,{menuCls:`${u}-menu`,rootPrefixCls:n,dropdownArrowDistance:r/2+o,dropdownArrowOffset:f,dropdownPaddingVertical:p,dropdownEdgeChildPadding:s});return[wg(v),yg(v),bg(v)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50})));const $g=dg.Group,Cg=l({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:bt(De(De({},pg()),{type:fg.type,size:String,htmlType:fg.htmlType,href:String,disabled:se(),prefixCls:String,icon:Rl.any,title:String,loading:fg.loading,onClick:ie()}),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:Object,setup(e,t){let{slots:o,attrs:r,emit:l}=t;const i=e=>{l("update:visible",e),l("visibleChange",e),l("update:open",e),l("openChange",e)},{prefixCls:a,direction:s,getPopupContainer:u}=tl("dropdown",e),c=n((()=>`${a.value}-button`)),[d,p]=xg(a);return()=>{var t,n;const l=De(De({},e),r),{type:a="default",disabled:f,danger:v,loading:m,htmlType:h,class:g="",overlay:y=(null===(t=o.overlay)||void 0===t?void 0:t.call(o)),trigger:b,align:w,open:x,visible:C,onVisibleChange:S,placement:O=("rtl"===s.value?"bottomLeft":"bottomRight"),href:k,title:P,icon:I=(null===(n=o.icon)||void 0===n?void 0:n.call(o))||$(gg,null,null),mouseEnterDelay:E,mouseLeaveDelay:j,overlayClassName:A,overlayStyle:M,destroyPopupOnHide:T,onClick:z,"onUpdate:open":D}=l,R=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(l,["type","disabled","danger","loading","htmlType","class","overlay","trigger","align","open","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:open"]),B={align:w,disabled:f,trigger:f?[]:b,placement:O,getPopupContainer:null==u?void 0:u.value,onOpenChange:i,mouseEnterDelay:E,mouseLeaveDelay:j,open:x??C,overlayClassName:A,overlayStyle:M,destroyPopupOnHide:T},N=$(dg,{danger:v,type:a,disabled:f,loading:m,onClick:z,htmlType:h,href:k,title:P},{default:o.default}),F=$(dg,{danger:v,type:a,icon:I},null);return d($($g,ze(ze({},R),{},{class:Ue(c.value,g,p.value)}),{default:()=>[o.leftButton?o.leftButton({button:N}):N,$(jg,B,{default:()=>[o.rightButton?o.rightButton({button:F}):F],overlay:()=>y})]}))}}});var Sg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}}]},name:"right",theme:"outlined"};function Og(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){kg(e,t,n[t])}))}return e}function kg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pg=function(e,t){var n=Og({},e,t.attrs);return $(bd,Og({},n,{icon:Sg}),null)};Pg.displayName="RightOutlined",Pg.inheritAttrs=!1;const Ig=Symbol("OverrideContextKey"),Eg=()=>o(Ig,void 0),jg=l({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:bt(pg(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:o,attrs:l,emit:i}=t;const{prefixCls:a,rootPrefixCls:s,direction:u,getPopupContainer:c}=tl("dropdown",e),[d,p]=xg(a),f=n((()=>{const{placement:t="",transitionName:n}=e;return void 0!==n?n:t.includes("top")?`${s.value}-slide-down`:`${s.value}-slide-up`}));(e=>{var t,o,l;const{prefixCls:i,mode:a,selectable:s,validator:u,onClick:c,expandIcon:d}=Eg()||{};r(Ig,{prefixCls:n((()=>{var t,n;return null!==(n=null===(t=e.prefixCls)||void 0===t?void 0:t.value)&&void 0!==n?n:null==i?void 0:i.value})),mode:n((()=>{var t,n;return null!==(n=null===(t=e.mode)||void 0===t?void 0:t.value)&&void 0!==n?n:null==a?void 0:a.value})),selectable:n((()=>{var t,n;return null!==(n=null===(t=e.selectable)||void 0===t?void 0:t.value)&&void 0!==n?n:null==s?void 0:s.value})),validator:null!==(t=e.validator)&&void 0!==t?t:u,onClick:null!==(o=e.onClick)&&void 0!==o?o:c,expandIcon:null!==(l=e.expandIcon)&&void 0!==l?l:null==d?void 0:d.value})})({prefixCls:n((()=>`${a.value}-menu`)),expandIcon:n((()=>$("span",{class:`${a.value}-menu-submenu-arrow`},[$(Pg,{class:`${a.value}-menu-submenu-arrow-icon`},null)]))),mode:n((()=>"vertical")),selectable:n((()=>!1)),onClick:()=>{},validator:e=>{let{mode:t}=e}});const v=()=>{var t,n,r;const l=e.overlay||(null===(t=o.overlay)||void 0===t?void 0:t.call(o)),i=Array.isArray(l)?l[0]:l;if(!i)return null;const s=i.props||{};Bl(!s.mode||"vertical"===s.mode,"Dropdown",`mode="${s.mode}" is not supported for Dropdown's Menu.`);const{selectable:u=!1,expandIcon:c=(null===(r=null===(n=i.children)||void 0===n?void 0:n.expandIcon)||void 0===r?void 0:r.call(n))}=s,d=typeof c<"u"&&It(c)?c:$("span",{class:`${a.value}-menu-submenu-arrow`},[$(Pg,{class:`${a.value}-menu-submenu-arrow-icon`},null)]);return It(i)?ea(i,{mode:"vertical",selectable:u,expandIcon:()=>d}):i},m=n((()=>{const t=e.placement;if(!t)return"rtl"===u.value?"bottomRight":"bottomLeft";if(t.includes("Center")){const e=t.slice(0,t.indexOf("Center"));return Bl(!t.includes("Center"),"Dropdown",`You are using '${t}' placement in Dropdown, which is deprecated. Try to use '${e}' instead.`),e}return t})),h=n((()=>"boolean"==typeof e.visible?e.visible:e.open)),g=e=>{i("update:visible",e),i("visibleChange",e),i("update:open",e),i("openChange",e)};return()=>{var t,n;const{arrow:r,trigger:i,disabled:s,overlayClassName:y}=e,b=null===(t=o.default)||void 0===t?void 0:t.call(o)[0],w=ea(b,De({class:Ue(null===(n=null==b?void 0:b.props)||void 0===n?void 0:n.class,{[`${a.value}-rtl`]:"rtl"===u.value},`${a.value}-trigger`)},s?{disabled:s}:{})),x=Ue(y,p.value,{[`${a.value}-rtl`]:"rtl"===u.value}),C=s?[]:i;let S;C&&C.includes("contextmenu")&&(S=!0);const O=th({arrowPointAtCenter:"object"==typeof r&&r.pointAtCenter,autoAdjustOverflow:!0}),k=nl(De(De(De({},e),l),{visible:h.value,builtinPlacements:O,overlayClassName:x,arrow:!!r,alignPoint:S,prefixCls:a.value,getPopupContainer:null==c?void 0:c.value,transitionName:f.value,trigger:C,onVisibleChange:g,placement:m.value}),["overlay","onUpdate:visible"]);return d($(wh,k,{default:()=>[w],overlay:v}))}}});function Ag(e,t){return function(e,t){let n;if(void 0!==n)return!!n;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;const l=Object.prototype.hasOwnProperty.bind(t);for(let r=0;r<o.length;r++){const i=o[r];if(!l(i))return!1;const a=e[i],s=t[i];if(n=void 0,!1===n||void 0===n&&a!==s)return!1}return!0}(B(e),B(t))}jg.Button=Cg;const Mg=Symbol("menuContextKey"),Tg=e=>{r(Mg,e)},zg=()=>o(Mg),Dg=Symbol("ForceRenderKey"),Rg=()=>o(Dg,!1),Bg=Symbol("menuFirstLevelContextKey"),Ng=e=>{r(Bg,e)},Fg=l({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t;const o=De({},zg());return void 0!==e.mode&&(o.mode=E(e,"mode")),void 0!==e.overflowDisabled&&(o.overflowDisabled=E(e,"overflowDisabled")),Tg(o),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),Hg=Symbol("siderCollapsed"),Lg="$$__vc-menu-more__key",_g=Symbol("KeyPathContext"),Wg=()=>o(_g,{parentEventKeys:n((()=>[])),parentKeys:n((()=>[])),parentInfo:{}}),Vg=Symbol("measure"),Xg=l({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return r(Vg,!0),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),Kg=()=>o(Vg,!1);function qg(e){const{mode:t,rtl:o,inlineIndent:r}=zg();return n((()=>"inline"!==t.value?null:o.value?{paddingRight:e.value*r.value+"px"}:{paddingLeft:e.value*r.value+"px"}))}let Gg=0;const Ug=l({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:{id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:Rl.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:ae()},slots:Object,setup(e,t){let{slots:r,emit:l,attrs:a}=t;const u=m(),c=Kg(),d="symbol"==typeof u.vnode.key?String(u.vnode.key):u.vnode.key;Bl("symbol"!=typeof u.vnode.key,"MenuItem",`MenuItem \`:key="${String(d)}"\` not support Symbol type`);const p=`menu_item_${++Gg}_$$_${d}`,{parentEventKeys:f,parentKeys:v}=Wg(),{prefixCls:h,activeKeys:g,disabled:y,changeActiveKeys:b,rtl:w,inlineCollapsed:C,siderCollapsed:S,onItemClick:O,selectedKeys:k,registerMenuInfo:P,unRegisterMenuInfo:I}=zg(),E=o(Bg,!0),j=s(!1),A=n((()=>[...v.value,d]));P(p,{eventKey:p,key:d,parentEventKeys:f,parentKeys:v,isLeaf:!0}),x((()=>{I(p)})),i(g,(()=>{j.value=!!g.value.find((e=>e===d))}),{immediate:!0});const M=n((()=>y.value||e.disabled)),T=n((()=>k.value.includes(d))),z=n((()=>{const t=`${h.value}-item`;return{[`${t}`]:!0,[`${t}-danger`]:e.danger,[`${t}-active`]:j.value,[`${t}-selected`]:T.value,[`${t}-disabled`]:M.value}})),D=t=>({key:d,eventKey:p,keyPath:A.value,eventKeyPath:[...f.value,p],domEvent:t,item:De(De({},e),a)}),R=e=>{if(M.value)return;const t=D(e);l("click",e),O(t)},B=e=>{M.value||(b(A.value),l("mouseenter",e))},N=e=>{M.value||(b([]),l("mouseleave",e))},F=e=>{if(l("keydown",e),e.which===Au.ENTER){const t=D(e);l("click",e),O(t)}},H=e=>{b(A.value),l("focus",e)},L=(e,t)=>{const n=$("span",{class:`${h.value}-title-content`},[t]);return(!e||It(t)&&"span"===t.type)&&t&&C.value&&E&&"string"==typeof t?$("div",{class:`${h.value}-inline-collapsed-noicon`},[t.charAt(0)]):n},_=qg(n((()=>A.value.length)));return()=>{var t,n,o,l,i;if(c)return null;const s=null!==(t=e.title)&&void 0!==t?t:null===(n=r.title)||void 0===n?void 0:n.call(r),u=xt(null===(o=r.default)||void 0===o?void 0:o.call(r)),p=u.length;let f=s;typeof s>"u"?f=E&&p?u:"":!1===s&&(f="");const v={title:f};!S.value&&!C.value&&(v.title=null,v.open=!1);const m={};"option"===e.role&&(m["aria-selected"]=T.value);const g=null!==(l=e.icon)&&void 0!==l?l:null===(i=r.icon)||void 0===i?void 0:i.call(r,e);return $(uh,ze(ze({},v),{},{placement:w.value?"left":"right",overlayClassName:`${h.value}-inline-collapsed-tooltip`}),{default:()=>[$(Yu.Item,ze(ze(ze({component:"li"},a),{},{id:e.id,style:De(De({},a.style||{}),_.value),class:[z.value,{[`${a.class}`]:!!a.class,[`${h.value}-item-only-child`]:1===(g?p+1:p)}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":d,"aria-disabled":e.disabled},m),{},{onMouseenter:B,onMouseleave:N,onClick:R,onKeydown:F,onFocus:H,title:"string"==typeof s?s:void 0}),{default:()=>[ea("function"==typeof g?g(e.originItemValue):g,{class:`${h.value}-item-icon`},!1),L(g,u)]})]})}}}),Yg={adjustX:1,adjustY:1},Zg={topLeft:{points:["bl","tl"],overflow:Yg,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Yg,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Yg,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Yg,offset:[4,0]}},Qg={topLeft:{points:["bl","tl"],overflow:Yg,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Yg,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Yg,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Yg,offset:[4,0]}},Jg={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ey=l({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(e,t){let{slots:o,emit:r}=t;const l=s(!1),{getPopupContainer:a,rtl:u,subMenuOpenDelay:c,subMenuCloseDelay:d,builtinPlacements:p,triggerSubMenuAction:f,forceSubMenuRender:v,motion:m,defaultMotions:h,rootClassName:g}=zg(),y=Rg(),b=n((()=>u.value?De(De({},Qg),p.value):De(De({},Zg),p.value))),w=n((()=>Jg[e.mode])),C=s();i((()=>e.visible),(e=>{Rt.cancel(C.value),C.value=Rt((()=>{l.value=e}))}),{immediate:!0}),x((()=>{Rt.cancel(C.value)}));const S=e=>{r("visibleChange",e)},O=n((()=>{var t,n;const o=m.value||(null===(t=h.value)||void 0===t?void 0:t[e.mode])||(null===(n=h.value)||void 0===n?void 0:n.other),r="function"==typeof o?o():o;return r?uu(r.name,{css:!0}):void 0}));return()=>{const{prefixCls:t,popupClassName:n,mode:r,popupOffset:i,disabled:s}=e;return $(Eu,{prefixCls:t,popupClassName:Ue(`${t}-popup`,{[`${t}-rtl`]:u.value},n,g.value),stretch:"horizontal"===r?"minWidth":null,getPopupContainer:a.value,builtinPlacements:b.value,popupPlacement:w.value,popupVisible:l.value,popupAlign:i&&{offset:i},action:s?[]:[f.value],mouseEnterDelay:c.value,mouseLeaveDelay:d.value,onPopupVisibleChange:S,forceRender:y||v.value,popupAnimation:O.value},{popup:o.popup,default:o.default})}}}),ty=(e,t)=>{let{slots:n,attrs:o}=t;var r;const{prefixCls:l,mode:i}=zg();return $("ul",ze(ze({},o),{},{class:Ue(l.value,`${l.value}-sub`,`${l.value}-${"inline"===i.value?"inline":"vertical"}`),"data-menu-list":!0}),[null===(r=n.default)||void 0===r?void 0:r.call(n)])};ty.displayName="SubMenuList";const ny=l({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:o}=t;const r=n((()=>"inline")),{motion:l,mode:a,defaultMotions:s}=zg(),u=n((()=>a.value===r.value)),c=b(!u.value),d=n((()=>!!u.value&&e.open));i(a,(()=>{u.value&&(c.value=!1)}),{flush:"post"});const p=n((()=>{var t,n;const o=l.value||(null===(t=s.value)||void 0===t?void 0:t[r.value])||(null===(n=s.value)||void 0===n?void 0:n.other);return De(De({},"function"==typeof o?o():o),{appear:e.keyPath.length<=1})}));return()=>{var t;return c.value?null:$(Fg,{mode:r.value},{default:()=>[$(S,p.value,{default:()=>[O($(ty,{id:e.id},{default:()=>[null===(t=o.default)||void 0===t?void 0:t.call(o)]}),[[A,d.value]])]})]})}}});let oy=0;const ry=l({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:{icon:Rl.any,title:Rl.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:ae()},slots:Object,setup(e,t){let{slots:o,attrs:l,emit:a}=t;var u,d;Ng(!1);const p=Kg(),f=m(),v="symbol"==typeof f.vnode.key?String(f.vnode.key):f.vnode.key;Bl("symbol"!=typeof f.vnode.key,"SubMenu",`SubMenu \`:key="${String(v)}"\` not support Symbol type`);const h=yt(v)?v:`sub_menu_${++oy}_$$_not_set_key`,g=null!==(u=e.eventKey)&&void 0!==u?u:yt(v)?`sub_menu_${++oy}_$$_${v}`:h,{parentEventKeys:y,parentInfo:b,parentKeys:w}=Wg(),C=n((()=>[...w.value,h])),S=s([]),O={eventKey:g,key:h,parentEventKeys:y,childrenEventKeys:S,parentKeys:w};null===(d=b.childrenEventKeys)||void 0===d||d.value.push(g),x((()=>{var e;b.childrenEventKeys&&(b.childrenEventKeys.value=null===(e=b.childrenEventKeys)||void 0===e?void 0:e.value.filter((e=>e!=g)))})),((e,t,o)=>{const{parentEventKeys:l,parentKeys:i}=Wg(),a=n((()=>[...l.value,e])),s=n((()=>[...i.value,t]));r(_g,{parentEventKeys:a,parentKeys:s,parentInfo:o})})(g,h,O);const{prefixCls:k,activeKeys:P,disabled:I,changeActiveKeys:E,mode:j,inlineCollapsed:A,openKeys:M,overflowDisabled:T,onOpenChange:z,registerMenuInfo:D,unRegisterMenuInfo:R,selectedSubMenuKeys:B,expandIcon:N,theme:F}=zg(),H=null!=v,L=!p&&(Rg()||!H);(e=>{r(Dg,e)})(L),(p&&H||!p&&!H||L)&&(D(g,O),x((()=>{R(g)})));const _=n((()=>`${k.value}-submenu`)),W=n((()=>I.value||e.disabled)),V=s(),X=s(),K=n((()=>M.value.includes(h))),q=n((()=>!T.value&&K.value)),G=n((()=>B.value.includes(h))),U=s(!1);i(P,(()=>{U.value=!!P.value.find((e=>e===h))}),{immediate:!0});const Y=e=>{W.value||(a("titleClick",e,h),"inline"===j.value&&z(h,!K.value))},Z=e=>{W.value||(E(C.value),a("mouseenter",e))},Q=e=>{W.value||(E([]),a("mouseleave",e))},J=qg(n((()=>C.value.length))),ee=e=>{"inline"!==j.value&&z(h,e)},te=()=>{E(C.value)},ne=g&&`${g}-popup`,oe=n((()=>Ue(k.value,`${k.value}-${e.theme||F.value}`,e.popupClassName))),re=n((()=>"inline"!==j.value&&C.value.length>1?"vertical":j.value)),le=n((()=>"horizontal"===j.value?"vertical":j.value)),ie=n((()=>"horizontal"===re.value?"vertical":re.value)),ae=()=>{var t,n;const r=_.value,l=null!==(t=e.icon)&&void 0!==t?t:null===(n=o.icon)||void 0===n?void 0:n.call(o,e),i=e.expandIcon||o.expandIcon||N.value,a=((t,n)=>{if(!n)return A.value&&!w.value.length&&t&&"string"==typeof t?$("div",{class:`${k.value}-inline-collapsed-noicon`},[t.charAt(0)]):$("span",{class:`${k.value}-title-content`},[t]);const o=It(t)&&"span"===t.type;return $(c,null,[ea("function"==typeof n?n(e.originItemValue):n,{class:`${k.value}-item-icon`},!1),o?t:$("span",{class:`${k.value}-title-content`},[t])])})(Et(o,e,"title"),l);return $("div",{style:J.value,class:`${r}-title`,tabindex:W.value?null:-1,ref:V,title:"string"==typeof a?a:null,"data-menu-id":h,"aria-expanded":q.value,"aria-haspopup":!0,"aria-controls":ne,"aria-disabled":W.value,onClick:Y,onFocus:te},[a,"horizontal"!==j.value&&i?i(De(De({},e),{isOpen:q.value})):$("i",{class:`${r}-arrow`},null)])};return()=>{var t;if(p)return H?null===(t=o.default)||void 0===t?void 0:t.call(o):null;const n=_.value;let r=()=>null;if(T.value||"inline"===j.value)r=()=>$(ey,null,{default:ae});else{const t="horizontal"===j.value?[0,8]:[10,0];r=()=>$(ey,{mode:re.value,prefixCls:n,visible:!e.internalPopupClose&&q.value,popupClassName:oe.value,popupOffset:e.popupOffset||t,disabled:W.value,onVisibleChange:ee},{default:()=>[ae()],popup:()=>$(Fg,{mode:ie.value},{default:()=>[$(ty,{id:ne,ref:X},{default:o.default})]})})}return $(Fg,{mode:le.value},{default:()=>[$(Yu.Item,ze(ze({component:"li"},l),{},{role:"none",class:Ue(n,`${n}-${j.value}`,l.class,{[`${n}-open`]:q.value,[`${n}-active`]:U.value,[`${n}-selected`]:G.value,[`${n}-disabled`]:W.value}),onMouseenter:Z,onMouseleave:Q,"data-submenu-id":h}),{default:()=>$(c,null,[r(),!T.value&&$(ny,{id:ne,open:q.value,keyPath:C.value},{default:o.default})])})]})}}});function ly(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function iy(e,t){e.classList?e.classList.add(t):ly(e,t)||(e.className=`${e.className} ${t}`)}function ay(e,t){if(e.classList)e.classList.remove(t);else if(ly(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}const sy=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant-motion-collapse";return{name:e,appear:!(arguments.length>1&&void 0!==arguments[1])||arguments[1],css:!0,onBeforeEnter:t=>{t.style.height="0px",t.style.opacity="0",iy(t,e)},onEnter:e=>{I((()=>{e.style.height=`${e.scrollHeight}px`,e.style.opacity="1"}))},onAfterEnter:t=>{t&&(ay(t,e),t.style.height=null,t.style.opacity=null)},onBeforeLeave:t=>{iy(t,e),t.style.height=`${t.offsetHeight}px`,t.style.opacity=null},onLeave:e=>{setTimeout((()=>{e.style.height="0px",e.style.opacity="0"}))},onAfterLeave:t=>{t&&(ay(t,e),t.style&&(t.style.height=null,t.style.opacity=null))}}},uy=l({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:{title:Rl.any,originItemValue:ae()},slots:Object,setup(e,t){let{slots:o,attrs:r}=t;const{prefixCls:l}=zg(),i=n((()=>`${l.value}-item-group`)),a=Kg();return()=>{var t,n;return a?null===(t=o.default)||void 0===t?void 0:t.call(o):$("li",ze(ze({},r),{},{onClick:e=>e.stopPropagation(),class:i.value}),[$("div",{title:"string"==typeof e.title?e.title:void 0,class:`${i.value}-title`},[Et(o,e,"title")]),$("ul",{class:`${i.value}-list`},[null===(n=o.default)||void 0===n?void 0:n.call(o)])])}}}),cy=l({compatConfig:{MODE:3},name:"AMenuDivider",props:{prefixCls:String,dashed:Boolean},setup(e){const{prefixCls:t}=zg(),o=n((()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed})));return()=>$("li",{class:o.value},null)}});function dy(e,t,n){return(e||[]).map(((e,o)=>{if(e&&"object"==typeof e){const r=e,{label:l,children:i,key:a,type:s}=r,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(r,["label","children","key","type"]),c=a??`tmp-${o}`,d=n?n.parentKeys.slice():[],p=[],f={eventKey:c,key:c,parentEventKeys:b(d),parentKeys:b(d),childrenEventKeys:b(p),isLeaf:!1};if(i||"group"===s){if("group"===s){const o=dy(i,t,n);return $(uy,ze(ze({key:c},u),{},{title:l,originItemValue:e}),{default:()=>[o]})}t.set(c,f),n&&n.childrenEventKeys.push(c);const o=dy(i,t,{childrenEventKeys:p,parentKeys:[].concat(d,c)});return $(ry,ze(ze({key:c},u),{},{title:l,originItemValue:e}),{default:()=>[o]})}return"divider"===s?$(cy,ze({key:c},u),null):(f.isLeaf=!0,t.set(c,f),$(Ug,ze(ze({key:c},u),{},{originItemValue:e}),{default:()=>[l]}))}return null})).filter((e=>e))}const py=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:o,colorSplit:r,lineWidth:l,lineType:i,menuItemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${l}px ${i} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},fy=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},vy=e=>De({},Ar(e)),my=(e,t)=>{const{componentCls:n,colorItemText:o,colorItemTextSelected:r,colorGroupTitle:l,colorItemBg:i,colorSubItemBg:a,colorItemBgSelected:s,colorActiveBarHeight:u,colorActiveBarWidth:c,colorActiveBarBorderSize:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:v,menuItemPaddingInline:m,motionDurationMid:h,colorItemTextHover:g,lineType:y,colorSplit:b,colorItemTextDisabled:w,colorDangerItemText:x,colorDangerItemTextHover:$,colorDangerItemTextSelected:C,colorDangerItemBgActive:S,colorDangerItemBgSelected:O,colorItemBgHover:k,menuSubMenuBg:P,colorItemTextSelectedHorizontal:I,colorItemBgSelectedHorizontal:E}=e;return{[`${n}-${t}`]:{color:o,background:i,[`&${n}-root:focus-visible`]:De({},vy(e)),[`${n}-item-group-title`]:{color:l},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:g}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:s}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:s}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:O}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:De({},vy(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:i},[`&${n}-horizontal`]:De(De({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:u,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:E,"&::after":{borderBottomWidth:u,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:a},[`${n}-item, ${n}-submenu-title`]:d&&c?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${c}px solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${v}`,`opacity ${h} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${f}`,`opacity ${h} ${f}`].join(",")}}}}}},hy=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:l,marginXS:i,marginXXS:a}=e,s=r+l+i;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:a,width:`calc(100% - ${2*o}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:s}}},gy=e=>{const{componentCls:t,iconCls:n,menuItemHeight:o,colorTextLightSolid:r,dropdownWidth:l,controlHeightLG:i,motionDurationMid:a,motionEaseOut:s,paddingXL:u,fontSizeSM:c,fontSizeLG:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:v}=e,m={height:o,lineHeight:`${o}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":De({[`&${t}-root`]:{boxShadow:"none"}},hy(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:De(De({},hy(e)),{boxShadow:v})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${2.5*i}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${a} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:m,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:m}},{[`${t}-inline-collapsed`]:{width:2*o,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${c}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:d,lineHeight:`${o}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:De(De({},Pr),{paddingInline:f})}}]},yy=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:l,motionEaseOut:i,iconCls:a,controlHeightSM:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${l}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:n,fontSize:n,transition:[`font-size ${r} ${i}`,`margin ${o} ${l}`,`color ${o}`].join(","),"+ span":{marginInlineStart:s-n,opacity:1,transition:[`opacity ${o} ${l}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:De({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},by=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:l,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*l,height:.15*l,backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${i})`},"&::after":{transform:`rotate(-45deg) translateY(${i})`}}}}},wy=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:l,motionEaseInOut:i,lineHeight:a,paddingXS:s,padding:u,colorSplit:c,lineWidth:d,zIndexPopup:p,borderRadiusLG:f,radiusSubMenuItem:v,menuArrowSize:m,menuArrowOffset:h,lineType:g,menuPanelMaskInset:y}=e;return[{"":{[`${n}`]:De(De({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:De(De(De(De(De(De(De({},Ir(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${s}px ${u}px`,fontSize:o,lineHeight:a,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${i}`,`background ${r} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${i}`,`background ${r} ${i}`,`padding ${l} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${i}`,`padding ${r} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),yy(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*o}px ${u}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,background:"transparent",borderRadius:f,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${y}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:y},[`> ${n}`]:De(De(De({borderRadius:f},yy(e)),by(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${i}`}})}}),by(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${h})`},"&::after":{transform:`rotate(45deg) translateX(-${h})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*m}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${h})`},"&::before":{transform:`rotate(45deg) translateX(${h})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},xy=[],$y=l({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:{id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function},slots:Object,setup(e,t){let{slots:r,emit:l,attrs:u}=t;const{direction:d,getPrefixCls:p}=tl("menu",e),f=Eg(),v=n((()=>{var t;return p("menu",e.prefixCls||(null===(t=null==f?void 0:f.prefixCls)||void 0===t?void 0:t.value))})),[m,g]=((e,t)=>Tr("Menu",((e,n)=>{let{overrideComponentToken:o}=n;if(!1===(null==t?void 0:t.value))return[];const{colorBgElevated:r,colorPrimary:l,colorError:i,colorErrorHover:a,colorTextLightSolid:s}=e,{controlHeightLG:u,fontSize:c}=e,d=c/7*5,p=Rr(e,{menuItemHeight:u,menuItemPaddingInline:e.margin,menuArrowSize:d,menuHorizontalHeight:1.15*u,menuArrowOffset:.25*d+"px",menuPanelMaskInset:-7,menuSubMenuBg:r}),f=new Qo(s).setAlpha(.65).toRgbString(),v=Rr(p,{colorItemText:f,colorItemTextHover:s,colorGroupTitle:f,colorItemTextSelected:s,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:l,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new Qo(s).setAlpha(.25).toRgbString(),colorDangerItemText:i,colorDangerItemTextHover:a,colorDangerItemTextSelected:s,colorDangerItemBgActive:i,colorDangerItemBgSelected:i,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:s,colorItemBgSelectedHorizontal:l},De({},o));return[wy(p),py(p),gy(p),my(p,"light"),my(v,"dark"),fy(p),Xv(p),jv(p,"slide-up"),jv(p,"slide-down"),Vv(p,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:o,colorErrorBg:r,colorText:l,colorTextDescription:i,colorBgContainer:a,colorFillAlter:s,colorFillContent:u,lineWidth:c,lineWidthBold:d,controlItemBgActive:p,colorBgTextHover:f}=e;return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,colorItemText:l,colorItemTextHover:l,colorItemTextHoverHorizontal:t,colorGroupTitle:i,colorItemTextSelected:t,colorItemTextSelectedHorizontal:t,colorItemBg:a,colorItemBgHover:f,colorItemBgActive:u,colorSubItemBg:s,colorItemBgSelected:p,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:d,colorActiveBarBorderSize:c,colorItemTextDisabled:o,colorDangerItemText:n,colorDangerItemTextHover:n,colorDangerItemTextSelected:n,colorDangerItemBgActive:r,colorDangerItemBgSelected:r,itemMarginInline:e.marginXXS}}))(e))(v,n((()=>!f))),y=s(new Map),x=o(Hg,b(void 0)),C=n((()=>void 0!==x.value?x.value:e.inlineCollapsed)),{itemsNodes:S}=function(e){const t=s([]),n=s(!1),o=s(new Map);return i((()=>e.items),(()=>{const r=new Map;n.value=!1,e.items?(n.value=!0,t.value=dy(e.items,r)):t.value=void 0,o.value=r}),{immediate:!0,deep:!0}),{itemsNodes:t,store:o,hasItmes:n}}(e),O=s(!1);h((()=>{O.value=!0})),w((()=>{Bl(!(!0===e.inlineCollapsed&&"inline"!==e.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Bl(!(void 0!==x.value&&!0===e.inlineCollapsed),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")}));const k=b([]),P=b([]),I=b({});i(y,(()=>{const e={};for(const t of y.value.values())e[t.key]=t;I.value=e}),{flush:"post"}),w((()=>{if(void 0!==e.activeKey){let t=[];const n=e.activeKey?I.value[e.activeKey]:void 0;t=n&&void 0!==e.activeKey?nv([].concat(a(n.parentKeys),e.activeKey)):[],Ag(k.value,t)||(k.value=t)}})),i((()=>e.selectedKeys),(e=>{e&&(P.value=e.slice())}),{immediate:!0,deep:!0});const E=b([]);i([I,P],(()=>{let e=[];P.value.forEach((t=>{const n=I.value[t];n&&(e=e.concat(a(n.parentKeys)))})),e=nv(e),Ag(E.value,e)||(E.value=e)}),{immediate:!0});const j=b([]);let A;i((()=>e.openKeys),(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j.value;Ag(j.value,e)||(j.value=e.slice())}),{immediate:!0,deep:!0});const M=n((()=>!!e.disabled)),z=n((()=>"rtl"===d.value)),D=b("vertical"),R=s(!1);w((()=>{var t;"inline"!==e.mode&&"vertical"!==e.mode||!C.value?(D.value=e.mode,R.value=!1):(D.value="vertical",R.value=C.value),null!==(t=null==f?void 0:f.mode)&&void 0!==t&&t.value&&(D.value=f.mode.value)}));const B=n((()=>"inline"===D.value)),N=e=>{j.value=e,l("update:openKeys",e),l("openChange",e)},F=b(j.value),H=s(!1);i(j,(()=>{B.value&&(F.value=j.value)}),{immediate:!0}),i(B,(()=>{H.value?B.value?j.value=F.value:N(xy):H.value=!0}),{immediate:!0});const L=n((()=>({[`${v.value}`]:!0,[`${v.value}-root`]:!0,[`${v.value}-${D.value}`]:!0,[`${v.value}-inline-collapsed`]:R.value,[`${v.value}-rtl`]:z.value,[`${v.value}-${e.theme}`]:!0}))),_=n((()=>p())),W=n((()=>({horizontal:{name:`${_.value}-slide-up`},inline:sy(`${_.value}-motion-collapse`),other:{name:`${_.value}-zoom-big`}})));Ng(!0);const V=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[],n=y.value;return e.forEach((e=>{const{key:o,childrenEventKeys:r}=n.get(e);t.push(o,...V(a(r)))})),t},X=b(0),K=n((()=>{var t;return e.expandIcon||r.expandIcon||null!==(t=null==f?void 0:f.expandIcon)&&void 0!==t&&t.value?t=>{let n=e.expandIcon||r.expandIcon;return n="function"==typeof n?n(t):n,ea(n,{class:`${v.value}-submenu-expand-icon`},!1)}:null}));Tg({prefixCls:v,activeKeys:k,openKeys:j,selectedKeys:P,changeActiveKeys:t=>{clearTimeout(A),A=setTimeout((()=>{void 0===e.activeKey&&(k.value=t),l("update:activeKey",t[t.length-1])}))},disabled:M,rtl:z,mode:D,inlineIndent:n((()=>e.inlineIndent)),subMenuCloseDelay:n((()=>e.subMenuCloseDelay)),subMenuOpenDelay:n((()=>e.subMenuOpenDelay)),builtinPlacements:n((()=>e.builtinPlacements)),triggerSubMenuAction:n((()=>e.triggerSubMenuAction)),getPopupContainer:n((()=>e.getPopupContainer)),inlineCollapsed:R,theme:n((()=>e.theme)),siderCollapsed:x,defaultMotions:n((()=>O.value?W.value:null)),motion:n((()=>O.value?e.motion:null)),overflowDisabled:s(void 0),onOpenChange:(e,t)=>{var n;const o=(null===(n=I.value[e])||void 0===n?void 0:n.childrenEventKeys)||[];let r=j.value.filter((t=>t!==e));if(t)r.push(e);else if("inline"!==D.value){const e=V(a(o));r=nv(r.filter((t=>!e.includes(t))))}Ag(j,r)||N(r)},onItemClick:t=>{var n;l("click",t),(t=>{if(e.selectable){const{key:n}=t,o=P.value.includes(n);let r;r=e.multiple?o?P.value.filter((e=>e!==n)):[...P.value,n]:[n];const i=De(De({},t),{selectedKeys:r});Ag(r,P.value)||(void 0===e.selectedKeys&&(P.value=r),l("update:selectedKeys",r),o&&e.multiple?l("deselect",i):l("select",i))}"inline"!==D.value&&!e.multiple&&j.value.length&&N(xy)})(t),null===(n=null==f?void 0:f.onClick)||void 0===n||n.call(f)},registerMenuInfo:(e,t)=>{y.value.set(e,t),y.value=new Map(y.value)},unRegisterMenuInfo:e=>{y.value.delete(e),y.value=new Map(y.value)},selectedSubMenuKeys:E,expandIcon:K,forceSubMenuRender:n((()=>e.forceSubMenuRender)),rootClassName:g});const q=()=>{var e;return S.value||xt(null===(e=r.default)||void 0===e?void 0:e.call(r))};return()=>{var t;const n=q(),o=X.value>=n.length-1||"horizontal"!==D.value||e.disabledOverflow,l=t=>"horizontal"!==D.value||e.disabledOverflow?t:t.map(((e,t)=>$(Fg,{key:e.key,overflowDisabled:t>X.value},{default:()=>e}))),i=(null===(t=r.overflowedIndicator)||void 0===t?void 0:t.call(r))||$(gg,null,null);return m($(Yu,ze(ze({},u),{},{onMousedown:e.onMousedown,prefixCls:`${v.value}-overflow`,component:"ul",itemComponent:Ug,class:[L.value,u.class,g.value],role:"menu",id:e.id,data:l(n),renderRawItem:e=>e,renderRawRest:e=>{const t=e.length,r=t?n.slice(-t):null;return $(c,null,[$(ry,{eventKey:Lg,key:Lg,title:i,disabled:o,internalPopupClose:0===t},{default:()=>r}),$(Xg,null,{default:()=>[$(ry,{eventKey:Lg,key:Lg,title:i,disabled:o,internalPopupClose:0===t},{default:()=>r})]})])},maxCount:"horizontal"!==D.value||e.disabledOverflow?Yu.INVALIDATE:Yu.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:e=>{X.value=e}}),{default:()=>[$(T,{to:"body"},{default:()=>[$("div",{style:{display:"none"},"aria-hidden":!0},[$(Xg,null,{default:()=>[l(q())]})])]})]}))}}});function Cy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}$y.install=function(e){return e.component($y.name,$y),e.component(Ug.name,Ug),e.component(ry.name,ry),e.component(cy.name,cy),e.component(uy.name,uy),e},$y.Item=Ug,$y.Divider=cy,$y.SubMenu=ry,$y.ItemGroup=uy;const Sy=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),Oy=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),ky=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":De({},Sy(Rr(e,{inputBorderHoverColor:e.colorBorder})))}),Py=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:o,borderRadiusLG:r,inputPaddingHorizontalLG:l}=e;return{padding:`${t}px ${l}px`,fontSize:n,lineHeight:o,borderRadius:r}},Iy=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Ey=(e,t)=>{const{componentCls:n,colorError:o,colorWarning:r,colorErrorOutline:l,colorWarningOutline:i,colorErrorBorderHover:a,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:a},"&:focus, &-focused":De({},Oy(Rr(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:l}))),[`${n}-prefix`]:{color:o}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":De({},Oy(Rr(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix`]:{color:r}}}},jy=e=>De(De({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},(e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}))(e.colorTextPlaceholder)),{"&:hover":De({},Sy(e)),"&:focus, &-focused":De({},Oy(e)),"&-disabled, &[disabled]":De({},ky(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":De({},Py(e)),"&-sm":De({},Iy(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Ay=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:De({},Py(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:De({},Iy(e)),[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:De(De({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}),[`&&-sm ${n}-btn`]:{fontSize:e.fontSizeSM,height:e.controlHeightSM,lineHeight:"normal"},[`&&-lg ${n}-btn`]:{fontSize:e.fontSizeLG,height:e.controlHeightLG,lineHeight:"normal"},[`&&-lg ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightLG}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:e.controlHeightLG-2+"px"},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightLG}px`}},[`&&-sm ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightSM}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:e.controlHeightSM-2+"px"},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightSM}px`}}}},My=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o}=e,r=(n-2*o-16)/2;return{[t]:De(De(De(De({},Ir(e)),jy(e)),Ey(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:r,paddingBottom:r}}})}},Ty=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${t}-clear-icon`]:{position:"absolute",insetBlockStart:e.paddingXS,insetInlineEnd:e.paddingXS,zIndex:1}}}},zy=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:l,colorIconHover:i,iconCls:a}=e;return{[`${t}-affix-wrapper`]:De(De(De(De(De({},jy(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:De(De({},Sy(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Ty(e)),{[`${a}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:i}}}),Ey(e,`${t}-affix-wrapper`))}},Dy=e=>{const{componentCls:t,colorError:n,colorSuccess:o,borderRadiusLG:r,borderRadiusSM:l}=e;return{[`${t}-group`]:De(De(De({},Ir(e)),Ay(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r}},"&-sm":{[`${t}-group-addon`]:{borderRadius:l}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon:last-child`]:{color:o,borderColor:o}}}})}},Ry=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${o}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${o}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${o}-button`]:{height:e.controlHeightLG},[`&-small ${o}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function By(e){return Rr(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const Ny=e=>{const{componentCls:t,inputPaddingHorizontal:n,paddingLG:o}=e,r=`${t}-textarea`;return{[r]:{position:"relative",[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating":{[`&${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:o}}},"&-show-count":{[`> ${t}`]:{height:"100%"},"&::after":{color:e.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}},Fy=Tr("Input",(e=>{const t=By(e);return[My(t),Ny(t),zy(t),Dy(t),Ry(t),tm(t)]})),Hy=()=>{const e=b(new Map);return F((()=>{e.value=new Map})),[t=>n=>{e.value.set(t,n)},e]};var Ly={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function _y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Wy(e,t,n[t])}))}return e}function Wy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vy=function(e,t){var n=_y({},e,t.attrs);return $(bd,_y({},n,{icon:Ly}),null)};Vy.displayName="PlusOutlined",Vy.inheritAttrs=!1;const Xy="__RC_CASCADER_SPLIT__",Ky="SHOW_PARENT",qy="SHOW_CHILD";function Gy(e){return e.join(Xy)}function Uy(e){return e.map(Gy)}function Yy(e,t){var n,o;return null!==(n=e.isLeaf)&&void 0!==n?n:!(null!==(o=e[t.children])&&void 0!==o&&o.length)}function Zy(e){const t=e.parentElement;if(!t)return;const n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}function Qy(e,t){return e??t}function Jy(e){let{initWrapper:t,processEntity:n,onProcessFinished:o,externalGetKey:r,childrenPropName:l,fieldNames:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=r||(arguments.length>2?arguments[2]:void 0),s={},u={};let c={posEntities:s,keyEntities:u};return t&&(c=t(c)||c),function(e,t,n){let o={};o="object"==typeof n?n:{externalGetKey:n},o=o||{};const{childrenPropName:r,externalGetKey:l,fieldNames:i}=o,{key:a,children:s}=function(e){const{title:t,_title:n,key:o,children:r}=e||{},l=t||"title";return{title:l,_title:n||[l],key:o||"key",children:r||"children"}}(i),u=r||s;let c;l?"string"==typeof l?c=e=>e[l]:"function"==typeof l&&(c=e=>l(e)):c=(e,t)=>Qy(e[a],t),function n(o,r,l,i){const a=o?o[u]:e,s=o?function(e,t){return`${e}-${t}`}(l.pos,r):"0",d=o?[...i,o]:[];if(o){const e=c(o,s),n={node:o,index:r,pos:s,key:e,parentPos:l.node?l.pos:null,level:l.level+1,nodes:d};t(n)}a&&a.forEach(((e,t)=>{n(e,t,{node:o,pos:s,level:l?l.level+1:-1},d)}))}(null)}(e,(e=>{const{node:t,index:o,pos:r,key:l,parentPos:i,level:a,nodes:d}=e,p={node:t,nodes:d,index:o,key:l,pos:r,level:a},f=Qy(l,r);s[r]=p,u[f]=p,p.parent=s[i],p.parent&&(p.parent.children=p.parent.children||[],p.parent.children.push(p)),n&&n(p,c)}),{externalGetKey:a,childrenPropName:l,fieldNames:i}),o&&o(c),c}const eb="__rc_cascader_search_mark__",tb=(e,t,n)=>{let{label:o}=n;return t.some((t=>String(t[o]).toLowerCase().includes(e.toLowerCase())))},nb=e=>{let{path:t,fieldNames:n}=e;return t.map((e=>e[n.label])).join(" / ")};function ob(e,t,n){const o=new Set(e);return e.filter((e=>{const r=t[e],l=r?r.parent:null,i=r?r.children:null;return n===qy?!(i&&i.some((e=>e.key&&o.has(e.key)))):!(l&&!l.node.disabled&&o.has(l.key))}))}function rb(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var r;let l=t;const i=[];for(let t=0;t<e.length;t+=1){const a=e[t],s=null==l?void 0:l.findIndex((e=>{const t=e[n.value];return o?String(t)===String(a):t===a})),u=-1!==s?null==l?void 0:l[s]:null;i.push({value:null!==(r=null==u?void 0:u[n.value])&&void 0!==r?r:a,index:s,option:u}),l=null==u?void 0:u[n.children]}return i}function lb(e,t){const n=new Set;return e.forEach((e=>{t.has(e)||n.add(e)})),n}function ib(e){const{disabled:t,disableCheckbox:n,checkable:o}=e||{};return!(!t&&!n)||!1===o}function ab(e,t,n,o,r,l){let i;i=ib;const a=new Set(e.filter((e=>!!n[e])));let s;return s=!0===t?function(e,t,n,o){const r=new Set(e),l=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach((e=>{const{key:t,node:n,children:l=[]}=e;r.has(t)&&!o(n)&&l.filter((e=>!o(e.node))).forEach((e=>{r.add(e.key)}))}));const i=new Set;for(let e=n;e>=0;e-=1)(t.get(e)||new Set).forEach((e=>{const{parent:t,node:n}=e;if(o(n)||!e.parent||i.has(e.parent.key))return;if(o(e.parent.node))return void i.add(t.key);let a=!0,s=!1;(t.children||[]).filter((e=>!o(e.node))).forEach((e=>{let{key:t}=e;const n=r.has(t);a&&!n&&(a=!1),!s&&(n||l.has(t))&&(s=!0)})),a&&r.add(t.key),s&&l.add(t.key),i.add(t.key)}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(lb(l,r))}}(a,r,o,i):function(e,t,n,o,r){const l=new Set(e);let i=new Set(t);for(let e=0;e<=o;e+=1)(n.get(e)||new Set).forEach((e=>{const{key:t,node:n,children:o=[]}=e;!l.has(t)&&!i.has(t)&&!r(n)&&o.filter((e=>!r(e.node))).forEach((e=>{l.delete(e.key)}))}));i=new Set;const a=new Set;for(let e=o;e>=0;e-=1)(n.get(e)||new Set).forEach((e=>{const{parent:t,node:n}=e;if(r(n)||!e.parent||a.has(e.parent.key))return;if(r(e.parent.node))return void a.add(t.key);let o=!0,s=!1;(t.children||[]).filter((e=>!r(e.node))).forEach((e=>{let{key:t}=e;const n=l.has(t);o&&!n&&(o=!1),!s&&(n||i.has(t))&&(s=!0)})),o||l.delete(t.key),s&&i.add(t.key),a.add(t.key)}));return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(lb(i,l))}}(a,t.halfCheckedKeys,r,o,i),s}const sb=Symbol("CascaderContextKey"),ub=()=>o(sb),cb=(e,t,o,r,l,i)=>{const a=sc(),s=n((()=>"rtl"===a.direction)),[u,c,d]=[b([]),b(),b([])];w((()=>{let e=-1,n=t.value;const l=[],i=[],a=r.value.length;for(let t=0;t<a&&n;t+=1){const a=n.findIndex((e=>e[o.value.value]===r.value[t]));if(-1===a)break;e=a,l.push(e),i.push(r.value[t]),n=n[e][o.value.children]}let s=t.value;for(let e=0;e<l.length-1;e+=1)s=s[l[e]][o.value.children];[u.value,c.value,d.value]=[i,e,s]}));const p=e=>{l(e)},f=()=>{if(u.value.length>1){const e=u.value.slice(0,-1);p(e)}else a.toggleOpen(!1)},v=()=>{var e;const t=((null===(e=d.value[c.value])||void 0===e?void 0:e[o.value.children])||[]).find((e=>!e.disabled));if(t){const e=[...u.value,t[o.value.value]];p(e)}};e.expose({onKeydown:e=>{const{which:t}=e;switch(t){case Au.UP:case Au.DOWN:{let e=0;t===Au.UP?e=-1:t===Au.DOWN&&(e=1),0!==e&&(e=>{const t=d.value.length;let n=c.value;-1===n&&e<0&&(n=t);for(let r=0;r<t;r+=1){n=(n+e+t)%t;const r=d.value[n];if(r&&!r.disabled){const e=r[o.value.value],t=u.value.slice(0,-1).concat(e);return void p(t)}}})(e);break}case Au.LEFT:s.value?v():f();break;case Au.RIGHT:s.value?f():v();break;case Au.BACKSPACE:a.searchValue||f();break;case Au.ENTER:if(u.value.length){const e=d.value[c.value],t=(null==e?void 0:e[eb])||[];t.length?i(t.map((e=>e[o.value.value])),t[t.length-1]):i(u.value,e)}break;case Au.ESC:a.toggleOpen(!1),open&&e.stopPropagation()}},onKeyup:()=>{}})};function db(e){let{prefixCls:t,checked:n,halfChecked:o,disabled:r,onClick:l}=e;const{customSlots:i,checkable:a}=ub(),s=!1!==a.value?i.value.checkable:a.value,u="function"==typeof s?s():"boolean"==typeof s?null:s;return $("span",{class:{[t]:!0,[`${t}-checked`]:n,[`${t}-indeterminate`]:!n&&o,[`${t}-disabled`]:r},onClick:l},[u])}db.props=["prefixCls","checked","halfChecked","disabled","onClick"],db.displayName="Checkbox",db.inheritAttrs=!1;const pb="__cascader_fix_label__";function fb(e){let{prefixCls:t,multiple:n,options:o,activeValue:r,prevValuePath:l,onToggleOpen:i,onSelect:a,onActive:s,checkedSet:u,halfCheckedSet:c,loadingKeys:d,isSelectable:p}=e;var f,v,m,h,g,y;const b=`${t}-menu`,w=`${t}-menu-item`,{fieldNames:x,changeOnSelect:C,expandTrigger:S,expandIcon:O,loadingIcon:k,dropdownMenuColumnStyle:P,customSlots:I}=ub(),E=null!==(f=O.value)&&void 0!==f?f:null===(m=(v=I.value).expandIcon)||void 0===m?void 0:m.call(v),j=null!==(h=k.value)&&void 0!==h?h:null===(y=(g=I.value).loadingIcon)||void 0===y?void 0:y.call(g),A="hover"===S.value;return $("ul",{class:b,role:"menu"},[o.map((e=>{var o;const{disabled:f}=e,v=e[eb],m=null!==(o=e[pb])&&void 0!==o?o:e[x.value.label],h=e[x.value.value],g=Yy(e,x.value),y=v?v.map((e=>e[x.value.value])):[...l,h],b=Gy(y),S=d.includes(b),O=u.has(b),k=c.has(b),I=()=>{!f&&(!A||!g)&&s(y)},M=()=>{p(e)&&a(y,g)};let T;return"string"==typeof e.title?T=e.title:"string"==typeof m&&(T=m),$("li",{key:b,class:[w,{[`${w}-expand`]:!g,[`${w}-active`]:r===h,[`${w}-disabled`]:f,[`${w}-loading`]:S}],style:P.value,role:"menuitemcheckbox",title:T,"aria-checked":O,"data-path-key":b,onClick:()=>{I(),(!n||g)&&M()},onDblclick:()=>{C.value&&i(!1)},onMouseenter:()=>{A&&I()},onMousedown:e=>{e.preventDefault()}},[n&&$(db,{prefixCls:`${t}-checkbox`,checked:O,halfChecked:k,disabled:f,onClick:e=>{e.stopPropagation(),M()}},null),$("div",{class:`${w}-content`},[m]),!S&&E&&!g&&$("div",{class:`${w}-expand-icon`},[ea(E)]),S&&j&&$("div",{class:`${w}-loading-icon`},[ea(j)])])}))])}fb.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"],fb.displayName="Column",fb.inheritAttrs=!1;const vb=l({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){const{attrs:o,slots:r}=t,l=sc(),a=b(),u=n((()=>"rtl"===l.direction)),{options:c,values:d,halfValues:p,fieldNames:f,changeOnSelect:v,onSelect:m,searchOptions:g,dropdownPrefixCls:y,loadData:x,expandTrigger:C,customSlots:S}=ub(),O=n((()=>y.value||l.prefixCls)),k=s([]);w((()=>{k.value.length&&k.value.forEach((e=>{const t=function(e){return e.split(Xy)}(e),n=rb(t,c.value,f.value,!0).map((e=>{let{option:t}=e;return t})),o=n[n.length-1];(!o||o[f.value.children]||Yy(o,f.value))&&(k.value=k.value.filter((t=>t!==e)))}))}));const P=n((()=>new Set(Uy(d.value)))),I=n((()=>new Set(Uy(p.value)))),[E,j]=(()=>{const e=sc(),{values:t}=ub(),[n,o]=Rc([]);return i((()=>e.open),(()=>{if(e.open&&!e.multiple){const e=t.value[0];o(e||[])}}),{immediate:!0}),[n,o]})(),A=e=>{j(e),(e=>{if(!x.value||l.searchValue)return;const t=rb(e,c.value,f.value).map((e=>{let{option:t}=e;return t})),n=t[t.length-1];if(n&&!Yy(n,f.value)){const n=Gy(e);k.value=[...k.value,n],x.value(t)}})(e)},M=e=>{const{disabled:t}=e,n=Yy(e,f.value);return!t&&(n||v.value||l.multiple)},T=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];m(e),!l.multiple&&(t||v.value&&("hover"===C.value||n))&&l.toggleOpen(!1)},z=n((()=>l.searchValue?g.value:c.value)),D=n((()=>{const e=[{options:z.value}];let t=z.value;for(let n=0;n<E.value.length;n+=1){const o=E.value[n],r=t.find((e=>e[f.value.value]===o)),l=null==r?void 0:r[f.value.children];if(null==l||!l.length)break;t=l,e.push({options:l})}return e}));cb(t,z,f,E,A,((e,t)=>{M(t)&&T(e,Yy(t,f.value),!0)}));const R=e=>{e.preventDefault()};return h((()=>{i(E,(e=>{var t;for(let n=0;n<e.length;n+=1){const o=Gy(e.slice(0,n+1)),r=null===(t=a.value)||void 0===t?void 0:t.querySelector(`li[data-path-key="${o.replace(/\\{0,2}"/g,'\\"')}"]`);r&&Zy(r)}}),{flush:"post",immediate:!0})})),()=>{var e,t,n,i,s;const{notFoundContent:c=(null===(e=r.notFoundContent)||void 0===e?void 0:e.call(r))||(null===(n=(t=S.value).notFoundContent)||void 0===n?void 0:n.call(t)),multiple:d,toggleOpen:p}=l,v=!(null!==(s=null===(i=D.value[0])||void 0===i?void 0:i.options)&&void 0!==s&&s.length),m=[{[f.value.value]:"__EMPTY__",[pb]:c,disabled:!0}],h=De(De({},o),{multiple:!v&&d,onSelect:T,onActive:A,onToggleOpen:p,checkedSet:P.value,halfCheckedSet:I.value,loadingKeys:k.value,isSelectable:M}),g=(v?[{options:m}]:D.value).map(((e,t)=>{const n=E.value.slice(0,t),o=E.value[t];return $(fb,ze(ze({key:t},h),{},{prefixCls:O.value,options:e.options,prevValuePath:n,activeValue:o}),null)}));return $("div",{class:[`${O.value}-menus`,{[`${O.value}-menu-empty`]:v,[`${O.value}-rtl`]:u.value}],onMousedown:R,ref:a},[g])}}});function mb(){return De(De({},De(De({},nl(dc(),["tokenSeparators","mode","showSearch"])),{id:String,prefixCls:String,fieldNames:ae(),children:Array,value:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array]},changeOnSelect:{type:Boolean,default:void 0},displayRender:Function,checkable:{type:Boolean,default:void 0},showCheckedStrategy:{type:String,default:Ky},showSearch:{type:[Boolean,Object],default:void 0},searchValue:String,onSearch:Function,expandTrigger:String,options:Array,dropdownPrefixCls:String,loadData:Function,popupVisible:{type:Boolean,default:void 0},dropdownClassName:String,dropdownMenuColumnStyle:{type:Object,default:void 0},popupStyle:{type:Object,default:void 0},dropdownStyle:{type:Object,default:void 0},popupPlacement:String,placement:String,onPopupVisibleChange:Function,onDropdownVisibleChange:Function,expandIcon:Rl.any,loadingIcon:Rl.any})),{onChange:Function,customSlots:Object})}function hb(e){return e?function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?e:(0===e.length?[]:[e]).map((e=>Array.isArray(e)?e:[e])):[]}const gb=l({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:bt(mb(),{}),setup(e,t){let{attrs:o,expose:l,slots:i}=t;const a=Mc(E(e,"id")),u=n((()=>!!e.checkable)),[c,d]=Dc(e.defaultValue,{value:n((()=>e.value)),postState:hb}),p=n((()=>function(e){const{label:t,value:n,children:o}=e||{},r=n||"value";return{label:t||"label",value:r,key:r,children:o||"children"}}(e.fieldNames))),f=n((()=>e.options||[])),v=((e,t)=>n((()=>Jy(e.value,{fieldNames:t.value,initWrapper:e=>De(De({},e),{pathKeyEntities:{}}),processEntity:(e,n)=>{const o=e.nodes.map((e=>e[t.value.value])).join(Xy);n.pathKeyEntities[o]=e,e.key=o}}).pathKeyEntities)))(f,p),m=e=>{const t=v.value;return e.map((e=>{const{nodes:n}=t[e];return n.map((e=>e[p.value.value]))}))},[h,g]=Dc("",{value:n((()=>e.searchValue)),postState:e=>e||""}),y=(t,n)=>{g(t),"blur"!==n.source&&e.onSearch&&e.onSearch(t)},{showSearch:x,searchConfig:C}=function(e){const t=s(!1),n=b({});return w((()=>{if(!e.value)return t.value=!1,void(n.value={});let o={matchInputWidth:!0,limit:50};e.value&&"object"==typeof e.value&&(o=De(De({},o),e.value)),o.limit<=0&&delete o.limit,t.value=!0,n.value=o})),{showSearch:t,searchConfig:n}}(E(e,"showSearch")),S=((e,t,o,r,l,i)=>n((()=>{const{filter:n=tb,render:a=nb,limit:s=50,sort:u}=l.value,c=[];return e.value?(function t(l,d){l.forEach((l=>{if(!u&&s>0&&c.length>=s)return;const p=[...d,l],f=l[o.value.children];(!f||0===f.length||i.value)&&n(e.value,p,{label:o.value.label})&&c.push(De(De({},l),{[o.value.label]:a({inputValue:e.value,path:p,prefixCls:r.value,fieldNames:o.value}),[eb]:p})),f&&t(l[o.value.children],p)}))}(t.value,[]),u&&c.sort(((t,n)=>u(t[eb],n[eb],e.value,o.value))),s>0?c.slice(0,s):c):[]})))(h,f,p,n((()=>e.dropdownPrefixCls||e.prefixCls)),C,E(e,"changeOnSelect")),O=((e,t,o)=>n((()=>{const n=[],r=[];return o.value.forEach((o=>{rb(o,e.value,t.value).every((e=>e.option))?r.push(o):n.push(o)})),[r,n]})))(f,p,c),[k,P,I]=[b([]),b([]),b([])],{maxLevel:j,levelEntities:A}=function(e){const t=b(0),n=s();return w((()=>{const o=new Map;let r=0;const l=e.value||{};for(const e in l)if(Object.prototype.hasOwnProperty.call(l,e)){const t=l[e],{level:n}=t;let i=o.get(n);i||(i=new Set,o.set(n,i)),i.add(t),r=Math.max(r,n)}t.value=r,n.value=o})),{maxLevel:t,levelEntities:n}}(v);w((()=>{const[e,t]=O.value;if(!u.value||!c.value.length)return void([k.value,P.value,I.value]=[e,[],t]);const n=Uy(e),o=v.value,{checkedKeys:r,halfCheckedKeys:l}=ab(n,!0,o,j.value,A.value);[k.value,P.value,I.value]=[m(r),m(l),t]}));const M=((e,t,o,r,l)=>n((()=>{const n=l.value||(e=>{let{labels:t}=e;const n=r.value?t.slice(-1):t;return n.every((e=>["string","number"].includes(typeof e)))?n.join(" / "):n.reduce(((e,t,n)=>{const o=It(t)?ea(t,{key:n}):t;return 0===n?[o]:[...e," / ",o]}),[])});return e.value.map((e=>{const r=rb(e,t.value,o.value),l=n({labels:r.map((e=>{let{option:t,value:n}=e;var r;return null!==(r=null==t?void 0:t[o.value.label])&&void 0!==r?r:n})),selectedOptions:r.map((e=>{let{option:t}=e;return t}))}),i=Gy(e);return{label:l,value:i,key:i,valueCells:e}}))})))(n((()=>{const t=ob(Uy(k.value),v.value,e.showCheckedStrategy);return[...I.value,...m(t)]})),f,p,u,E(e,"displayRender")),T=t=>{if(d(t),e.onChange){const n=hb(t),o=n.map((e=>rb(e,f.value,p.value).map((e=>e.option)))),r=u.value?n:n[0],l=u.value?o:o[0];e.onChange(r,l)}},z=t=>{if(g(""),u.value){const n=Gy(t),o=Uy(k.value),r=Uy(P.value),l=o.includes(n),i=I.value.some((e=>Gy(e)===n));let a=k.value,s=I.value;if(i&&!l)s=I.value.filter((e=>Gy(e)!==n));else{const t=l?o.filter((e=>e!==n)):[...o,n];let i;({checkedKeys:i}=ab(t,!l||{halfCheckedKeys:r},v.value,j.value,A.value));const s=ob(i,v.value,e.showCheckedStrategy);a=m(s)}T([...s,...a])}else T(t)},D=(e,t)=>{if("clear"===t.type)return void T([]);const{valueCells:n}=t.values[0];z(n)},B=n((()=>void 0!==e.open?e.open:e.popupVisible)),N=n((()=>e.dropdownStyle||e.popupStyle||{})),F=n((()=>e.placement||e.popupPlacement)),H=t=>{var n,o;null===(n=e.onDropdownVisibleChange)||void 0===n||n.call(e,t),null===(o=e.onPopupVisibleChange)||void 0===o||o.call(e,t)},{changeOnSelect:L,checkable:_,dropdownPrefixCls:W,loadData:V,expandTrigger:X,expandIcon:K,loadingIcon:q,dropdownMenuColumnStyle:G,customSlots:U,dropdownClassName:Y}=R(e);(e=>{r(sb,e)})({options:f,fieldNames:p,values:k,halfValues:P,changeOnSelect:L,onSelect:z,checkable:_,searchOptions:S,dropdownPrefixCls:W,loadData:V,expandTrigger:X,expandIcon:K,loadingIcon:q,dropdownMenuColumnStyle:G,customSlots:U});const Z=b();l({focus(){var e;null===(e=Z.value)||void 0===e||e.focus()},blur(){var e;null===(e=Z.value)||void 0===e||e.blur()},scrollTo(e){var t;null===(t=Z.value)||void 0===t||t.scrollTo(e)}});const Q=n((()=>nl(e,["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","customSlots","showCheckedStrategy","children"])));return()=>{const t=!(h.value?S.value:f.value).length,{dropdownMatchSelectWidth:n=!1}=e,r=h.value&&C.value.matchInputWidth||t?{}:{minWidth:"auto"};return $(fc,ze(ze(ze({},Q.value),o),{},{ref:Z,id:a,prefixCls:e.prefixCls,dropdownMatchSelectWidth:n,dropdownStyle:De(De({},N.value),r),displayValues:M.value,onDisplayValuesChange:D,mode:u.value?"multiple":void 0,searchValue:h.value,onSearch:y,showSearch:x.value,OptionList:vb,emptyOptions:t,open:B.value,dropdownClassName:Y.value,placement:F.value,onDropdownVisibleChange:H,getRawInputElement:()=>{var e;return null===(e=i.default)||void 0===e?void 0:e.call(i)}}),i)}}});var yb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function bb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){wb(e,t,n[t])}))}return e}function wb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xb=function(e,t){var n=bb({},e,t.attrs);return $(bd,bb({},n,{icon:yb}),null)};xb.displayName="LeftOutlined",xb.inheritAttrs=!1;function $b(e,t){return(e=>{if(ln()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some((e=>e in n.style))}return!1})(e)}let Cb;const Sb=()=>{if(!ln()||!window.document.documentElement)return!1;if(void 0!==Cb)return Cb;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),Cb=1===e.scrollHeight,document.body.removeChild(e),Cb},Ob=Symbol("rowContextKey"),kb=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around ":{justifyContent:"space-around"},"&-space-evenly ":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Pb=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Ib=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:o}=e,r={};for(let e=o;e>=0;e--)0===e?(r[`${n}${t}-${e}`]={display:"none"},r[`${n}-push-${e}`]={insetInlineStart:"auto"},r[`${n}-pull-${e}`]={insetInlineEnd:"auto"},r[`${n}${t}-push-${e}`]={insetInlineStart:"auto"},r[`${n}${t}-pull-${e}`]={insetInlineEnd:"auto"},r[`${n}${t}-offset-${e}`]={marginInlineEnd:0},r[`${n}${t}-order-${e}`]={order:0}):(r[`${n}${t}-${e}`]={display:"block",flex:`0 0 ${e/o*100}%`,maxWidth:e/o*100+"%"},r[`${n}${t}-push-${e}`]={insetInlineStart:e/o*100+"%"},r[`${n}${t}-pull-${e}`]={insetInlineEnd:e/o*100+"%"},r[`${n}${t}-offset-${e}`]={marginInlineStart:e/o*100+"%"},r[`${n}${t}-order-${e}`]={order:e});return r})(e,t),Eb=Tr("Grid",(e=>[kb(e)])),jb=Tr("Grid",(e=>{const t=Rr(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Pb(t),Ib(t,""),Ib(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:De({},Ib(e,n))}))(t,n[e],e))).reduce(((e,t)=>De(De({},e),t)),{})]})),Ab=l({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:{align:fe([String,Object]),justify:fe([String,Object]),prefixCls:String,gutter:fe([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}},setup(e,t){let{slots:o,attrs:l}=t;const{prefixCls:i,direction:a}=tl("row",e),[u,c]=Eb(i);let d;const p=Bm(),f=b({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),v=b({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),m=t=>n((()=>{if("string"==typeof e[t])return e[t];if("object"!=typeof e[t])return"";for(let n=0;n<Rm.length;n++){const o=Rm[n];if(!v.value[o])continue;const r=e[t][o];if(void 0!==r)return r}return""})),g=m("align"),y=m("justify"),w=(()=>{const e=s(!1);return h((()=>{e.value=Sb()})),e})();h((()=>{d=p.value.subscribe((t=>{v.value=t;const n=e.gutter||0;(!Array.isArray(n)&&"object"==typeof n||Array.isArray(n)&&("object"==typeof n[0]||"object"==typeof n[1]))&&(f.value=t)}))})),x((()=>{p.value.unsubscribe(d)}));const C=n((()=>{const t=[void 0,void 0],{gutter:n=0}=e;return(Array.isArray(n)?n:[n,void 0]).forEach(((e,n)=>{if("object"==typeof e)for(let o=0;o<Rm.length;o++){const r=Rm[o];if(f.value[r]&&void 0!==e[r]){t[n]=e[r];break}}else t[n]=e})),t}));(e=>{r(Ob,e)})({gutter:C,supportFlexGap:w,wrap:n((()=>e.wrap))});const S=n((()=>Ue(i.value,{[`${i.value}-no-wrap`]:!1===e.wrap,[`${i.value}-${y.value}`]:y.value,[`${i.value}-${g.value}`]:g.value,[`${i.value}-rtl`]:"rtl"===a.value},l.class,c.value))),O=n((()=>{const e=C.value,t={},n=null!=e[0]&&e[0]>0?e[0]/-2+"px":void 0,o=null!=e[1]&&e[1]>0?e[1]/-2+"px":void 0;return n&&(t.marginLeft=n,t.marginRight=n),w.value?t.rowGap=`${e[1]}px`:o&&(t.marginTop=o,t.marginBottom=o),t}));return()=>{var e;return u($("div",ze(ze({},l),{},{class:S.value,style:De(De({},O.value),l.style)}),[null===(e=o.default)||void 0===e?void 0:e.call(o)]))}}});function Mb(){return Mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Mb.apply(this,arguments)}function Tb(e){return(Tb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zb(e,t){return(zb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Db(e,t,n){return(Db=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}()?Reflect.construct.bind():function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&zb(r,n.prototype),r}).apply(null,arguments)}function Rb(e){var t="function"==typeof Map?new Map:void 0;return Rb=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Db(e,arguments,Tb(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),zb(n,e)},Rb(e)}var Bb=/%[sdj%]/g;function Nb(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function Fb(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=0,l=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(Bb,(function(e){if("%%"===e)return"%";if(r>=l)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}break;default:return e}})):e}function Hb(e,t){return!!(null==e||"array"===t&&Array.isArray(e)&&!e.length||function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)&&"string"==typeof e&&!e)}function Lb(e,t,n){var o=0,r=e.length;!function l(i){if(i&&i.length)n(i);else{var a=o;o+=1,a<r?t(e[a],l):n([])}}([])}typeof process<"u"&&process.env;var _b=function(e){function t(t,n){var o;return(o=e.call(this,"Async Validation Error")||this).errors=t,o.fields=n,o}return function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zb(e,t)}(t,e),t}(Rb(Error));function Wb(e,t,n,o,r){if(t.first){var l=new Promise((function(t,l){var i=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);Lb(i,n,(function(e){return o(e),e.length?l(new _b(e,Nb(e))):t(r)}))}));return l.catch((function(e){return e})),l}var i=!0===t.firstFields?Object.keys(e):t.firstFields||[],a=Object.keys(e),s=a.length,u=0,c=[],d=new Promise((function(t,l){var d=function(e){if(c.push.apply(c,e),++u===s)return o(c),c.length?l(new _b(c,Nb(c))):t(r)};a.length||(o(c),t(r)),a.forEach((function(t){var o=e[t];-1!==i.indexOf(t)?Lb(o,n,d):function(e,t,n){var o=[],r=0,l=e.length;function i(e){o.push.apply(o,e||[]),++r===l&&n(o)}e.forEach((function(e){t(e,i)}))}(o,n,d)}))}));return d.catch((function(e){return e})),d}function Vb(e,t){return function(n){var o;return o=e.fullFields?function(e,t){for(var n=e,o=0;o<t.length;o++){if(null==n)return n;n=n[t[o]]}return n}(t,e.fullFields):t[n.field||e.fullField],function(e){return!(!e||void 0===e.message)}(n)?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:"function"==typeof n?n():n,fieldValue:o,field:n.field||e.fullField}}}function Xb(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"==typeof o&&"object"==typeof e[n]?e[n]=Mb({},e[n],o):e[n]=o}return e}var Kb,qb=function(e,t,n,o,r,l){e.required&&(!n.hasOwnProperty(e.field)||Hb(t,l||e.type))&&o.push(Fb(r.messages.required,e.fullField))},Gb=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,Ub=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Yb={integer:function(e){return Yb.number(e)&&parseInt(e,10)===e},float:function(e){return Yb.number(e)&&!Yb.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!Yb.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Gb)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Kb)return Kb;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",r=("\n(?:\n(?:"+o+":){7}(?:"+o+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+o+":){6}(?:"+n+"|:"+o+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+o+":){5}(?::"+n+"|(?::"+o+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+o+":){4}(?:(?::"+o+"){0,1}:"+n+"|(?::"+o+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+o+":){3}(?:(?::"+o+"){0,2}:"+n+"|(?::"+o+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+o+":){2}(?:(?::"+o+"){0,3}:"+n+"|(?::"+o+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+o+":){1}(?:(?::"+o+"){0,4}:"+n+"|(?::"+o+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+o+"){0,5}:"+n+"|(?::"+o+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),l=new RegExp("(?:^"+n+"$)|(?:^"+r+"$)"),i=new RegExp("^"+n+"$"),a=new RegExp("^"+r+"$"),s=function(e){return e&&e.exact?l:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+r+t(e)+")","g")};s.v4=function(e){return e&&e.exact?i:new RegExp(""+t(e)+n+t(e),"g")},s.v6=function(e){return e&&e.exact?a:new RegExp(""+t(e)+r+t(e),"g")};var u=s.v4().source,c=s.v6().source;return Kb=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+u+"|"+c+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Ub)}},Zb="enum",Qb={required:qb,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(Fb(r.messages.whitespace,e.fullField))},type:function(e,t,n,o,r){if(e.required&&void 0===t)qb(e,t,n,o,r);else{var l=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(l)>-1?Yb[l](t)||o.push(Fb(r.messages.types[l],e.fullField,e.type)):l&&typeof t!==e.type&&o.push(Fb(r.messages.types[l],e.fullField,e.type))}},range:function(e,t,n,o,r){var l="number"==typeof e.len,i="number"==typeof e.min,a="number"==typeof e.max,s=t,u=null,c="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(c?u="number":d?u="string":p&&(u="array"),!u)return!1;p&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),l?s!==e.len&&o.push(Fb(r.messages[u].len,e.fullField,e.len)):i&&!a&&s<e.min?o.push(Fb(r.messages[u].min,e.fullField,e.min)):a&&!i&&s>e.max?o.push(Fb(r.messages[u].max,e.fullField,e.max)):i&&a&&(s<e.min||s>e.max)&&o.push(Fb(r.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[Zb]=Array.isArray(e[Zb])?e[Zb]:[],-1===e[Zb].indexOf(t)&&o.push(Fb(r.messages[Zb],e.fullField,e[Zb].join(", ")))},pattern:function(e,t,n,o,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(Fb(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(Fb(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Jb=function(e,t,n,o,r){var l=e.type,i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t,l)&&!e.required)return n();Qb.required(e,t,o,i,r,l),Hb(t,l)||Qb.type(e,t,o,i,r)}n(i)},ew={string:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t,"string")&&!e.required)return n();Qb.required(e,t,o,l,r,"string"),Hb(t,"string")||(Qb.type(e,t,o,l,r),Qb.range(e,t,o,l,r),Qb.pattern(e,t,o,l,r),!0===e.whitespace&&Qb.whitespace(e,t,o,l,r))}n(l)},method:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t)&&!e.required)return n();Qb.required(e,t,o,l,r),void 0!==t&&Qb.type(e,t,o,l,r)}n(l)},number:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Hb(t)&&!e.required)return n();Qb.required(e,t,o,l,r),void 0!==t&&(Qb.type(e,t,o,l,r),Qb.range(e,t,o,l,r))}n(l)},boolean:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t)&&!e.required)return n();Qb.required(e,t,o,l,r),void 0!==t&&Qb.type(e,t,o,l,r)}n(l)},regexp:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t)&&!e.required)return n();Qb.required(e,t,o,l,r),Hb(t)||Qb.type(e,t,o,l,r)}n(l)},integer:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t)&&!e.required)return n();Qb.required(e,t,o,l,r),void 0!==t&&(Qb.type(e,t,o,l,r),Qb.range(e,t,o,l,r))}n(l)},float:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t)&&!e.required)return n();Qb.required(e,t,o,l,r),void 0!==t&&(Qb.type(e,t,o,l,r),Qb.range(e,t,o,l,r))}n(l)},array:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Qb.required(e,t,o,l,r,"array"),null!=t&&(Qb.type(e,t,o,l,r),Qb.range(e,t,o,l,r))}n(l)},object:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t)&&!e.required)return n();Qb.required(e,t,o,l,r),void 0!==t&&Qb.type(e,t,o,l,r)}n(l)},enum:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t)&&!e.required)return n();Qb.required(e,t,o,l,r),void 0!==t&&Qb.enum(e,t,o,l,r)}n(l)},pattern:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t,"string")&&!e.required)return n();Qb.required(e,t,o,l,r),Hb(t,"string")||Qb.pattern(e,t,o,l,r)}n(l)},date:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t,"date")&&!e.required)return n();var i;if(Qb.required(e,t,o,l,r),!Hb(t,"date"))i=t instanceof Date?t:new Date(t),Qb.type(e,i,o,l,r),i&&Qb.range(e,i.getTime(),o,l,r)}n(l)},url:Jb,hex:Jb,email:Jb,required:function(e,t,n,o,r){var l=[],i=Array.isArray(t)?"array":typeof t;Qb.required(e,t,o,l,r,i),n(l)},any:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t)&&!e.required)return n();Qb.required(e,t,o,l,r)}n(l)}};function tw(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var nw=tw(),ow=function(){function e(e){this.rules=null,this._messages=nw,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var o=e[n];t.rules[n]=Array.isArray(o)?o:[o]}))},t.messages=function(e){return e&&(this._messages=Xb(tw(),e)),this._messages},t.validate=function(t,n,o){var r=this;void 0===n&&(n={}),void 0===o&&(o=function(){});var l=t,i=n,a=o;if("function"==typeof i&&(a=i,i={}),!this.rules||0===Object.keys(this.rules).length)return a&&a(null,l),Promise.resolve(l);if(i.messages){var s=this.messages();s===nw&&(s=tw()),Xb(s,i.messages),i.messages=s}else i.messages=this.messages();var u={};(i.keys||Object.keys(this.rules)).forEach((function(e){var n=r.rules[e],o=l[e];n.forEach((function(n){var i=n;"function"==typeof i.transform&&(l===t&&(l=Mb({},l)),o=l[e]=i.transform(o)),(i="function"==typeof i?{validator:i}:Mb({},i)).validator=r.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=r.getType(i),u[e]=u[e]||[],u[e].push({rule:i,value:o,source:l,field:e}))}))}));var c={};return Wb(u,i,(function(t,n){var o,r=t.rule,a=!("object"!==r.type&&"array"!==r.type||"object"!=typeof r.fields&&"object"!=typeof r.defaultField);function s(e,t){return Mb({},t,{fullField:r.fullField+"."+e,fullFields:r.fullFields?[].concat(r.fullFields,[e]):[e]})}function u(o){void 0===o&&(o=[]);var u=Array.isArray(o)?o:[o];!i.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==r.message&&(u=[].concat(r.message));var d=u.map(Vb(r,l));if(i.first&&d.length)return c[r.field]=1,n(d);if(a){if(r.required&&!t.value)return void 0!==r.message?d=[].concat(r.message).map(Vb(r,l)):i.error&&(d=[i.error(r,Fb(i.messages.required,r.field))]),n(d);var p={};r.defaultField&&Object.keys(t.value).map((function(e){p[e]=r.defaultField})),p=Mb({},p,t.rule.fields);var f={};Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];f[e]=n.map(s.bind(null,e))}));var v=new e(f);v.messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),v.validate(t.value,t.rule.options||i,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(a=a&&(r.required||!r.required&&t.value),r.field=t.field,r.asyncValidator)o=r.asyncValidator(r,t.value,u,t.source,i);else if(r.validator){try{o=r.validator(r,t.value,u,t.source,i)}catch(e){null==console.error||console.error(e),i.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===o?u():!1===o?u("function"==typeof r.message?r.message(r.fullField||r.field):r.message||(r.fullField||r.field)+" fails"):o instanceof Array?u(o):o instanceof Error&&u(o.message)}o&&o.then&&o.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,o=[],r={},i=0;i<e.length;i++)t=e[i],n=void 0,Array.isArray(t)?o=(n=o).concat.apply(n,t):o.push(t);o.length?(r=Nb(o),a(o,r)):a(null,l)}(e)}),l)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!ew.hasOwnProperty(e.type))throw new Error(Fb("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?ew.required:ew[this.getType(e)]||void 0},e}();function rw(e){return null==e?[]:Array.isArray(e)?e:[e]}function lw(e,t){let n=e;for(let e=0;e<t.length;e+=1){if(null==n)return;n=n[t[e]]}return n}function iw(e,t,n,o){if(!t.length)return n;const[r,...l]=t;let i;return i=e||"number"!=typeof r?Array.isArray(e)?[...e]:De({},e):[],o&&void 0===n&&1===l.length?delete i[r][l[0]]:i[r]=iw(i[r],l,n,o),i}function aw(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!lw(e,t.slice(0,-1))?e:iw(e,t,n,o)}function sw(e){return rw(e)}function uw(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function cw(e,t){const n=Array.isArray(e)?[...e]:De({},e);return t&&Object.keys(t).forEach((e=>{const o=n[e],r=t[e],l=uw(o)&&uw(r);n[e]=l?cw(o,r||{}):r})),n}function dw(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.reduce(((e,t)=>cw(e,t)),e)}function pw(e,t){let n={};return t.forEach((t=>{const o=function(e,t){return lw(e,t)}(e,t);n=function(e,t,n){return aw(e,t,n,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(n,t,o)})),n}ow.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ew[e]=t},ow.warning=function(){},ow.messages=nw,ow.validators=ew;const fw="'${name}' is not a valid ${type}",vw={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:fw,method:fw,array:fw,object:fw,number:fw,date:fw,boolean:fw,integer:fw,float:fw,regexp:fw,email:fw,url:fw,hex:fw},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};var mw=function(e,t,n,o){return new(n||(n=Promise))((function(r,l){function i(e){try{s(o.next(e))}catch(e){l(e)}}function a(e){try{s(o.throw(e))}catch(e){l(e)}}function s(e){e.done?r(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(i,a)}s((o=o.apply(e,t||[])).next())}))};const hw=ow;function gw(e,t,n,o,r){return mw(this,void 0,void 0,(function*(){const l=De({},n);delete l.ruleIndex,delete l.trigger;let i=null;l&&"array"===l.type&&l.defaultField&&(i=l.defaultField,delete l.defaultField);const a=new hw({[e]:[l]}),s=dw({},vw,o.validateMessages);a.messages(s);let u=[];try{yield Promise.resolve(a.validate({[e]:t},De({},o)))}catch(e){e.errors?u=e.errors.map(((e,t)=>{let{message:n}=e;return It(n)?P(n,{key:`error_${t}`}):n})):(console.error(e),u=[s.default()])}if(!u.length&&i)return(yield Promise.all(t.map(((t,n)=>gw(`${e}.${n}`,t,i,o,r))))).reduce(((e,t)=>[...e,...t]),[]);const c=De(De(De({},n),{name:e,enum:(n.enum||[]).join(", ")}),r);return u.map((e=>"string"==typeof e?function(e,t){return e.replace(/\$\{\w+\}/g,(e=>{const n=e.slice(2,-1);return t[n]}))}(e,c):e))}))}function yw(e,t,n,o,r,l){const i=e.join("."),a=n.map(((e,t)=>{const n=e.validator,o=De(De({},e),{ruleIndex:t});return n&&(o.validator=(e,t,o)=>{let r=!1;const l=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((()=>{r||o(...t)}))}));r=l&&"function"==typeof l.then&&"function"==typeof l.catch,r&&l.then((()=>{o()})).catch((e=>{o(e||" ")}))}),o})).sort(((e,t)=>{let{warningOnly:n,ruleIndex:o}=e,{warningOnly:r,ruleIndex:l}=t;return!!n==!!r?o-l:n?1:-1}));let s;if(!0===r)s=new Promise(((e,n)=>mw(this,void 0,void 0,(function*(){for(let e=0;e<a.length;e+=1){const r=a[e],s=yield gw(i,t,r,o,l);if(s.length)return void n([{errors:s,rule:r}])}e([])}))));else{const e=a.map((e=>gw(i,t,e,o,l).then((t=>({errors:t,rule:e})))));s=(r?function(e){return mw(this,void 0,void 0,(function*(){let t=0;return new Promise((n=>{e.forEach((o=>{o.then((o=>{o.errors.length&&n([o]),t+=1,t===e.length&&n([])}))}))}))}))}(e):function(e){return mw(this,void 0,void 0,(function*(){return Promise.all(e).then((e=>[].concat(...e)))}))}(e)).then((e=>Promise.reject(e)))}return s.catch((e=>e)),s}const bw=Symbol("formContextKey"),ww=e=>{r(bw,e)},xw=()=>o(bw,{name:n((()=>{})),labelAlign:n((()=>"right")),vertical:n((()=>!1)),addField:(e,t)=>{},removeField:e=>{},model:n((()=>{})),rules:n((()=>{})),colon:n((()=>{})),labelWrap:n((()=>{})),labelCol:n((()=>{})),requiredMark:n((()=>!1)),validateTrigger:n((()=>{})),onValidate:()=>{},validateMessages:n((()=>vw))}),$w=Symbol("formItemPrefixContextKey");const Cw=["xs","sm","md","lg","xl","xxl"],Sw=l({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]},setup(e,t){let{slots:r,attrs:l}=t;const{gutter:i,supportFlexGap:a,wrap:s}=o(Ob,{gutter:n((()=>{})),wrap:n((()=>{})),supportFlexGap:n((()=>{}))}),{prefixCls:u,direction:c}=tl("col",e),[d,p]=jb(u),f=n((()=>{const{span:t,order:n,offset:o,push:r,pull:i}=e,a=u.value;let s={};return Cw.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),s=De(De({},s),{[`${a}-${t}-${n.span}`]:void 0!==n.span,[`${a}-${t}-order-${n.order}`]:n.order||0===n.order,[`${a}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${a}-${t}-push-${n.push}`]:n.push||0===n.push,[`${a}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${a}-rtl`]:"rtl"===c.value})})),Ue(a,{[`${a}-${t}`]:void 0!==t,[`${a}-order-${n}`]:n,[`${a}-offset-${o}`]:o,[`${a}-push-${r}`]:r,[`${a}-pull-${i}`]:i},s,l.class,p.value)})),v=n((()=>{const{flex:t}=e,n=i.value,o={};if(n&&n[0]>0){const e=n[0]/2+"px";o.paddingLeft=e,o.paddingRight=e}if(n&&n[1]>0&&!a.value){const e=n[1]/2+"px";o.paddingTop=e,o.paddingBottom=e}return t&&(o.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(t),!1===s.value&&!o.minWidth&&(o.minWidth=0)),o}));return()=>{var e;return d($("div",ze(ze({},l),{},{class:f.value,style:[v.value,l.style]}),[null===(e=r.default)||void 0===e?void 0:e.call(r)]))}}});var Ow={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};function kw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Pw(e,t,n[t])}))}return e}function Pw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Iw=function(e,t){var n=kw({},e,t.attrs);return $(bd,kw({},n,{icon:Ow}),null)};Iw.displayName="QuestionCircleOutlined",Iw.inheritAttrs=!1;const Ew=(e,t)=>{let{slots:n,emit:o,attrs:r}=t;var l,i,a,s,u;const{prefixCls:d,htmlFor:p,labelCol:f,labelAlign:v,colon:m,required:h,requiredMark:g}=De(De({},e),r),[y]=qt("Form"),b=null!==(l=e.label)&&void 0!==l?l:null===(i=n.label)||void 0===i?void 0:i.call(n);if(!b)return null;const{vertical:w,labelAlign:x,labelCol:C,labelWrap:S,colon:O}=xw(),k=f||(null==C?void 0:C.value)||{},P=`${d}-item-label`,I=Ue(P,"left"===(v||(null==x?void 0:x.value))&&`${P}-left`,k.class,{[`${P}-wrap`]:!!S.value});let E=b;const j=!0===m||!1!==(null==O?void 0:O.value)&&!1!==m;if(j&&!w.value&&"string"==typeof b&&""!==b.trim()&&(E=b.replace(/[:|:]\s*$/,"")),e.tooltip||n.tooltip){const t=$("span",{class:`${d}-item-tooltip`},[$(uh,{title:e.tooltip},{default:()=>[$(Iw,null,null)]})]);E=$(c,null,[E,n.tooltip?null===(a=n.tooltip)||void 0===a?void 0:a.call(n,{class:`${d}-item-tooltip`}):t])}"optional"===g&&!h&&(E=$(c,null,[E,$("span",{class:`${d}-item-optional`},[(null===(s=y.value)||void 0===s?void 0:s.optional)||(null===(u=Xt.Form)||void 0===u?void 0:u.optional)])]));const A=Ue({[`${d}-item-required`]:h,[`${d}-item-required-mark-optional`]:"optional"===g,[`${d}-item-no-colon`]:!j});return $(Sw,ze(ze({},k),{},{class:I}),{default:()=>[$("label",{for:p,class:A,title:"string"==typeof b?b:"",onClick:e=>o("click",e)},[E])]})};Ew.displayName="FormItemLabel",Ew.inheritAttrs=!1;const jw=e=>{const{componentCls:t}=e,n=`${t}-show-help`,o=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[o]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${o}-appear, &${o}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${o}-leave-active`]:{transform:"translateY(-5px)"}}}}},Aw=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Mw=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Tw=e=>{const{componentCls:t}=e;return{[e.componentCls]:De(De(De({},Ir(e)),Aw(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":De({},Mw(e,e.controlHeightSM)),"&-large":De({},Mw(e,e.controlHeightLG))})}},zw=e=>{const{formItemCls:t,iconCls:n,componentCls:o,rootPrefixCls:r}=e;return{[t]:De(De({},Ir(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${r}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Av,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Dw=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${o}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},Rw=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Bw=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),Nw=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:Bw(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label,\n ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},Fw=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${o}-col-24${n}-label,\n .${o}-col-xl-24${n}-label`]:Bw(e),[`@media (max-width: ${e.screenXSMax}px)`]:[Nw(e),{[t]:{[`.${o}-col-xs-24${n}-label`]:Bw(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${o}-col-sm-24${n}-label`]:Bw(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${o}-col-md-24${n}-label`]:Bw(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${o}-col-lg-24${n}-label`]:Bw(e)}}}},Hw=Tr("Form",((e,t)=>{let{rootPrefixCls:n}=t;const o=Rr(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[Tw(o),zw(o),jw(o),Dw(o),Rw(o),Fw(o),Xv(o),Av]})),Lw=l({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:r}=t;const{prefixCls:l,status:a}=o($w,{prefixCls:n((()=>""))}),s=n((()=>`${l.value}-item-explain`)),u=n((()=>!(!e.errors||!e.errors.length))),c=b(a.value),[,d]=Hw(l);return i([u,a],(()=>{u.value&&(c.value=a.value)})),()=>{var t,n;const o=sy(`${l.value}-show-help-item`),i=cu(`${l.value}-show-help-item`,o);return i.role="alert",i.class=[d.value,s.value,r.class,`${l.value}-show-help`],$(S,ze(ze({},uu(`${l.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[O($(H,ze(ze({},i),{},{tag:"div"}),{default:()=>[null===(n=e.errors)||void 0===n?void 0:n.map(((e,t)=>$("div",{key:t,class:c.value?`${s.value}-${c.value}`:""},[e])))]}),[[A,!(null===(t=e.errors)||void 0===t||!t.length)]])]})}}}),_w=l({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:o}=t;const l=xw(),{wrapperCol:i}=l,a=De({},l);return delete a.labelCol,delete a.wrapperCol,ww(a),(e=>{r($w,e)})({prefixCls:n((()=>e.prefixCls)),status:n((()=>e.status))}),()=>{var t,n,r;const{prefixCls:l,wrapperCol:a,marginBottom:s,onErrorVisibleChanged:u,help:d=(null===(t=o.help)||void 0===t?void 0:t.call(o)),errors:p=Pt(null===(n=o.errors)||void 0===n?void 0:n.call(o)),extra:f=(null===(r=o.extra)||void 0===r?void 0:r.call(o))}=e,v=`${l}-item`,m=a||(null==i?void 0:i.value)||{},h=Ue(`${v}-control`,m.class);return $(Sw,ze(ze({},m),{},{class:h}),{default:()=>{var e;return $(c,null,[$("div",{class:`${v}-control-input`},[$("div",{class:`${v}-control-input-content`},[null===(e=o.default)||void 0===e?void 0:e.call(o)])]),null!==s||p.length?$("div",{style:{display:"flex",flexWrap:"nowrap"}},[$(Lw,{errors:p,help:d,class:`${v}-explain-connected`,onErrorVisibleChanged:u},null),!!s&&$("div",{style:{width:0,height:`${s}px`}},null)]):null,f?$("div",{class:`${v}-extra`},[f]):null])}})}}});re("success","warning","error","validating","");const Ww={success:Pm,warning:Am,error:Nd,validating:kd};function Vw(e,t,n){let o=e;const r=t;let l=0;try{for(let e=r.length;l<e-1&&(o||n);++l){const e=r[l];if(!(e in o)){if(n)throw Error("please transfer a valid name path to form item!");break}o=o[e]}if(n&&!o)throw Error("please transfer a valid name path to form item!")}catch{console.error("please transfer a valid name path to form item!")}return{o:o,k:r[l],v:o?o[r[l]]:void 0}}let Xw=0;const Kw=l({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:{htmlFor:String,prefixCls:String,label:Rl.any,help:Rl.any,extra:Rl.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:Rl.oneOf(re("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String},slots:Object,setup(e,t){let{slots:o,attrs:l,expose:a}=t;e.prop;const u="form-item-"+ ++Xw,{prefixCls:d}=tl("form",e),[p,f]=Hw(d),g=s(),y=xw(),C=n((()=>e.name||e.prop)),S=s([]),O=s(!1),k=s(),P=n((()=>sw(C.value))),E=n((()=>{if(P.value.length){const e=y.name.value,t=P.value.join("_");return e?`${e}_${t}`:`form_item_${t}`}})),j=n((()=>(()=>{const e=y.model.value;if(e&&C.value)return Vw(e,P.value,!0).v})())),A=s(kf(j.value)),M=n((()=>{let t=void 0!==e.validateTrigger?e.validateTrigger:y.validateTrigger.value;return t=void 0===t?"change":t,rw(t)})),T=n((()=>{let t=y.rules.value;const n=e.rules,o=void 0!==e.required?{required:!!e.required,trigger:M.value}:[],r=Vw(t,P.value);t=t?r.o[r.k]||r.v:[];const l=[].concat(n||t||[]);return Vf(l,(e=>e.required))?l:l.concat(o)})),z=n((()=>{const t=T.value;let n=!1;return t&&t.length&&t.every((e=>!e.required||(n=!0,!1))),n||e.required})),D=s();w((()=>{D.value=e.validateStatus}));const R=n((()=>{let t={};return"string"==typeof e.label?t.label=e.label:e.name&&(t.label=String(e.name)),e.messageVariables&&(t=De(De({},t),e.messageVariables)),t})),N=t=>{if(0===P.value.length)return;const{validateFirst:n=!1}=e,{triggerName:o}=t||{};let r=T.value;if(o&&(r=r.filter((e=>{const{trigger:t}=e;return!t&&!M.value.length||rw(t||M.value).includes(o)}))),!r.length)return Promise.resolve();const l=yw(P.value,j.value,r,De({validateMessages:y.validateMessages.value},t),n,R.value);return D.value="validating",S.value=[],l.catch((e=>e)).then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if("validating"===D.value){const t=e.filter((e=>e&&e.errors.length));D.value=t.length?"error":"success",S.value=t.map((e=>e.errors)),y.onValidate(C.value,!S.value.length,S.value.length?B(S.value[0]):null)}})),l},F=()=>{N({triggerName:"blur"})},H=()=>{O.value?O.value=!1:N({triggerName:"change"})},L=()=>{D.value=e.validateStatus,O.value=!1,S.value=[]},_=()=>{var t;D.value=e.validateStatus,O.value=!0,S.value=[];const n=y.model.value||{},o=j.value,r=Vw(n,P.value,!0);Array.isArray(o)?r.o[r.k]=[].concat(null!==(t=A.value)&&void 0!==t?t:[]):r.o[r.k]=A.value,I((()=>{O.value=!1}))},W=n((()=>void 0===e.htmlFor?E.value:e.htmlFor)),V=()=>{const e=W.value;if(!e||!k.value)return;const t=k.value.$el.querySelector(`[id="${e}"]`);t&&t.focus&&t.focus()};a({onFieldBlur:F,onFieldChange:H,clearValidate:L,resetField:_}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n((()=>!0));const o=b(new Map);m(),i([t,o],(()=>{})),r(Vd,e),r(Xd,{addFormItemField:(e,t)=>{o.value.set(e,t),o.value=new Map(o.value)},removeFormItemField:e=>{o.value.delete(e),o.value=new Map(o.value)}})}({id:E,onFieldBlur:()=>{e.autoLink&&F()},onFieldChange:()=>{e.autoLink&&H()},clearValidate:L},n((()=>!!(e.autoLink&&y.model.value&&C.value))));let X=!1;i(C,(e=>{e?X||(X=!0,y.addField(u,{fieldValue:j,fieldId:E,fieldName:C,resetField:_,clearValidate:L,namePath:P,validateRules:N,rules:T})):(X=!1,y.removeField(u))}),{immediate:!0}),x((()=>{y.removeField(u)}));const K=function(e){const t=s(e.value.slice());let n=null;return w((()=>{clearTimeout(n),n=setTimeout((()=>{t.value=e.value}),e.value.length?0:10)})),t}(S),q=n((()=>void 0!==e.validateStatus?e.validateStatus:K.value.length?"error":D.value)),G=n((()=>({[`${d.value}-item`]:!0,[f.value]:!0,[`${d.value}-item-has-feedback`]:q.value&&e.hasFeedback,[`${d.value}-item-has-success`]:"success"===q.value,[`${d.value}-item-has-warning`]:"warning"===q.value,[`${d.value}-item-has-error`]:"error"===q.value,[`${d.value}-item-is-validating`]:"validating"===q.value,[`${d.value}-item-hidden`]:e.hidden}))),U=v({});Yd.useProvide(U),w((()=>{let t;if(e.hasFeedback){const e=q.value&&Ww[q.value];t=e?$("span",{class:Ue(`${d.value}-item-feedback-icon`,`${d.value}-item-feedback-icon-${q.value}`)},[$(e,null,null)]):null}De(U,{status:q.value,hasFeedback:e.hasFeedback,feedbackIcon:t,isFormItemInput:!0})}));const Y=s(null),Z=s(!1);h((()=>{i(Z,(()=>{Z.value&&(()=>{if(g.value){const e=getComputedStyle(g.value);Y.value=parseInt(e.marginBottom,10)}})()}),{flush:"post",immediate:!0})}));const Q=e=>{e||(Y.value=null)};return()=>{var t,n;if(e.noStyle)return null===(t=o.default)||void 0===t?void 0:t.call(o);const r=null!==(n=e.help)&&void 0!==n?n:o.help?Pt(o.help()):null,i=!!(null!=r&&Array.isArray(r)&&r.length||K.value.length);return Z.value=i,p($("div",{class:[G.value,i?`${d.value}-item-with-help`:"",l.class],ref:g},[$(Ab,ze(ze({},l),{},{class:`${d.value}-item-row`,key:"row"}),{default:()=>{var t,n;return $(c,null,[$(Ew,ze(ze({},e),{},{htmlFor:W.value,required:z.value,requiredMark:y.requiredMark.value,prefixCls:d.value,onClick:V,label:e.label}),{label:o.label,tooltip:o.tooltip}),$(_w,ze(ze({},e),{},{errors:null!=r?rw(r):K.value,marginBottom:Y.value,prefixCls:d.value,status:q.value,ref:k,help:r,extra:null!==(t=e.extra)&&void 0!==t?t:null===(n=o.extra)||void 0===n?void 0:n.call(o),onErrorVisibleChanged:Q}),{default:o.default})])}}),!!Y.value&&$("div",{class:`${d.value}-margin-offset`,style:{marginBottom:`-${Y.value}px`}},null)]))}}});function qw(e){let t=!1,n=e.length;const o=[];return e.length?new Promise(((r,l)=>{e.forEach(((e,i)=>{e.catch((e=>(t=!0,e))).then((e=>{n-=1,o[i]=e,!(n>0)&&(t&&l(o),r(o))}))}))})):Promise.resolve([])}function Gw(e){let t=!1;return e&&e.length&&e.every((e=>!e.required||(t=!0,!1))),t}function Uw(e){return null==e?[]:Array.isArray(e)?e:[e]}function Yw(e,t,n){let o=e;const r=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split(".");let l=0;for(let e=r.length;l<e-1&&(o||n);++l){const e=r[l];if(!(e in o)){if(n)throw new Error("please transfer a valid name path to validate!");break}o=o[e]}return{o:o,k:r[l],v:o?o[r[l]]:null,isValid:o&&r[l]in o}}const Zw=l({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:bt({layout:Rl.oneOf(re("horizontal","inline","vertical")),labelCol:ae(),wrapperCol:ae(),colon:se(),labelAlign:pe(),labelWrap:se(),prefixCls:String,requiredMark:fe([String,Boolean]),hideRequiredMark:se(),model:Rl.object,rules:ae(),validateMessages:ae(),validateOnRuleChange:se(),scrollToFirstError:ce(),onSubmit:ue(),name:String,validateTrigger:fe([String,Array]),size:pe(),disabled:se(),onValuesChange:ue(),onFieldsChange:ue(),onFinish:ue(),onFinishFailed:ue(),onValidate:ue()},{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:Kw,useForm:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b({}),n=arguments.length>2?arguments[2]:void 0;const o=kf(a(e)),r=v({}),l=s([]),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.length?e.filter((e=>{const n=Uw(e.trigger||"change");return qf(n,t).length})):e};let c=null;const d=function(e,t,o){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=yw([e],t,o,De({validateMessages:vw},l),!!l.validateFirst);return r[e]?(r[e].validateStatus="validating",i.catch((e=>e)).then((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];var o;if("validating"===r[e].validateStatus){const l=t.filter((e=>e&&e.errors.length));r[e].validateStatus=l.length?"error":"success",r[e].help=l.length?l.map((e=>e.errors)):null,null===(o=null==n?void 0:n.onValidate)||void 0===o||o.call(n,e,!l.length,l.length?B(r[e].help[0]):null)}})),i):i.catch((e=>e))},p=(n,o)=>{let r=[],i=!0;n?r=Array.isArray(n)?n:[n]:(i=!1,r=l.value);const s=function(n){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;const l=[],i={};for(let s=0;s<n.length;s++){const c=n[s],p=Yw(a(e),c,r);if(!p.isValid)continue;i[c]=p.v;const f=u(a(t)[c],Uw(o&&o.trigger));f.length&&l.push(d(c,p.v,f,o||{}).then((()=>({name:c,errors:[],warnings:[]}))).catch((e=>{const t=[],n=[];return e.forEach((e=>{let{rule:{warningOnly:o},errors:r}=e;o?n.push(...r):t.push(...r)})),t.length?Promise.reject({name:c,errors:t,warnings:n}):{name:c,errors:t,warnings:n}})))}const s=qw(l);c=s;const p=s.then((()=>c===s?Promise.resolve(i):Promise.reject([]))).catch((e=>{const t=e.filter((e=>e&&e.errors.length));return t.length?Promise.reject({values:i,errorFields:t,outOfDate:c!==s}):Promise.resolve(i)}));return p.catch((e=>e)),p}(r,o||{},i);return s.catch((e=>e)),s};let f=o,m=!0;const h=e=>{const t=[];l.value.forEach((o=>{const r=Yw(e,o,!1),l=Yw(f,o,!1);(m&&(null==n?void 0:n.immediate)&&r.isValid||!ou(r.v,l.v))&&t.push(o)})),p(t,{trigger:"change"}),m=!1,f=kf(B(e))},g=null==n?void 0:n.debounce;let y=!0;return i(t,(()=>{l.value=t?Object.keys(a(t)):[],!y&&n&&n.validateOnRuleChange&&p(),y=!1}),{deep:!0,immediate:!0}),i(l,(()=>{const e={};l.value.forEach((n=>{e[n]=De({},r[n],{autoLink:!1,required:Gw(a(t)[n])}),delete r[n]}));for(const e in r)Object.prototype.hasOwnProperty.call(r,e)&&delete r[e];De(r,e)}),{immediate:!0}),i(e,g&&g.wait?_f(h,g.wait,Jf(g,["wait"])):h,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:o,validateInfos:r,resetFields:n=>{De(a(e),De(De({},kf(o)),n)),I((()=>{Object.keys(r).forEach((e=>{r[e]={autoLink:!1,required:Gw(a(t)[e])}}))}))},validate:p,validateField:d,mergeValidateInfo:e=>{const t={autoLink:!1},n=[],o=Array.isArray(e)?e:[e];for(let e=0;e<o.length;e++){const r=o[e];"error"===(null==r?void 0:r.validateStatus)&&(t.validateStatus="error",r.help&&n.push(r.help)),t.required=t.required||(null==r?void 0:r.required)}return t.help=n,t},clearValidate:e=>{let t=[];t=e?Array.isArray(e)?e:[e]:l.value,t.forEach((e=>{r[e]&&De(r[e],{validateStatus:"",help:null})}))}}},setup(e,t){let{emit:r,slots:l,expose:a,attrs:s}=t;const{prefixCls:u,direction:c,form:d,size:p,disabled:f}=tl("form",e),v=n((()=>""===e.requiredMark||e.requiredMark)),m=n((()=>{var t;return void 0!==v.value?v.value:d&&void 0!==(null===(t=d.value)||void 0===t?void 0:t.requiredMark)?d.value.requiredMark:!e.hideRequiredMark}));el(p),Lt(f);const h=n((()=>{var t,n;return null!==(t=e.colon)&&void 0!==t?t:null===(n=d.value)||void 0===n?void 0:n.colon})),{validateMessages:g}=o(me,{validateMessages:n((()=>{}))}),y=n((()=>De(De(De({},vw),g.value),e.validateMessages))),[w,x]=Hw(u),C=n((()=>Ue(u.value,{[`${u.value}-${e.layout}`]:!0,[`${u.value}-hide-required-mark`]:!1===m.value,[`${u.value}-rtl`]:"rtl"===c.value,[`${u.value}-${p.value}`]:p.value},x.value))),S=b(),O={},k=e=>{const t=!!e,n=t?rw(e).map(sw):[];return t?Object.values(O).filter((e=>n.findIndex((t=>function(e,t){return ou(rw(e),rw(t))}(t,e.fieldName.value)))>-1)):Object.values(O)},P=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=k(e?[e]:void 0);if(n.length){const e=n[0].fieldId.value,o=e?document.getElementById(e):null;o&&ul(o,De({scrollMode:"if-needed",block:"nearest"},t))}},I=function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t){const t=[];return Object.values(O).forEach((e=>{let{namePath:n}=e;t.push(n.value)})),pw(e.model,t)}return pw(e.model,t)},E=(t,n)=>{if(!e.model)return Promise.reject("Form `model` is required for validateFields to work.");const o=!!t,r=o?rw(t).map(sw):[],l=[];Object.values(O).forEach((e=>{var t;if(o||r.push(e.namePath.value),null===(t=e.rules)||void 0===t||!t.value.length)return;const i=e.namePath.value;if(!o||function(e,t){return e&&e.some((e=>function(e,t){return!(!e||!t||e.length!==t.length)&&e.every(((e,n)=>t[n]===e))}(e,t)))}(r,i)){const t=e.validateRules(De({validateMessages:y.value},n));l.push(t.then((()=>({name:i,errors:[],warnings:[]}))).catch((e=>{const t=[],n=[];return e.forEach((e=>{let{rule:{warningOnly:o},errors:r}=e;o?n.push(...r):t.push(...r)})),t.length?Promise.reject({name:i,errors:t,warnings:n}):{name:i,errors:t,warnings:n}})))}}));const i=qw(l);S.value=i;const a=i.then((()=>S.value===i?Promise.resolve(I(r)):Promise.reject([]))).catch((e=>{const t=e.filter((e=>e&&e.errors.length));return Promise.reject({values:I(r),errorFields:t,outOfDate:S.value!==i})}));return a.catch((e=>e)),a},j=function(){return E(...arguments)},A=t=>{t.preventDefault(),t.stopPropagation(),r("submit",t),e.model&&E().then((e=>{r("finish",e)})).catch((t=>{(t=>{const{scrollToFirstError:n}=e;if(r("finishFailed",t),n&&t.errorFields.length){let e={};"object"==typeof n&&(e=n),P(t.errorFields[0].name,e)}})(t)}))};return a({resetFields:t=>{e.model&&k(t).forEach((e=>{e.resetField()}))},clearValidate:e=>{k(e).forEach((e=>{e.clearValidate()}))},validateFields:E,getFieldsValue:I,validate:function(){return j(...arguments)},scrollToField:P}),ww({model:n((()=>e.model)),name:n((()=>e.name)),labelAlign:n((()=>e.labelAlign)),labelCol:n((()=>e.labelCol)),labelWrap:n((()=>e.labelWrap)),wrapperCol:n((()=>e.wrapperCol)),vertical:n((()=>"vertical"===e.layout)),colon:h,requiredMark:m,validateTrigger:n((()=>e.validateTrigger)),rules:n((()=>e.rules)),addField:(e,t)=>{O[e]=t},removeField:e=>{delete O[e]},onValidate:(e,t,n)=>{r("validate",e,t,n)},validateMessages:y}),i((()=>e.rules),(()=>{e.validateOnRuleChange&&E()})),()=>{var e;return w($("form",ze(ze({},s),{},{onSubmit:A,class:[C.value,s.class]}),[null===(e=l.default)||void 0===e?void 0:e.call(l)]))}}});Zw.useInjectFormItemContext=Gd,Zw.ItemRest=Ud,Zw.install=function(e){return e.component(Zw.name,Zw),e.component(Zw.Item.name,Zw.Item),e.component(Ud.name,Ud),e};const Qw=new jo("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),Jw=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:De(De({},Ir(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:De(De({},Ir(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:De(De({},Ir(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:De({},Ar(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:Qw,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function ex(e,t){const n=Rr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Jw(n)]}const tx=e=>{const{prefixCls:t,componentCls:n,antCls:o}=e,r=`${n}-menu-item`,l=`\n &${r}-expand ${r}-expand-icon,\n ${r}-loading-icon\n `,i=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return[{[n]:{width:e.controlWidth}},{[`${n}-dropdown`]:[ex(`${t}-checkbox`,e),{[`&${o}-select-dropdown`]:{padding:0}},{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.paddingXXS,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},"&-item":De(De({},Pr),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:`${i}px ${e.paddingSM}px`,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[l]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive}},"&-content":{flex:"auto"},[l]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},{[`${n}-dropdown-rtl`]:{direction:"rtl"}},tm(e)]},nx=Tr("Cascader",(e=>[tx(e)]),{controlWidth:184,controlItemWidth:111,dropdownHeight:180});const ox=e=>{let{inputValue:t,path:n,prefixCls:o,fieldNames:r}=e;const l=[],i=t.toLowerCase();return n.forEach(((e,t)=>{0!==t&&l.push(" / ");let n=e[r.label];const a=typeof n;("string"===a||"number"===a)&&(n=function(e,t,n){const o=e.toLowerCase().split(t).reduce(((e,n,o)=>0===o?[n]:[...e,t,n]),[]),r=[];let l=0;return o.forEach(((t,o)=>{const i=l+t.length;let a=e.slice(l,i);l=i,o%2==1&&(a=$("span",{class:`${n}-menu-item-keyword`,key:"seperator"},[a])),r.push(a)})),r}(String(n),i,o)),l.push(n)})),l};const rx=l({compatConfig:{MODE:3},name:"ACascader",inheritAttrs:!1,props:bt(De(De({},nl(mb(),["customSlots","checkable","options"])),{multiple:{type:Boolean,default:void 0},size:String,bordered:{type:Boolean,default:void 0},placement:{type:String},suffixIcon:Rl.any,status:String,options:Array,popupClassName:String,dropdownClassName:String,"onUpdate:value":Function}),{bordered:!0,choiceTransitionName:"",allowClear:!0}),setup(e,t){let{attrs:o,expose:r,slots:l,emit:i}=t;const a=Gd(),s=Yd.useInject(),u=n((()=>Jd(s.status,e.status))),{prefixCls:d,rootPrefixCls:p,getPrefixCls:f,direction:v,getPopupContainer:m,renderEmpty:h,size:g,disabled:y}=tl("cascader",e),w=n((()=>f("select",e.prefixCls))),{compactSize:x,compactItemClassnames:C}=rv(w,v),S=n((()=>x.value||g.value)),O=Ht(),k=n((()=>{var e;return null!==(e=y.value)&&void 0!==e?e:O.value})),[P,I]=am(w),[E]=nx(d),j=n((()=>"rtl"===v.value)),A=n((()=>{if(!e.showSearch)return e.showSearch;let t={render:ox};return"object"==typeof e.showSearch&&(t=De(De({},t),e.showSearch)),t})),M=n((()=>Ue(e.popupClassName||e.dropdownClassName,`${d.value}-dropdown`,{[`${d.value}-dropdown-rtl`]:j.value},I.value))),T=b();r({focus(){var e;null===(e=T.value)||void 0===e||e.focus()},blur(){var e;null===(e=T.value)||void 0===e||e.blur()}});const z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i("update:value",t[0]),i("change",...t),a.onFieldChange()},D=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i("blur",...t),a.onFieldBlur()},R=n((()=>void 0!==e.showArrow?e.showArrow:e.loading||!e.multiple)),B=n((()=>void 0!==e.placement?e.placement:"rtl"===v.value?"bottomRight":"bottomLeft"));return()=>{var t,n;const{notFoundContent:r=(null===(t=l.notFoundContent)||void 0===t?void 0:t.call(l)),expandIcon:i=(null===(n=l.expandIcon)||void 0===n?void 0:n.call(l)),multiple:f,bordered:g,allowClear:y,choiceTransitionName:b,transitionName:x,id:O=a.id.value}=e,N=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["notFoundContent","expandIcon","multiple","bordered","allowClear","choiceTransitionName","transitionName","id"]),F=r||h("Cascader");let H=i;i||(H=j.value?$(xb,null,null):$(Pg,null,null));const L=$("span",{class:`${w.value}-menu-item-loading-icon`},[$(kd,{spin:!0},null)]),{suffixIcon:_,removeIcon:W,clearIcon:V}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{loading:n,multiple:o,prefixCls:r,hasFeedback:l,feedbackIcon:i,showArrow:a}=e,s=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),u=e.clearIcon||t.clearIcon&&t.clearIcon(),d=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),p=e.removeIcon||t.removeIcon&&t.removeIcon(),f=u??$(Nd,null,null),v=e=>$(c,null,[!1!==a&&e,l&&i]);let m=null;if(void 0!==s)m=v(s);else if(n)m=v($(kd,{spin:!0},null));else{const e=`${r}-suffix`;m=t=>{let{open:n,showSearch:o}=t;return v($(n&&o?_d:$d,{class:e},null))}}let h=null;h=void 0!==d?d:o?$(jd,null,null):null;let g=null;return g=void 0!==p?p:$(zd,null,null),{clearIcon:f,suffixIcon:m,itemIcon:h,removeIcon:g}}(De(De({},e),{hasFeedback:s.hasFeedback,feedbackIcon:s.feedbackIcon,multiple:f,prefixCls:w.value,showArrow:R.value}),l);return E(P($(gb,ze(ze(ze({},N),o),{},{id:O,prefixCls:w.value,class:[d.value,{[`${w.value}-lg`]:"large"===S.value,[`${w.value}-sm`]:"small"===S.value,[`${w.value}-rtl`]:j.value,[`${w.value}-borderless`]:!g,[`${w.value}-in-form-item`]:s.isFormItemInput},Qd(w.value,u.value,s.hasFeedback),C.value,o.class,I.value],disabled:k.value,direction:v.value,placement:B.value,notFoundContent:F,allowClear:y,showSearch:A.value,expandIcon:H,inputIcon:_,removeIcon:W,clearIcon:V,loadingIcon:L,checkable:!!f,dropdownClassName:M.value,dropdownPrefixCls:d.value,choiceTransitionName:du(p.value,"",b),transitionName:du(p.value,su(B.value),x),getPopupContainer:null==m?void 0:m.value,customSlots:De(De({},l),{checkable:()=>$("span",{class:`${d.value}-checkbox-inner`},null)}),tagRender:e.tagRender||l.tagRender,displayRender:e.displayRender||l.displayRender,maxTagPlaceholder:e.maxTagPlaceholder||l.maxTagPlaceholder,showArrow:s.hasFeedback||e.showArrow,onChange:z,onBlur:D,ref:T}),l)))}}}),lx=le(De(rx,{SHOW_CHILD:qy,SHOW_PARENT:Ky}));let ix=De({},Xt.Modal);const ax="internalMark",sx=l({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;wn(e.ANT_MARK__===ax);const o=v({antLocale:De(De({},e.locale),{exist:!0}),ANT_MARK__:ax});return r("localeData",o),i((()=>e.locale),(e=>{(function(e){ix=e?De(De({},ix),e):De({},Xt.Modal)})(e&&e.Modal),o.antLocale=De(De({},e),{exist:!0})}),{immediate:!0}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});sx.install=function(e){return e.component(sx.name,sx),e};const ux=le(sx),cx=l({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let o,{attrs:r,slots:l}=t,a=!1;const s=n((()=>void 0===e.duration?4.5:e.duration)),u=()=>{s.value&&!a&&(o=setTimeout((()=>{d()}),1e3*s.value))},c=()=>{o&&(clearTimeout(o),o=null)},d=t=>{t&&t.stopPropagation(),c();const{onClose:n,noticeKey:o}=e;n&&n(o)};return h((()=>{u()})),y((()=>{a=!0,c()})),i([s,()=>e.updateMark,()=>e.visible],((e,t)=>{let[n,o,r]=e,[l,i,a]=t;(n!==l||o!==i||r!==a&&a)&&(c(),u())}),{flush:"post"}),()=>{var t,n;const{prefixCls:o,closable:i,closeIcon:a=(null===(t=l.closeIcon)||void 0===t?void 0:t.call(l)),onClick:s,holder:p}=e,{class:f,style:v}=r,m=`${o}-notice`,h=Object.keys(r).reduce(((e,t)=>((t.startsWith("data-")||t.startsWith("aria-")||"role"===t)&&(e[t]=r[t]),e)),{}),g=$("div",ze({class:Ue(m,f,{[`${m}-closable`]:i}),style:v,onMouseenter:c,onMouseleave:u,onClick:s},h),[$("div",{class:`${m}-content`},[null===(n=l.default)||void 0===n?void 0:n.call(l)]),i?$("a",{tabindex:0,onClick:d,class:`${m}-close`},[a||$("span",{class:`${m}-close-x`},null)]):null]);return p?$(T,{to:p},{default:()=>g}):g}}});let dx=0;const px=Date.now();function fx(){const e=dx;return dx+=1,`rcNotification_${px}_${e}`}const vx=l({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId"],setup(e,t){let{attrs:o,expose:r,slots:l}=t;const i=new Map,a=b([]),s=n((()=>{const{prefixCls:t,animation:n="fade"}=e;let o=e.transitionName;return!o&&n&&(o=`${t}-${n}`),cu(o)})),u=e=>{a.value=B(a.value).filter((t=>{let{notice:{key:n,userPassKey:o}}=t;return(o||n)!==e}))};return r({add:(t,n)=>{const o=t.key||fx(),r=De(De({},t),{key:o}),{maxCount:l}=e,i=a.value.map((e=>e.notice.key)).indexOf(o),s=a.value.concat();-1!==i?s.splice(i,1,{notice:r,holderCallback:n}):(l&&a.value.length>=l&&(r.key=s[0].notice.key,r.updateMark=fx(),r.userPassKey=o,s.shift()),s.push({notice:r,holderCallback:n})),a.value=s},remove:u,notices:a}),()=>{var t;const{prefixCls:n,closeIcon:r=(null===(t=l.closeIcon)||void 0===t?void 0:t.call(l,{prefixCls:n}))}=e,c=a.value.map(((t,o)=>{let{notice:l,holderCallback:s}=t;const c=o===a.value.length-1?l.updateMark:void 0,{key:d,userPassKey:p}=l,{content:f}=l,v=De(De(De({prefixCls:n,closeIcon:"function"==typeof r?r({prefixCls:n}):r},l),l.props),{key:d,noticeKey:p||d,updateMark:c,onClose:e=>{var t;u(e),null===(t=l.onClose)||void 0===t||t.call(l)},onClick:l.onClick});return s?$("div",{key:d,class:`${n}-hook-holder`,ref:e=>{typeof d>"u"||(e?(i.set(d,e),s(e,v)):i.delete(d))}},null):$(cx,ze(ze({},v),{},{class:Ue(v.class,e.hashId)}),{default:()=>["function"==typeof f?f({prefixCls:n}):f]})})),d={[n]:1,[o.class]:!!o.class,[e.hashId]:!0};return $("div",{class:d,style:o.style||{top:"65px",left:"50%"}},[$(H,ze({tag:"div"},s.value),{default:()=>[c]})])}}});vx.newInstance=function(e,t){const o=e||{},{name:r="notification",getContainer:i,appContext:a,prefixCls:u,rootPrefixCls:c,transitionName:d,hasTransitionName:p,useStyle:f}=o,v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),m=document.createElement("div");i?i().appendChild(m):document.body.appendChild(m);const g=l({compatConfig:{MODE:3},name:"NotificationWrapper",setup(e,o){let{attrs:l}=o;const i=s(),a=n((()=>m$.getPrefixCls(r,u))),[,v]=f(a);return h((()=>{t({notice(e){var t;null===(t=i.value)||void 0===t||t.add(e)},removeNotice(e){var t;null===(t=i.value)||void 0===t||t.remove(e)},destroy(){N(null,m),m.parentNode&&m.parentNode.removeChild(m)},component:i})})),()=>{const e=m$,t=e.getRootPrefixCls(c,a.value),n=p?d:`${a.value}-${d}`;return $(y$,ze(ze({},e),{},{prefixCls:t}),{default:()=>[$(vx,ze(ze({ref:i},l),{},{prefixCls:a.value,transitionName:n,hashId:v.value}),null)]})}}}),y=$(g,v);y.appContext=a||y.appContext,N(y,m)};let mx=0;const hx=Date.now();function gx(){const e=mx;return mx+=1,`rcNotification_${hx}_${e}`}const yx=l({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:o,slots:r}=t;const l=new Map,a=n((()=>e.notices)),s=n((()=>{let t=e.transitionName;if(!t&&e.animation)switch(typeof e.animation){case"string":t=e.animation;break;case"function":t=e.animation().name;break;case"object":t=e.animation.name;break;default:t=`${e.prefixCls}-fade`}return cu(t)})),u=b({});i(a,(()=>{const t={};Object.keys(u.value).forEach((e=>{t[e]=[]})),e.notices.forEach((e=>{const{placement:n="topRight"}=e.notice;n&&(t[n]=t[n]||[],t[n].push(e))})),u.value=t}));const c=n((()=>Object.keys(u.value)));return()=>{var t;const{prefixCls:n,closeIcon:i=(null===(t=r.closeIcon)||void 0===t?void 0:t.call(r,{prefixCls:n}))}=e,d=c.value.map((t=>{var r,c;const d=u.value[t],p=null===(r=e.getClassName)||void 0===r?void 0:r.call(e,t),f=null===(c=e.getStyles)||void 0===c?void 0:c.call(e,t),v=d.map(((t,o)=>{let{notice:r,holderCallback:s}=t;const u=o===a.value.length-1?r.updateMark:void 0,{key:c,userPassKey:d}=r,{content:p}=r,f=De(De(De({prefixCls:n,closeIcon:"function"==typeof i?i({prefixCls:n}):i},r),r.props),{key:c,noticeKey:d||c,updateMark:u,onClose:t=>{var n;(t=>{e.remove(t)})(t),null===(n=r.onClose)||void 0===n||n.call(r)},onClick:r.onClick});return s?$("div",{key:c,class:`${n}-hook-holder`,ref:e=>{typeof c>"u"||(e?(l.set(c,e),s(e,f)):l.delete(c))}},null):$(cx,ze(ze({},f),{},{class:Ue(f.class,e.hashId)}),{default:()=>["function"==typeof p?p({prefixCls:n}):p]})})),m={[n]:1,[`${n}-${t}`]:1,[o.class]:!!o.class,[e.hashId]:!0,[p]:!!p};return $("div",{key:t,class:m,style:o.style||f||{top:"65px",left:"50%"}},[$(H,ze(ze({tag:"div"},s.value),{},{onAfterLeave:function(){var n;d.length>0||(Reflect.deleteProperty(u.value,t),null===(n=e.onAllRemoved)||void 0===n||n.call(e))}}),{default:()=>[v]})])}));return $(bu,{getContainer:e.getContainer},{default:()=>[d]})}}});const bx=()=>document.body;let wx=0;function xx(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{getContainer:t=bx,motion:n,prefixCls:o,maxCount:r,getClassName:l,getStyles:a,onAllRemoved:u}=e,c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),d=s([]),p=s(),f=e=>{d.value=d.value.filter((t=>{let{notice:{key:n,userPassKey:o}}=t;return(o||n)!==e}))},v=s([]),m={open:e=>{const t=function(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.forEach((t=>{t&&Object.keys(t).forEach((n=>{const o=t[n];void 0!==o&&(e[n]=o)}))})),e}(c,e);(null===t.key||void 0===t.key)&&(t.key=`vc-notification-${wx}`,wx+=1),v.value=[...v.value,{type:"open",config:t}]},close:e=>{v.value=[...v.value,{type:"close",key:e}]},destroy:()=>{v.value=[...v.value,{type:"destroy"}]}};return i(v,(()=>{v.value.length&&(v.value.forEach((e=>{switch(e.type){case"open":((e,t)=>{const n=e.key||gx(),o=De(De({},e),{key:n}),l=d.value.map((e=>e.notice.key)).indexOf(n),i=d.value.concat();-1!==l?i.splice(l,1,{notice:o,holderCallback:t}):(r&&d.value.length>=r&&(o.key=i[0].notice.key,o.updateMark=gx(),o.userPassKey=n,i.shift()),i.push({notice:o,holderCallback:t})),d.value=i})(e.config);break;case"close":f(e.key);break;case"destroy":d.value=[]}})),v.value=[])})),[m,()=>$(yx,{ref:p,prefixCls:o,maxCount:r,notices:d.value,remove:f,getClassName:l,getStyles:a,animation:n,hashId:e.hashId,onAllRemoved:u,getContainer:t},null)]}const $x=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:o,colorBgElevated:r,colorSuccess:l,colorError:i,colorWarning:a,colorInfo:s,fontSizeLG:u,motionEaseInOutCirc:c,motionDurationSlow:d,marginXS:p,paddingXS:f,borderRadiusLG:v,zIndexPopup:m,messageNoticeContentPadding:h}=e,g=new jo("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),y=new jo("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:De(De({},Ir(e)),{position:"fixed",top:p,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:g,animationDuration:d,animationPlayState:"paused",animationTimingFunction:c},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:c},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:f,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:u},[`${t}-notice-content`]:{display:"inline-block",padding:h,background:r,borderRadius:v,boxShadow:o,pointerEvents:"all"},[`${t}-success ${n}`]:{color:l},[`${t}-error ${n}`]:{color:i},[`${t}-warning ${n}`]:{color:a},[`\n ${t}-info ${n},\n ${t}-loading ${n}`]:{color:s}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},Cx=Tr("Message",(e=>{const t=Rr(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[$x(t)]}),(e=>({height:150,zIndexPopup:e.zIndexPopupBase+10}))),Sx={info:$(Dm,null,null),success:$(Pm,null,null),error:$(Nd,null,null),warning:$(Am,null,null),loading:$(kd,null,null)},Ox=l({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var t;return $("div",{class:Ue(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||Sx[e.type],$("span",null,[null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}});l({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","class","type","icon","content"],setup(e,t){let{slots:o,attrs:r}=t;var l;const{getPrefixCls:i}=ye(),a=n((()=>e.prefixCls||i("message"))),[,s]=Cx(a);return $(cx,ze(ze({},r),{},{prefixCls:a.value,class:Ue(s.value,`${a.value}-notice-pure-panel`),noticeKey:"pure",duration:null}),{default:()=>[$(Ox,{prefixCls:a.value,type:e.type,icon:e.icon},{default:()=>[null===(l=o.default)||void 0===l?void 0:l.call(o)]})]})}});const kx=l({name:"Holder",inheritAttrs:!1,props:["top","prefixCls","getContainer","maxCount","duration","rtl","transitionName","onAllRemoved","animation","staticGetContainer"],setup(e,t){let{expose:o}=t;var r,l;const{getPrefixCls:i,getPopupContainer:a}=tl("message",e),s=n((()=>i("message",e.prefixCls))),[,u]=Cx(s),c=$("span",{class:`${s.value}-close-x`},[$(zd,{class:`${s.value}-close-icon`},null)]),[d,p]=xx({getStyles:()=>{var t;const n=null!==(t=e.top)&&void 0!==t?t:8;return{left:"50%",transform:"translateX(-50%)",top:"number"==typeof n?`${n}px`:n}},prefixCls:s.value,getClassName:()=>Ue(u.value,e.rtl?`${s.value}-rtl`:""),motion:()=>{var t;return ql({prefixCls:s.value,animation:null!==(t=e.animation)&&void 0!==t?t:"move-up",transitionName:e.transitionName})},closable:!1,closeIcon:c,duration:null!==(r=e.duration)&&void 0!==r?r:3,getContainer:null!==(l=e.staticGetContainer)&&void 0!==l?l:a.value,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return o(De(De({},d),{prefixCls:s,hashId:u})),p}});let Px=0;function Ix(e){const t=s(null),n=Symbol("messageHolderKey"),o=e=>{var n;null===(n=t.value)||void 0===n||n.close(e)},r=e=>{if(!t.value){const e=()=>{};return e.then=()=>{},e}const{open:n,prefixCls:r,hashId:l}=t.value,i=`${r}-notice`,{content:a,icon:s,type:u,key:c,class:d,onClose:p}=e,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["content","icon","type","key","class","onClose"]);let v=c;return null==v&&(Px+=1,v=`antd-message-${Px}`),function(e){let t;const n=new Promise((n=>{t=e((()=>{n(!0)}))})),o=()=>{null==t||t()};return o.then=(e,t)=>n.then(e,t),o.promise=n,o}((e=>(n(De(De({},f),{key:v,content:()=>$(Ox,{prefixCls:r,type:u,icon:"function"==typeof s?s():s},{default:()=>["function"==typeof a?a():a]}),placement:"top",class:Ue(u&&`${i}-${u}`,l,d),onClose:()=>{null==p||p(),e()}})),()=>{o(v)})))},l={open:r,destroy:e=>{var n;void 0!==e?o(e):null===(n=t.value)||void 0===n||n.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{l[e]=(t,n,o)=>{let l,i,a;l=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?a=n:(i=n,a=o);const s=De(De({onClose:a,duration:i},l),{type:e});return r(s)}})),[l,()=>$(kx,ze(ze({key:n},e),{},{ref:t}),null)]}let Ex,jx,Ax,Mx=3,Tx=1,zx="",Dx="move-up",Rx=!1,Bx=()=>document.body,Nx=!1;const Fx={info:Dm,success:Pm,error:Nd,warning:Am,loading:kd},Hx=Object.keys(Fx);const Lx={open:function(e){const t=void 0!==e.duration?e.duration:Mx,n=e.key||Tx++,o=new Promise((o=>{const r=()=>("function"==typeof e.onClose&&e.onClose(),o(!0));!function(e,t){jx?t(jx):vx.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||zx,rootPrefixCls:e.rootPrefixCls,transitionName:Dx,hasTransitionName:Rx,style:{top:Ex},getContainer:Bx||e.getPopupContainer,maxCount:Ax,name:"message",useStyle:Cx},(e=>{jx?t(jx):(jx=e,t(e))}))}(e,(o=>{o.notice({key:n,duration:t,style:e.style||{},class:e.class,content:t=>{let{prefixCls:n}=t;const o=Fx[e.type],r=o?$(o,null,null):"",l=Ue(`${n}-custom-content`,{[`${n}-${e.type}`]:e.type,[`${n}-rtl`]:!0===Nx});return $("div",{class:l},["function"==typeof e.icon?e.icon():e.icon||r,$("span",null,["function"==typeof e.content?e.content():e.content])])},onClose:r,onClick:e.onClick})}))})),r=()=>{jx&&jx.removeNotice(n)};return r.then=(e,t)=>o.then(e,t),r.promise=o,r},config:function(e){void 0!==e.top&&(Ex=e.top,jx=null),void 0!==e.duration&&(Mx=e.duration),void 0!==e.prefixCls&&(zx=e.prefixCls),void 0!==e.getContainer&&(Bx=e.getContainer,jx=null),void 0!==e.transitionName&&(Dx=e.transitionName,jx=null,Rx=!0),void 0!==e.maxCount&&(Ax=e.maxCount,jx=null),void 0!==e.rtl&&(Nx=e.rtl)},destroy(e){if(jx)if(e){const{removeNotice:t}=jx;t(e)}else{const{destroy:e}=jx;e(),jx=null}}};function _x(e,t){e[t]=(n,o,r)=>function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(n)?e.open(De(De({},n),{type:t})):("function"==typeof o&&(r=o,o=void 0),e.open({content:n,duration:o,type:t,onClose:r}))}Hx.forEach((e=>_x(Lx,e))),Lx.warn=Lx.warning,Lx.useMessage=function(e){return Ix(e)};const Wx=e=>{const{componentCls:t,width:n,notificationMarginEdge:o}=e,r=new jo("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),l=new jo("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),i=new jo("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:r}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:o,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}}}},Vx=e=>{const{iconCls:t,componentCls:n,boxShadowSecondary:o,fontSizeLG:r,notificationMarginBottom:l,borderRadiusLG:i,colorSuccess:a,colorInfo:s,colorWarning:u,colorError:c,colorTextHeading:d,notificationBg:p,notificationPadding:f,notificationMarginEdge:v,motionDurationMid:m,motionEaseInOut:h,fontSize:g,lineHeight:y,width:b,notificationIconSize:w}=e,x=`${n}-notice`,$=new jo("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:b},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),C=new jo("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:l,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:De(De(De(De({},Ir(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:v,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:h,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:h,animationFillMode:"both",animationDuration:m,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:$,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:C,animationPlayState:"running"}}),Wx(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[x]:{position:"relative",width:b,maxWidth:`calc(100vw - ${2*v}px)`,marginBottom:l,marginInlineStart:"auto",padding:f,overflow:"hidden",lineHeight:y,wordWrap:"break-word",background:p,borderRadius:i,boxShadow:o,[`${n}-close-icon`]:{fontSize:g,cursor:"pointer"},[`${x}-message`]:{marginBottom:e.marginXS,color:d,fontSize:r,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:g},[`&${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+w,fontSize:r},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.marginSM+w,fontSize:g},[`${x}-icon`]:{position:"absolute",fontSize:w,lineHeight:0,[`&-success${t}`]:{color:a},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:c}},[`${x}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${x}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${x}-pure-panel`]:{margin:0}}]},Xx=Tr("Notification",(e=>{const t=e.paddingMD,n=e.paddingLG,o=Rr(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG});return[Vx(o)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})));function Kx(e,t){return t||$("span",{class:`${e}-close-x`},[$(zd,{class:`${e}-close-icon`},null)])}$(Dm,null,null),$(Pm,null,null),$(Nd,null,null),$(Am,null,null),$(kd,null,null);const qx={success:Pm,info:Dm,error:Nd,warning:Am};function Gx(e){let{prefixCls:t,icon:n,type:o,message:r,description:l,btn:i}=e,a=null;if(n)a=$("span",{class:`${t}-icon`},[Ge(n)]);else if(o){a=$(qx[o],{class:`${t}-icon ${t}-icon-${o}`},null)}return $("div",{class:Ue({[`${t}-with-icon`]:a}),role:"alert"},[a,$("div",{class:`${t}-message`},[r]),$("div",{class:`${t}-description`},[l]),i&&$("div",{class:`${t}-btn`},[i])])}function Ux(e,t,n){let o;switch(t="number"==typeof t?`${t}px`:t,n="number"==typeof n?`${n}px`:n,e){case"top":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":o={left:0,top:t,bottom:"auto"};break;case"topRight":o={right:0,top:t,bottom:"auto"};break;case"bottom":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":o={left:0,top:"auto",bottom:n};break;default:o={right:0,top:"auto",bottom:n}}return o}l({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","icon","type","message","description","btn","closeIcon"],setup(e){const{getPrefixCls:t}=tl("notification",e),o=n((()=>e.prefixCls||t("notification"))),r=n((()=>`${o.value}-notice`)),[,l]=Xx(o);return()=>$(cx,ze(ze({},e),{},{prefixCls:o.value,class:Ue(l.value,`${r.value}-pure-panel`),noticeKey:"pure",duration:null,closable:e.closable,closeIcon:Kx(o.value,e.closeIcon)}),{default:()=>[$(Gx,{prefixCls:r.value,icon:e.icon,type:e.type,message:e.message,description:e.description,btn:e.btn},null)]})}});const Yx=l({name:"Holder",inheritAttrs:!1,props:["prefixCls","class","type","icon","content","onAllRemoved"],setup(e,t){let{expose:o}=t;const{getPrefixCls:r,getPopupContainer:l}=tl("notification",e),i=n((()=>e.prefixCls||r("notification"))),[,a]=Xx(i),[s,u]=xx({prefixCls:i.value,getStyles:t=>{var n,o;return Ux(t,null!==(n=e.top)&&void 0!==n?n:24,null!==(o=e.bottom)&&void 0!==o?o:24)},getClassName:()=>Ue(a.value,{[`${i.value}-rtl`]:e.rtl}),motion:()=>function(e){return{name:`${e}-fade`}}(i.value),closable:!0,closeIcon:Kx(i.value),duration:4.5,getContainer:()=>{var t,n;return(null===(t=e.getPopupContainer)||void 0===t?void 0:t.call(e))||(null===(n=l.value)||void 0===n?void 0:n.call(l))||document.body},maxCount:e.maxCount,hashId:a.value,onAllRemoved:e.onAllRemoved});return o(De(De({},s),{prefixCls:i.value,hashId:a})),u}});function Zx(e){const t=s(null),n=Symbol("notificationHolderKey"),o=e=>{if(!t.value)return;const{open:n,prefixCls:o,hashId:r}=t.value,l=`${o}-notice`,{message:i,description:a,icon:s,type:u,btn:c,class:d}=e,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["message","description","icon","type","btn","class"]);return n(De(De({placement:"topRight"},p),{content:()=>$(Gx,{prefixCls:l,icon:"function"==typeof s?s():s,type:u,message:"function"==typeof i?i():i,description:"function"==typeof a?a():a,btn:"function"==typeof c?c():c},null),class:Ue(u&&`${l}-${u}`,r,d)}))},r={open:o,destroy:e=>{var n,o;void 0!==e?null===(n=t.value)||void 0===n||n.close(e):null===(o=t.value)||void 0===o||o.destroy()}};return["success","info","warning","error"].forEach((e=>{r[e]=t=>o(De(De({},t),{type:e}))})),[r,()=>$(Yx,ze(ze({key:n},e),{},{ref:t}),null)]}const Qx={};let Jx,e$=4.5,t$="24px",n$="24px",o$="",r$="topRight",l$=()=>document.body,i$=null,a$=!1;const s$={success:dm,info:bm,error:Cm,warning:mm};const u$={open:function(e){const{icon:t,type:n,description:o,message:r,btn:l}=e,i=void 0===e.duration?e$:e.duration;!function(e,t){let{prefixCls:n,placement:o=r$,getContainer:r=l$,top:l,bottom:i,closeIcon:a=i$,appContext:s}=e;const{getPrefixCls:u}=g$(),c=u("notification",n||o$),d=`${c}-${o}-${a$}`,p=Qx[d];if(p)return void Promise.resolve(p).then((e=>{t(e)}));const f=Ue(`${c}-${o}`,{[`${c}-rtl`]:!0===a$});vx.newInstance({name:"notification",prefixCls:n||o$,useStyle:Xx,class:f,style:Ux(o,l??t$,i??n$),appContext:s,getContainer:r,closeIcon:e=>{let{prefixCls:t}=e;return $("span",{class:`${t}-close-x`},[Ge(a,{},$(zd,{class:`${t}-close-icon`},null))])},maxCount:Jx,hasTransitionName:!0},(e=>{Qx[d]=e,t(e)}))}(e,(a=>{a.notice({content:e=>{let{prefixCls:i}=e;const a=`${i}-notice`;let s=null;if(t)s=()=>$("span",{class:`${a}-icon`},[Ge(t)]);else if(n){const e=s$[n];s=()=>$(e,{class:`${a}-icon ${a}-icon-${n}`},null)}return $("div",{class:s?`${a}-with-icon`:""},[s&&s(),$("div",{class:`${a}-message`},[!o&&s?$("span",{class:`${a}-message-single-line-auto-margin`},null):null,Ge(r)]),$("div",{class:`${a}-description`},[Ge(o)]),l?$("span",{class:`${a}-btn`},[Ge(l)]):null])},duration:i,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})}))},close(e){Object.keys(Qx).forEach((t=>Promise.resolve(Qx[t]).then((t=>{t.removeNotice(e)}))))},config:function(e){const{duration:t,placement:n,bottom:o,top:r,getContainer:l,closeIcon:i,prefixCls:a}=e;void 0!==a&&(o$=a),void 0!==t&&(e$=t),void 0!==n&&(r$=n),void 0!==o&&(n$="number"==typeof o?`${o}px`:o),void 0!==r&&(t$="number"==typeof r?`${r}px`:r),void 0!==l&&(l$=l),void 0!==i&&(i$=i),void 0!==e.rtl&&(a$=e.rtl),void 0!==e.maxCount&&(Jx=e.maxCount)},destroy(){Object.keys(Qx).forEach((e=>{Promise.resolve(Qx[e]).then((e=>{e.destroy()})),delete Qx[e]}))}};["success","info","warning","error"].forEach((e=>{u$[e]=t=>u$.open(De(De({},t),{type:e}))})),u$.warn=u$.warning,u$.useNotification=function(e){return Zx(e)};const c$=`-ant-${Date.now()}-${Math.random()}`;function d$(e,t){const n=function(e,t){const n={},o=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},r=(e,t)=>{const r=new Qo(e),l=lr(r.toRgbString());n[`${t}-color`]=o(r),n[`${t}-color-disabled`]=l[1],n[`${t}-color-hover`]=l[4],n[`${t}-color-active`]=l[6],n[`${t}-color-outline`]=r.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=l[0],n[`${t}-color-deprecated-border`]=l[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new Qo(t.primaryColor),l=lr(e.toRgbString());l.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=o(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=o(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=o(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=o(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=o(e,(e=>e.setAlpha(.12*e.getAlpha())));const i=new Qo(l[0]);n["primary-color-active-deprecated-f-30"]=o(i,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=o(i,(e=>e.darken(2)))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);ln()&&hn(n,`${c$}-dynamic-theme`)}function p$(){return m$.prefixCls||"ant"}function f$(){return m$.iconPrefixCls||ve}const v$=v({}),m$=v({});let h$;w((()=>{De(m$,v$),m$.prefixCls=p$(),m$.iconPrefixCls=f$(),m$.getPrefixCls=(e,t)=>t||(e?`${m$.prefixCls}-${e}`:m$.prefixCls),m$.getRootPrefixCls=()=>m$.prefixCls?m$.prefixCls:p$()}));const g$=()=>({getPrefixCls:(e,t)=>t||(e?`${p$()}-${e}`:p$()),getIconPrefixCls:f$,getRootPrefixCls:()=>m$.prefixCls?m$.prefixCls:p$()}),y$=l({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:{iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:ae(),input:ae(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:ae(),pageHeader:ae(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:ae(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:ae(),pagination:ae(),theme:ae(),select:ae(),wave:ae()},setup(e,t){let{slots:o}=t;const l=ye(),a=n((()=>e.iconPrefixCls||l.iconPrefixCls.value||ve)),s=n((()=>a.value!==l.iconPrefixCls.value)),u=n((()=>{var t;return e.csp||(null===(t=l.csp)||void 0===t?void 0:t.value)})),c=(e=>{const[t,o]=Wr();return Eo(n((()=>({theme:t.value,token:o.value,hashId:"",path:["ant-design-icons",e.value]}))),(()=>[{[`.${e.value}`]:De(De({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}]))})(a),d=function(e,t){const o=n((()=>(null==e?void 0:e.value)||{})),r=n((()=>!1!==o.value.inherit&&null!=t&&t.value?t.value:Fr));return n((()=>{if(null==e||!e.value)return null==t?void 0:t.value;const n=De({},r.value.components);return Object.keys(e.value.components||{}).forEach((t=>{n[t]=De(De({},n[t]),e.value.components[t])})),De(De(De({},r.value),o.value),{token:De(De({},r.value.token),o.value.token),components:n})}))}(n((()=>e.theme)),n((()=>{var e;return null===(e=l.theme)||void 0===e?void 0:e.value}))),p=n((()=>{var t,n;return null!==(t=e.autoInsertSpaceInButton)&&void 0!==t?t:null===(n=l.autoInsertSpaceInButton)||void 0===n?void 0:n.value})),f=n((()=>{var t;return e.locale||(null===(t=l.locale)||void 0===t?void 0:t.value)}));i(f,(()=>{v$.locale=f.value}),{immediate:!0});const v=n((()=>{var t;return e.direction||(null===(t=l.direction)||void 0===t?void 0:t.value)})),m=n((()=>{var t,n;return null!==(t=e.space)&&void 0!==t?t:null===(n=l.space)||void 0===n?void 0:n.value})),h=n((()=>{var t,n;return null!==(t=e.virtual)&&void 0!==t?t:null===(n=l.virtual)||void 0===n?void 0:n.value})),g=n((()=>{var t,n;return null!==(t=e.dropdownMatchSelectWidth)&&void 0!==t?t:null===(n=l.dropdownMatchSelectWidth)||void 0===n?void 0:n.value})),y=n((()=>{var t;return void 0!==e.getTargetContainer?e.getTargetContainer:null===(t=l.getTargetContainer)||void 0===t?void 0:t.value})),b=n((()=>{var t;return void 0!==e.getPopupContainer?e.getPopupContainer:null===(t=l.getPopupContainer)||void 0===t?void 0:t.value})),x=n((()=>{var t;return void 0!==e.pageHeader?e.pageHeader:null===(t=l.pageHeader)||void 0===t?void 0:t.value})),C=n((()=>{var t;return void 0!==e.input?e.input:null===(t=l.input)||void 0===t?void 0:t.value})),S=n((()=>{var t;return void 0!==e.pagination?e.pagination:null===(t=l.pagination)||void 0===t?void 0:t.value})),O=n((()=>{var t;return void 0!==e.form?e.form:null===(t=l.form)||void 0===t?void 0:t.value})),k=n((()=>{var t;return void 0!==e.select?e.select:null===(t=l.select)||void 0===t?void 0:t.value})),P=n((()=>e.componentSize)),I=n((()=>e.componentDisabled)),E=n((()=>{var t,n;return null!==(t=e.wave)&&void 0!==t?t:null===(n=l.wave)||void 0===n?void 0:n.value})),j={csp:u,autoInsertSpaceInButton:p,locale:f,direction:v,space:m,virtual:h,dropdownMatchSelectWidth:g,getPrefixCls:(t,n)=>{const{prefixCls:o="ant"}=e;if(n)return n;const r=o||l.getPrefixCls("");return t?`${r}-${t}`:r},iconPrefixCls:a,theme:n((()=>{var e,t;return null!==(e=d.value)&&void 0!==e?e:null===(t=l.theme)||void 0===t?void 0:t.value})),renderEmpty:t=>(e.renderEmpty||o.renderEmpty||l.renderEmpty||Zr)(t),getTargetContainer:y,getPopupContainer:b,pageHeader:x,input:C,pagination:S,form:O,select:k,componentSize:P,componentDisabled:I,transformCellText:n((()=>e.transformCellText)),wave:E},A=n((()=>{const e=d.value||{},{algorithm:t,token:n}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["algorithm","token"]),r=t&&(!Array.isArray(t)||t.length>0)?Sn(t):void 0;return De(De({},o),{theme:r,token:De(De({},fr),n)})})),M=n((()=>{var t,n;let o={};return f.value&&(o=(null===(t=f.value.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(n=Xt.Form)||void 0===n?void 0:n.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(o=De(De({},o),e.form.validateMessages)),o}));(e=>{r(he,e)})(j),(e=>{r(me,e)})({validateMessages:M}),el(P),Lt(I);return w((()=>{v.value&&(Lx.config({rtl:"rtl"===v.value}),u$.config({rtl:"rtl"===v.value}))})),()=>$(Kt,{children:(t,n,r)=>(t=>{var n,r;let l=s.value?c(null===(n=o.default)||void 0===n?void 0:n.call(o)):null===(r=o.default)||void 0===r?void 0:r.call(o);if(e.theme){const e=function(){return l}();l=$(_r,{value:A.value},{default:()=>[e]})}return $(ux,{locale:f.value||t,ANT_MARK__:ax},{default:()=>[l]})})(r)},null)}});y$.config=e=>{h$&&h$(),h$=w((()=>{De(v$,v(e)),De(m$,v(e))})),e.theme&&d$(p$(),e.theme)},y$.install=function(e){e.component(y$.name,y$)},jg.Button=Cg,jg.install=function(e){return e.component(jg.name,jg),e.component(Cg.name,Cg),e};const b$=e=>null!=e&&(!Array.isArray(e)||Pt(e).length);function w$(e){return b$(e.prefix)||b$(e.suffix)||b$(e.allowClear)}function x$(e){return b$(e.addonBefore)||b$(e.addonAfter)}function $$(e){return typeof e>"u"||null===e?"":String(e)}function C$(e,t,n,o){if(!n)return;const r=t;if("click"===t.type){Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0});const t=e.cloneNode(!0);return r.target=t,r.currentTarget=t,t.value="",void n(r)}if(void 0!==o)return Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0}),r.target=e,r.currentTarget=e,e.value=o,void n(r);n(r)}function S$(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}const O$=()=>De(De({},{addonBefore:Rl.any,addonAfter:Rl.any,prefix:Rl.any,suffix:Rl.any,clearIcon:Rl.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:Rl.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),k$=()=>De(De({},O$()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:pe("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),P$=l({name:"BaseInput",inheritAttrs:!1,props:O$(),setup(e,t){let{slots:n,attrs:o}=t;const r=b(),l=t=>{var n;if(null!==(n=r.value)&&void 0!==n&&n.contains(t.target)){const{triggerFocus:t}=e;null==t||t()}},i=()=>{var t;const{allowClear:o,value:r,disabled:l,readonly:i,handleReset:a,suffix:s=n.suffix,prefixCls:u}=e;if(!o)return null;const c=!l&&!i&&r,d=`${u}-clear-icon`,p=(null===(t=n.clearIcon)||void 0===t?void 0:t.call(n))||"*";return $("span",{onClick:a,onMousedown:e=>e.preventDefault(),class:Ue({[`${d}-hidden`]:!c,[`${d}-has-suffix`]:!!s},d),role:"button",tabindex:-1},[p])};return()=>{var t,a;const{focused:s,value:u,disabled:c,allowClear:d,readonly:p,hidden:f,prefixCls:v,prefix:m=(null===(t=n.prefix)||void 0===t?void 0:t.call(n)),suffix:h=(null===(a=n.suffix)||void 0===a?void 0:a.call(n)),addonAfter:g=n.addonAfter,addonBefore:y=n.addonBefore,inputElement:b,affixWrapperClassName:w,wrapperClassName:x,groupClassName:C}=e;let S=ea(b,{value:u,hidden:f});if(w$({prefix:m,suffix:h,allowClear:d})){const e=`${v}-affix-wrapper`,t=Ue(e,{[`${e}-disabled`]:c,[`${e}-focused`]:s,[`${e}-readonly`]:p,[`${e}-input-with-clear-btn`]:h&&d&&u},!x$({addonAfter:g,addonBefore:y})&&o.class,w),n=(h||d)&&$("span",{class:`${v}-suffix`},[i(),h]);S=$("span",{class:t,style:o.style,hidden:!x$({addonAfter:g,addonBefore:y})&&f,onMousedown:l,ref:r},[m&&$("span",{class:`${v}-prefix`},[m]),ea(b,{style:null,value:u,hidden:null}),n])}if(x$({addonAfter:g,addonBefore:y})){const e=`${v}-group`,t=`${e}-addon`,n=Ue(`${v}-wrapper`,e,x),r=Ue(`${v}-group-wrapper`,o.class,C);return $("span",{class:r,style:o.style,hidden:f},[$("span",{class:n},[y&&$("span",{class:t},[y]),ea(S,{style:null,hidden:null}),g&&$("span",{class:t},[g])])])}return S}}});const I$=l({name:"VCInput",inheritAttrs:!1,props:k$(),setup(e,t){let{slots:o,attrs:r,expose:l,emit:a}=t;const u=s(void 0===e.value?e.defaultValue:e.value),d=s(!1),p=s(),f=s();i((()=>e.value),(()=>{u.value=e.value})),i((()=>e.disabled),(()=>{e.disabled&&(d.value=!1)}));const v=e=>{p.value&&S$(p.value.input,e)};l({focus:v,blur:()=>{var e;null===(e=p.value.input)||void 0===e||e.blur()},input:n((()=>{var e;return null===(e=p.value.input)||void 0===e?void 0:e.input})),stateValue:u,setSelectionRange:(e,t,n)=>{var o;null===(o=p.value.input)||void 0===o||o.setSelectionRange(e,t,n)},select:()=>{var e;null===(e=p.value.input)||void 0===e||e.select()}});const m=e=>{a("change",e)},g=(t,n)=>{u.value!==t&&(void 0===e.value?u.value=t:I((()=>{var e;p.value.input.value!==u.value&&(null===(e=f.value)||void 0===e||e.$forceUpdate())})),I((()=>{n&&n()})))},y=e=>{const{value:t}=e.target;if(u.value===t)return;const n=e.target.value;C$(p.value.input,e,m),g(n)},b=e=>{13===e.keyCode&&a("pressEnter",e),a("keydown",e)},w=e=>{d.value=!0,a("focus",e)},x=e=>{d.value=!1,a("blur",e)},C=e=>{C$(p.value.input,e,m),g("",(()=>{v()}))},S=()=>{var t,n;const{addonBefore:l=o.addonBefore,addonAfter:i=o.addonAfter,disabled:a,valueModifiers:s={},htmlSize:u,autocomplete:c,prefixCls:d,inputClassName:f,prefix:v=(null===(t=o.prefix)||void 0===t?void 0:t.call(o)),suffix:m=(null===(n=o.suffix)||void 0===n?void 0:n.call(o)),allowClear:h,type:g="text"}=e,C=De(De(De({},nl(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"])),r),{autocomplete:c,onChange:y,onInput:y,onFocus:w,onBlur:x,onKeydown:b,class:Ue(d,{[`${d}-disabled`]:a},f,!x$({addonAfter:i,addonBefore:l})&&!w$({prefix:v,suffix:m,allowClear:h})&&r.class),ref:p,key:"ant-input",size:u,type:g,lazy:e.lazy});return s.lazy&&delete C.onInput,C.autofocus||delete C.autofocus,$(Du,nl(C,["size"]),null)},O=()=>{var t;const{maxlength:n,suffix:r=(null===(t=o.suffix)||void 0===t?void 0:t.call(o)),showCount:l,prefixCls:i}=e,a=Number(n)>0;if(r||l){const e=[...$$(u.value)].length,t="object"==typeof l?l.formatter({count:e,maxlength:n}):`${e}${a?` / ${n}`:""}`;return $(c,null,[!!l&&$("span",{class:Ue(`${i}-show-count-suffix`,{[`${i}-show-count-has-suffix`]:!!r})},[t]),r])}return null};return h((()=>{})),()=>{const{prefixCls:t,disabled:n}=e,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","disabled"]);return $(P$,ze(ze(ze({},l),r),{},{ref:f,prefixCls:t,inputElement:S(),handleReset:C,value:$$(u.value),focused:d.value,triggerFocus:v,suffix:O(),disabled:n}),o)}}}),E$=()=>nl(k$(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),j$=()=>De(De({},nl(E$(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:ie(),onCompositionend:ie(),valueModifiers:Object});const A$=l({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:E$(),setup(e,t){let{slots:o,attrs:r,expose:l,emit:i}=t;const a=b(),s=Gd(),u=Yd.useInject(),d=n((()=>Jd(u.status,e.status))),{direction:p,prefixCls:f,size:v,autocomplete:m}=tl("input",e),{compactSize:g,compactItemClassnames:y}=rv(f,p),w=n((()=>g.value||v.value)),[C,S]=Fy(f),O=Ht();l({focus:e=>{var t;null===(t=a.value)||void 0===t||t.focus(e)},blur:()=>{var e;null===(e=a.value)||void 0===e||e.blur()},input:a,setSelectionRange:(e,t,n)=>{var o;null===(o=a.value)||void 0===o||o.setSelectionRange(e,t,n)},select:()=>{var e;null===(e=a.value)||void 0===e||e.select()}});const k=b([]),P=()=>{k.value.push(setTimeout((()=>{var e,t,n,o;null!==(e=a.value)&&void 0!==e&&e.input&&"password"===(null===(t=a.value)||void 0===t?void 0:t.input.getAttribute("type"))&&null!==(n=a.value)&&void 0!==n&&n.input.hasAttribute("value")&&(null===(o=a.value)||void 0===o||o.input.removeAttribute("value"))})))};h((()=>{P()})),F((()=>{k.value.forEach((e=>clearTimeout(e)))})),x((()=>{k.value.forEach((e=>clearTimeout(e)))}));const I=e=>{P(),i("blur",e),s.onFieldBlur()},E=e=>{P(),i("focus",e)},j=e=>{i("update:value",e.target.value),i("change",e),i("input",e),s.onFieldChange()};return()=>{var t,n,l,i,v,h;const{hasFeedback:g,feedbackIcon:b}=u,{allowClear:x,bordered:k=!0,prefix:P=(null===(t=o.prefix)||void 0===t?void 0:t.call(o)),suffix:A=(null===(n=o.suffix)||void 0===n?void 0:n.call(o)),addonAfter:M=(null===(l=o.addonAfter)||void 0===l?void 0:l.call(o)),addonBefore:T=(null===(i=o.addonBefore)||void 0===i?void 0:i.call(o)),id:z=(null===(v=s.id)||void 0===v?void 0:v.value)}=e,D=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),R=(g||A)&&$(c,null,[A,g&&b]),B=f.value,N=w$({prefix:P,suffix:A})||!!g,F=o.clearIcon||(()=>$(Nd,null,null));return C($(I$,ze(ze(ze({},r),nl(D,["onUpdate:value","onChange","onInput"])),{},{onChange:j,id:z,disabled:null!==(h=e.disabled)&&void 0!==h?h:O.value,ref:a,prefixCls:B,autocomplete:m.value,onBlur:I,onFocus:E,prefix:P,suffix:R,allowClear:x,addonAfter:M&&$(lv,null,{default:()=>[$(Zd,null,{default:()=>[M]})]}),addonBefore:T&&$(lv,null,{default:()=>[$(Zd,null,{default:()=>[T]})]}),class:[r.class,y.value],inputClassName:Ue({[`${B}-sm`]:"small"===w.value,[`${B}-lg`]:"large"===w.value,[`${B}-rtl`]:"rtl"===p.value,[`${B}-borderless`]:!k},!N&&Qd(B,d.value),S.value),affixWrapperClassName:Ue({[`${B}-affix-wrapper-sm`]:"small"===w.value,[`${B}-affix-wrapper-lg`]:"large"===w.value,[`${B}-affix-wrapper-rtl`]:"rtl"===p.value,[`${B}-affix-wrapper-borderless`]:!k},Qd(`${B}-affix-wrapper`,d.value,g),S.value),wrapperClassName:Ue({[`${B}-group-rtl`]:"rtl"===p.value},S.value),groupClassName:Ue({[`${B}-group-wrapper-sm`]:"small"===w.value,[`${B}-group-wrapper-lg`]:"large"===w.value,[`${B}-group-wrapper-rtl`]:"rtl"===p.value},Qd(`${B}-group-wrapper`,d.value,g),S.value)}),De(De({},o),{clearIcon:F})))}}}),M$=l({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:o,attrs:r}=t;const{prefixCls:l,direction:i,getPrefixCls:a}=tl("input-group",e),s=Yd.useInject();Yd.useProvide(s,{isFormItemInput:!1});const u=n((()=>a("input"))),[c,d]=Fy(u),p=n((()=>{const t=l.value;return{[`${t}`]:!0,[d.value]:!0,[`${t}-lg`]:"large"===e.size,[`${t}-sm`]:"small"===e.size,[`${t}-compact`]:e.compact,[`${t}-rtl`]:"rtl"===i.value}}));return()=>{var e;return c($("span",ze(ze({},r),{},{class:Ue(p.value,r.class)}),[null===(e=o.default)||void 0===e?void 0:e.call(o)]))}}});const T$=l({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:De(De({},E$()),{inputPrefixCls:String,enterButton:Rl.any,onSearch:{type:Function}}),setup(e,t){let{slots:o,attrs:r,expose:l,emit:i}=t;const a=s(),u=s(!1);l({focus:()=>{var e;null===(e=a.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=a.value)||void 0===e||e.blur()}});const c=e=>{i("update:value",e.target.value),e&&e.target&&"click"===e.type&&i("search",e.target.value,e),i("change",e)},d=e=>{var t;document.activeElement===(null===(t=a.value)||void 0===t?void 0:t.input)&&e.preventDefault()},p=e=>{var t,n;i("search",null===(n=null===(t=a.value)||void 0===t?void 0:t.input)||void 0===n?void 0:n.stateValue,e)},f=t=>{u.value||e.loading||p(t)},v=e=>{u.value=!0,i("compositionstart",e)},m=e=>{u.value=!1,i("compositionend",e)},{prefixCls:h,getPrefixCls:g,direction:y,size:b}=tl("input-search",e),w=n((()=>g("input",e.inputPrefixCls)));return()=>{var t,n,l,i;const{disabled:s,loading:u,addonAfter:g=(null===(t=o.addonAfter)||void 0===t?void 0:t.call(o)),suffix:x=(null===(n=o.suffix)||void 0===n?void 0:n.call(o))}=e,C=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:S=null!==(i=null===(l=o.enterButton)||void 0===l?void 0:l.call(o))&&void 0!==i&&i}=e;S=S||""===S;const O="boolean"==typeof S?$(_d,null,null):null,k=`${h.value}-button`,P=Array.isArray(S)?S[0]:S;let I;const E=P.type&&of(P.type)&&P.type.__ANT_BUTTON;if(E||"button"===P.tagName)I=ea(P,De({onMousedown:d,onClick:p,key:"enterButton"},E?{class:k,size:b.value}:{}),!1);else{const e=O&&!S;I=$(dg,{class:k,type:S?"primary":void 0,size:b.value,disabled:s,key:"enterButton",onMousedown:d,onClick:p,loading:u,icon:e?O:null},{default:()=>[e?null:O||S]})}g&&(I=[I,g]);const j=Ue(h.value,{[`${h.value}-rtl`]:"rtl"===y.value,[`${h.value}-${b.value}`]:!!b.value,[`${h.value}-with-button`]:!!S},r.class);return $(A$,ze(ze(ze({ref:a},nl(C,["onUpdate:value","onSearch","enterButton"])),r),{},{onPressEnter:f,onCompositionstart:v,onCompositionend:m,size:b.value,prefixCls:w.value,addonAfter:I,suffix:x,onChange:c,class:j,disabled:s}),o)}}}),z$=e=>null!=e&&(!Array.isArray(e)||Pt(e).length);function D$(e){return z$(e.addonBefore)||z$(e.addonAfter)}const R$=["text","input"],B$=l({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:Rl.oneOf(re("text","input")),value:ce(),defaultValue:ce(),allowClear:{type:Boolean,default:void 0},element:ce(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:ce(),prefix:ce(),addonBefore:ce(),addonAfter:ce(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,t){let{slots:n,attrs:o}=t;const r=Yd.useInject(),l=t=>{const{value:o,disabled:r,readonly:l,handleReset:i,suffix:a=n.suffix}=e,s=!r&&!l&&o,u=`${t}-clear-icon`;return $(Nd,{onClick:i,onMousedown:e=>e.preventDefault(),class:Ue({[`${u}-hidden`]:!s,[`${u}-has-suffix`]:!!a},u),role:"button"},null)};return()=>{var t;const{prefixCls:i,inputType:a,element:s=(null===(t=n.element)||void 0===t?void 0:t.call(n))}=e;return a===R$[0]?((t,i)=>{const{value:a,allowClear:s,direction:u,bordered:c,hidden:d,status:p,addonAfter:f=n.addonAfter,addonBefore:v=n.addonBefore,hashId:m}=e,{status:h,hasFeedback:g}=r;if(!s)return ea(i,{value:a,disabled:e.disabled});const y=Ue(`${t}-affix-wrapper`,`${t}-affix-wrapper-textarea-with-clear-btn`,Qd(`${t}-affix-wrapper`,Jd(h,p),g),{[`${t}-affix-wrapper-rtl`]:"rtl"===u,[`${t}-affix-wrapper-borderless`]:!c,[`${o.class}`]:!D$({addonAfter:f,addonBefore:v})&&o.class},m);return $("span",{class:y,style:o.style,hidden:d},[ea(i,{style:null,value:a,disabled:e.disabled}),l(t)])})(i,s):null}}}),N$=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],F$={};let H$;function L$(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;H$||(H$=document.createElement("textarea"),H$.setAttribute("tab-index","-1"),H$.setAttribute("aria-hidden","true"),document.body.appendChild(H$)),e.getAttribute("wrap")?H$.setAttribute("wrap",e.getAttribute("wrap")):H$.removeAttribute("wrap");const{paddingSize:r,borderSize:l,boxSizing:i,sizingStyle:a}=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&F$[n])return F$[n];const o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),l=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),a={sizingStyle:N$.map((e=>`${e}:${o.getPropertyValue(e)}`)).join(";"),paddingSize:l,borderSize:i,boxSizing:r};return t&&n&&(F$[n]=a),a}(e,t);H$.setAttribute("style",`${a};\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n`),H$.value=e.value||e.placeholder||"";let s,u,c,d=H$.scrollHeight;if("border-box"===i?d+=l:"content-box"===i&&(d-=r),null!==n||null!==o){H$.value=" ";const e=H$.scrollHeight-r;null!==n&&(s=e*n,"border-box"===i&&(s=s+r+l),d=Math.max(s,d)),null!==o&&(u=e*o,"border-box"===i&&(u=u+r+l),c=d>u?"":"hidden",d=Math.min(u,d))}const p={height:`${d}px`,overflowY:c,resize:"none"};return s&&(p.minHeight=`${s}px`),u&&(p.maxHeight=`${u}px`),p}const _$=l({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:j$(),setup(e,t){let{attrs:o,emit:r,expose:l}=t;const a=b(),s=b({}),u=b(2);x((()=>{Rt.cancel(undefined),Rt.cancel(undefined)}));const c=b(),d=b();w((()=>{const t=e.autoSize||e.autosize;t?(c.value=t.minRows,d.value=t.maxRows):(c.value=void 0,d.value=void 0)}));const p=n((()=>!(!e.autoSize&&!e.autosize))),f=()=>{u.value=0};i([()=>e.value,c,d,p],(()=>{p.value&&f()}),{immediate:!0});const v=b();i([u,a],(()=>{if(a.value)if(0===u.value)u.value=1;else if(1===u.value){const e=L$(a.value.input,!1,c.value,d.value);u.value=2,v.value=e}else(()=>{try{if(a.value&&document.activeElement===a.value.input){const e=a.value.getSelectionStart(),t=a.value.getSelectionEnd(),n=a.value.getScrollTop();a.value.setSelectionRange(e,t),a.value.setScrollTop(n)}}catch{}})()}),{immediate:!0,flush:"post"});const h=m(),g=b(),y=()=>{Rt.cancel(g.value)},C=e=>{2===u.value&&(r("resize",e),p.value&&(y(),g.value=Rt((()=>{f()}))))};x((()=>{y()})),l({resizeTextarea:()=>{f()},textArea:n((()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.input})),instance:h}),wn(void 0===e.autosize);return()=>(()=>{const{prefixCls:t,disabled:n}=e,r=nl(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),l=Ue(t,o.class,{[`${t}-disabled`]:n}),i=p.value?v.value:null,c=[o.style,s.value,i],d=De(De(De({},r),o),{style:c,class:l});return(0===u.value||1===u.value)&&c.push({overflowX:"hidden",overflowY:"hidden"}),d.autofocus||delete d.autofocus,0===d.rows&&delete d.rows,$(jt,{onResize:C,disabled:!p.value},{default:()=>[$(Du,ze(ze({},d),{},{ref:a,tag:"textarea"}),null)]})})()}});function W$(e,t){return[...e||""].slice(0,t).join("")}function V$(e,t,n,o){let r=n;return e?r=W$(n,o):[...t||""].length<n.length&&[...n||""].length>o&&(r=t),r}const X$=l({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:j$(),setup(e,t){let{attrs:o,expose:r,emit:l}=t;var a;const u=Gd(),c=Yd.useInject(),d=n((()=>Jd(c.status,e.status))),p=s(null!==(a=e.value)&&void 0!==a?a:e.defaultValue),f=s(),v=s(""),{prefixCls:h,size:g,direction:y}=tl("input",e),[b,x]=Fy(h),C=Ht(),S=n((()=>""===e.showCount||e.showCount||!1)),O=n((()=>Number(e.maxlength)>0)),k=s(!1),P=s(),E=s(0),j=e=>{k.value=!0,P.value=v.value,E.value=e.currentTarget.selectionStart,l("compositionstart",e)},A=t=>{var n;k.value=!1;let o=t.currentTarget.value;if(O.value){o=V$(E.value>=e.maxlength+1||E.value===(null===(n=P.value)||void 0===n?void 0:n.length),P.value,o,e.maxlength)}o!==v.value&&(z(o),C$(t.currentTarget,t,B,o)),l("compositionend",t)},M=m();i((()=>e.value),(()=>{var t;M.vnode.props,p.value=null!==(t=e.value)&&void 0!==t?t:""}));const T=e=>{var t;S$(null===(t=f.value)||void 0===t?void 0:t.textArea,e)},z=(t,n)=>{p.value!==t&&(void 0===e.value?p.value=t:I((()=>{var e,t,n;f.value.textArea.value!==v.value&&(null===(n=null===(e=f.value)||void 0===e?void 0:(t=e.instance).update)||void 0===n||n.call(t))})),I((()=>{n&&n()})))},D=e=>{13===e.keyCode&&l("pressEnter",e),l("keydown",e)},R=t=>{const{onBlur:n}=e;null==n||n(t),u.onFieldBlur()},B=e=>{l("update:value",e.target.value),l("change",e),l("input",e),u.onFieldChange()},N=e=>{C$(f.value.textArea,e,B),z("",(()=>{T()}))},F=t=>{let n=t.target.value;if(p.value!==n){if(O.value){const o=t.target;n=V$(o.selectionStart>=e.maxlength+1||o.selectionStart===n.length||!o.selectionStart,v.value,n,e.maxlength)}C$(t.currentTarget,t,B,n),z(n)}},H=()=>{var t,n;const{class:r}=o,{bordered:l=!0}=e,i=De(De(De({},nl(e,["allowClear"])),o),{class:[{[`${h.value}-borderless`]:!l,[`${r}`]:r&&!S.value,[`${h.value}-sm`]:"small"===g.value,[`${h.value}-lg`]:"large"===g.value},Qd(h.value,d.value),x.value],disabled:C.value,showCount:null,prefixCls:h.value,onInput:F,onChange:F,onBlur:R,onKeydown:D,onCompositionstart:j,onCompositionend:A});return!(null===(t=e.valueModifiers)||void 0===t)&&t.lazy&&delete i.onInput,$(_$,ze(ze({},i),{},{id:null!==(n=null==i?void 0:i.id)&&void 0!==n?n:u.id.value,ref:f,maxlength:e.maxlength,lazy:e.lazy}),null)};return r({focus:T,blur:()=>{var e,t;null===(t=null===(e=f.value)||void 0===e?void 0:e.textArea)||void 0===t||t.blur()},resizableTextArea:f}),w((()=>{let t=$$(p.value);!k.value&&O.value&&(null===e.value||void 0===e.value)&&(t=W$(t,e.maxlength)),v.value=t})),()=>{var t;const{maxlength:n,bordered:r=!0,hidden:l}=e,{style:i,class:a}=o,s=De(De(De({},e),o),{prefixCls:h.value,inputType:"text",handleReset:N,direction:y.value,bordered:r,style:S.value?void 0:i,hashId:x.value,disabled:null!==(t=e.disabled)&&void 0!==t?t:C.value});let u=$(B$,ze(ze({},s),{},{value:v.value,status:e.status}),{element:H});if(S.value||c.hasFeedback){const e=[...v.value].length;let t="";t="object"==typeof S.value?S.value.formatter({value:v.value,count:e,maxlength:n}):`${e}${O.value?` / ${n}`:""}`,u=$("div",{hidden:l,class:Ue(`${h.value}-textarea`,{[`${h.value}-textarea-rtl`]:"rtl"===y.value,[`${h.value}-textarea-show-count`]:S.value,[`${h.value}-textarea-in-form-item`]:c.isFormItemInput},`${h.value}-textarea-show-count`,a,x.value),style:i,"data-count":"object"!=typeof t?t:void 0},[u,c.hasFeedback&&$("span",{class:`${h.value}-textarea-suffix`},[c.feedbackIcon])])}return b(u)}}});var K$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};function q$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){G$(e,t,n[t])}))}return e}function G$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U$=function(e,t){var n=q$({},e,t.attrs);return $(bd,q$({},n,{icon:K$}),null)};U$.displayName="EyeOutlined",U$.inheritAttrs=!1;var Y$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};function Z$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Q$(e,t,n[t])}))}return e}function Q$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J$=function(e,t){var n=Z$({},e,t.attrs);return $(bd,Z$({},n,{icon:Y$}),null)};J$.displayName="EyeInvisibleOutlined",J$.inheritAttrs=!1;const eC={click:"onClick",hover:"onMouseover"},tC=e=>$(e?U$:J$,null,null),nC=l({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:De(De({},E$()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(e,t){let{slots:o,attrs:r,expose:l,emit:i}=t;const a=s(!1),u=()=>{const{disabled:t}=e;t||(a.value=!a.value,i("update:visible",a.value))};w((()=>{void 0!==e.visible&&(a.value=!!e.visible)}));const c=s();l({focus:()=>{var e;null===(e=c.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=c.value)||void 0===e||e.blur()}});const{prefixCls:d,getPrefixCls:p}=tl("input-password",e),f=n((()=>p("input",e.inputPrefixCls))),v=()=>{const{size:t,visibilityToggle:n}=e,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["size","visibilityToggle"]),i=n&&(t=>{const{action:n,iconRender:r=o.iconRender||tC}=e,l=eC[n]||"",i=r(a.value),s={[l]:u,class:`${t}-icon`,key:"passwordIcon",onMousedown:e=>{e.preventDefault()},onMouseup:e=>{e.preventDefault()}};return ea(It(i)?i:$("span",null,[i]),s)})(d.value),s=Ue(d.value,r.class,{[`${d.value}-${t}`]:!!t}),p=De(De(De({},nl(l,["suffix","iconRender","action"])),r),{type:a.value?"text":"password",class:s,prefixCls:f.value,suffix:i});return t&&(p.size=t),$(A$,ze({ref:c},p),o)};return()=>v()}});function oC(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:Rl.shape({x:Number,y:Number}).loose,title:Rl.any,footer:Rl.any,transitionName:String,maskTransitionName:String,animation:Rl.any,maskAnimation:Rl.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:Rl.any,maskProps:Rl.any,wrapProps:Rl.any,getContainer:Rl.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:Rl.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function rC(e,t,n){let o=t;return!o&&n&&(o=`${e}-${n}`),o}A$.Group=M$,A$.Search=T$,A$.TextArea=X$,A$.Password=nC,A$.install=function(e){return e.component(A$.name,A$),e.component(A$.Group.name,A$.Group),e.component(A$.Search.name,A$.Search),e.component(A$.TextArea.name,A$.TextArea),e.component(A$.Password.name,A$.Password),e};let lC=-1;function iC(e,t){let n=e[`page${t?"Y":"X"}Offset`];const o="scroll"+(t?"Top":"Left");if("number"!=typeof n){const t=e.document;n=t.documentElement[o],"number"!=typeof n&&(n=t.body[o])}return n}const aC={width:0,height:0,overflow:"hidden",outline:"none"},sC={outline:"none"},uC=l({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:De(De({},oC()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:o,slots:r,attrs:l}=t;const i=b(),a=b(),s=b();o({focus:()=>{var e;null===(e=i.value)||void 0===e||e.focus({preventScroll:!0})},changeActive:e=>{const{activeElement:t}=document;e&&t===a.value?i.value.focus({preventScroll:!0}):!e&&t===i.value&&a.value.focus({preventScroll:!0})}});const u=b(),c=n((()=>{const{width:t,height:n}=e,o={};return void 0!==t&&(o.width="number"==typeof t?`${t}px`:t),void 0!==n&&(o.height="number"==typeof n?`${n}px`:n),u.value&&(o.transformOrigin=u.value),o})),d=()=>{I((()=>{if(s.value){const t=function(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow;return n.left+=iC(r),n.top+=iC(r,!0),n}(s.value);u.value=e.mousePosition?`${e.mousePosition.x-t.left}px ${e.mousePosition.y-t.top}px`:""}}))},p=t=>{e.onVisibleChanged(t)};return()=>{var t,n,o,u;const{prefixCls:f,footer:v=(null===(t=r.footer)||void 0===t?void 0:t.call(r)),title:m=(null===(n=r.title)||void 0===n?void 0:n.call(r)),ariaId:h,closable:g,closeIcon:y=(null===(o=r.closeIcon)||void 0===o?void 0:o.call(r)),onClose:b,bodyStyle:w,bodyProps:x,onMousedown:C,onMouseup:k,visible:P,modalRender:I=r.modalRender,destroyOnClose:E,motionName:j}=e;let M,T,z;v&&(M=$("div",{class:`${f}-footer`},[v])),m&&(T=$("div",{class:`${f}-header`},[$("div",{class:`${f}-title`,id:h},[m])])),g&&(z=$("button",{type:"button",onClick:b,"aria-label":"Close",class:`${f}-close`},[y||$("span",{class:`${f}-close-x`},null)]));const D=$("div",{class:`${f}-content`},[z,T,$("div",ze({class:`${f}-body`,style:w},x),[null===(u=r.default)||void 0===u?void 0:u.call(r)]),M]),R=uu(j);return $(S,ze(ze({},R),{},{onBeforeEnter:d,onAfterEnter:()=>p(!0),onAfterLeave:()=>p(!1)}),{default:()=>[P||!E?O($("div",ze(ze({},l),{},{ref:s,key:"dialog-element",role:"document",style:[c.value,l.style],class:[f,l.class],onMousedown:C,onMouseup:k}),[$("div",{tabindex:0,ref:i,style:sC},[I?I({originVNode:D}):D]),$("div",{tabindex:0,ref:a,style:aC},null)]),[[A,P]]):null]})}}}),cC=l({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup:(e,t)=>()=>{const{prefixCls:t,visible:n,maskProps:o,motionName:r}=e,l=uu(r);return $(S,l,{default:()=>[O($("div",ze({class:`${t}-mask`},o),null),[[A,n]])]})}}),dC=l({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:bt(De(De({},oC()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,t){let{attrs:n,slots:o}=t;const r=s(),l=s(),a=s(),u=s(e.visible),c=s(`vcDialogTitle${lC+=1,lC}`),d=t=>{var n,o;if(t)an(l.value,document.activeElement)||(r.value=document.activeElement,null===(n=a.value)||void 0===n||n.focus());else{const t=u.value;if(u.value=!1,e.mask&&r.value&&e.focusTriggerAfterClose){try{r.value.focus({preventScroll:!0})}catch{}r.value=null}t&&(null===(o=e.afterClose)||void 0===o||o.call(e))}},p=t=>{var n;null===(n=e.onClose)||void 0===n||n.call(e,t)},f=s(!1),v=s(),m=()=>{clearTimeout(v.value),f.value=!0},h=()=>{v.value=setTimeout((()=>{f.value=!1}))},g=t=>{if(!e.maskClosable)return null;f.value?f.value=!1:l.value===t.target&&p(t)},y=t=>{if(e.keyboard&&t.keyCode===Au.ESC)return t.stopPropagation(),void p(t);e.visible&&t.keyCode===Au.TAB&&a.value.changeActive(!t.shiftKey)};return i((()=>e.visible),(()=>{e.visible&&(u.value=!0)}),{flush:"post"}),x((()=>{var t;clearTimeout(v.value),null===(t=e.scrollLocker)||void 0===t||t.unLock()})),w((()=>{var t,n;null===(t=e.scrollLocker)||void 0===t||t.unLock(),u.value&&(null===(n=e.scrollLocker)||void 0===n||n.lock())})),()=>{const{prefixCls:t,mask:r,visible:i,maskTransitionName:s,maskAnimation:f,zIndex:v,wrapClassName:b,rootClassName:w,wrapStyle:x,closable:C,maskProps:S,maskStyle:O,transitionName:k,animation:P,wrapProps:I,title:E=o.title}=e,{style:j,class:A}=n;return $("div",ze({class:[`${t}-root`,w]},Hu(e,{data:!0})),[$(cC,{prefixCls:t,visible:r&&i,motionName:rC(t,s,f),style:De({zIndex:v},O),maskProps:S},null),$("div",ze({tabIndex:-1,onKeydown:y,class:Ue(`${t}-wrap`,b),ref:l,onClick:g,role:"dialog","aria-labelledby":E?c.value:null,style:De(De({zIndex:v},x),{display:u.value?null:"none"})},I),[$(uC,ze(ze({},nl(e,["scrollLocker"])),{},{style:j,class:A,onMousedown:m,onMouseup:h,ref:a,closable:C,ariaId:c.value,prefixCls:t,visible:i,onClose:p,onVisibleChanged:d,motionName:rC(t,k,P)}),o)])])}}}),pC=oC(),fC=l({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:bt(pC,{visible:!1}),setup(e,t){let{attrs:n,slots:o}=t;const r=b(e.visible);return yu({},{inTriggerContext:!1}),i((()=>e.visible),(()=>{e.visible&&(r.value=!0)}),{flush:"post"}),()=>{const{visible:t,getContainer:l,forceRender:i,destroyOnClose:a=!1,afterClose:s}=e;let u=De(De(De({},e),n),{ref:"_component",key:"dialog"});return!1===l?$(dC,ze(ze({},u),{},{getOpenCount:()=>2}),o):i||!a||r.value?$(Pu,{autoLock:!0,visible:t,forceRender:i,getContainer:l},{default:e=>(u=De(De(De({},u),e),{afterClose:()=>{null==s||s(),r.value=!1}}),$(dC,u,o))}):null}}});function vC(e,t,n,o){const r=t+n,l=(n-o)/2;if(n>o){if(t>0)return{[e]:l};if(t<0&&r<o)return{[e]:-l}}else if(t<0||r>o)return{[e]:t<0?l:-l};return{}}function mC(e,t,n,o){const{width:r,height:l}={width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight};let i=null;return e<=r&&t<=l?i={x:0,y:0}:(e>r||t>l)&&(i=De(De({},vC("x",n,e,r)),vC("y",o,t,l))),i}const hC=Symbol("previewGroupContext"),gC=e=>{r(hC,e)},yC=()=>o(hC,{isPreviewGroup:s(!1),previewUrls:n((()=>new Map)),setPreviewUrls:()=>{},current:b(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""}),bC=l({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}},setup(e,t){let{slots:o}=t;const r=n((()=>{const t={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return"object"==typeof e.preview?SC(e.preview,t):t})),l=v(new Map),a=b(),u=n((()=>r.value.visible)),d=n((()=>r.value.getContainer)),[p,f]=Dc(!!u.value,{value:u,onChange:(e,t)=>{var n,o;null===(o=(n=r.value).onVisibleChange)||void 0===o||o.call(n,e,t)}}),m=b(null),h=n((()=>void 0!==u.value)),g=n((()=>Array.from(l.keys()))),y=n((()=>g.value[r.value.current])),x=n((()=>new Map(Array.from(l).filter((e=>{let[,{canPreview:t}]=e;return!!t})).map((e=>{let[t,{url:n}]=e;return[t,n]}))))),C=e=>{a.value=e},S=e=>{m.value=e},O=e=>{null==e||e.stopPropagation(),f(!1),S(null)};return i(y,(e=>{C(e)}),{immediate:!0,flush:"post"}),w((()=>{p.value&&h.value&&C(y.value)}),{flush:"post"}),gC({isPreviewGroup:s(!0),previewUrls:x,setPreviewUrls:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];l.set(e,{url:t,canPreview:n})},current:a,setCurrent:C,setShowPreview:f,setMousePosition:S,registerImage:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return l.set(e,{url:t,canPreview:n}),()=>{l.delete(e)}}}),()=>{const t=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(r.value,[]);return $(c,null,[o.default&&o.default(),$($C,ze(ze({},t),{},{"ria-hidden":!p.value,visible:p.value,prefixCls:e.previewPrefixCls,onClose:O,mousePosition:m.value,src:x.value.get(a.value),icons:e.icons,getContainer:d.value}),null)])}}}),wC={x:0,y:0},xC=De(De({},oC()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),$C=l({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:xC,emits:["close","afterClose"],setup(e,t){let{emit:o,attrs:r}=t;const{rotateLeft:l,rotateRight:a,zoomIn:u,zoomOut:c,close:d,left:p,right:f,flipX:m,flipY:g}=v(e.icons),w=s(1),x=s(0),C=v({x:1,y:1}),[S,O]=function(e){const t=b(null),n=v(De({},e)),o=b([]);return h((()=>{t.value&&Rt.cancel(t.value)})),[n,e=>{null===t.value&&(o.value=[],t.value=Rt((()=>{let e;o.value.forEach((t=>{e=De(De({},e),t)})),De(n,e),t.value=null}))),o.value.push(e)}]}(wC),k=()=>o("close"),I=s(),E=v({originX:0,originY:0,deltaX:0,deltaY:0}),j=s(!1),A=yC(),{previewUrls:M,current:T,isPreviewGroup:z,setCurrent:D}=A,R=n((()=>M.value.size)),B=n((()=>Array.from(M.value.keys()))),N=n((()=>B.value.indexOf(T.value))),F=n((()=>z.value?M.value.get(T.value):e.src)),H=n((()=>z.value&&R.value>1)),L=s({wheelDirection:0}),_=()=>{w.value=1,x.value=0,C.x=1,C.y=1,O(wC),o("afterClose")},W=e=>{e?w.value+=.5:w.value++,O(wC)},V=e=>{w.value>1&&(e?w.value-=.5:w.value--),O(wC)},X=e=>{e.preventDefault(),e.stopPropagation(),N.value>0&&D(B.value[N.value-1])},K=e=>{e.preventDefault(),e.stopPropagation(),N.value<R.value-1&&D(B.value[N.value+1])},q=Ue({[`${e.prefixCls}-moving`]:j.value}),G=`${e.prefixCls}-operations-operation`,U=`${e.prefixCls}-operations-icon`,Y=[{icon:d,onClick:k,type:"close"},{icon:u,onClick:()=>W(),type:"zoomIn"},{icon:c,onClick:()=>V(),type:"zoomOut",disabled:n((()=>1===w.value))},{icon:a,onClick:()=>{x.value+=90},type:"rotateRight"},{icon:l,onClick:()=>{x.value-=90},type:"rotateLeft"},{icon:m,onClick:()=>{C.x=-C.x},type:"flipX"},{icon:g,onClick:()=>{C.y=-C.y},type:"flipY"}],Z=()=>{if(e.visible&&j.value){const e=I.value.offsetWidth*w.value,t=I.value.offsetHeight*w.value,{left:n,top:o}=zu(I.value),r=x.value%180!=0;j.value=!1;const l=mC(r?t:e,r?e:t,n,o);l&&O(De({},l))}},Q=e=>{0===e.button&&(e.preventDefault(),e.stopPropagation(),E.deltaX=e.pageX-S.x,E.deltaY=e.pageY-S.y,E.originX=S.x,E.originY=S.y,j.value=!0)},J=t=>{e.visible&&j.value&&O({x:t.pageX-E.deltaX,y:t.pageY-E.deltaY})},ee=t=>{if(!e.visible)return;t.preventDefault();const n=t.deltaY;L.value={wheelDirection:n}},te=t=>{!e.visible||!H.value||(t.preventDefault(),t.keyCode===Au.LEFT?N.value>0&&D(B.value[N.value-1]):t.keyCode===Au.RIGHT&&N.value<R.value-1&&D(B.value[N.value+1]))},ne=()=>{e.visible&&(1!==w.value&&(w.value=1),(S.x!==wC.x||S.y!==wC.y)&&O(wC))};let oe=()=>{};return h((()=>{i([()=>e.visible,j],(()=>{let e,t;oe();const n=Nt(window,"mouseup",Z,!1),o=Nt(window,"mousemove",J,!1),r=Nt(window,"wheel",ee,{passive:!1}),l=Nt(window,"keydown",te,!1);try{window.top!==window.self&&(e=Nt(window.top,"mouseup",Z,!1),t=Nt(window.top,"mousemove",J,!1))}catch{}oe=()=>{n.remove(),o.remove(),r.remove(),l.remove(),e&&e.remove(),t&&t.remove()}}),{flush:"post",immediate:!0}),i([L],(()=>{const{wheelDirection:e}=L.value;e>0?V(!0):e<0&&W(!0)}))})),y((()=>{oe()})),()=>{const{visible:t,prefixCls:n,rootClassName:o}=e;return $(fC,ze(ze({},r),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:n,onClose:k,afterClose:_,visible:t,wrapClassName:q,rootClassName:o,getContainer:e.getContainer}),{default:()=>[$("div",{class:[`${e.prefixCls}-operations-wrapper`,o]},[$("ul",{class:`${e.prefixCls}-operations`},[Y.map((t=>{let{icon:n,onClick:o,type:r,disabled:l}=t;return $("li",{class:Ue(G,{[`${e.prefixCls}-operations-operation-disabled`]:l&&(null==l?void 0:l.value)}),onClick:o,key:r},[P(n,{class:U})])}))])]),$("div",{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${S.x}px, ${S.y}px, 0)`}},[$("img",{onMousedown:Q,onDblclick:ne,ref:I,class:`${e.prefixCls}-img`,src:F.value,alt:e.alt,style:{transform:`scale3d(${C.x*w.value}, ${C.y*w.value}, 1) rotate(${x.value}deg)`}},null)]),H.value&&$("div",{class:Ue(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:N.value<=0}),onClick:X},[p]),H.value&&$("div",{class:Ue(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:N.value>=R.value-1}),onClick:K},[f])]})}}});const CC=()=>({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,width:[Number,String],height:[Number,String],previewMask:{type:[Boolean,Function],default:void 0},placeholder:Rl.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),SC=(e,t)=>{const n=De({},e);return Object.keys(t).forEach((o=>{void 0===e[o]&&(n[o]=t[o])})),n};let OC=0;const kC=l({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:CC(),emits:["click","error"],setup(e,t){let{attrs:o,slots:r,emit:l}=t;const a=n((()=>e.prefixCls)),s=n((()=>`${a.value}-preview`)),u=n((()=>{const t={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return"object"==typeof e.preview?SC(e.preview,t):t})),d=n((()=>{var t;return null!==(t=u.value.src)&&void 0!==t?t:e.src})),p=n((()=>e.placeholder&&!0!==e.placeholder||r.placeholder)),f=n((()=>u.value.visible)),v=n((()=>u.value.getContainer)),m=n((()=>void 0!==f.value)),[g,w]=Dc(!!f.value,{value:f,onChange:(e,t)=>{var n,o;null===(o=(n=u.value).onVisibleChange)||void 0===o||o.call(n,e,t)}}),x=b(p.value?"loading":"normal");i((()=>e.src),(()=>{x.value=p.value?"loading":"normal"}));const C=b(null),S=n((()=>"error"===x.value)),O=yC(),{isPreviewGroup:k,setCurrent:P,setShowPreview:I,setMousePosition:E,registerImage:j}=O,A=b(OC++),M=n((()=>e.preview&&!S.value)),T=()=>{x.value="normal"},z=e=>{x.value="error",l("error",e)},D=e=>{if(!m.value){const{left:t,top:n}=zu(e.target);k.value?(P(A.value),E({x:t,y:n})):C.value={x:t,y:n}}k.value?I(!0):w(!0),l("click",e)},R=()=>{w(!1),m.value||(C.value=null)},B=b(null);i((()=>B),(()=>{"loading"===x.value&&B.value.complete&&(B.value.naturalWidth||B.value.naturalHeight)&&T()}));let N=()=>{};h((()=>{i([d,M],(()=>{if(N(),!k.value)return()=>{};N=j(A.value,d.value,M.value),M.value||N()}),{flush:"post",immediate:!0})})),y((()=>{N()}));const F=e=>function(e){return"number"==typeof e||os(e)&&"[object Number]"==ga(e)}(e)?e+"px":e;return()=>{const{prefixCls:t,wrapperClassName:n,fallback:i,src:a,placeholder:p,wrapperStyle:f,rootClassName:m,width:h,height:y,crossorigin:b,decoding:w,alt:O,sizes:P,srcset:I,usemap:E,class:j,style:A}=De(De({},e),o),N=u.value,{icons:H,maskClassName:L}=N,_=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(N,["icons","maskClassName"]),W=Ue(t,n,m,{[`${t}-error`]:S.value}),V=S.value&&i?i:d.value,X={crossorigin:b,decoding:w,alt:O,sizes:P,srcset:I,usemap:E,width:h,height:y,class:Ue(`${t}-img`,{[`${t}-img-placeholder`]:!0===p},j),style:De({height:F(y)},A)};return $(c,null,[$("div",{class:W,onClick:M.value?D:e=>{l("click",e)},style:De({width:F(h),height:F(y)},f)},[$("img",ze(ze(ze({},X),S.value&&i?{src:i}:{onLoad:T,onError:z,src:a}),{},{ref:B}),null),"loading"===x.value&&$("div",{"aria-hidden":"true",class:`${t}-placeholder`},[p||r.placeholder&&r.placeholder()]),r.previewMask&&M.value&&$("div",{class:[`${t}-mask`,L]},[r.previewMask()])]),!k.value&&M.value&&$($C,ze(ze({},_),{},{"aria-hidden":!g.value,visible:g.value,prefixCls:s.value,onClose:R,mousePosition:C.value,src:V,alt:O,getContainer:v.value,icons:H,rootClassName:m}),null)])}}});kC.PreviewGroup=bC;var PC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};function IC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){EC(e,t,n[t])}))}return e}function EC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jC=function(e,t){var n=IC({},e,t.attrs);return $(bd,IC({},n,{icon:PC}),null)};jC.displayName="RotateLeftOutlined",jC.inheritAttrs=!1;var AC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};function MC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){TC(e,t,n[t])}))}return e}function TC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zC=function(e,t){var n=MC({},e,t.attrs);return $(bd,MC({},n,{icon:AC}),null)};zC.displayName="RotateRightOutlined",zC.inheritAttrs=!1;var DC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};function RC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){BC(e,t,n[t])}))}return e}function BC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NC=function(e,t){var n=RC({},e,t.attrs);return $(bd,RC({},n,{icon:DC}),null)};NC.displayName="ZoomInOutlined",NC.inheritAttrs=!1;var FC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};function HC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){LC(e,t,n[t])}))}return e}function LC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _C=function(e,t){var n=HC({},e,t.attrs);return $(bd,HC({},n,{icon:FC}),null)};_C.displayName="ZoomOutOutlined",_C.inheritAttrs=!1;var WC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};function VC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){XC(e,t,n[t])}))}return e}function XC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KC=function(e,t){var n=VC({},e,t.attrs);return $(bd,VC({},n,{icon:WC}),null)};function qC(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}KC.displayName="SwapOutlined",KC.inheritAttrs=!1;const GC=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${e.antCls}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:De(De({},qC("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:De(De({},qC("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:pv(e)}]},UC=e=>({position:e||"absolute",inset:0}),YC=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:o,marginXXS:r,prefixCls:l}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new Qo("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${l}-mask-info`]:De(De({},Pr),{padding:`0 ${o}px`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},ZC=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:o,previewOperationColorDisabled:r,motionDurationSlow:l}=e,i=new Qo(n).setAlpha(.1),a=i.clone().setAlpha(.2);return{[`${t}-operations`]:De(De({},Ir(e)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:e.previewOperationColor,listStyle:"none",background:i.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${l}`,userSelect:"none","&:hover":{background:a.toRgbString()},"&-disabled":{color:r,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:e.previewOperationSize}})}},QC=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:l,motionDurationSlow:i}=e,a=new Qo(t).setAlpha(.1),s=a.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:l+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:a.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:e.marginSM},[`${r}-switch-right`]:{insetInlineEnd:e.marginSM}}},JC=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:De(De({},UC()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":De(De({},UC()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:e.zIndexPopup+1,width:"100%"},"&":[ZC(e),QC(e)]}]},eS=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:De({},YC(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:De({},UC())}}},tS=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Vv(e,"zoom"),"&":pv(e,!0)}},nS=Tr("Image",(e=>{const t=`${e.componentCls}-preview`,n=Rr(e,{previewCls:t,modalMaskBg:new Qo("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[eS(n),JC(n),GC(Rr(n,{componentCls:t})),tS(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Qo(e.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new Qo(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}))),oS={rotateLeft:$(jC,null,null),rotateRight:$(zC,null,null),zoomIn:$(NC,null,null),zoomOut:$(_C,null,null),close:$(zd,null,null),left:$(xb,null,null),right:$(Pg,null,null),flipX:$(KC,null,null),flipY:$(KC,{rotate:90},null)},rS=l({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String,preview:ce()},setup(e,t){let{attrs:o,slots:r}=t;const{prefixCls:l,rootPrefixCls:i}=tl("image",e),a=n((()=>`${l.value}-preview`)),[s,u]=nS(l),c=n((()=>{const{preview:t}=e;if(!1===t)return t;const n="object"==typeof t?t:{};return De(De({},n),{rootClassName:u.value,transitionName:du(i.value,"zoom",n.transitionName),maskTransitionName:du(i.value,"fade",n.maskTransitionName)})}));return()=>s($(bC,ze(ze({},De(De({},o),e)),{},{preview:c.value,icons:oS,previewPrefixCls:a.value}),r))}}),lS=l({name:"AImage",inheritAttrs:!1,props:CC(),setup(e,t){let{slots:o,attrs:r}=t;const{prefixCls:l,rootPrefixCls:i,configProvider:a}=tl("image",e),[s,u]=nS(l),c=n((()=>{const{preview:t}=e;if(!1===t)return t;const n="object"==typeof t?t:{};return De(De({icons:oS},n),{transitionName:du(i.value,"zoom",n.transitionName),maskTransitionName:du(i.value,"fade",n.maskTransitionName)})}));return()=>{var t,n;const i=(null===(n=null===(t=a.locale)||void 0===t?void 0:t.value)||void 0===n?void 0:n.Image)||Xt.Image,d=()=>$("div",{class:`${l.value}-mask-info`},[$(U$,null,null),null==i?void 0:i.preview]),{previewMask:p=o.previewMask||d}=e;return s($(kC,ze(ze({},De(De(De({},r),e),{prefixCls:l.value})),{},{preview:c.value,rootClassName:Ue(e.rootClassName,u.value)}),De(De({},o),{previewMask:"function"==typeof p?p:null})))}}});lS.PreviewGroup=rS,lS.install=function(e){return e.component(lS.name,lS),e.component(lS.PreviewGroup.name,lS.PreviewGroup),e};const iS={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},aS=l({compatConfig:{MODE:3},name:"TransButton",inheritAttrs:!1,props:{noStyle:{type:Boolean,default:void 0},onClick:Function,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,emit:o,attrs:r,expose:l}=t;const i=s(),a=e=>{const{keyCode:t}=e;t===Au.ENTER&&e.preventDefault()},u=e=>{const{keyCode:t}=e;t===Au.ENTER&&o("click",e)},c=e=>{o("click",e)},d=()=>{i.value&&i.value.focus()};return h((()=>{e.autofocus&&d()})),l({focus:d,blur:()=>{i.value&&i.value.blur()}}),()=>{var t;const{noStyle:o,disabled:l}=e,s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["noStyle","disabled"]);let d={};return o||(d=De({},iS)),l&&(d.pointerEvents="none"),$("div",ze(ze(ze({role:"button",tabindex:0,ref:i},s),r),{},{onClick:c,onKeydown:a,onKeyup:u,style:De(De({},d),r.style||{})}),[null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}),sS=["normal","exception","active","success"],uS=()=>({prefixCls:String,type:pe(),percent:Number,format:ue(),status:pe(),showInfo:se(),strokeWidth:Number,strokeLinecap:pe(),strokeColor:ce(),trailColor:String,width:Number,success:ae(),gapDegree:Number,gapPosition:pe(),size:fe([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:pe()});function cS(e){return!e||e<0?0:e>100?100:e}function dS(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(Bl(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),o=t.progress),t&&"percent"in t&&(o=t.percent),o}const pS=(e,t,n)=>{var o,r,l,i;let a=-1,s=-1;if("step"===t){const t=n.steps,o=n.strokeWidth;"string"==typeof e||typeof e>"u"?(a="small"===e?2:14,s=o??8):"number"==typeof e?[a,s]=[e,e]:[a=14,s=8]=e,a*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||typeof e>"u"?s=t||("small"===e?6:8):"number"==typeof e?[a,s]=[e,e]:[a=-1,s=8]=e}else("circle"===t||"dashboard"===t)&&("string"==typeof e||typeof e>"u"?[a,s]="small"===e?[60,60]:[120,120]:"number"==typeof e?[a,s]=[e,e]:(a=null!==(r=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==r?r:120,s=null!==(i=null!==(l=e[0])&&void 0!==l?l:e[1])&&void 0!==i?i:120));return{width:a,height:s}};const fS=(e,t)=>{const{from:n=ir.blue,to:o=ir.blue,direction:r=("rtl"===t?"to left":"to right")}=e,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["from","to","direction"]);if(0!==Object.keys(l).length){const e=(e=>{let t=[];return Object.keys(e).forEach((n=>{const o=parseFloat(n.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(l);return{backgroundImage:`linear-gradient(${r}, ${e})`}}return{backgroundImage:`linear-gradient(${r}, ${n}, ${o})`}},vS=l({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:De(De({},uS()),{strokeColor:ce(),direction:pe()}),setup(e,t){let{slots:o,attrs:r}=t;const l=n((()=>{const{strokeColor:t,direction:n}=e;return t&&"string"!=typeof t?fS(t,n):{backgroundColor:t}})),i=n((()=>"square"===e.strokeLinecap||"butt"===e.strokeLinecap?0:void 0)),a=n((()=>e.trailColor?{backgroundColor:e.trailColor}:void 0)),s=n((()=>{var t;return null!==(t=e.size)&&void 0!==t?t:[-1,e.strokeWidth||("small"===e.size?6:8)]})),u=n((()=>pS(s.value,"line",{strokeWidth:e.strokeWidth}))),d=n((()=>{const{percent:t}=e;return De({width:`${cS(t)}%`,height:`${u.value.height}px`,borderRadius:i.value},l.value)})),p=n((()=>dS(e))),f=n((()=>{const{success:t}=e;return{width:`${cS(p.value)}%`,height:`${u.value.height}px`,borderRadius:i.value,backgroundColor:null==t?void 0:t.strokeColor}})),v={width:u.value.width<0?"100%":u.value.width,height:`${u.value.height}px`};return()=>{var t;return $(c,null,[$("div",ze(ze({},r),{},{class:[`${e.prefixCls}-outer`,r.class],style:[r.style,v]}),[$("div",{class:`${e.prefixCls}-inner`,style:a.value},[$("div",{class:`${e.prefixCls}-bg`,style:d.value},null),void 0!==p.value?$("div",{class:`${e.prefixCls}-success-bg`,style:f.value},null):null])]),null===(t=o.default)||void 0===t?void 0:t.call(o)])}}}),mS={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},hS=e=>{const t=b(null);return g((()=>{const n=Date.now();let o=!1;e.value.forEach((e=>{const r=(null==e?void 0:e.$el)||e;if(!r)return;o=!0;const l=r.style;l.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(l.transitionDuration="0s, 0s")})),o&&(t.value=Date.now())})),e},gS={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};l({compatConfig:{MODE:3},name:"ProgressLine",props:bt(gS,mS),setup(e){const t=n((()=>{const{percent:t}=e;return Array.isArray(t)?t:[t]})),o=n((()=>{const{prefixCls:n,strokeLinecap:o,strokeWidth:l,transition:i}=e;let a=0;return t.value.map(((e,t)=>{let s=1;switch(o){case"round":s=1-l/100;break;case"square":s=1-l/2/100;break;default:s=1}const c={strokeDasharray:e*s+"px, 100px",strokeDashoffset:`-${a}px`,transition:i||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},d=r.value[t]||r.value[r.value.length-1];return a+=e,{key:t,d:u.value,"stroke-linecap":o,stroke:d,"stroke-width":l,"fill-opacity":"0",class:`${n}-line-path`,style:c}}))})),r=n((()=>{const{strokeColor:t}=e;return Array.isArray(t)?t:[t]})),[l,i]=Hy();hS(i);const a=n((()=>e.strokeWidth/2)),s=n((()=>100-e.strokeWidth/2)),u=n((()=>`M ${"round"===e.strokeLinecap?a.value:0},${a.value}\n L ${"round"===e.strokeLinecap?s.value:100},${a.value}`)),c=n((()=>`0 0 100 ${e.strokeWidth}`)),d=n((()=>({d:u.value,"stroke-linecap":e.strokeLinecap,stroke:e.trailColor,"stroke-width":e.trailWidth||e.strokeWidth,"fill-opacity":"0",class:`${e.prefixCls}-line-trail`})));return()=>{const{percent:t,prefixCls:n,strokeColor:r,strokeLinecap:i,strokeWidth:a,trailColor:s,trailWidth:u,transition:p}=e,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","trailColor","trailWidth","transition"]);return delete f.gapPosition,$("svg",ze({class:`${n}-line`,viewBox:c.value,preserveAspectRatio:"none"},f),[$("path",d.value,null),o.value.map(((e,t)=>$("path",ze({ref:l(t)},e),null)))])}}});let yS=0;function bS(e){return+e.replace("%","")}function wS(e){return Array.isArray(e)?e:[e]}function xS(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const l=50-o/2;let i=0,a=-l,s=0,u=-2*l;switch(arguments.length>5?arguments[5]:void 0){case"left":i=-l,a=0,s=2*l,u=0;break;case"right":i=l,a=0,s=-2*l,u=0;break;case"bottom":a=l,u=2*l}const c=`M 50,50 m ${i},${a}\n a ${l},${l} 0 1 1 ${s},${-u}\n a ${l},${l} 0 1 1 ${-s},${u}`,d=2*Math.PI*l;return{pathString:c,pathStyle:{stroke:n,strokeDasharray:`${t/100*(d-r)}px ${d}px`,strokeDashoffset:`-${r/2+e/100*(d-r)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"}}}const $S=l({compatConfig:{MODE:3},name:"VCCircle",props:bt(gS,mS),setup(e){yS+=1;const t=b(yS),o=n((()=>wS(e.percent))),r=n((()=>wS(e.strokeColor))),[l,i]=Hy();hS(i);const a=()=>{const{prefixCls:n,strokeWidth:i,strokeLinecap:a,gapDegree:s,gapPosition:u}=e;let c=0;return o.value.map(((e,o)=>{const d=r.value[o]||r.value[r.value.length-1],p="[object Object]"===Object.prototype.toString.call(d)?`url(#${n}-gradient-${t.value})`:"",{pathString:f,pathStyle:v}=xS(c,e,d,i,s,u);c+=e;const m={key:o,d:f,stroke:p,"stroke-linecap":a,"stroke-width":i,opacity:0===e?0:1,"fill-opacity":"0",class:`${n}-circle-path`,style:v};return $("path",ze({ref:l(o)},m),null)}))};return()=>{const{prefixCls:n,strokeWidth:o,trailWidth:l,gapDegree:i,gapPosition:s,trailColor:u,strokeLinecap:c,strokeColor:d}=e,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:f,pathStyle:v}=xS(0,100,u,o,i,s);delete p.percent;const m=r.value.find((e=>"[object Object]"===Object.prototype.toString.call(e))),h={d:f,stroke:u,"stroke-linecap":c,"stroke-width":l||o,"fill-opacity":"0",class:`${n}-circle-trail`,style:v};return $("svg",ze({class:`${n}-circle`,viewBox:"0 0 100 100"},p),[m&&$("defs",null,[$("linearGradient",{id:`${n}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(m).sort(((e,t)=>bS(e)-bS(t))).map(((e,t)=>$("stop",{key:t,offset:e,"stop-color":m[e]},null)))])]),$("path",h,null),a().reverse()])}}}),CS=l({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:bt(De(De({},uS()),{strokeColor:ce()}),{trailColor:null}),setup(e,t){let{slots:o,attrs:r}=t;const l=n((()=>{var t;return null!==(t=e.width)&&void 0!==t?t:120})),i=n((()=>{var t;return null!==(t=e.size)&&void 0!==t?t:[l.value,l.value]})),a=n((()=>pS(i.value,"circle"))),s=n((()=>e.gapDegree||0===e.gapDegree?e.gapDegree:"dashboard"===e.type?75:void 0)),u=n((()=>({width:`${a.value.width}px`,height:`${a.value.height}px`,fontSize:.15*a.value.width+6+"px"}))),d=n((()=>{var t;return null!==(t=e.strokeWidth)&&void 0!==t?t:Math.max((e=>3/e*100)(a.value.width),6)})),p=n((()=>e.gapPosition||"dashboard"===e.type&&"bottom"||void 0)),f=n((()=>function(e){let{percent:t,success:n,successPercent:o}=e;const r=cS(dS({success:n,successPercent:o}));return[r,cS(cS(t)-r)]}(e))),v=n((()=>"[object Object]"===Object.prototype.toString.call(e.strokeColor))),m=n((()=>function(e){let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||ir.green,n||null]}({success:e.success,strokeColor:e.strokeColor}))),h=n((()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:v.value})));return()=>{var t;const n=$($S,{percent:f.value,strokeWidth:d.value,trailWidth:d.value,strokeColor:m.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:s.value,gapPosition:p.value},null);return $("div",ze(ze({},r),{},{class:[h.value,r.class],style:[r.style,u.value]}),[a.value.width<=20?$(uh,null,{default:()=>[$("span",null,[n])],title:o.default}):$(c,null,[n,null===(t=o.default)||void 0===t?void 0:t.call(o)])])}}}),SS=l({compatConfig:{MODE:3},name:"Steps",props:De(De({},uS()),{steps:Number,strokeColor:fe(),trailColor:String}),setup(e,t){let{slots:o}=t;const r=n((()=>Math.round(e.steps*((e.percent||0)/100)))),l=n((()=>{var t;return null!==(t=e.size)&&void 0!==t?t:["small"===e.size?2:14,e.strokeWidth||8]})),i=n((()=>pS(l.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8}))),a=n((()=>{const{steps:t,strokeColor:n,trailColor:o,prefixCls:l}=e,a=[];for(let e=0;e<t;e+=1){const s=Array.isArray(n)?n[e]:n,u={[`${l}-steps-item`]:!0,[`${l}-steps-item-active`]:e<=r.value-1};a.push($("div",{key:e,class:u,style:{backgroundColor:e<=r.value-1?s:o,width:i.value.width/t+"px",height:`${i.value.height}px`}},null))}return a}));return()=>{var t;return $("div",{class:`${e.prefixCls}-steps-outer`},[a.value,null===(t=o.default)||void 0===t?void 0:t.call(o)])}}}),OS=new jo("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),kS=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:De(De({},Ir(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:OS,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},PS=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.fontSize/e.fontSizeSM+"em"}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},IS=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},ES=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},jS=Tr("Progress",(e=>{const t=e.marginXXS/2,n=Rr(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[kS(n),PS(n),IS(n),ES(n)]}));const AS=l({compatConfig:{MODE:3},name:"AProgress",inheritAttrs:!1,props:bt(uS(),{type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",strokeLinecap:"round"}),slots:Object,setup(e,t){let{slots:o,attrs:r}=t;const{prefixCls:l,direction:i}=tl("progress",e),[a,s]=jS(l),u=n((()=>Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor)),c=n((()=>{const{percent:t=0}=e,n=dS(e);return parseInt(void 0!==n?n.toString():t.toString(),10)})),d=n((()=>{const{status:t}=e;return!sS.includes(t)&&c.value>=100?"success":t||"normal"})),p=n((()=>{const{type:t,showInfo:n,size:o}=e,r=l.value;return{[r]:!0,[`${r}-inline-circle`]:"circle"===t&&pS(o,"circle").width<=20,[`${r}-${"dashboard"===t?"circle":t}`]:!0,[`${r}-status-${d.value}`]:!0,[`${r}-show-info`]:n,[`${r}-${o}`]:o,[`${r}-rtl`]:"rtl"===i.value,[s.value]:!0}})),f=n((()=>"string"==typeof e.strokeColor||Array.isArray(e.strokeColor)?e.strokeColor:void 0));return()=>{const{type:t,steps:n,title:s}=e,{class:c}=r,v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(r,["class"]),m=(()=>{const{showInfo:t,format:n,type:r,percent:i,title:a}=e,s=dS(e);if(!t)return null;let u;const c=n||(null==o?void 0:o.format)||(e=>`${e}%`),p="line"===r;return n||null!=o&&o.format||"exception"!==d.value&&"success"!==d.value?u=c(cS(i),cS(s)):"exception"===d.value?u=$(p?Nd:zd,null,null):"success"===d.value&&(u=$(p?Pm:jd,null,null)),$("span",{class:`${l.value}-text`,title:void 0===a&&"string"==typeof u?u:void 0},[u])})();let h;return"line"===t?h=n?$(SS,ze(ze({},e),{},{strokeColor:f.value,prefixCls:l.value,steps:n}),{default:()=>[m]}):$(vS,ze(ze({},e),{},{strokeColor:u.value,prefixCls:l.value,direction:i.value}),{default:()=>[m]}):("circle"===t||"dashboard"===t)&&(h=$(CS,ze(ze({},e),{},{prefixCls:l.value,strokeColor:u.value,progressStatus:d.value}),{default:()=>[m]})),a($("div",ze(ze({role:"progressbar"},v),{},{class:[p.value,c],title:s}),[h]))}}}),MS=le(AS);var TS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};function zS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){DS(e,t,n[t])}))}return e}function DS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var RS=function(e,t){var n=zS({},e,t.attrs);return $(bd,zS({},n,{icon:TS}),null)};RS.displayName="DeleteOutlined",RS.inheritAttrs=!1;var BS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};function NS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){FS(e,t,n[t])}))}return e}function FS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HS=function(e,t){var n=NS({},e,t.attrs);return $(bd,NS({},n,{icon:BS}),null)};HS.displayName="EnterOutlined",HS.inheritAttrs=!1;const LS=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,o)=>{const{sizeMarginHeadingVerticalEnd:r,fontWeightStrong:l}=o;return{marginBottom:r,color:n,fontWeight:l,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},_S=e=>{const{componentCls:t}=e;return{"a&, a":De(De({},Sr(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},WS=e=>{const{componentCls:t}=e,n=By(e).inputPaddingVertical+1;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-n,marginBottom:`calc(1em - ${n}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},VS=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),XS=e=>{const{componentCls:t,sizeMarginHeadingVerticalStart:n}=e;return{[t]:De(De(De(De(De(De(De(De(De({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},LS(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),{code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:ur[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),_S(e)),{[`\n ${t}-expand,\n ${t}-edit,\n ${t}-copy\n `]:De(De({},Sr(e)),{marginInlineStart:e.marginXXS})}),WS(e)),VS(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}},KS=Tr("Typography",(e=>[XS(e)]),{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),qS=l({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:{prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String},setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:l}=R(e),a=v({current:e.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});i((()=>e.value),(e=>{a.current=e}));const s=b();function u(e){s.value=e}function c(e){let{target:{value:t}}=e;a.current=t.replace(/[\r\n]/g,""),n("change",a.current)}function d(){a.inComposition=!0}function p(){a.inComposition=!1}function f(e){const{keyCode:t}=e;t===Au.ENTER&&e.preventDefault(),!a.inComposition&&(a.lastKeyCode=t)}function m(t){const{keyCode:o,ctrlKey:r,altKey:l,metaKey:i,shiftKey:s}=t;a.lastKeyCode===o&&!a.inComposition&&!r&&!l&&!i&&!s&&(o===Au.ENTER?(y(),n("end")):o===Au.ESC&&(a.current=e.originContent,n("cancel")))}function g(){y()}function y(){n("save",a.current.trim())}h((()=>{var e;if(s.value){const t=null===(e=s.value)||void 0===e?void 0:e.resizableTextArea,n=null==t?void 0:t.textArea;n.focus();const{length:o}=n.value;n.setSelectionRange(o,o)}}));const[w,x]=KS(l);return()=>{const t=Ue({[`${l.value}`]:!0,[`${l.value}-edit-content`]:!0,[`${l.value}-rtl`]:"rtl"===e.direction,[e.component?`${l.value}-${e.component}`:""]:!0},r.class,x.value);return w($("div",ze(ze({},r),{},{class:t}),[$(X$,{ref:u,maxlength:e.maxlength,value:a.current,onChange:c,onKeydown:f,onKeyup:m,onCompositionstart:d,onCompositionend:p,onBlur:g,rows:1,autoSize:void 0===e.autoSize||e.autoSize},null),o.enterIcon?o.enterIcon({className:`${e.prefixCls}-edit-content-confirm`}):$(HS,{class:`${e.prefixCls}-edit-content-confirm`},null)]))}}});let GS;const US={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function YS(e,t){e.setAttribute("aria-hidden","true");const n=function(e){return Array.prototype.slice.apply(e).map((t=>`${t}: ${e.getPropertyValue(t)};`)).join("")}(window.getComputedStyle(t));e.setAttribute("style",n),e.style.position="fixed",e.style.left="0",e.style.height="auto",e.style.minHeight="auto",e.style.maxHeight="auto",e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderTopWidth="0",e.style.borderBottomWidth="0",e.style.top="-999999px",e.style.zIndex="-1000",e.style.textOverflow="clip",e.style.whiteSpace="normal",e.style.webkitLineClamp="none"}const ZS=(e,t,n,o,r)=>{GS||(GS=document.createElement("div"),GS.setAttribute("aria-hidden","true"),document.body.appendChild(GS));const{rows:l,suffix:i=""}=t,a=function(e){const t=document.createElement("div");YS(t,e),t.appendChild(document.createTextNode("text")),document.body.appendChild(t);const n=t.getBoundingClientRect().height;return document.body.removeChild(t),n}(e),s=Math.round(a*l*100)/100;YS(GS,e);const u=L({render:()=>$("div",{style:US},[$("span",{style:US},[n,i]),$("span",{style:US},[o])])});function c(){return Math.round(100*GS.getBoundingClientRect().height)/100-.1<=s}if(u.mount(GS),c())return u.unmount(),{content:n,text:GS.innerHTML,ellipsis:!1};const d=Array.prototype.slice.apply(GS.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter((e=>{let{nodeType:t,data:n}=e;return 8!==t&&""!==n})),p=Array.prototype.slice.apply(GS.childNodes[0].childNodes[1].cloneNode(!0).childNodes);u.unmount();const f=[];GS.innerHTML="";const v=document.createElement("span");GS.appendChild(v);const m=document.createTextNode(r+i);function h(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const l=Math.floor((n+o)/2),i=t.slice(0,l);if(e.textContent=i,n>=o-1)for(let r=o;r>=n;r-=1){const n=t.slice(0,r);if(e.textContent=n,c()||!n)return r===t.length?{finished:!1,vNode:t}:{finished:!0,vNode:n}}return c()?h(e,t,l,o,l):h(e,t,n,l,r)}function g(e){if(3===e.nodeType){const t=e.textContent||"",n=document.createTextNode(t);return function(e){v.insertBefore(e,m)}(n),h(n,t)}return{finished:!1,vNode:null}}return v.appendChild(m),p.forEach((e=>{GS.appendChild(e)})),d.some((e=>{const{finished:t,vNode:n}=g(e);return n&&f.push(n),t})),{content:f,text:GS.innerHTML,ellipsis:!0}};const QS=l({name:"ATypography",inheritAttrs:!1,props:{prefixCls:String,direction:String,component:String},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=tl("typography",e),[i,a]=KS(r);return()=>{var t;const s=De(De({},e),o),{prefixCls:u,direction:c,component:d="article"}=s,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(s,["prefixCls","direction","component"]);return i($(d,ze(ze({},p),{},{class:Ue(r.value,{[`${r.value}-rtl`]:"rtl"===l.value},o.class,a.value)}),{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]}))}}}),JS={"text/plain":"Text","text/html":"Url",default:"Text"};function eO(e,t){let n,o,r,l,i,a=!1;t||(t={});const s=t.debug||!1;try{if(o=(()=>{const e=document.getSelection();if(!e.rangeCount)return function(){};let t=document.activeElement;const n=[];for(let t=0;t<e.rangeCount;t++)n.push(e.getRangeAt(t));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}})(),r=document.createRange(),l=document.getSelection(),i=document.createElement("span"),i.textContent=e,i.style.all="unset",i.style.position="fixed",i.style.top=0,i.style.clip="rect(0, 0, 0, 0)",i.style.whiteSpace="pre",i.style.webkitUserSelect="text",i.style.MozUserSelect="text",i.style.msUserSelect="text",i.style.userSelect="text",i.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),typeof n.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();const n=JS[t.format]||JS.default;window.clipboardData.setData(n,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(i),r.selectNodeContents(i),l.addRange(r),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");a=!0}catch(o){s&&console.error("unable to copy using execCommand: ",o),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),a=!0}catch(o){s&&console.error("unable to copy using clipboardData: ",o),s&&console.error("falling back to prompt"),n=function(e){const t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(n,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(r):l.removeAllRanges()),i&&document.body.removeChild(i),o()}return a}var tO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};function nO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){oO(e,t,n[t])}))}return e}function oO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rO=function(e,t){var n=nO({},e,t.attrs);return $(bd,nO({},n,{icon:tO}),null)};rO.displayName="CopyOutlined",rO.inheritAttrs=!1;var lO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function iO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){aO(e,t,n[t])}))}return e}function aO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sO=function(e,t){var n=iO({},e,t.attrs);return $(bd,iO({},n,{icon:lO}),null)};sO.displayName="EditOutlined",sO.inheritAttrs=!1;const uO=$b("webkitLineClamp"),cO=$b("textOverflow"),dO=()=>({editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}),pO=l({compatConfig:{MODE:3},name:"TypographyBase",inheritAttrs:!1,props:dO(),setup(e,t){let{slots:o,attrs:r,emit:l}=t;const{prefixCls:a,direction:s}=tl("typography",e),u=v({copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:"",copyStr:"",copiedStr:"",editStr:"",copyId:void 0,rafId:void 0,prevProps:void 0,originContent:""}),d=b(),p=b(),f=n((()=>{const t=e.ellipsis;return t?De({rows:1,expandable:!1},"object"==typeof t?t:null):{}}));function m(e){const{onExpand:t}=f.value;u.expanded=!0,null==t||t(e)}function g(t){t.preventDefault(),u.originContent=e.content,j(!0)}function y(e){C(e),j(!1)}function C(t){const{onChange:n}=k.value;t!==e.content&&(l("update:content",t),null==n||n(t))}function S(){var e,t;null===(t=(e=k.value).onCancel)||void 0===t||t.call(e),j(!1)}function O(t){t.preventDefault(),t.stopPropagation();const{copyable:n}=e,o=De({},"object"==typeof n?n:null);void 0===o.text&&(o.text=function(){var t;return e.ellipsis||e.editable?e.content:null===(t=$t(d.value))||void 0===t?void 0:t.innerText}()),eO(o.text||""),u.copied=!0,I((()=>{o.onCopy&&o.onCopy(t),u.copyId=setTimeout((()=>{u.copied=!1}),3e3)}))}h((()=>{u.clientRendered=!0,T()})),x((()=>{clearTimeout(u.copyId),Rt.cancel(u.rafId)})),i([()=>f.value.rows,()=>e.content],(()=>{I((()=>{A()}))}),{flush:"post",deep:!0}),w((()=>{void 0===e.content&&(wn(!e.editable),wn(!e.ellipsis))}));const k=n((()=>{const t=e.editable;return t?De({},"object"==typeof t?t:null):{editing:!1}})),[P,E]=Dc(!1,{value:n((()=>k.value.editing))});function j(e){const{onStart:t}=k.value;e&&t&&t(),E(e)}function A(e){if(e){const{width:t,height:n}=e;if(!t||!n)return}Rt.cancel(u.rafId),u.rafId=Rt((()=>{T()}))}i(P,(e=>{var t;e||null===(t=p.value)||void 0===t||t.focus()}),{flush:"post"});const M=n((()=>{const{rows:t,expandable:n,suffix:o,onEllipsis:r,tooltip:l}=f.value;return!(o||l||e.editable||e.copyable||n||r)&&(1===t?cO:uO)})),T=()=>{const{ellipsisText:t,isEllipsis:n}=u,{rows:o,suffix:r,onEllipsis:l}=f.value;if(!o||o<0||!$t(d.value)||u.expanded||void 0===e.content||M.value)return;const{content:i,text:a,ellipsis:s}=ZS($t(d.value),{rows:o,suffix:r},e.content,N(!0),"...");(t!==a||u.isEllipsis!==s)&&(u.ellipsisText=a,u.ellipsisContent=i,u.isEllipsis=s,n!==s&&l&&l(s))};function z(e){const{expandable:t,symbol:n}=f.value;if(!t||!e&&(u.expanded||!u.isEllipsis))return null;const r=(o.ellipsisSymbol?o.ellipsisSymbol():n)||u.expandStr;return $("a",{key:"expand",class:`${a.value}-expand`,onClick:m,"aria-label":u.expandStr},[r])}function D(){if(!e.editable)return;const{tooltip:t,triggerType:n=["icon"]}=e.editable,r=o.editableIcon?o.editableIcon():$(sO,{role:"button"},null),l=o.editableTooltip?o.editableTooltip():u.editStr,i="string"==typeof l?l:"";return-1!==n.indexOf("icon")?$(uh,{key:"edit",title:!1===t?"":l},{default:()=>[$(aS,{ref:p,class:`${a.value}-edit`,onClick:g,"aria-label":i},{default:()=>[r]})]}):null}function R(){if(!e.copyable)return;const{tooltip:t}=e.copyable,n=u.copied?u.copiedStr:u.copyStr,r=o.copyableTooltip?o.copyableTooltip({copied:u.copied}):n,l="string"==typeof r?r:"",i=u.copied?$(jd,null,null):$(rO,null,null),s=o.copyableIcon?o.copyableIcon({copied:!!u.copied}):i;return $(uh,{key:"copy",title:!1===t?"":r},{default:()=>[$(aS,{class:[`${a.value}-copy`,{[`${a.value}-copy-success`]:u.copied}],onClick:O,"aria-label":l},{default:()=>[s]})]})}function N(e){return[z(e),D(),R()].filter((e=>e))}return()=>{var t;const{triggerType:n=["icon"]}=k.value,l=e.ellipsis||e.editable?void 0!==e.content?e.content:null===(t=o.default)||void 0===t?void 0:t.call(o):o.default?o.default():e.content;return P.value?function(){const{class:t,style:n}=r,{maxlength:l,autoSize:i,onEnd:c}=k.value;return $(qS,{class:t,style:n,prefixCls:a.value,value:e.content,originContent:u.originContent,maxlength:l,autoSize:i,onSave:y,onChange:C,onCancel:S,onEnd:c,direction:s.value,component:e.component},{enterIcon:o.editableEnterIcon})}():$(Kt,{componentName:"Text",children:t=>{const i=De(De({},e),r),{type:p,disabled:v,content:m,class:h,style:y}=i,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(i,["type","disabled","content","class","style"]),{rows:w,suffix:x,tooltip:C}=f.value,{edit:S,copy:O,copied:k,expand:P}=t;u.editStr=S,u.copyStr=O,u.copiedStr=k,u.expandStr=P;const I=nl(b,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","onUpdate:content"]),E=M.value,j=1===w&&E,T=w&&w>1&&E;let z=l;if(w&&u.isEllipsis&&!u.expanded&&!E){const{title:e}=b;let t=e||"";!e&&("string"==typeof l||"number"==typeof l)&&(t=String(l)),t=null==t?void 0:t.slice(String(u.ellipsisContent||"").length),z=$(c,null,[B(u.ellipsisContent),$("span",{title:t,"aria-hidden":"true"},["..."]),x])}else z=$(c,null,[l,x]);z=function(e,t){let{mark:n,code:o,underline:r,delete:l,strong:i,keyboard:a}=e,s=t;function u(e,t){if(!e)return;const n=function(){return s}();s=$(t,null,{default:()=>[n]})}return u(i,"strong"),u(r,"u"),u(l,"del"),u(o,"code"),u(n,"mark"),u(a,"kbd"),s}(e,z);const D=C&&w&&u.isEllipsis&&!u.expanded&&!E,R=o.ellipsisTooltip?o.ellipsisTooltip():C;return $(jt,{onResize:A,disabled:!w},{default:()=>[$(QS,ze({ref:d,class:[{[`${a.value}-${p}`]:p,[`${a.value}-disabled`]:v,[`${a.value}-ellipsis`]:w,[`${a.value}-single-line`]:1===w&&!u.isEllipsis,[`${a.value}-ellipsis-single-line`]:j,[`${a.value}-ellipsis-multiple-line`]:T},h],style:De(De({},y),{WebkitLineClamp:T?w:void 0}),"aria-label":undefined,direction:s.value,onClick:-1!==n.indexOf("text")?g:()=>{}},I),{default:()=>[D?$(uh,{title:!0===C?l:R},{default:()=>[$("span",null,[z])]}):z,N()]})]})}},null)}}});const fO=(e,t)=>{let{slots:n,attrs:o}=t;const r=De(De({},e),o),{ellipsis:l,rel:i}=r,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(r,["ellipsis","rel"]),s=De(De({},a),{rel:void 0===i&&"_blank"===a.target?"noopener noreferrer":i,ellipsis:!!l,component:"a"});return delete s.navigate,$(pO,s,n)};fO.displayName="ATypographyLink",fO.inheritAttrs=!1,fO.props=nl(De(De({},dO()),{ellipsis:{type:Boolean,default:void 0}}),["component"]);const vO=(e,t)=>{let{slots:n,attrs:o}=t;const r=De(De(De({},e),{component:"div"}),o);return $(pO,r,n)};vO.displayName="ATypographyParagraph",vO.inheritAttrs=!1,vO.props=nl(dO(),["component"]);const mO=(e,t)=>{let{slots:n,attrs:o}=t;const{ellipsis:r}=e,l=De(De(De({},e),{ellipsis:r&&"object"==typeof r?nl(r,["expandable","rows"]):r,component:"span"}),o);return $(pO,l,n)};mO.displayName="ATypographyText",mO.inheritAttrs=!1,mO.props=De(De({},nl(dO(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}});const hO=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}(1,2,3,4,5),gO=(e,t)=>{let{slots:n,attrs:o}=t;const{level:r=1}=e,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["level"]);let i;i=hO.includes(r)?`h${r}`:"h1";const a=De(De(De({},l),{component:i}),o);return $(pO,a,n)};function yO(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function bO(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});const n=new FormData;e.data&&Object.keys(e.data).forEach((t=>{const o=e.data[t];Array.isArray(o)?o.forEach((e=>{n.append(`${t}[]`,e)})):n.append(t,o)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,o=new Error(n);return o.status=t.status,o.method=e.method,o.url=e.action,o}(e,t),yO(t)):e.onSuccess(yO(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};return null!==o["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach((e=>{null!==o[e]&&t.setRequestHeader(e,o[e])})),t.send(n),{abort(){t.abort()}}}gO.displayName="ATypographyTitle",gO.inheritAttrs=!1,gO.props=De(De({},nl(dO(),["component","strong"])),{level:Number}),QS.Text=mO,QS.Title=gO,QS.Paragraph=vO,QS.Link=fO,QS.Base=pO,QS.install=function(e){return e.component(QS.name,QS),e.component(QS.Text.displayName,mO),e.component(QS.Title.displayName,gO),e.component(QS.Paragraph.displayName,vO),e.component(QS.Link.displayName,fO),e};const wO=+new Date;let xO=0;function $O(){return`vc-upload-${wO}-${++xO}`}const CO=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),o=e.name||"",r=e.type||"",l=r.replace(/\/.*$/,"");return n.some((e=>{const t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){const e=o.toLowerCase(),n=t.toLowerCase();let r=[n];return(".jpg"===n||".jpeg"===n)&&(r=[".jpg",".jpeg"]),r.some((t=>e.endsWith(t)))}return/\/\*$/.test(t)?l===t.replace(/\/.*$/,""):!(r!==t&&!/^\w+$/.test(t))}))}return!0};const SO=(e,t,n)=>{const o=(e,r)=>{e.path=r||"",e.isFile?e.file((o=>{n(o)&&(e.fullPath&&!o.webkitRelativePath&&(Object.defineProperties(o,{webkitRelativePath:{writable:!0}}),o.webkitRelativePath=e.fullPath.replace(/^\//,""),Object.defineProperties(o,{webkitRelativePath:{writable:!1}})),t([o]))})):e.isDirectory&&function(e,t){const n=e.createReader();let o=[];!function e(){n.readEntries((n=>{const r=Array.prototype.slice.apply(n);o=o.concat(r),r.length?e():t(o)}))}()}(e,(t=>{t.forEach((t=>{o(t,`${r}${e.name}/`)}))}))};e.forEach((e=>{o(e.webkitGetAsEntry())}))},OO=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var kO=function(e,t,n,o){return new(n||(n=Promise))((function(r,l){function i(e){try{s(o.next(e))}catch(e){l(e)}}function a(e){try{s(o.throw(e))}catch(e){l(e)}}function s(e){e.done?r(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(i,a)}s((o=o.apply(e,t||[])).next())}))};const PO=l({compatConfig:{MODE:3},name:"AjaxUploader",inheritAttrs:!1,props:OO(),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=b($O()),i={},a=b();let s=!1;const u=(t,n)=>kO(this,void 0,void 0,(function*(){const{beforeUpload:o}=e;let r=t;if(o){try{r=yield o(t,n)}catch{r=!1}if(!1===r)return{origin:t,parsedFile:null,action:null,data:null}}const{action:l}=e;let i;i="function"==typeof l?yield l(t):l;const{data:a}=e;let s;s="function"==typeof a?yield a(t):a;const u="object"!=typeof r&&"string"!=typeof r||!r?t:r;let c;c=u instanceof File?u:new File([u],t.name,{type:t.type});const d=c;return d.uid=t.uid,{origin:t,data:s,parsedFile:d,action:i}})),c=e=>{if(e){const t=e.uid?e.uid:e;i[t]&&i[t].abort&&i[t].abort(),delete i[t]}else Object.keys(i).forEach((e=>{i[e]&&i[e].abort&&i[e].abort(),delete i[e]}))};h((()=>{s=!0})),x((()=>{s=!1,c()}));const d=t=>{const n=[...t],o=n.map((e=>(e.uid=$O(),u(e,n))));Promise.all(o).then((t=>{const{onBatchStart:n}=e;null==n||n(t.map((e=>{let{origin:t,parsedFile:n}=e;return{file:t,parsedFile:n}}))),t.filter((e=>null!==e.parsedFile)).forEach((t=>{(t=>{let{data:n,origin:o,action:r,parsedFile:l}=t;if(!s)return;const{onStart:a,customRequest:u,name:c,headers:d,withCredentials:p,method:f}=e,{uid:v}=o,m=u||bO,h={action:r,filename:c,data:n,file:l,headers:d,withCredentials:p,method:f||"post",onProgress:t=>{const{onProgress:n}=e;null==n||n(t,l)},onSuccess:(t,n)=>{const{onSuccess:o}=e;null==o||o(t,l,n),delete i[v]},onError:(t,n)=>{const{onError:o}=e;null==o||o(t,n,l),delete i[v]}};a(o),i[v]=m(h)})(t)}))}))},p=t=>{const{accept:n,directory:o}=e,{files:r}=t.target,i=[...r].filter((e=>!o||CO(e,n)));d(i),l.value=$O()},f=t=>{const n=a.value;if(!n)return;const{onClick:o}=e;n.click(),o&&o(t)},v=e=>{"Enter"===e.key&&f(e)},m=t=>{const{multiple:n}=e;if(t.preventDefault(),"dragover"!==t.type)if(e.directory)SO(Array.prototype.slice.call(t.dataTransfer.items),d,(t=>CO(t,e.accept)));else{const o=ev(Array.prototype.slice.call(t.dataTransfer.files),(t=>CO(t,e.accept)));let r=o[0];const l=o[1];!1===n&&(r=r.slice(0,1)),d(r),l.length&&e.onReject&&e.onReject(l)}};return r({abort:c}),()=>{var t;const{componentTag:r,prefixCls:i,disabled:s,id:u,multiple:c,accept:d,capture:h,directory:g,openFileDialogOnClick:y,onMouseenter:b,onMouseleave:w}=e,x=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),C={[i]:!0,[`${i}-disabled`]:s,[o.class]:!!o.class},S=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return $(r,ze(ze({},s?{}:{onClick:y?f:()=>{},onKeydown:y?v:()=>{},onMouseenter:b,onMouseleave:w,onDrop:m,onDragover:m,tabindex:"0"}),{},{class:C,role:"button",style:o.style}),{default:()=>[$("input",ze(ze(ze({},Hu(x,{aria:!0,data:!0})),{},{id:u,type:"file",ref:a,onClick:e=>e.stopPropagation(),onCancel:e=>e.stopPropagation(),key:l.value,style:{display:"none"},accept:d},S),{},{multiple:c,onChange:p},null!=h?{capture:h}:{}),null),null===(t=n.default)||void 0===t?void 0:t.call(n)]})}}});function IO(){}const EO=l({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:bt(OO(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:IO,onError:IO,onSuccess:IO,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=b();return r({abort:e=>{var t;null===(t=l.value)||void 0===t||t.abort(e)}}),()=>$(PO,ze(ze(ze({},e),o),{},{ref:l}),n)}});var jO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};function AO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){MO(e,t,n[t])}))}return e}function MO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var TO=function(e,t){var n=AO({},e,t.attrs);return $(bd,AO({},n,{icon:jO}),null)};TO.displayName="PaperClipOutlined",TO.inheritAttrs=!1;var zO={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};function DO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){RO(e,t,n[t])}))}return e}function RO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var BO=function(e,t){var n=DO({},e,t.attrs);return $(bd,DO({},n,{icon:zO}),null)};BO.displayName="PictureTwoTone",BO.inheritAttrs=!1;var NO={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};function FO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){HO(e,t,n[t])}))}return e}function HO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var LO=function(e,t){var n=FO({},e,t.attrs);return $(bd,FO({},n,{icon:NO}),null)};function _O(){return{capture:fe([Boolean,String]),type:pe(),name:String,defaultFileList:de(),fileList:de(),action:fe([String,Function]),directory:se(),data:fe([Object,Function]),method:pe(),headers:ae(),showUploadList:fe([Boolean,Object]),multiple:se(),accept:String,beforeUpload:ue(),onChange:ue(),"onUpdate:fileList":ue(),onDrop:ue(),listType:pe(),onPreview:ue(),onDownload:ue(),onReject:ue(),onRemove:ue(),remove:ue(),supportServerRender:se(),disabled:se(),prefixCls:String,customRequest:ue(),withCredentials:se(),openFileDialogOnClick:se(),locale:ae(),id:String,previewFile:ue(),transformFile:ue(),iconRender:ue(),isImageUrl:ue(),progress:ae(),itemRender:ue(),maxCount:Number,height:fe([Number,String]),removeIcon:ue(),downloadIcon:ue(),previewIcon:ue()}}function WO(e){return De(De({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function VO(e,t){const n=[...t],o=n.findIndex((t=>{let{uid:n}=t;return n===e.uid}));return-1===o?n.push(e):n[o]=e,n}function XO(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter((t=>t[n]===e[n]))[0]}LO.displayName="FileTwoTone",LO.inheritAttrs=!1;const KO=e=>0===e.indexOf("image/"),qO=200;var GO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};function UO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){YO(e,t,n[t])}))}return e}function YO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ZO=function(e,t){var n=UO({},e,t.attrs);return $(bd,UO({},n,{icon:GO}),null)};ZO.displayName="DownloadOutlined",ZO.inheritAttrs=!1;const QO=l({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:{prefixCls:String,locale:ae(void 0),file:ae(),items:de(),listType:pe(),isImgUrl:ue(),showRemoveIcon:se(),showDownloadIcon:se(),showPreviewIcon:se(),removeIcon:ue(),downloadIcon:ue(),previewIcon:ue(),iconRender:ue(),actionIconRender:ue(),itemRender:ue(),onPreview:ue(),onClose:ue(),onDownload:ue(),progress:ae()},setup(e,t){let{slots:o,attrs:r}=t;var l;const a=s(!1),u=s();h((()=>{u.value=setTimeout((()=>{a.value=!0}),300)})),x((()=>{clearTimeout(u.value)}));const c=s(null===(l=e.file)||void 0===l?void 0:l.status);i((()=>{var t;return null===(t=e.file)||void 0===t?void 0:t.status}),(e=>{"removed"!==e&&(c.value=e)}));const{rootPrefixCls:d}=tl("upload",e),p=n((()=>uu(`${d.value}-fade`)));return()=>{var t,n;const{prefixCls:l,locale:i,listType:s,file:u,items:d,progress:f,iconRender:v=o.iconRender,actionIconRender:m=o.actionIconRender,itemRender:h=o.itemRender,isImgUrl:g,showPreviewIcon:y,showRemoveIcon:b,showDownloadIcon:w,previewIcon:x=o.previewIcon,removeIcon:C=o.removeIcon,downloadIcon:k=o.downloadIcon,onPreview:P,onDownload:I,onClose:E}=e,{class:j,style:M}=r,T=v({file:u});let z=$("div",{class:`${l}-text-icon`},[T]);if("picture"===s||"picture-card"===s)if("uploading"===c.value||!u.thumbUrl&&!u.url){const e={[`${l}-list-item-thumbnail`]:!0,[`${l}-list-item-file`]:"uploading"!==c.value};z=$("div",{class:e},[T])}else{const e=null!=g&&g(u)?$("img",{src:u.thumbUrl||u.url,alt:u.name,class:`${l}-list-item-image`,crossorigin:u.crossOrigin},null):T,t={[`${l}-list-item-thumbnail`]:!0,[`${l}-list-item-file`]:g&&!g(u)};z=$("a",{class:t,onClick:e=>P(u,e),href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[e])}const D={[`${l}-list-item`]:!0,[`${l}-list-item-${c.value}`]:!0},R="string"==typeof u.linkProps?JSON.parse(u.linkProps):u.linkProps,B=b?m({customIcon:C?C({file:u}):$(RS,null,null),callback:()=>E(u),prefixCls:l,title:i.removeFile}):null,N=w&&"done"===c.value?m({customIcon:k?k({file:u}):$(ZO,null,null),callback:()=>I(u),prefixCls:l,title:i.downloadFile}):null,F="picture-card"!==s&&$("span",{key:"download-delete",class:[`${l}-list-item-actions`,{picture:"picture"===s}]},[N,B]),H=`${l}-list-item-name`,L=u.url?[$("a",ze(ze({key:"view",target:"_blank",rel:"noopener noreferrer",class:H,title:u.name},R),{},{href:u.url,onClick:e=>P(u,e)}),[u.name]),F]:[$("span",{key:"view",class:H,onClick:e=>P(u,e),title:u.name},[u.name]),F],_=y?$("a",{href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:u.url||u.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:e=>P(u,e),title:i.previewFile},[x?x({file:u}):$(U$,null,null)]):null,W="picture-card"===s&&"uploading"!==c.value&&$("span",{class:`${l}-list-item-actions`},[_,"done"===c.value&&N,B]),V=$("div",{class:D},[z,L,W,a.value&&$(S,p.value,{default:()=>[O($("div",{class:`${l}-list-item-progress`},["percent"in u?$(MS,ze(ze({},f),{},{type:"line",percent:u.percent}),null):null]),[[A,"uploading"===c.value]])]})]),X={[`${l}-list-item-container`]:!0,[`${j}`]:!!j},K=u.response&&"string"==typeof u.response?u.response:(null===(t=u.error)||void 0===t?void 0:t.statusText)||(null===(n=u.error)||void 0===n?void 0:n.message)||i.uploadError,q="error"===c.value?$(uh,{title:K,getPopupContainer:e=>e.parentNode},{default:()=>[V]}):V;return $("div",{class:X,style:M},[h?h({originNode:q,file:u,fileList:d,actions:{download:I.bind(null,u),preview:P.bind(null,u),remove:E.bind(null,u)}}):q])}}}),JO=(e,t)=>{let{slots:n}=t;var o;return Pt(null===(o=n.default)||void 0===o?void 0:o.call(n))[0]},ek=l({compatConfig:{MODE:3},name:"AUploadList",props:bt({listType:pe(),onPreview:ue(),onDownload:ue(),onRemove:ue(),items:de(),progress:ae(),prefixCls:pe(),showRemoveIcon:se(),showDownloadIcon:se(),showPreviewIcon:se(),removeIcon:ue(),downloadIcon:ue(),previewIcon:ue(),locale:ae(void 0),previewFile:ue(),iconRender:ue(),isImageUrl:ue(),appendAction:ue(),appendActionVisible:se(),itemRender:ue()},{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:function(e){return new Promise((t=>{if(!e.type||!KO(e.type))return void t("");const n=document.createElement("canvas");n.width=qO,n.height=qO,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const o=n.getContext("2d"),r=new Image;if(r.onload=()=>{const{width:e,height:l}=r;let i=qO,a=qO,s=0,u=0;e>l?(a=l*(qO/e),u=-(a-i)/2):(i=e*(qO/l),s=-(i-a)/2),o.drawImage(r,s,u,i,a);const c=n.toDataURL();document.body.removeChild(n),t(c)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.addEventListener("load",(()=>{t.result&&(r.src=t.result)})),t.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)}))},isImageUrl:e=>{if(e.type&&!e.thumbUrl)return KO(e.type);const t=e.thumbUrl||e.url||"",n=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n))||!(/^data:/.test(t)||n)},items:[],appendActionVisible:!0}),setup(e,t){let{slots:o,expose:r}=t;const l=s(!1);h((()=>{l.value}));const a=s([]);i((()=>e.items),(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a.value=e.slice()}),{immediate:!0,deep:!0}),w((()=>{if("picture"!==e.listType&&"picture-card"!==e.listType)return;let t=!1;(e.items||[]).forEach(((n,o)=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(n.originFileObj instanceof File||n.originFileObj instanceof Blob)||void 0!==n.thumbUrl||(n.thumbUrl="",e.previewFile&&e.previewFile(n.originFileObj).then((e=>{const r=e||"";r!==n.thumbUrl&&(a.value[o].thumbUrl=r,t=!0)})))})),t&&u(a)}));const c=(t,n)=>{if(e.onPreview)return null==n||n.preventDefault(),e.onPreview(t)},d=t=>{"function"==typeof e.onDownload?e.onDownload(t):t.url&&window.open(t.url)},p=t=>{var n;null===(n=e.onRemove)||void 0===n||n.call(e,t)},f=t=>{let{file:n}=t;const r=e.iconRender||o.iconRender;if(r)return r({file:n,listType:e.listType});const l="uploading"===n.status,i=e.isImageUrl&&e.isImageUrl(n)?$(BO,null,null):$(LO,null,null);let a=$(l?kd:TO,null,null);return"picture"===e.listType?a=l?$(kd,null,null):i:"picture-card"===e.listType&&(a=l?e.locale.uploading:i),a},v=e=>{const{customIcon:t,callback:n,prefixCls:o,title:r}=e,l={type:"text",size:"small",title:r,onClick:()=>{n()},class:`${o}-list-item-action`};return It(t)?$(dg,l,{icon:()=>t}):$(dg,l,{default:()=>[$("span",null,[t])]})};r({handlePreview:c,handleDownload:d});const{prefixCls:m,rootPrefixCls:g}=tl("upload",e),y=n((()=>({[`${m.value}-list`]:!0,[`${m.value}-list-${e.listType}`]:!0}))),b=n((()=>{const t=De({},sy(`${g.value}-motion-collapse`));delete t.onAfterAppear,delete t.onAfterEnter,delete t.onAfterLeave;const n=De(De({},cu(`${m.value}-${"picture-card"===e.listType?"animate-inline":"animate"}`)),{class:y.value,appear:l.value});return"picture-card"!==e.listType?De(De({},t),n):n}));return()=>{const{listType:t,locale:n,isImageUrl:r,showPreviewIcon:l,showRemoveIcon:i,showDownloadIcon:s,removeIcon:u,previewIcon:h,downloadIcon:g,progress:y,appendAction:w,itemRender:x,appendActionVisible:C}=e,S=null==w?void 0:w(),k=a.value;return $(H,ze(ze({},b.value),{},{tag:"div"}),{default:()=>[k.map((e=>{const{uid:a}=e;return $(QO,{key:a,locale:n,prefixCls:m.value,file:e,items:k,progress:y,listType:t,isImgUrl:r,showPreviewIcon:l,showRemoveIcon:i,showDownloadIcon:s,onPreview:c,onDownload:d,onClose:p,removeIcon:u,previewIcon:h,downloadIcon:g,itemRender:x},De(De({},o),{iconRender:f,actionIconRender:v}))})),w?O($(JO,{key:"__ant_upload_appendAction"},{default:()=>S}),[[A,!!C]]):null]})}}}),tk=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}},nk=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSize:r,lineHeight:l}=e,i=`${t}-list-item`,a=`${i}-actions`,s=`${i}-action`,u=Math.round(r*l);return{[`${t}-wrapper`]:{[`${t}-list`]:De(De({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{lineHeight:e.lineHeight,[i]:{position:"relative",height:e.lineHeight*r,marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${i}-name`]:De(De({},Pr),{padding:`0 ${e.paddingXS}px`,lineHeight:l,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[a]:{[s]:{opacity:0},[`${s}${n}-btn-sm`]:{height:u,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`\n ${s}:focus,\n &.picture ${s}\n `]:{opacity:1},[o]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${o}`]:{color:e.colorText}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:r},[`${i}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:r+e.paddingXS,fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${s}`]:{opacity:1,color:e.colorText},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${o}`]:{color:e.colorError},[a]:{[`${o}, ${o}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},ok=new jo("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),rk=new jo("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),lk=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:ok},[`${n}-leave`]:{animationName:rk}}},ok,rk]},ik=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:r}=e,l=`${t}-list`,i=`${l}-item`;return{[`${t}-wrapper`]:{[`${l}${l}-picture, ${l}${l}-picture-card`]:{[i]:{position:"relative",height:o+2*e.lineWidth+2*e.paddingXS,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${i}-thumbnail`]:De(De({},Pr),{width:o,height:o,lineHeight:`${o+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${i}-progress`]:{bottom:r,width:`calc(100% - ${2*e.paddingSM}px)`,marginTop:0,paddingInlineStart:o+e.paddingXS}},[`${i}-error`]:{borderColor:e.colorError,[`${i}-thumbnail ${n}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${i}-uploading`]:{borderStyle:"dashed",[`${i}-name`]:{marginBottom:r}}}}}},ak=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:r}=e,l=`${t}-list`,i=`${l}-item`,a=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:De(De({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:a,height:a,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${l}${l}-picture-card`]:{[`${l}-item-container`]:{display:"inline-block",width:a,height:a,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[i]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${2*e.paddingXS}px)`,height:`calc(100% - ${2*e.paddingXS}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${i}:hover`]:{[`&::before, ${i}-actions`]:{opacity:1}},[`${i}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:o,margin:`0 ${e.marginXXS}px`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${i}-actions, ${i}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new Qo(r).setAlpha(.65).toRgbString(),"&:hover":{color:r}}},[`${i}-thumbnail, ${i}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${i}-name`]:{display:"none",textAlign:"center"},[`${i}-file + ${i}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${2*e.paddingXS}px)`},[`${i}-uploading`]:{[`&${i}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${i}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${2*e.paddingXS}px)`,paddingInlineStart:0}}})}},sk=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},uk=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:De(De({},Ir(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},ck=Tr("Upload",(e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightLG:l}=e,i=Rr(e,{uploadThumbnailSize:2*t,uploadProgressOffset:Math.round(n*o)/2+r,uploadPicCardSize:2.55*l});return[uk(i),tk(i),ik(i),ak(i),nk(i),lk(i),sk(i),Xv(i)]}));var dk=function(e,t,n,o){return new(n||(n=Promise))((function(r,l){function i(e){try{s(o.next(e))}catch(e){l(e)}}function a(e){try{s(o.throw(e))}catch(e){l(e)}}function s(e){e.done?r(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(i,a)}s((o=o.apply(e,t||[])).next())}))};const pk=`__LIST_IGNORE_${Date.now()}__`,fk=l({compatConfig:{MODE:3},name:"AUpload",inheritAttrs:!1,props:bt(_O(),{type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",supportServerRender:!0}),setup(e,t){let{slots:o,attrs:r,expose:l}=t;const i=Gd(),{prefixCls:a,direction:s,disabled:u}=tl("upload",e),[c,d]=ck(a),p=Ht(),f=n((()=>{var e;return null!==(e=u.value)&&void 0!==e?e:p.value})),[v,m]=Dc(e.defaultFileList||[],{value:E(e,"fileList"),postState:e=>{const t=Date.now();return(e??[]).map(((e,n)=>(!e.uid&&!Object.isFrozen(e)&&(e.uid=`__AUTO__${t}_${n}__`),e)))}}),g=b("drop"),y=b(null);h((()=>{Bl(void 0!==e.fileList||void 0===r.value,"Upload","`value` is not a valid prop, do you mean `fileList`?"),Bl(void 0===e.transformFile,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),Bl(void 0===e.remove,"Upload","`remove` props is deprecated. Please use `remove` event.")}));const w=(t,n,o)=>{var r,l;let a=[...n];1===e.maxCount?a=a.slice(-1):e.maxCount&&(a=a.slice(0,e.maxCount)),m(a);const s={file:t,fileList:a};o&&(s.event=o),null===(r=e["onUpdate:fileList"])||void 0===r||r.call(e,s.fileList),null===(l=e.onChange)||void 0===l||l.call(e,s),i.onFieldChange()},x=(t,n)=>dk(this,void 0,void 0,(function*(){const{beforeUpload:o,transformFile:r}=e;let l=t;if(o){const e=yield o(t,n);if(!1===e)return!1;if(delete t[pk],e===pk)return Object.defineProperty(t,pk,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(l=e)}return r&&(l=yield r(l)),l})),C=e=>{const t=e.filter((e=>!e.file[pk]));if(!t.length)return;const n=t.map((e=>WO(e.file)));let o=[...v.value];n.forEach((e=>{o=VO(e,o)})),n.forEach(((e,n)=>{let r=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch{n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,r=n}w(r,o)}))},S=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch{}if(!XO(t,v.value))return;const o=WO(t);o.status="done",o.percent=100,o.response=e,o.xhr=n;const r=VO(o,v.value);w(o,r)},O=(e,t)=>{if(!XO(t,v.value))return;const n=WO(t);n.status="uploading",n.percent=e.percent;const o=VO(n,v.value);w(n,o,e)},k=(e,t,n)=>{if(!XO(n,v.value))return;const o=WO(n);o.error=e,o.response=t,o.status="error";const r=VO(o,v.value);w(o,r)},P=t=>{let n;const o=e.onRemove||e.remove;Promise.resolve("function"==typeof o?o(t):o).then((e=>{var o,r;if(!1===e)return;const l=function(e,t){const n=void 0!==e.uid?"uid":"name",o=t.filter((t=>t[n]!==e[n]));return o.length===t.length?null:o}(t,v.value);l&&(n=De(De({},t),{status:"removed"}),null===(o=v.value)||void 0===o||o.forEach((e=>{const t=void 0!==n.uid?"uid":"name";e[t]===n[t]&&!Object.isFrozen(e)&&(e.status="removed")})),null===(r=y.value)||void 0===r||r.abort(n),w(n,l))}))},I=t=>{var n;g.value=t.type,"drop"===t.type&&(null===(n=e.onDrop)||void 0===n||n.call(e,t))};l({onBatchStart:C,onSuccess:S,onProgress:O,onError:k,fileList:v,upload:y});const[j]=qt("Upload",Xt.Upload,n((()=>e.locale))),A=(t,n)=>{const{removeIcon:r,previewIcon:l,downloadIcon:i,previewFile:s,onPreview:u,onDownload:c,isImageUrl:d,progress:p,itemRender:m,iconRender:h,showUploadList:g}=e,{showDownloadIcon:y,showPreviewIcon:b,showRemoveIcon:w}="boolean"==typeof g?{}:g;return g?$(ek,{prefixCls:a.value,listType:e.listType,items:v.value,previewFile:s,onPreview:u,onDownload:c,onRemove:P,showRemoveIcon:!f.value&&w,showPreviewIcon:b,showDownloadIcon:y,removeIcon:r,previewIcon:l,downloadIcon:i,iconRender:h,locale:j.value,isImageUrl:d,progress:p,itemRender:m,appendActionVisible:n,appendAction:t},De({},o)):null==t?void 0:t()};return()=>{var t,n,l;const{listType:u,type:p}=e,{class:m,style:h}=r,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(r,["class","style"]),w=De(De(De({onBatchStart:C,onError:k,onProgress:O,onSuccess:S},b),e),{id:null!==(t=e.id)&&void 0!==t?t:i.id.value,prefixCls:a.value,beforeUpload:x,onChange:void 0,disabled:f.value});delete w.remove,(!o.default||f.value)&&delete w.id;const P={[`${a.value}-rtl`]:"rtl"===s.value};if("drag"===p){const e=Ue(a.value,{[`${a.value}-drag`]:!0,[`${a.value}-drag-uploading`]:v.value.some((e=>"uploading"===e.status)),[`${a.value}-drag-hover`]:"dragover"===g.value,[`${a.value}-disabled`]:f.value,[`${a.value}-rtl`]:"rtl"===s.value},r.class,d.value);return c($("span",ze(ze({},r),{},{class:Ue(`${a.value}-wrapper`,P,m,d.value)}),[$("div",{class:e,onDrop:I,onDragover:I,onDragleave:I,style:r.style},[$(EO,ze(ze({},w),{},{ref:y,class:`${a.value}-btn`}),ze({default:()=>[$("div",{class:`${a.value}-drag-container`},[null===(n=o.default)||void 0===n?void 0:n.call(o)])]},o))]),A()]))}const E=Ue(a.value,{[`${a.value}-select`]:!0,[`${a.value}-select-${u}`]:!0,[`${a.value}-disabled`]:f.value,[`${a.value}-rtl`]:"rtl"===s.value}),j=xt(null===(l=o.default)||void 0===l?void 0:l.call(o)),M=e=>$("div",{class:E,style:e},[$(EO,ze(ze({},w),{},{ref:y}),o)]);return c("picture-card"===u?$("span",ze(ze({},r),{},{class:Ue(`${a.value}-wrapper`,`${a.value}-picture-card-wrapper`,P,r.class,d.value)}),[A(M,!(!j||!j.length))]):$("span",ze(ze({},r),{},{class:Ue(`${a.value}-wrapper`,P,r.class,d.value)}),[M(j&&j.length?void 0:{display:"none"}),A()]))}}});var vk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const mk=l({compatConfig:{MODE:3},name:"AUploadDragger",inheritAttrs:!1,props:_O(),setup(e,t){let{slots:n,attrs:o}=t;return()=>{const{height:t}=e,r=vk(e,["height"]),{style:l}=o,i=vk(o,["style"]),a=De(De(De({},r),i),{type:"drag",style:De(De({},l),{height:"number"==typeof t?`${t}px`:t})});return $(fk,a,n)}}}),hk=De(fk,{Dragger:mk,LIST_IGNORE:pk,install:e=>(e.component(fk.name,fk),e.component(mk.name,mk),e)});var gk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"};function yk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){bk(e,t,n[t])}))}return e}function bk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wk=function(e,t){var n=yk({},e,t.attrs);return $(bd,yk({},n,{icon:gk}),null)};wk.displayName="ArrowUpOutlined",wk.inheritAttrs=!1;var xk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"};function $k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Ck(e,t,n[t])}))}return e}function Ck(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sk=function(e,t){var n=$k({},e,t.attrs);return $(bd,$k({},n,{icon:xk}),null)};Sk.displayName="AudioMutedOutlined",Sk.inheritAttrs=!1;var Ok={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"};function kk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Pk(e,t,n[t])}))}return e}function Pk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ik=function(e,t){var n=kk({},e,t.attrs);return $(bd,kk({},n,{icon:Ok}),null)};Ik.displayName="AudioOutlined",Ik.inheritAttrs=!1;var Ek={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};function jk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Ak(e,t,n[t])}))}return e}function Ak(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mk=function(e,t){var n=jk({},e,t.attrs);return $(bd,jk({},n,{icon:Ek}),null)};Mk.displayName="ClearOutlined",Mk.inheritAttrs=!1;var Tk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"};function zk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Dk(e,t,n[t])}))}return e}function Dk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rk=function(e,t){var n=zk({},e,t.attrs);return $(bd,zk({},n,{icon:Tk}),null)};Rk.displayName="FileExcelFilled",Rk.inheritAttrs=!1;var Bk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"};function Nk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Fk(e,t,n[t])}))}return e}function Fk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hk=function(e,t){var n=Nk({},e,t.attrs);return $(bd,Nk({},n,{icon:Bk}),null)};Hk.displayName="FileImageFilled",Hk.inheritAttrs=!1;var Lk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"};function _k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Wk(e,t,n[t])}))}return e}function Wk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vk=function(e,t){var n=_k({},e,t.attrs);return $(bd,_k({},n,{icon:Lk}),null)};Vk.displayName="FileMarkdownFilled",Vk.inheritAttrs=!1;var Xk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"};function Kk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){qk(e,t,n[t])}))}return e}function qk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gk=function(e,t){var n=Kk({},e,t.attrs);return $(bd,Kk({},n,{icon:Xk}),null)};Gk.displayName="FilePdfFilled",Gk.inheritAttrs=!1;var Uk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"};function Yk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Zk(e,t,n[t])}))}return e}function Zk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qk=function(e,t){var n=Yk({},e,t.attrs);return $(bd,Yk({},n,{icon:Uk}),null)};Qk.displayName="FilePptFilled",Qk.inheritAttrs=!1;var Jk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"};function eP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){tP(e,t,n[t])}))}return e}function tP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nP=function(e,t){var n=eP({},e,t.attrs);return $(bd,eP({},n,{icon:Jk}),null)};nP.displayName="FileTextFilled",nP.inheritAttrs=!1;var oP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"};function rP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){lP(e,t,n[t])}))}return e}function lP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iP=function(e,t){var n=rP({},e,t.attrs);return $(bd,rP({},n,{icon:oP}),null)};iP.displayName="FileWordFilled",iP.inheritAttrs=!1;var aP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"};function sP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){uP(e,t,n[t])}))}return e}function uP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cP=function(e,t){var n=sP({},e,t.attrs);return $(bd,sP({},n,{icon:aP}),null)};cP.displayName="FileZipFilled",cP.inheritAttrs=!1;const dP=["wrap","nowrap","wrap-reverse"],pP=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],fP=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];function vP(e,t){return Ue(De(De(De({},((e,t)=>{const n={};return dP.forEach((o=>{n[`${e}-wrap-${o}`]=t.wrap===o})),n})(e,t)),((e,t)=>{const n={};return fP.forEach((o=>{n[`${e}-align-${o}`]=t.align===o})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return pP.forEach((o=>{n[`${e}-justify-${o}`]=t.justify===o})),n})(e,t)))}const mP=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},hP=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},gP=e=>{const{componentCls:t}=e,n={};return dP.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},yP=e=>{const{componentCls:t}=e,n={};return fP.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},bP=e=>{const{componentCls:t}=e,n={};return pP.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n},wP=Tr("Flex",(e=>{const t=Rr(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[mP(t),hP(t),gP(t),yP(t),bP(t)]}));function xP(e){return["small","middle","large"].includes(e)}const $P=l({name:"AFlex",inheritAttrs:!1,props:{prefixCls:pe(),vertical:se(),wrap:pe(),justify:pe(),align:pe(),flex:fe([Number,String]),gap:fe([Number,String]),component:ce()},setup(e,t){let{slots:o,attrs:r}=t;const{flex:l,direction:i}=ye(),{prefixCls:a}=tl("flex",e),[s,u]=wP(a),c=n((()=>{var t;return[a.value,u.value,vP(a.value,e),{[`${a.value}-rtl`]:"rtl"===i.value,[`${a.value}-gap-${e.gap}`]:xP(e.gap),[`${a.value}-vertical`]:null!==(t=e.vertical)&&void 0!==t?t:null==l?void 0:l.value.vertical}]}));return()=>{var t;const{flex:n,gap:l,component:i="div"}=e,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["flex","gap","component"]),u={};return n&&(u.flex=n),l&&!xP(l)&&(u.gap=`${l}px`),s($(i,ze({class:[r.class,c.value],style:[r.style,u]},nl(a,["justify","wrap","align","vertical"])),{default:()=>[null===(t=o.default)||void 0===t?void 0:t.call(o)]}))}}}),CP=le($P),SP=(e,t)=>new Qo(e).setAlpha(t).toRgbString(),OP=(e,t)=>new Qo(e).lighten(t).toHexString(),kP=e=>{const t=lr(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},PP=(e,t)=>{const n=e||"#000",o=t||"#fff";return{colorBgBase:n,colorTextBase:o,colorText:SP(o,.85),colorTextSecondary:SP(o,.65),colorTextTertiary:SP(o,.45),colorTextQuaternary:SP(o,.25),colorFill:SP(o,.18),colorFillSecondary:SP(o,.12),colorFillTertiary:SP(o,.08),colorFillQuaternary:SP(o,.04),colorBgElevated:OP(n,12),colorBgContainer:OP(n,8),colorBgLayout:OP(n,0),colorBgSpotlight:OP(n,26),colorBorder:OP(n,26),colorBorderSecondary:OP(n,19)}};const IP={defaultConfig:Fr,defaultSeed:Fr.token,useToken:function(){const[e,t,n]=Wr();return{theme:e,token:t,hashId:n}},defaultAlgorithm:wr,darkAlgorithm:(e,t)=>{const n=Object.keys(pr).map((t=>{const n=lr(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e)),{})})).reduce(((e,t)=>e=De(De({},e),t)),{});return De(De(De({},t??wr(e)),n),vr(e,{generateColorPalettes:kP,generateNeutralColorPalettes:PP}))},compactAlgorithm:(e,t)=>{const n=t??wr(e),o=n.fontSizeSM,r=n.controlHeight-4;return De(De(De(De(De({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,o=n-2;return{sizeXXL:t*(o+10),sizeXL:t*(o+6),sizeLG:t*(o+2),sizeMD:t*(o+2),sizeMS:t*(o+1),size:t*o,sizeSM:t*o,sizeXS:t*(o-1),sizeXXS:t*(o-1)}}(t??e)),br(o)),{controlHeight:r}),dr(De(De({},n),{controlHeight:r})))}},EP=l({name:"AXProvider",inheritAttrs:!1,__name:"index",props:{bubble:null,conversations:null,prompts:null,sender:null,suggestion:null,thoughtChain:null,attachments:null,welcome:null,iconPrefixCls:null,getTargetContainer:null,getPopupContainer:null,prefixCls:null,getPrefixCls:null,renderEmpty:null,transformCellText:null,csp:null,input:null,autoInsertSpaceInButton:null,locale:null,pageHeader:null,componentSize:null,componentDisabled:null,direction:null,space:null,virtual:null,dropdownMatchSelectWidth:null,form:null,pagination:null,theme:null,select:null,wave:null},setup(e){const t=xe(e,["attachments","bubble","conversations","prompts","sender","suggestion","thoughtChain","welcome"]),o=_(),r=n((()=>({attachments:e.attachments,bubble:e.bubble,conversations:e.conversations,prompts:e.prompts,sender:e.sender,suggestion:e.suggestion,thoughtChain:e.thoughtChain,welcome:e.welcome}))),{theme:l}=we(),i=n((()=>({...(null==l?void 0:l.value)||{},...t.theme}))),a=n((()=>{var e;return null==(e=o.default)?void 0:e.call(o)}));return()=>$(Ee,{value:r.value},{default:()=>[$(y$,W(t,{theme:i.value}),{default:()=>[a.value]})]})}}),jP={classNames:{},styles:{},className:"",style:{}},AP=e=>{const t=o(Pe,n((()=>Ie.value||{})));return n((()=>({...jP,...a(t)[e]})))};function MP(e){const t="function"==typeof e?e():e,n=b(t);return[n,function(e){n.value=e}]}function TP(e){return"string"==typeof e}const zP=l({name:"AXBubbleLoading",__name:"loading",props:{prefixCls:null},setup:e=>()=>$("span",{class:`${e.prefixCls}-dot`},[$("i",{class:`${e.prefixCls}-dot-item`,key:"item-1"},null),$("i",{class:`${e.prefixCls}-dot-item`,key:"item-2"},null),$("i",{class:`${e.prefixCls}-dot-item`,key:"item-3"},null)])});class DP{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join("%"):e)||null}update(e,t){const n=Array.isArray(e)?e.join("%"):e,o=t(this.cache.get(n));null===o?this.cache.delete(n):this.cache.set(n,o)}}const RP="data-token-hash",BP="data-css-hash",NP="__cssinjs_instance__";function FP(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${BP}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach((t=>{t[NP]=t[NP]||e,t[NP]===e&&document.head.insertBefore(t,n)}));const o={};Array.from(document.querySelectorAll(`style[${BP}]`)).forEach((t=>{var n;const r=t.getAttribute(BP);o[r]?t[NP]===e&&(null==(n=t.parentNode)||n.removeChild(t)):o[r]=!0}))}return new DP(e)}const HP=Symbol("StyleContextKey"),LP={cache:FP(),defaultCache:!0,hashPriority:"low"},_P=()=>{const e=(()=>{var e,t,n;const o=m();let r;if(o&&o.appContext){const l=null==(n=null==(t=null==(e=o.appContext)?void 0:e.config)?void 0:t.globalProperties)?void 0:n.__ANTDV_CSSINJS_CACHE__;l?r=l:(r=FP(),o.appContext.config.globalProperties&&(o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=r))}else r=FP();return r})();return o(HP,s({...LP,cache:e}))},WP=e=>{const t=_P(),n=s({...LP,cache:FP()});return i([()=>a(e),t],(()=>{const o={...t.value},r=a(e);Object.keys(r).forEach((e=>{const t=r[e];void 0!==r[e]&&(o[e]=t)}));const{cache:l}=r;o.cache=o.cache||FP(),o.defaultCache=!l&&t.value.defaultCache,n.value=o}),{immediate:!0}),r(HP,n),n},VP=(e=>{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e})(l({name:"AXStyleProvider",inheritAttrs:!1,props:{autoClear:Ce(),mock:Oe(),cache:$e(),defaultCache:Ce(),hashPriority:Oe(),container:ke(),ssrInline:Ce(),transformers:Se(),linters:Se()},setup:(e,{slots:t})=>(WP(e),()=>C(on,e,(()=>{var e;return null==(e=t.default)?void 0:e.call(t)})))})),XP={useStyleInject:_P,useStyleProvider:WP,StyleProvider:VP};function KP(e,t,n,o){const r=_P(),l=s(""),a=s();w((()=>{l.value=[e,...t.value].join("%")}));const u=e=>{r.value.cache.update(e,(e=>{const[t=0,n]=e||[];return t-1==0?(null==o||o(n,!1),null):[t-1,n]}))};return i(l,((e,t)=>{t&&u(t),r.value.cache.update(e,(e=>{const[t=0,o]=e||[];return[t+1,o||n()]})),a.value=r.value.cache.get(l.value)[1]}),{immediate:!0}),x((()=>{u(l.value)})),a}function qP(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const GP="data-vc-order",UP=new Map;function YP({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"vc-util-key"}function ZP(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function QP(e){return Array.from((UP.get(e)||e).children).filter((e=>"STYLE"===e.tagName))}function JP(e,t={}){if(!qP())return null;const{csp:n,prepend:o}=t,r=document.createElement("style");r.setAttribute(GP,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o)),null!=n&&n.nonce&&(r.nonce=null==n?void 0:n.nonce),r.innerHTML=e;const l=ZP(t),{firstChild:i}=l;if(o){if("queue"===o){const e=QP(l).filter((e=>["prepend","prependQueue"].includes(e.getAttribute(GP))));if(e.length)return l.insertBefore(r,e[e.length-1].nextSibling),r}l.insertBefore(r,i)}else l.appendChild(r);return r}function eI(e,t={}){return QP(ZP(t)).find((n=>n.getAttribute(YP(t))===e))}function tI(e,t={}){const n=eI(e,t);n&&ZP(t).removeChild(n)}function nI(e,t,n={}){var o,r,l;!function(e,t){const n=UP.get(e);if(!n||!function(e,t){return!(!e||!e.contains)&&e.contains(t)}(document,n)){const n=JP("",t),{parentNode:o}=n;UP.set(e,o),e.removeChild(n)}}(ZP(n),n);const i=eI(t,n);if(i)return null!=(o=n.csp)&&o.nonce&&i.nonce!==(null==(r=n.csp)?void 0:r.nonce)&&(i.nonce=null==(l=n.csp)?void 0:l.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const a=JP(e,n);return a.setAttribute(YP(n),t),a}const oI=class e{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e,t=!1){let n={map:this.cache};return e.forEach((e=>{var t;n=n?null==(t=null==n?void 0:n.map)?void 0:t.get(e):void 0})),null!=n&&n.value&&t&&(n.value[1]=this.cacheCallTimes++),null==n?void 0:n.value}get(e){var t;return null==(t=this.internalGet(e,!0))?void 0:t[0]}has(e){return!!this.internalGet(e)}set(t,n){if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){const[e]=this.keys.reduce(((e,t)=>{const[,n]=e;return this.internalGet(t)[1]<n?[t,this.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(t)}let o=this.cache;t.forEach(((e,r)=>{if(r===t.length-1)o.set(e,{value:[n,this.cacheCallTimes++]});else{const t=o.get(e);t?t.map||(t.map=new Map):o.set(e,{map:new Map}),o=o.get(e).map}}))}deleteByPath(e,t){var n;const o=e.get(t[0]);if(1===t.length)return o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null==(n=o.value)?void 0:n[0];const r=this.deleteByPath(o.map,t.slice(1));return(!o.map||0===o.map.size)&&!o.value&&e.delete(t[0]),r}delete(e){if(this.has(e))return this.keys=this.keys.filter((t=>!function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e))),this.deleteByPath(this.cache,e)}};oI.MAX_CACHE_SIZE=20,oI.MAX_CACHE_OFFSET=5;let rI=oI,lI={};function iI(e,t){var n;lI[n=t]||(lI[n]=!0)}let aI=function(){};const sI=Symbol("WarningContext"),uI=s();l({props:{value:$e()},setup:(e,{slots:t})=>((e=>{r(sI,e),i(e,(()=>{uI.value=a(e),u(uI)}),{immediate:!0,deep:!0})})(n((()=>e.value))),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})});let cI=0;class dI{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=cI,0===e.length&&aI(e.length>0),cI+=1}getDerivativeToken(e){return this.derivatives.reduce(((t,n)=>n(e,t)),void 0)}}const pI=new rI;function fI(e){const t=Array.isArray(e)?e:[e];return pI.has(t)||pI.set(t,new dI(t)),pI.get(t)}const vI=new WeakMap;function mI(e){let t=vI.get(e)||"";return t||(Object.keys(e).forEach((n=>{const o=e[n];t+=n,t+=o instanceof dI?o.id:o&&"object"==typeof o?mI(o):o})),vI.set(e,t)),t}const hI=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),gI="_bAmBoO_";function yI(e,t,n){var o,r;if(qP()){nI(e,hI);const l=document.createElement("div");l.style.position="fixed",l.style.left="0",l.style.top="0",null==t||t(l),document.body.appendChild(l);const i=n?n(l):null==(o=getComputedStyle(l).content)?void 0:o.includes(gI);return null==(r=l.parentNode)||r.removeChild(l),tI(hI),i}return!1}let bI,wI,xI;const $I=qP();function CI(e){return"number"==typeof e?`${e}px`:e}const SI=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),OI=(e,t,n)=>Object.keys(e).length?`.${t}${null!=n&&n.scope?`.${n.scope}`:""}{${Object.entries(e).map((([e,t])=>`${e}:${t};`)).join("")}}`:"",kI={},PI=new Map;function II(e,t){PI.set(e,(PI.get(e)||0)-1);const n=Array.from(PI.keys()),o=n.filter((e=>(PI.get(e)||0)<=0));n.length-o.length>0&&o.forEach((e=>{(function(e,t){typeof document<"u"&&document.querySelectorAll(`style[${RP}="${e}"]`).forEach((e=>{var n;e[NP]===t&&(null==(n=e.parentNode)||n.removeChild(e))}))})(e,t),PI.delete(e)}))}function EI(e,t,o=b({})){const r=_P(),l=n((()=>Object.assign({},...t.value||[]))),i=n((()=>mI(l.value))),a=n((()=>{var e;return mI((null==(e=o.value)?void 0:e.override)||kI)}));return KP("token",n((()=>{var t,n;return[(null==(t=o.value)?void 0:t.salt)||"",null==(n=e.value)?void 0:n.id,i.value,a.value]})),(()=>{const{salt:t="",override:n=kI,formatToken:r,getComputedToken:i}=o.value||{},a=i?i(l.value,n,e.value):((e,t,n,o)=>{let r={...null==n?void 0:n.getDerivativeToken(e),...t};return o&&(r=o(r)),r})(l.value,n,e.value,r),s=function(e,t){return Gt(`${t}_${mI(e)}`)}(a,t);a._tokenKey=s,function(e){PI.set(e,(PI.get(e)||0)+1)}(s);const u=`css-${Gt(s)}`;return a._hashId=u,[a,u]}),(e=>{var t;II(e[0]._tokenKey,null==(t=r.value)?void 0:t.cache.instanceId)}))}var jI={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function AI(e,t){const{path:n,parentSelectors:o}=t;iI(0,`[Ant Design Vue CSS-in-JS] ${n?`Error in '${n}': `:""}${e}${o.length?` Selector info: ${o.join(" -> ")}`:""}`)}function MI(e){var t;return((null==(t=e.match(/:not\(([^)]*)\)/))?void 0:t[1])||"").split(/(\[[^[]*])|(?=[.#])/).filter((e=>e)).length>1}const TI=(e,t,n)=>{const o=function(e){return e.parentSelectors.reduce(((e,t)=>e?t.includes("&")?t.replace(/&/g,e):`${e} ${t}`:t),"")}(n).match(/:not\([^)]*\)/g)||[];o.length>0&&o.some(MI)&&AI("Concat ':not' selector not support in legacy browsers.",n)},zI=(e,t,n)=>{switch(e){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":return void AI(`You seem to be using non-logical property '${e}' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);case"margin":case"padding":case"borderWidth":case"borderStyle":if("string"==typeof t){const o=t.split(" ").map((e=>e.trim()));4===o.length&&o[1]!==o[3]&&AI(`You seem to be using '${e}' property with different left ${e} and right ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n)}return;case"clear":case"textAlign":return void(("left"===t||"right"===t)&&AI(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n));case"borderRadius":return void("string"==typeof t&&t.split("/").map((e=>e.trim())).reduce(((e,t)=>{if(e)return e;const n=t.split(" ").map((e=>e.trim()));return n.length>=2&&n[0]!==n[1]||3===n.length&&n[1]!==n[2]||4===n.length&&n[2]!==n[3]||e}),!1)&&AI(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n))}},DI=(e,t,n)=>{n.parentSelectors.some((e=>e.split(",").some((e=>e.split("&").length>2))))&&AI("Should not use more than one `&` in a selector.",n)},RI="data-ant-cssinjs-cache-path";let BI,NI=!0;function FI(e){return function(){var e;if(!BI&&(BI={},qP())){const t=document.createElement("div");t.className=RI,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach((e=>{const[t,n]=e.split(":");BI[t]=n}));const o=document.querySelector(`style[${RI}]`);o&&(NI=!1,null==(e=o.parentNode)||e.removeChild(o)),document.body.removeChild(t)}}(),!!BI[e]}const HI=qP(),LI="_multi_value_";function _I(e){return yo(fo(e),bo).replace(/\{%%%\:[^;];}/g,";")}const WI=new Set,VI=(e,t={},{root:n,injectHash:o,parentSelectors:r}={root:!0,parentSelectors:[]})=>{const{hashId:l,layer:i,path:a,hashPriority:s,transformers:u=[],linters:c=[]}=t;let d="",p={};function f(e){const n=e.getName(l);if(!p[n]){const[o]=VI(e.style,t,{root:!1,parentSelectors:r});p[n]=`@keyframes ${e.getName(l)}${o}`}}return function e(t,n=[]){return t.forEach((t=>{Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(e)?e:[e]).forEach((e=>{const i="string"!=typeof e||n?e:{};if("string"==typeof i)d+=`${i}\n`;else if(i._keyframe)f(i);else{const e=u.reduce(((e,t)=>{var n;return(null==(n=null==t?void 0:t.visit)?void 0:n.call(t,e))||e}),i);Object.keys(e).forEach((i=>{const a=e[i];if("object"!=typeof a||!a||"animationName"===i&&a._keyframe||function(e){return"object"==typeof e&&e&&("_skip_check_"in e||LI in e)}(a)){let e=function(e,t){const n=e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`));let o=t;!jI[e]&&"number"==typeof o&&0!==o&&(o=`${o}px`),"animationName"===e&&null!=t&&t._keyframe&&(f(t),o=t.getName(l)),d+=`${n}:${o};`};const t=(null==a?void 0:a.value)??a;"object"==typeof a&&null!=a&&a[LI]&&Array.isArray(t)?t.forEach((t=>{e(i,t)})):e(i,t)}else{let e=!1,u=i.trim(),c=!1;(n||o)&&l?u.startsWith("@")?e=!0:u=function(e,t,n){if(!t)return e;const o=`.${t}`,r="low"===n?`:where(${o})`:o;return e.split(",").map((e=>{var t;const n=e.trim().split(/\s+/);let o=n[0]||"";const l=(null==(t=o.match(/^\w+/))?void 0:t[0])||"";return o=`${l}${r}${o.slice(l.length)}`,[o,...n.slice(1)].join(" ")})).join(",")}(i,l,s):n&&!l&&("&"===u||""===u)&&(u="",c=!0);const[f,v]=VI(a,t,{root:c,injectHash:e,parentSelectors:[...r,u]});p={...p,...v},d+=`${u}${f}`}}))}})),n?i&&(void 0===bI&&(bI=yI(`@layer ${hI} { .${hI} { content: "${gI}"!important; } }`,(e=>{e.className=hI})))):d=`{${d}}`,[d,p]};function XI(e,t){return Gt(`${e.join("%")}${t}`)}function KI(e,t){const o=_P(),r=n((()=>{var t;return null==(t=e.value)?void 0:t.token._tokenKey})),l=n((()=>{var t;return[r.value,...(null==(t=e.value)?void 0:t.path)||[]]}));let i=HI;return KP("style",l,(()=>{const{path:n,hashId:a,layer:s,nonce:u,clientOnly:c,order:d=0}=e.value||{},p=l.value.join("|");if(FI(p)){const[e,t]=function(e){const t=BI[e];let n=null;if(t&&qP())if(NI)n="_FILE_STYLE__";else{const t=document.querySelector(`style[${BP}="${BI[e]}"]`);t?n=t.innerHTML:delete BI[e]}return[n,t]}(p);if(e)return[e,r.value,t,{},c,d]}const f=t(),{hashPriority:v,container:m,transformers:h,linters:g,cache:y}=o.value,[b,w]=VI(f,{hashId:a,hashPriority:v,layer:s,path:null==n?void 0:n.join("-"),transformers:h,linters:g}),x=_I(b),$=XI(l.value,x);if(i){const e={mark:BP,prepend:"queue",attachTo:m},t="function"==typeof u?u():u;t&&(e.csp={nonce:t});const n=nI(x,$,e);n[NP]=y.instanceId,n.setAttribute(RP,r.value),Object.keys(w).forEach((e=>{WI.has(e)||(WI.add(e),nI(_I(w[e]),`_effect-${e}`,{mark:BP,prepend:"queue",attachTo:m}))}))}return[x,r.value,$,w,c,d]}),(([,,e],t)=>{(t||o.value.autoClear)&&HI&&tI(e,{mark:BP})})),e=>e}function qI(e,t=!1){const n="style%",o=Array.from(e.cache.keys()).filter((e=>e.startsWith(n))),r={},l={};let i="";function a(e,n,o,r={}){const l={...r,[RP]:n,[BP]:o},i=Object.keys(l).map((e=>{const t=l[e];return t?`${e}="${t}"`:null})).filter((e=>e)).join(" ");return t?e:`<style ${i}>${e}</style>`}return o.map((t=>{const n=t.slice(6).replace(/%/g,"|"),[o,i,s,u,c,d]=e.cache.get(t)[1];if(c)return null;const p={"data-vc-order":"prependQueue","data-vc-priority":`${d}`};let f=a(o,i,s,p);return l[n]=s,u&&Object.keys(u).forEach((e=>{r[e]||(r[e]=!0,f+=a(_I(u[e]),i,`_effect-${e}`,p))})),[d,f]})).filter((e=>e)).sort(((e,t)=>e[0]-t[0])).forEach((([,e])=>{i+=e})),i+=a(`.${RI}{content:"${function(e){return Object.keys(e).map((t=>`${t}:${e[t]}`)).join(";")}(l)}";}`,void 0,void 0,{[RI]:RI}),i}const GI=(e,t)=>{const{key:n,prefix:o,unitless:r,ignore:l,token:i,scope:a=""}=e,{cache:{instanceId:s},container:u}=useContext(XP),{_tokenKey:c}=i,d=[...e.path,n,a,c];return KP("cssVar",d,(()=>{const e=t(),[i,s]=((e,t,n)=>{const o={},r={};return Object.entries(e).forEach((([e,t])=>{var l,i,a;if(null!=(l=null==n?void 0:n.preserve)&&l[e])r[e]=t;else if(!("string"!=typeof t&&"number"!=typeof t||null!=(i=null==n?void 0:n.ignore)&&i[e])){const l=SI(e,null==n?void 0:n.prefix);o[l]="number"!=typeof t||null!=(a=null==n?void 0:n.unitless)&&a[e]?String(t):`${t}px`,r[e]=`var(${l})`}})),[r,OI(o,t,{scope:null==n?void 0:n.scope})]})(e,n,{prefix:o,unitless:r,ignore:l,scope:a});return[i,s,XI(d,s),n]}),(([,,e])=>{$I&&tI(e,{mark:BP})}))};class UI{constructor(e,t){this._keyframe=!0,this.name=e,this.style=t}getName(e=""){return e?`${e}-${this.name}`:this.name}}function YI(e){return e.notSplit=!0,e}const ZI={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:YI(["borderTop","borderBottom"]),borderBlockStart:YI(["borderTop"]),borderBlockEnd:YI(["borderBottom"]),borderInline:YI(["borderLeft","borderRight"]),borderInlineStart:YI(["borderLeft"]),borderInlineEnd:YI(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function QI(e){return{_skip_check_:!0,value:e}}const JI={visit:e=>{const t={};return Object.keys(e).forEach((n=>{const o=e[n],r=ZI[n];if(!r||"number"!=typeof o&&"string"!=typeof o)t[n]=o;else{const e=function(e){if("number"==typeof e)return[e];const t=String(e).split(/\s+/);let n="",o=0;return t.reduce(((e,t)=>(t.includes("(")?(n+=t,o+=t.split("(").length-1):t.includes(")")?(n+=` ${t}`,o-=t.split(")").length-1,0===o&&(e.push(n),n="")):o>0?n+=` ${t}`:e.push(t),e)),[])}(o);r.length&&r.notSplit?r.forEach((e=>{t[e]=QI(o)})):1===r.length?t[r[0]]=QI(o):2===r.length?r.forEach(((n,o)=>{t[n]=QI(e[o]??e[0])})):4===r.length?r.forEach(((n,o)=>{t[n]=QI(e[o]??e[o-2]??e[0])})):t[n]=o}})),t}},eE=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;const tE=(e={})=>{const{rootValue:t=16,precision:n=5,mediaQuery:o=!1}=e,r=(e,o)=>{if(!o)return e;const r=parseFloat(o);return r<=1?e:`${function(e,t){const n=Math.pow(10,t+1),o=Math.floor(e*n);return 10*Math.round(o/10)/n}(r/t,n)}rem`};return{visit:e=>{const t={...e};return Object.entries(e).forEach((([e,n])=>{if("string"==typeof n&&n.includes("px")){const o=n.replace(eE,r);t[e]=o}!jI[e]&&"number"==typeof n&&0!==n&&(t[e]=`${n}px`.replace(eE,r));const l=e.trim();if(l.startsWith("@")&&l.includes("px")&&o){const n=e.replace(eE,r);t[n]=t[e],delete t[e]}})),t}}},nE={StyleProvider:VP},oE={supportModernCSS:()=>(void 0===wI&&(wI=yI(`:where(.${hI}) { content: "${gI}"!important; }`,(e=>{e.className=hI}))),wI&&(void 0===xI&&(xI=yI(`.${hI} { inset-block: 93px !important; }`,(e=>{e.className=hI}),(e=>"93px"===getComputedStyle(e).bottom))),xI))};class rE{}const lE="CALC_UNIT",iE=new RegExp(lE,"g");function aE(e){return"number"==typeof e?`${e}${lE}`:e}class sE extends rE{constructor(e,t){super(),this.result="";const n=typeof e;this.unitlessCssVar=t,e instanceof sE?this.result=`(${e.result})`:"number"===n?this.result=aE(e):"string"===n&&(this.result=e)}add(e){return e instanceof sE?this.result=`${this.result} + ${e.getResult()}`:("number"==typeof e||"string"==typeof e)&&(this.result=`${this.result} + ${aE(e)}`),this.lowPriority=!0,this}sub(e){return e instanceof sE?this.result=`${this.result} - ${e.getResult()}`:("number"==typeof e||"string"==typeof e)&&(this.result=`${this.result} - ${aE(e)}`),this.lowPriority=!0,this}mul(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof sE?this.result=`${this.result} * ${e.getResult(!0)}`:("number"==typeof e||"string"==typeof e)&&(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}div(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof sE?this.result=`${this.result} / ${e.getResult(!0)}`:("number"==typeof e||"string"==typeof e)&&(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}getResult(e){return this.lowPriority||e?`(${this.result})`:this.result}equal(e){const{unit:t}=e||{};let n=!0;return"boolean"==typeof t?n=t:Array.from(this.unitlessCssVar).some((e=>this.result.includes(e)))&&(n=!1),this.result=this.result.replace(iE,n?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}class uE extends rE{constructor(e){super(),this.result=0,e instanceof uE?this.result=e.result:"number"==typeof e&&(this.result=e)}add(e){return e instanceof uE?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}sub(e){return e instanceof uE?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}mul(e){return e instanceof uE?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}div(e){return e instanceof uE?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}equal(){return this.result}}const cE=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function dE(e,t={},n,o){const r={...t[e]};if(null!=o&&o.deprecatedTokens){const{deprecatedTokens:e}=o;e.forEach((([e,t])=>{(null!=r&&r[e]||null!=r&&r[t])&&(r[t]??(r[t]=null==r?void 0:r[e]))}))}const l={...n,...r};return Object.keys(l).forEach((e=>{l[e]===t[e]&&delete l[e]})),l}const pE=typeof CSSINJS_STATISTIC<"u";let fE=!0;function vE(...e){if(!pE)return Object.assign({},...e);fE=!1;const t={};return e.forEach((e=>{"object"==typeof e&&Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:()=>e[n]})}))})),fE=!0,t}const mE={};function hE(){}function gE(e,t={},n){return"function"==typeof n?n(vE(t,t[e]??{})):n??{}}const yE=new class{constructor(){t(this,"map",new Map),t(this,"objectIDMap",new WeakMap),t(this,"nextID",0),t(this,"lastAccessBeat",new Map),t(this,"accessBeat",0)}set(e,t){this.clear();const n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}get(e){const t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}getCompositeKey(e){return e.map((e=>e&&"object"==typeof e?`obj_${this.getObjectID(e)}`:`${typeof e}_${e}`)).join("|")}getObjectID(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);const t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}clear(){if(this.accessBeat>1e4){const e=Date.now();this.lastAccessBeat.forEach(((t,n)=>{e-t>6e5&&(this.map.delete(n),this.lastAccessBeat.delete(n))})),this.accessBeat=0}}};const bE=()=>({});const wE={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},xE={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},$E=fI(IP.defaultAlgorithm),CE={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},SE=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r,...l}=t;let i={...o,override:r};return i=Cr(i),l&&Object.entries(l).forEach((([e,t])=>{const{theme:n,...o}=t;let r=o;n&&(r=SE({...i,...o},{override:o},n)),i[e]=r})),i};const{genStyleHooks:OE}=function(e){const{useCSP:t=bE,useToken:o,usePrefix:r,getResetStyles:l,getCommonStyle:i,getCompUnitless:s}=e;function u(s,u,c,d={}){const p=Array.isArray(s)?s:[s,s],[f]=p,v=p.join("-"),m=e.layer||{name:"antd"};return(e,s=e)=>{const{theme:p,realToken:h,hashId:g,token:y,cssVar:b}=o(),{rootPrefixCls:w,iconPrefixCls:x}=r(),$=t(),C=b?"css":"js",S=a(function(e,t){return n((()=>{const n=yE.get(t);if(n)return n;const o=e();return yE.set(t,o),o}))}((()=>{const e=new Set;return b&&Object.keys(d.unitless||{}).forEach((t=>{e.add(SI(t,b.prefix)),e.add(SI(t,cE(f,b.prefix)))})),((e,t)=>{const n="css"===e?sE:uE;return e=>new n(e,t)})(C,e)}),[C,f,null==b?void 0:b.prefix])),{max:O,min:k}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:(...e)=>`max(${e.map((e=>CI(e))).join(",")})`,min:(...e)=>`min(${e.map((e=>CI(e))).join(",")})`}}(C),P=n((()=>({theme:p.value,token:y.value,hashId:g.value,nonce:()=>$.nonce,clientOnly:d.clientOnly,layer:m,order:d.order||-999})));return"function"==typeof l&&KI(n((()=>({...P.value,clientOnly:!1,path:["Shared",w]}))),(()=>l(y.value,{prefix:{rootPrefixCls:w,iconPrefixCls:x},csp:$}))),[KI(n((()=>({...P.value,path:[v,e,x]}))),(()=>{if(!1===d.injectStyle)return[];const{token:t,flush:o}=(e=>{let t,n=e,o=hE;return pE&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(fE&&(null==t||t.add(n)),e[n])}),o=(e,n)=>{var o;mE[e]={global:Array.from(t),component:{...null==(o=mE[e])?void 0:o.component,...n}}}),{token:n,keys:t,flush:o}})(y),r=gE(f,h,c),l=`.${e}`,a=dE(f,h,r,{deprecatedTokens:d.deprecatedTokens});b&&r&&"object"==typeof r&&Object.keys(r).forEach((e=>{r[e]=`var(${SI(e,cE(f,b.prefix))})`}));const p=n((()=>vE(t.value,{componentCls:l,prefixCls:e,iconCls:`.${x}`,antCls:`.${w}`,calc:S,max:O,min:k},b?r:a))),v=n((()=>u(p.value,{hashId:g.value,prefixCls:e,rootPrefixCls:w,iconPrefixCls:x})));o(f,a);const m="function"==typeof i?i(p.value,e,s,d.resetFont):null;return[!1===d.resetStyle?null:m,v.value]})),g]}}return{genStyleHooks:function(e,t,n,r){const l=Array.isArray(e)?e[0]:e;function i(e){return`${String(l)}${e.slice(0,1).toUpperCase()}${e.slice(1)}`}const a=(null==r?void 0:r.unitless)||{},d={..."function"==typeof s?s(e):{},[i("zIndexPopup")]:!0};Object.keys(a).forEach((e=>{d[i(e)]=a[e]}));const p={...r,unitless:d,prefixToken:i},f=u(e,t,n,p),v=function(e,t,n){const{unitless:r,injectStyle:l=!0,prefixToken:i,ignore:a}=n,s=({rootCls:l,cssVar:s={}})=>{const{realToken:u}=o();return GI({path:[e],prefix:s.prefix,key:s.key,unitless:r,ignore:a,token:u,scope:l},(()=>{const o=gE(e,u,t),r=dE(e,u,o,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(o).forEach((e=>{r[i(e)]=r[e],delete r[e]})),r})),null};return t=>{const{cssVar:n}=o();return[o=>l&&n?$(c,null,[$(s,{rootCls:t,cssVar:n,component:e},null),o]):o,null==n?void 0:n.key]}}(l,n,p);return(e,t=X(e))=>{const[,n]=f(X(e),t),[o,r]=v(t);return[o,n,r]}},genSubStyleComponent:function(e,t,n,o={}){const r=u(e,t,n,{resetStyle:!1,order:-998,...o});return({prefixCls:e,rootCls:t=e})=>(r(e,t),null)},genComponentStyleHook:u}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=we();return{iconPrefixCls:a(t),rootPrefixCls:e()}},useToken:()=>{const[e,t,o,r,l]=function(){const{token:e,hashId:t,theme:o}=IP.useToken(),r=n((()=>({token:e.value,hashed:t.value,theme:o.value}))),{override:l,cssVar:i}=a(r),s=n((()=>r.value.token)),u=n((()=>r.value.hashed)),c=n((()=>r.value.theme??$E)),d=EI(n((()=>c.value)),n((()=>[IP.defaultSeed,s.value])),n((()=>({salt:`1.0.3-${u.value||""}`,override:l,getComputedToken:SE,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:xE,ignore:wE,preserve:CE}})))),[p,f,v]=a(d),m=n((()=>d.value[0])),h=n((()=>u.value?d.value[1]:""));return[c,v,h,m,i]}();return{theme:e,realToken:t,hashId:o,token:r,cssVar:l}},useCSP:()=>{const{csp:e}=we();return(null==e?void 0:e.value)??{}},layer:{name:"antdx",dependencies:["antd"]}}),kE=e=>{const{componentCls:t,paddingSM:n,padding:o}=e;return{[t]:{[`${t}-content`]:{"&-filled,&-outlined,&-shadow":{padding:`${CI(n)} ${CI(o)}`,borderRadius:e.borderRadiusLG},"&-filled":{backgroundColor:e.colorFillContent},"&-outlined":{border:`1px solid ${e.colorBorderSecondary}`},"&-shadow":{boxShadow:e.boxShadowTertiary}}}}},PE=e=>{const{componentCls:t,fontSize:n,lineHeight:o,paddingSM:r,padding:l,calc:i}=e,a=i(n).mul(o).div(2).add(r).equal(),s=`${t}-content`;return{[t]:{[s]:{"&-round":{borderRadius:{_skip_check_:!0,value:a},paddingInline:i(l).mul(1.25).equal()}},[`&-start ${s}-corner`]:{borderStartStartRadius:e.borderRadiusXS},[`&-end ${s}-corner`]:{borderStartEndRadius:e.borderRadiusXS}}}},IE=e=>{const{componentCls:t,padding:n}=e;return{[`${t}-list`]:{display:"flex",flexDirection:"column",gap:n,overflowY:"auto","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`}}}},EE=new UI("loadingMove",{"0%":{transform:"translateY(0)"},"10%":{transform:"translateY(4px)"},"20%":{transform:"translateY(0)"},"30%":{transform:"translateY(-4px)"},"40%":{transform:"translateY(0)"}}),jE=new UI("cursorBlink",{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}}),AE=e=>{const{componentCls:t,fontSize:n,lineHeight:o,paddingSM:r,colorText:l,calc:i}=e;return{[t]:{display:"flex",columnGap:r,[`&${t}-end`]:{justifyContent:"end",flexDirection:"row-reverse",[`& ${t}-content-wrapper`]:{alignItems:"flex-end"}},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-typing ${t}-content:last-child::after`]:{content:'"|"',fontWeight:900,userSelect:"none",opacity:1,marginInlineStart:"0.1em",animationName:jE,animationDuration:"0.8s",animationIterationCount:"infinite",animationTimingFunction:"linear"},[`& ${t}-avatar`]:{display:"inline-flex",justifyContent:"center",alignSelf:"flex-start"},[`& ${t}-header, & ${t}-footer`]:{fontSize:n,lineHeight:o,color:e.colorText},[`& ${t}-header`]:{marginBottom:e.paddingXXS},[`& ${t}-footer`]:{marginTop:r},[`& ${t}-content-wrapper`]:{flex:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:0,maxWidth:"100%"},[`& ${t}-content`]:{position:"relative",boxSizing:"border-box",minWidth:0,maxWidth:"100%",color:l,fontSize:e.fontSize,lineHeight:e.lineHeight,minHeight:i(r).mul(2).add(i(o).mul(n)).equal(),wordBreak:"break-word",[`& ${t}-dot`]:{position:"relative",height:"100%",display:"flex",alignItems:"center",columnGap:e.marginXS,padding:`0 ${CI(e.paddingXXS)}`,"&-item":{backgroundColor:e.colorPrimary,borderRadius:"100%",width:4,height:4,animationName:EE,animationDuration:"2s",animationIterationCount:"infinite",animationTimingFunction:"linear","&:nth-child(1)":{animationDelay:"0s"},"&:nth-child(2)":{animationDelay:"0.2s"},"&:nth-child(3)":{animationDelay:"0.4s"}}}}}}},ME=OE("Bubble",(e=>{const t=vE(e,{});return[AE(t),IE(t),kE(t),PE(t)]}),(()=>({}))),TE=Symbol("BubbleContext"),zE=s(),DE=l({props:{value:$e()},setup:(e,{slots:t})=>((e=>{r(TE,e),i(e,(()=>{zE.value=a(e),u(zE)}),{immediate:!0,deep:!0})})(n((()=>e.value))),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})}),RE=l({name:"AXBubble",__name:"Bubble",props:K({prefixCls:null,rootClassName:null,styles:null,classNames:null,avatar:{type:Function},placement:null,loading:{type:Boolean},typing:null,content:null,messageRender:{type:Function},loadingRender:{type:Function},variant:null,shape:null,_key:null,onTypingComplete:null,header:null,footer:null},{classNames:()=>({}),styles:()=>({}),placement:"start",loading:!1,content:"",variant:"filled"}),setup(e,{expose:t}){const r=xe(e,["prefixCls","rootClassName","classNames","styles","avatar","placement","loading","loadingRender","typing","content","messageRender","variant","shape","onTypingComplete","header","footer","_key"]);E(e,"content"),E(e,"prefixCls");const l=_(),s=b(e.content);i((()=>e.content),(()=>{s.value=e.content}));const{onUpdate:u}=a(o(TE,n((()=>zE.value||{})))),p=b(null),{direction:f,getPrefixCls:v}=we(),m=v("bubble",e.prefixCls),h=AP("bubble"),[g,y,x,C]=function(e){const t=n((()=>!!X(e))),o={step:1,interval:50,suffix:null},r=n((()=>{const t=X(e);return{...o,..."object"==typeof t?t:{}}}));return[t,n((()=>r.value.step)),n((()=>r.value.interval)),n((()=>r.value.suffix))]}((()=>e.typing)),[S,O]=((e,t,o,r)=>{const[l,s]=MP(""),[u,c]=MP(1),d=n((()=>t.value&&TP(e.value)));return i(e,(()=>{const t=a(l);s(e.value),!d.value&&TP(e.value)?c(e.value.length):TP(e.value)&&TP(t)&&0!==e.value.indexOf(t)&&c(1)}),{immediate:!0}),i([u,t,e],(()=>{if(d.value&&TP(e.value)&&a(u)<e.value.length){const e=setTimeout((()=>{c(a(u)+o.value)}),r.value);V((()=>{clearTimeout(e)}))}}),{immediate:!0}),[n((()=>d.value&&TP(e.value)?e.value.slice(0,a(u)):e.value)),n((()=>d.value&&TP(e.value)&&a(u)<e.value.length))]})(s,g,y,x),k=b(!1);i(S,(()=>{null==u||u()})),w((()=>{var t;O.value||e.loading?k.value=!1:k.value||(k.value=!0,null==(t=e.onTypingComplete)||t.call(e))}));const[P,I,j]=ME((()=>m)),A=n((()=>[m,e.rootClassName,h.value.className,I.value,j,`${m}-${e.placement}`,{[`${m}-rtl`]:"rtl"===f.value},{[`${m}-typing`]:O.value&&!e.loading&&!e.messageRender&&!l.message&&!C.value}])),M=n((()=>{return l.avatar?l.avatar():"function"==typeof e.avatar?e.avatar():d(e.avatar)||(t=e.avatar,Array.isArray(t)&&t.every(d))?e.avatar:$(_m,e.avatar,null);var t})),T=n((()=>l.message?l.message({content:S.value}):e.messageRender?e.messageRender(S.value):S.value)),z=n((()=>e.loading?l.loading?l.loading():e.loadingRender?e.loadingRender():$(zP,{prefixCls:m},null):$(c,null,[T.value,O.value&&X(C)]))),D=n((()=>{const t=$("div",{style:{...h.value.styles.content,...e.styles.content},class:[`${m}-content`,`${m}-content-${e.variant}`,{[`${m}-content-${e.shape}`]:e.shape},h.value.classNames.content,e.classNames.content]},[X(z)]),n=l.header?l.header({content:S.value,info:{key:e._key}}):"function"==typeof e.header?e.header(S.value,{key:e._key}):e.header,o=l.footer?l.footer({content:S.value,info:{key:e._key}}):"function"==typeof e.footer?e.footer(S.value,{key:e._key}):e.footer;return n||o?$("div",{class:`${m}-content-wrapper`},[n&&$("div",{class:[`${m}-header`,h.value.classNames.header,e.classNames.header],style:{...h.value.styles.header,...e.styles.header}},[n]),t,o&&$("div",{class:[`${m}-footer`,h.value.classNames.footer,e.classNames.footer],style:{...h.value.styles.footer,...e.styles.footer}},[o])]):t}));return t({nativeElement:p}),()=>P($("div",W({style:{...h.value.style},class:X(A)},r,{ref:p}),[(l.avatar||e.avatar)&&$("div",{style:{...h.value.styles.avatar,...e.styles.avatar},class:[`${m}-avatar`,h.value.classNames.avatar,e.classNames.avatar]},[X(M)]),X(D)]))}});var BE,NE={exports:{}};
|
|
1
|
+
var e=Object.defineProperty,t=(t,n,o)=>((t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o)(t,"symbol"!=typeof n?n+"":n,o);import{computed as n,inject as o,provide as r,defineComponent as l,watch as i,unref as a,shallowRef as s,triggerRef as u,Fragment as c,isVNode as d,Comment as p,Text as f,reactive as v,getCurrentInstance as m,onMounted as h,onUpdated as g,onUnmounted as y,ref as b,watchEffect as w,onBeforeUnmount as x,createVNode as $,h as C,Transition as S,withDirectives as O,resolveDirective as k,cloneVNode as P,nextTick as I,toRef as E,withModifiers as j,vShow as A,onBeforeMount as M,Teleport as T,createTextVNode as z,isRef as D,toRefs as R,toRaw as B,render as N,onBeforeUpdate as H,TransitionGroup as F,createApp as L,useSlots as _,mergeProps as W,onWatcherCleanup as V,toValue as X,mergeDefaults as K,useAttrs as q,watchPostEffect as G,renderList as U,getCurrentScope as Y,onScopeDispose as Z,useTemplateRef as Q,createElementBlock as J,openBlock as ee,createElementVNode as te,useId as ne}from"vue";const oe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},re=e=>{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function le(){return{type:[Function,Array]}}function ie(e){return{type:Object,default:e}}function ae(e){return{type:Boolean,default:e}}function se(e){return{type:Function,default:e}}function ue(e,t){return{validator:()=>!0,default:e}}function ce(e){return{type:Array,default:e}}function de(e){return{type:String,default:e}}function pe(e,t){return e?{type:e,default:t}:ue(t)}const fe="anticon",ve=Symbol("GlobalFormContextKey"),me=Symbol("configProvider"),he={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:n((()=>fe)),getPopupContainer:n((()=>()=>document.body)),direction:n((()=>"ltr"))},ge=()=>o(me,he),ye="ant";function be(){const{getPrefixCls:e,direction:t,csp:n,iconPrefixCls:o,theme:r}=ge();return{theme:r,getPrefixCls:e,direction:t,csp:n,iconPrefixCls:o}}function we(e,t){const n=Object.create(null);for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function xe(e){return{type:Object,default:e}}function $e(e){return{type:Boolean,default:e}}function Ce(e){return{type:Array,default:e}}function Se(e){return{type:String,default:e}}function Oe(e,t){return e?{type:e,default:t}:function(e){return{validator:()=>!0,default:e}}(t)}const ke=Symbol("XProviderContext"),Pe=s(),Ie=l({props:{value:xe()},setup:(e,{slots:t})=>((e=>{r(ke,e),i(e,(()=>{Pe.value=a(e),u(Pe)}),{immediate:!0,deep:!0})})(n((()=>e.value))),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})});function Ee(e){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function je(e){var t=function(e,t){if("object"!=Ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=Ee(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ee(t)?t:t+""}function Ae(e,t,n){return(t=je(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){Ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ze.apply(null,arguments)}const De=Array.isArray,Re=e=>"string"==typeof e,Be=e=>null!==e&&"object"==typeof e,Ne=/^on[^a-z]/,He=e=>Ne.test(e),Fe=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Le=/-(\w)/g,_e=Fe((e=>e.replace(Le,((e,t)=>t?t.toUpperCase():"")))),We=/\B([A-Z])/g,Ve=Fe((e=>e.replace(We,"-$1").toLowerCase())),Xe=Object.prototype.hasOwnProperty,Ke=(e,t)=>Xe.call(e,t);function qe(e){let t=arguments.length>2?arguments[2]:void 0;return"function"==typeof e?e(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}):e??t}function Ge(){const e=[];for(let t=0;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];if(n)if(Re(n))e.push(n);else if(De(n))for(let t=0;t<n.length;t++){const o=Ge(n[t]);o&&e.push(o)}else if(Be(n))for(const t in n)n[t]&&e.push(t)}return e.join(" ")}var Ue=function(){if(typeof Map<"u")return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),Ye=typeof window<"u"&&typeof document<"u"&&window.document===document,Ze=typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),Qe="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Ze):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Je=["top","right","bottom","left","width","height","size","weight"],et=typeof MutationObserver<"u",tt=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function l(){n&&(n=!1,e()),o&&a()}function i(){Qe(l)}function a(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(i,t);r=e}return a}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){!Ye||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),et?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Ye||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Je.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),nt=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},ot=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Ze},rt=ct(0,0,0,0);function lt(e){return parseFloat(e)||0}function it(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+lt(e["border-"+n+"-width"])}),0)}function at(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return rt;var o=ot(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],l=e["padding-"+r];t[r]=lt(l)}return t}(o),l=r.left+r.right,i=r.top+r.bottom,a=lt(o.width),s=lt(o.height);if("border-box"===o.boxSizing&&(Math.round(a+l)!==t&&(a-=it(o,"left","right")+l),Math.round(s+i)!==n&&(s-=it(o,"top","bottom")+i)),!function(e){return e===ot(e).document.documentElement}(e)){var u=Math.round(a+l)-t,c=Math.round(s+i)-n;1!==Math.abs(u)&&(a-=u),1!==Math.abs(c)&&(s-=c)}return ct(r.left,r.top,a,s)}var st=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof ot(e).SVGGraphicsElement}:function(e){return e instanceof ot(e).SVGElement&&"function"==typeof e.getBBox}}();function ut(e){return Ye?st(e)?function(e){var t=e.getBBox();return ct(0,0,t.width,t.height)}(e):at(e):rt}function ct(e,t,n,o){return{x:e,y:t,width:n,height:o}}var dt=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ct(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ut(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),pt=function(){return function(e,t){var n=function(e){var t=e.x,n=e.y,o=e.width,r=e.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(l.prototype);return nt(i,{x:t,y:n,width:o,height:r,top:n,right:t+o,bottom:r+n,left:t}),i}(t);nt(this,{target:e,contentRect:n})}}(),ft=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Ue,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(e instanceof ot(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new dt(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(e instanceof ot(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new pt(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),vt=typeof WeakMap<"u"?new WeakMap:new Ue,mt=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=tt.getInstance(),o=new ft(t,n,this);vt.set(this,o)}}();["observe","unobserve","disconnect"].forEach((function(e){mt.prototype[e]=function(){var t;return(t=vt.get(this))[e].apply(t,arguments)}}));var ht=typeof Ze.ResizeObserver<"u"?Ze.ResizeObserver:mt;const gt=e=>null!=e&&""!==e,yt=(e,t)=>{const n=ze({},e);return Object.keys(t).forEach((e=>{const o=n[e];if(!o)throw new Error(`not have ${e} prop`);o.type||o.default?o.default=t[e]:o.def?o.def(t[e]):n[e]={type:o,default:t[e]}})),n},bt=Symbol("skipFlatten"),wt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=Array.isArray(e)?e:[e],o=[];return n.forEach((e=>{Array.isArray(e)?o.push(...wt(e,t)):e&&e.type===c?e.key===bt?o.push(e):o.push(...wt(e.children,t)):e&&d(e)?t&&!Ot(e)?o.push(e):t||o.push(e):gt(e)&&o.push(e)})),o},xt=e=>{var t;let n=(null===(t=null==e?void 0:e.vnode)||void 0===t?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n},$t=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach((o=>{const r=e.$props[o],l=Ve(o);(void 0!==r||l in n)&&(t[o]=r)}))}else if(d(e)&&"object"==typeof e.type){const n=e.props||{},o={};Object.keys(n).forEach((e=>{o[_e(e)]=n[e]}));const r=e.type.props||{};Object.keys(r).forEach((e=>{const n=function(e,t,n,o){const r=e[n];if(null!=r){const e=Ke(r,"default");if(e&&void 0===o){const e=r.default;o=r.type!==Function&&(e=>"function"==typeof e)(e)?e():e}r.type===Boolean&&(Ke(t,n)||e?""===o&&(o=!0):o=!1)}return o}(r,o,e,o[e]);(void 0!==n||e in o)&&(t[e]=n)}))}return t};function Ct(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};return n=e.$?ze(ze({},n),e.$attrs):ze(ze({},n),e.props),(e=>{const t=Object.keys(e),n={},o={},r={};for(let l=0,i=t.length;l<i;l++){const i=t[l];He(i)?(n[i[2].toLowerCase()+i.slice(3)]=e[i],o[i]=e[i]):r[i]=e[i]}return{onEvents:o,events:n,extraAttrs:r}})(n)[t?"onEvents":"events"]}function St(e,t){let n=((d(e)?e.props:e.$attrs)||{}).style||{};return"string"==typeof n&&(n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={},o=/:(.+)/;return"object"==typeof e?e:(e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){const r=e.split(o);if(r.length>1){const e=t?_e(r[0].trim()):r[0].trim();n[e]=r[1].trim()}}})),n)}(n,t)),n}function Ot(e){return e&&(e.type===p||e.type===c&&0===e.children.length||e.type===f&&""===e.children.trim())}function kt(){const e=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{Array.isArray(t)?e.push(...t):(null==t?void 0:t.type)===c?e.push(...kt(t.children)):e.push(t)})),e.filter((e=>!Ot(e)))}function Pt(e){return Array.isArray(e)&&1===e.length&&(e=e[0]),e&&e.__v_isVNode&&"symbol"!=typeof e.type}function It(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default";var o,r;return null!==(o=t[n])&&void 0!==o?o:null===(r=e[n])||void 0===r?void 0:r.call(e)}const Et=l({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const o=v({width:0,height:0,offsetHeight:0,offsetWidth:0});let r=null,l=null;const a=()=>{l&&(l.disconnect(),l=null)},s=t=>{const{onResize:n}=e,r=t[0].target,{width:l,height:i}=r.getBoundingClientRect(),{offsetWidth:a,offsetHeight:s}=r,u=Math.floor(l),c=Math.floor(i);if(o.width!==u||o.height!==c||o.offsetWidth!==a||o.offsetHeight!==s){const e={width:u,height:c,offsetWidth:a,offsetHeight:s};ze(o,e),n&&Promise.resolve().then((()=>{n(ze(ze({},e),{offsetWidth:a,offsetHeight:s}),r)}))}},u=m(),c=()=>{const{disabled:t}=e;if(t)return void a();const n=xt(u);n!==r&&(a(),r=n),!l&&n&&(l=new ht(s),l.observe(n))};return h((()=>{c()})),g((()=>{c()})),y((()=>{a()})),i((()=>e.disabled),(()=>{c()}),{flush:"post"}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)[0]}}});let jt=e=>setTimeout(e,16),At=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(jt=e=>window.requestAnimationFrame(e),At=e=>window.cancelAnimationFrame(e));let Mt=0;const Tt=new Map;function zt(e){Tt.delete(e)}function Dt(e){Mt+=1;const t=Mt;return function n(o){if(0===o)zt(t),e();else{const e=jt((()=>{n(o-1)}));Tt.set(t,e)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t}Dt.cancel=e=>{const t=Tt.get(e);return zt(t),At(t)};let Rt=!1;try{const e=Object.defineProperty({},"passive",{get(){Rt=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}function Bt(e,t,n,o){if(e&&e.addEventListener){let r=o;void 0===r&&Rt&&("touchstart"===t||"touchmove"===t||"wheel"===t)&&(r={passive:!1}),e.addEventListener(t,n,r)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}const Nt=Symbol("DisabledContextKey"),Ht=()=>o(Nt,b(void 0)),Ft=e=>{const t=Ht();return r(Nt,n((()=>{var n;return null!==(n=e.value)&&void 0!==n?n:t.value}))),e},Lt={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},_t={lang:ze({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:ze({},Lt)},Wt="${label} is not a valid ${type}",Vt={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},DatePicker:_t,TimePicker:Lt,Calendar:_t,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Wt,method:Wt,array:Wt,object:Wt,number:Wt,date:Wt,boolean:Wt,integer:Wt,float:Wt,regexp:Wt,email:Wt,url:Wt,hex:Wt},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}},Xt=l({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:r}=t;const l=o("localeData",{}),i=n((()=>{const{componentName:t="global",defaultLocale:n}=e,o=n||Vt[t||"global"],{antLocale:r}=l,i=t&&r?r[t]:{};return ze(ze({},"function"==typeof o?o():o),i||{})})),a=n((()=>{const{antLocale:e}=l,t=e&&e.locale;return e&&e.exist&&!t?Vt.locale:t}));return()=>{const t=e.children||r.default,{antLocale:n}=l;return null==t?void 0:t(i.value,a.value,n)}}});function Kt(e,t,r){const l=o("localeData",{});return[n((()=>{const{antLocale:n}=l,o=a(t)||Vt[e||"global"],i=e&&n?n[e]:{};return ze(ze(ze({},"function"==typeof o?o():o),i||{}),a(r)||{})}))]}function qt(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}let Gt=class{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join("%"):e)||null}update(e,t){const n=Array.isArray(e)?e.join("%"):e,o=t(this.cache.get(n));null===o?this.cache.delete(n):this.cache.set(n,o)}};const Ut="data-token-hash",Yt="data-css-hash",Zt="__cssinjs_instance__";function Qt(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Yt}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach((t=>{t[Zt]=t[Zt]||e,t[Zt]===e&&document.head.insertBefore(t,n)}));const o={};Array.from(document.querySelectorAll(`style[${Yt}]`)).forEach((t=>{var n;const r=t.getAttribute(Yt);o[r]?t[Zt]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0}))}return new Gt(e)}const Jt=Symbol("StyleContextKey"),en={cache:Qt(),defaultCache:!0,hashPriority:"low"},tn=()=>{const e=(()=>{var e,t,n;const o=m();let r;if(o&&o.appContext){const l=null===(n=null===(t=null===(e=o.appContext)||void 0===e?void 0:e.config)||void 0===t?void 0:t.globalProperties)||void 0===n?void 0:n.__ANTDV_CSSINJS_CACHE__;l?r=l:(r=Qt(),o.appContext.config.globalProperties&&(o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=r))}else r=Qt();return r})();return o(Jt,s(ze(ze({},en),{cache:e})))},nn=re(l({name:"AStyleProvider",inheritAttrs:!1,props:{autoClear:ae(),mock:de(),cache:ie(),defaultCache:ae(),hashPriority:de(),container:pe(),ssrInline:ae(),transformers:ce(),linters:ce()},setup(e,t){let{slots:n}=t;return(e=>{const t=tn(),n=s(ze(ze({},en),{cache:Qt()}));i([()=>a(e),t],(()=>{const o=ze({},t.value),r=a(e);Object.keys(r).forEach((e=>{const t=r[e];void 0!==r[e]&&(o[e]=t)}));const{cache:l}=r;o.cache=o.cache||Qt(),o.defaultCache=!l&&t.value.defaultCache,n.value=o}),{immediate:!0}),r(Jt,n)})(e),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}));function on(e,t,n,o){const r=tn(),l=s(""),a=s();w((()=>{l.value=[e,...t.value].join("%")}));const u=e=>{r.value.cache.update(e,(e=>{const[t=0,n]=e||[];return t-1==0?(null==o||o(n,!1),null):[t-1,n]}))};return i(l,((e,t)=>{t&&u(t),r.value.cache.update(e,(e=>{const[t=0,o]=e||[];return[t+1,o||n()]})),a.value=r.value.cache.get(l.value)[1]}),{immediate:!0}),x((()=>{u(l.value)})),a}function rn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ln(e,t){return!(!e||!e.contains)&&e.contains(t)}const an="data-vc-order",sn=new Map;function un(){let{mark:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:"vc-util-key"}function cn(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function dn(e){return Array.from((sn.get(e)||e).children).filter((e=>"STYLE"===e.tagName))}function pn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!rn())return null;const{csp:n,prepend:o}=t,r=document.createElement("style");r.setAttribute(an,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o)),null!=n&&n.nonce&&(r.nonce=null==n?void 0:n.nonce),r.innerHTML=e;const l=cn(t),{firstChild:i}=l;if(o){if("queue"===o){const e=dn(l).filter((e=>["prepend","prependQueue"].includes(e.getAttribute(an))));if(e.length)return l.insertBefore(r,e[e.length-1].nextSibling),r}l.insertBefore(r,i)}else l.appendChild(r);return r}function fn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return dn(cn(t)).find((n=>n.getAttribute(un(t))===e))}function vn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=fn(e,t);n&&cn(t).removeChild(n)}function mn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var o,r,l;!function(e,t){const n=sn.get(e);if(!n||!ln(document,n)){const n=pn("",t),{parentNode:o}=n;sn.set(e,o),e.removeChild(n)}}(cn(n),n);const i=fn(t,n);if(i)return!(null===(o=n.csp)||void 0===o)&&o.nonce&&i.nonce!==(null===(r=n.csp)||void 0===r?void 0:r.nonce)&&(i.nonce=null===(l=n.csp)||void 0===l?void 0:l.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const a=pn(e,n);return a.setAttribute(un(n),t),a}let hn=class e{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={map:this.cache};return e.forEach((e=>{var t;n=n?null===(t=null==n?void 0:n.map)||void 0===t?void 0:t.get(e):void 0})),null!=n&&n.value&&t&&(n.value[1]=this.cacheCallTimes++),null==n?void 0:n.value}get(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}has(e){return!!this.internalGet(e)}set(t,n){if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){const[e]=this.keys.reduce(((e,t)=>{const[,n]=e;return this.internalGet(t)[1]<n?[t,this.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(t)}let o=this.cache;t.forEach(((e,r)=>{if(r===t.length-1)o.set(e,{value:[n,this.cacheCallTimes++]});else{const t=o.get(e);t?t.map||(t.map=new Map):o.set(e,{map:new Map}),o=o.get(e).map}}))}deleteByPath(e,t){var n;const o=e.get(t[0]);if(1===t.length)return o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null===(n=o.value)||void 0===n?void 0:n[0];const r=this.deleteByPath(o.map,t.slice(1));return(!o.map||0===o.map.size)&&!o.value&&e.delete(t[0]),r}delete(e){if(this.has(e))return this.keys=this.keys.filter((t=>!function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e))),this.deleteByPath(this.cache,e)}};hn.MAX_CACHE_SIZE=20,hn.MAX_CACHE_OFFSET=5;let gn={};function yn(e,t){!function(e,t,n){!t&&!gn[n]&&(gn[n]=!0)}(0,e,t)}let bn=function(){},wn=0,xn=class{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=wn,0===e.length&&bn(e.length>0),wn+=1}getDerivativeToken(e){return this.derivatives.reduce(((t,n)=>n(e,t)),void 0)}};const $n=new hn;function Cn(e){const t=Array.isArray(e)?e:[e];return $n.has(t)||$n.set(t,new xn(t)),$n.get(t)}const Sn=new WeakMap;function On(e){let t=Sn.get(e)||"";return t||(Object.keys(e).forEach((n=>{const o=e[n];t+=n,t+=o instanceof xn?o.id:o&&"object"==typeof o?On(o):o})),Sn.set(e,t)),t}const kn=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),Pn="_bAmBoO_";let In;function En(){return void 0===In&&(In=function(e,t,n){var o,r;if(rn()){mn(e,kn);const l=document.createElement("div");l.style.position="fixed",l.style.left="0",l.style.top="0",null==t||t(l),document.body.appendChild(l);const i=n?n(l):null===(o=getComputedStyle(l).content)||void 0===o?void 0:o.includes(Pn);return null===(r=l.parentNode)||void 0===r||r.removeChild(l),vn(kn),i}return!1}(`@layer ${kn} { .${kn} { content: "${Pn}"!important; } }`,(e=>{e.className=kn}))),In}const jn={},An=new Map;function Mn(e,t){An.set(e,(An.get(e)||0)-1);const n=Array.from(An.keys()),o=n.filter((e=>(An.get(e)||0)<=0));n.length-o.length>0&&o.forEach((e=>{(function(e,t){typeof document<"u"&&document.querySelectorAll(`style[${Ut}="${e}"]`).forEach((e=>{var n;e[Zt]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))})(e,t),An.delete(e)}))}function Tn(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b({});const r=tn(),l=n((()=>ze({},...t.value))),i=n((()=>On(l.value))),a=n((()=>On(o.value.override||jn)));return on("token",n((()=>[o.value.salt||"",e.value.id,i.value,a.value])),(()=>{const{salt:t="",override:n=jn,formatToken:r,getComputedToken:i}=o.value,a=i?i(l.value,n,e.value):((e,t,n,o)=>{let r=ze(ze({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r})(l.value,n,e.value,r),s=function(e,t){return qt(`${t}_${On(e)}`)}(a,t);a._tokenKey=s,function(e){An.set(e,(An.get(e)||0)+1)}(s);const u=`css-${qt(s)}`;return a._hashId=u,[a,u]}),(e=>{var t;Mn(e[0]._tokenKey,null===(t=r.value)||void 0===t?void 0:t.cache.instanceId)}))}var zn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Dn="comm",Rn="rule",Bn="decl",Nn=Math.abs,Hn=String.fromCharCode;function Fn(e){return e.trim()}function Ln(e,t,n){return e.replace(t,n)}function _n(e,t,n){return e.indexOf(t,n)}function Wn(e,t){return 0|e.charCodeAt(t)}function Vn(e,t,n){return e.slice(t,n)}function Xn(e){return e.length}function Kn(e,t){return t.push(e),e}var qn=1,Gn=1,Un=0,Yn=0,Zn=0,Qn="";function Jn(e,t,n,o,r,l,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:l,line:qn,column:Gn,length:i,return:"",siblings:a}}function eo(){return Zn=Yn<Un?Wn(Qn,Yn++):0,Gn++,10===Zn&&(Gn=1,qn++),Zn}function to(){return Wn(Qn,Yn)}function no(){return Yn}function oo(e,t){return Vn(Qn,e,t)}function ro(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function lo(e){return Fn(oo(Yn-1,so(91===e?e+2:40===e?e+1:e)))}function io(e){for(;(Zn=to())&&Zn<33;)eo();return ro(e)>2||ro(Zn)>3?"":" "}function ao(e,t){for(;--t&&eo()&&!(Zn<48||Zn>102||Zn>57&&Zn<65||Zn>70&&Zn<97););return oo(e,no()+(t<6&&32==to()&&32==eo()))}function so(e){for(;eo();)switch(Zn){case e:return Yn;case 34:case 39:34!==e&&39!==e&&so(Zn);break;case 40:41===e&&so(e);break;case 92:eo()}return Yn}function uo(e,t){for(;eo()&&e+Zn!==57&&(e+Zn!==84||47!==to()););return"/*"+oo(t,Yn-1)+"*"+Hn(47===e?e:eo())}function co(e){for(;!ro(to());)eo();return oo(e,Yn)}function po(e){return function(e){return Qn="",e}(fo("",null,null,null,[""],e=function(e){return qn=Gn=1,Un=Xn(Qn=e),Yn=0,[]}(e),0,[0],e))}function fo(e,t,n,o,r,l,i,a,s){for(var u=0,c=0,d=i,p=0,f=0,v=0,m=1,h=1,g=1,y=0,b="",w=r,x=l,$=o,C=b;h;)switch(v=y,y=eo()){case 40:if(108!=v&&58==Wn(C,d-1)){-1!=_n(C+=Ln(lo(y),"&","&\f"),"&\f",Nn(u?a[u-1]:0))&&(g=-1);break}case 34:case 39:case 91:C+=lo(y);break;case 9:case 10:case 13:case 32:C+=io(v);break;case 92:C+=ao(no()-1,7);continue;case 47:switch(to()){case 42:case 47:Kn(mo(uo(eo(),no()),t,n,s),s),(5==ro(v||1)||5==ro(to()||1))&&Xn(C)&&" "!==Vn(C,-1,void 0)&&(C+=" ");break;default:C+="/"}break;case 123*m:a[u++]=Xn(C)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+c:-1==g&&(C=Ln(C,/\f/g,"")),f>0&&(Xn(C)-d||0===m&&47===v)&&Kn(f>32?ho(C+";",o,n,d-1,s):ho(Ln(C," ","")+";",o,n,d-2,s),s);break;case 59:C+=";";default:if(Kn($=vo(C,t,n,u,c,r,a,b,w=[],x=[],d,l),l),123===y)if(0===c)fo(C,t,$,$,w,l,d,a,x);else switch(99===p&&110===Wn(C,3)?100:p){case 100:case 108:case 109:case 115:fo(e,$,$,o&&Kn(vo(e,$,$,0,0,r,a,b,r,w=[],d,x),x),r,x,d,a,o?w:x);break;default:fo(C,$,$,$,[""],x,0,a,x)}}u=c=f=0,m=g=1,b=C="",d=i;break;case 58:d=1+Xn(C),f=v;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==(Zn=Yn>0?Wn(Qn,--Yn):0,Gn--,10===Zn&&(Gn=1,qn--),Zn))continue;switch(C+=Hn(y),y*m){case 38:g=c>0?1:(C+="\f",-1);break;case 44:a[u++]=(Xn(C)-1)*g,g=1;break;case 64:45===to()&&(C+=lo(eo())),p=to(),c=d=Xn(b=C+=co(no())),y++;break;case 45:45===v&&2==Xn(C)&&(m=0)}}return l}function vo(e,t,n,o,r,l,i,a,s,u,c,d){for(var p=r-1,f=0===r?l:[""],v=function(e){return e.length}(f),m=0,h=0,g=0;m<o;++m)for(var y=0,b=Vn(e,p+1,p=Nn(h=i[m])),w=e;y<v;++y)(w=Fn(h>0?f[y]+" "+b:Ln(b,/&\f/g,f[y])))&&(s[g++]=w);return Jn(e,t,n,0===r?Rn:a,s,u,c,d)}function mo(e,t,n,o){return Jn(e,t,n,Dn,Hn(Zn),Vn(e,2,-2),0,o)}function ho(e,t,n,o,r){return Jn(e,t,n,Bn,Vn(e,0,o),Vn(e,o+1,-1),o,r)}function go(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function yo(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Bn:return e.return=e.return||e.value;case Dn:return"";case"@keyframes":return e.return=e.value+"{"+go(e.children,o)+"}";case Rn:if(!Xn(e.value=e.props.join(",")))return""}return Xn(n=go(e.children,o))?e.return=e.value+"{"+n+"}":""}const bo="data-ant-cssinjs-cache-path";let wo,xo=!0;function $o(e){return function(){var e;if(!wo&&(wo={},rn())){const t=document.createElement("div");t.className=bo,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach((e=>{const[t,n]=e.split(":");wo[t]=n}));const o=document.querySelector(`style[${bo}]`);o&&(xo=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}(),!!wo[e]}const Co=rn(),So="_multi_value_";function Oo(e){return go(po(e),yo).replace(/\{%%%\:[^;];}/g,";")}const ko=new Set,Po=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{root:n,injectHash:o,parentSelectors:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:l,layer:i,path:a,hashPriority:s,transformers:u=[],linters:c=[]}=t;let d="",p={};function f(e){const n=e.getName(l);if(!p[n]){const[o]=Po(e.style,t,{root:!1,parentSelectors:r});p[n]=`@keyframes ${e.getName(l)}${o}`}}if(function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((t=>{Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(e)?e:[e]).forEach((e=>{const i="string"!=typeof e||n?e:{};if("string"==typeof i)d+=`${i}\n`;else if(i._keyframe)f(i);else{const e=u.reduce(((e,t)=>{var n;return(null===(n=null==t?void 0:t.visit)||void 0===n?void 0:n.call(t,e))||e}),i);Object.keys(e).forEach((i=>{var a;const u=e[i];if("object"!=typeof u||!u||"animationName"===i&&u._keyframe||function(e){return"object"==typeof e&&e&&("_skip_check_"in e||So in e)}(u)){let e=function(e,t){const n=e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`));let o=t;!zn[e]&&"number"==typeof o&&0!==o&&(o=`${o}px`),"animationName"===e&&null!=t&&t._keyframe&&(f(t),o=t.getName(l)),d+=`${n}:${o};`};const t=null!==(a=null==u?void 0:u.value)&&void 0!==a?a:u;"object"==typeof u&&null!=u&&u[So]&&Array.isArray(t)?t.forEach((t=>{e(i,t)})):e(i,t)}else{let e=!1,a=i.trim(),c=!1;(n||o)&&l?a.startsWith("@")?e=!0:a=function(e,t,n){if(!t)return e;const o=`.${t}`,r="low"===n?`:where(${o})`:o;return e.split(",").map((e=>{var t;const n=e.trim().split(/\s+/);let o=n[0]||"";const l=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return o=`${l}${r}${o.slice(l.length)}`,[o,...n.slice(1)].join(" ")})).join(",")}(i,l,s):n&&!l&&("&"===a||""===a)&&(a="",c=!0);const[f,v]=Po(u,t,{root:c,injectHash:e,parentSelectors:[...r,a]});p=ze(ze({},p),v),d+=`${a}${f}`}}))}})),n){if(i&&En()){const e=i.split(",");d=`@layer ${e[e.length-1].trim()} {${d}}`,e.length>1&&(d=`@layer ${i}{%%%:%}${d}`)}}else d=`{${d}}`;return[d,p]};function Io(e,t){const o=tn(),r=n((()=>e.value.token._tokenKey)),l=n((()=>[r.value,...e.value.path]));let i=Co;return on("style",l,(()=>{const{path:n,hashId:a,layer:s,nonce:u,clientOnly:c,order:d=0}=e.value,p=l.value.join("|");if($o(p)){const[e,t]=function(e){const t=wo[e];let n=null;if(t&&rn())if(xo)n="_FILE_STYLE__";else{const t=document.querySelector(`style[${Yt}="${wo[e]}"]`);t?n=t.innerHTML:delete wo[e]}return[n,t]}(p);if(e)return[e,r.value,t,{},c,d]}const f=t(),{hashPriority:v,container:m,transformers:h,linters:g,cache:y}=o.value,[b,w]=Po(f,{hashId:a,hashPriority:v,layer:s,path:n.join("-"),transformers:h,linters:g}),x=Oo(b),$=function(e,t){return qt(`${e.join("%")}${t}`)}(l.value,x);if(i){const e={mark:Yt,prepend:"queue",attachTo:m,priority:d},t="function"==typeof u?u():u;t&&(e.csp={nonce:t});const n=mn(x,$,e);n[Zt]=y.instanceId,n.setAttribute(Ut,r.value),Object.keys(w).forEach((e=>{ko.has(e)||(ko.add(e),mn(Oo(w[e]),`_effect-${e}`,{mark:Yt,prepend:"queue",attachTo:m}))}))}return[x,r.value,$,w,c,d]}),((e,t)=>{let[,,n]=e;(t||o.value.autoClear)&&Co&&vn(n,{mark:Yt})})),e=>e}let Eo=class{constructor(e,t){this._keyframe=!0,this.name=e,this.style=t}getName(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?`${e}-${this.name}`:this.name}};function jo(e){return e.notSplit=!0,e}jo(["borderTop","borderBottom"]),jo(["borderTop"]),jo(["borderBottom"]),jo(["borderLeft","borderRight"]),jo(["borderLeft"]),jo(["borderRight"]);const Ao=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Mo(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function To(e){return Math.min(1,Math.max(0,e))}function zo(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Do(e){return e<=1?"".concat(100*Number(e),"%"):e}function Ro(e){return 1===e.length?"0"+e:String(e)}function Bo(e,t,n){e=Mo(e,255),t=Mo(t,255),n=Mo(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),l=0,i=0,a=(o+r)/2;if(o===r)i=0,l=0;else{var s=o-r;switch(i=a>.5?s/(2-o-r):s/(o+r),o){case e:l=(t-n)/s+(t<n?6:0);break;case t:l=(n-e)/s+2;break;case n:l=(e-t)/s+4}l/=6}return{h:l,s:i,l:a}}function No(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ho(e,t,n){e=Mo(e,255),t=Mo(t,255),n=Mo(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),l=0,i=o,a=o-r,s=0===o?0:a/o;if(o===r)l=0;else{switch(o){case e:l=(t-n)/a+(t<n?6:0);break;case t:l=(n-e)/a+2;break;case n:l=(e-t)/a+4}l/=6}return{h:l,s:s,v:i}}function Fo(e,t,n,o){var r=[Ro(Math.round(e).toString(16)),Ro(Math.round(t).toString(16)),Ro(Math.round(n).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function Lo(e){return Math.round(255*parseFloat(e)).toString(16)}function _o(e){return Wo(e)/255}function Wo(e){return parseInt(e,16)}var Vo={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Xo(e){var t={r:0,g:0,b:0},n=1,o=null,r=null,l=null,i=!1,a=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(Vo[e])e=Vo[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Uo.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Uo.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Uo.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Uo.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Uo.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Uo.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Uo.hex8.exec(e),n?{r:Wo(n[1]),g:Wo(n[2]),b:Wo(n[3]),a:_o(n[4]),format:t?"name":"hex8"}:(n=Uo.hex6.exec(e),n?{r:Wo(n[1]),g:Wo(n[2]),b:Wo(n[3]),format:t?"name":"hex"}:(n=Uo.hex4.exec(e),n?{r:Wo(n[1]+n[1]),g:Wo(n[2]+n[2]),b:Wo(n[3]+n[3]),a:_o(n[4]+n[4]),format:t?"name":"hex8"}:(n=Uo.hex3.exec(e),!!n&&{r:Wo(n[1]+n[1]),g:Wo(n[2]+n[2]),b:Wo(n[3]+n[3]),format:t?"name":"hex"})))))))))}(e)),"object"==typeof e&&(Yo(e.r)&&Yo(e.g)&&Yo(e.b)?(t=function(e,t,n){return{r:255*Mo(e,255),g:255*Mo(t,255),b:255*Mo(n,255)}}(e.r,e.g,e.b),i=!0,a="%"===String(e.r).substr(-1)?"prgb":"rgb"):Yo(e.h)&&Yo(e.s)&&Yo(e.v)?(o=Do(e.s),r=Do(e.v),t=function(e,t,n){e=6*Mo(e,360),t=Mo(t,100),n=Mo(n,100);var o=Math.floor(e),r=e-o,l=n*(1-t),i=n*(1-r*t),a=n*(1-(1-r)*t),s=o%6;return{r:255*[n,i,l,l,a,n][s],g:255*[a,n,n,i,l,l][s],b:255*[l,l,a,n,n,i][s]}}(e.h,o,r),i=!0,a="hsv"):Yo(e.h)&&Yo(e.s)&&Yo(e.l)&&(o=Do(e.s),l=Do(e.l),t=function(e,t,n){var o,r,l;if(e=Mo(e,360),t=Mo(t,100),n=Mo(n,100),0===t)r=n,l=n,o=n;else{var i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;o=No(a,i,e+1/3),r=No(a,i,e),l=No(a,i,e-1/3)}return{r:255*o,g:255*r,b:255*l}}(e.h,o,l),i=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=zo(n),{ok:i,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Ko="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),qo="[\\s|\\(]+(".concat(Ko,")[,|\\s]+(").concat(Ko,")[,|\\s]+(").concat(Ko,")\\s*\\)?"),Go="[\\s|\\(]+(".concat(Ko,")[,|\\s]+(").concat(Ko,")[,|\\s]+(").concat(Ko,")[,|\\s]+(").concat(Ko,")\\s*\\)?"),Uo={CSS_UNIT:new RegExp(Ko),rgb:new RegExp("rgb"+qo),rgba:new RegExp("rgba"+Go),hsl:new RegExp("hsl"+qo),hsla:new RegExp("hsla"+Go),hsv:new RegExp("hsv"+qo),hsva:new RegExp("hsva"+Go),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Yo(e){return!!Uo.CSS_UNIT.exec(String(e))}var Zo=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var r=Xo(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,o=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=zo(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=Ho(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Ho(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Bo(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Bo(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Fo(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,o,r){var l=[Ro(Math.round(e).toString(16)),Ro(Math.round(t).toString(16)),Ro(Math.round(n).toString(16)),Ro(Lo(o))];return r&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))&&l[3].startsWith(l[3].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Mo(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Mo(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Fo(this.r,this.g,this.b,!1),t=0,n=Object.entries(Vo);t<n.length;t++){var o=n[t],r=o[0];if(e===o[1])return r}return!1},e.prototype.toString=function(e){var t=!!e;e=e??this.format;var n=!1,o=this.a<1&&this.a>=0;return!t&&o&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=To(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=To(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=To(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=To(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),l=n/100;return new e({r:(r.r-o.r)*l+o.r,g:(r.g-o.g)*l+o.g,b:(r.b-o.b)*l+o.b,a:(r.a-o.a)*l+o.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var o=this.toHsl(),r=360/n,l=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,l.push(new e(o));return l},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,l=n.v,i=[],a=1/t;t--;)i.push(new e({h:o,s:r,v:l})),l=(l+a)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],l=360/t,i=1;i<t;i++)r.push(new e({h:(o+i*l)%360,s:n.s,l:n.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Qo=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Jo(e){var t=Ho(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function er(e){var t=e.r,n=e.g,o=e.b;return"#".concat(Fo(t,n,o,!1))}function tr(e,t,n){var o;return(o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?o+=360:o>=360&&(o-=360),o}function nr(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(o=1),n&&5===t&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2)));var o}function or(e,t,n){var o;return(o=n?e.v+.05*t:e.v-.15*t)>1&&(o=1),Number(o.toFixed(2))}function rr(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=Xo(e),r=5;r>0;r-=1){var l=Jo(o),i=er(Xo({h:tr(l,r,!0),s:nr(l,r,!0),v:or(l,r,!0)}));n.push(i)}n.push(er(o));for(var a=1;a<=4;a+=1){var s=Jo(o),u=er(Xo({h:tr(s,a),s:nr(s,a),v:or(s,a)}));n.push(u)}return"dark"===t.theme?Qo.map((function(e){var o=e.index,r=e.opacity,l=er(function(e,t,n){var o=n/100;return{r:(t.r-e.r)*o+e.r,g:(t.g-e.g)*o+e.g,b:(t.b-e.b)*o+e.b}}(Xo(t.backgroundColor||"#141414"),Xo(n[o]),100*r));return l})):n}var lr={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ir={},ar={};Object.keys(lr).forEach((function(e){ir[e]=rr(lr[e]),ir[e].primary=ir[e][5],ar[e]=rr(lr[e],{theme:"dark",backgroundColor:"#141414"}),ar[e].primary=ar[e][5]})),ir.red,ir.volcano;var sr=ir.gold;ir.orange,ir.yellow,ir.lime,ir.green,ir.cyan;var ur=ir.blue;ir.geekblue,ir.purple,ir.magenta,ir.grey;const cr=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};const dr={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},pr=ze(ze({},dr),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});function fr(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:r,colorWarning:l,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:u,colorTextBase:c}=e,d=n(s),p=n(r),f=n(l),v=n(i),m=n(a);return ze(ze({},o(u,c)),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorBgMask:new Zo("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const vr=(e,t)=>new Zo(e).setAlpha(t).toRgbString(),mr=(e,t)=>new Zo(e).darken(t).toHexString(),hr=e=>{const t=rr(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},gr=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:vr(o,.88),colorTextSecondary:vr(o,.65),colorTextTertiary:vr(o,.45),colorTextQuaternary:vr(o,.25),colorFill:vr(o,.15),colorFillSecondary:vr(o,.06),colorFillTertiary:vr(o,.04),colorFillQuaternary:vr(o,.02),colorBgLayout:mr(n,4),colorBgContainer:mr(n,0),colorBgElevated:mr(n,0),colorBgSpotlight:vr(o,.85),colorBorder:mr(n,15),colorBorderSecondary:mr(n,6)}};const yr=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const o=n-1,r=e*Math.pow(2.71828,o/5),l=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(l/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:(e+8)/e})))}(e),n=t.map((e=>e.size)),o=t.map((e=>e.lineHeight));return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:o[1],lineHeightLG:o[2],lineHeightSM:o[0],lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function br(e){const t=Object.keys(dr).map((t=>{const n=rr(e[t]);return new Array(10).fill(1).reduce(((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e)),{})})).reduce(((e,t)=>e=ze(ze({},e),t)),{});return ze(ze(ze(ze(ze(ze(ze({},e),t),fr(e,{generateColorPalettes:hr,generateNeutralColorPalettes:gr})),yr(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),cr(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return ze({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:r+1},(e=>{let t=e,n=e,o=e,r=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e>16?16:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}})(o))}(e))}function wr(e){return e>=0&&e<=255}function xr(e,t){const{r:n,g:o,b:r,a:l}=new Zo(e).toRgb();if(l<1)return e;const{r:i,g:a,b:s}=new Zo(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-i*(1-e))/e),l=Math.round((o-a*(1-e))/e),u=Math.round((r-s*(1-e))/e);if(wr(t)&&wr(l)&&wr(u))return new Zo({r:t,g:l,b:u,a:Math.round(100*e)/100}).toRgbString()}return new Zo({r:n,g:o,b:r,a:1}).toRgbString()}function $r(e){const{override:t}=e,n=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["override"]),o=ze({},t);Object.keys(pr).forEach((e=>{delete o[e]}));const r=ze(ze({},n),o),l=1200,i=1600,a=2e3;return ze(ze(ze({},r),{colorLink:r.colorInfoText,colorLinkHover:r.colorInfoHover,colorLinkActive:r.colorInfoActive,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:xr(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:xr(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:xr(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:xr(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:l-1,screenXL:l,screenXLMin:l,screenXLMax:i-1,screenXXL:i,screenXXLMin:i,screenXXLMax:a-1,screenXXXL:a,screenXXXLMin:a,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:`\n 0 1px 2px -2px ${new Zo("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Zo("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Zo("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),o)}const Cr=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Sr=(e,t,n,o,r)=>{const l=e/2,i=l,a=1*n/Math.sqrt(2),s=l-n*(1-1/Math.sqrt(2)),u=l-t*(1/Math.sqrt(2)),c=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*l-u,p=c,f=2*l-a,v=s,m=2*l-0,h=i,g=l*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::after":{content:'""',position:"absolute",width:g,height:g,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:o,clipPath:{_multi_value_:!0,value:[`polygon(${y}px 100%, 50% ${y}px, ${2*l-y}px 100%, ${y}px 100%)`,`path('M 0 ${i} A ${n} ${n} 0 0 0 ${a} ${s} L ${u} ${c} A ${t} ${t} 0 0 1 ${d} ${p} L ${f} ${v} A ${n} ${n} 0 0 0 ${m} ${h} Z')`]},content:'""'}}};function Or(e,t){return Ao.reduce(((n,o)=>{const r=e[`${o}-1`],l=e[`${o}-3`],i=e[`${o}-6`],a=e[`${o}-7`];return ze(ze({},n),t(o,{lightColor:r,lightBorderColor:l,darkColor:i,textColor:a}))}),{})}const kr={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Pr=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),Ir=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Er=(e,t)=>{const{fontFamily:n,fontSize:o}=e,r=`[class^="${t}"], [class*=" ${t}"]`;return{[r]:{fontFamily:n,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[r]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},jr=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Ar=e=>({"&:focus-visible":ze({},jr(e))});function Mr(e,t,o){return r=>{const l=n((()=>null==r?void 0:r.value)),[i,a,s]=_r(),{getPrefixCls:u,iconPrefixCls:c}=ge(),d=n((()=>u()));Io(n((()=>({theme:i.value,token:a.value,hashId:s.value,path:["Shared",d.value]}))),(()=>[{"&":Ir(a.value)}]));return[Io(n((()=>({theme:i.value,token:a.value,hashId:s.value,path:[e,l.value,c.value]}))),(()=>{const{token:n,flush:r}=function(e){let t,n=e,o=Rr;return Tr&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(zr&&t.add(n),e[n])}),o=(e,n)=>{Array.from(t)}),{token:n,keys:t,flush:o}}(a.value),i=ze(ze({},"function"==typeof o?o(n):o),a.value[e]),u=Dr(n,{componentCls:`.${l.value}`,prefixCls:l.value,iconCls:`.${c.value}`,antCls:`.${d.value}`},i),p=t(u,{hashId:s.value,prefixCls:l.value,rootPrefixCls:d.value,iconPrefixCls:c.value,overrideComponentToken:a.value[e]});return r(e,i),[Er(a.value,l.value),p]})),s]}}const Tr=typeof CSSINJS_STATISTIC<"u";let zr=!0;function Dr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Tr)return ze({},...t);zr=!1;const o={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),zr=!0,o}function Rr(){}const Br=Cn(br),Nr={token:pr,hashed:!0},Hr=Symbol("DesignTokenContext"),Fr=s(),Lr=l({props:{value:ie()},setup(e,t){let{slots:o}=t;return(e=>{r(Hr,e),i(e,(()=>{Fr.value=a(e),u(Fr)}),{immediate:!0,deep:!0})})(n((()=>e.value))),()=>{var e;return null===(e=o.default)||void 0===e?void 0:e.call(o)}}});function _r(){const e=o(Hr,n((()=>Fr.value||Nr))),t=n((()=>`4.2.6-${e.value.hashed||""}`)),r=n((()=>e.value.theme||Br)),l=Tn(r,n((()=>[pr,e.value.token])),n((()=>({salt:t.value,override:ze({override:e.value.token},e.value.components),formatToken:$r}))));return[r,n((()=>l.value[0])),n((()=>e.value.hashed?l.value[1]:""))]}const Wr=l({compatConfig:{MODE:3},setup(){const[,e]=_r(),t=n((()=>new Zo(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{}));return()=>$("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[$("g",{fill:"none","fill-rule":"evenodd"},[$("g",{transform:"translate(24 31.67)"},[$("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),$("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"},null),$("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)"},null),$("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"},null),$("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"},null)]),$("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"},null),$("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[$("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),$("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});Wr.PRESENTED_IMAGE_DEFAULT=!0;const Vr=l({compatConfig:{MODE:3},setup(){const[,e]=_r(),t=n((()=>{const{colorFill:t,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:r}=e.value;return{borderColor:new Zo(t).onBackground(r).toHexString(),shadowColor:new Zo(n).onBackground(r).toHexString(),contentColor:new Zo(o).onBackground(r).toHexString()}}));return()=>$("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[$("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[$("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),$("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[$("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"},null),$("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:t.value.contentColor},null)])])])}});Vr.PRESENTED_IMAGE_SIMPLE=!0;const Xr=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:l,lineHeight:i}=e;return{[t]:{marginInline:o,fontSize:l,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Kr=Mr("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,o=Dr(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[Xr(o)]}));const qr=l({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:{prefixCls:String,imageStyle:ie(),image:ue(),description:ue()},setup(e,t){let{slots:n={},attrs:o}=t;const{direction:r,prefixCls:l}=el("empty",e),[i,a]=Kr(l);return()=>{var t,s;const u=l.value,c=ze(ze({},e),o),{image:d=(null===(t=n.image)||void 0===t?void 0:t.call(n))||C(Wr),description:p=(null===(s=n.description)||void 0===s?void 0:s.call(n))||void 0,imageStyle:f,class:v=""}=c,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(c,["image","description","imageStyle","class"]),h="function"==typeof d?d():d,g="object"==typeof h&&"type"in h&&h.type.PRESENTED_IMAGE_SIMPLE;return i($(Xt,{componentName:"Empty",children:e=>{const t=typeof p<"u"?p:e.description;let o=null;return o="string"==typeof h?$("img",{alt:"string"==typeof t?t:"empty",src:h},null):h,$("div",Te({class:Ge(u,v,a.value,{[`${u}-normal`]:g,[`${u}-rtl`]:"rtl"===r.value})},m),[$("div",{class:`${u}-image`,style:f},[o]),t&&$("p",{class:`${u}-description`},[t]),n.default&&$("div",{class:`${u}-footer`},[kt(n.default())])])}},null))}}});qr.PRESENTED_IMAGE_DEFAULT=()=>C(Wr),qr.PRESENTED_IMAGE_SIMPLE=()=>C(Vr);const Gr=re(qr),Ur=e=>{const{prefixCls:t}=el("empty",e);return(e=>{switch(e){case"Table":case"List":return $(Gr,{image:Gr.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return $(Gr,{image:Gr.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return $(Gr,null,null)}})(e.componentName)};function Yr(e){return $(Ur,{componentName:e},null)}const Zr=Symbol("SizeContextKey"),Qr=()=>o(Zr,b(void 0)),Jr=e=>{const t=Qr();return r(Zr,n((()=>e.value||t.value))),e},el=(e,t)=>{const r=Qr(),l=Ht(),i=o(me,ze(ze({},he),{renderEmpty:e=>C(Ur,{componentName:e})})),a=n((()=>i.getPrefixCls(e,t.prefixCls))),s=n((()=>{var e,n;return null!==(e=t.direction)&&void 0!==e?e:null===(n=i.direction)||void 0===n?void 0:n.value})),u=n((()=>{var e;return null!==(e=t.iconPrefixCls)&&void 0!==e?e:i.iconPrefixCls.value})),c=n((()=>i.getPrefixCls())),d=n((()=>{var e;return null===(e=i.autoInsertSpaceInButton)||void 0===e?void 0:e.value})),p=i.renderEmpty,f=i.space,v=i.pageHeader,m=i.form,h=n((()=>{var e,n;return null!==(e=t.getTargetContainer)&&void 0!==e?e:null===(n=i.getTargetContainer)||void 0===n?void 0:n.value})),g=n((()=>{var e,n,o;return null!==(n=null!==(e=t.getContainer)&&void 0!==e?e:t.getPopupContainer)&&void 0!==n?n:null===(o=i.getPopupContainer)||void 0===o?void 0:o.value})),y=n((()=>{var e,n;return null!==(e=t.dropdownMatchSelectWidth)&&void 0!==e?e:null===(n=i.dropdownMatchSelectWidth)||void 0===n?void 0:n.value})),b=n((()=>{var e;return(void 0===t.virtual?!1!==(null===(e=i.virtual)||void 0===e?void 0:e.value):!1!==t.virtual)&&!1!==y.value})),w=n((()=>t.size||r.value)),x=n((()=>{var e,n,o;return null!==(e=t.autocomplete)&&void 0!==e?e:null===(o=null===(n=i.input)||void 0===n?void 0:n.value)||void 0===o?void 0:o.autocomplete})),$=n((()=>{var e;return null!==(e=t.disabled)&&void 0!==e?e:l.value})),S=n((()=>{var e;return null!==(e=t.csp)&&void 0!==e?e:i.csp})),O=n((()=>{var e,n;return null!==(e=t.wave)&&void 0!==e?e:null===(n=i.wave)||void 0===n?void 0:n.value}));return{configProvider:i,prefixCls:a,direction:s,size:w,getTargetContainer:h,getPopupContainer:g,space:f,pageHeader:v,form:m,autoInsertSpaceInButton:d,renderEmpty:p,virtual:b,dropdownMatchSelectWidth:y,rootPrefixCls:c,getPrefixCls:i.getPrefixCls,autocomplete:x,csp:S,iconPrefixCls:u,disabled:$,select:i.select,wave:O}};function tl(e,t){const n=ze({},e);for(let e=0;e<t.length;e+=1){delete n[t[e]]}return n}function nl(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function ol(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function rl(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return ol(n.overflowY,t)||ol(n.overflowX,t)||!!(r=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}}(o=e))&&(r.clientHeight<o.scrollHeight||r.clientWidth<o.scrollWidth)}var o,r;return!1}function ll(e,t,n,o,r,l,i,a){return l<e&&i>t||l>e&&i<t?0:l<=e&&a<=n||i>=t&&a>=n?l-e-o:i>t&&a<n||l<e&&a>n?i-t+r:0}var il=function(e,t){var n=window,o=t.scrollMode,r=t.block,l=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,s="function"==typeof i?i:function(e){return e!==i};if(!nl(e))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,p=[],f=e;nl(f)&&s(f);){if((f=null==(c=(u=f).parentElement)?u.getRootNode().host||null:c)===d){p.push(f);break}null!=f&&f===document.body&&rl(f)&&!rl(document.documentElement)||null!=f&&rl(f,a)&&p.push(f)}for(var v=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),b=y.height,w=y.width,x=y.top,$=y.right,C=y.bottom,S=y.left,O="start"===r||"nearest"===r?x:"end"===r?C:x+b/2,k="center"===l?S+w/2:"end"===l?$:S,P=[],I=0;I<p.length;I++){var E=p[I],j=E.getBoundingClientRect(),A=j.height,M=j.width,T=j.top,z=j.right,D=j.bottom,R=j.left;if("if-needed"===o&&x>=0&&S>=0&&C<=m&&$<=v&&x>=T&&C<=D&&S>=R&&$<=z)return P;var B=getComputedStyle(E),N=parseInt(B.borderLeftWidth,10),H=parseInt(B.borderTopWidth,10),F=parseInt(B.borderRightWidth,10),L=parseInt(B.borderBottomWidth,10),_=0,W=0,V="offsetWidth"in E?E.offsetWidth-E.clientWidth-N-F:0,X="offsetHeight"in E?E.offsetHeight-E.clientHeight-H-L:0,K="offsetWidth"in E?0===E.offsetWidth?0:M/E.offsetWidth:0,q="offsetHeight"in E?0===E.offsetHeight?0:A/E.offsetHeight:0;if(d===E)_="start"===r?O:"end"===r?O-m:"nearest"===r?ll(g,g+m,m,H,L,g+O,g+O+b,b):O-m/2,W="start"===l?k:"center"===l?k-v/2:"end"===l?k-v:ll(h,h+v,v,N,F,h+k,h+k+w,w),_=Math.max(0,_+g),W=Math.max(0,W+h);else{_="start"===r?O-T-H:"end"===r?O-D+L+X:"nearest"===r?ll(T,D,A,H,L+X,O,O+b,b):O-(T+A/2)+X/2,W="start"===l?k-R-N:"center"===l?k-(R+M/2)+V/2:"end"===l?k-z+F+V:ll(R,z,M,N,F+V,k,k+w,w);var G=E.scrollLeft,U=E.scrollTop;O+=U-(_=Math.max(0,Math.min(U+_/q,E.scrollHeight-A/q+X))),k+=G-(W=Math.max(0,Math.min(G+W/K,E.scrollWidth-M/K+V)))}P.push({el:E,top:_,left:W})}return P};function al(e){return e===Object(e)&&0!==Object.keys(e).length}function sl(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(al(t)&&"function"==typeof t.behavior)return t.behavior(n?il(e,t):[]);if(n){var o=function(e){return!1===e?{block:"end",inline:"nearest"}:al(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var o=e.el,r=e.top,l=e.left;o.scroll&&n?o.scroll({top:r,left:l,behavior:t}):(o.scrollTop=r,o.scrollLeft=l)}))}(il(e,o),o.behavior)}}function ul(e,t,n){return n&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e,n),e}function cl(){return(cl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function dl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function pl(e,t){if(null==e)return{};var n,o,r={},l=Object.keys(e);for(o=0;o<l.length;o++)t.indexOf(n=l[o])>=0||(r[n]=e[n]);return r}function fl(e){return 1==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t))&&"[object Object]"===Object.prototype.toString.call(e);var t}var vl=Object.prototype,ml=vl.toString,hl=vl.hasOwnProperty,gl=/^\s*function (\w+)/;function yl(e){var t,n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){var o=n.toString().match(gl);return o?o[1]:""}return""}var bl=function(e){var t,n;return!1!==fl(e)&&"function"==typeof(t=e.constructor)&&!1!==fl(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")},wl=function(e){return e},xl=function(e,t){return hl.call(e,t)},$l=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Cl=Array.isArray||function(e){return"[object Array]"===ml.call(e)},Sl=function(e){return"[object Function]"===ml.call(e)},Ol=function(e){return bl(e)&&xl(e,"_vueTypes_name")},kl=function(e){return bl(e)&&(xl(e,"type")||["_vueTypes_name","validator","default","required"].some((function(t){return xl(e,t)})))};function Pl(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function Il(e,t,n){var o,r=!0,l="";o=bl(e)?e:{type:e};var i=Ol(o)?o._vueTypes_name+" - ":"";if(kl(o)&&null!==o.type){if(void 0===o.type||!0===o.type||!o.required&&void 0===t)return r;Cl(o.type)?(r=o.type.some((function(e){return!0===Il(e,t)})),l=o.type.map((function(e){return yl(e)})).join(" or ")):r="Array"===(l=yl(o))?Cl(t):"Object"===l?bl(t):"String"===l||"Number"===l||"Boolean"===l||"Function"===l?function(e){if(null==e)return"";var t=e.constructor.toString().match(gl);return t?t[1]:""}(t)===l:t instanceof o.type}if(!r)return i+'value "'+t+'" should be of type "'+l+'"';if(xl(o,"validator")&&Sl(o.validator)){var a=wl,s=[];if(wl=function(e){s.push(e)},r=o.validator(t),wl=a,!r){var u=(s.length>1?"* ":"")+s.join("\n* ");return s.length=0,u}}return r}function El(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(e){return void 0!==e||this.default?Sl(e)||!0===Il(this,e)?(this.default=Cl(e)?function(){return[].concat(e)}:bl(e)?function(){return Object.assign({},e)}:e,this):(wl(this._vueTypes_name+' - invalid default value: "'+e+'"'),this):this}}}),o=n.validator;return Sl(o)&&(n.validator=Pl(o,n)),n}function jl(e,t){var n=El(e,t);return Object.defineProperty(n,"validate",{value:function(e){return Sl(this.validator)&&wl(this._vueTypes_name+" - calling .validate() will overwrite the current custom validator function. Validator info:\n"+JSON.stringify(this)),this.validator=Pl(e,this),this}})}function Al(e,t,n){var o,r,l=(o=t,r={},Object.getOwnPropertyNames(o).forEach((function(e){r[e]=Object.getOwnPropertyDescriptor(o,e)})),Object.defineProperties({},r));if(l._vueTypes_name=e,!bl(n))return l;var i,a,s=n.validator,u=pl(n,["validator"]);if(Sl(s)){var c=l.validator;c&&(c=null!==(a=(i=c).__original)&&void 0!==a?a:i),l.validator=Pl(c?function(e){return c.call(this,e)&&s.call(this,e)}:s,l)}return Object.assign(l,u)}function Ml(e){return e.replace(/^(?!\s*$)/gm," ")}var Tl=function(){function e(){}return e.extend=function(e){var t=this;if(Cl(e))return e.forEach((function(e){return t.extend(e)})),this;var n=e.name,o=e.validate,r=void 0!==o&&o,l=e.getter,i=void 0!==l&&l,a=pl(e,["name","validate","getter"]);if(xl(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var s,u=a.type;return Ol(u)?(delete a.type,Object.defineProperty(this,n,i?{get:function(){return Al(n,u,a)}}:{value:function(){var e,t=Al(n,u,a);return t.validator&&(t.validator=(e=t.validator).bind.apply(e,[t].concat([].slice.call(arguments)))),t}})):(s=i?{get:function(){var e=Object.assign({},a);return r?jl(n,e):El(n,e)},enumerable:!0}:{value:function(){var e,t,o=Object.assign({},a);return e=r?jl(n,o):El(n,o),o.validator&&(e.validator=(t=o.validator).bind.apply(t,[e].concat([].slice.call(arguments)))),e},enumerable:!0},Object.defineProperty(this,n,s))},ul(e,0,[{key:"any",get:function(){return jl("any",{})}},{key:"func",get:function(){return jl("function",{type:Function}).def(this.defaults.func)}},{key:"bool",get:function(){return jl("boolean",{type:Boolean}).def(this.defaults.bool)}},{key:"string",get:function(){return jl("string",{type:String}).def(this.defaults.string)}},{key:"number",get:function(){return jl("number",{type:Number}).def(this.defaults.number)}},{key:"array",get:function(){return jl("array",{type:Array}).def(this.defaults.array)}},{key:"object",get:function(){return jl("object",{type:Object}).def(this.defaults.object)}},{key:"integer",get:function(){return El("integer",{type:Number,validator:function(e){return $l(e)}}).def(this.defaults.integer)}},{key:"symbol",get:function(){return El("symbol",{validator:function(e){return"symbol"==typeof e}})}}]),e}();function zl(e){var t;return void 0===e&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(t){function n(){return t.apply(this,arguments)||this}return dl(n,t),ul(n,0,[{key:"sensibleDefaults",get:function(){return cl({},this.defaults)},set:function(t){this.defaults=!1!==t?cl({},!0!==t?t:e):{}}}]),n}(Tl)).defaults=cl({},e),t}Tl.defaults={},Tl.custom=function(e,t){if(void 0===t&&(t="custom validation failed"),"function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return El(e.name||"<<anonymous function>>",{validator:function(n){var o=e(n);return o||wl(this._vueTypes_name+" - "+t),o}})},Tl.oneOf=function(e){if(!Cl(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce((function(e,t){if(null!=t){var n=t.constructor;-1===e.indexOf(n)&&e.push(n)}return e}),[]);return El("oneOf",{type:n.length>0?n:void 0,validator:function(n){var o=-1!==e.indexOf(n);return o||wl(t),o}})},Tl.instanceOf=function(e){return El("instanceOf",{type:e})},Tl.oneOfType=function(e){if(!Cl(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],o=0;o<e.length;o+=1){var r=e[o];if(kl(r)){if(Ol(r)&&"oneOf"===r._vueTypes_name){n=n.concat(r.type);continue}if(Sl(r.validator)&&(t=!0),!0!==r.type&&r.type){n=n.concat(r.type);continue}}n.push(r)}return n=n.filter((function(e,t){return n.indexOf(e)===t})),El("oneOfType",t?{type:n,validator:function(t){var n=[],o=e.some((function(e){var o=Il(Ol(e)&&"oneOf"===e._vueTypes_name?e.type||null:e,t);return"string"==typeof o&&n.push(o),!0===o}));return o||wl("oneOfType - provided value does not match any of the "+n.length+" passed-in validators:\n"+Ml(n.join("\n"))),o}}:{type:n})},Tl.arrayOf=function(e){return El("arrayOf",{type:Array,validator:function(t){var n,o=t.every((function(t){return!0===(n=Il(e,t))}));return o||wl("arrayOf - value validation error:\n"+Ml(n)),o}})},Tl.objectOf=function(e){return El("objectOf",{type:Object,validator:function(t){var n,o=Object.keys(t).every((function(o){return!0===(n=Il(e,t[o]))}));return o||wl("objectOf - value validation error:\n"+Ml(n)),o}})},Tl.shape=function(e){var t=Object.keys(e),n=t.filter((function(t){var n;return!(null===(n=e[t])||void 0===n||!n.required)})),o=El("shape",{type:Object,validator:function(o){var r=this;if(!bl(o))return!1;var l=Object.keys(o);if(n.length>0&&n.some((function(e){return-1===l.indexOf(e)}))){var i=n.filter((function(e){return-1===l.indexOf(e)}));return wl(1===i.length?'shape - required property "'+i[0]+'" is not defined.':'shape - required properties "'+i.join('", "')+'" are not defined.'),!1}return l.every((function(n){if(-1===t.indexOf(n))return!0===r._vueTypes_isLoose||(wl('shape - shape definition does not include a "'+n+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var l=Il(e[n],o[n]);return"string"==typeof l&&wl('shape - "'+n+'" property validation error:\n '+Ml(l)),!0===l}))}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),o},Tl.utils={validate:function(e,t){return!0===Il(t,e)},toType:function(e,t,n){return void 0===n&&(n=!1),n?jl(e,t):El(e,t)}},function(e){function t(){return e.apply(this,arguments)||this}dl(t,e)}(zl());const Dl=zl({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});Dl.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);const Rl=(e,t,n)=>{yn(e,`[ant-design-vue: ${t}] ${n}`)};function Bl(e,t){const{key:n}=e;let o;return"value"in e&&({value:o}=e),n??(void 0!==o?o:`rc-index-key-${t}`)}function Nl(e,t){const{label:n,value:o,options:r}=e||{};return{label:n||(t?"children":"label"),value:o||"value",options:r||"options"}}function Hl(e){const t=ze({},e);return"props"in t||Object.defineProperty(t,"props",{get:()=>t}),t}function Fl(){return""}function Ll(e){return e?e.ownerDocument:window.document}function _l(){}const Wl={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,arrow:{type:Boolean,default:!0},animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},Vl=ze(ze({},Wl),{mobile:{type:Object}}),Xl=ze(ze({},Wl),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function Kl(e){let{prefixCls:t,animation:n,transitionName:o}=e;return n?{name:`${t}-${n}`}:o?{name:o}:{}}function ql(e){const{prefixCls:t,visible:n,zIndex:o,mask:r,maskAnimation:l,maskTransitionName:i}=e;if(!r)return null;let a={};return(i||l)&&(a=Kl({prefixCls:t,transitionName:i,animation:l})),$(S,Te({appear:!0},a),{default:()=>[O($("div",{style:{zIndex:o},class:`${t}-mask`},null),[[k("if"),n]])]})}ql.displayName="Mask";const Gl=l({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:Vl,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,slots:o}=t;const r=b();return n({forceAlign:()=>{},getElement:()=>r.value}),()=>{var t;const{zIndex:n,visible:l,prefixCls:i,mobile:{popupClassName:a,popupStyle:s,popupMotion:u={},popupRender:c}={}}=e,d=ze({zIndex:n},s);let p=wt(null===(t=o.default)||void 0===t?void 0:t.call(o));p.length>1&&(p=$("div",{class:`${i}-content`},[p])),c&&(p=c(p));const f=Ge(i,a);return $(S,Te({ref:r},u),{default:()=>[l?$("div",{class:f,style:d},[p]):null]})}}});var Ul=function(e,t,n,o){return new(n||(n=Promise))((function(r,l){function i(e){try{s(o.next(e))}catch(e){l(e)}}function a(e){try{s(o.throw(e))}catch(e){l(e)}}function s(e){e.done?r(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(i,a)}s((o=o.apply(e,t||[])).next())}))};const Yl=["measure","align",null,"motion"];function Zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zl(Object(n),!0).forEach((function(t){ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jl(e){return(Jl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ti,ni={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function oi(){if(void 0!==ti)return ti;ti="";var e=document.createElement("p").style;for(var t in ni)t+"Transform"in e&&(ti=t);return ti}function ri(){return oi()?"".concat(oi(),"TransitionProperty"):"transitionProperty"}function li(){return oi()?"".concat(oi(),"Transform"):"transform"}function ii(e,t){var n=ri();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function ai(e,t){var n=li();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var si,ui=/matrix\((.*)\)/,ci=/matrix3d\((.*)\)/;function di(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function pi(e,t,n){var o=n;if("object"!==Jl(t))return typeof o<"u"?("number"==typeof o&&(o="".concat(o,"px")),void(e.style[t]=o)):si(e,t);for(var r in t)t.hasOwnProperty(r)&&pi(e,r,t[r])}function fi(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function vi(e){return fi(e)}function mi(e){return fi(e,!0)}function hi(e){var t=function(e){var t,n,o,r=e.ownerDocument,l=r.body,i=r&&r.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),o=Math.floor(t.top),{left:n-=i.clientLeft||l.clientLeft||0,top:o-=i.clientTop||l.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=vi(o),t.top+=mi(o),t}function gi(e){return null!=e&&e==e.window}function yi(e){return gi(e)?e.document:9===e.nodeType?e:e.ownerDocument}var bi=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),wi=/^(top|right|bottom|left)$/,xi="currentStyle",$i="runtimeStyle",Ci="left";function Si(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function Oi(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function ki(e,t,n){"static"===pi(e,"position")&&(e.style.position="relative");var o=-999,r=-999,l=Si("left",n),i=Si("top",n),a=Oi(l),s=Oi(i);"left"!==l&&(o=999),"top"!==i&&(r=999);var u="",c=hi(e);("left"in t||"top"in t)&&(u=function(e){return e.style.transitionProperty||e.style[ri()]}(e)||"",ii(e,"none")),"left"in t&&(e.style[a]="",e.style[l]="".concat(o,"px")),"top"in t&&(e.style[s]="",e.style[i]="".concat(r,"px")),di(e);var d=hi(e),p={};for(var f in t)if(t.hasOwnProperty(f)){var v=Si(f,n),m="left"===f?o:r,h=c[f]-d[f];p[v]=v===f?m+h:m-h}pi(e,p),di(e),("left"in t||"top"in t)&&ii(e,u);var g={};for(var y in t)if(t.hasOwnProperty(y)){var b=Si(y,n),w=t[y]-c[y];g[b]=y===b?p[b]+w:p[b]-w}pi(e,g)}function Pi(e,t){var n=hi(e),o=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(li());if(n&&"none"!==n){var o=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}(e),r={x:o.x,y:o.y};"left"in t&&(r.x=o.x+t.left-n.left),"top"in t&&(r.y=o.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),o=n.getPropertyValue("transform")||n.getPropertyValue(li());if(o&&"none"!==o){var r,l=o.match(ui);l?((r=(l=l[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,r[5]=t.y,ai(e,"matrix(".concat(r.join(","),")"))):((r=o.match(ci)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,r[13]=t.y,ai(e,"matrix3d(".concat(r.join(","),")")))}else ai(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,r)}function Ii(e,t){for(var n=0;n<e.length;n++)t(e[n])}function Ei(e){return"border-box"===si(e,"boxSizing")}typeof window<"u"&&(si=window.getComputedStyle?function(e,t,n){var o=n,r="",l=yi(e);return(o=o||l.defaultView.getComputedStyle(e,null))&&(r=o.getPropertyValue(t)||o[t]),r}:function(e,t){var n=e[xi]&&e[xi][t];if(bi.test(n)&&!wi.test(t)){var o=e.style,r=o[Ci],l=e[$i][Ci];e[$i][Ci]=e[xi][Ci],o[Ci]="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o[Ci]=r,e[$i][Ci]=l}return""===n?"auto":n});var ji=["margin","border","padding"];function Ai(e,t,n){var o,r,l,i=0;for(r=0;r<t.length;r++)if(o=t[r])for(l=0;l<n.length;l++){var a=void 0;a="border"===o?"".concat(o).concat(n[l],"Width"):o+n[l],i+=parseFloat(si(e,a))||0}return i}var Mi={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function Ti(e,t,n){var o=n;if(gi(e))return"width"===t?Mi.viewportWidth(e):Mi.viewportHeight(e);if(9===e.nodeType)return"width"===t?Mi.docWidth(e):Mi.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],l=Math.floor("width"===t?e.getBoundingClientRect().width:e.getBoundingClientRect().height),i=Ei(e),a=0;(null==l||l<=0)&&(l=void 0,(null==(a=si(e,t))||Number(a)<0)&&(a=e.style[t]||0),a=Math.floor(parseFloat(a))||0),void 0===o&&(o=i?1:-1);var s=void 0!==l||i,u=l||a;return-1===o?s?u-Ai(e,["border","padding"],r):a:s?1===o?u:u+(2===o?-Ai(e,["border"],r):Ai(e,["margin"],r)):a+Ai(e,ji.slice(o),r)}Ii(["Width","Height"],(function(e){Mi["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],Mi["viewport".concat(e)](n))},Mi["viewport".concat(e)]=function(t){var n="client".concat(e),o=t.document,r=o.body,l=o.documentElement[n];return"CSS1Compat"===o.compatMode&&l||r&&r[n]||l}}));var zi={position:"absolute",visibility:"hidden",display:"block"};function Di(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,r=t[0];return 0!==r.offsetWidth?o=Ti.apply(void 0,t):function(e,t,n){var o,r={},l=e.style;for(o in t)t.hasOwnProperty(o)&&(r[o]=l[o],l[o]=t[o]);for(o in n.call(e),t)t.hasOwnProperty(o)&&(l[o]=r[o])}(r,zi,(function(){o=Ti.apply(void 0,t)})),o}function Ri(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}Ii(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);Mi["outer".concat(t)]=function(t,n){return t&&Di(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];Mi[e]=function(t,o){var r=o;return void 0!==r?t?(Ei(t)&&(r+=Ai(t,["padding","border"],n)),pi(t,e,r)):void 0:t&&Di(t,e,-1)}}));var Bi={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:yi,offset:function(e,t,n){if(!(typeof t<"u"))return hi(e);!function(e,t,n){if(n.ignoreShake){var o=hi(e),r=o.left.toFixed(0),l=o.top.toFixed(0),i=t.left.toFixed(0),a=t.top.toFixed(0);if(r===i&&l===a)return}n.useCssRight||n.useCssBottom?ki(e,t,n):n.useCssTransform&&li()in document.body.style?Pi(e,t):ki(e,t,n)}(e,t,n||{})},isWindow:gi,each:Ii,css:pi,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:Ri,getWindowScrollLeft:function(e){return vi(e)},getWindowScrollTop:function(e){return mi(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)Bi.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};Ri(Bi,Mi);var Ni=Bi.getParent;function Hi(e){if(Bi.isWindow(e)||9===e.nodeType)return null;var t,n=Bi.getDocument(e).body,o=Bi.css(e,"position");if(!("fixed"===o||"absolute"===o))return"html"===e.nodeName.toLowerCase()?null:Ni(e);for(t=Ni(e);t&&t!==n&&9!==t.nodeType;t=Ni(t))if("static"!==(o=Bi.css(t,"position")))return t;return null}var Fi=Bi.getParent;function Li(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},o=Hi(e),r=Bi.getDocument(e),l=r.defaultView||r.parentWindow,i=r.body,a=r.documentElement;o;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===o.clientWidth||o===i||o===a||"visible"===Bi.css(o,"overflow")){if(o===i||o===a)break}else{var s=Bi.offset(o);s.left+=o.clientLeft,s.top+=o.clientTop,n.top=Math.max(n.top,s.top),n.right=Math.min(n.right,s.left+o.clientWidth),n.bottom=Math.min(n.bottom,s.top+o.clientHeight),n.left=Math.max(n.left,s.left)}o=Hi(o)}var u=null;Bi.isWindow(e)||9===e.nodeType||(u=e.style.position,"absolute"===Bi.css(e,"position")&&(e.style.position="fixed"));var c=Bi.getWindowScrollLeft(l),d=Bi.getWindowScrollTop(l),p=Bi.viewportWidth(l),f=Bi.viewportHeight(l),v=a.scrollWidth,m=a.scrollHeight,h=window.getComputedStyle(i);if("hidden"===h.overflowX&&(v=l.innerWidth),"hidden"===h.overflowY&&(m=l.innerHeight),e.style&&(e.style.position=u),t||function(e){if(Bi.isWindow(e)||9===e.nodeType)return!1;var t=Bi.getDocument(e),n=t.body,o=null;for(o=Fi(e);o&&o!==n&&o!==t;o=Fi(o))if("fixed"===Bi.css(o,"position"))return!0;return!1}(e))n.left=Math.max(n.left,c),n.top=Math.max(n.top,d),n.right=Math.min(n.right,c+p),n.bottom=Math.min(n.bottom,d+f);else{var g=Math.max(v,c+p);n.right=Math.min(n.right,g);var y=Math.max(m,d+f);n.bottom=Math.min(n.bottom,y)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function _i(e){var t,n,o;if(Bi.isWindow(e)||9===e.nodeType){var r=Bi.getWindow(e);t={left:Bi.getWindowScrollLeft(r),top:Bi.getWindowScrollTop(r)},n=Bi.viewportWidth(r),o=Bi.viewportHeight(r)}else t=Bi.offset(e),n=Bi.outerWidth(e),o=Bi.outerHeight(e);return t.width=n,t.height=o,t}function Wi(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,l=e.height,i=e.left,a=e.top;return"c"===n?a+=l/2:"b"===n&&(a+=l),"c"===o?i+=r/2:"r"===o&&(i+=r),{left:i,top:a}}function Vi(e,t,n,o,r){var l=Wi(t,n[1]),i=Wi(e,n[0]),a=[i.left-l.left,i.top-l.top];return{left:Math.round(e.left-a[0]+o[0]-r[0]),top:Math.round(e.top-a[1]+o[1]-r[1])}}function Xi(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Ki(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function qi(e,t,n){var o=[];return Bi.each(e,(function(e){o.push(e.replace(t,(function(e){return n[e]})))})),o}function Gi(e,t){return e[t]=-e[t],e}function Ui(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Yi(e,t){e[0]=Ui(e[0],t.width),e[1]=Ui(e[1],t.height)}function Zi(e,t,n,o){var r=n.points,l=n.offset||[0,0],i=n.targetOffset||[0,0],a=n.overflow,s=n.source||e;l=[].concat(l),i=[].concat(i);var u={},c=0,d=Li(s,!(!(a=a||{})||!a.alwaysByViewport)),p=_i(s);Yi(l,p),Yi(i,t);var f=Vi(p,t,r,l,i),v=Bi.merge(p,f);if(d&&(a.adjustX||a.adjustY)&&o){if(a.adjustX&&Xi(f,p,d)){var m=qi(r,/[lr]/gi,{l:"r",r:"l"}),h=Gi(l,0),g=Gi(i,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Vi(p,t,m,h,g),p,d)||(c=1,r=m,l=h,i=g)}if(a.adjustY&&Ki(f,p,d)){var y=qi(r,/[tb]/gi,{t:"b",b:"t"}),b=Gi(l,1),w=Gi(i,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Vi(p,t,y,b,w),p,d)||(c=1,r=y,l=b,i=w)}c&&(f=Vi(p,t,r,l,i),Bi.mix(v,f));var x=Xi(f,p,d),$=Ki(f,p,d);if(x||$){var C=r;x&&(C=qi(r,/[lr]/gi,{l:"r",r:"l"})),$&&(C=qi(r,/[tb]/gi,{t:"b",b:"t"})),r=C,l=n.offset||[0,0],i=n.targetOffset||[0,0]}u.adjustX=a.adjustX&&x,u.adjustY=a.adjustY&&$,(u.adjustX||u.adjustY)&&(v=function(e,t,n,o){var r=Bi.clone(e),l={width:t.width,height:t.height};return o.adjustX&&r.left<n.left&&(r.left=n.left),o.resizeWidth&&r.left>=n.left&&r.left+l.width>n.right&&(l.width-=r.left+l.width-n.right),o.adjustX&&r.left+l.width>n.right&&(r.left=Math.max(n.right-l.width,n.left)),o.adjustY&&r.top<n.top&&(r.top=n.top),o.resizeHeight&&r.top>=n.top&&r.top+l.height>n.bottom&&(l.height-=r.top+l.height-n.bottom),o.adjustY&&r.top+l.height>n.bottom&&(r.top=Math.max(n.bottom-l.height,n.top)),Bi.mix(r,l)}(f,p,d,u))}return v.width!==p.width&&Bi.css(s,"width",Bi.width(s)+v.width-p.width),v.height!==p.height&&Bi.css(s,"height",Bi.height(s)+v.height-p.height),Bi.offset(s,{left:v.left,top:v.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:r,offset:l,targetOffset:i,overflow:u}}function Qi(e,t,n){var o=n.target||t,r=_i(o),l=!function(e,t){var n=Li(e,t),o=_i(e);return!n||o.left+o.width<=n.left||o.top+o.height<=n.top||o.left>=n.right||o.top>=n.bottom}(o,n.overflow&&n.overflow.alwaysByViewport);return Zi(e,r,n,l)}function Ji(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e;if(Array.isArray(e)&&(r=kt(e)[0]),!r)return null;const l=P(r,t,o);return l.props=n?ze(ze({},l.props),t):l.props,bn("object"!=typeof l.props.class),l}Qi.__getOffsetParent=Hi,Qi.__getVisibleRectForElement=Li;const ea=e=>{if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){const t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){const t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1};function ta(e,t){let n=null,o=null;const r=new ht((function(e){let[{target:r}]=e;if(!document.documentElement.contains(r))return;const{width:l,height:i}=r.getBoundingClientRect(),a=Math.floor(l),s=Math.floor(i);(n!==a||o!==s)&&Promise.resolve().then((()=>{t({width:a,height:s})})),n=a,o=s}));return e&&r.observe(e),()=>{r.disconnect()}}function na(e,t){return e===t||e!=e&&t!=t}function oa(e,t){for(var n=e.length;n--;)if(na(e[n][0],t))return n;return-1}var ra=Array.prototype.splice;function la(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}la.prototype.clear=function(){this.__data__=[],this.size=0},la.prototype.delete=function(e){var t=this.__data__,n=oa(t,e);return!(n<0)&&(n==t.length-1?t.pop():ra.call(t,n,1),--this.size,!0)},la.prototype.get=function(e){var t=this.__data__,n=oa(t,e);return n<0?void 0:t[n][1]},la.prototype.has=function(e){return oa(this.__data__,e)>-1},la.prototype.set=function(e,t){var n=this.__data__,o=oa(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};var ia="object"==typeof global&&global&&global.Object===Object&&global,aa="object"==typeof self&&self&&self.Object===Object&&self,sa=ia||aa||Function("return this")(),ua=sa.Symbol,ca=Object.prototype,da=ca.hasOwnProperty,pa=ca.toString,fa=ua?ua.toStringTag:void 0;var va=Object.prototype.toString;var ma=ua?ua.toStringTag:void 0;function ha(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ma&&ma in Object(e)?function(e){var t=da.call(e,fa),n=e[fa];try{e[fa]=void 0;var o=!0}catch{}var r=pa.call(e);return o&&(t?e[fa]=n:delete e[fa]),r}(e):function(e){return va.call(e)}(e)}function ga(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ya(e){if(!ga(e))return!1;var t=ha(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var ba,wa=sa["__core-js_shared__"],xa=(ba=/[^.]+$/.exec(wa&&wa.keys&&wa.keys.IE_PROTO||""))?"Symbol(src)_1."+ba:"";var $a=Function.prototype.toString;function Ca(e){if(null!=e){try{return $a.call(e)}catch{}try{return e+""}catch{}}return""}var Sa=/^\[object .+?Constructor\]$/,Oa=Function.prototype,ka=Object.prototype,Pa=Oa.toString,Ia=ka.hasOwnProperty,Ea=RegExp("^"+Pa.call(Ia).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ja(e){return!(!ga(e)||function(e){return!!xa&&xa in e}(e))&&(ya(e)?Ea:Sa).test(Ca(e))}function Aa(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ja(n)?n:void 0}var Ma=Aa(sa,"Map"),Ta=Aa(Object,"create");var za=Object.prototype.hasOwnProperty;var Da=Object.prototype.hasOwnProperty;function Ra(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Ba(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Na(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Ra.prototype.clear=function(){this.__data__=Ta?Ta(null):{},this.size=0},Ra.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ra.prototype.get=function(e){var t=this.__data__;if(Ta){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return za.call(t,e)?t[e]:void 0},Ra.prototype.has=function(e){var t=this.__data__;return Ta?void 0!==t[e]:Da.call(t,e)},Ra.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ta&&void 0===t?"__lodash_hash_undefined__":t,this},Na.prototype.clear=function(){this.size=0,this.__data__={hash:new Ra,map:new(Ma||la),string:new Ra}},Na.prototype.delete=function(e){var t=Ba(this,e).delete(e);return this.size-=t?1:0,t},Na.prototype.get=function(e){return Ba(this,e).get(e)},Na.prototype.has=function(e){return Ba(this,e).has(e)},Na.prototype.set=function(e,t){var n=Ba(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};function Ha(e){var t=this.__data__=new la(e);this.size=t.size}Ha.prototype.clear=function(){this.__data__=new la,this.size=0},Ha.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ha.prototype.get=function(e){return this.__data__.get(e)},Ha.prototype.has=function(e){return this.__data__.has(e)},Ha.prototype.set=function(e,t){var n=this.__data__;if(n instanceof la){var o=n.__data__;if(!Ma||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Na(o)}return n.set(e,t),this.size=n.size,this};function Fa(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Na;++t<n;)this.add(e[t])}function La(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}function _a(e,t){return e.has(t)}Fa.prototype.add=Fa.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Fa.prototype.has=function(e){return this.__data__.has(e)};function Wa(e,t,n,o,r,l){var i=1&n,a=e.length,s=t.length;if(a!=s&&!(i&&s>a))return!1;var u=l.get(e),c=l.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,f=2&n?new Fa:void 0;for(l.set(e,t),l.set(t,e);++d<a;){var v=e[d],m=t[d];if(o)var h=i?o(m,v,d,t,e,l):o(v,m,d,e,t,l);if(void 0!==h){if(h)continue;p=!1;break}if(f){if(!La(t,(function(e,t){if(!_a(f,t)&&(v===e||r(v,e,n,o,l)))return f.push(t)}))){p=!1;break}}else if(v!==m&&!r(v,m,n,o,l)){p=!1;break}}return l.delete(e),l.delete(t),p}var Va=sa.Uint8Array;function Xa(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n}function Ka(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var qa=ua?ua.prototype:void 0,Ga=qa?qa.valueOf:void 0;function Ua(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e}var Ya=Array.isArray;function Za(e,t,n){var o=t(e);return Ya(e)?o:Ua(o,n(e))}function Qa(){return[]}var Ja=Object.prototype.propertyIsEnumerable,es=Object.getOwnPropertySymbols,ts=es?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,l=[];++n<o;){var i=e[n];t(i,n,e)&&(l[r++]=i)}return l}(es(e),(function(t){return Ja.call(e,t)})))}:Qa;function ns(e){return null!=e&&"object"==typeof e}function os(e){return ns(e)&&"[object Arguments]"==ha(e)}var rs=Object.prototype,ls=rs.hasOwnProperty,is=rs.propertyIsEnumerable,as=os(function(){return arguments}())?os:function(e){return ns(e)&&ls.call(e,"callee")&&!is.call(e,"callee")};var ss="object"==typeof exports&&exports&&!exports.nodeType&&exports,us=ss&&"object"==typeof module&&module&&!module.nodeType&&module,cs=us&&us.exports===ss?sa.Buffer:void 0,ds=(cs?cs.isBuffer:void 0)||function(){return!1},ps=/^(?:0|[1-9]\d*)$/;function fs(e,t){var n=typeof e;return!!(t=t??9007199254740991)&&("number"==n||"symbol"!=n&&ps.test(e))&&e>-1&&e%1==0&&e<t}function vs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var ms={};function hs(e){return function(t){return e(t)}}ms["[object Float32Array]"]=ms["[object Float64Array]"]=ms["[object Int8Array]"]=ms["[object Int16Array]"]=ms["[object Int32Array]"]=ms["[object Uint8Array]"]=ms["[object Uint8ClampedArray]"]=ms["[object Uint16Array]"]=ms["[object Uint32Array]"]=!0,ms["[object Arguments]"]=ms["[object Array]"]=ms["[object ArrayBuffer]"]=ms["[object Boolean]"]=ms["[object DataView]"]=ms["[object Date]"]=ms["[object Error]"]=ms["[object Function]"]=ms["[object Map]"]=ms["[object Number]"]=ms["[object Object]"]=ms["[object RegExp]"]=ms["[object Set]"]=ms["[object String]"]=ms["[object WeakMap]"]=!1;var gs="object"==typeof exports&&exports&&!exports.nodeType&&exports,ys=gs&&"object"==typeof module&&module&&!module.nodeType&&module,bs=ys&&ys.exports===gs&&ia.process,ws=function(){try{return ys&&ys.require&&ys.require("util").types||bs&&bs.binding&&bs.binding("util")}catch{}}(),xs=ws&&ws.isTypedArray,$s=xs?hs(xs):function(e){return ns(e)&&vs(e.length)&&!!ms[ha(e)]},Cs=Object.prototype.hasOwnProperty;function Ss(e,t){var n=Ya(e),o=!n&&as(e),r=!n&&!o&&ds(e),l=!n&&!o&&!r&&$s(e),i=n||o||r||l,a=i?function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}(e.length,String):[],s=a.length;for(var u in e)(t||Cs.call(e,u))&&(!i||!("length"==u||r&&("offset"==u||"parent"==u)||l&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||fs(u,s)))&&a.push(u);return a}var Os=Object.prototype;function ks(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Os)}function Ps(e,t){return function(n){return e(t(n))}}var Is=Ps(Object.keys,Object),Es=Object.prototype.hasOwnProperty;function js(e){if(!ks(e))return Is(e);var t=[];for(var n in Object(e))Es.call(e,n)&&"constructor"!=n&&t.push(n);return t}function As(e){return null!=e&&vs(e.length)&&!ya(e)}function Ms(e){return As(e)?Ss(e):js(e)}function Ts(e){return Za(e,Ms,ts)}var zs=Object.prototype.hasOwnProperty;var Ds=Aa(sa,"DataView"),Rs=Aa(sa,"Promise"),Bs=Aa(sa,"Set"),Ns=Aa(sa,"WeakMap"),Hs="[object Map]",Fs="[object Promise]",Ls="[object Set]",_s="[object WeakMap]",Ws="[object DataView]",Vs=Ca(Ds),Xs=Ca(Ma),Ks=Ca(Rs),qs=Ca(Bs),Gs=Ca(Ns),Us=ha;(Ds&&Us(new Ds(new ArrayBuffer(1)))!=Ws||Ma&&Us(new Ma)!=Hs||Rs&&Us(Rs.resolve())!=Fs||Bs&&Us(new Bs)!=Ls||Ns&&Us(new Ns)!=_s)&&(Us=function(e){var t=ha(e),n="[object Object]"==t?e.constructor:void 0,o=n?Ca(n):"";if(o)switch(o){case Vs:return Ws;case Xs:return Hs;case Ks:return Fs;case qs:return Ls;case Gs:return _s}return t});var Ys="[object Arguments]",Zs="[object Array]",Qs="[object Object]",Js=Object.prototype.hasOwnProperty;function eu(e,t,n,o,r,l){var i=Ya(e),a=Ya(t),s=i?Zs:Us(e),u=a?Zs:Us(t),c=(s=s==Ys?Qs:s)==Qs,d=(u=u==Ys?Qs:u)==Qs,p=s==u;if(p&&ds(e)){if(!ds(t))return!1;i=!0,c=!1}if(p&&!c)return l||(l=new Ha),i||$s(e)?Wa(e,t,n,o,r,l):function(e,t,n,o,r,l,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!l(new Va(e),new Va(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return na(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=Xa;case"[object Set]":var s=1&o;if(a||(a=Ka),e.size!=t.size&&!s)return!1;var u=i.get(e);if(u)return u==t;o|=2,i.set(e,t);var c=Wa(a(e),a(t),o,r,l,i);return i.delete(e),c;case"[object Symbol]":if(Ga)return Ga.call(e)==Ga.call(t)}return!1}(e,t,s,n,o,r,l);if(!(1&n)){var f=c&&Js.call(e,"__wrapped__"),v=d&&Js.call(t,"__wrapped__");if(f||v){var m=f?e.value():e,h=v?t.value():t;return l||(l=new Ha),r(m,h,n,o,l)}}return!!p&&(l||(l=new Ha),function(e,t,n,o,r,l){var i=1&n,a=Ts(e),s=a.length;if(s!=Ts(t).length&&!i)return!1;for(var u=s;u--;){var c=a[u];if(!(i?c in t:zs.call(t,c)))return!1}var d=l.get(e),p=l.get(t);if(d&&p)return d==t&&p==e;var f=!0;l.set(e,t),l.set(t,e);for(var v=i;++u<s;){var m=e[c=a[u]],h=t[c];if(o)var g=i?o(h,m,c,t,e,l):o(m,h,c,e,t,l);if(!(void 0===g?m===h||r(m,h,n,o,l):g)){f=!1;break}v||(v="constructor"==c)}if(f&&!v){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(f=!1)}return l.delete(e),l.delete(t),f}(e,t,n,o,r,l))}function tu(e,t,n,o,r){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:eu(e,t,n,o,tu,r))}function nu(e,t){return tu(e,t)}const ou={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function ru(e){return"function"!=typeof e?null:e()}function lu(e){return"object"==typeof e&&e?e:null}const iu=l({compatConfig:{MODE:3},name:"Align",props:ou,emits:["align"],setup(e,t){let{expose:o,slots:r}=t;const l=b({}),a=b(),[s,u]=((e,t)=>{let n=!1,o=null;function r(){clearTimeout(o)}return[function l(i){if(n&&!0!==i)r(),o=setTimeout((()=>{n=!1,l()}),t.value);else{if(!1===e())return;n=!0,r(),o=setTimeout((()=>{n=!1}),t.value)}},()=>{n=!1,r()}]})((()=>{const{disabled:t,target:n,align:o,onAlign:r}=e;if(!t&&n&&a.value){const e=a.value;let t;const i=ru(n),s=lu(n);l.value.element=i,l.value.point=s,l.value.align=o;const{activeElement:u}=document;return i&&ea(i)?t=Qi(e,i,o):s&&(t=function(e,t,n){var o,r,l=Bi.getDocument(e),i=l.defaultView||l.parentWindow,a=Bi.getWindowScrollLeft(i),s=Bi.getWindowScrollTop(i),u=Bi.viewportWidth(i),c=Bi.viewportHeight(i),d={left:o="pageX"in t?t.pageX:a+t.clientX,top:r="pageY"in t?t.pageY:s+t.clientY,width:0,height:0},p=o>=0&&o<=a+u&&r>=0&&r<=s+c,f=[n.points[0],"cc"];return Zi(e,d,Ql(Ql({},n),{},{points:f}),p)}(e,s,o)),function(e,t){e!==document.activeElement&&ln(t,e)&&"function"==typeof e.focus&&e.focus()}(u,e),r&&t&&r(e,t),!0}return!1}),n((()=>e.monitorBufferTime))),c=b({cancel:()=>{}}),d=b({cancel:()=>{}}),p=()=>{const t=e.target,n=ru(t),o=lu(t);a.value!==d.value.element&&(d.value.cancel(),d.value.element=a.value,d.value.cancel=ta(a.value,s)),(l.value.element!==n||!function(e,t){return e===t||!(!e||!t)&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY)}(l.value.point,o)||!nu(l.value.align,e.align))&&(s(),c.value.element!==n&&(c.value.cancel(),c.value.element=n,c.value.cancel=ta(n,s)))};h((()=>{I((()=>{p()}))})),g((()=>{I((()=>{p()}))})),i((()=>e.disabled),(e=>{e?u():s()}),{immediate:!0,flush:"post"});const f=b(null);return i((()=>e.monitorWindowResize),(e=>{e?f.value||(f.value=Bt(window,"resize",s)):f.value&&(f.value.remove(),f.value=null)}),{flush:"post"}),y((()=>{c.value.cancel(),d.value.cancel(),f.value&&f.value.remove(),u()})),o({forceAlign:()=>s(!0)}),()=>{const e=null==r?void 0:r.default();return e?Ji(e[0],{ref:a},!0,!0):null}}});oe("bottomLeft","bottomRight","topLeft","topRight");const au=e=>void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down",su=function(e){return ze(e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`}:{css:!1},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})},uu=function(e){return ze(e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`}:{css:!1},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})},cu=(e,t,n)=>void 0!==n?n:`${e}-${t}`,du=l({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:Wl,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:o,attrs:r,slots:l}=t;const a=s(),u=s(),c=s(),[d,p]=(e=>{const t=s({width:0,height:0});return[n((()=>{const n={};if(e.value){const{width:o,height:r}=t.value;-1!==e.value.indexOf("height")&&r?n.height=`${r}px`:-1!==e.value.indexOf("minHeight")&&r&&(n.minHeight=`${r}px`),-1!==e.value.indexOf("width")&&o?n.width=`${o}px`:-1!==e.value.indexOf("minWidth")&&o&&(n.minWidth=`${o}px`)}return n})),function(e){t.value={width:e.offsetWidth,height:e.offsetHeight}}]})(E(e,"stretch")),f=s(!1);let v;i((()=>e.visible),(t=>{clearTimeout(v),t?v=setTimeout((()=>{f.value=e.visible})):f.value=!1}),{immediate:!0});const[m,g]=((e,t)=>{const n=s(null),o=s(),r=s(!1);function l(e){r.value||(n.value=e)}function a(){Dt.cancel(o.value)}return i(e,(()=>{l("measure")}),{immediate:!0,flush:"post"}),h((()=>{i(n,(()=>{"measure"===n.value&&t(),n.value&&(o.value=Dt((()=>Ul(void 0,void 0,void 0,(function*(){const e=Yl.indexOf(n.value),t=Yl[e+1];t&&-1!==e&&l(t)})))))}),{immediate:!0,flush:"post"})})),x((()=>{r.value=!0,a()})),[n,function(e){a(),o.value=Dt((()=>{let t=n.value;switch(n.value){case"align":t="motion";break;case"motion":t="stable"}l(t),null==e||e()}))}]})(f,(()=>{e.stretch&&p(e.getRootDomNode())})),y=s(),b=()=>{var e;null===(e=a.value)||void 0===e||e.forceAlign()},w=(t,n)=>{var o;const r=e.getClassNameFromAlign(n),l=c.value;c.value!==r&&(c.value=r),"align"===m.value&&(l!==r?Promise.resolve().then((()=>{b()})):g((()=>{var e;null===(e=y.value)||void 0===e||e.call(y)})),null===(o=e.onAlign)||void 0===o||o.call(e,t,n))},C=n((()=>{const t="object"==typeof e.animation?e.animation:Kl(e);return["onAfterEnter","onAfterLeave"].forEach((e=>{const n=t[e];t[e]=e=>{g(),m.value="stable",null==n||n(e)}})),t})),k=()=>new Promise((e=>{y.value=e}));i([C,m],(()=>{!C.value&&"motion"===m.value&&g()}),{immediate:!0}),o({forceAlign:b,getElement:()=>u.value.$el||u.value});const P=n((()=>{var t;return!(null!==(t=e.align)&&void 0!==t&&t.points&&("align"===m.value||"stable"===m.value))}));return()=>{var t;const{zIndex:n,align:o,prefixCls:i,destroyPopupOnHide:s,onMouseenter:p,onMouseleave:v,onTouchstart:h=()=>{},onMousedown:g}=e,y=m.value,b=[ze(ze({},d.value),{zIndex:n,opacity:"motion"!==y&&"stable"!==y&&f.value?0:null,pointerEvents:f.value||"stable"===y?null:"none"}),r.style];let x=wt(null===(t=l.default)||void 0===t?void 0:t.call(l,{visible:e.visible}));x.length>1&&(x=$("div",{class:`${i}-content`},[x]));const I=Ge(i,r.class,c.value,!e.arrow&&`${i}-arrow-hidden`),E=f.value||!e.visible?su(C.value.name,C.value):{};return $(S,Te(Te({ref:u},E),{},{onBeforeEnter:k}),{default:()=>!s||e.visible?O($(iu,{target:e.point?e.point:e.getRootDomNode,key:"popup",ref:a,monitorWindowResize:!0,disabled:P.value,align:o,onAlign:w},{default:()=>$("div",{class:I,onMouseenter:p,onMouseleave:v,onMousedown:j(g,["capture"]),[Rt?"onTouchstartPassive":"onTouchstart"]:j(h,["capture"]),style:b},[x])}),[[A,f.value]]):null})}}}),pu=l({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:Xl,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const l=s(!1),a=s(!1),u=s(),c=s();return i([()=>e.visible,()=>e.mobile],(()=>{l.value=e.visible,e.visible&&e.mobile&&(a.value=!0)}),{immediate:!0,flush:"post"}),r({forceAlign:()=>{var e;null===(e=u.value)||void 0===e||e.forceAlign()},getElement:()=>{var e;return null===(e=u.value)||void 0===e?void 0:e.getElement()}}),()=>{const t=ze(ze(ze({},e),n),{visible:l.value}),r=a.value?$(Gl,Te(Te({},t),{},{mobile:e.mobile,ref:u}),{default:o.default}):$(du,Te(Te({},t),{},{ref:u}),{default:o.default});return $("div",{ref:c},[$(ql,t,null),r])}}});function fu(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function vu(e,t,n){return ze(ze({},e[t]||{}),n)}const mu={methods:{setState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n="function"==typeof e?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){const e=this.getDerivedStateFromProps($t(this),ze(ze({},this.$data),n));if(null===e)return;n=ze(ze({},n),e||{})}ze(this.$data,n),this._.isMounted&&this.$forceUpdate(),I((()=>{t&&t()}))},__emit(){const e=[].slice.call(arguments,0);let t=e[0];t=`on${t[0].toUpperCase()}${t.substring(1)}`;const n=this.$props[t]||this.$attrs[t];if(e.length&&n)if(Array.isArray(n))for(let t=0,o=n.length;t<o;t++)n[t](...e.slice(1));else n(...e.slice(1))}}},hu=Symbol("PortalContextKey"),gu=function(e){r(hu,{inTriggerContext:(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inTriggerContext:!0}).inTriggerContext,shouldRender:n((()=>{const{sPopupVisible:t,popupRef:n,forceRender:o,autoDestroy:r}=e||{};let l=!1;return(t||n||o)&&(l=!0),!t&&r&&(l=!1),l}))})},yu=l({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:Dl.func.isRequired,didUpdate:Function},setup(e,t){let r,{slots:l}=t,a=!0;const{shouldRender:s}=(()=>{gu({},{inTriggerContext:!1});const e=o(hu,{shouldRender:n((()=>!1)),inTriggerContext:!1});return{shouldRender:n((()=>e.shouldRender.value||!1===e.inTriggerContext))}})();function u(){s.value&&(r=e.getContainer())}M((()=>{a=!1,u()})),h((()=>{r||u()}));const c=i(s,(()=>{s.value&&!r&&(r=e.getContainer()),r&&c()}));return g((()=>{I((()=>{var t;s.value&&(null===(t=e.didUpdate)||void 0===t||t.call(e,e))}))})),()=>{var e;return s.value?a?null===(e=l.default)||void 0===e?void 0:e.call(l):r?$(T,{to:r},l):null:null}}});let bu;const wu=`vc-util-locker-${Date.now()}`;let xu=0;function $u(e){const t=n((()=>!!e&&!!e.value));xu+=1;const o=`${wu}_${xu}`;w((e=>{if(rn()){if(t.value){const e=function(){if(typeof document>"u")return 0;if(void 0===bu){const e=document.createElement("div");e.style.width="100%",e.style.height="200px";const t=document.createElement("div"),n=t.style;n.position="absolute",n.top="0",n.left="0",n.pointerEvents="none",n.visibility="hidden",n.width="200px",n.height="150px",n.overflow="hidden",t.appendChild(e),document.body.appendChild(t);const o=e.offsetWidth;t.style.overflow="scroll";let r=e.offsetWidth;o===r&&(r=t.clientWidth),document.body.removeChild(t),bu=o-r}return bu}();mn(`\nhtml body {\n overflow-y: hidden;\n ${document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?`width: calc(100% - ${e}px);`:""}\n}`,o)}else vn(o);e((()=>{vn(o)}))}}),{flush:"post"})}let Cu=0;const Su=rn(),Ou=e=>{if(!Su)return null;if(e){if("string"==typeof e)return document.querySelectorAll(e)[0];if("function"==typeof e)return e();if("object"==typeof e&&e instanceof window.HTMLElement)return e}return document.body},ku=l({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:Dl.any,visible:{type:Boolean,default:void 0},autoLock:ae(),didUpdate:Function},setup(e,t){let{slots:o}=t;const r=s(),l=s(),a=s(),u=s(1),c=rn()&&document.createElement("div"),d=()=>{var e,t;r.value===c&&(null===(t=null===(e=r.value)||void 0===e?void 0:e.parentNode)||void 0===t||t.removeChild(r.value)),r.value=null};let p=null;const f=function(){return!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||r.value&&!r.value.parentNode)||(p=Ou(e.getContainer),!!p&&(p.appendChild(r.value),!0))},v=()=>Su?(r.value||(r.value=c,f(!0)),m(),r.value):null,m=()=>{const{wrapperClassName:t}=e;r.value&&t&&t!==r.value.className&&(r.value.className=t)};return g((()=>{m(),f()})),$u(n((()=>e.autoLock&&e.visible&&rn()&&(r.value===document.body||r.value===c)))),h((()=>{let t=!1;i([()=>e.visible,()=>e.getContainer],((n,o)=>{let[r,l]=n,[i,a]=o;Su&&(p=Ou(e.getContainer),p===document.body&&(r&&!i?Cu+=1:t&&(Cu-=1))),t&&("function"==typeof l&&"function"==typeof a?l.toString()!==a.toString():l!==a)&&d(),t=!0}),{immediate:!0,flush:"post"}),I((()=>{f()||(a.value=Dt((()=>{u.value+=1})))}))})),x((()=>{const{visible:t}=e;Su&&p===document.body&&(Cu=t&&Cu?Cu-1:Cu),d(),Dt.cancel(a.value)})),()=>{const{forceRender:t,visible:n}=e;let r=null;const i={getOpenCount:()=>Cu,getContainer:v};return u.value&&(t||n||l.value)&&(r=$(yu,{getContainer:v,ref:l,didUpdate:e.didUpdate},{default:()=>{var e;return null===(e=o.default)||void 0===e?void 0:e.call(o,i)}})),r}}}),Pu=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],Iu=l({compatConfig:{MODE:3},name:"Trigger",mixins:[mu],inheritAttrs:!1,props:{action:Dl.oneOfType([Dl.string,Dl.arrayOf(Dl.string)]).def([]),showAction:Dl.any.def([]),hideAction:Dl.any.def([]),getPopupClassNameFromAlign:Dl.any.def(Fl),onPopupVisibleChange:Function,afterPopupVisibleChange:Dl.func.def(_l),popup:Dl.any,arrow:Dl.bool.def(!0),popupStyle:{type:Object,default:void 0},prefixCls:Dl.string.def("rc-trigger-popup"),popupClassName:Dl.string.def(""),popupPlacement:String,builtinPlacements:Dl.object,popupTransitionName:String,popupAnimation:Dl.any,mouseEnterDelay:Dl.number.def(0),mouseLeaveDelay:Dl.number.def(.1),zIndex:Number,focusDelay:Dl.number.def(0),blurDelay:Dl.number.def(.15),getPopupContainer:Function,getDocument:Dl.func.def(Ll),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:Dl.object.def((()=>({}))),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function},setup(e){const t=n((()=>{const{popupPlacement:t,popupAlign:n,builtinPlacements:o}=e;return t&&o?vu(o,t,n):n})),r=s(null);return{vcTriggerContext:o("vcTriggerContext",{}),popupRef:r,setPopupRef:e=>{r.value=e},triggerRef:s(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const e=this.$props;let t;return t=void 0!==this.popupVisible?!!e.popupVisible:!!e.defaultPopupVisible,Pu.forEach((e=>{this[`fire${e}`]=t=>{this.fireEvents(e,t)}})),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible(e){void 0!==e&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created(){r("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),gu(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick((()=>{this.updatedCal()}))},updated(){this.$nextTick((()=>{this.updatedCal()}))},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Dt.cancel(this.attachId)},methods:{updatedCal(){const e=this.$props;if(this.$data.sPopupVisible){let t;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(t=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Bt(t,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(t=t||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Bt(t,"touchstart",this.onDocumentClick,!!Rt&&{passive:!1})),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(t=t||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=Bt(t,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=Bt(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(e){const{mouseEnterDelay:t}=this.$props;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:e={}}=this;e.onPopupMouseenter&&e.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(e){var t;if(e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&ln(null===(t=this.popupRef)||void 0===t?void 0:t.getElement(),e.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(e)},onFocus(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur(e){ln(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(e){if(this.fireEvents("onClick",e),this.focusTime){let e;if(this.preClickTime&&this.preTouchTime?e=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?e=this.preClickTime:this.preTouchTime&&(e=this.preTouchTime),Math.abs(e-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();const t=!this.$data.sPopupVisible;(this.isClickToHide()&&!t||t&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown(){const{vcTriggerContext:e={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout((()=>{this.hasPopupMouseDown=!1}),0),e.onPopupMouseDown&&e.onPopupMouseDown(...arguments)},onDocumentClick(e){if(this.$props.mask&&!this.$props.maskClosable)return;const t=e.target,n=this.getRootDomNode(),o=this.getPopupDomNode();(!ln(n,t)||this.isContextMenuOnly())&&!ln(o,t)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var e;return(null===(e=this.popupRef)||void 0===e?void 0:e.getElement())||null},getRootDomNode(){var e,t,n,o;const{getTriggerDOMNode:r}=this.$props;if(r){const n="#comment"===(null===(t=null===(e=this.triggerRef)||void 0===e?void 0:e.$el)||void 0===t?void 0:t.nodeName)?null:xt(this.triggerRef);return xt(r(n))}try{const e="#comment"===(null===(o=null===(n=this.triggerRef)||void 0===n?void 0:n.$el)||void 0===o?void 0:o.nodeName)?null:xt(this.triggerRef);if(e)return e}catch{}return xt(this)},handleGetPopupClassFromAlign(e){const t=[],n=this.$props,{popupPlacement:o,builtinPlacements:r,prefixCls:l,alignPoint:i,getPopupClassNameFromAlign:a}=n;return o&&r&&t.push(function(e,t,n,o){const{points:r}=n,l=Object.keys(e);for(let n=0;n<l.length;n+=1){const i=l[n];if(fu(e[i].points,r,o))return`${t}-placement-${i}`}return""}(r,l,e,i)),a&&t.push(a(e)),t.join(" ")},getPopupAlign(){const e=this.$props,{popupPlacement:t,popupAlign:n,builtinPlacements:o}=e;return t&&o?vu(o,t,n):n},getComponent(){const e={};this.isMouseEnterToShow()&&(e.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(e.onMouseleave=this.onPopupMouseleave),e.onMousedown=this.onPopupMouseDown,e[Rt?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:t,getRootDomNode:n,$attrs:o}=this,{prefixCls:r,destroyPopupOnHide:l,popupClassName:i,popupAnimation:a,popupTransitionName:s,popupStyle:u,mask:p,maskAnimation:f,maskTransitionName:v,zIndex:m,stretch:h,alignPoint:g,mobile:y,arrow:b,forceRender:w}=this.$props,{sPopupVisible:x,point:C}=this.$data,S=ze(ze({prefixCls:r,arrow:b,destroyPopupOnHide:l,visible:x,point:g?C:null,align:this.align,animation:a,getClassNameFromAlign:t,stretch:h,getRootDomNode:n,mask:p,zIndex:m,transitionName:s,maskAnimation:f,maskTransitionName:v,class:i,style:u,onAlign:o.onPopupAlign||_l},e),{ref:this.setPopupRef,mobile:y,forceRender:w});return $(pu,S,{default:this.$slots.popup||(()=>function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.$){const l=e[n];if(void 0!==l)return"function"==typeof l&&r?l(o):l;t=e.$slots[n],t=r&&t?t(o):t}else if(d(e)){const l=e.props&&e.props[n];if(void 0!==l&&null!==e.props)return"function"==typeof l&&r?l(o):l;e.type===c?t=e.children:e.children&&e.children[n]&&(t=e.children[n],t=r&&t?t(o):t)}return Array.isArray(t)&&(t=wt(t),t=1===t.length?t[0]:t,t=0===t.length?void 0:t),t}(this,"popup"))})},attachParent(e){Dt.cancel(this.attachId);const{getPopupContainer:t,getDocument:n}=this.$props,o=this.getRootDomNode();let r;t?(o||0===t.length)&&(r=t(o)):r=n(this.getRootDomNode()).body,r?r.appendChild(e):this.attachId=Dt((()=>{this.attachParent(e)}))},getContainer(){const{$props:e}=this,{getDocument:t}=e,n=t(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(e,t){const{alignPoint:n,sPopupVisible:o,onPopupVisibleChange:r}=this;this.clearDelayTimer(),o!==e&&(((e,t)=>void 0!==e[t])(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:o}),r&&r(e)),n&&t&&e&&this.setPoint(t)},setPoint(e){const{alignPoint:t}=this.$props;!t||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(e,t,n){const o=1e3*t;if(this.clearDelayTimer(),o){const t=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout((()=>{this.setPopupVisible(e,t),this.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(e){let t=()=>{};const n=Ct(this);return this.childOriginEvents[e]&&n[e]?this[`fire${e}`]:(t=this.childOriginEvents[e]||n[e]||t,t)},isClickToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("click")||-1!==t.indexOf("click")},isContextMenuOnly(){const{action:e}=this.$props;return"contextmenu"===e||1===e.length&&"contextmenu"===e[0]},isContextmenuToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("contextmenu")||-1!==t.indexOf("contextmenu")},isClickToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("click")||-1!==t.indexOf("click")},isMouseEnterToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("hover")||-1!==t.indexOf("mouseenter")},isMouseLeaveToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("hover")||-1!==t.indexOf("mouseleave")},isFocusToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("focus")||-1!==t.indexOf("focus")},isBlurToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("focus")||-1!==t.indexOf("blur")},forcePopupAlign(){var e;this.$data.sPopupVisible&&(null===(e=this.popupRef)||void 0===e||e.forceAlign())},fireEvents(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);const n=this.$props[e]||this.$attrs[e];n&&n(t)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:e}=this,t=kt(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(d(e))return e.type===c?"default"===t?wt(e.children):[]:e.children&&e.children[t]?wt(e.children[t](n)):[];{const o=e.$slots[t]&&e.$slots[t](n);return wt(o)}}(this)),{alignPoint:n,getPopupContainer:o}=this.$props,r=t[0];this.childOriginEvents=Ct(r);const l={key:"trigger"};this.isContextmenuToShow()?l.onContextmenu=this.onContextmenu:l.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(l.onClick=this.onClick,l.onMousedown=this.onMousedown,l[Rt?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(l.onClick=this.createTwoChains("onClick"),l.onMousedown=this.createTwoChains("onMousedown"),l[Rt?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(l.onMouseenter=this.onMouseenter,n&&(l.onMousemove=this.onMouseMove)):l.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?l.onMouseleave=this.onMouseleave:l.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(l.onFocus=this.onFocus,l.onBlur=this.onBlur):(l.onFocus=this.createTwoChains("onFocus"),l.onBlur=e=>{e&&(!e.relatedTarget||!ln(e.target,e.relatedTarget))&&this.createTwoChains("onBlur")(e)});const i=Ge(r&&r.props&&r.props.class,e.class);i&&(l.class=i);const a=Ji(r,ze(ze({},l),{ref:"triggerRef"}),!0,!0),s=$(ku,{key:"portal",getContainer:o&&(()=>o(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return $(c,null,[a,s])}});const Eu=l({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:Dl.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:Dl.oneOfType([Number,Boolean]).def(!0),popupElement:Dl.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:o,attrs:r,expose:l}=t;const i=n((()=>{const{dropdownMatchSelectWidth:t}=e;return(e=>{const t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}})(t)})),a=b();return l({getPopupElement:()=>a.value}),()=>{const t=ze(ze({},e),r),{empty:n=!1}=t,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["empty"]),{visible:s,dropdownAlign:u,prefixCls:c,popupElement:d,dropdownClassName:p,dropdownStyle:f,direction:v="ltr",placement:m,dropdownMatchSelectWidth:h,containerWidth:g,dropdownRender:y,animation:b,transitionName:w,getPopupContainer:x,getTriggerDOMNode:C,onPopupVisibleChange:S,onPopupMouseEnter:O,onPopupFocusin:k,onPopupFocusout:P}=l,I=`${c}-dropdown`;let E=d;y&&(E=y({menuNode:d,props:e}));const j=b?`${I}-${b}`:w,A=ze({minWidth:`${g}px`},f);return"number"==typeof h?A.width=`${h}px`:h&&(A.width=`${g}px`),$(Iu,Te(Te({},e),{},{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:m||("rtl"===v?"bottomRight":"bottomLeft"),builtinPlacements:i.value,prefixCls:I,popupTransitionName:j,popupAlign:u,popupVisible:s,getPopupContainer:x,popupClassName:Ge(p,{[`${I}-empty`]:n}),popupStyle:A,getTriggerDOMNode:C,onPopupVisibleChange:S}),{default:o.default,popup:()=>$("div",{ref:a,onMouseenter:O,onFocusin:k,onFocusout:P},[E])})}}}),ju={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},Au=(e,t)=>{let{slots:n}=t;var o;const{class:r,customizeIcon:l,customizeIconProps:i,onMousedown:a,onClick:s}=e;let u;return u="function"==typeof l?l(i):d(l)?P(l):l,$("span",{class:r,onMousedown:e=>{e.preventDefault(),a&&a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},[void 0!==u?u:$("span",{class:r.split(/\s+/).map((e=>`${e}-icon`))},[null===(o=n.default)||void 0===o?void 0:o.call(n)])])};Au.inheritAttrs=!1,Au.displayName="TransBtn",Au.props={class:String,customizeIcon:Dl.any,customizeIconProps:Dl.any,onMousedown:Function,onClick:Function};const Mu=l({compatConfig:{MODE:3},props:{disabled:Dl.looseBool,type:Dl.string,value:Dl.any,tag:{type:String,default:"input"},size:Dl.string,onChange:Function,onInput:Function,onBlur:Function,onFocus:Function,onKeydown:Function,onCompositionstart:Function,onCompositionend:Function,onKeyup:Function,onPaste:Function,onMousedown:Function},emits:["change","input","blur","keydown","focus","compositionstart","compositionend","keyup","paste","mousedown"],setup(e,t){let{expose:n}=t;const o=s(null);return n({focus:()=>{o.value&&o.value.focus()},blur:()=>{o.value&&o.value.blur()},input:o,setSelectionRange:(e,t,n)=>{var r;null===(r=o.value)||void 0===r||r.setSelectionRange(e,t,n)},select:()=>{var e;null===(e=o.value)||void 0===e||e.select()},getSelectionStart:()=>{var e;return null===(e=o.value)||void 0===e?void 0:e.selectionStart},getSelectionEnd:()=>{var e;return null===(e=o.value)||void 0===e?void 0:e.selectionEnd},getScrollTop:()=>{var e;return null===(e=o.value)||void 0===e?void 0:e.scrollTop}}),()=>{const{tag:t,value:n}=e,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["tag","value"]);return $(t,Te(Te({},r),{},{ref:o,value:n}),null)}}});function Tu(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.scrollX||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.scrollY||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}const zu=l({compatConfig:{MODE:3},inheritAttrs:!1,props:{disabled:Dl.looseBool,type:Dl.string,value:Dl.any,lazy:Dl.bool.def(!0),tag:{type:String,default:"input"},size:Dl.string,style:Dl.oneOfType([String,Object]),class:Dl.string},emits:["change","input","blur","keydown","focus","compositionstart","compositionend","keyup","paste","mousedown"],setup(e,t){let{emit:o,attrs:r,expose:l}=t;const a=s(null),u=b(),c=b(!1);i([()=>e.value,c],(()=>{c.value||(u.value=e.value)}),{immediate:!0});const d=e=>{o("change",e)},p=e=>{c.value=!0,e.target.composing=!0,o("compositionstart",e)},f=e=>{c.value=!1,e.target.composing=!1,o("compositionend",e);const t=document.createEvent("HTMLEvents");t.initEvent("input",!0,!0),e.target.dispatchEvent(t),d(e)},v=t=>{c.value&&e.lazy?u.value=t.target.value:o("input",t)},m=e=>{o("blur",e)},h=e=>{o("focus",e)},g=e=>{o("keydown",e)},y=e=>{o("keyup",e)};l({focus:()=>{a.value&&a.value.focus()},blur:()=>{a.value&&a.value.blur()},input:n((()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.input})),setSelectionRange:(e,t,n)=>{var o;null===(o=a.value)||void 0===o||o.setSelectionRange(e,t,n)},select:()=>{var e;null===(e=a.value)||void 0===e||e.select()},getSelectionStart:()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.getSelectionStart()},getSelectionEnd:()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.getSelectionEnd()},getScrollTop:()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.getScrollTop()}});const w=e=>{o("mousedown",e)},x=e=>{o("paste",e)},C=n((()=>e.style&&"string"!=typeof e.style?function(e){return Object.keys(e).reduce(((t,n)=>{const o=e[n];return typeof o>"u"||null===o||(t+=`${n}: ${e[n]};`),t}),"")}(e.style):e.style));return()=>{const{style:t,lazy:n}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["style","lazy"]);return $(Mu,Te(Te(Te({},o),r),{},{style:C.value,onInput:v,onChange:d,onBlur:m,onFocus:h,ref:a,value:u.value,onCompositionstart:p,onCompositionend:f,onKeyup:y,onKeydown:g,onPaste:x,onMousedown:w}),null)}}}),Du={inputRef:Dl.any,prefixCls:String,id:String,inputElement:Dl.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:Dl.oneOfType([Dl.number,Dl.string]),attrs:Dl.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},Ru=l({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:Du,setup(e){let t=null;const n=o("VCSelectContainerEvent");return()=>{var o;const{prefixCls:r,id:l,inputElement:i,disabled:a,tabindex:s,autofocus:u,autocomplete:c,editable:d,activeDescendantId:p,value:f,onKeydown:v,onMousedown:m,onChange:h,onPaste:g,onCompositionstart:y,onCompositionend:b,onFocus:w,onBlur:x,open:C,inputRef:S,attrs:O}=e;let k=i||$(zu,null,null);const P=k.props||{},{onKeydown:I,onInput:E,onFocus:j,onBlur:A,onMousedown:M,onCompositionstart:T,onCompositionend:z,style:D}=P;return k=Ji(k,ze(ze(ze(ze(ze({type:"search"},P),{id:l,ref:S,disabled:a,tabindex:s,lazy:!1,autocomplete:c||"off",autofocus:u,class:Ge(`${r}-selection-search-input`,null===(o=null==k?void 0:k.props)||void 0===o?void 0:o.class),role:"combobox","aria-expanded":C,"aria-haspopup":"listbox","aria-owns":`${l}_list`,"aria-autocomplete":"list","aria-controls":`${l}_list`,"aria-activedescendant":p}),O),{value:d?f:"",readonly:!d,unselectable:d?null:"on",style:ze(ze({},D),{opacity:d?null:0}),onKeydown:e=>{v(e),I&&I(e)},onMousedown:e=>{m(e),M&&M(e)},onInput:e=>{h(e),E&&E(e)},onCompositionstart(e){y(e),T&&T(e)},onCompositionend(e){b(e),z&&z(e)},onPaste:g,onFocus:function(){clearTimeout(t),j&&j(arguments.length<=0?void 0:arguments[0]),w&&w(arguments.length<=0?void 0:arguments[0]),null==n||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];t=setTimeout((()=>{A&&A(o[0]),x&&x(o[0]),null==n||n.blur(o[0])}),100)}}),"textarea"===k.type?{}:{type:"search"}),!0,!0),k}}}),Bu="accept acceptcharset accesskey action allowfullscreen allowtransparency\nalt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge\ncharset checked classid classname colspan cols content contenteditable contextmenu\ncontrols coords crossorigin data datetime default defer dir disabled download draggable\nenctype form formaction formenctype formmethod formnovalidate formtarget frameborder\nheaders height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity\nis keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media\nmediagroup method min minlength multiple muted name novalidate nonce open\noptimum pattern placeholder poster preload radiogroup readonly rel required\nreversed role rowspan rows sandbox scope scoped scrolling seamless selected\nshape size sizes span spellcheck src srcdoc srclang srcset start step style\nsummary tabindex target title type usemap value width wmode wrap onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown\n onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick\n onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown\n onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel\n onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough\n onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata\n onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError".split(/[\s\n]+/);function Nu(e,t){return 0===e.indexOf(t)}function Hu(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:ze({},n);const o={};return Object.keys(e).forEach((n=>{(t.aria&&("role"===n||Nu(n,"aria-"))||t.data&&Nu(n,"data-")||t.attr&&(Bu.includes(n)||Bu.includes(n.toLowerCase())))&&(o[n]=e[n])})),o}const Fu=Symbol("OverflowContextProviderKey"),Lu=l({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:o}=t;return r(Fu,n((()=>e.value))),()=>{var e;return null===(e=o.default)||void 0===e?void 0:e.call(o)}}});const _u=void 0,Wu=l({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:Dl.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:Dl.any,invalidate:Boolean},setup(e,t){let{slots:o,expose:r}=t;const l=n((()=>e.responsive&&!e.display)),i=b();function a(t){e.registerSize(e.itemKey,t)}return r({itemNodeRef:i}),y((()=>{a(null)})),()=>{var t;const{prefixCls:n,invalidate:r,item:s,renderItem:u,responsive:c,registerSize:d,itemKey:p,display:f,order:v,component:m="div"}=e,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),g=null===(t=o.default)||void 0===t?void 0:t.call(o),y=u&&s!==_u?u(s):g;let b;r||(b={opacity:l.value?0:1,height:l.value?0:_u,overflowY:l.value?"hidden":_u,order:c?v:_u,pointerEvents:l.value?"none":_u,position:l.value?"absolute":_u});const w={};return l.value&&(w["aria-hidden"]=!0),$(Et,{disabled:!c,onResize:e=>{let{offsetWidth:t}=e;a(t)}},{default:()=>$(m,Te(Te(Te({class:Ge(!r&&n),style:b},w),h),{},{ref:i}),{default:()=>[y]})})}}});var Vu=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Xu=l({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:Dl.any,title:Dl.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},role:String,tabindex:Number},setup(e,t){let{slots:r,attrs:l}=t;const i=o(Fu,n((()=>null)));return()=>{var t;if(!i.value){const{component:n="div"}=e,o=Vu(e,["component"]);return $(n,Te(Te({},o),l),{default:()=>[null===(t=r.default)||void 0===t?void 0:t.call(r)]})}const n=i.value,{className:o}=n,a=Vu(n,["className"]),{class:s}=l,u=Vu(l,["class"]);return $(Lu,{value:null},{default:()=>[$(Wu,Te(Te(Te({class:Ge(o,s)},a),u),e),r)]})}}});const Ku="responsive",qu="invalidate";function Gu(e){return`+ ${e.length} ...`}const Uu=l({name:"Overflow",inheritAttrs:!1,props:{id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:Dl.any,component:String,itemComponent:Dl.any,onVisibleChange:Function,ssr:String,onMousedown:Function,role:String},emits:["visibleChange"],setup(e,t){let{attrs:o,emit:r,slots:l}=t;const a=n((()=>"full"===e.ssr)),u=s(null),c=n((()=>u.value||0)),d=s(new Map),p=s(0),f=s(0),v=s(0),m=s(null),h=s(null),g=n((()=>null===h.value&&a.value?Number.MAX_SAFE_INTEGER:h.value||0)),y=s(!1),b=n((()=>`${e.prefixCls}-item`)),w=n((()=>Math.max(p.value,f.value))),x=n((()=>!(!e.data.length||e.maxCount!==Ku))),C=n((()=>e.maxCount===qu)),S=n((()=>x.value||"number"==typeof e.maxCount&&e.data.length>e.maxCount)),O=n((()=>{let t=e.data;return x.value?t=null===u.value&&a.value?e.data:e.data.slice(0,Math.min(e.data.length,c.value/e.itemWidth)):"number"==typeof e.maxCount&&(t=e.data.slice(0,e.maxCount)),t})),k=n((()=>x.value?e.data.slice(g.value+1):e.data.slice(O.value.length))),P=(t,n)=>{var o;return"function"==typeof e.itemKey?e.itemKey(t):null!==(o=e.itemKey&&(null==t?void 0:t[e.itemKey]))&&void 0!==o?o:n},I=n((()=>e.renderItem||(e=>e))),E=(t,n)=>{h.value=t,n||(y.value=t<e.data.length-1,r("visibleChange",t))},j=(e,t)=>{u.value=t.clientWidth},A=(e,t)=>{const n=new Map(d.value);null===t?n.delete(e):n.set(e,t),d.value=n},M=(e,t)=>{p.value=f.value,f.value=t},T=(e,t)=>{v.value=t},z=e=>d.value.get(P(O.value[e],e));return i([c,d,f,v,()=>e.itemKey,O],(()=>{if(c.value&&w.value&&O.value){let t=v.value;const n=O.value.length,o=n-1;if(!n)return E(0),void(m.value=null);for(let e=0;e<n;e+=1){const n=z(e);if(void 0===n){E(e-1,!0);break}if(t+=n,0===o&&t<=c.value||e===o-1&&t+z(o)<=c.value){E(o),m.value=null;break}if(t+w.value>c.value){E(e-1),m.value=t-n-v.value+f.value;break}}e.suffix&&z(0)+v.value>c.value&&(m.value=null)}})),()=>{const t=y.value&&!!k.value.length,{itemComponent:n,renderRawItem:r,renderRawRest:i,renderRest:a,prefixCls:s="rc-overflow",suffix:u,component:c="div",id:d,onMousedown:p}=e,{class:f,style:v}=o,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["class","style"]);let w={};null!==m.value&&x.value&&(w={position:"absolute",left:`${m.value}px`,top:0});const E={prefixCls:b.value,responsive:x.value,component:n,invalidate:C.value},z=r?(e,t)=>{const n=P(e,t);return $(Lu,{key:n,value:ze(ze({},E),{order:t,item:e,itemKey:n,registerSize:A,display:t<=g.value})},{default:()=>[r(e,t)]})}:(e,t)=>{const n=P(e,t);return $(Wu,Te(Te({},E),{},{order:t,key:n,item:e,renderItem:I.value,itemKey:n,registerSize:A,display:t<=g.value}),null)};let D=()=>null;const R={order:t?g.value:Number.MAX_SAFE_INTEGER,className:`${b.value} ${b.value}-rest`,registerSize:M,display:t};if(i)i&&(D=()=>$(Lu,{value:ze(ze({},E),R)},{default:()=>[i(k.value)]}));else{const e=a||Gu;D=()=>$(Wu,Te(Te({},E),R),{default:()=>"function"==typeof e?e(k.value):e})}return $(Et,{disabled:!x.value,onResize:j},{default:()=>{var t;return $(c,Te({id:d,class:Ge(!C.value&&s,f),style:v,onMousedown:p,role:e.role},h),{default:()=>[O.value.map(z),S.value?D():null,u&&$(Wu,Te(Te({},E),{},{order:g.value,class:`${b.value}-suffix`,registerSize:T,display:!0,style:w}),{default:()=>u}),null===(t=l.default)||void 0===t?void 0:t.call(l)]})}})}}});Uu.Item=Xu,Uu.RESPONSIVE=Ku,Uu.INVALIDATE=qu;const Yu=Symbol("TreeSelectLegacyContextPropsKey");function Zu(){return o(Yu,{})}const Qu={id:String,prefixCls:String,values:Dl.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:Dl.any,placeholder:Dl.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:Dl.oneOfType([Dl.number,Dl.string]),compositionStatus:Boolean,removeIcon:Dl.any,choiceTransitionName:String,maxTagCount:Dl.oneOfType([Dl.number,Dl.string]),maxTagTextLength:Number,maxTagPlaceholder:Dl.any.def((()=>e=>`+ ${e.length} ...`)),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},Ju=e=>{e.preventDefault(),e.stopPropagation()},ec=l({name:"MultipleSelectSelector",inheritAttrs:!1,props:Qu,setup(e){const t=s(),o=s(0),r=s(!1),l=Zu(),a=n((()=>`${e.prefixCls}-selection`)),u=n((()=>e.open||"tags"===e.mode?e.searchValue:"")),d=n((()=>"tags"===e.mode||e.showSearch&&(e.open||r.value))),p=b("");function f(t,n,o,r,l){return $("span",{class:Ge(`${a.value}-item`,{[`${a.value}-item-disabled`]:o}),title:"string"==typeof t||"number"==typeof t?t.toString():void 0},[$("span",{class:`${a.value}-item-content`},[n]),r&&$(Au,{class:`${a.value}-item-remove`,onMousedown:Ju,onClick:l,customizeIcon:e.removeIcon},{default:()=>[z("×")]})])}function v(t){const{disabled:n,label:o,value:r,option:i}=t,a=!e.disabled&&!n;let s=o;if("number"==typeof e.maxTagTextLength&&("string"==typeof o||"number"==typeof o)){const t=String(s);t.length>e.maxTagTextLength&&(s=`${t.slice(0,e.maxTagTextLength)}...`)}const u=n=>{var o;n&&n.stopPropagation(),null===(o=e.onRemove)||void 0===o||o.call(e,t)};return"function"==typeof e.tagRender?function(t,n,o,r,i,a){var s;let u=a;return l.keyEntities&&(u=(null===(s=l.keyEntities[t])||void 0===s?void 0:s.node)||{}),$("span",{key:t,onMousedown:t=>{Ju(t),e.onToggleOpen(!open)}},[e.tagRender({label:n,value:t,disabled:o,closable:r,onClose:i,option:u})])}(r,s,n,a,u,i):f(o,s,n,a,u)}function m(t){const{maxTagPlaceholder:n=e=>`+ ${e.length} ...`}=e,o="function"==typeof n?n(t):n;return f(o,o,!1)}w((()=>{p.value=u.value})),h((()=>{i(p,(()=>{o.value=t.value.scrollWidth}),{flush:"post",immediate:!0})}));const g=t=>{const n=t.target.composing;p.value=t.target.value,n||e.onInputChange(t)};return()=>{const{id:n,prefixCls:l,values:i,open:s,inputRef:f,placeholder:h,disabled:y,autofocus:b,autocomplete:w,activeDescendantId:x,tabindex:C,compositionStatus:S,onInputPaste:O,onInputKeyDown:k,onInputMouseDown:P,onInputCompositionStart:I,onInputCompositionEnd:E}=e,j=$("div",{class:`${a.value}-search`,style:{width:o.value+"px"},key:"input"},[$(Ru,{inputRef:f,open:s,prefixCls:l,id:n,inputElement:null,disabled:y,autofocus:b,autocomplete:w,editable:d.value,activeDescendantId:x,value:p.value,onKeydown:k,onMousedown:P,onChange:g,onPaste:O,onCompositionstart:I,onCompositionend:E,tabindex:C,attrs:Hu(e,!0),onFocus:()=>r.value=!0,onBlur:()=>r.value=!1},null),$("span",{ref:t,class:`${a.value}-search-mirror`,"aria-hidden":!0},[p.value,z(" ")])]),A=$(Uu,{prefixCls:`${a.value}-overflow`,data:i,renderItem:v,renderRest:m,suffix:j,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return $(c,null,[A,!i.length&&!u.value&&!S&&$("span",{class:`${a.value}-placeholder`},[h])])}}}),tc={inputElement:Dl.any,id:String,prefixCls:String,values:Dl.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:Dl.any,placeholder:Dl.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:Dl.oneOfType([Dl.number,Dl.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},nc=l({name:"SingleSelector",setup(e){const t=s(!1),o=n((()=>"combobox"===e.mode)),r=n((()=>o.value||e.showSearch)),l=n((()=>{let n=e.searchValue||"";return o.value&&e.activeValue&&!t.value&&(n=e.activeValue),n})),a=Zu();i([o,()=>e.activeValue],(()=>{o.value&&(t.value=!1)}),{immediate:!0});const u=n((()=>!("combobox"!==e.mode&&!e.open&&!e.showSearch)&&(!!l.value||e.compositionStatus))),d=n((()=>{const t=e.values[0];return!t||"string"!=typeof t.label&&"number"!=typeof t.label?void 0:t.label.toString()})),p=()=>{if(e.values[0])return null;const t=u.value?{visibility:"hidden"}:void 0;return $("span",{class:`${e.prefixCls}-selection-placeholder`,style:t},[e.placeholder])},f=n=>{n.target.composing||(t.value=!0,e.onInputChange(n))};return()=>{var t,n,i,s;const{inputElement:v,prefixCls:m,id:h,values:g,inputRef:y,disabled:b,autofocus:w,autocomplete:x,activeDescendantId:C,open:S,tabindex:O,optionLabelRender:k,onInputKeyDown:P,onInputMouseDown:I,onInputPaste:E,onInputCompositionStart:j,onInputCompositionEnd:A}=e,M=g[0];let T=null;if(M&&a.customSlots){const e=null!==(t=M.key)&&void 0!==t?t:M.value,o=(null===(n=a.keyEntities[e])||void 0===n?void 0:n.node)||{};T=a.customSlots[null===(i=o.slots)||void 0===i?void 0:i.title]||a.customSlots.title||M.label,"function"==typeof T&&(T=T(o))}else T=k&&M?k(M.option):null==M?void 0:M.label;return $(c,null,[$("span",{class:`${m}-selection-search`},[$(Ru,{inputRef:y,prefixCls:m,id:h,open:S,inputElement:v,disabled:b,autofocus:w,autocomplete:x,editable:r.value,activeDescendantId:C,value:l.value,onKeydown:P,onMousedown:I,onChange:f,onPaste:E,onCompositionstart:j,onCompositionend:A,tabindex:O,attrs:Hu(e,!0)},null)]),!o.value&&M&&!u.value&&$("span",{class:`${m}-selection-item`,title:d.value},[$(c,{key:null!==(s=M.key)&&void 0!==s?s:M.value},[T])]),p()])}}});function oc(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=null;return x((()=>{clearTimeout(e)})),[()=>n,function(o){(o||null===n)&&(n=o),clearTimeout(e),e=setTimeout((()=>{n=null}),t)}]}function rc(){const e=t=>{e.current=t};return e}nc.props=tc,nc.inheritAttrs=!1;const lc=l({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:Dl.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:Dl.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:Dl.oneOfType([Dl.number,Dl.string]),disabled:{type:Boolean,default:void 0},placeholder:Dl.any,removeIcon:Dl.any,maxTagCount:Dl.oneOfType([Dl.number,Dl.string]),maxTagTextLength:Number,maxTagPlaceholder:Dl.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:n}=t;const o=rc(),r=b(!1),[l,i]=oc(0),a=t=>{const{which:n}=t;(n===ju.UP||n===ju.DOWN)&&t.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(t),n===ju.ENTER&&"tags"===e.mode&&!r.value&&!e.open&&e.onSearchSubmit(t.target.value),function(e){return![ju.ESC,ju.SHIFT,ju.BACKSPACE,ju.TAB,ju.WIN_KEY,ju.ALT,ju.META,ju.WIN_KEY_RIGHT,ju.CTRL,ju.SEMICOLON,ju.EQUALS,ju.CAPS_LOCK,ju.CONTEXT_MENU,ju.F1,ju.F2,ju.F3,ju.F4,ju.F5,ju.F6,ju.F7,ju.F8,ju.F9,ju.F10,ju.F11,ju.F12].includes(e)}(n)&&e.onToggleOpen(!0)},s=()=>{i(!0)};let u=null;const c=t=>{!1!==e.onSearch(t,!0,r.value)&&e.onToggleOpen(!0)},d=()=>{r.value=!0},p=t=>{r.value=!1,"combobox"!==e.mode&&c(t.target.value)},f=t=>{let{target:{value:n}}=t;if(e.tokenWithEnter&&u&&/[\r\n]/.test(u)){const e=u.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");n=n.replace(e,u)}u=null,c(n)},v=e=>{const{clipboardData:t}=e;u=t.getData("text")},m=e=>{let{target:t}=e;t!==o.current&&(void 0!==document.body.style.msTouchAction?setTimeout((()=>{o.current.focus()})):o.current.focus())},h=t=>{const n=l();t.target!==o.current&&!n&&t.preventDefault(),("combobox"!==e.mode&&(!e.showSearch||!n)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{o.current.focus()},blur:()=>{o.current.blur()}}),()=>{const{prefixCls:t,domRef:n,mode:l}=e,i={inputRef:o,onInputKeyDown:a,onInputMouseDown:s,onInputChange:f,onInputPaste:v,compositionStatus:r.value,onInputCompositionStart:d,onInputCompositionEnd:p},u=$("multiple"===l||"tags"===l?ec:nc,Te(Te({},e),i),null);return $("div",{ref:n,class:`${t}-selector`,onClick:m,onMousedown:h},[u])}}});const ic=Symbol("BaseSelectContextKey");function ac(){return o(ic,{})}function sc(e){if(!D(e))return v(e);const t=new Proxy({},{get:(t,n,o)=>Reflect.get(e.value,n,o),set:(t,n,o)=>(e.value[n]=o,!0),deleteProperty:(t,n)=>Reflect.deleteProperty(e.value,n),has:(t,n)=>Reflect.has(e.value,n),ownKeys:()=>Object.keys(e.value),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});return v(t)}const uc=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],cc=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:Dl.any,placeholder:Dl.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:Dl.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:Dl.any,clearIcon:Dl.any,removeIcon:Dl.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function});function dc(e){return"tags"===e||"multiple"===e}const pc=l({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:yt(ze(ze({},{prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:Dl.any,emptyOptions:Boolean}),cc()),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:o,expose:l,slots:a}=t;const u=n((()=>dc(e.mode))),c=n((()=>void 0!==e.showSearch?e.showSearch:u.value||"combobox"===e.mode)),d=s(!1);h((()=>{d.value=(()=>{if(typeof navigator>"u"||typeof window>"u")return!1;const e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substring(0,4))})()}));const p=Zu(),f=s(null),v=rc(),m=s(null),g=s(null),y=s(null),C=b(!1),[S,O,k]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=s(!1);let n;const o=()=>{clearTimeout(n)};return h((()=>{o()})),[t,(r,l)=>{o(),n=setTimeout((()=>{t.value=r,l&&l()}),e)},o]}();l({focus:()=>{var e;null===(e=g.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=g.value)||void 0===e||e.blur()},scrollTo:e=>{var t;return null===(t=y.value)||void 0===t?void 0:t.scrollTo(e)}});const P=n((()=>{var t;if("combobox"!==e.mode)return e.searchValue;const n=null===(t=e.displayValues[0])||void 0===t?void 0:t.value;return"string"==typeof n||"number"==typeof n?String(n):""})),I=void 0!==e.open?e.open:e.defaultOpen,E=s(I),j=s(I),A=t=>{E.value=void 0!==e.open?e.open:t,j.value=E.value};i((()=>e.open),(()=>{A(e.open)}));const M=n((()=>!e.notFoundContent&&e.emptyOptions));w((()=>{j.value=E.value,(e.disabled||M.value&&j.value&&"combobox"===e.mode)&&(j.value=!1)}));const T=n((()=>!M.value&&j.value)),D=t=>{const n=void 0!==t?t:!j.value;j.value!==n&&!e.disabled&&(A(n),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(n),!n&&K.value&&(K.value=!1,O(!1,(()=>{X.value=!1,C.value=!1}))))},B=n((()=>(e.tokenSeparators||[]).some((e=>["\n","\r\n"].includes(e))))),N=(t,n,o)=>{var r,l;let i=!0,a=t;null===(r=e.onActiveValueChange)||void 0===r||r.call(e,null);const s=o?null:function(e,t){if(!t||!t.length)return null;let n=!1;const o=function e(t,o){let[r,...l]=o;if(!r)return[t];const i=t.split(r);return n=n||i.length>1,i.reduce(((t,n)=>[...t,...e(n,l)]),[]).filter((e=>e))}(e,t);return n?o:null}(t,e.tokenSeparators);return"combobox"!==e.mode&&s&&(a="",null===(l=e.onSearchSplit)||void 0===l||l.call(e,s),D(!1),i=!1),e.onSearch&&P.value!==a&&e.onSearch(a,{source:n?"typing":"effect"}),i},H=t=>{var n;!t||!t.trim()||null===(n=e.onSearch)||void 0===n||n.call(e,t,{source:"submit"})};i(j,(()=>{!j.value&&!u.value&&"combobox"!==e.mode&&N("",!1,!1)}),{immediate:!0,flush:"post"}),i((()=>e.disabled),(()=>{E.value&&e.disabled&&A(!1),e.disabled&&!C.value&&O(!1)}),{immediate:!0});const[F,L]=oc(),_=function(t){var n;const o=F(),{which:r}=t;if(r===ju.ENTER&&("combobox"!==e.mode&&t.preventDefault(),j.value||D(!0)),L(!!P.value),r===ju.BACKSPACE&&!o&&u.value&&!P.value&&e.displayValues.length){const t=[...e.displayValues];let n=null;for(let e=t.length-1;e>=0;e-=1){const o=t[e];if(!o.disabled){t.splice(e,1),n=o;break}}n&&e.onDisplayValuesChange(t,{type:"remove",values:[n]})}for(var l=arguments.length,i=new Array(l>1?l-1:0),a=1;a<l;a++)i[a-1]=arguments[a];j.value&&y.value&&y.value.onKeydown(t,...i),null===(n=e.onKeydown)||void 0===n||n.call(e,t,...i)},W=function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];j.value&&y.value&&y.value.onKeyup(t,...o),e.onKeyup&&e.onKeyup(t,...o)},V=t=>{const n=e.displayValues.filter((e=>e!==t));e.onDisplayValuesChange(n,{type:"remove",values:[t]})},X=s(!1),K=b(!1),q=()=>{K.value=!0},G=()=>{K.value=!1};r("VCSelectContainerEvent",{focus:function(){O(!0),e.disabled||(e.onFocus&&!X.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&D(!0)),X.value=!0},blur:function(){if(K.value||(C.value=!0,O(!1,(()=>{X.value=!1,C.value=!1,D(!1)})),e.disabled))return;const t=P.value;t&&("tags"===e.mode?e.onSearch(t,{source:"submit"}):"multiple"===e.mode&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)}});const U=[];h((()=>{U.forEach((e=>clearTimeout(e))),U.splice(0,U.length)})),x((()=>{U.forEach((e=>clearTimeout(e))),U.splice(0,U.length)}));const Y=function(t){var n,o;const{target:r}=t,l=null===(n=m.value)||void 0===n?void 0:n.getPopupElement();if(l&&l.contains(r)){const e=setTimeout((()=>{var t;const n=U.indexOf(e);-1!==n&&U.splice(n,1),k(),!d.value&&!l.contains(document.activeElement)&&(null===(t=g.value)||void 0===t||t.focus())}));U.push(e)}for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];null===(o=e.onMousedown)||void 0===o||o.call(e,t,...a)},Z=s(null),Q=()=>{};return h((()=>{i(T,(()=>{var e;if(T.value){const t=Math.ceil(null===(e=f.value)||void 0===e?void 0:e.offsetWidth);Z.value!==t&&!Number.isNaN(t)&&(Z.value=t)}}),{immediate:!0,flush:"post"})})),function(e,t,n){function o(o){var r,l,i;let a=o.target;a.shadowRoot&&o.composed&&(a=o.composedPath()[0]||a);const s=[null===(r=e[0])||void 0===r?void 0:r.value,null===(i=null===(l=e[1])||void 0===l?void 0:l.value)||void 0===i?void 0:i.getPopupElement()];t.value&&s.every((e=>e&&!e.contains(a)&&e!==a))&&n(!1)}h((()=>{window.addEventListener("mousedown",o)})),x((()=>{window.removeEventListener("mousedown",o)}))}([f,m],T,D),function(e){r(ic,e)}(sc(ze(ze({},R(e)),{open:j,triggerOpen:T,showSearch:c,multiple:u,toggleOpen:D}))),()=>{const t=ze(ze({},e),o),{prefixCls:n,id:r,open:l,defaultOpen:i,mode:s,showSearch:d,searchValue:h,onSearch:b,allowClear:w,clearIcon:x,showArrow:C,inputIcon:O,disabled:k,loading:I,getInputElement:E,getPopupContainer:A,placement:M,animation:R,transitionName:F,dropdownStyle:L,dropdownClassName:X,dropdownMatchSelectWidth:K,dropdownRender:U,dropdownAlign:J,showAction:ee,direction:te,tokenSeparators:ne,tagRender:oe,optionLabelRender:re,onPopupScroll:le,onDropdownVisibleChange:ie,onFocus:ae,onBlur:se,onKeyup:ue,onKeydown:ce,onMousedown:de,onClear:pe,omitDomProps:fe,getRawInputElement:ve,displayValues:me,onDisplayValuesChange:he,emptyOptions:ge,activeDescendantId:ye,activeValue:be,OptionList:we}=t,xe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),$e="combobox"===s&&E&&E()||null,Ce="function"==typeof ve&&ve(),Se=ze({},xe);let Oe;Ce&&(Oe=e=>{D(e)}),uc.forEach((e=>{delete Se[e]})),null==fe||fe.forEach((e=>{delete Se[e]}));const ke=void 0!==C?C:I||!u.value&&"combobox"!==s;let Pe,Ie;ke&&(Pe=$(Au,{class:Ge(`${n}-arrow`,{[`${n}-arrow-loading`]:I}),customizeIcon:O,customizeIconProps:{loading:I,searchValue:P.value,open:j.value,focused:S.value,showSearch:c.value}},null));!k&&w&&(me.length||P.value)&&(Ie=$(Au,{class:`${n}-clear`,onMousedown:()=>{null==pe||pe(),he([],{type:"clear",values:me}),N("",!1,!1)},customizeIcon:x},{default:()=>[z("×")]}));const Ee=$(we,{ref:y},ze(ze({},p.customSlots),{option:a.option})),je=Ge(n,o.class,{[`${n}-focused`]:S.value,[`${n}-multiple`]:u.value,[`${n}-single`]:!u.value,[`${n}-allow-clear`]:w,[`${n}-show-arrow`]:ke,[`${n}-disabled`]:k,[`${n}-loading`]:I,[`${n}-open`]:j.value,[`${n}-customize-input`]:$e,[`${n}-show-search`]:c.value}),Ae=$(Eu,{ref:m,disabled:k,prefixCls:n,visible:T.value,popupElement:Ee,containerWidth:Z.value,animation:R,transitionName:F,dropdownStyle:L,dropdownClassName:X,direction:te,dropdownMatchSelectWidth:K,dropdownRender:U,dropdownAlign:J,placement:M,getPopupContainer:A,empty:ge,getTriggerDOMNode:()=>v.current,onPopupVisibleChange:Oe,onPopupMouseEnter:Q,onPopupFocusin:q,onPopupFocusout:G},{default:()=>Ce?Pt(Ce)&&Ji(Ce,{ref:v},!1,!0):$(lc,Te(Te({},e),{},{domRef:v,prefixCls:n,inputElement:$e,ref:g,id:r,showSearch:c.value,mode:s,activeDescendantId:ye,tagRender:oe,optionLabelRender:re,values:me,open:j.value,onToggleOpen:D,activeValue:be,searchValue:P.value,onSearch:N,onSearchSubmit:H,onRemove:V,tokenWithEnter:B.value}),null)});let Me;return Me=Ce?Ae:$("div",Te(Te({},Se),{},{class:je,ref:f,onMousedown:Y,onKeydown:_,onKeyup:W}),[S.value&&!j.value&&$("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${me.map((e=>{let{label:t,value:n}=e;return["number","string"].includes(typeof t)?t:n})).join(", ")}`]),Ae,Pe,Ie]),Me}}}),fc=(e,t)=>{let{height:n,offset:o,prefixCls:r,onInnerResize:l}=e,{slots:i}=t;var a;let s={},u={display:"flex",flexDirection:"column"};return void 0!==o&&(s={height:`${n}px`,position:"relative",overflow:"hidden"},u=ze(ze({},u),{transform:`translateY(${o}px)`,position:"absolute",left:0,right:0,top:0})),$("div",{style:s},[$(Et,{onResize:e=>{let{offsetHeight:t}=e;t&&l&&l()}},{default:()=>[$("div",{style:u,class:Ge({[`${r}-holder-inner`]:r})},[null===(a=i.default)||void 0===a?void 0:a.call(i)])]})])};fc.displayName="Filter",fc.inheritAttrs=!1,fc.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const vc=(e,t)=>{let{setRef:n}=e,{slots:o}=t;var r;const l=wt(null===(r=o.default)||void 0===r?void 0:r.call(o));return l&&l.length?P(l[0],{ref:n}):l};vc.props={setRef:{type:Function,default:()=>{}}};function mc(e){return"touches"in e?e.touches[0].pageY:e.pageY}const hc=l({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup:()=>({moveRaf:null,scrollbarRef:rc(),thumbRef:rc(),visibleTimeout:null,state:v({dragging:!1,pageY:null,startTop:null,visible:!1})}),watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;null===(e=this.scrollbarRef.current)||void 0===e||e.addEventListener("touchstart",this.onScrollbarTouchStart,!!Rt&&{passive:!1}),null===(t=this.thumbRef.current)||void 0===t||t.addEventListener("touchstart",this.onMouseDown,!!Rt&&{passive:!1})},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout((()=>{this.state.visible=!1}),2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,!!Rt&&{passive:!1}),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,!!Rt&&{passive:!1}),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,!!Rt&&{passive:!1}),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,!!Rt&&{passive:!1}),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),Dt.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;ze(this.state,{dragging:!0,pageY:mc(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:n,startTop:o}=this.state,{onScroll:r}=this.$props;if(Dt.cancel(this.moveRaf),t){const t=o+(mc(e)-n),l=this.getEnableScrollRange(),i=this.getEnableHeightRange(),a=i?t/i:0,s=Math.ceil(a*l);this.moveRaf=Dt((()=>{r(s)}))}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let n=e/t*100;return n=Math.max(n,20),n=Math.min(n,e/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props;return e-this.getSpinHeight()||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();return 0===e||0===t?0:e/t*n},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:n}=this.$props,o=this.getSpinHeight()+"px",r=this.getTop()+"px",l=this.showScroll(),i=l&&t;return $("div",{ref:this.scrollbarRef,class:Ge(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:l}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:i?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[$("div",{ref:this.thumbRef,class:Ge(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:o,top:r,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});const gc="object"==typeof navigator&&/Firefox/i.test(navigator.userAgent),yc=(e,t)=>{let n=!1,o=null;return function(r){let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=r<0&&e.value||r>0&&t.value;return l&&i?(clearTimeout(o),n=!1):(!i||n)&&(clearTimeout(o),n=!0,o=setTimeout((()=>{n=!1}),50)),!n&&i}};const bc=14/15;const wc=[],xc={overflowY:"auto",overflowAnchor:"none"};const $c=l({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:Dl.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:o}=t;const r=n((()=>{const{height:t,itemHeight:n,virtual:o}=e;return!(!1===o||!t||!n)})),l=n((()=>{const{height:t,itemHeight:n,data:o}=e;return r.value&&o&&n*o.length>t})),a=v({scrollTop:0,scrollMoving:!1}),u=n((()=>e.data||wc)),c=s([]);i(u,(()=>{c.value=B(u.value).slice()}),{immediate:!0});const d=s((e=>{}));i((()=>e.itemKey),(e=>{d.value="function"==typeof e?e:t=>null==t?void 0:t[e]}),{immediate:!0});const p=s(),f=s(),m=s(),$=e=>d.value(e),C={getKey:$};function S(e){let t;t="function"==typeof e?e(a.scrollTop):e;const n=function(e){let t=e;return Number.isNaN(M.value)||(t=Math.min(t,M.value)),t=Math.max(t,0),t}(t);p.value&&(p.value.scrollTop=n),a.scrollTop=n}const[O,k,P,E]=function(e,t){const n=new Map,o=new Map,r=b(Symbol("update"));let l;function a(){Dt.cancel(l)}function s(){a(),l=Dt((()=>{n.forEach(((e,t)=>{if(e&&e.offsetParent){const{offsetHeight:n}=e;o.get(t)!==n&&(r.value=Symbol("update"),o.set(t,e.offsetHeight))}}))}))}return i(e,(()=>{r.value=Symbol("update")})),y((()=>{a()})),[function(e,o){const r=t(e);n.get(r),o?(n.set(r,o.$el||o),s()):n.delete(r)},s,o,r]}(c,$),j=v({scrollHeight:void 0,start:0,end:0,offset:void 0}),A=s(0);h((()=>{I((()=>{var e;A.value=(null===(e=f.value)||void 0===e?void 0:e.offsetHeight)||0}))})),g((()=>{I((()=>{var e;A.value=(null===(e=f.value)||void 0===e?void 0:e.offsetHeight)||0}))})),i([r,c],(()=>{r.value||ze(j,{scrollHeight:void 0,start:0,end:c.value.length-1,offset:void 0})}),{immediate:!0}),i([r,c,A,l],(()=>{r.value&&!l.value&&ze(j,{scrollHeight:A.value,start:0,end:c.value.length-1,offset:void 0}),p.value&&(a.scrollTop=p.value.scrollTop)}),{immediate:!0}),i([l,r,()=>a.scrollTop,c,E,()=>e.height,A],(()=>{if(!r.value||!l.value)return;let t,n,o,i=0;const s=c.value.length,u=c.value,d=a.scrollTop,{itemHeight:p,height:f}=e,v=d+f;for(let e=0;e<s;e+=1){const r=u[e],l=$(r);let a=P.get(l);void 0===a&&(a=p);const s=i+a;void 0===t&&s>=d&&(t=e,n=i),void 0===o&&s>v&&(o=e),i=s}void 0===t&&(t=0,n=0,o=Math.ceil(f/p)),void 0===o&&(o=s-1),o=Math.min(o+1,s),ze(j,{scrollHeight:i,start:t,end:o,offset:n})}),{immediate:!0});const M=n((()=>j.scrollHeight-e.height));const T=n((()=>a.scrollTop<=0)),z=n((()=>a.scrollTop>=M.value)),D=yc(T,z);const[R,N]=function(e,t,n,o){let r=0,l=null,i=null,a=!1;const s=yc(t,n);return[function(t){if(!e.value)return;Dt.cancel(l);const{deltaY:n}=t;r+=n,i=n,!s(n)&&(gc||t.preventDefault(),l=Dt((()=>{o(r*(a?10:1)),r=0})))},function(t){e.value&&(a=t.detail===i)}]}(r,T,z,(e=>{S((t=>t+e))}));function H(e){r.value&&e.preventDefault()}!function(e,t,n){let o=!1,r=0,l=null,a=null;const s=()=>{l&&(l.removeEventListener("touchmove",u),l.removeEventListener("touchend",c))},u=e=>{if(o){const t=Math.ceil(e.touches[0].pageY);let o=r-t;r=t,n(o)&&e.preventDefault(),clearInterval(a),a=setInterval((()=>{o*=bc,(!n(o,!0)||Math.abs(o)<=.1)&&clearInterval(a)}),16)}},c=()=>{o=!1,s()},d=e=>{s(),1===e.touches.length&&!o&&(o=!0,r=Math.ceil(e.touches[0].pageY),l=e.target,l.addEventListener("touchmove",u,{passive:!1}),l.addEventListener("touchend",c))},p=()=>{};h((()=>{document.addEventListener("touchmove",p,{passive:!1}),i(e,(e=>{t.value.removeEventListener("touchstart",d),s(),clearInterval(a),e&&t.value.addEventListener("touchstart",d,{passive:!1})}),{immediate:!0})})),x((()=>{document.removeEventListener("touchmove",p)}))}(r,p,((e,t)=>!D(e,t)&&(R({preventDefault(){},deltaY:e}),!0)));const F=()=>{p.value&&(p.value.removeEventListener("wheel",R,!!Rt&&{passive:!1}),p.value.removeEventListener("DOMMouseScroll",N),p.value.removeEventListener("MozMousePixelScroll",H))};w((()=>{I((()=>{p.value&&(F(),p.value.addEventListener("wheel",R,!!Rt&&{passive:!1}),p.value.addEventListener("DOMMouseScroll",N),p.value.addEventListener("MozMousePixelScroll",H))}))})),x((()=>{F()}));const L=function(e,t,n,o,r,l,i,a){let s;return u=>{if(null==u)return void a();Dt.cancel(s);const c=t.value,d=o.itemHeight;if("number"==typeof u)i(u);else if(u&&"object"==typeof u){let t;const{align:o}=u;"index"in u?({index:t}=u):t=c.findIndex((e=>r(e)===u.key));const{offset:a=0}=u,p=(u,f)=>{if(u<0||!e.value)return;const v=e.value.clientHeight;let m=!1,h=f;if(v){const l=f||o;let s=0,u=0,p=0;const g=Math.min(c.length,t);for(let e=0;e<=g;e+=1){const o=r(c[e]);u=s;const l=n.get(o);p=u+(void 0===l?d:l),s=p,e===t&&void 0===l&&(m=!0)}const y=e.value.scrollTop;let b=null;switch(l){case"top":b=u-a;break;case"bottom":b=p-v+a;break;default:u<y?h="top":p>y+v&&(h="bottom")}null!==b&&b!==y&&i(b)}s=Dt((()=>{m&&l(),p(u-1,h)}),2)};p(5)}}}(p,c,P,e,$,k,S,(()=>{var e;null===(e=m.value)||void 0===e||e.delayHidden()}));o({scrollTo:L});const _=n((()=>{let t=null;return e.height&&(t=ze({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},xc),r.value&&(t.overflowY="hidden",a.scrollMoving&&(t.pointerEvents="none"))),t}));return i([()=>j.start,()=>j.end,c],(()=>{if(e.onVisibleChange){const t=c.value.slice(j.start,j.end+1);e.onVisibleChange(t,c.value)}}),{flush:"post"}),{state:a,mergedData:c,componentStyle:_,onFallbackScroll:function(t){var n;const{scrollTop:o}=t.currentTarget;o!==a.scrollTop&&S(o),null===(n=e.onScroll)||void 0===n||n.call(e,t)},onScrollBar:function(e){S(e)},componentRef:p,useVirtual:r,calRes:j,collectHeight:k,setInstance:O,sharedConfig:C,scrollBarRef:m,fillerInnerRef:f,delayHideScrollBar:()=>{var e;null===(e=m.value)||void 0===e||e.delayHidden()}}},render(){const e=ze(ze({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:n,itemHeight:o,fullHeight:r,data:l,itemKey:i,virtual:a,component:s="div",onScroll:u,children:c=this.$slots.default,style:d,class:p}=e,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),v=Ge(t,p),{scrollTop:m}=this.state,{scrollHeight:h,offset:g,start:y,end:b}=this.calRes,{componentStyle:w,onFallbackScroll:x,onScrollBar:C,useVirtual:S,collectHeight:O,sharedConfig:k,setInstance:P,mergedData:I,delayHideScrollBar:E}=this;return $("div",Te({style:ze(ze({},d),{position:"relative"}),class:v},f),[$(s,{class:`${t}-holder`,style:w,ref:"componentRef",onScroll:x,onMouseenter:E},{default:()=>[$(fc,{prefixCls:t,height:h,offset:g,onInnerResize:O,ref:"fillerInnerRef"},{default:()=>function(e,t,n,o,r,l){let{getKey:i}=l;return e.slice(t,n+1).map(((e,n)=>{const l=r(e,t+n,{}),a=i(e);return $(vc,{key:a,setRef:t=>o(e,t)},{default:()=>[l]})}))}(I,y,b,P,c,k)})]}),S&&$(hc,{ref:"scrollBarRef",prefixCls:t,scrollTop:m,height:n,scrollHeight:h,count:I.length,onScroll:C,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});const Cc=Symbol("SelectContextKey");function Sc(e){return"string"==typeof e||"number"==typeof e}const Oc=l({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{expose:r,slots:l}=t;const a=ac(),s=o(Cc,{}),u=n((()=>`${a.prefixCls}-item`)),d=function(e,t,n){const o=b(e());return i(t,((t,r)=>{n?n(t,r)&&(o.value=e()):o.value=e()})),o}((()=>s.flattenOptions),[()=>a.open,()=>s.flattenOptions],(e=>e[0])),p=rc(),f=e=>{e.preventDefault()},m=e=>{p.current&&p.current.scrollTo("number"==typeof e?{index:e}:e)},h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=d.value.length;for(let o=0;o<n;o+=1){const r=(e+o*t+n)%n,{group:l,data:i}=d.value[r];if(!l&&!i.disabled)return r}return-1},g=v({activeIndex:h(0)}),y=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g.activeIndex=e;const n={source:t?"keyboard":"mouse"},o=d.value[e];o?s.onActiveValue(o.value,e,n):s.onActiveValue(null,-1,n)};i([()=>d.value.length,()=>a.searchValue],(()=>{y(!1!==s.defaultActiveFirstOption?h(0):-1)}),{immediate:!0});const w=e=>s.rawValues.has(e)&&"combobox"!==a.mode;i([()=>a.open,()=>a.searchValue],(()=>{if(!a.multiple&&a.open&&1===s.rawValues.size){const e=Array.from(s.rawValues)[0],t=B(d.value).findIndex((t=>{let{data:n}=t;return n[s.fieldNames.value]===e}));-1!==t&&(y(t),I((()=>{m(t)})))}a.open&&I((()=>{var e;null===(e=p.current)||void 0===e||e.scrollTo(void 0)}))}),{immediate:!0,flush:"post"});const x=e=>{void 0!==e&&s.onSelect(e,{selected:!s.rawValues.has(e)}),a.multiple||a.toggleOpen(!1)},C=e=>"function"==typeof e.label?e.label():e.label;function S(e){const t=d.value[e];if(!t)return null;const n=t.data||{},{value:o}=n,{group:r}=t,l=Hu(n,!0),i=C(t);return t?$("div",Te(Te({"aria-label":"string"!=typeof i||r?null:i},l),{},{key:e,role:r?"presentation":"option",id:`${a.id}_list_${e}`,"aria-selected":w(o)}),[o]):null}return r({onKeydown:e=>{const{which:t,ctrlKey:n}=e;switch(t){case ju.N:case ju.P:case ju.UP:case ju.DOWN:{let e=0;if(t===ju.UP?e=-1:t===ju.DOWN?e=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===ju.N?e=1:t===ju.P&&(e=-1)),0!==e){const t=h(g.activeIndex+e,e);m(t),y(t,!0)}break}case ju.ENTER:{const t=d.value[g.activeIndex];t&&!t.data.disabled?x(t.value):x(void 0),a.open&&e.preventDefault();break}case ju.ESC:a.toggleOpen(!1),a.open&&e.stopPropagation()}},onKeyup:()=>{},scrollTo:e=>{m(e)}}),()=>{const{id:e,notFoundContent:t,onPopupScroll:n}=a,{menuItemSelectedIcon:o,fieldNames:r,virtual:i,listHeight:v,listItemHeight:m}=s,h=l.option,{activeIndex:b}=g,O=Object.keys(r).map((e=>r[e]));return 0===d.value.length?$("div",{role:"listbox",id:`${e}_list`,class:`${u.value}-empty`,onMousedown:f},[t]):$(c,null,[$("div",{role:"listbox",id:`${e}_list`,style:{height:0,width:0,overflow:"hidden"}},[S(b-1),S(b),S(b+1)]),$($c,{itemKey:"key",ref:p,data:d.value,height:v,itemHeight:m,fullHeight:!1,onMousedown:f,onScroll:n,virtual:i},{default:(e,t)=>{var n;const{group:r,groupOption:l,data:i,value:a}=e,{key:s}=i,c="function"==typeof e.label?e.label():e.label;if(r){const e=null!==(n=i.title)&&void 0!==n?n:Sc(c)&&c;return $("div",{class:Ge(u.value,`${u.value}-group`),title:e},[h?h(i):void 0!==c?c:s])}const{disabled:d,title:p,children:f,style:v,class:m,className:g}=i,S=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(i,["disabled","title","children","style","class","className"]),k=tl(S,O),P=w(a),I=`${u.value}-option`,E=Ge(u.value,I,m,g,{[`${I}-grouped`]:l,[`${I}-active`]:b===t&&!d,[`${I}-disabled`]:d,[`${I}-selected`]:P}),j=C(e),A=!o||"function"==typeof o||P,M="number"==typeof j?j:j||a;let T=Sc(M)?M.toString():void 0;return void 0!==p&&(T=p),$("div",Te(Te({},k),{},{"aria-selected":P,class:E,title:T,onMousemove:e=>{S.onMousemove&&S.onMousemove(e),b!==t&&!d&&y(t)},onClick:e=>{d||x(a),S.onClick&&S.onClick(e)},style:v}),[$("div",{class:`${I}-content`},[h?h(i):M]),Pt(o)||P,A&&$(Au,{class:`${u.value}-option-state`,customizeIcon:o,customizeIconProps:{isSelected:P}},{default:()=>[P?"✓":null]})])}})])}}});function kc(e){const t=e,{key:n,children:o}=t,r=t.props,{value:l,disabled:i}=r,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(r,["value","disabled"]);return ze({key:n,value:void 0!==l?l:n,children:null==o?void 0:o.default,disabled:i||""===i},a)}function Pc(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return wt(e).map(((e,n)=>{var o;if(!Pt(e)||!e.type)return null;const{type:{isSelectOptGroup:r},key:l,children:i,props:a}=e;if(t||!r)return kc(e);const s=i&&i.default?i.default():void 0,u=(null==a?void 0:a.label)||(null===(o=i.label)||void 0===o?void 0:o.call(i))||l;return ze(ze({key:`__RC_SELECT_GRP__${null===l?n:String(l)}__`},a),{label:u,options:Pc(s||[])})})).filter((e=>e))}function Ic(e,t,n){const o=s(),r=s(),l=s(),a=s([]);return i([e,t],(()=>{e.value?a.value=B(e.value).slice():a.value=Pc(t.value)}),{immediate:!0,deep:!0}),w((()=>{const e=a.value,t=new Map,i=new Map,s=n.value;(function e(n){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(let r=0;r<n.length;r+=1){const l=n[r];!l[s.options]||o?(t.set(l[s.value],l),i.set(l[s.label],l)):e(l[s.options],!0)}})(e),o.value=e,r.value=t,l.value=i})),{options:o,valueOptions:r,labelOptions:l}}let Ec=0;const jc=rn();function Ac(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b("");const t=`rc_select_${function(){let e;return jc?(e=Ec,Ec+=1):e="TEST_OR_SSR",e}()}`;return e.value||t}function Mc(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function Tc(e,t){return Mc(e).join("").toUpperCase().includes(t)}function zc(e,t){const{defaultValue:n,value:o=b()}=t||{};let r="function"==typeof e?e():e;void 0!==o.value&&(r=a(o)),void 0!==n&&(r="function"==typeof n?n():n);const l=b(r),s=b(r);return w((()=>{let e=void 0!==o.value?o.value:l.value;t.postState&&(e=t.postState(e)),s.value=e})),i(o,(()=>{l.value=o.value})),[s,function(e){const n=s.value;l.value=e,B(s.value)!==e&&t.onChange&&t.onChange(e,n)}]}function Dc(e){const t="function"==typeof e?e():e,n=b(t);return[n,function(e){n.value=e}]}const Rc=["inputValue"];l({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:yt(ze(ze({},cc()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:Dl.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:Dl.any,defaultValue:Dl.any,onChange:Function,children:Array}),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:o,attrs:l,slots:i}=t;const a=Ac(E(e,"id")),u=n((()=>dc(e.mode))),c=n((()=>!(e.options||!e.children))),d=n((()=>(void 0!==e.filterOption||"combobox"!==e.mode)&&e.filterOption)),p=n((()=>Nl(e.fieldNames,c.value))),[f,v]=zc("",{value:n((()=>void 0!==e.searchValue?e.searchValue:e.inputValue)),postState:e=>e||""}),m=Ic(E(e,"options"),E(e,"children"),p),{valueOptions:h,labelOptions:g,options:y}=m,x=t=>Mc(t).map((t=>{var n,o;let r,l,i,a;!function(e){return!e||"object"!=typeof e}(t)?(i=t.key,l=t.label,r=null!==(n=t.value)&&void 0!==n?n:i):r=t;const s=h.value.get(r);return s&&(void 0===l&&(l=null==s?void 0:s[e.optionLabelProp||p.value.label]),void 0===i&&(i=null!==(o=null==s?void 0:s.key)&&void 0!==o?o:r),a=null==s?void 0:s.disabled),{label:l,value:r,key:i,disabled:a,option:s}})),[C,S]=zc(e.defaultValue,{value:E(e,"value")}),O=n((()=>{var t;const n=x(C.value);return"combobox"!==e.mode||null!==(t=n[0])&&void 0!==t&&t.value?n:[]})),[k,P]=((e,t)=>{const o=s({values:new Map,options:new Map});return[n((()=>{const{values:n,options:r}=o.value,l=e.value.map((e=>{var t;return void 0===e.label?ze(ze({},e),{label:null===(t=n.get(e.value))||void 0===t?void 0:t.label}):e})),i=new Map,a=new Map;return l.forEach((e=>{i.set(e.value,e),a.set(e.value,t.value.get(e.value)||r.get(e.value))})),o.value.values=i,o.value.options=a,l})),e=>t.value.get(e)||o.value.options.get(e)]})(O,h),I=n((()=>{if(!e.mode&&1===k.value.length){const e=k.value[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return k.value.map((e=>{var t;return ze(ze({},e),{label:null!==(t="function"==typeof e.label?e.label():e.label)&&void 0!==t?t:e.value})}))})),j=n((()=>new Set(k.value.map((e=>e.value)))));w((()=>{var t;if("combobox"===e.mode){const e=null===(t=k.value[0])||void 0===t?void 0:t.value;null!=e&&v(String(e))}}),{flush:"post"});const A=(e,t)=>{const n=t??e;return{[p.value.value]:e,[p.value.label]:n}},M=s();w((()=>{if("tags"!==e.mode)return void(M.value=y.value);const t=y.value.slice();[...k.value].sort(((e,t)=>e.value<t.value?-1:1)).forEach((e=>{const n=e.value;(e=>h.value.has(e))(n)||t.push(A(n,e.label))})),M.value=t}));const T=((e,t,o,r,l)=>n((()=>{const n=o.value,i=null==l?void 0:l.value,a=null==r?void 0:r.value;if(!n||!1===a)return e.value;const{options:s,label:u,value:c}=t.value,d=[],p="function"==typeof a,f=n.toUpperCase(),v=p?a:(e,t)=>i?Tc(t[i],f):t[s]?Tc(t["children"!==u?u:"label"],f):Tc(t[c],f),m=p?e=>Hl(e):e=>e;return e.value.forEach((e=>{if(e[s])if(v(n,m(e)))d.push(e);else{const t=e[s].filter((e=>v(n,m(e))));t.length&&d.push(ze(ze({},e),{[s]:t}))}else v(n,m(e))&&d.push(e)})),d})))(M,p,f,d,E(e,"optionFilterProp")),z=n((()=>"tags"!==e.mode||!f.value||T.value.some((t=>t[e.optionFilterProp||"value"]===f.value))?T.value:[A(f.value),...T.value])),D=n((()=>e.filterSort?[...z.value].sort(((t,n)=>e.filterSort(t,n))):z.value)),R=n((()=>function(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=[],{label:r,value:l,options:i}=Nl(t,!1);return function e(t,a){t.forEach((t=>{const s=t[r];if(a||!(i in t)){const e=t[l];o.push({key:Bl(t,o.length),groupOption:a,data:t,label:s,value:e})}else{let r=s;void 0===r&&n&&(r=t.label),o.push({key:Bl(t,o.length),group:!0,data:t,label:r}),e(t[i],!0)}}))}(e,!1),o}(D.value,{fieldNames:p.value,childrenAsData:c.value}))),B=t=>{const n=x(t);if(S(n),e.onChange&&(n.length!==k.value.length||n.some(((e,t)=>{var n;return(null===(n=k.value[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){const t=e.labelInValue?n.map((e=>ze(ze({},e),{originLabel:e.label,label:"function"==typeof e.label?e.label():e.label}))):n.map((e=>e.value)),o=n.map((e=>Hl(P(e.value))));e.onChange(u.value?t:t[0],u.value?o:o[0])}},[N,H]=Dc(null),[F,L]=Dc(0),_=n((()=>void 0!==e.defaultActiveFirstOption?e.defaultActiveFirstOption:"combobox"!==e.mode)),W=(t,n)=>{const o=()=>{var n;const o=P(t),r=null==o?void 0:o[p.value.label];return[e.labelInValue?{label:"function"==typeof r?r():r,originLabel:r,value:t,key:null!==(n=null==o?void 0:o.key)&&void 0!==n?n:t}:t,Hl(o)]};if(n&&e.onSelect){const[t,n]=o();e.onSelect(t,n)}else if(!n&&e.onDeselect){const[t,n]=o();e.onDeselect(t,n)}},V=(e,t)=>{B(e),("remove"===t.type||"clear"===t.type)&&t.values.forEach((e=>{W(e.value,!1)}))},X=(t,n)=>{var o;if(v(t),H(null),"submit"!==n.source)"blur"!==n.source&&("combobox"===e.mode&&B(t),null===(o=e.onSearch)||void 0===o||o.call(e,t));else{const e=(t||"").trim();if(e){const t=Array.from(new Set([...j.value,e]));B(t),W(e,!0),v("")}}},K=t=>{let n=t;"tags"!==e.mode&&(n=t.map((e=>{const t=g.value.get(e);return null==t?void 0:t.value})).filter((e=>void 0!==e)));const o=Array.from(new Set([...j.value,...n]));B(o),o.forEach((e=>{W(e,!0)}))},q=n((()=>!1!==e.virtual&&!1!==e.dropdownMatchSelectWidth));!function(e){r(Cc,e)}(sc(ze(ze({},m),{flattenOptions:R,onActiveValue:function(t,n){let{source:o="keyboard"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};L(n),e.backfill&&"combobox"===e.mode&&null!==t&&"keyboard"===o&&H(String(t))},defaultActiveFirstOption:_,onSelect:(t,n)=>{let o;const r=!u.value||n.selected;o=r?u.value?[...k.value,t]:[t]:k.value.filter((e=>e.value!==t)),B(o),W(t,r),"combobox"===e.mode?H(""):(!u.value||e.autoClearSearchValue)&&(v(""),H(""))},menuItemSelectedIcon:E(e,"menuItemSelectedIcon"),rawValues:j,fieldNames:p,virtual:q,listHeight:E(e,"listHeight"),listItemHeight:E(e,"listItemHeight"),childrenAsData:c})));const G=b();o({focus(){var e;null===(e=G.value)||void 0===e||e.focus()},blur(){var e;null===(e=G.value)||void 0===e||e.blur()},scrollTo(e){var t;null===(t=G.value)||void 0===t||t.scrollTo(e)}});const U=n((()=>tl(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"])));return()=>$(pc,Te(Te(Te({},U.value),l),{},{id:a,prefixCls:e.prefixCls,ref:G,omitDomProps:Rc,mode:e.mode,displayValues:I.value,onDisplayValuesChange:V,searchValue:f.value,onSearch:X,onSearchSplit:K,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:Oc,emptyOptions:!R.value.length,activeValue:N.value,activeDescendantId:`${a}_list_${F.value}`}),i)}});var Bc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}}]},name:"down",theme:"outlined"},Nc=Symbol("iconContext"),Hc=function(){return o(Nc,{prefixCls:b("anticon"),rootClassName:b(""),csp:b()})};function Fc(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Lc="data-vc-order",_c=new Map;function Wc(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"vc-icon-key"}function Vc(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Xc(e){return Array.from((_c.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Kc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Fc())return null;var n=t.csp,o=t.prepend,r=document.createElement("style");r.setAttribute(Lc,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o)),n&&n.nonce&&(r.nonce=n.nonce),r.innerHTML=e;var l=Vc(t),i=l.firstChild;if(o){if("queue"===o){var a=Xc(l).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(Lc))}));if(a.length)return l.insertBefore(r,a[a.length-1].nextSibling),r}l.insertBefore(r,i)}else l.appendChild(r);return r}function qc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=_c.get(e);if(!n||!function(e,t){return!(!e||!e.contains)&&e.contains(t)}(document,n)){var o=Kc("",t),r=o.parentNode;_c.set(e,r),e.removeChild(o)}}(Vc(n),n);var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Xc(Vc(t)).find((function(n){return n.getAttribute(Wc(t))===e}))}(t,n);if(o)return n.csp&&n.csp.nonce&&o.nonce!==n.csp.nonce&&(o.nonce=n.csp.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;var r=Kc(e,n);return r.setAttribute(Wc(n),t),r}function Gc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Uc(e,t,n[t])}))}return e}function Uc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yc(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function Zc(e,t,n){return C(e.tag,n?Gc({key:t},n,e.attrs):Gc({key:t},e.attrs),(e.children||[]).map((function(n,o){return Zc(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})))}function Qc(e){return rr(e)[0]}function Jc(e){return e?Array.isArray(e)?e:[e]:[]}function ed(e){return e&&e.getRootNode&&e.getRootNode()}function td(e){return function(e){return!!Fc()&&ed(e)instanceof ShadowRoot}(e)?ed(e):null}var nd=["icon","primaryColor","secondaryColor"];function od(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){ld(e,t,n[t])}))}return e}function ld(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var id=v({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});var ad=function(e,t){var n=rd({},e,t.attrs),o=n.icon,r=n.primaryColor,l=n.secondaryColor,i=od(n,nd),a=id;if(r&&(a={primaryColor:r,secondaryColor:l||Qc(r)}),Yc(o),!Yc(o))return null;var s=o;return s&&"function"==typeof s.icon&&(s=rd({},s,{icon:s.icon(a.primaryColor,a.secondaryColor)})),Zc(s.icon,"svg-".concat(s.name),rd({},i,{"data-icon":s.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};function sd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,l=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(l.push(o.value),!t||l.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{!i&&null!=n.return&&n.return()}finally{if(a)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ud(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ud(e,t)}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ud(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function cd(e){var t=sd(Jc(e),2),n=t[0],o=t[1];return ad.setTwoToneColors({primaryColor:n,secondaryColor:o})}ad.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},ad.inheritAttrs=!1,ad.displayName="IconBase",ad.getTwoToneColors=function(){return rd({},id)},ad.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;id.primaryColor=t,id.secondaryColor=n||Qc(t),id.calculated=!!n};var dd=l({name:"InsertStyles",setup:function(){return e=Hc(),t=e.prefixCls,n=e.csp,o=m(),r="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",t&&(r=r.replace(/anticon/g,t.value)),I((function(){if(Fc()){var e=td(o.vnode.el);qc(r,"@ant-design-vue-icons",{prepend:!0,csp:n.value,attachTo:e})}})),function(){return null};var e,t,n,o,r}}),pd=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function fd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,l=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(l.push(o.value),!t||l.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{!i&&null!=n.return&&n.return()}finally{if(a)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vd(e,t)}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function md(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){hd(e,t,n[t])}))}return e}function hd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gd(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}cd(ur.primary);var yd=function(e,t){var n,o=md({},e,t.attrs),r=o.class,l=o.icon,i=o.spin,a=o.rotate,s=o.tabindex,u=o.twoToneColor,c=o.onClick,d=gd(o,pd),p=Hc(),f=p.prefixCls,v=p.rootClassName,m=(hd(n={},v.value,!!v.value),hd(n,f.value,!0),hd(n,"".concat(f.value,"-").concat(l.name),!!l.name),hd(n,"".concat(f.value,"-spin"),!!i||"loading"===l.name),n),h=s;void 0===h&&c&&(h=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=fd(Jc(u),2),b=y[0],w=y[1];return $("span",md({role:"img","aria-label":l.name},d,{onClick:c,class:[m,r],tabindex:h}),[$(ad,{icon:l,primaryColor:b,secondaryColor:w,style:g},null),$(dd,null,null)])};function bd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){wd(e,t,n[t])}))}return e}function wd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}yd.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},yd.displayName="AntdIcon",yd.inheritAttrs=!1,yd.getTwoToneColor=function(){var e=ad.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},yd.setTwoToneColor=cd;var xd=function(e,t){var n=bd({},e,t.attrs);return $(yd,bd({},n,{icon:Bc}),null)};xd.displayName="DownOutlined",xd.inheritAttrs=!1;var $d={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function Cd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Sd(e,t,n[t])}))}return e}function Sd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Od=function(e,t){var n=Cd({},e,t.attrs);return $(yd,Cd({},n,{icon:$d}),null)};Od.displayName="LoadingOutlined",Od.inheritAttrs=!1;var kd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};function Pd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Id(e,t,n[t])}))}return e}function Id(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ed=function(e,t){var n=Pd({},e,t.attrs);return $(yd,Pd({},n,{icon:kd}),null)};Ed.displayName="CheckOutlined",Ed.inheritAttrs=!1;var jd={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function Ad(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Md(e,t,n[t])}))}return e}function Md(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Td=function(e,t){var n=Ad({},e,t.attrs);return $(yd,Ad({},n,{icon:jd}),null)};Td.displayName="CloseOutlined",Td.inheritAttrs=!1;var zd={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function Dd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Rd(e,t,n[t])}))}return e}function Rd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bd=function(e,t){var n=Dd({},e,t.attrs);return $(yd,Dd({},n,{icon:zd}),null)};Bd.displayName="CloseCircleFilled",Bd.inheritAttrs=!1;var Nd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}}]},name:"search",theme:"outlined"};function Hd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Fd(e,t,n[t])}))}return e}function Fd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ld=function(e,t){var n=Hd({},e,t.attrs);return $(yd,Hd({},n,{icon:Nd}),null)};function _d(e){const t=Symbol("contextKey");return{useProvide:(e,n)=>{const o=v({});return r(t,o),w((()=>{ze(o,e,n||{})})),o},useInject:()=>o(t,e)||{}}}Ld.displayName="SearchOutlined",Ld.inheritAttrs=!1;const Wd=Symbol("ContextProps"),Vd=Symbol("InternalContextProps"),Xd={id:n((()=>{})),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},Kd={addFormItemField:()=>{},removeFormItemField:()=>{}},qd=()=>{const e=o(Vd,Kd),t=Symbol("FormItemFieldKey"),n=m();return e.addFormItemField(t,n.type),x((()=>{e.removeFormItemField(t)})),r(Vd,Kd),r(Wd,Xd),o(Wd,Xd)},Gd=l({compatConfig:{MODE:3},name:"AFormItemRest",setup(e,t){let{slots:n}=t;return r(Vd,Kd),r(Wd,Xd),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),Ud=_d({}),Yd=l({name:"NoFormStatus",setup(e,t){let{slots:n}=t;return Ud.useProvide({}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});function Zd(e,t,n){return Ge({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const Qd=(e,t)=>t||e,Jd=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},ep=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item`]:{"&:empty":{display:"none"}}}}},tp=Mr("Space",(e=>[ep(e),Jd(e)]));function np(e){return"symbol"==typeof e||ns(e)&&"[object Symbol]"==ha(e)}function op(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}var rp=ua?ua.prototype:void 0,lp=rp?rp.toString:void 0;function ip(e){if("string"==typeof e)return e;if(Ya(e))return op(e,ip)+"";if(np(e))return lp?lp.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var ap=/\s/;var sp=/^\s+/;function up(e){return e&&e.slice(0,function(e){for(var t=e.length;t--&&ap.test(e.charAt(t)););return t}(e)+1).replace(sp,"")}var cp=/^[-+]0x[0-9a-f]+$/i,dp=/^0b[01]+$/i,pp=/^0o[0-7]+$/i,fp=parseInt;function vp(e){if("number"==typeof e)return e;if(np(e))return NaN;if(ga(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ga(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=up(e);var n=dp.test(e);return n||pp.test(e)?fp(e.slice(2),n?2:8):cp.test(e)?NaN:+e}var mp=1/0;function hp(e){var t=function(e){return e?(e=vp(e))===mp||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),n=t%1;return t==t?n?t-n:t:0}function gp(e){return e}var yp=Object.create,bp=function(){function e(){}return function(t){if(!ga(t))return{};if(yp)return yp(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var wp=Date.now;function xp(e){return function(){return e}}var $p=function(){try{var e=Aa(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Cp=$p?function(e,t){return $p(e,"toString",{configurable:!0,enumerable:!1,value:xp(t),writable:!0})}:gp,Sp=function(e){var t=0,n=0;return function(){var o=wp(),r=16-(o-n);if(n=o,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Cp);function Op(e,t,n,o){for(var r=e.length,l=n+-1;++l<r;)if(t(e[l],l,e))return l;return-1}function kp(e){return e!=e}function Pp(e,t){return!!(null==e?0:e.length)&&function(e,t,n){return t==t?function(e,t,n){for(var o=n-1,r=e.length;++o<r;)if(e[o]===t)return o;return-1}(e,t,n):Op(e,kp,n)}(e,t,0)>-1}function Ip(e,t,n){"__proto__"==t&&$p?$p(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Ep=Object.prototype.hasOwnProperty;function jp(e,t,n){var o=e[t];(!Ep.call(e,t)||!na(o,n)||void 0===n&&!(t in e))&&Ip(e,t,n)}function Ap(e,t,n,o){var r=!n;n||(n={});for(var l=-1,i=t.length;++l<i;){var a=t[l],s=void 0;void 0===s&&(s=e[a]),r?Ip(n,a,s):jp(n,a,s)}return n}var Mp=Math.max;function Tp(e,t,n){return t=Mp(void 0===t?e.length-1:t,0),function(){for(var o=arguments,r=-1,l=Mp(o.length-t,0),i=Array(l);++r<l;)i[r]=o[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=o[r];return a[t]=n(i),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,a)}}var zp=Object.prototype.hasOwnProperty;function Dp(e){if(!ga(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ks(e),n=[];for(var o in e)"constructor"==o&&(t||!zp.call(e,o))||n.push(o);return n}function Rp(e){return As(e)?Ss(e,!0):Dp(e)}var Bp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Np=/^\w*$/;function Hp(e,t){if(Ya(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!np(e))||(Np.test(e)||!Bp.test(e)||null!=t&&e in Object(t))}function Fp(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],l=n.cache;if(l.has(r))return l.get(r);var i=e.apply(this,o);return n.cache=l.set(r,i)||l,i};return n.cache=new(Fp.Cache||Na),n}Fp.Cache=Na;var Lp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_p=/\\(\\)?/g,Wp=function(e){var t=Fp(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Lp,(function(e,n,o,r){t.push(o?r.replace(_p,"$1"):n||e)})),t}));function Vp(e,t){return Ya(e)?e:Hp(e,t)?[e]:Wp(function(e){return null==e?"":ip(e)}(e))}function Xp(e){if("string"==typeof e||np(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Kp(e,t){for(var n=0,o=(t=Vp(t,e)).length;null!=e&&n<o;)e=e[Xp(t[n++])];return n&&n==o?e:void 0}var qp=ua?ua.isConcatSpreadable:void 0;function Gp(e){return Ya(e)||as(e)||!!(qp&&e&&e[qp])}function Up(e){return(null==e?0:e.length)?function(e,t,n,o,r){var l=-1,i=e.length;for(n||(n=Gp),r||(r=[]);++l<i;){var a=e[l];n(a)?Ua(r,a):r[r.length]=a}return r}(e):[]}var Yp=Ps(Object.getPrototypeOf,Object),Zp=Function.prototype,Qp=Object.prototype,Jp=Zp.toString,ef=Qp.hasOwnProperty,tf=Jp.call(Object);function nf(e){if(!ns(e)||"[object Object]"!=ha(e))return!1;var t=Yp(e);if(null===t)return!0;var n=ef.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Jp.call(n)==tf}var of="object"==typeof exports&&exports&&!exports.nodeType&&exports,rf=of&&"object"==typeof module&&module&&!module.nodeType&&module,lf=rf&&rf.exports===of?sa.Buffer:void 0,af=lf?lf.allocUnsafe:void 0;var sf=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ua(t,ts(e)),e=Yp(e);return t}:Qa;function uf(e){return Za(e,Rp,sf)}var cf=Object.prototype.hasOwnProperty;function df(e){var t=new e.constructor(e.byteLength);return new Va(t).set(new Va(e)),t}var pf=/\w*$/;var ff=ua?ua.prototype:void 0,vf=ff?ff.valueOf:void 0;function mf(e,t,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return df(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var n=t?df(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?df(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,pf.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return function(e){return vf?Object(vf.call(e)):{}}(e)}}var hf=ws&&ws.isMap,gf=hf?hs(hf):function(e){return ns(e)&&"[object Map]"==Us(e)};var yf=ws&&ws.isSet,bf=yf?hs(yf):function(e){return ns(e)&&"[object Set]"==Us(e)},wf="[object Arguments]",xf="[object Function]",$f="[object Object]",Cf={};function Sf(e,t,n,o,r,l){var i,a=1&t,s=2&t,u=4&t;if(n&&(i=r?n(e,o,r,l):n(e)),void 0!==i)return i;if(!ga(e))return e;var c=Ya(e);if(c){if(i=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&cf.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!a)return function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}(e,i)}else{var d=Us(e),p=d==xf||"[object GeneratorFunction]"==d;if(ds(e))return function(e,t){if(t)return e.slice();var n=e.length,o=af?af(n):new e.constructor(n);return e.copy(o),o}(e,a);if(d==$f||d==wf||p&&!r){if(i=s||p?{}:function(e){return"function"!=typeof e.constructor||ks(e)?{}:bp(Yp(e))}(e),!a)return s?function(e,t){return Ap(e,sf(e),t)}(e,function(e,t){return e&&Ap(t,Rp(t),e)}(i,e)):function(e,t){return Ap(e,ts(e),t)}(e,function(e,t){return e&&Ap(t,Ms(t),e)}(i,e))}else{if(!Cf[d])return r?e:{};i=mf(e,d,a)}}l||(l=new Ha);var f=l.get(e);if(f)return f;l.set(e,i),bf(e)?e.forEach((function(o){i.add(Sf(o,t,n,o,e,l))})):gf(e)&&e.forEach((function(o,r){i.set(r,Sf(o,t,n,r,e,l))}));var v=c?void 0:(u?s?uf:Ts:s?Rp:Ms)(e);return function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););}(v||e,(function(o,r){v&&(o=e[r=o]),jp(i,r,Sf(o,t,n,r,e,l))})),i}Cf[wf]=Cf["[object Array]"]=Cf["[object ArrayBuffer]"]=Cf["[object DataView]"]=Cf["[object Boolean]"]=Cf["[object Date]"]=Cf["[object Float32Array]"]=Cf["[object Float64Array]"]=Cf["[object Int8Array]"]=Cf["[object Int16Array]"]=Cf["[object Int32Array]"]=Cf["[object Map]"]=Cf["[object Number]"]=Cf[$f]=Cf["[object RegExp]"]=Cf["[object Set]"]=Cf["[object String]"]=Cf["[object Symbol]"]=Cf["[object Uint8Array]"]=Cf["[object Uint8ClampedArray]"]=Cf["[object Uint16Array]"]=Cf["[object Uint32Array]"]=!0,Cf["[object Error]"]=Cf[xf]=Cf["[object WeakMap]"]=!1;function Of(e){return Sf(e,5)}function kf(e){return e==e&&!ga(e)}function Pf(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function If(e){var t=function(e){for(var t=Ms(e),n=t.length;n--;){var o=t[n],r=e[o];t[n]=[o,r,kf(r)]}return t}(e);return 1==t.length&&t[0][2]?Pf(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,o){var r=n.length,l=r;if(null==e)return!l;for(e=Object(e);r--;){var i=n[r];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++r<l;){var a=(i=n[r])[0],s=e[a],u=i[1];if(i[2]){if(void 0===s&&!(a in e))return!1}else if(!tu(u,s,3,o,new Ha))return!1}return!0}(n,0,t)}}function Ef(e,t){return null!=e&&t in Object(e)}function jf(e,t){return null!=e&&function(e,t,n){for(var o=-1,r=(t=Vp(t,e)).length,l=!1;++o<r;){var i=Xp(t[o]);if(!(l=null!=e&&n(e,i)))break;e=e[i]}return l||++o!=r?l:!!(r=null==e?0:e.length)&&vs(r)&&fs(i,r)&&(Ya(e)||as(e))}(e,t,Ef)}function Af(e,t){return Hp(e)&&kf(t)?Pf(Xp(e),t):function(n){var o=function(e,t,n){var o=null==e?void 0:Kp(e,t);return void 0===o?n:o}(n,e);return void 0===o&&o===t?jf(n,e):tu(t,o,3)}}function Mf(e){return Hp(e)?function(e){return function(t){return null==t?void 0:t[e]}}(Xp(e)):function(e){return function(t){return Kp(t,e)}}(e)}function Tf(e){return"function"==typeof e?e:null==e?gp:"object"==typeof e?Ya(e)?Af(e[0],e[1]):If(e):Mf(e)}function zf(e,t,n,o){for(var r=-1,l=null==e?0:e.length;++r<l;){var i=e[r];t(o,i,n(i),e)}return o}var Df=function(e,t,n){for(var o=-1,r=Object(e),l=n(e),i=l.length;i--;){var a=l[++o];if(!1===t(r[a],a,r))break}return e};var Rf=function(e){return function(t,n){if(null==t)return t;if(!As(t))return e(t,n);for(var o=t.length,r=-1,l=Object(t);++r<o&&!1!==n(l[r],r,l););return t}}((function(e,t){return e&&Df(e,t,Ms)}));function Bf(e,t,n,o){return Rf(e,(function(e,r,l){t(o,e,n(e),l)})),o}var Nf=function(){return sa.Date.now()},Hf=Math.max,Ff=Math.min;function Lf(e,t,n){var o,r,l,i,a,s,u=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=o,l=r;return o=r=void 0,u=t,i=e.apply(l,n)}function v(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-u>=l}function m(){var e=Nf();if(v(e))return h(e);a=setTimeout(m,function(e){var n=t-(e-s);return d?Ff(n,l-(e-u)):n}(e))}function h(e){return a=void 0,p&&o?f(e):(o=r=void 0,i)}function g(){var e=Nf(),n=v(e);if(o=arguments,r=this,s=e,n){if(void 0===a)return function(e){return u=e,a=setTimeout(m,t),c?f(e):i}(s);if(d)return clearTimeout(a),a=setTimeout(m,t),f(s)}return void 0===a&&(a=setTimeout(m,t)),i}return t=vp(t)||0,ga(n)&&(c=!!n.leading,l=(d="maxWait"in n)?Hf(vp(n.maxWait)||0,t):l,p="trailing"in n?!!n.trailing:p),g.cancel=function(){void 0!==a&&clearTimeout(a),u=0,o=s=r=a=void 0},g.flush=function(){return void 0===a?i:h(Nf())},g}var _f=Math.max;var Wf=function(e){return function(t,n,o){var r=Object(t);if(!As(t)){var l=Tf(n);t=Ms(t),n=function(e){return l(r[e],e,r)}}var i=e(t,n,o);return i>-1?r[l?t[i]:i]:void 0}}((function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=null==n?0:hp(n);return r<0&&(r=_f(o+r,0)),Op(e,Tf(t),r)})),Vf=Math.min;function Xf(e){return function(e){return ns(e)&&As(e)}(e)?e:[]}var Kf=function(e,t){return Sp(Tp(e,t,gp),e+"")}((function(e){var t=op(e,Xf);return t.length&&t[0]===e[0]?function(e){for(var t=Pp,n=e[0].length,o=e.length,r=o,l=Array(o),i=1/0,a=[];r--;){var s=e[r];i=Vf(s.length,i),l[r]=n>=120&&s.length>=120?new Fa(r&&s):void 0}s=e[0];var u=-1,c=l[0];e:for(;++u<n&&a.length<i;){var d=s[u],p=d;if(d=0!==d?d:0,!(c?_a(c,p):t(a,p))){for(r=o;--r;){var f=l[r];if(!(f?_a(f,p):t(e[r],p)))continue e}c&&c.push(p),a.push(d)}}return a}(t):[]}));function qf(e,t){return t.length<2?e:Kp(e,function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(r);++o<r;)l[o]=e[o+t];return l}(t,0,-1))}var Gf=Object.prototype.hasOwnProperty;function Uf(e){if(null==e)return!0;if(As(e)&&(Ya(e)||"string"==typeof e||"function"==typeof e.splice||ds(e)||$s(e)||as(e)))return!e.length;var t=Us(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(ks(e))return!js(e).length;for(var n in e)if(Gf.call(e,n))return!1;return!0}function Yf(e,t){return null==(e=qf(e,t=Vp(t,e)))||delete e[Xp(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]}function Zf(e){return nf(e)?void 0:e}var Qf=function(e){return Sp(Tp(e,void 0,Up),e+"")}((function(e,t){var n={};if(null==e)return n;var o=!1;t=op(t,(function(t){return t=Vp(t,e),o||(o=t.length>1),t})),Ap(e,uf(e),n),o&&(n=Sf(n,7,Zf));for(var r=t.length;r--;)Yf(n,t[r]);return n})),Jf=function(e,t){return function(n,o){var r=Ya(n)?zf:Bf,l=t?t():{};return r(n,e,Tf(o),l)}}((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ev=Bs&&1/Ka(new Bs([,-0]))[1]==1/0?function(e){return new Bs(e)}:function(){};function tv(e){return e&&e.length?function(e,t,n){var o=-1,r=Pp,l=e.length,i=!0,a=[],s=a;if(l>=200){var u=ev(e);if(u)return Ka(u);i=!1,r=_a,s=new Fa}else s=a;e:for(;++o<l;){var c=e[o],d=c;if(c=0!==c?c:0,i&&d==d){for(var p=s.length;p--;)if(s[p]===d)continue e;a.push(c)}else r(s,d,n)||(s!==a&&s.push(d),a.push(c))}return a}(e):[]}const nv=_d(null),ov=(e,t)=>{const o=nv.useInject(),r=n((()=>{if(!o||Uf(o))return"";const{compactDirection:n,isFirstItem:r,isLastItem:l}=o,i="vertical"===n?"-vertical-":"-";return Ge({[`${e.value}-compact${i}item`]:!0,[`${e.value}-compact${i}first-item`]:r,[`${e.value}-compact${i}last-item`]:l,[`${e.value}-compact${i}item-rtl`]:"rtl"===t.value})}));return{compactSize:n((()=>null==o?void 0:o.compactSize)),compactDirection:n((()=>null==o?void 0:o.compactDirection)),compactItemClassnames:r}},rv=l({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return nv.useProvide(null),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),lv=l({name:"CompactItem",props:{compactSize:String,compactDirection:Dl.oneOf(oe("horizontal","vertical")).def("horizontal"),isFirstItem:ae(),isLastItem:ae()},setup(e,t){let{slots:n}=t;return nv.useProvide(e),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});l({name:"ASpaceCompact",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},direction:Dl.oneOf(oe("horizontal","vertical")).def("horizontal"),align:Dl.oneOf(oe("start","end","center","baseline")),block:{type:Boolean,default:void 0}},setup(e,t){let{attrs:o,slots:r}=t;const{prefixCls:l,direction:i}=el("space-compact",e),a=nv.useInject(),[s,u]=tp(l),c=n((()=>Ge(l.value,u.value,{[`${l.value}-rtl`]:"rtl"===i.value,[`${l.value}-block`]:e.block,[`${l.value}-vertical`]:"vertical"===e.direction})));return()=>{var t;const n=wt((null===(t=r.default)||void 0===t?void 0:t.call(r))||[]);return 0===n.length?null:s($("div",Te(Te({},o),{},{class:[c.value,o.class]}),[n.map(((t,o)=>{var r;const i=t&&t.key||`${l.value}-item-${o}`,s=!a||Uf(a);return $(lv,{key:i,compactSize:null!==(r=e.size)&&void 0!==r?r:"middle",compactDirection:e.direction,isFirstItem:0===o&&(s||(null==a?void 0:a.isFirstItem)),isLastItem:o===n.length-1&&(s||(null==a?void 0:a.isLastItem))},{default:()=>[t]})}))]))}}});const iv=e=>({animationDuration:e,animationFillMode:"both"}),av=e=>({animationDuration:e,animationFillMode:"both"}),sv=function(e,t,n,o){const r=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${r}${e}-enter,\n ${r}${e}-appear\n `]:ze(ze({},iv(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:ze(ze({},av(o)),{animationPlayState:"paused"}),[`\n ${r}${e}-enter${e}-enter-active,\n ${r}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${r}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},uv=new Eo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),cv=new Eo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),dv=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[sv(o,uv,cv,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},pv=new Eo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fv=new Eo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),vv=new Eo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),mv=new Eo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),hv=new Eo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),gv=new Eo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),yv={"move-up":{inKeyframes:new Eo("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new Eo("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:pv,outKeyframes:fv},"move-left":{inKeyframes:vv,outKeyframes:mv},"move-right":{inKeyframes:hv,outKeyframes:gv}},bv=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:l}=yv[t];return[sv(o,r,l,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},wv=new Eo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),xv=new Eo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),$v=new Eo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Cv=new Eo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Sv=new Eo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Ov=new Eo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),kv=new Eo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Pv=new Eo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Iv={"slide-up":{inKeyframes:wv,outKeyframes:xv},"slide-down":{inKeyframes:$v,outKeyframes:Cv},"slide-left":{inKeyframes:Sv,outKeyframes:Ov},"slide-right":{inKeyframes:kv,outKeyframes:Pv}},Ev=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:l}=Iv[t];return[sv(o,r,l,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},jv=new Eo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Av=new Eo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Mv=new Eo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Tv=new Eo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),zv=new Eo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Dv=new Eo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Rv=new Eo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Bv=new Eo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Nv=new Eo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Hv=new Eo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Fv=new Eo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Lv=new Eo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),_v={zoom:{inKeyframes:jv,outKeyframes:Av},"zoom-big":{inKeyframes:Mv,outKeyframes:Tv},"zoom-big-fast":{inKeyframes:Mv,outKeyframes:Tv},"zoom-left":{inKeyframes:Rv,outKeyframes:Bv},"zoom-right":{inKeyframes:Nv,outKeyframes:Hv},"zoom-up":{inKeyframes:zv,outKeyframes:Dv},"zoom-down":{inKeyframes:Fv,outKeyframes:Lv}},Wv=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:l}=_v[t];return[sv(o,r,l,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Vv=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Xv=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},Kv=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`;return[{[`${n}-dropdown`]:ze(ze({},Pr(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft\n `]:{animationName:wv},[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft\n `]:{animationName:$v},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:xv},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Cv},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${o}-empty`]:ze(ze({},Xv(e)),{color:e.colorTextDisabled}),[`${o}`]:ze(ze({},Xv(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":ze({flex:"auto"},kr),"&-state":{flex:"none"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${o}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},Ev(e,"slide-up"),Ev(e,"slide-down"),bv(e,"move-up"),bv(e,"move-down")]};function qv(e){let{controlHeightSM:t,controlHeight:n,lineWidth:o}=e;const r=(n-t)/2-o;return[r,Math.ceil(r/2)]}function Gv(e,t){const{componentCls:n,iconCls:o}=e,r=`${n}-selection-overflow`,l=e.controlHeightSM,[i]=qv(e),a=t?`${n}-${t}`:"";return{[`${n}-multiple${a}`]:{fontSize:e.fontSize,[r]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:i-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${l}px`,content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:l,marginTop:2,marginBottom:2,lineHeight:l-2*e.lineWidth+"px",background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":ze(ze({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,"\n &-input,\n &-mirror\n ":{height:l,fontFamily:e.fontFamily,lineHeight:`${l}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function Uv(e){const{componentCls:t}=e,n=Dr(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,o]=qv(e);return[Gv(e),Gv(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"},[`${t}-selection-search`]:{marginInlineStart:o}}},Gv(Dr(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function Yv(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,l=e.controlHeight-2*e.lineWidth,i=Math.ceil(1.25*e.fontSize),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,[`${n}-selector`]:ze(ze({},Pr(e)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${l}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${l}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${o}px`,[`${n}-selection-search-input`]:{height:l},"&:after":{lineHeight:`${l}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${o}px`,"&:after":{display:"none"}}}}}}}function Zv(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[Yv(e),Yv(Dr(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},Yv(Dr(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function Qv(e,t,n){const{focusElCls:o,focus:r,borderElCls:l}=n,i=l?"> *":"",a=["hover",r?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${i}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":ze(ze({[a]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function Jv(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function em(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:ze(ze({},Qv(e,o,t)),Jv(n,o,t))}}const tm=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},nm=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{componentCls:o,borderHoverColor:r,outlineColor:l,antCls:i}=t,a=n?{[`${o}-selector`]:{borderColor:r}}:{};return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${i}-pagination-size-changer)`]:ze(ze({},a),{[`${o}-focused& ${o}-selector`]:{borderColor:r,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${l}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${o}-selector`]:{borderColor:r,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},om=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},rm=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[t]:ze(ze({},Pr(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:ze(ze({},tm(e)),om(e)),[`${t}-selection-item`]:ze({flex:1,fontWeight:"normal"},kr),[`${t}-selection-placeholder`]:ze(ze({},kr),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:ze(ze({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},lm=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},rm(e),Zv(e),Uv(e),Kv(e),{[`${t}-rtl`]:{direction:"rtl"}},nm(t,Dr(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),nm(`${t}-status-error`,Dr(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),nm(`${t}-status-warning`,Dr(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),em(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},im=Mr("Select",((e,t)=>{let{rootPrefixCls:n}=t;const o=Dr(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[lm(o)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50})));var am={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}},{tag:"path",attrs:{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"}}]},name:"check-circle",theme:"outlined"};function sm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){um(e,t,n[t])}))}return e}function um(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cm=function(e,t){var n=sm({},e,t.attrs);return $(yd,sm({},n,{icon:am}),null)};cm.displayName="CheckCircleOutlined",cm.inheritAttrs=!1;var dm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}},{tag:"path",attrs:{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"}}]},name:"exclamation-circle",theme:"outlined"};function pm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){fm(e,t,n[t])}))}return e}function fm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vm=function(e,t){var n=pm({},e,t.attrs);return $(yd,pm({},n,{icon:dm}),null)};vm.displayName="ExclamationCircleOutlined",vm.inheritAttrs=!1;var mm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}},{tag:"path",attrs:{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"}}]},name:"info-circle",theme:"outlined"};function hm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){gm(e,t,n[t])}))}return e}function gm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ym=function(e,t){var n=hm({},e,t.attrs);return $(yd,hm({},n,{icon:mm}),null)};ym.displayName="InfoCircleOutlined",ym.inheritAttrs=!1;var bm={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};function wm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){xm(e,t,n[t])}))}return e}function xm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $m=function(e,t){var n=wm({},e,t.attrs);return $(yd,wm({},n,{icon:bm}),null)};$m.displayName="CloseCircleOutlined",$m.inheritAttrs=!1;var Cm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}}]},name:"check-circle",theme:"filled"};function Sm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Om(e,t,n[t])}))}return e}function Om(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var km=function(e,t){var n=Sm({},e,t.attrs);return $(yd,Sm({},n,{icon:Cm}),null)};km.displayName="CheckCircleFilled",km.inheritAttrs=!1;var Pm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}}]},name:"exclamation-circle",theme:"filled"};function Im(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Em(e,t,n[t])}))}return e}function Em(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jm=function(e,t){var n=Im({},e,t.attrs);return $(yd,Im({},n,{icon:Pm}),null)};jm.displayName="ExclamationCircleFilled",jm.inheritAttrs=!1;var Am={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}}]},name:"info-circle",theme:"filled"};function Mm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Tm(e,t,n[t])}))}return e}function Tm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zm=function(e,t){var n=Mm({},e,t.attrs);return $(yd,Mm({},n,{icon:Am}),null)};zm.displayName="InfoCircleFilled",zm.inheritAttrs=!1;const Dm=["xxxl","xxl","xl","lg","md","sm","xs"];function Rm(){const[,e]=_r();return n((()=>{const t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`{min-width: ${e.screenXXXL}px}`}))(e.value),n=new Map;let o=-1,r={};return{matchHandlers:{},dispatch:e=>(r=e,n.forEach((e=>e(r))),n.size>=1),subscribe(e){return n.size||this.register(),o+=1,n.set(o,e),e(r),o},unsubscribe(e){n.delete(e),n.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],o=this.matchHandlers[n];null==o||o.mql.removeListener(null==o?void 0:o.listener)})),n.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(ze(ze({},r),{[e]:n}))},l=window.matchMedia(n);l.addListener(o),this.matchHandlers[n]={mql:l,listener:o},o(l)}))},responsiveMap:t}}))}const Bm=e=>{const{antCls:t,componentCls:n,iconCls:o,avatarBg:r,avatarColor:l,containerSize:i,containerSizeLG:a,containerSizeSM:s,textFontSize:u,textFontSizeLG:c,textFontSizeSM:d,borderRadius:p,borderRadiusLG:f,borderRadiusSM:v,lineWidth:m,lineType:h}=e,g=(e,t,r)=>({width:e,height:e,lineHeight:e-2*m+"px",borderRadius:"50%",[`&${n}-square`]:{borderRadius:r},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:t,[`> ${o}`]:{margin:0}}});return{[n]:ze(ze(ze(ze({},Pr(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:l,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${m}px ${h} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),g(i,u,p)),{"&-lg":ze({},g(a,c,f)),"&-sm":ze({},g(s,d,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Nm=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:o,groupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:o}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:r}}}},Hm=Mr("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=Dr(e,{avatarBg:n,avatarColor:t});return[Bm(o),Nm(o)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:o,fontSize:r,fontSizeLG:l,fontSizeXL:i,fontSizeHeading3:a,marginXS:s,marginXXS:u,colorBorderBg:c}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:o,textFontSize:Math.round((l+i)/2),textFontSizeLG:a,textFontSizeSM:r,groupSpace:u,groupOverlapping:-s,groupBorderColor:c}})),Fm=Symbol("AvatarContextKey"),Lm=l({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:{prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:Dl.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}},slots:Object,setup(e,t){let{slots:r,attrs:l}=t;const a=s(!0),u=s(!1),c=s(1),d=s(null),p=s(null),{prefixCls:f}=el("avatar",e),[v,m]=Hm(f),g=o(Fm,{}),b=n((()=>"default"===e.size?g.size:e.size)),x=function(){const e=s({});let t=null;const n=Rm();return h((()=>{t=n.value.subscribe((t=>{e.value=t}))})),y((()=>{n.value.unsubscribe(t)})),e}(),C=function(e){const t=s();return w((()=>{t.value=e()}),{flush:"sync"}),t}((()=>{if("object"!=typeof e.size)return;const t=Dm.find((e=>x.value[e]));return e.size[t]})),S=e=>C.value?{width:`${C.value}px`,height:`${C.value}px`,lineHeight:`${C.value}px`,fontSize:(e?C.value/2:18)+"px"}:{},O=()=>{if(!d.value||!p.value)return;const t=d.value.offsetWidth,n=p.value.offsetWidth;if(0!==t&&0!==n){const{gap:o=4}=e;2*o<n&&(c.value=n-2*o<t?(n-2*o)/t:1)}},k=()=>{const{loadError:t}=e;!1!==(null==t?void 0:t())&&(a.value=!1)};return i((()=>e.src),(()=>{I((()=>{a.value=!0,c.value=1}))})),i((()=>e.gap),(()=>{I((()=>{O()}))})),h((()=>{I((()=>{O(),u.value=!0}))})),()=>{var t,n;const{shape:o,src:i,alt:s,srcset:h,draggable:y,crossOrigin:w}=e,x=null!==(t=g.shape)&&void 0!==t?t:o,C=It(r,e,"icon"),P=f.value,I={[`${l.class}`]:!!l.class,[P]:!0,[`${P}-lg`]:"large"===b.value,[`${P}-sm`]:"small"===b.value,[`${P}-${x}`]:!0,[`${P}-image`]:i&&a.value,[`${P}-icon`]:C,[m.value]:!0},E="number"==typeof b.value?{width:`${b.value}px`,height:`${b.value}px`,lineHeight:`${b.value}px`,fontSize:C?b.value/2+"px":"18px"}:{},j=null===(n=r.default)||void 0===n?void 0:n.call(r);let A;if(i&&a.value)A=$("img",{draggable:y,src:i,srcset:h,onError:k,alt:s,crossorigin:w},null);else if(C)A=C;else if(u.value||1!==c.value){const e=`scale(${c.value}) translateX(-50%)`,t={msTransform:e,WebkitTransform:e,transform:e},n="number"==typeof b.value?{lineHeight:`${b.value}px`}:{};A=$(Et,{onResize:O},{default:()=>[$("span",{class:`${P}-string`,ref:d,style:ze(ze({},n),t)},[j])]})}else A=$("span",{class:`${P}-string`,ref:d,style:{opacity:0}},[j]);return v($("span",Te(Te({},l),{},{ref:p,class:I,style:[E,S(!!C),l.style]}),[A]))}}}),_m={adjustX:1,adjustY:1},Wm=[0,0],Vm={left:{points:["cr","cl"],overflow:_m,offset:[-4,0],targetOffset:Wm},right:{points:["cl","cr"],overflow:_m,offset:[4,0],targetOffset:Wm},top:{points:["bc","tc"],overflow:_m,offset:[0,-4],targetOffset:Wm},bottom:{points:["tc","bc"],overflow:_m,offset:[0,4],targetOffset:Wm},topLeft:{points:["bl","tl"],overflow:_m,offset:[0,-4],targetOffset:Wm},leftTop:{points:["tr","tl"],overflow:_m,offset:[-4,0],targetOffset:Wm},topRight:{points:["br","tr"],overflow:_m,offset:[0,-4],targetOffset:Wm},rightTop:{points:["tl","tr"],overflow:_m,offset:[4,0],targetOffset:Wm},bottomRight:{points:["tr","br"],overflow:_m,offset:[0,4],targetOffset:Wm},rightBottom:{points:["bl","br"],overflow:_m,offset:[4,0],targetOffset:Wm},bottomLeft:{points:["tl","bl"],overflow:_m,offset:[0,4],targetOffset:Wm},leftBottom:{points:["br","bl"],overflow:_m,offset:[-4,0],targetOffset:Wm}},Xm={prefixCls:String,id:String,overlayInnerStyle:Dl.any},Km=l({compatConfig:{MODE:3},name:"TooltipContent",props:Xm,setup(e,t){let{slots:n}=t;return()=>{var t;return $("div",{class:`${e.prefixCls}-inner`,id:e.id,role:"tooltip",style:e.overlayInnerStyle},[null===(t=n.overlay)||void 0===t?void 0:t.call(n)])}}});function qm(){}const Gm=l({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:Dl.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:Dl.string.def("right"),transitionName:String,animation:Dl.any,afterVisibleChange:Dl.func.def((()=>{})),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:Dl.string.def("rc-tooltip"),mouseEnterDelay:Dl.number.def(.1),mouseLeaveDelay:Dl.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:Dl.object.def((()=>({}))),arrowContent:Dl.any.def(null),tipId:String,builtinPlacements:Dl.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function,arrow:{type:Boolean,default:!0}},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=s(),i=()=>{const{prefixCls:t,tipId:o,overlayInnerStyle:r}=e;return[e.arrow?$("div",{class:`${t}-arrow`,key:"arrow"},[It(n,e,"arrowContent")]):null,$(Km,{key:"content",prefixCls:t,id:o,overlayInnerStyle:r},{overlay:n.overlay})]};r({getPopupDomNode:()=>l.value.getPopupDomNode(),triggerDOM:l,forcePopupAlign:()=>{var e;return null===(e=l.value)||void 0===e?void 0:e.forcePopupAlign()}});const a=s(!1),u=s(!1);return w((()=>{const{destroyTooltipOnHide:t}=e;if("boolean"==typeof t)a.value=t;else if(t&&"object"==typeof t){const{keepParent:e}=t;a.value=!0===e,u.value=!1===e}})),()=>{const{overlayClassName:t,trigger:r,mouseEnterDelay:s,mouseLeaveDelay:c,overlayStyle:d,prefixCls:p,afterVisibleChange:f,transitionName:v,animation:m,placement:h,align:g,destroyTooltipOnHide:y,defaultVisible:b}=e,w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),x=ze({},w);void 0!==e.visible&&(x.popupVisible=e.visible);const C=ze(ze(ze({popupClassName:t,prefixCls:p,action:r,builtinPlacements:Vm,popupPlacement:h,popupAlign:g,afterPopupVisibleChange:f,popupTransitionName:v,popupAnimation:m,defaultPopupVisible:b,destroyPopupOnHide:a.value,autoDestroy:u.value,mouseLeaveDelay:c,popupStyle:d,mouseEnterDelay:s},x),o),{onPopupVisibleChange:e.onVisibleChange||qm,onPopupAlign:e.onPopupAlign||qm,ref:l,arrow:!!e.arrow,popup:i()});return $(Iu,C,{default:n.default})}}}),Um=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:ie(),overlayInnerStyle:ie(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},arrow:{type:[Boolean,Object],default:!0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:ie(),builtinPlacements:ie(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),Ym={adjustX:1,adjustY:1},Zm={adjustX:0,adjustY:0},Qm=[0,0];function Jm(e){return"boolean"==typeof e?e?Ym:Zm:ze(ze({},Zm),e)}function eh(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:r,arrowPointAtCenter:l}=e,i={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(n+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+t)]},topRight:{points:["br","tc"],offset:[n+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+t)]},bottomRight:{points:["tr","bc"],offset:[n+t,4]},rightBottom:{points:["bl","cr"],offset:[4,o+t]},bottomLeft:{points:["tl","bc"],offset:[-(n+t),4]},leftBottom:{points:["br","cl"],offset:[-4,o+t]}};return Object.keys(i).forEach((e=>{i[e]=l?ze(ze({},i[e]),{overflow:Jm(r),targetOffset:Qm}):ze(ze({},Vm[e]),{overflow:Jm(r)}),i[e].ignoreShake=!0})),i}const th=Ao.map((e=>`${e}-inverse`));function nh(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?Ao.includes(e):[...th,...Ao].includes(e)}(t),o=Ge({[`${e}-${t}`]:t&&n}),r={},l={};return t&&!n&&(r.background=t,l["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:l}}function oh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.map((e=>`${t}${e}`)).join(",")}function rh(e){const{sizePopupArrow:t,contentRadius:n,borderRadiusOuter:o,limitVerticalRadius:r}=e,l=t/2-Math.ceil(o*(Math.sqrt(2)-1)),i=(n>12?n+2:12)-l;return{dropdownArrowOffset:i,dropdownArrowOffsetVertical:r?8-l:i}}function lh(e,t){const{componentCls:n,sizePopupArrow:o,marginXXS:r,borderRadiusXS:l,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,showArrowCls:u,contentRadius:c=e.borderRadiusLG,limitVerticalRadius:d}=t,{dropdownArrowOffsetVertical:p,dropdownArrowOffset:f}=rh({sizePopupArrow:o,contentRadius:c,borderRadiusOuter:i,limitVerticalRadius:d}),v=o/2+r;return{[n]:{[`${n}-arrow`]:[ze(ze({position:"absolute",zIndex:1,display:"block"},Sr(o,l,i,s,a)),{"&:before":{background:s}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:p},[`&-placement-leftBottom ${n}-arrow`]:{bottom:p},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:p},[`&-placement-rightBottom ${n}-arrow`]:{bottom:p},[oh(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map((e=>e+":not(&-arrow-hidden)")),u)]:{paddingBottom:v},[oh(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map((e=>e+":not(&-arrow-hidden)")),u)]:{paddingTop:v},[oh(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map((e=>e+":not(&-arrow-hidden)")),u)]:{paddingRight:{_skip_check_:!0,value:v}},[oh(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map((e=>e+":not(&-arrow-hidden)")),u)]:{paddingLeft:{_skip_check_:!0,value:v}}}}}const ih=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:l,zIndexPopup:i,controlHeight:a,boxShadowSecondary:s,paddingSM:u,paddingXS:c,tooltipRadiusOuter:d}=e;return[{[t]:ze(ze(ze(ze({},Pr(e)),{position:"absolute",zIndex:i,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:a,minHeight:a,padding:`${u/2}px ${c}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:l,boxShadow:s},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(l,8)}},[`${t}-content`]:{position:"relative"}}),Or(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},lh(Dr(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:l,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]},ah=l({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:yt(ze(ze({},Um()),{title:Dl.any}),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(e,t){let{slots:o,emit:r,attrs:l,expose:a}=t;const{prefixCls:s,getPopupContainer:u,direction:d,rootPrefixCls:p}=el("tooltip",e),f=n((()=>{var t;return null!==(t=e.open)&&void 0!==t?t:e.visible})),v=b(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let t=0,n=e.length;t<n;t++)if(void 0!==e[t])return e[t]}([e.open,e.visible])),m=b();let h;i(f,(e=>{Dt.cancel(h),h=Dt((()=>{v.value=!!e}))}));const g=()=>{var t;const n=null!==(t=e.title)&&void 0!==t?t:o.title;return!n&&0!==n},y=e=>{const t=g();void 0===f.value&&(v.value=!t&&e),t||(r("update:visible",e),r("visibleChange",e),r("update:open",e),r("openChange",e))};a({getPopupDomNode:()=>m.value.getPopupDomNode(),open:v,forcePopupAlign:()=>{var e;return null===(e=m.value)||void 0===e?void 0:e.forcePopupAlign()}});const w=n((()=>{var t;const{builtinPlacements:n,autoAdjustOverflow:o,arrow:r,arrowPointAtCenter:l}=e;let i=l;return"object"==typeof r&&(i=null!==(t=r.pointAtCenter)&&void 0!==t?t:l),n||eh({arrowPointAtCenter:i,autoAdjustOverflow:o})})),x=e=>e||""===e,C=e=>{const t=e.type;if("object"==typeof t&&e.props&&((!0===t.__ANT_BUTTON||"button"===t)&&x(e.props.disabled)||!0===t.__ANT_SWITCH&&(x(e.props.disabled)||x(e.props.loading))||!0===t.__ANT_RADIO&&x(e.props.disabled))){const{picked:t,omitted:n}=((e,t)=>{const n={},o=ze({},e);return t.forEach((t=>{e&&t in e&&(n[t]=e[t],delete o[t])})),{picked:n,omitted:o}})(St(e),["position","left","right","top","bottom","float","display","zIndex"]),o=ze(ze({display:"inline-block"},t),{cursor:"not-allowed",lineHeight:1,width:e.props&&e.props.block?"100%":void 0}),r=Ji(e,{style:ze(ze({},n),{pointerEvents:"none"})},!0);return $("span",{style:o,class:`${s.value}-disabled-compatible-wrapper`},[r])}return e},S=()=>{var t,n;return null!==(t=e.title)&&void 0!==t?t:null===(n=o.title)||void 0===n?void 0:n.call(o)},O=(e,t)=>{const n=w.value,o=Object.keys(n).find((e=>{var o,r;return n[e].points[0]===(null===(o=t.points)||void 0===o?void 0:o[0])&&n[e].points[1]===(null===(r=t.points)||void 0===r?void 0:r[1])}));if(o){const n=e.getBoundingClientRect(),r={top:"50%",left:"50%"};o.indexOf("top")>=0||o.indexOf("Bottom")>=0?r.top=n.height-t.offset[1]+"px":(o.indexOf("Top")>=0||o.indexOf("bottom")>=0)&&(r.top=-t.offset[1]+"px"),o.indexOf("left")>=0||o.indexOf("Right")>=0?r.left=n.width-t.offset[0]+"px":(o.indexOf("right")>=0||o.indexOf("Left")>=0)&&(r.left=-t.offset[0]+"px"),e.style.transformOrigin=`${r.left} ${r.top}`}},k=n((()=>nh(s.value,e.color))),P=n((()=>l["data-popover-inject"])),[I,E]=((e,t)=>Mr("Tooltip",(e=>{if(!1===(null==t?void 0:t.value))return[];const{borderRadius:n,colorTextLightSolid:o,colorBgDefault:r,borderRadiusOuter:l}=e,i=Dr(e,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:n,tooltipBg:r,tooltipRadiusOuter:l>4?4:l});return[ih(i),Wv(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}))(e))(s,n((()=>!P.value)));return()=>{var t,n;const{openClassName:r,overlayClassName:i,overlayStyle:a,overlayInnerStyle:h}=e;let b=null!==(n=kt(null===(t=o.default)||void 0===t?void 0:t.call(o)))&&void 0!==n?n:null;b=1===b.length?b[0]:b;let x=v.value;if(void 0===f.value&&g()&&(x=!1),!b)return null;const P=C(Pt(b)&&!function(e){return 1===e.length&&e[0].type===c}(b)?b:$("span",null,[b])),j=Ge({[r||`${s.value}-open`]:!0,[P.props&&P.props.class]:P.props&&P.props.class}),A=Ge(i,{[`${s.value}-rtl`]:"rtl"===d.value},k.value.className,E.value),M=ze(ze({},k.value.overlayStyle),h),T=k.value.arrowStyle,z=ze(ze(ze({},l),e),{prefixCls:s.value,arrow:!!e.arrow,getPopupContainer:null==u?void 0:u.value,builtinPlacements:w.value,visible:x,ref:m,overlayClassName:A,overlayStyle:ze(ze({},T),a),overlayInnerStyle:M,onVisibleChange:y,onPopupAlign:O,transitionName:cu(p.value,"zoom-big-fast",e.transitionName)});return I($(Gm,z,{default:()=>[v.value?Ji(P,{class:j}):P],arrowContent:()=>$("span",{class:`${s.value}-arrow-content`},null),overlay:S}))}}}),sh=re(ah),uh=e=>{const{componentCls:t,popoverBg:n,popoverColor:o,width:r,fontWeightStrong:l,popoverPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:u,zIndexPopup:c,marginXS:d,colorBgElevated:p}=e;return[{[t]:ze(ze({},Pr(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":p,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:u,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:l},[`${t}-inner-content`]:{color:o}})},lh(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",[`${t}-content`]:{display:"inline-block"}}}]},ch=e=>{const{componentCls:t}=e;return{[t]:Ao.map((n=>{const o=e[`${n}-6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}},dh=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:r,paddingSM:l,controlHeight:i,fontSize:a,lineHeight:s,padding:u}=e,c=i-Math.round(a*s),d=c/2,p=c/2-n,f=u;return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${f}px ${p}px`,borderBottom:`${n}px ${o} ${r}`},[`${t}-inner-content`]:{padding:`${l}px ${f}px`}}}},ph=Mr("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,r=Dr(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[uh(r),ch(r),o&&dh(r),Wv(r,"zoom-big")]}),(e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}})),fh=l({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:yt(ze(ze({},Um()),{content:ue(),title:ue()}),ze(ze({},{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(e,t){let{expose:o,slots:r,attrs:l}=t;const i=b();bn(void 0===e.visible),o({getPopupDomNode:()=>{var e,t;return null===(t=null===(e=i.value)||void 0===e?void 0:e.getPopupDomNode)||void 0===t?void 0:t.call(e)}});const{prefixCls:a,configProvider:s}=el("popover",e),[u,d]=ph(a),p=n((()=>s.getPrefixCls())),f=()=>{var t,n;const{title:o=kt(null===(t=r.title)||void 0===t?void 0:t.call(r)),content:l=kt(null===(n=r.content)||void 0===n?void 0:n.call(r))}=e,i=!!(Array.isArray(o)?o.length:o),s=!!(Array.isArray(l)?l.length:o);return i||s?$(c,null,[i&&$("div",{class:`${a.value}-title`},[o]),$("div",{class:`${a.value}-inner-content`},[l])]):null};return()=>{const t=Ge(e.overlayClassName,d.value);return u($(sh,Te(Te(Te({},tl(e,["title","content"])),l),{},{prefixCls:a.value,ref:i,overlayClassName:t,transitionName:cu(p.value,"zoom-big",e.transitionName),"data-popover-inject":!0}),{title:f,default:r.default}))}}}),vh=re(fh),mh=l({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:{prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}},setup(e,t){let{slots:o,attrs:l}=t;const{prefixCls:i,direction:a}=el("avatar",e),s=n((()=>`${i.value}-group`)),[u,c]=Hm(i);return w((()=>{(e=>{r(Fm,e)})({size:e.size,shape:e.shape})})),()=>{const{maxPopoverPlacement:t="top",maxCount:n,maxStyle:r,maxPopoverTrigger:i="hover",shape:d}=e,p={[s.value]:!0,[`${s.value}-rtl`]:"rtl"===a.value,[`${l.class}`]:!!l.class,[c.value]:!0},f=It(o,e),v=wt(f).map(((e,t)=>Ji(e,{key:`avatar-key-${t}`}))),m=v.length;if(n&&n<m){const e=v.slice(0,n),o=v.slice(n,m);return e.push($(vh,{key:"avatar-popover-key",content:o,trigger:i,placement:t,overlayClassName:`${s.value}-popover`},{default:()=>[$(Lm,{style:r,shape:d},{default:()=>["+"+(m-n)]})]})),u($("div",Te(Te({},l),{},{class:p,style:l.style}),[e]))}return u($("div",Te(Te({},l),{},{class:p,style:l.style}),[v]))}}});Lm.Group=mh,Lm.install=function(e){return e.component(Lm.name,Lm),e.component(mh.name,mh),e};const hh={adjustX:1,adjustY:1},gh=[0,0],yh={topLeft:{points:["bl","tl"],overflow:hh,offset:[0,-4],targetOffset:gh},topCenter:{points:["bc","tc"],overflow:hh,offset:[0,-4],targetOffset:gh},topRight:{points:["br","tr"],overflow:hh,offset:[0,-4],targetOffset:gh},bottomLeft:{points:["tl","bl"],overflow:hh,offset:[0,4],targetOffset:gh},bottomCenter:{points:["tc","bc"],overflow:hh,offset:[0,4],targetOffset:gh},bottomRight:{points:["tr","br"],overflow:hh,offset:[0,4],targetOffset:gh}};const bh=l({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:Dl.string.def("rc-dropdown"),transitionName:String,overlayClassName:Dl.string.def(""),openClassName:String,animation:Dl.any,align:Dl.object,overlayStyle:{type:Object,default:void 0},placement:Dl.string.def("bottomLeft"),overlay:Dl.any,trigger:Dl.oneOfType([Dl.string,Dl.arrayOf(Dl.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:Dl.array,hideAction:Dl.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:Dl.number.def(.15),mouseLeaveDelay:Dl.number.def(.1)},emits:["visibleChange","overlayClick"],setup(e,t){let{slots:o,emit:r,expose:l}=t;const a=b(!!e.visible);i((()=>e.visible),(e=>{void 0!==e&&(a.value=e)}));const s=b();l({triggerRef:s});const u=t=>{void 0===e.visible&&(a.value=!1),r("overlayClick",t)},d=t=>{void 0===e.visible&&(a.value=t),r("visibleChange",t)},p=()=>{var t;const n=null===(t=o.overlay)||void 0===t?void 0:t.call(o),r={prefixCls:`${e.prefixCls}-menu`,onClick:u};return $(c,{key:bt},[e.arrow&&$("div",{class:`${e.prefixCls}-arrow`},null),Ji(n,r,!1)])},f=n((()=>{const{minOverlayWidthMatchTrigger:t=!e.alignPoint}=e;return t})),v=()=>{var t;const n=null===(t=o.default)||void 0===t?void 0:t.call(o);return a.value&&n?Ji(n[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):n},m=n((()=>e.hideAction||-1===e.trigger.indexOf("contextmenu")?e.hideAction:["click"]));return()=>{const{prefixCls:t,arrow:n,showAction:o,overlayStyle:r,trigger:l,placement:i,align:u,getPopupContainer:c,transitionName:h,animation:g,overlayClassName:y}=e,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return $(Iu,Te(Te({},b),{},{prefixCls:t,ref:s,popupClassName:Ge(y,{[`${t}-show-arrow`]:n}),popupStyle:r,builtinPlacements:yh,action:l,showAction:o,hideAction:m.value||[],popupPlacement:i,popupAlign:u,popupTransitionName:h,popupAnimation:g,popupVisible:a.value,stretch:f.value?"minWidth":"",onPopupVisibleChange:d,getPopupContainer:c}),{popup:p,default:v})}}}),wh=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},xh=Mr("Wave",(e=>[wh(e)]));function $h(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function Ch(e){return Number.isNaN(e)?0:e}const Sh=l({props:{target:ie(),className:String},setup(e){const t=s(null),[n,o]=Dc(null),[r,l]=Dc([]),[i,a]=Dc(0),[u,c]=Dc(0),[d,p]=Dc(0),[f,v]=Dc(0),[m,g]=Dc(!1);function y(){const{target:t}=e,n=getComputedStyle(t);o(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return $h(t)?t:$h(n)?n:$h(o)?o:null}(t));const r="static"===n.position,{borderLeftWidth:i,borderTopWidth:s}=n;a(r?t.offsetLeft:Ch(-parseFloat(i))),c(r?t.offsetTop:Ch(-parseFloat(s))),p(t.offsetWidth),v(t.offsetHeight);const{borderTopLeftRadius:u,borderTopRightRadius:d,borderBottomLeftRadius:f,borderBottomRightRadius:m}=n;l([u,d,m,f].map((e=>Ch(parseFloat(e)))))}let b,w,C;const O=()=>{clearTimeout(C),Dt.cancel(w),null==b||b.disconnect()},k=()=>{var e;const n=null===(e=t.value)||void 0===e?void 0:e.parentElement;n&&(N(null,n),n.parentElement&&n.parentElement.removeChild(n))};h((()=>{O(),C=setTimeout((()=>{k()}),5e3);const{target:t}=e;t&&(w=Dt((()=>{y(),g(!0)})),typeof ResizeObserver<"u"&&(b=new ResizeObserver(y),b.observe(t)))})),x((()=>{O()}));const P=e=>{"opacity"===e.propertyName&&k()};return()=>{if(!m.value)return null;const o={left:`${i.value}px`,top:`${u.value}px`,width:`${d.value}px`,height:`${f.value}px`,borderRadius:r.value.map((e=>`${e}px`)).join(" ")};return n&&(o["--wave-color"]=n.value),$(S,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[$("div",{ref:t,class:e.className,style:o,onTransitionend:P},null)]})}}});function Oh(e,t){const n=m();let o;return x((()=>{null==o||o()})),function(){var r;const l=xt(n);null==o||o(),(null===(r=null==t?void 0:t.value)||void 0===r||!r.disabled)&&l&&(o=function(e,t){const n=document.createElement("div");return n.style.position="absolute",n.style.left="0px",n.style.top="0px",null==e||e.insertBefore(n,null==e?void 0:e.firstChild),N($(Sh,{target:e,className:t},null),n),()=>{N(null,n),n.parentElement&&n.parentElement.removeChild(n)}}(l,e.value))}}const kh=l({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:o}=t;const r=m(),{prefixCls:l,wave:a}=el("wave",e),[,s]=xh(l),u=Oh(n((()=>Ge(l.value,s.value))),a);let c;const d=()=>{xt(r).removeEventListener("click",c,!0)};return h((()=>{i((()=>e.disabled),(()=>{d(),I((()=>{const t=xt(r);null==t||t.removeEventListener("click",c,!0),t&&1===t.nodeType&&!e.disabled&&(c=e=>{"INPUT"===e.target.tagName||!ea(e.target)||!t.getAttribute||t.getAttribute("disabled")||t.disabled||t.className.includes("disabled")||t.className.includes("-leave")||u()},t.addEventListener("click",c,!0))}))}),{immediate:!0,flush:"post"})})),x((()=>{d()})),()=>{var e;return null===(e=o.default)||void 0===e?void 0:e.call(o)[0]}}}),Ph=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:Dl.any,href:String,target:String,title:String,onClick:le(),onMousedown:le()}),Ih=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},Eh=e=>{I((()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")}))},jh=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},Ah=l({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup:e=>()=>{const{existIcon:t,prefixCls:n,loading:o}=e;if(t)return $("span",{class:`${n}-loading-icon`},[$(Od,null,null)]);const r=!!o;return $(S,{name:`${n}-loading-icon-motion`,onBeforeEnter:Ih,onEnter:Eh,onAfterEnter:jh,onBeforeLeave:Eh,onLeave:e=>{setTimeout((()=>{Ih(e)}))},onAfterLeave:jh},{default:()=>[r?$("span",{class:`${n}-loading-icon`},[$(Od,null,null)]):null]})}}),Mh=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Th=e=>{const{componentCls:t,fontSize:n,lineWidth:o,colorPrimaryHover:r,colorErrorHover:l}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-o,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Mh(`${t}-primary`,r),Mh(`${t}-danger`,l)]}};function zh(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Dh(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Rh(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:ze(ze({},zh(e,t)),Dh(e.componentCls,t))}}const Bh=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":ze({},Ar(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Nh=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),Hh=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Fh=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),Lh=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),_h=(e,t,n,o,r,l,i)=>({[`&${e}-background-ghost`]:ze(ze({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},Nh(ze({backgroundColor:"transparent"},l),ze({backgroundColor:"transparent"},i))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:r||void 0}})}),Wh=e=>({"&:disabled":ze({},Lh(e))}),Vh=e=>ze({},Wh(e)),Xh=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),Kh=e=>ze(ze(ze(ze(ze({},Vh(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Nh({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),_h(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:ze(ze(ze({color:e.colorError,borderColor:e.colorError},Nh({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),_h(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Wh(e))}),qh=e=>ze(ze(ze(ze(ze({},Vh(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Nh({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),_h(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:ze(ze(ze({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},Nh({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),_h(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Wh(e))}),Gh=e=>ze(ze({},Kh(e)),{borderStyle:"dashed"}),Uh=e=>ze(ze(ze({color:e.colorLink},Nh({color:e.colorLinkHover},{color:e.colorLinkActive})),Xh(e)),{[`&${e.componentCls}-dangerous`]:ze(ze({color:e.colorError},Nh({color:e.colorErrorHover},{color:e.colorErrorActive})),Xh(e))}),Yh=e=>ze(ze(ze({},Nh({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Xh(e)),{[`&${e.componentCls}-dangerous`]:ze(ze({color:e.colorError},Xh(e)),Nh({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),Zh=e=>ze(ze({},Lh(e)),{[`&${e.componentCls}:hover`]:ze({},Lh(e))}),Qh=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Kh(e),[`${t}-primary`]:qh(e),[`${t}-dashed`]:Gh(e),[`${t}-link`]:Uh(e),[`${t}-text`]:Yh(e),[`${t}-disabled`]:Zh(e)}},Jh=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,iconCls:o,controlHeight:r,fontSize:l,lineHeight:i,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:u}=e,c=Math.max(0,(r-l*i)/2-a),d=u-a,p=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:l,height:r,padding:`${c}px ${d}px`,borderRadius:s,[`&${p}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${p}) ${n}-loading-icon > ${o}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:Hh(e)},{[`${n}${n}-round${t}`]:Fh(e)}]},eg=e=>Jh(e),tg=e=>{const t=Dr(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return Jh(t,`${e.componentCls}-sm`)},ng=e=>{const t=Dr(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return Jh(t,`${e.componentCls}-lg`)},og=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},rg=Mr("Button",(e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,o=Dr(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[Bh(o),tg(o),eg(o),ng(o),og(o),Qh(o),Th(o),em(e,{focus:!1}),Rh(e)]})),lg=_d(),ig=l({compatConfig:{MODE:3},name:"AButtonGroup",props:{prefixCls:String,size:{type:String}},setup(e,t){let{slots:o}=t;const{prefixCls:r,direction:l}=el("btn-group",e),[,,i]=_r();lg.useProvide(v({size:n((()=>e.size))}));const a=n((()=>{const{size:t}=e;let n="";switch(t){case"large":n="lg";break;case"small":n="sm";break;case"middle":case void 0:break;default:Rl(!t,"Button.Group","Invalid prop `size`.")}return{[`${r.value}`]:!0,[`${r.value}-${n}`]:n,[`${r.value}-rtl`]:"rtl"===l.value,[i.value]:!0}}));return()=>{var e;return $("div",{class:a.value},[wt(null===(e=o.default)||void 0===e?void 0:e.call(o))])}}}),ag=/^[\u4e00-\u9fa5]{2}$/,sg=ag.test.bind(ag);function ug(e){return"text"===e||"link"===e}const cg=l({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:yt(Ph(),{type:"default"}),slots:Object,setup(e,t){let{slots:o,attrs:r,emit:l,expose:a}=t;const{prefixCls:u,autoInsertSpaceInButton:c,direction:d,size:p}=el("btn",e),[v,m]=rg(u),y=lg.useInject(),b=Ht(),C=n((()=>{var t;return null!==(t=e.disabled)&&void 0!==t?t:b.value})),S=s(null),O=s(void 0);let k=!1;const P=s(!1),I=s(!1),E=n((()=>!1!==c.value)),{compactSize:j,compactItemClassnames:A}=ov(u,d),M=n((()=>"object"==typeof e.loading&&e.loading.delay?e.loading.delay||!0:!!e.loading));i(M,(e=>{clearTimeout(O.value),"number"==typeof M.value?O.value=setTimeout((()=>{P.value=e}),M.value):P.value=e}),{immediate:!0});const T=n((()=>{const{type:t,shape:n="default",ghost:o,block:r,danger:l}=e,i=u.value,a=j.value||(null==y?void 0:y.size)||p.value,s=a&&{large:"lg",small:"sm",middle:void 0}[a]||"";return[A.value,{[m.value]:!0,[`${i}`]:!0,[`${i}-${n}`]:"default"!==n&&n,[`${i}-${t}`]:t,[`${i}-${s}`]:s,[`${i}-loading`]:P.value,[`${i}-background-ghost`]:o&&!ug(t),[`${i}-two-chinese-chars`]:I.value&&E.value,[`${i}-block`]:r,[`${i}-dangerous`]:!!l,[`${i}-rtl`]:"rtl"===d.value}]})),z=()=>{const e=S.value;if(!e||!1===c.value)return;const t=e.textContent;k&&sg(t)?I.value||(I.value=!0):I.value&&(I.value=!1)},D=e=>{P.value||C.value?e.preventDefault():l("click",e)},R=e=>{l("mousedown",e)};return w((()=>{Rl(!(e.ghost&&ug(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")})),h(z),g(z),x((()=>{O.value&&clearTimeout(O.value)})),a({focus:()=>{var e;null===(e=S.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=S.value)||void 0===e||e.blur()}}),()=>{var t,n;const{icon:l=(null===(t=o.icon)||void 0===t?void 0:t.call(o))}=e,i=wt(null===(n=o.default)||void 0===n?void 0:n.call(o));k=1===i.length&&!l&&!ug(e.type);const{type:a,htmlType:s,href:c,title:d,target:p}=e,m=P.value?"loading":l,h=ze(ze({},r),{title:d,disabled:C.value,class:[T.value,r.class,{[`${u.value}-icon-only`]:0===i.length&&!!m}],onClick:D,onMousedown:R});C.value||delete h.disabled;const g=l&&!P.value?l:$(Ah,{existIcon:!!l,prefixCls:u.value,loading:!!P.value},null),y=i.map((e=>((e,t)=>{const n=t?" ":"";if(e.type===f){let t=e.children.trim();return sg(t)&&(t=t.split("").join(n)),$("span",null,[t])}return e})(e,k&&E.value)));if(void 0!==c)return v($("a",Te(Te({},h),{},{href:c,target:p,ref:S}),[g,y]));let b=$("button",Te(Te({},h),{},{ref:S,type:s}),[g,y]);if(!ug(a)){const e=function(){return b}();b=$(kh,{ref:"wave",disabled:!!P.value},{default:()=>[e]})}return v(b)}}});cg.Group=ig,cg.install=function(e){return e.component(cg.name,cg),e.component(ig.name,ig),e};const dg=()=>({arrow:pe([Boolean,Object]),trigger:{type:[Array,String]},menu:ie(),overlay:Dl.any,visible:ae(),open:ae(),disabled:ae(),danger:ae(),autofocus:ae(),align:ie(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:ie(),forceRender:ae(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:ae(),destroyPopupOnHide:ae(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),pg=Ph();var fg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function vg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){mg(e,t,n[t])}))}return e}function mg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hg=function(e,t){var n=vg({},e,t.attrs);return $(yd,vg({},n,{icon:fg}),null)};hg.displayName="EllipsisOutlined",hg.inheritAttrs=!1;const gg=e=>{const{componentCls:t,antCls:n,paddingXS:o,opacityLoading:r}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:r},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:o}}}}},yg=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,l=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},bg=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,dropdownArrowOffset:l,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:u,dropdownPaddingVertical:c,fontSize:d,dropdownEdgeChildPadding:p,colorTextDisabled:f,fontSizeIcon:v,controlPaddingHorizontal:m,colorBgElevated:h,boxShadowPopoverArrow:g}=e;return[{[t]:ze(ze({},Pr(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:i/2-r,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:v},[`${s}-down::before`]:{transition:`transform ${u}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`\n &-show-arrow${t}-placement-topLeft,\n &-show-arrow${t}-placement-top,\n &-show-arrow${t}-placement-topRight\n `]:{paddingBottom:r},[`\n &-show-arrow${t}-placement-bottomLeft,\n &-show-arrow${t}-placement-bottom,\n &-show-arrow${t}-placement-bottomRight\n `]:{paddingTop:r},[`${t}-arrow`]:ze({position:"absolute",zIndex:1,display:"block"},Sr(i,e.borderRadiusXS,e.borderRadiusOuter,h,g)),[`\n &-placement-top > ${t}-arrow,\n &-placement-topLeft > ${t}-arrow,\n &-placement-topRight > ${t}-arrow\n `]:{bottom:r,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:l}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:l}},[`\n &-placement-bottom > ${t}-arrow,\n &-placement-bottomLeft > ${t}-arrow,\n &-placement-bottomRight > ${t}-arrow\n `]:{top:r,transform:"translateY(-100%)"},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateY(-100%) translateX(-50%)"},[`&-placement-bottomLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:l}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:l}},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:wv},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:$v},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:xv},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Cv}})},{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}},[`${t}, ${t}-menu-submenu`]:{[n]:ze(ze({padding:p,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Ar(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${m}px`,color:e.colorTextDescription,transition:`all ${u}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",borderRadius:e.borderRadiusSM},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${u}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:ze(ze({clear:"both",margin:0,padding:`${c}px ${m}px`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${u}`,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Ar(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:v,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:m+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Ev(e,"slide-up"),Ev(e,"slide-down"),bv(e,"move-up"),bv(e,"move-down"),Wv(e,"zoom-big")]]},wg=Mr("Dropdown",((e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:o,sizePopupArrow:r,controlHeight:l,fontSize:i,lineHeight:a,paddingXXS:s,componentCls:u,borderRadiusOuter:c,borderRadiusLG:d}=e,p=(l-i*a)/2,{dropdownArrowOffset:f}=rh({sizePopupArrow:r,contentRadius:d,borderRadiusOuter:c}),v=Dr(e,{menuCls:`${u}-menu`,rootPrefixCls:n,dropdownArrowDistance:r/2+o,dropdownArrowOffset:f,dropdownPaddingVertical:p,dropdownEdgeChildPadding:s});return[bg(v),gg(v),yg(v)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50})));const xg=cg.Group,$g=l({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:yt(ze(ze({},dg()),{type:pg.type,size:String,htmlType:pg.htmlType,href:String,disabled:ae(),prefixCls:String,icon:Dl.any,title:String,loading:pg.loading,onClick:le()}),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:Object,setup(e,t){let{slots:o,attrs:r,emit:l}=t;const i=e=>{l("update:visible",e),l("visibleChange",e),l("update:open",e),l("openChange",e)},{prefixCls:a,direction:s,getPopupContainer:u}=el("dropdown",e),c=n((()=>`${a.value}-button`)),[d,p]=wg(a);return()=>{var t,n;const l=ze(ze({},e),r),{type:a="default",disabled:f,danger:v,loading:m,htmlType:h,class:g="",overlay:y=(null===(t=o.overlay)||void 0===t?void 0:t.call(o)),trigger:b,align:w,open:x,visible:C,onVisibleChange:S,placement:O=("rtl"===s.value?"bottomLeft":"bottomRight"),href:k,title:P,icon:I=(null===(n=o.icon)||void 0===n?void 0:n.call(o))||$(hg,null,null),mouseEnterDelay:E,mouseLeaveDelay:j,overlayClassName:A,overlayStyle:M,destroyPopupOnHide:T,onClick:z,"onUpdate:open":D}=l,R=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(l,["type","disabled","danger","loading","htmlType","class","overlay","trigger","align","open","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:open"]),B={align:w,disabled:f,trigger:f?[]:b,placement:O,getPopupContainer:null==u?void 0:u.value,onOpenChange:i,mouseEnterDelay:E,mouseLeaveDelay:j,open:x??C,overlayClassName:A,overlayStyle:M,destroyPopupOnHide:T},N=$(cg,{danger:v,type:a,disabled:f,loading:m,onClick:z,htmlType:h,href:k,title:P},{default:o.default}),H=$(cg,{danger:v,type:a,icon:I},null);return d($(xg,Te(Te({},R),{},{class:Ge(c.value,g,p.value)}),{default:()=>[o.leftButton?o.leftButton({button:N}):N,$(Eg,B,{default:()=>[o.rightButton?o.rightButton({button:H}):H],overlay:()=>y})]}))}}});var Cg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}}]},name:"right",theme:"outlined"};function Sg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Og(e,t,n[t])}))}return e}function Og(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kg=function(e,t){var n=Sg({},e,t.attrs);return $(yd,Sg({},n,{icon:Cg}),null)};kg.displayName="RightOutlined",kg.inheritAttrs=!1;const Pg=Symbol("OverrideContextKey"),Ig=()=>o(Pg,void 0),Eg=l({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:yt(dg(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:o,attrs:l,emit:i}=t;const{prefixCls:a,rootPrefixCls:s,direction:u,getPopupContainer:c}=el("dropdown",e),[d,p]=wg(a),f=n((()=>{const{placement:t="",transitionName:n}=e;return void 0!==n?n:t.includes("top")?`${s.value}-slide-down`:`${s.value}-slide-up`}));(e=>{var t,o,l;const{prefixCls:i,mode:a,selectable:s,validator:u,onClick:c,expandIcon:d}=Ig()||{};r(Pg,{prefixCls:n((()=>{var t,n;return null!==(n=null===(t=e.prefixCls)||void 0===t?void 0:t.value)&&void 0!==n?n:null==i?void 0:i.value})),mode:n((()=>{var t,n;return null!==(n=null===(t=e.mode)||void 0===t?void 0:t.value)&&void 0!==n?n:null==a?void 0:a.value})),selectable:n((()=>{var t,n;return null!==(n=null===(t=e.selectable)||void 0===t?void 0:t.value)&&void 0!==n?n:null==s?void 0:s.value})),validator:null!==(t=e.validator)&&void 0!==t?t:u,onClick:null!==(o=e.onClick)&&void 0!==o?o:c,expandIcon:null!==(l=e.expandIcon)&&void 0!==l?l:null==d?void 0:d.value})})({prefixCls:n((()=>`${a.value}-menu`)),expandIcon:n((()=>$("span",{class:`${a.value}-menu-submenu-arrow`},[$(kg,{class:`${a.value}-menu-submenu-arrow-icon`},null)]))),mode:n((()=>"vertical")),selectable:n((()=>!1)),onClick:()=>{},validator:e=>{let{mode:t}=e}});const v=()=>{var t,n,r;const l=e.overlay||(null===(t=o.overlay)||void 0===t?void 0:t.call(o)),i=Array.isArray(l)?l[0]:l;if(!i)return null;const s=i.props||{};Rl(!s.mode||"vertical"===s.mode,"Dropdown",`mode="${s.mode}" is not supported for Dropdown's Menu.`);const{selectable:u=!1,expandIcon:c=(null===(r=null===(n=i.children)||void 0===n?void 0:n.expandIcon)||void 0===r?void 0:r.call(n))}=s,d=typeof c<"u"&&Pt(c)?c:$("span",{class:`${a.value}-menu-submenu-arrow`},[$(kg,{class:`${a.value}-menu-submenu-arrow-icon`},null)]);return Pt(i)?Ji(i,{mode:"vertical",selectable:u,expandIcon:()=>d}):i},m=n((()=>{const t=e.placement;if(!t)return"rtl"===u.value?"bottomRight":"bottomLeft";if(t.includes("Center")){const e=t.slice(0,t.indexOf("Center"));return Rl(!t.includes("Center"),"Dropdown",`You are using '${t}' placement in Dropdown, which is deprecated. Try to use '${e}' instead.`),e}return t})),h=n((()=>"boolean"==typeof e.visible?e.visible:e.open)),g=e=>{i("update:visible",e),i("visibleChange",e),i("update:open",e),i("openChange",e)};return()=>{var t,n;const{arrow:r,trigger:i,disabled:s,overlayClassName:y}=e,b=null===(t=o.default)||void 0===t?void 0:t.call(o)[0],w=Ji(b,ze({class:Ge(null===(n=null==b?void 0:b.props)||void 0===n?void 0:n.class,{[`${a.value}-rtl`]:"rtl"===u.value},`${a.value}-trigger`)},s?{disabled:s}:{})),x=Ge(y,p.value,{[`${a.value}-rtl`]:"rtl"===u.value}),C=s?[]:i;let S;C&&C.includes("contextmenu")&&(S=!0);const O=eh({arrowPointAtCenter:"object"==typeof r&&r.pointAtCenter,autoAdjustOverflow:!0}),k=tl(ze(ze(ze({},e),l),{visible:h.value,builtinPlacements:O,overlayClassName:x,arrow:!!r,alignPoint:S,prefixCls:a.value,getPopupContainer:null==c?void 0:c.value,transitionName:f.value,trigger:C,onVisibleChange:g,placement:m.value}),["overlay","onUpdate:visible"]);return d($(bh,k,{default:()=>[w],overlay:v}))}}});function jg(e,t){return function(e,t){let n;if(void 0!==n)return!!n;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;const l=Object.prototype.hasOwnProperty.bind(t);for(let r=0;r<o.length;r++){const i=o[r];if(!l(i))return!1;const a=e[i],s=t[i];if(n=void 0,!1===n||void 0===n&&a!==s)return!1}return!0}(B(e),B(t))}Eg.Button=$g;const Ag=Symbol("menuContextKey"),Mg=e=>{r(Ag,e)},Tg=()=>o(Ag),zg=Symbol("ForceRenderKey"),Dg=()=>o(zg,!1),Rg=Symbol("menuFirstLevelContextKey"),Bg=e=>{r(Rg,e)},Ng=l({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t;const o=ze({},Tg());return void 0!==e.mode&&(o.mode=E(e,"mode")),void 0!==e.overflowDisabled&&(o.overflowDisabled=E(e,"overflowDisabled")),Mg(o),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),Hg=Symbol("siderCollapsed"),Fg="$$__vc-menu-more__key",Lg=Symbol("KeyPathContext"),_g=()=>o(Lg,{parentEventKeys:n((()=>[])),parentKeys:n((()=>[])),parentInfo:{}}),Wg=Symbol("measure"),Vg=l({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return r(Wg,!0),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),Xg=()=>o(Wg,!1);function Kg(e){const{mode:t,rtl:o,inlineIndent:r}=Tg();return n((()=>"inline"!==t.value?null:o.value?{paddingRight:e.value*r.value+"px"}:{paddingLeft:e.value*r.value+"px"}))}let qg=0;const Gg=l({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:{id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:Dl.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:ie()},slots:Object,setup(e,t){let{slots:r,emit:l,attrs:a}=t;const u=m(),c=Xg(),d="symbol"==typeof u.vnode.key?String(u.vnode.key):u.vnode.key;Rl("symbol"!=typeof u.vnode.key,"MenuItem",`MenuItem \`:key="${String(d)}"\` not support Symbol type`);const p=`menu_item_${++qg}_$$_${d}`,{parentEventKeys:f,parentKeys:v}=_g(),{prefixCls:h,activeKeys:g,disabled:y,changeActiveKeys:b,rtl:w,inlineCollapsed:C,siderCollapsed:S,onItemClick:O,selectedKeys:k,registerMenuInfo:P,unRegisterMenuInfo:I}=Tg(),E=o(Rg,!0),j=s(!1),A=n((()=>[...v.value,d]));P(p,{eventKey:p,key:d,parentEventKeys:f,parentKeys:v,isLeaf:!0}),x((()=>{I(p)})),i(g,(()=>{j.value=!!g.value.find((e=>e===d))}),{immediate:!0});const M=n((()=>y.value||e.disabled)),T=n((()=>k.value.includes(d))),z=n((()=>{const t=`${h.value}-item`;return{[`${t}`]:!0,[`${t}-danger`]:e.danger,[`${t}-active`]:j.value,[`${t}-selected`]:T.value,[`${t}-disabled`]:M.value}})),D=t=>({key:d,eventKey:p,keyPath:A.value,eventKeyPath:[...f.value,p],domEvent:t,item:ze(ze({},e),a)}),R=e=>{if(M.value)return;const t=D(e);l("click",e),O(t)},B=e=>{M.value||(b(A.value),l("mouseenter",e))},N=e=>{M.value||(b([]),l("mouseleave",e))},H=e=>{if(l("keydown",e),e.which===ju.ENTER){const t=D(e);l("click",e),O(t)}},F=e=>{b(A.value),l("focus",e)},L=(e,t)=>{const n=$("span",{class:`${h.value}-title-content`},[t]);return(!e||Pt(t)&&"span"===t.type)&&t&&C.value&&E&&"string"==typeof t?$("div",{class:`${h.value}-inline-collapsed-noicon`},[t.charAt(0)]):n},_=Kg(n((()=>A.value.length)));return()=>{var t,n,o,l,i;if(c)return null;const s=null!==(t=e.title)&&void 0!==t?t:null===(n=r.title)||void 0===n?void 0:n.call(r),u=wt(null===(o=r.default)||void 0===o?void 0:o.call(r)),p=u.length;let f=s;typeof s>"u"?f=E&&p?u:"":!1===s&&(f="");const v={title:f};!S.value&&!C.value&&(v.title=null,v.open=!1);const m={};"option"===e.role&&(m["aria-selected"]=T.value);const g=null!==(l=e.icon)&&void 0!==l?l:null===(i=r.icon)||void 0===i?void 0:i.call(r,e);return $(sh,Te(Te({},v),{},{placement:w.value?"left":"right",overlayClassName:`${h.value}-inline-collapsed-tooltip`}),{default:()=>[$(Uu.Item,Te(Te(Te({component:"li"},a),{},{id:e.id,style:ze(ze({},a.style||{}),_.value),class:[z.value,{[`${a.class}`]:!!a.class,[`${h.value}-item-only-child`]:1===(g?p+1:p)}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":d,"aria-disabled":e.disabled},m),{},{onMouseenter:B,onMouseleave:N,onClick:R,onKeydown:H,onFocus:F,title:"string"==typeof s?s:void 0}),{default:()=>[Ji("function"==typeof g?g(e.originItemValue):g,{class:`${h.value}-item-icon`},!1),L(g,u)]})]})}}}),Ug={adjustX:1,adjustY:1},Yg={topLeft:{points:["bl","tl"],overflow:Ug,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ug,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Ug,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Ug,offset:[4,0]}},Zg={topLeft:{points:["bl","tl"],overflow:Ug,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ug,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Ug,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Ug,offset:[4,0]}},Qg={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Jg=l({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(e,t){let{slots:o,emit:r}=t;const l=s(!1),{getPopupContainer:a,rtl:u,subMenuOpenDelay:c,subMenuCloseDelay:d,builtinPlacements:p,triggerSubMenuAction:f,forceSubMenuRender:v,motion:m,defaultMotions:h,rootClassName:g}=Tg(),y=Dg(),b=n((()=>u.value?ze(ze({},Zg),p.value):ze(ze({},Yg),p.value))),w=n((()=>Qg[e.mode])),C=s();i((()=>e.visible),(e=>{Dt.cancel(C.value),C.value=Dt((()=>{l.value=e}))}),{immediate:!0}),x((()=>{Dt.cancel(C.value)}));const S=e=>{r("visibleChange",e)},O=n((()=>{var t,n;const o=m.value||(null===(t=h.value)||void 0===t?void 0:t[e.mode])||(null===(n=h.value)||void 0===n?void 0:n.other),r="function"==typeof o?o():o;return r?su(r.name,{css:!0}):void 0}));return()=>{const{prefixCls:t,popupClassName:n,mode:r,popupOffset:i,disabled:s}=e;return $(Iu,{prefixCls:t,popupClassName:Ge(`${t}-popup`,{[`${t}-rtl`]:u.value},n,g.value),stretch:"horizontal"===r?"minWidth":null,getPopupContainer:a.value,builtinPlacements:b.value,popupPlacement:w.value,popupVisible:l.value,popupAlign:i&&{offset:i},action:s?[]:[f.value],mouseEnterDelay:c.value,mouseLeaveDelay:d.value,onPopupVisibleChange:S,forceRender:y||v.value,popupAnimation:O.value},{popup:o.popup,default:o.default})}}}),ey=(e,t)=>{let{slots:n,attrs:o}=t;var r;const{prefixCls:l,mode:i}=Tg();return $("ul",Te(Te({},o),{},{class:Ge(l.value,`${l.value}-sub`,`${l.value}-${"inline"===i.value?"inline":"vertical"}`),"data-menu-list":!0}),[null===(r=n.default)||void 0===r?void 0:r.call(n)])};ey.displayName="SubMenuList";const ty=l({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:o}=t;const r=n((()=>"inline")),{motion:l,mode:a,defaultMotions:s}=Tg(),u=n((()=>a.value===r.value)),c=b(!u.value),d=n((()=>!!u.value&&e.open));i(a,(()=>{u.value&&(c.value=!1)}),{flush:"post"});const p=n((()=>{var t,n;const o=l.value||(null===(t=s.value)||void 0===t?void 0:t[r.value])||(null===(n=s.value)||void 0===n?void 0:n.other);return ze(ze({},"function"==typeof o?o():o),{appear:e.keyPath.length<=1})}));return()=>{var t;return c.value?null:$(Ng,{mode:r.value},{default:()=>[$(S,p.value,{default:()=>[O($(ey,{id:e.id},{default:()=>[null===(t=o.default)||void 0===t?void 0:t.call(o)]}),[[A,d.value]])]})]})}}});let ny=0;const oy=l({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:{icon:Dl.any,title:Dl.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:ie()},slots:Object,setup(e,t){let{slots:o,attrs:l,emit:a}=t;var u,d;Bg(!1);const p=Xg(),f=m(),v="symbol"==typeof f.vnode.key?String(f.vnode.key):f.vnode.key;Rl("symbol"!=typeof f.vnode.key,"SubMenu",`SubMenu \`:key="${String(v)}"\` not support Symbol type`);const h=gt(v)?v:`sub_menu_${++ny}_$$_not_set_key`,g=null!==(u=e.eventKey)&&void 0!==u?u:gt(v)?`sub_menu_${++ny}_$$_${v}`:h,{parentEventKeys:y,parentInfo:b,parentKeys:w}=_g(),C=n((()=>[...w.value,h])),S=s([]),O={eventKey:g,key:h,parentEventKeys:y,childrenEventKeys:S,parentKeys:w};null===(d=b.childrenEventKeys)||void 0===d||d.value.push(g),x((()=>{var e;b.childrenEventKeys&&(b.childrenEventKeys.value=null===(e=b.childrenEventKeys)||void 0===e?void 0:e.value.filter((e=>e!=g)))})),((e,t,o)=>{const{parentEventKeys:l,parentKeys:i}=_g(),a=n((()=>[...l.value,e])),s=n((()=>[...i.value,t]));r(Lg,{parentEventKeys:a,parentKeys:s,parentInfo:o})})(g,h,O);const{prefixCls:k,activeKeys:P,disabled:I,changeActiveKeys:E,mode:j,inlineCollapsed:A,openKeys:M,overflowDisabled:T,onOpenChange:z,registerMenuInfo:D,unRegisterMenuInfo:R,selectedSubMenuKeys:B,expandIcon:N,theme:H}=Tg(),F=null!=v,L=!p&&(Dg()||!F);(e=>{r(zg,e)})(L),(p&&F||!p&&!F||L)&&(D(g,O),x((()=>{R(g)})));const _=n((()=>`${k.value}-submenu`)),W=n((()=>I.value||e.disabled)),V=s(),X=s(),K=n((()=>M.value.includes(h))),q=n((()=>!T.value&&K.value)),G=n((()=>B.value.includes(h))),U=s(!1);i(P,(()=>{U.value=!!P.value.find((e=>e===h))}),{immediate:!0});const Y=e=>{W.value||(a("titleClick",e,h),"inline"===j.value&&z(h,!K.value))},Z=e=>{W.value||(E(C.value),a("mouseenter",e))},Q=e=>{W.value||(E([]),a("mouseleave",e))},J=Kg(n((()=>C.value.length))),ee=e=>{"inline"!==j.value&&z(h,e)},te=()=>{E(C.value)},ne=g&&`${g}-popup`,oe=n((()=>Ge(k.value,`${k.value}-${e.theme||H.value}`,e.popupClassName))),re=n((()=>"inline"!==j.value&&C.value.length>1?"vertical":j.value)),le=n((()=>"horizontal"===j.value?"vertical":j.value)),ie=n((()=>"horizontal"===re.value?"vertical":re.value)),ae=()=>{var t,n;const r=_.value,l=null!==(t=e.icon)&&void 0!==t?t:null===(n=o.icon)||void 0===n?void 0:n.call(o,e),i=e.expandIcon||o.expandIcon||N.value,a=((t,n)=>{if(!n)return A.value&&!w.value.length&&t&&"string"==typeof t?$("div",{class:`${k.value}-inline-collapsed-noicon`},[t.charAt(0)]):$("span",{class:`${k.value}-title-content`},[t]);const o=Pt(t)&&"span"===t.type;return $(c,null,[Ji("function"==typeof n?n(e.originItemValue):n,{class:`${k.value}-item-icon`},!1),o?t:$("span",{class:`${k.value}-title-content`},[t])])})(It(o,e,"title"),l);return $("div",{style:J.value,class:`${r}-title`,tabindex:W.value?null:-1,ref:V,title:"string"==typeof a?a:null,"data-menu-id":h,"aria-expanded":q.value,"aria-haspopup":!0,"aria-controls":ne,"aria-disabled":W.value,onClick:Y,onFocus:te},[a,"horizontal"!==j.value&&i?i(ze(ze({},e),{isOpen:q.value})):$("i",{class:`${r}-arrow`},null)])};return()=>{var t;if(p)return F?null===(t=o.default)||void 0===t?void 0:t.call(o):null;const n=_.value;let r=()=>null;if(T.value||"inline"===j.value)r=()=>$(Jg,null,{default:ae});else{const t="horizontal"===j.value?[0,8]:[10,0];r=()=>$(Jg,{mode:re.value,prefixCls:n,visible:!e.internalPopupClose&&q.value,popupClassName:oe.value,popupOffset:e.popupOffset||t,disabled:W.value,onVisibleChange:ee},{default:()=>[ae()],popup:()=>$(Ng,{mode:ie.value},{default:()=>[$(ey,{id:ne,ref:X},{default:o.default})]})})}return $(Ng,{mode:le.value},{default:()=>[$(Uu.Item,Te(Te({component:"li"},l),{},{role:"none",class:Ge(n,`${n}-${j.value}`,l.class,{[`${n}-open`]:q.value,[`${n}-active`]:U.value,[`${n}-selected`]:G.value,[`${n}-disabled`]:W.value}),onMouseenter:Z,onMouseleave:Q,"data-submenu-id":h}),{default:()=>$(c,null,[r(),!T.value&&$(ty,{id:ne,open:q.value,keyPath:C.value},{default:o.default})])})]})}}});function ry(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function ly(e,t){e.classList?e.classList.add(t):ry(e,t)||(e.className=`${e.className} ${t}`)}function iy(e,t){if(e.classList)e.classList.remove(t);else if(ry(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}const ay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant-motion-collapse";return{name:e,appear:!(arguments.length>1&&void 0!==arguments[1])||arguments[1],css:!0,onBeforeEnter:t=>{t.style.height="0px",t.style.opacity="0",ly(t,e)},onEnter:e=>{I((()=>{e.style.height=`${e.scrollHeight}px`,e.style.opacity="1"}))},onAfterEnter:t=>{t&&(iy(t,e),t.style.height=null,t.style.opacity=null)},onBeforeLeave:t=>{ly(t,e),t.style.height=`${t.offsetHeight}px`,t.style.opacity=null},onLeave:e=>{setTimeout((()=>{e.style.height="0px",e.style.opacity="0"}))},onAfterLeave:t=>{t&&(iy(t,e),t.style&&(t.style.height=null,t.style.opacity=null))}}},sy=l({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:{title:Dl.any,originItemValue:ie()},slots:Object,setup(e,t){let{slots:o,attrs:r}=t;const{prefixCls:l}=Tg(),i=n((()=>`${l.value}-item-group`)),a=Xg();return()=>{var t,n;return a?null===(t=o.default)||void 0===t?void 0:t.call(o):$("li",Te(Te({},r),{},{onClick:e=>e.stopPropagation(),class:i.value}),[$("div",{title:"string"==typeof e.title?e.title:void 0,class:`${i.value}-title`},[It(o,e,"title")]),$("ul",{class:`${i.value}-list`},[null===(n=o.default)||void 0===n?void 0:n.call(o)])])}}}),uy=l({compatConfig:{MODE:3},name:"AMenuDivider",props:{prefixCls:String,dashed:Boolean},setup(e){const{prefixCls:t}=Tg(),o=n((()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed})));return()=>$("li",{class:o.value},null)}});function cy(e,t,n){return(e||[]).map(((e,o)=>{if(e&&"object"==typeof e){const r=e,{label:l,children:i,key:a,type:s}=r,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(r,["label","children","key","type"]),c=a??`tmp-${o}`,d=n?n.parentKeys.slice():[],p=[],f={eventKey:c,key:c,parentEventKeys:b(d),parentKeys:b(d),childrenEventKeys:b(p),isLeaf:!1};if(i||"group"===s){if("group"===s){const o=cy(i,t,n);return $(sy,Te(Te({key:c},u),{},{title:l,originItemValue:e}),{default:()=>[o]})}t.set(c,f),n&&n.childrenEventKeys.push(c);const o=cy(i,t,{childrenEventKeys:p,parentKeys:[].concat(d,c)});return $(oy,Te(Te({key:c},u),{},{title:l,originItemValue:e}),{default:()=>[o]})}return"divider"===s?$(uy,Te({key:c},u),null):(f.isLeaf=!0,t.set(c,f),$(Gg,Te(Te({key:c},u),{},{originItemValue:e}),{default:()=>[l]}))}return null})).filter((e=>e))}const dy=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:o,colorSplit:r,lineWidth:l,lineType:i,menuItemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${l}px ${i} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},py=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},fy=e=>ze({},jr(e)),vy=(e,t)=>{const{componentCls:n,colorItemText:o,colorItemTextSelected:r,colorGroupTitle:l,colorItemBg:i,colorSubItemBg:a,colorItemBgSelected:s,colorActiveBarHeight:u,colorActiveBarWidth:c,colorActiveBarBorderSize:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:v,menuItemPaddingInline:m,motionDurationMid:h,colorItemTextHover:g,lineType:y,colorSplit:b,colorItemTextDisabled:w,colorDangerItemText:x,colorDangerItemTextHover:$,colorDangerItemTextSelected:C,colorDangerItemBgActive:S,colorDangerItemBgSelected:O,colorItemBgHover:k,menuSubMenuBg:P,colorItemTextSelectedHorizontal:I,colorItemBgSelectedHorizontal:E}=e;return{[`${n}-${t}`]:{color:o,background:i,[`&${n}-root:focus-visible`]:ze({},fy(e)),[`${n}-item-group-title`]:{color:l},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:g}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:s}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:s}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:O}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:ze({},fy(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:i},[`&${n}-horizontal`]:ze(ze({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:u,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:E,"&::after":{borderBottomWidth:u,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:a},[`${n}-item, ${n}-submenu-title`]:d&&c?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${c}px solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${v}`,`opacity ${h} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${f}`,`opacity ${h} ${f}`].join(",")}}}}}},my=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:l,marginXS:i,marginXXS:a}=e,s=r+l+i;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:a,width:`calc(100% - ${2*o}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:s}}},hy=e=>{const{componentCls:t,iconCls:n,menuItemHeight:o,colorTextLightSolid:r,dropdownWidth:l,controlHeightLG:i,motionDurationMid:a,motionEaseOut:s,paddingXL:u,fontSizeSM:c,fontSizeLG:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:v}=e,m={height:o,lineHeight:`${o}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":ze({[`&${t}-root`]:{boxShadow:"none"}},my(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:ze(ze({},my(e)),{boxShadow:v})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${2.5*i}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${a} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:m,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:m}},{[`${t}-inline-collapsed`]:{width:2*o,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${c}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:d,lineHeight:`${o}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:ze(ze({},kr),{paddingInline:f})}}]},gy=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:l,motionEaseOut:i,iconCls:a,controlHeightSM:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${l}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:n,fontSize:n,transition:[`font-size ${r} ${i}`,`margin ${o} ${l}`,`color ${o}`].join(","),"+ span":{marginInlineStart:s-n,opacity:1,transition:[`opacity ${o} ${l}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:ze({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},yy=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:l,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*l,height:.15*l,backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${i})`},"&::after":{transform:`rotate(-45deg) translateY(${i})`}}}}},by=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:l,motionEaseInOut:i,lineHeight:a,paddingXS:s,padding:u,colorSplit:c,lineWidth:d,zIndexPopup:p,borderRadiusLG:f,radiusSubMenuItem:v,menuArrowSize:m,menuArrowOffset:h,lineType:g,menuPanelMaskInset:y}=e;return[{"":{[`${n}`]:ze(ze({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:ze(ze(ze(ze(ze(ze(ze({},Pr(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${s}px ${u}px`,fontSize:o,lineHeight:a,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${i}`,`background ${r} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${i}`,`background ${r} ${i}`,`padding ${l} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${i}`,`padding ${r} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),gy(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*o}px ${u}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,background:"transparent",borderRadius:f,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${y}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:y},[`> ${n}`]:ze(ze(ze({borderRadius:f},gy(e)),yy(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${i}`}})}}),yy(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${h})`},"&::after":{transform:`rotate(45deg) translateX(-${h})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*m}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${h})`},"&::before":{transform:`rotate(45deg) translateX(${h})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},wy=[],xy=l({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:{id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function},slots:Object,setup(e,t){let{slots:r,emit:l,attrs:u}=t;const{direction:d,getPrefixCls:p}=el("menu",e),f=Ig(),v=n((()=>{var t;return p("menu",e.prefixCls||(null===(t=null==f?void 0:f.prefixCls)||void 0===t?void 0:t.value))})),[m,g]=((e,t)=>Mr("Menu",((e,n)=>{let{overrideComponentToken:o}=n;if(!1===(null==t?void 0:t.value))return[];const{colorBgElevated:r,colorPrimary:l,colorError:i,colorErrorHover:a,colorTextLightSolid:s}=e,{controlHeightLG:u,fontSize:c}=e,d=c/7*5,p=Dr(e,{menuItemHeight:u,menuItemPaddingInline:e.margin,menuArrowSize:d,menuHorizontalHeight:1.15*u,menuArrowOffset:.25*d+"px",menuPanelMaskInset:-7,menuSubMenuBg:r}),f=new Zo(s).setAlpha(.65).toRgbString(),v=Dr(p,{colorItemText:f,colorItemTextHover:s,colorGroupTitle:f,colorItemTextSelected:s,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:l,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new Zo(s).setAlpha(.25).toRgbString(),colorDangerItemText:i,colorDangerItemTextHover:a,colorDangerItemTextSelected:s,colorDangerItemBgActive:i,colorDangerItemBgSelected:i,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:s,colorItemBgSelectedHorizontal:l},ze({},o));return[by(p),dy(p),hy(p),vy(p,"light"),vy(v,"dark"),py(p),Vv(p),Ev(p,"slide-up"),Ev(p,"slide-down"),Wv(p,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:o,colorErrorBg:r,colorText:l,colorTextDescription:i,colorBgContainer:a,colorFillAlter:s,colorFillContent:u,lineWidth:c,lineWidthBold:d,controlItemBgActive:p,colorBgTextHover:f}=e;return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,colorItemText:l,colorItemTextHover:l,colorItemTextHoverHorizontal:t,colorGroupTitle:i,colorItemTextSelected:t,colorItemTextSelectedHorizontal:t,colorItemBg:a,colorItemBgHover:f,colorItemBgActive:u,colorSubItemBg:s,colorItemBgSelected:p,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:d,colorActiveBarBorderSize:c,colorItemTextDisabled:o,colorDangerItemText:n,colorDangerItemTextHover:n,colorDangerItemTextSelected:n,colorDangerItemBgActive:r,colorDangerItemBgSelected:r,itemMarginInline:e.marginXXS}}))(e))(v,n((()=>!f))),y=s(new Map),x=o(Hg,b(void 0)),C=n((()=>void 0!==x.value?x.value:e.inlineCollapsed)),{itemsNodes:S}=function(e){const t=s([]),n=s(!1),o=s(new Map);return i((()=>e.items),(()=>{const r=new Map;n.value=!1,e.items?(n.value=!0,t.value=cy(e.items,r)):t.value=void 0,o.value=r}),{immediate:!0,deep:!0}),{itemsNodes:t,store:o,hasItmes:n}}(e),O=s(!1);h((()=>{O.value=!0})),w((()=>{Rl(!(!0===e.inlineCollapsed&&"inline"!==e.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Rl(!(void 0!==x.value&&!0===e.inlineCollapsed),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")}));const k=b([]),P=b([]),I=b({});i(y,(()=>{const e={};for(const t of y.value.values())e[t.key]=t;I.value=e}),{flush:"post"}),w((()=>{if(void 0!==e.activeKey){let t=[];const n=e.activeKey?I.value[e.activeKey]:void 0;t=n&&void 0!==e.activeKey?tv([].concat(a(n.parentKeys),e.activeKey)):[],jg(k.value,t)||(k.value=t)}})),i((()=>e.selectedKeys),(e=>{e&&(P.value=e.slice())}),{immediate:!0,deep:!0});const E=b([]);i([I,P],(()=>{let e=[];P.value.forEach((t=>{const n=I.value[t];n&&(e=e.concat(a(n.parentKeys)))})),e=tv(e),jg(E.value,e)||(E.value=e)}),{immediate:!0});const j=b([]);let A;i((()=>e.openKeys),(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j.value;jg(j.value,e)||(j.value=e.slice())}),{immediate:!0,deep:!0});const M=n((()=>!!e.disabled)),z=n((()=>"rtl"===d.value)),D=b("vertical"),R=s(!1);w((()=>{var t;"inline"!==e.mode&&"vertical"!==e.mode||!C.value?(D.value=e.mode,R.value=!1):(D.value="vertical",R.value=C.value),null!==(t=null==f?void 0:f.mode)&&void 0!==t&&t.value&&(D.value=f.mode.value)}));const B=n((()=>"inline"===D.value)),N=e=>{j.value=e,l("update:openKeys",e),l("openChange",e)},H=b(j.value),F=s(!1);i(j,(()=>{B.value&&(H.value=j.value)}),{immediate:!0}),i(B,(()=>{F.value?B.value?j.value=H.value:N(wy):F.value=!0}),{immediate:!0});const L=n((()=>({[`${v.value}`]:!0,[`${v.value}-root`]:!0,[`${v.value}-${D.value}`]:!0,[`${v.value}-inline-collapsed`]:R.value,[`${v.value}-rtl`]:z.value,[`${v.value}-${e.theme}`]:!0}))),_=n((()=>p())),W=n((()=>({horizontal:{name:`${_.value}-slide-up`},inline:ay(`${_.value}-motion-collapse`),other:{name:`${_.value}-zoom-big`}})));Bg(!0);const V=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[],n=y.value;return e.forEach((e=>{const{key:o,childrenEventKeys:r}=n.get(e);t.push(o,...V(a(r)))})),t},X=b(0),K=n((()=>{var t;return e.expandIcon||r.expandIcon||null!==(t=null==f?void 0:f.expandIcon)&&void 0!==t&&t.value?t=>{let n=e.expandIcon||r.expandIcon;return n="function"==typeof n?n(t):n,Ji(n,{class:`${v.value}-submenu-expand-icon`},!1)}:null}));Mg({prefixCls:v,activeKeys:k,openKeys:j,selectedKeys:P,changeActiveKeys:t=>{clearTimeout(A),A=setTimeout((()=>{void 0===e.activeKey&&(k.value=t),l("update:activeKey",t[t.length-1])}))},disabled:M,rtl:z,mode:D,inlineIndent:n((()=>e.inlineIndent)),subMenuCloseDelay:n((()=>e.subMenuCloseDelay)),subMenuOpenDelay:n((()=>e.subMenuOpenDelay)),builtinPlacements:n((()=>e.builtinPlacements)),triggerSubMenuAction:n((()=>e.triggerSubMenuAction)),getPopupContainer:n((()=>e.getPopupContainer)),inlineCollapsed:R,theme:n((()=>e.theme)),siderCollapsed:x,defaultMotions:n((()=>O.value?W.value:null)),motion:n((()=>O.value?e.motion:null)),overflowDisabled:s(void 0),onOpenChange:(e,t)=>{var n;const o=(null===(n=I.value[e])||void 0===n?void 0:n.childrenEventKeys)||[];let r=j.value.filter((t=>t!==e));if(t)r.push(e);else if("inline"!==D.value){const e=V(a(o));r=tv(r.filter((t=>!e.includes(t))))}jg(j,r)||N(r)},onItemClick:t=>{var n;l("click",t),(t=>{if(e.selectable){const{key:n}=t,o=P.value.includes(n);let r;r=e.multiple?o?P.value.filter((e=>e!==n)):[...P.value,n]:[n];const i=ze(ze({},t),{selectedKeys:r});jg(r,P.value)||(void 0===e.selectedKeys&&(P.value=r),l("update:selectedKeys",r),o&&e.multiple?l("deselect",i):l("select",i))}"inline"!==D.value&&!e.multiple&&j.value.length&&N(wy)})(t),null===(n=null==f?void 0:f.onClick)||void 0===n||n.call(f)},registerMenuInfo:(e,t)=>{y.value.set(e,t),y.value=new Map(y.value)},unRegisterMenuInfo:e=>{y.value.delete(e),y.value=new Map(y.value)},selectedSubMenuKeys:E,expandIcon:K,forceSubMenuRender:n((()=>e.forceSubMenuRender)),rootClassName:g});const q=()=>{var e;return S.value||wt(null===(e=r.default)||void 0===e?void 0:e.call(r))};return()=>{var t;const n=q(),o=X.value>=n.length-1||"horizontal"!==D.value||e.disabledOverflow,l=t=>"horizontal"!==D.value||e.disabledOverflow?t:t.map(((e,t)=>$(Ng,{key:e.key,overflowDisabled:t>X.value},{default:()=>e}))),i=(null===(t=r.overflowedIndicator)||void 0===t?void 0:t.call(r))||$(hg,null,null);return m($(Uu,Te(Te({},u),{},{onMousedown:e.onMousedown,prefixCls:`${v.value}-overflow`,component:"ul",itemComponent:Gg,class:[L.value,u.class,g.value],role:"menu",id:e.id,data:l(n),renderRawItem:e=>e,renderRawRest:e=>{const t=e.length,r=t?n.slice(-t):null;return $(c,null,[$(oy,{eventKey:Fg,key:Fg,title:i,disabled:o,internalPopupClose:0===t},{default:()=>r}),$(Vg,null,{default:()=>[$(oy,{eventKey:Fg,key:Fg,title:i,disabled:o,internalPopupClose:0===t},{default:()=>r})]})])},maxCount:"horizontal"!==D.value||e.disabledOverflow?Uu.INVALIDATE:Uu.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:e=>{X.value=e}}),{default:()=>[$(T,{to:"body"},{default:()=>[$("div",{style:{display:"none"},"aria-hidden":!0},[$(Vg,null,{default:()=>[l(q())]})])]})]}))}}});function $y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}xy.install=function(e){return e.component(xy.name,xy),e.component(Gg.name,Gg),e.component(oy.name,oy),e.component(uy.name,uy),e.component(sy.name,sy),e},xy.Item=Gg,xy.Divider=uy,xy.SubMenu=oy,xy.ItemGroup=sy;const Cy=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),Sy=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),Oy=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":ze({},Cy(Dr(e,{inputBorderHoverColor:e.colorBorder})))}),ky=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:o,borderRadiusLG:r,inputPaddingHorizontalLG:l}=e;return{padding:`${t}px ${l}px`,fontSize:n,lineHeight:o,borderRadius:r}},Py=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Iy=(e,t)=>{const{componentCls:n,colorError:o,colorWarning:r,colorErrorOutline:l,colorWarningOutline:i,colorErrorBorderHover:a,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:a},"&:focus, &-focused":ze({},Sy(Dr(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:l}))),[`${n}-prefix`]:{color:o}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":ze({},Sy(Dr(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix`]:{color:r}}}},Ey=e=>ze(ze({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},(e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}))(e.colorTextPlaceholder)),{"&:hover":ze({},Cy(e)),"&:focus, &-focused":ze({},Sy(e)),"&-disabled, &[disabled]":ze({},Oy(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":ze({},ky(e)),"&-sm":ze({},Py(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),jy=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:ze({},ky(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:ze({},Py(e)),[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:ze(ze({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}),[`&&-sm ${n}-btn`]:{fontSize:e.fontSizeSM,height:e.controlHeightSM,lineHeight:"normal"},[`&&-lg ${n}-btn`]:{fontSize:e.fontSizeLG,height:e.controlHeightLG,lineHeight:"normal"},[`&&-lg ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightLG}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:e.controlHeightLG-2+"px"},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightLG}px`}},[`&&-sm ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightSM}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:e.controlHeightSM-2+"px"},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightSM}px`}}}},Ay=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o}=e,r=(n-2*o-16)/2;return{[t]:ze(ze(ze(ze({},Pr(e)),Ey(e)),Iy(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:r,paddingBottom:r}}})}},My=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${t}-clear-icon`]:{position:"absolute",insetBlockStart:e.paddingXS,insetInlineEnd:e.paddingXS,zIndex:1}}}},Ty=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:l,colorIconHover:i,iconCls:a}=e;return{[`${t}-affix-wrapper`]:ze(ze(ze(ze(ze({},Ey(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:ze(ze({},Cy(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),My(e)),{[`${a}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:i}}}),Iy(e,`${t}-affix-wrapper`))}},zy=e=>{const{componentCls:t,colorError:n,colorSuccess:o,borderRadiusLG:r,borderRadiusSM:l}=e;return{[`${t}-group`]:ze(ze(ze({},Pr(e)),jy(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r}},"&-sm":{[`${t}-group-addon`]:{borderRadius:l}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon:last-child`]:{color:o,borderColor:o}}}})}},Dy=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${o}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${o}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${o}-button`]:{height:e.controlHeightLG},[`&-small ${o}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function Ry(e){return Dr(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const By=e=>{const{componentCls:t,inputPaddingHorizontal:n,paddingLG:o}=e,r=`${t}-textarea`;return{[r]:{position:"relative",[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating":{[`&${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:o}}},"&-show-count":{[`> ${t}`]:{height:"100%"},"&::after":{color:e.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}},Ny=Mr("Input",(e=>{const t=Ry(e);return[Ay(t),By(t),Ty(t),zy(t),Dy(t),em(t)]})),Hy=()=>{const e=b(new Map);return H((()=>{e.value=new Map})),[t=>n=>{e.value.set(t,n)},e]};var Fy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function Ly(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){_y(e,t,n[t])}))}return e}function _y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wy=function(e,t){var n=Ly({},e,t.attrs);return $(yd,Ly({},n,{icon:Fy}),null)};Wy.displayName="PlusOutlined",Wy.inheritAttrs=!1;const Vy="__RC_CASCADER_SPLIT__",Xy="SHOW_PARENT",Ky="SHOW_CHILD";function qy(e){return e.join(Vy)}function Gy(e){return e.map(qy)}function Uy(e,t){var n,o;return null!==(n=e.isLeaf)&&void 0!==n?n:!(null!==(o=e[t.children])&&void 0!==o&&o.length)}function Yy(e){const t=e.parentElement;if(!t)return;const n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}function Zy(e,t){return e??t}function Qy(e){let{initWrapper:t,processEntity:n,onProcessFinished:o,externalGetKey:r,childrenPropName:l,fieldNames:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=r||(arguments.length>2?arguments[2]:void 0),s={},u={};let c={posEntities:s,keyEntities:u};return t&&(c=t(c)||c),function(e,t,n){let o={};o="object"==typeof n?n:{externalGetKey:n},o=o||{};const{childrenPropName:r,externalGetKey:l,fieldNames:i}=o,{key:a,children:s}=function(e){const{title:t,_title:n,key:o,children:r}=e||{},l=t||"title";return{title:l,_title:n||[l],key:o||"key",children:r||"children"}}(i),u=r||s;let c;l?"string"==typeof l?c=e=>e[l]:"function"==typeof l&&(c=e=>l(e)):c=(e,t)=>Zy(e[a],t),function n(o,r,l,i){const a=o?o[u]:e,s=o?function(e,t){return`${e}-${t}`}(l.pos,r):"0",d=o?[...i,o]:[];if(o){const e=c(o,s),n={node:o,index:r,pos:s,key:e,parentPos:l.node?l.pos:null,level:l.level+1,nodes:d};t(n)}a&&a.forEach(((e,t)=>{n(e,t,{node:o,pos:s,level:l?l.level+1:-1},d)}))}(null)}(e,(e=>{const{node:t,index:o,pos:r,key:l,parentPos:i,level:a,nodes:d}=e,p={node:t,nodes:d,index:o,key:l,pos:r,level:a},f=Zy(l,r);s[r]=p,u[f]=p,p.parent=s[i],p.parent&&(p.parent.children=p.parent.children||[],p.parent.children.push(p)),n&&n(p,c)}),{externalGetKey:a,childrenPropName:l,fieldNames:i}),o&&o(c),c}const Jy="__rc_cascader_search_mark__",eb=(e,t,n)=>{let{label:o}=n;return t.some((t=>String(t[o]).toLowerCase().includes(e.toLowerCase())))},tb=e=>{let{path:t,fieldNames:n}=e;return t.map((e=>e[n.label])).join(" / ")};function nb(e,t,n){const o=new Set(e);return e.filter((e=>{const r=t[e],l=r?r.parent:null,i=r?r.children:null;return n===Ky?!(i&&i.some((e=>e.key&&o.has(e.key)))):!(l&&!l.node.disabled&&o.has(l.key))}))}function ob(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var r;let l=t;const i=[];for(let t=0;t<e.length;t+=1){const a=e[t],s=null==l?void 0:l.findIndex((e=>{const t=e[n.value];return o?String(t)===String(a):t===a})),u=-1!==s?null==l?void 0:l[s]:null;i.push({value:null!==(r=null==u?void 0:u[n.value])&&void 0!==r?r:a,index:s,option:u}),l=null==u?void 0:u[n.children]}return i}function rb(e,t){const n=new Set;return e.forEach((e=>{t.has(e)||n.add(e)})),n}function lb(e){const{disabled:t,disableCheckbox:n,checkable:o}=e||{};return!(!t&&!n)||!1===o}function ib(e,t,n,o,r,l){let i;i=lb;const a=new Set(e.filter((e=>!!n[e])));let s;return s=!0===t?function(e,t,n,o){const r=new Set(e),l=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach((e=>{const{key:t,node:n,children:l=[]}=e;r.has(t)&&!o(n)&&l.filter((e=>!o(e.node))).forEach((e=>{r.add(e.key)}))}));const i=new Set;for(let e=n;e>=0;e-=1)(t.get(e)||new Set).forEach((e=>{const{parent:t,node:n}=e;if(o(n)||!e.parent||i.has(e.parent.key))return;if(o(e.parent.node))return void i.add(t.key);let a=!0,s=!1;(t.children||[]).filter((e=>!o(e.node))).forEach((e=>{let{key:t}=e;const n=r.has(t);a&&!n&&(a=!1),!s&&(n||l.has(t))&&(s=!0)})),a&&r.add(t.key),s&&l.add(t.key),i.add(t.key)}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(rb(l,r))}}(a,r,o,i):function(e,t,n,o,r){const l=new Set(e);let i=new Set(t);for(let e=0;e<=o;e+=1)(n.get(e)||new Set).forEach((e=>{const{key:t,node:n,children:o=[]}=e;!l.has(t)&&!i.has(t)&&!r(n)&&o.filter((e=>!r(e.node))).forEach((e=>{l.delete(e.key)}))}));i=new Set;const a=new Set;for(let e=o;e>=0;e-=1)(n.get(e)||new Set).forEach((e=>{const{parent:t,node:n}=e;if(r(n)||!e.parent||a.has(e.parent.key))return;if(r(e.parent.node))return void a.add(t.key);let o=!0,s=!1;(t.children||[]).filter((e=>!r(e.node))).forEach((e=>{let{key:t}=e;const n=l.has(t);o&&!n&&(o=!1),!s&&(n||i.has(t))&&(s=!0)})),o||l.delete(t.key),s&&i.add(t.key),a.add(t.key)}));return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(rb(i,l))}}(a,t.halfCheckedKeys,r,o,i),s}const ab=Symbol("CascaderContextKey"),sb=()=>o(ab),ub=(e,t,o,r,l,i)=>{const a=ac(),s=n((()=>"rtl"===a.direction)),[u,c,d]=[b([]),b(),b([])];w((()=>{let e=-1,n=t.value;const l=[],i=[],a=r.value.length;for(let t=0;t<a&&n;t+=1){const a=n.findIndex((e=>e[o.value.value]===r.value[t]));if(-1===a)break;e=a,l.push(e),i.push(r.value[t]),n=n[e][o.value.children]}let s=t.value;for(let e=0;e<l.length-1;e+=1)s=s[l[e]][o.value.children];[u.value,c.value,d.value]=[i,e,s]}));const p=e=>{l(e)},f=()=>{if(u.value.length>1){const e=u.value.slice(0,-1);p(e)}else a.toggleOpen(!1)},v=()=>{var e;const t=((null===(e=d.value[c.value])||void 0===e?void 0:e[o.value.children])||[]).find((e=>!e.disabled));if(t){const e=[...u.value,t[o.value.value]];p(e)}};e.expose({onKeydown:e=>{const{which:t}=e;switch(t){case ju.UP:case ju.DOWN:{let e=0;t===ju.UP?e=-1:t===ju.DOWN&&(e=1),0!==e&&(e=>{const t=d.value.length;let n=c.value;-1===n&&e<0&&(n=t);for(let r=0;r<t;r+=1){n=(n+e+t)%t;const r=d.value[n];if(r&&!r.disabled){const e=r[o.value.value],t=u.value.slice(0,-1).concat(e);return void p(t)}}})(e);break}case ju.LEFT:s.value?v():f();break;case ju.RIGHT:s.value?f():v();break;case ju.BACKSPACE:a.searchValue||f();break;case ju.ENTER:if(u.value.length){const e=d.value[c.value],t=(null==e?void 0:e[Jy])||[];t.length?i(t.map((e=>e[o.value.value])),t[t.length-1]):i(u.value,e)}break;case ju.ESC:a.toggleOpen(!1),open&&e.stopPropagation()}},onKeyup:()=>{}})};function cb(e){let{prefixCls:t,checked:n,halfChecked:o,disabled:r,onClick:l}=e;const{customSlots:i,checkable:a}=sb(),s=!1!==a.value?i.value.checkable:a.value,u="function"==typeof s?s():"boolean"==typeof s?null:s;return $("span",{class:{[t]:!0,[`${t}-checked`]:n,[`${t}-indeterminate`]:!n&&o,[`${t}-disabled`]:r},onClick:l},[u])}cb.props=["prefixCls","checked","halfChecked","disabled","onClick"],cb.displayName="Checkbox",cb.inheritAttrs=!1;const db="__cascader_fix_label__";function pb(e){let{prefixCls:t,multiple:n,options:o,activeValue:r,prevValuePath:l,onToggleOpen:i,onSelect:a,onActive:s,checkedSet:u,halfCheckedSet:c,loadingKeys:d,isSelectable:p}=e;var f,v,m,h,g,y;const b=`${t}-menu`,w=`${t}-menu-item`,{fieldNames:x,changeOnSelect:C,expandTrigger:S,expandIcon:O,loadingIcon:k,dropdownMenuColumnStyle:P,customSlots:I}=sb(),E=null!==(f=O.value)&&void 0!==f?f:null===(m=(v=I.value).expandIcon)||void 0===m?void 0:m.call(v),j=null!==(h=k.value)&&void 0!==h?h:null===(y=(g=I.value).loadingIcon)||void 0===y?void 0:y.call(g),A="hover"===S.value;return $("ul",{class:b,role:"menu"},[o.map((e=>{var o;const{disabled:f}=e,v=e[Jy],m=null!==(o=e[db])&&void 0!==o?o:e[x.value.label],h=e[x.value.value],g=Uy(e,x.value),y=v?v.map((e=>e[x.value.value])):[...l,h],b=qy(y),S=d.includes(b),O=u.has(b),k=c.has(b),I=()=>{!f&&(!A||!g)&&s(y)},M=()=>{p(e)&&a(y,g)};let T;return"string"==typeof e.title?T=e.title:"string"==typeof m&&(T=m),$("li",{key:b,class:[w,{[`${w}-expand`]:!g,[`${w}-active`]:r===h,[`${w}-disabled`]:f,[`${w}-loading`]:S}],style:P.value,role:"menuitemcheckbox",title:T,"aria-checked":O,"data-path-key":b,onClick:()=>{I(),(!n||g)&&M()},onDblclick:()=>{C.value&&i(!1)},onMouseenter:()=>{A&&I()},onMousedown:e=>{e.preventDefault()}},[n&&$(cb,{prefixCls:`${t}-checkbox`,checked:O,halfChecked:k,disabled:f,onClick:e=>{e.stopPropagation(),M()}},null),$("div",{class:`${w}-content`},[m]),!S&&E&&!g&&$("div",{class:`${w}-expand-icon`},[Ji(E)]),S&&j&&$("div",{class:`${w}-loading-icon`},[Ji(j)])])}))])}pb.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"],pb.displayName="Column",pb.inheritAttrs=!1;const fb=l({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){const{attrs:o,slots:r}=t,l=ac(),a=b(),u=n((()=>"rtl"===l.direction)),{options:c,values:d,halfValues:p,fieldNames:f,changeOnSelect:v,onSelect:m,searchOptions:g,dropdownPrefixCls:y,loadData:x,expandTrigger:C,customSlots:S}=sb(),O=n((()=>y.value||l.prefixCls)),k=s([]);w((()=>{k.value.length&&k.value.forEach((e=>{const t=function(e){return e.split(Vy)}(e),n=ob(t,c.value,f.value,!0).map((e=>{let{option:t}=e;return t})),o=n[n.length-1];(!o||o[f.value.children]||Uy(o,f.value))&&(k.value=k.value.filter((t=>t!==e)))}))}));const P=n((()=>new Set(Gy(d.value)))),I=n((()=>new Set(Gy(p.value)))),[E,j]=(()=>{const e=ac(),{values:t}=sb(),[n,o]=Dc([]);return i((()=>e.open),(()=>{if(e.open&&!e.multiple){const e=t.value[0];o(e||[])}}),{immediate:!0}),[n,o]})(),A=e=>{j(e),(e=>{if(!x.value||l.searchValue)return;const t=ob(e,c.value,f.value).map((e=>{let{option:t}=e;return t})),n=t[t.length-1];if(n&&!Uy(n,f.value)){const n=qy(e);k.value=[...k.value,n],x.value(t)}})(e)},M=e=>{const{disabled:t}=e,n=Uy(e,f.value);return!t&&(n||v.value||l.multiple)},T=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];m(e),!l.multiple&&(t||v.value&&("hover"===C.value||n))&&l.toggleOpen(!1)},z=n((()=>l.searchValue?g.value:c.value)),D=n((()=>{const e=[{options:z.value}];let t=z.value;for(let n=0;n<E.value.length;n+=1){const o=E.value[n],r=t.find((e=>e[f.value.value]===o)),l=null==r?void 0:r[f.value.children];if(null==l||!l.length)break;t=l,e.push({options:l})}return e}));ub(t,z,f,E,A,((e,t)=>{M(t)&&T(e,Uy(t,f.value),!0)}));const R=e=>{e.preventDefault()};return h((()=>{i(E,(e=>{var t;for(let n=0;n<e.length;n+=1){const o=qy(e.slice(0,n+1)),r=null===(t=a.value)||void 0===t?void 0:t.querySelector(`li[data-path-key="${o.replace(/\\{0,2}"/g,'\\"')}"]`);r&&Yy(r)}}),{flush:"post",immediate:!0})})),()=>{var e,t,n,i,s;const{notFoundContent:c=(null===(e=r.notFoundContent)||void 0===e?void 0:e.call(r))||(null===(n=(t=S.value).notFoundContent)||void 0===n?void 0:n.call(t)),multiple:d,toggleOpen:p}=l,v=!(null!==(s=null===(i=D.value[0])||void 0===i?void 0:i.options)&&void 0!==s&&s.length),m=[{[f.value.value]:"__EMPTY__",[db]:c,disabled:!0}],h=ze(ze({},o),{multiple:!v&&d,onSelect:T,onActive:A,onToggleOpen:p,checkedSet:P.value,halfCheckedSet:I.value,loadingKeys:k.value,isSelectable:M}),g=(v?[{options:m}]:D.value).map(((e,t)=>{const n=E.value.slice(0,t),o=E.value[t];return $(pb,Te(Te({key:t},h),{},{prefixCls:O.value,options:e.options,prevValuePath:n,activeValue:o}),null)}));return $("div",{class:[`${O.value}-menus`,{[`${O.value}-menu-empty`]:v,[`${O.value}-rtl`]:u.value}],onMousedown:R,ref:a},[g])}}});function vb(){return ze(ze({},ze(ze({},tl(cc(),["tokenSeparators","mode","showSearch"])),{id:String,prefixCls:String,fieldNames:ie(),children:Array,value:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array]},changeOnSelect:{type:Boolean,default:void 0},displayRender:Function,checkable:{type:Boolean,default:void 0},showCheckedStrategy:{type:String,default:Xy},showSearch:{type:[Boolean,Object],default:void 0},searchValue:String,onSearch:Function,expandTrigger:String,options:Array,dropdownPrefixCls:String,loadData:Function,popupVisible:{type:Boolean,default:void 0},dropdownClassName:String,dropdownMenuColumnStyle:{type:Object,default:void 0},popupStyle:{type:Object,default:void 0},dropdownStyle:{type:Object,default:void 0},popupPlacement:String,placement:String,onPopupVisibleChange:Function,onDropdownVisibleChange:Function,expandIcon:Dl.any,loadingIcon:Dl.any})),{onChange:Function,customSlots:Object})}function mb(e){return e?function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?e:(0===e.length?[]:[e]).map((e=>Array.isArray(e)?e:[e])):[]}const hb=l({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:yt(vb(),{}),setup(e,t){let{attrs:o,expose:l,slots:i}=t;const a=Ac(E(e,"id")),u=n((()=>!!e.checkable)),[c,d]=zc(e.defaultValue,{value:n((()=>e.value)),postState:mb}),p=n((()=>function(e){const{label:t,value:n,children:o}=e||{},r=n||"value";return{label:t||"label",value:r,key:r,children:o||"children"}}(e.fieldNames))),f=n((()=>e.options||[])),v=((e,t)=>n((()=>Qy(e.value,{fieldNames:t.value,initWrapper:e=>ze(ze({},e),{pathKeyEntities:{}}),processEntity:(e,n)=>{const o=e.nodes.map((e=>e[t.value.value])).join(Vy);n.pathKeyEntities[o]=e,e.key=o}}).pathKeyEntities)))(f,p),m=e=>{const t=v.value;return e.map((e=>{const{nodes:n}=t[e];return n.map((e=>e[p.value.value]))}))},[h,g]=zc("",{value:n((()=>e.searchValue)),postState:e=>e||""}),y=(t,n)=>{g(t),"blur"!==n.source&&e.onSearch&&e.onSearch(t)},{showSearch:x,searchConfig:C}=function(e){const t=s(!1),n=b({});return w((()=>{if(!e.value)return t.value=!1,void(n.value={});let o={matchInputWidth:!0,limit:50};e.value&&"object"==typeof e.value&&(o=ze(ze({},o),e.value)),o.limit<=0&&delete o.limit,t.value=!0,n.value=o})),{showSearch:t,searchConfig:n}}(E(e,"showSearch")),S=((e,t,o,r,l,i)=>n((()=>{const{filter:n=eb,render:a=tb,limit:s=50,sort:u}=l.value,c=[];return e.value?(function t(l,d){l.forEach((l=>{if(!u&&s>0&&c.length>=s)return;const p=[...d,l],f=l[o.value.children];(!f||0===f.length||i.value)&&n(e.value,p,{label:o.value.label})&&c.push(ze(ze({},l),{[o.value.label]:a({inputValue:e.value,path:p,prefixCls:r.value,fieldNames:o.value}),[Jy]:p})),f&&t(l[o.value.children],p)}))}(t.value,[]),u&&c.sort(((t,n)=>u(t[Jy],n[Jy],e.value,o.value))),s>0?c.slice(0,s):c):[]})))(h,f,p,n((()=>e.dropdownPrefixCls||e.prefixCls)),C,E(e,"changeOnSelect")),O=((e,t,o)=>n((()=>{const n=[],r=[];return o.value.forEach((o=>{ob(o,e.value,t.value).every((e=>e.option))?r.push(o):n.push(o)})),[r,n]})))(f,p,c),[k,P,I]=[b([]),b([]),b([])],{maxLevel:j,levelEntities:A}=function(e){const t=b(0),n=s();return w((()=>{const o=new Map;let r=0;const l=e.value||{};for(const e in l)if(Object.prototype.hasOwnProperty.call(l,e)){const t=l[e],{level:n}=t;let i=o.get(n);i||(i=new Set,o.set(n,i)),i.add(t),r=Math.max(r,n)}t.value=r,n.value=o})),{maxLevel:t,levelEntities:n}}(v);w((()=>{const[e,t]=O.value;if(!u.value||!c.value.length)return void([k.value,P.value,I.value]=[e,[],t]);const n=Gy(e),o=v.value,{checkedKeys:r,halfCheckedKeys:l}=ib(n,!0,o,j.value,A.value);[k.value,P.value,I.value]=[m(r),m(l),t]}));const M=((e,t,o,r,l)=>n((()=>{const n=l.value||(e=>{let{labels:t}=e;const n=r.value?t.slice(-1):t;return n.every((e=>["string","number"].includes(typeof e)))?n.join(" / "):n.reduce(((e,t,n)=>{const o=Pt(t)?Ji(t,{key:n}):t;return 0===n?[o]:[...e," / ",o]}),[])});return e.value.map((e=>{const r=ob(e,t.value,o.value),l=n({labels:r.map((e=>{let{option:t,value:n}=e;var r;return null!==(r=null==t?void 0:t[o.value.label])&&void 0!==r?r:n})),selectedOptions:r.map((e=>{let{option:t}=e;return t}))}),i=qy(e);return{label:l,value:i,key:i,valueCells:e}}))})))(n((()=>{const t=nb(Gy(k.value),v.value,e.showCheckedStrategy);return[...I.value,...m(t)]})),f,p,u,E(e,"displayRender")),T=t=>{if(d(t),e.onChange){const n=mb(t),o=n.map((e=>ob(e,f.value,p.value).map((e=>e.option)))),r=u.value?n:n[0],l=u.value?o:o[0];e.onChange(r,l)}},z=t=>{if(g(""),u.value){const n=qy(t),o=Gy(k.value),r=Gy(P.value),l=o.includes(n),i=I.value.some((e=>qy(e)===n));let a=k.value,s=I.value;if(i&&!l)s=I.value.filter((e=>qy(e)!==n));else{const t=l?o.filter((e=>e!==n)):[...o,n];let i;({checkedKeys:i}=ib(t,!l||{halfCheckedKeys:r},v.value,j.value,A.value));const s=nb(i,v.value,e.showCheckedStrategy);a=m(s)}T([...s,...a])}else T(t)},D=(e,t)=>{if("clear"===t.type)return void T([]);const{valueCells:n}=t.values[0];z(n)},B=n((()=>void 0!==e.open?e.open:e.popupVisible)),N=n((()=>e.dropdownStyle||e.popupStyle||{})),H=n((()=>e.placement||e.popupPlacement)),F=t=>{var n,o;null===(n=e.onDropdownVisibleChange)||void 0===n||n.call(e,t),null===(o=e.onPopupVisibleChange)||void 0===o||o.call(e,t)},{changeOnSelect:L,checkable:_,dropdownPrefixCls:W,loadData:V,expandTrigger:X,expandIcon:K,loadingIcon:q,dropdownMenuColumnStyle:G,customSlots:U,dropdownClassName:Y}=R(e);(e=>{r(ab,e)})({options:f,fieldNames:p,values:k,halfValues:P,changeOnSelect:L,onSelect:z,checkable:_,searchOptions:S,dropdownPrefixCls:W,loadData:V,expandTrigger:X,expandIcon:K,loadingIcon:q,dropdownMenuColumnStyle:G,customSlots:U});const Z=b();l({focus(){var e;null===(e=Z.value)||void 0===e||e.focus()},blur(){var e;null===(e=Z.value)||void 0===e||e.blur()},scrollTo(e){var t;null===(t=Z.value)||void 0===t||t.scrollTo(e)}});const Q=n((()=>tl(e,["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","customSlots","showCheckedStrategy","children"])));return()=>{const t=!(h.value?S.value:f.value).length,{dropdownMatchSelectWidth:n=!1}=e,r=h.value&&C.value.matchInputWidth||t?{}:{minWidth:"auto"};return $(pc,Te(Te(Te({},Q.value),o),{},{ref:Z,id:a,prefixCls:e.prefixCls,dropdownMatchSelectWidth:n,dropdownStyle:ze(ze({},N.value),r),displayValues:M.value,onDisplayValuesChange:D,mode:u.value?"multiple":void 0,searchValue:h.value,onSearch:y,showSearch:x.value,OptionList:fb,emptyOptions:t,open:B.value,dropdownClassName:Y.value,placement:H.value,onDropdownVisibleChange:F,getRawInputElement:()=>{var e;return null===(e=i.default)||void 0===e?void 0:e.call(i)}}),i)}}});var gb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function yb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){bb(e,t,n[t])}))}return e}function bb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wb=function(e,t){var n=yb({},e,t.attrs);return $(yd,yb({},n,{icon:gb}),null)};wb.displayName="LeftOutlined",wb.inheritAttrs=!1;function xb(e,t){return(e=>{if(rn()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some((e=>e in n.style))}return!1})(e)}let $b;const Cb=()=>{if(!rn()||!window.document.documentElement)return!1;if(void 0!==$b)return $b;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),$b=1===e.scrollHeight,document.body.removeChild(e),$b},Sb=Symbol("rowContextKey"),Ob=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around ":{justifyContent:"space-around"},"&-space-evenly ":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},kb=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Pb=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:o}=e,r={};for(let e=o;e>=0;e--)0===e?(r[`${n}${t}-${e}`]={display:"none"},r[`${n}-push-${e}`]={insetInlineStart:"auto"},r[`${n}-pull-${e}`]={insetInlineEnd:"auto"},r[`${n}${t}-push-${e}`]={insetInlineStart:"auto"},r[`${n}${t}-pull-${e}`]={insetInlineEnd:"auto"},r[`${n}${t}-offset-${e}`]={marginInlineEnd:0},r[`${n}${t}-order-${e}`]={order:0}):(r[`${n}${t}-${e}`]={display:"block",flex:`0 0 ${e/o*100}%`,maxWidth:e/o*100+"%"},r[`${n}${t}-push-${e}`]={insetInlineStart:e/o*100+"%"},r[`${n}${t}-pull-${e}`]={insetInlineEnd:e/o*100+"%"},r[`${n}${t}-offset-${e}`]={marginInlineStart:e/o*100+"%"},r[`${n}${t}-order-${e}`]={order:e});return r})(e,t),Ib=Mr("Grid",(e=>[Ob(e)])),Eb=Mr("Grid",(e=>{const t=Dr(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[kb(t),Pb(t,""),Pb(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:ze({},Pb(e,n))}))(t,n[e],e))).reduce(((e,t)=>ze(ze({},e),t)),{})]})),jb=l({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:{align:pe([String,Object]),justify:pe([String,Object]),prefixCls:String,gutter:pe([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}},setup(e,t){let{slots:o,attrs:l}=t;const{prefixCls:i,direction:a}=el("row",e),[u,c]=Ib(i);let d;const p=Rm(),f=b({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),v=b({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),m=t=>n((()=>{if("string"==typeof e[t])return e[t];if("object"!=typeof e[t])return"";for(let n=0;n<Dm.length;n++){const o=Dm[n];if(!v.value[o])continue;const r=e[t][o];if(void 0!==r)return r}return""})),g=m("align"),y=m("justify"),w=(()=>{const e=s(!1);return h((()=>{e.value=Cb()})),e})();h((()=>{d=p.value.subscribe((t=>{v.value=t;const n=e.gutter||0;(!Array.isArray(n)&&"object"==typeof n||Array.isArray(n)&&("object"==typeof n[0]||"object"==typeof n[1]))&&(f.value=t)}))})),x((()=>{p.value.unsubscribe(d)}));const C=n((()=>{const t=[void 0,void 0],{gutter:n=0}=e;return(Array.isArray(n)?n:[n,void 0]).forEach(((e,n)=>{if("object"==typeof e)for(let o=0;o<Dm.length;o++){const r=Dm[o];if(f.value[r]&&void 0!==e[r]){t[n]=e[r];break}}else t[n]=e})),t}));(e=>{r(Sb,e)})({gutter:C,supportFlexGap:w,wrap:n((()=>e.wrap))});const S=n((()=>Ge(i.value,{[`${i.value}-no-wrap`]:!1===e.wrap,[`${i.value}-${y.value}`]:y.value,[`${i.value}-${g.value}`]:g.value,[`${i.value}-rtl`]:"rtl"===a.value},l.class,c.value))),O=n((()=>{const e=C.value,t={},n=null!=e[0]&&e[0]>0?e[0]/-2+"px":void 0,o=null!=e[1]&&e[1]>0?e[1]/-2+"px":void 0;return n&&(t.marginLeft=n,t.marginRight=n),w.value?t.rowGap=`${e[1]}px`:o&&(t.marginTop=o,t.marginBottom=o),t}));return()=>{var e;return u($("div",Te(Te({},l),{},{class:S.value,style:ze(ze({},O.value),l.style)}),[null===(e=o.default)||void 0===e?void 0:e.call(o)]))}}});function Ab(){return Ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ab.apply(this,arguments)}function Mb(e){return(Mb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tb(e,t){return(Tb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function zb(e,t,n){return(zb=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}()?Reflect.construct.bind():function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&Tb(r,n.prototype),r}).apply(null,arguments)}function Db(e){var t="function"==typeof Map?new Map:void 0;return Db=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return zb(e,arguments,Mb(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Tb(n,e)},Db(e)}var Rb=/%[sdj%]/g;function Bb(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function Nb(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=0,l=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(Rb,(function(e){if("%%"===e)return"%";if(r>=l)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}break;default:return e}})):e}function Hb(e,t){return!!(null==e||"array"===t&&Array.isArray(e)&&!e.length||function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)&&"string"==typeof e&&!e)}function Fb(e,t,n){var o=0,r=e.length;!function l(i){if(i&&i.length)n(i);else{var a=o;o+=1,a<r?t(e[a],l):n([])}}([])}typeof process<"u"&&process.env;var Lb=function(e){function t(t,n){var o;return(o=e.call(this,"Async Validation Error")||this).errors=t,o.fields=n,o}return function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Tb(e,t)}(t,e),t}(Db(Error));function _b(e,t,n,o,r){if(t.first){var l=new Promise((function(t,l){var i=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);Fb(i,n,(function(e){return o(e),e.length?l(new Lb(e,Bb(e))):t(r)}))}));return l.catch((function(e){return e})),l}var i=!0===t.firstFields?Object.keys(e):t.firstFields||[],a=Object.keys(e),s=a.length,u=0,c=[],d=new Promise((function(t,l){var d=function(e){if(c.push.apply(c,e),++u===s)return o(c),c.length?l(new Lb(c,Bb(c))):t(r)};a.length||(o(c),t(r)),a.forEach((function(t){var o=e[t];-1!==i.indexOf(t)?Fb(o,n,d):function(e,t,n){var o=[],r=0,l=e.length;function i(e){o.push.apply(o,e||[]),++r===l&&n(o)}e.forEach((function(e){t(e,i)}))}(o,n,d)}))}));return d.catch((function(e){return e})),d}function Wb(e,t){return function(n){var o;return o=e.fullFields?function(e,t){for(var n=e,o=0;o<t.length;o++){if(null==n)return n;n=n[t[o]]}return n}(t,e.fullFields):t[n.field||e.fullField],function(e){return!(!e||void 0===e.message)}(n)?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:"function"==typeof n?n():n,fieldValue:o,field:n.field||e.fullField}}}function Vb(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"==typeof o&&"object"==typeof e[n]?e[n]=Ab({},e[n],o):e[n]=o}return e}var Xb,Kb=function(e,t,n,o,r,l){e.required&&(!n.hasOwnProperty(e.field)||Hb(t,l||e.type))&&o.push(Nb(r.messages.required,e.fullField))},qb=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,Gb=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Ub={integer:function(e){return Ub.number(e)&&parseInt(e,10)===e},float:function(e){return Ub.number(e)&&!Ub.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!Ub.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(qb)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Xb)return Xb;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",r=("\n(?:\n(?:"+o+":){7}(?:"+o+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+o+":){6}(?:"+n+"|:"+o+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+o+":){5}(?::"+n+"|(?::"+o+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+o+":){4}(?:(?::"+o+"){0,1}:"+n+"|(?::"+o+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+o+":){3}(?:(?::"+o+"){0,2}:"+n+"|(?::"+o+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+o+":){2}(?:(?::"+o+"){0,3}:"+n+"|(?::"+o+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+o+":){1}(?:(?::"+o+"){0,4}:"+n+"|(?::"+o+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+o+"){0,5}:"+n+"|(?::"+o+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),l=new RegExp("(?:^"+n+"$)|(?:^"+r+"$)"),i=new RegExp("^"+n+"$"),a=new RegExp("^"+r+"$"),s=function(e){return e&&e.exact?l:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+r+t(e)+")","g")};s.v4=function(e){return e&&e.exact?i:new RegExp(""+t(e)+n+t(e),"g")},s.v6=function(e){return e&&e.exact?a:new RegExp(""+t(e)+r+t(e),"g")};var u=s.v4().source,c=s.v6().source;return Xb=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+u+"|"+c+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Gb)}},Yb="enum",Zb={required:Kb,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(Nb(r.messages.whitespace,e.fullField))},type:function(e,t,n,o,r){if(e.required&&void 0===t)Kb(e,t,n,o,r);else{var l=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(l)>-1?Ub[l](t)||o.push(Nb(r.messages.types[l],e.fullField,e.type)):l&&typeof t!==e.type&&o.push(Nb(r.messages.types[l],e.fullField,e.type))}},range:function(e,t,n,o,r){var l="number"==typeof e.len,i="number"==typeof e.min,a="number"==typeof e.max,s=t,u=null,c="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(c?u="number":d?u="string":p&&(u="array"),!u)return!1;p&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),l?s!==e.len&&o.push(Nb(r.messages[u].len,e.fullField,e.len)):i&&!a&&s<e.min?o.push(Nb(r.messages[u].min,e.fullField,e.min)):a&&!i&&s>e.max?o.push(Nb(r.messages[u].max,e.fullField,e.max)):i&&a&&(s<e.min||s>e.max)&&o.push(Nb(r.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[Yb]=Array.isArray(e[Yb])?e[Yb]:[],-1===e[Yb].indexOf(t)&&o.push(Nb(r.messages[Yb],e.fullField,e[Yb].join(", ")))},pattern:function(e,t,n,o,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(Nb(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(Nb(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Qb=function(e,t,n,o,r){var l=e.type,i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t,l)&&!e.required)return n();Zb.required(e,t,o,i,r,l),Hb(t,l)||Zb.type(e,t,o,i,r)}n(i)},Jb={string:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t,"string")&&!e.required)return n();Zb.required(e,t,o,l,r,"string"),Hb(t,"string")||(Zb.type(e,t,o,l,r),Zb.range(e,t,o,l,r),Zb.pattern(e,t,o,l,r),!0===e.whitespace&&Zb.whitespace(e,t,o,l,r))}n(l)},method:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t)&&!e.required)return n();Zb.required(e,t,o,l,r),void 0!==t&&Zb.type(e,t,o,l,r)}n(l)},number:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Hb(t)&&!e.required)return n();Zb.required(e,t,o,l,r),void 0!==t&&(Zb.type(e,t,o,l,r),Zb.range(e,t,o,l,r))}n(l)},boolean:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t)&&!e.required)return n();Zb.required(e,t,o,l,r),void 0!==t&&Zb.type(e,t,o,l,r)}n(l)},regexp:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t)&&!e.required)return n();Zb.required(e,t,o,l,r),Hb(t)||Zb.type(e,t,o,l,r)}n(l)},integer:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t)&&!e.required)return n();Zb.required(e,t,o,l,r),void 0!==t&&(Zb.type(e,t,o,l,r),Zb.range(e,t,o,l,r))}n(l)},float:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t)&&!e.required)return n();Zb.required(e,t,o,l,r),void 0!==t&&(Zb.type(e,t,o,l,r),Zb.range(e,t,o,l,r))}n(l)},array:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Zb.required(e,t,o,l,r,"array"),null!=t&&(Zb.type(e,t,o,l,r),Zb.range(e,t,o,l,r))}n(l)},object:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t)&&!e.required)return n();Zb.required(e,t,o,l,r),void 0!==t&&Zb.type(e,t,o,l,r)}n(l)},enum:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t)&&!e.required)return n();Zb.required(e,t,o,l,r),void 0!==t&&Zb.enum(e,t,o,l,r)}n(l)},pattern:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t,"string")&&!e.required)return n();Zb.required(e,t,o,l,r),Hb(t,"string")||Zb.pattern(e,t,o,l,r)}n(l)},date:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t,"date")&&!e.required)return n();var i;if(Zb.required(e,t,o,l,r),!Hb(t,"date"))i=t instanceof Date?t:new Date(t),Zb.type(e,i,o,l,r),i&&Zb.range(e,i.getTime(),o,l,r)}n(l)},url:Qb,hex:Qb,email:Qb,required:function(e,t,n,o,r){var l=[],i=Array.isArray(t)?"array":typeof t;Zb.required(e,t,o,l,r,i),n(l)},any:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Hb(t)&&!e.required)return n();Zb.required(e,t,o,l,r)}n(l)}};function ew(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var tw=ew(),nw=function(){function e(e){this.rules=null,this._messages=tw,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var o=e[n];t.rules[n]=Array.isArray(o)?o:[o]}))},t.messages=function(e){return e&&(this._messages=Vb(ew(),e)),this._messages},t.validate=function(t,n,o){var r=this;void 0===n&&(n={}),void 0===o&&(o=function(){});var l=t,i=n,a=o;if("function"==typeof i&&(a=i,i={}),!this.rules||0===Object.keys(this.rules).length)return a&&a(null,l),Promise.resolve(l);if(i.messages){var s=this.messages();s===tw&&(s=ew()),Vb(s,i.messages),i.messages=s}else i.messages=this.messages();var u={};(i.keys||Object.keys(this.rules)).forEach((function(e){var n=r.rules[e],o=l[e];n.forEach((function(n){var i=n;"function"==typeof i.transform&&(l===t&&(l=Ab({},l)),o=l[e]=i.transform(o)),(i="function"==typeof i?{validator:i}:Ab({},i)).validator=r.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=r.getType(i),u[e]=u[e]||[],u[e].push({rule:i,value:o,source:l,field:e}))}))}));var c={};return _b(u,i,(function(t,n){var o,r=t.rule,a=!("object"!==r.type&&"array"!==r.type||"object"!=typeof r.fields&&"object"!=typeof r.defaultField);function s(e,t){return Ab({},t,{fullField:r.fullField+"."+e,fullFields:r.fullFields?[].concat(r.fullFields,[e]):[e]})}function u(o){void 0===o&&(o=[]);var u=Array.isArray(o)?o:[o];!i.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==r.message&&(u=[].concat(r.message));var d=u.map(Wb(r,l));if(i.first&&d.length)return c[r.field]=1,n(d);if(a){if(r.required&&!t.value)return void 0!==r.message?d=[].concat(r.message).map(Wb(r,l)):i.error&&(d=[i.error(r,Nb(i.messages.required,r.field))]),n(d);var p={};r.defaultField&&Object.keys(t.value).map((function(e){p[e]=r.defaultField})),p=Ab({},p,t.rule.fields);var f={};Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];f[e]=n.map(s.bind(null,e))}));var v=new e(f);v.messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),v.validate(t.value,t.rule.options||i,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(a=a&&(r.required||!r.required&&t.value),r.field=t.field,r.asyncValidator)o=r.asyncValidator(r,t.value,u,t.source,i);else if(r.validator){try{o=r.validator(r,t.value,u,t.source,i)}catch(e){null==console.error||console.error(e),i.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===o?u():!1===o?u("function"==typeof r.message?r.message(r.fullField||r.field):r.message||(r.fullField||r.field)+" fails"):o instanceof Array?u(o):o instanceof Error&&u(o.message)}o&&o.then&&o.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,o=[],r={},i=0;i<e.length;i++)t=e[i],n=void 0,Array.isArray(t)?o=(n=o).concat.apply(n,t):o.push(t);o.length?(r=Bb(o),a(o,r)):a(null,l)}(e)}),l)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Jb.hasOwnProperty(e.type))throw new Error(Nb("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Jb.required:Jb[this.getType(e)]||void 0},e}();function ow(e){return null==e?[]:Array.isArray(e)?e:[e]}function rw(e,t){let n=e;for(let e=0;e<t.length;e+=1){if(null==n)return;n=n[t[e]]}return n}function lw(e,t,n,o){if(!t.length)return n;const[r,...l]=t;let i;return i=e||"number"!=typeof r?Array.isArray(e)?[...e]:ze({},e):[],o&&void 0===n&&1===l.length?delete i[r][l[0]]:i[r]=lw(i[r],l,n,o),i}function iw(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!rw(e,t.slice(0,-1))?e:lw(e,t,n,o)}function aw(e){return ow(e)}function sw(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function uw(e,t){const n=Array.isArray(e)?[...e]:ze({},e);return t&&Object.keys(t).forEach((e=>{const o=n[e],r=t[e],l=sw(o)&&sw(r);n[e]=l?uw(o,r||{}):r})),n}function cw(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.reduce(((e,t)=>uw(e,t)),e)}function dw(e,t){let n={};return t.forEach((t=>{const o=function(e,t){return rw(e,t)}(e,t);n=function(e,t,n){return iw(e,t,n,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(n,t,o)})),n}nw.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Jb[e]=t},nw.warning=function(){},nw.messages=tw,nw.validators=Jb;const pw="'${name}' is not a valid ${type}",fw={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:pw,method:pw,array:pw,object:pw,number:pw,date:pw,boolean:pw,integer:pw,float:pw,regexp:pw,email:pw,url:pw,hex:pw},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};var vw=function(e,t,n,o){return new(n||(n=Promise))((function(r,l){function i(e){try{s(o.next(e))}catch(e){l(e)}}function a(e){try{s(o.throw(e))}catch(e){l(e)}}function s(e){e.done?r(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(i,a)}s((o=o.apply(e,t||[])).next())}))};const mw=nw;function hw(e,t,n,o,r){return vw(this,void 0,void 0,(function*(){const l=ze({},n);delete l.ruleIndex,delete l.trigger;let i=null;l&&"array"===l.type&&l.defaultField&&(i=l.defaultField,delete l.defaultField);const a=new mw({[e]:[l]}),s=cw({},fw,o.validateMessages);a.messages(s);let u=[];try{yield Promise.resolve(a.validate({[e]:t},ze({},o)))}catch(e){e.errors?u=e.errors.map(((e,t)=>{let{message:n}=e;return Pt(n)?P(n,{key:`error_${t}`}):n})):(console.error(e),u=[s.default()])}if(!u.length&&i)return(yield Promise.all(t.map(((t,n)=>hw(`${e}.${n}`,t,i,o,r))))).reduce(((e,t)=>[...e,...t]),[]);const c=ze(ze(ze({},n),{name:e,enum:(n.enum||[]).join(", ")}),r);return u.map((e=>"string"==typeof e?function(e,t){return e.replace(/\$\{\w+\}/g,(e=>{const n=e.slice(2,-1);return t[n]}))}(e,c):e))}))}function gw(e,t,n,o,r,l){const i=e.join("."),a=n.map(((e,t)=>{const n=e.validator,o=ze(ze({},e),{ruleIndex:t});return n&&(o.validator=(e,t,o)=>{let r=!1;const l=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((()=>{r||o(...t)}))}));r=l&&"function"==typeof l.then&&"function"==typeof l.catch,r&&l.then((()=>{o()})).catch((e=>{o(e||" ")}))}),o})).sort(((e,t)=>{let{warningOnly:n,ruleIndex:o}=e,{warningOnly:r,ruleIndex:l}=t;return!!n==!!r?o-l:n?1:-1}));let s;if(!0===r)s=new Promise(((e,n)=>vw(this,void 0,void 0,(function*(){for(let e=0;e<a.length;e+=1){const r=a[e],s=yield hw(i,t,r,o,l);if(s.length)return void n([{errors:s,rule:r}])}e([])}))));else{const e=a.map((e=>hw(i,t,e,o,l).then((t=>({errors:t,rule:e})))));s=(r?function(e){return vw(this,void 0,void 0,(function*(){let t=0;return new Promise((n=>{e.forEach((o=>{o.then((o=>{o.errors.length&&n([o]),t+=1,t===e.length&&n([])}))}))}))}))}(e):function(e){return vw(this,void 0,void 0,(function*(){return Promise.all(e).then((e=>[].concat(...e)))}))}(e)).then((e=>Promise.reject(e)))}return s.catch((e=>e)),s}const yw=Symbol("formContextKey"),bw=e=>{r(yw,e)},ww=()=>o(yw,{name:n((()=>{})),labelAlign:n((()=>"right")),vertical:n((()=>!1)),addField:(e,t)=>{},removeField:e=>{},model:n((()=>{})),rules:n((()=>{})),colon:n((()=>{})),labelWrap:n((()=>{})),labelCol:n((()=>{})),requiredMark:n((()=>!1)),validateTrigger:n((()=>{})),onValidate:()=>{},validateMessages:n((()=>fw))}),xw=Symbol("formItemPrefixContextKey");const $w=["xs","sm","md","lg","xl","xxl"],Cw=l({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]},setup(e,t){let{slots:r,attrs:l}=t;const{gutter:i,supportFlexGap:a,wrap:s}=o(Sb,{gutter:n((()=>{})),wrap:n((()=>{})),supportFlexGap:n((()=>{}))}),{prefixCls:u,direction:c}=el("col",e),[d,p]=Eb(u),f=n((()=>{const{span:t,order:n,offset:o,push:r,pull:i}=e,a=u.value;let s={};return $w.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),s=ze(ze({},s),{[`${a}-${t}-${n.span}`]:void 0!==n.span,[`${a}-${t}-order-${n.order}`]:n.order||0===n.order,[`${a}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${a}-${t}-push-${n.push}`]:n.push||0===n.push,[`${a}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${a}-rtl`]:"rtl"===c.value})})),Ge(a,{[`${a}-${t}`]:void 0!==t,[`${a}-order-${n}`]:n,[`${a}-offset-${o}`]:o,[`${a}-push-${r}`]:r,[`${a}-pull-${i}`]:i},s,l.class,p.value)})),v=n((()=>{const{flex:t}=e,n=i.value,o={};if(n&&n[0]>0){const e=n[0]/2+"px";o.paddingLeft=e,o.paddingRight=e}if(n&&n[1]>0&&!a.value){const e=n[1]/2+"px";o.paddingTop=e,o.paddingBottom=e}return t&&(o.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(t),!1===s.value&&!o.minWidth&&(o.minWidth=0)),o}));return()=>{var e;return d($("div",Te(Te({},l),{},{class:f.value,style:[v.value,l.style]}),[null===(e=r.default)||void 0===e?void 0:e.call(r)]))}}});var Sw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{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"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};function Ow(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){kw(e,t,n[t])}))}return e}function kw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pw=function(e,t){var n=Ow({},e,t.attrs);return $(yd,Ow({},n,{icon:Sw}),null)};Pw.displayName="QuestionCircleOutlined",Pw.inheritAttrs=!1;const Iw=(e,t)=>{let{slots:n,emit:o,attrs:r}=t;var l,i,a,s,u;const{prefixCls:d,htmlFor:p,labelCol:f,labelAlign:v,colon:m,required:h,requiredMark:g}=ze(ze({},e),r),[y]=Kt("Form"),b=null!==(l=e.label)&&void 0!==l?l:null===(i=n.label)||void 0===i?void 0:i.call(n);if(!b)return null;const{vertical:w,labelAlign:x,labelCol:C,labelWrap:S,colon:O}=ww(),k=f||(null==C?void 0:C.value)||{},P=`${d}-item-label`,I=Ge(P,"left"===(v||(null==x?void 0:x.value))&&`${P}-left`,k.class,{[`${P}-wrap`]:!!S.value});let E=b;const j=!0===m||!1!==(null==O?void 0:O.value)&&!1!==m;if(j&&!w.value&&"string"==typeof b&&""!==b.trim()&&(E=b.replace(/[:|:]\s*$/,"")),e.tooltip||n.tooltip){const t=$("span",{class:`${d}-item-tooltip`},[$(sh,{title:e.tooltip},{default:()=>[$(Pw,null,null)]})]);E=$(c,null,[E,n.tooltip?null===(a=n.tooltip)||void 0===a?void 0:a.call(n,{class:`${d}-item-tooltip`}):t])}"optional"===g&&!h&&(E=$(c,null,[E,$("span",{class:`${d}-item-optional`},[(null===(s=y.value)||void 0===s?void 0:s.optional)||(null===(u=Vt.Form)||void 0===u?void 0:u.optional)])]));const A=Ge({[`${d}-item-required`]:h,[`${d}-item-required-mark-optional`]:"optional"===g,[`${d}-item-no-colon`]:!j});return $(Cw,Te(Te({},k),{},{class:I}),{default:()=>[$("label",{for:p,class:A,title:"string"==typeof b?b:"",onClick:e=>o("click",e)},[E])]})};Iw.displayName="FormItemLabel",Iw.inheritAttrs=!1;const Ew=e=>{const{componentCls:t}=e,n=`${t}-show-help`,o=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[o]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${o}-appear, &${o}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${o}-leave-active`]:{transform:"translateY(-5px)"}}}}},jw=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Aw=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Mw=e=>{const{componentCls:t}=e;return{[e.componentCls]:ze(ze(ze({},Pr(e)),jw(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":ze({},Aw(e,e.controlHeightSM)),"&-large":ze({},Aw(e,e.controlHeightLG))})}},Tw=e=>{const{formItemCls:t,iconCls:n,componentCls:o,rootPrefixCls:r}=e;return{[t]:ze(ze({},Pr(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${r}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:jv,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},zw=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${o}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},Dw=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Rw=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),Bw=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:Rw(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label,\n ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},Nw=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${o}-col-24${n}-label,\n .${o}-col-xl-24${n}-label`]:Rw(e),[`@media (max-width: ${e.screenXSMax}px)`]:[Bw(e),{[t]:{[`.${o}-col-xs-24${n}-label`]:Rw(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${o}-col-sm-24${n}-label`]:Rw(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${o}-col-md-24${n}-label`]:Rw(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${o}-col-lg-24${n}-label`]:Rw(e)}}}},Hw=Mr("Form",((e,t)=>{let{rootPrefixCls:n}=t;const o=Dr(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[Mw(o),Tw(o),Ew(o),zw(o),Dw(o),Nw(o),Vv(o),jv]})),Fw=l({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:r}=t;const{prefixCls:l,status:a}=o(xw,{prefixCls:n((()=>""))}),s=n((()=>`${l.value}-item-explain`)),u=n((()=>!(!e.errors||!e.errors.length))),c=b(a.value),[,d]=Hw(l);return i([u,a],(()=>{u.value&&(c.value=a.value)})),()=>{var t,n;const o=ay(`${l.value}-show-help-item`),i=uu(`${l.value}-show-help-item`,o);return i.role="alert",i.class=[d.value,s.value,r.class,`${l.value}-show-help`],$(S,Te(Te({},su(`${l.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[O($(F,Te(Te({},i),{},{tag:"div"}),{default:()=>[null===(n=e.errors)||void 0===n?void 0:n.map(((e,t)=>$("div",{key:t,class:c.value?`${s.value}-${c.value}`:""},[e])))]}),[[A,!(null===(t=e.errors)||void 0===t||!t.length)]])]})}}}),Lw=l({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:o}=t;const l=ww(),{wrapperCol:i}=l,a=ze({},l);return delete a.labelCol,delete a.wrapperCol,bw(a),(e=>{r(xw,e)})({prefixCls:n((()=>e.prefixCls)),status:n((()=>e.status))}),()=>{var t,n,r;const{prefixCls:l,wrapperCol:a,marginBottom:s,onErrorVisibleChanged:u,help:d=(null===(t=o.help)||void 0===t?void 0:t.call(o)),errors:p=kt(null===(n=o.errors)||void 0===n?void 0:n.call(o)),extra:f=(null===(r=o.extra)||void 0===r?void 0:r.call(o))}=e,v=`${l}-item`,m=a||(null==i?void 0:i.value)||{},h=Ge(`${v}-control`,m.class);return $(Cw,Te(Te({},m),{},{class:h}),{default:()=>{var e;return $(c,null,[$("div",{class:`${v}-control-input`},[$("div",{class:`${v}-control-input-content`},[null===(e=o.default)||void 0===e?void 0:e.call(o)])]),null!==s||p.length?$("div",{style:{display:"flex",flexWrap:"nowrap"}},[$(Fw,{errors:p,help:d,class:`${v}-explain-connected`,onErrorVisibleChanged:u},null),!!s&&$("div",{style:{width:0,height:`${s}px`}},null)]):null,f?$("div",{class:`${v}-extra`},[f]):null])}})}}});oe("success","warning","error","validating","");const _w={success:km,warning:jm,error:Bd,validating:Od};function Ww(e,t,n){let o=e;const r=t;let l=0;try{for(let e=r.length;l<e-1&&(o||n);++l){const e=r[l];if(!(e in o)){if(n)throw Error("please transfer a valid name path to form item!");break}o=o[e]}if(n&&!o)throw Error("please transfer a valid name path to form item!")}catch{console.error("please transfer a valid name path to form item!")}return{o:o,k:r[l],v:o?o[r[l]]:void 0}}let Vw=0;const Xw=l({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:{htmlFor:String,prefixCls:String,label:Dl.any,help:Dl.any,extra:Dl.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:Dl.oneOf(oe("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String},slots:Object,setup(e,t){let{slots:o,attrs:l,expose:a}=t;e.prop;const u="form-item-"+ ++Vw,{prefixCls:d}=el("form",e),[p,f]=Hw(d),g=s(),y=ww(),C=n((()=>e.name||e.prop)),S=s([]),O=s(!1),k=s(),P=n((()=>aw(C.value))),E=n((()=>{if(P.value.length){const e=y.name.value,t=P.value.join("_");return e?`${e}_${t}`:`form_item_${t}`}})),j=n((()=>(()=>{const e=y.model.value;if(e&&C.value)return Ww(e,P.value,!0).v})())),A=s(Of(j.value)),M=n((()=>{let t=void 0!==e.validateTrigger?e.validateTrigger:y.validateTrigger.value;return t=void 0===t?"change":t,ow(t)})),T=n((()=>{let t=y.rules.value;const n=e.rules,o=void 0!==e.required?{required:!!e.required,trigger:M.value}:[],r=Ww(t,P.value);t=t?r.o[r.k]||r.v:[];const l=[].concat(n||t||[]);return Wf(l,(e=>e.required))?l:l.concat(o)})),z=n((()=>{const t=T.value;let n=!1;return t&&t.length&&t.every((e=>!e.required||(n=!0,!1))),n||e.required})),D=s();w((()=>{D.value=e.validateStatus}));const R=n((()=>{let t={};return"string"==typeof e.label?t.label=e.label:e.name&&(t.label=String(e.name)),e.messageVariables&&(t=ze(ze({},t),e.messageVariables)),t})),N=t=>{if(0===P.value.length)return;const{validateFirst:n=!1}=e,{triggerName:o}=t||{};let r=T.value;if(o&&(r=r.filter((e=>{const{trigger:t}=e;return!t&&!M.value.length||ow(t||M.value).includes(o)}))),!r.length)return Promise.resolve();const l=gw(P.value,j.value,r,ze({validateMessages:y.validateMessages.value},t),n,R.value);return D.value="validating",S.value=[],l.catch((e=>e)).then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if("validating"===D.value){const t=e.filter((e=>e&&e.errors.length));D.value=t.length?"error":"success",S.value=t.map((e=>e.errors)),y.onValidate(C.value,!S.value.length,S.value.length?B(S.value[0]):null)}})),l},H=()=>{N({triggerName:"blur"})},F=()=>{O.value?O.value=!1:N({triggerName:"change"})},L=()=>{D.value=e.validateStatus,O.value=!1,S.value=[]},_=()=>{var t;D.value=e.validateStatus,O.value=!0,S.value=[];const n=y.model.value||{},o=j.value,r=Ww(n,P.value,!0);Array.isArray(o)?r.o[r.k]=[].concat(null!==(t=A.value)&&void 0!==t?t:[]):r.o[r.k]=A.value,I((()=>{O.value=!1}))},W=n((()=>void 0===e.htmlFor?E.value:e.htmlFor)),V=()=>{const e=W.value;if(!e||!k.value)return;const t=k.value.$el.querySelector(`[id="${e}"]`);t&&t.focus&&t.focus()};a({onFieldBlur:H,onFieldChange:F,clearValidate:L,resetField:_}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n((()=>!0));const o=b(new Map);m(),i([t,o],(()=>{})),r(Wd,e),r(Vd,{addFormItemField:(e,t)=>{o.value.set(e,t),o.value=new Map(o.value)},removeFormItemField:e=>{o.value.delete(e),o.value=new Map(o.value)}})}({id:E,onFieldBlur:()=>{e.autoLink&&H()},onFieldChange:()=>{e.autoLink&&F()},clearValidate:L},n((()=>!!(e.autoLink&&y.model.value&&C.value))));let X=!1;i(C,(e=>{e?X||(X=!0,y.addField(u,{fieldValue:j,fieldId:E,fieldName:C,resetField:_,clearValidate:L,namePath:P,validateRules:N,rules:T})):(X=!1,y.removeField(u))}),{immediate:!0}),x((()=>{y.removeField(u)}));const K=function(e){const t=s(e.value.slice());let n=null;return w((()=>{clearTimeout(n),n=setTimeout((()=>{t.value=e.value}),e.value.length?0:10)})),t}(S),q=n((()=>void 0!==e.validateStatus?e.validateStatus:K.value.length?"error":D.value)),G=n((()=>({[`${d.value}-item`]:!0,[f.value]:!0,[`${d.value}-item-has-feedback`]:q.value&&e.hasFeedback,[`${d.value}-item-has-success`]:"success"===q.value,[`${d.value}-item-has-warning`]:"warning"===q.value,[`${d.value}-item-has-error`]:"error"===q.value,[`${d.value}-item-is-validating`]:"validating"===q.value,[`${d.value}-item-hidden`]:e.hidden}))),U=v({});Ud.useProvide(U),w((()=>{let t;if(e.hasFeedback){const e=q.value&&_w[q.value];t=e?$("span",{class:Ge(`${d.value}-item-feedback-icon`,`${d.value}-item-feedback-icon-${q.value}`)},[$(e,null,null)]):null}ze(U,{status:q.value,hasFeedback:e.hasFeedback,feedbackIcon:t,isFormItemInput:!0})}));const Y=s(null),Z=s(!1);h((()=>{i(Z,(()=>{Z.value&&(()=>{if(g.value){const e=getComputedStyle(g.value);Y.value=parseInt(e.marginBottom,10)}})()}),{flush:"post",immediate:!0})}));const Q=e=>{e||(Y.value=null)};return()=>{var t,n;if(e.noStyle)return null===(t=o.default)||void 0===t?void 0:t.call(o);const r=null!==(n=e.help)&&void 0!==n?n:o.help?kt(o.help()):null,i=!!(null!=r&&Array.isArray(r)&&r.length||K.value.length);return Z.value=i,p($("div",{class:[G.value,i?`${d.value}-item-with-help`:"",l.class],ref:g},[$(jb,Te(Te({},l),{},{class:`${d.value}-item-row`,key:"row"}),{default:()=>{var t,n;return $(c,null,[$(Iw,Te(Te({},e),{},{htmlFor:W.value,required:z.value,requiredMark:y.requiredMark.value,prefixCls:d.value,onClick:V,label:e.label}),{label:o.label,tooltip:o.tooltip}),$(Lw,Te(Te({},e),{},{errors:null!=r?ow(r):K.value,marginBottom:Y.value,prefixCls:d.value,status:q.value,ref:k,help:r,extra:null!==(t=e.extra)&&void 0!==t?t:null===(n=o.extra)||void 0===n?void 0:n.call(o),onErrorVisibleChanged:Q}),{default:o.default})])}}),!!Y.value&&$("div",{class:`${d.value}-margin-offset`,style:{marginBottom:`-${Y.value}px`}},null)]))}}});function Kw(e){let t=!1,n=e.length;const o=[];return e.length?new Promise(((r,l)=>{e.forEach(((e,i)=>{e.catch((e=>(t=!0,e))).then((e=>{n-=1,o[i]=e,!(n>0)&&(t&&l(o),r(o))}))}))})):Promise.resolve([])}function qw(e){let t=!1;return e&&e.length&&e.every((e=>!e.required||(t=!0,!1))),t}function Gw(e){return null==e?[]:Array.isArray(e)?e:[e]}function Uw(e,t,n){let o=e;const r=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split(".");let l=0;for(let e=r.length;l<e-1&&(o||n);++l){const e=r[l];if(!(e in o)){if(n)throw new Error("please transfer a valid name path to validate!");break}o=o[e]}return{o:o,k:r[l],v:o?o[r[l]]:null,isValid:o&&r[l]in o}}const Yw=l({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:yt({layout:Dl.oneOf(oe("horizontal","inline","vertical")),labelCol:ie(),wrapperCol:ie(),colon:ae(),labelAlign:de(),labelWrap:ae(),prefixCls:String,requiredMark:pe([String,Boolean]),hideRequiredMark:ae(),model:Dl.object,rules:ie(),validateMessages:ie(),validateOnRuleChange:ae(),scrollToFirstError:ue(),onSubmit:se(),name:String,validateTrigger:pe([String,Array]),size:de(),disabled:ae(),onValuesChange:se(),onFieldsChange:se(),onFinish:se(),onFinishFailed:se(),onValidate:se()},{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:Xw,useForm:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b({}),n=arguments.length>2?arguments[2]:void 0;const o=Of(a(e)),r=v({}),l=s([]),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.length?e.filter((e=>{const n=Gw(e.trigger||"change");return Kf(n,t).length})):e};let c=null;const d=function(e,t,o){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=gw([e],t,o,ze({validateMessages:fw},l),!!l.validateFirst);return r[e]?(r[e].validateStatus="validating",i.catch((e=>e)).then((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];var o;if("validating"===r[e].validateStatus){const l=t.filter((e=>e&&e.errors.length));r[e].validateStatus=l.length?"error":"success",r[e].help=l.length?l.map((e=>e.errors)):null,null===(o=null==n?void 0:n.onValidate)||void 0===o||o.call(n,e,!l.length,l.length?B(r[e].help[0]):null)}})),i):i.catch((e=>e))},p=(n,o)=>{let r=[],i=!0;n?r=Array.isArray(n)?n:[n]:(i=!1,r=l.value);const s=function(n){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;const l=[],i={};for(let s=0;s<n.length;s++){const c=n[s],p=Uw(a(e),c,r);if(!p.isValid)continue;i[c]=p.v;const f=u(a(t)[c],Gw(o&&o.trigger));f.length&&l.push(d(c,p.v,f,o||{}).then((()=>({name:c,errors:[],warnings:[]}))).catch((e=>{const t=[],n=[];return e.forEach((e=>{let{rule:{warningOnly:o},errors:r}=e;o?n.push(...r):t.push(...r)})),t.length?Promise.reject({name:c,errors:t,warnings:n}):{name:c,errors:t,warnings:n}})))}const s=Kw(l);c=s;const p=s.then((()=>c===s?Promise.resolve(i):Promise.reject([]))).catch((e=>{const t=e.filter((e=>e&&e.errors.length));return t.length?Promise.reject({values:i,errorFields:t,outOfDate:c!==s}):Promise.resolve(i)}));return p.catch((e=>e)),p}(r,o||{},i);return s.catch((e=>e)),s};let f=o,m=!0;const h=e=>{const t=[];l.value.forEach((o=>{const r=Uw(e,o,!1),l=Uw(f,o,!1);(m&&(null==n?void 0:n.immediate)&&r.isValid||!nu(r.v,l.v))&&t.push(o)})),p(t,{trigger:"change"}),m=!1,f=Of(B(e))},g=null==n?void 0:n.debounce;let y=!0;return i(t,(()=>{l.value=t?Object.keys(a(t)):[],!y&&n&&n.validateOnRuleChange&&p(),y=!1}),{deep:!0,immediate:!0}),i(l,(()=>{const e={};l.value.forEach((n=>{e[n]=ze({},r[n],{autoLink:!1,required:qw(a(t)[n])}),delete r[n]}));for(const e in r)Object.prototype.hasOwnProperty.call(r,e)&&delete r[e];ze(r,e)}),{immediate:!0}),i(e,g&&g.wait?Lf(h,g.wait,Qf(g,["wait"])):h,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:o,validateInfos:r,resetFields:n=>{ze(a(e),ze(ze({},Of(o)),n)),I((()=>{Object.keys(r).forEach((e=>{r[e]={autoLink:!1,required:qw(a(t)[e])}}))}))},validate:p,validateField:d,mergeValidateInfo:e=>{const t={autoLink:!1},n=[],o=Array.isArray(e)?e:[e];for(let e=0;e<o.length;e++){const r=o[e];"error"===(null==r?void 0:r.validateStatus)&&(t.validateStatus="error",r.help&&n.push(r.help)),t.required=t.required||(null==r?void 0:r.required)}return t.help=n,t},clearValidate:e=>{let t=[];t=e?Array.isArray(e)?e:[e]:l.value,t.forEach((e=>{r[e]&&ze(r[e],{validateStatus:"",help:null})}))}}},setup(e,t){let{emit:r,slots:l,expose:a,attrs:s}=t;const{prefixCls:u,direction:c,form:d,size:p,disabled:f}=el("form",e),v=n((()=>""===e.requiredMark||e.requiredMark)),m=n((()=>{var t;return void 0!==v.value?v.value:d&&void 0!==(null===(t=d.value)||void 0===t?void 0:t.requiredMark)?d.value.requiredMark:!e.hideRequiredMark}));Jr(p),Ft(f);const h=n((()=>{var t,n;return null!==(t=e.colon)&&void 0!==t?t:null===(n=d.value)||void 0===n?void 0:n.colon})),{validateMessages:g}=o(ve,{validateMessages:n((()=>{}))}),y=n((()=>ze(ze(ze({},fw),g.value),e.validateMessages))),[w,x]=Hw(u),C=n((()=>Ge(u.value,{[`${u.value}-${e.layout}`]:!0,[`${u.value}-hide-required-mark`]:!1===m.value,[`${u.value}-rtl`]:"rtl"===c.value,[`${u.value}-${p.value}`]:p.value},x.value))),S=b(),O={},k=e=>{const t=!!e,n=t?ow(e).map(aw):[];return t?Object.values(O).filter((e=>n.findIndex((t=>function(e,t){return nu(ow(e),ow(t))}(t,e.fieldName.value)))>-1)):Object.values(O)},P=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=k(e?[e]:void 0);if(n.length){const e=n[0].fieldId.value,o=e?document.getElementById(e):null;o&&sl(o,ze({scrollMode:"if-needed",block:"nearest"},t))}},I=function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t){const t=[];return Object.values(O).forEach((e=>{let{namePath:n}=e;t.push(n.value)})),dw(e.model,t)}return dw(e.model,t)},E=(t,n)=>{if(!e.model)return Promise.reject("Form `model` is required for validateFields to work.");const o=!!t,r=o?ow(t).map(aw):[],l=[];Object.values(O).forEach((e=>{var t;if(o||r.push(e.namePath.value),null===(t=e.rules)||void 0===t||!t.value.length)return;const i=e.namePath.value;if(!o||function(e,t){return e&&e.some((e=>function(e,t){return!(!e||!t||e.length!==t.length)&&e.every(((e,n)=>t[n]===e))}(e,t)))}(r,i)){const t=e.validateRules(ze({validateMessages:y.value},n));l.push(t.then((()=>({name:i,errors:[],warnings:[]}))).catch((e=>{const t=[],n=[];return e.forEach((e=>{let{rule:{warningOnly:o},errors:r}=e;o?n.push(...r):t.push(...r)})),t.length?Promise.reject({name:i,errors:t,warnings:n}):{name:i,errors:t,warnings:n}})))}}));const i=Kw(l);S.value=i;const a=i.then((()=>S.value===i?Promise.resolve(I(r)):Promise.reject([]))).catch((e=>{const t=e.filter((e=>e&&e.errors.length));return Promise.reject({values:I(r),errorFields:t,outOfDate:S.value!==i})}));return a.catch((e=>e)),a},j=function(){return E(...arguments)},A=t=>{t.preventDefault(),t.stopPropagation(),r("submit",t),e.model&&E().then((e=>{r("finish",e)})).catch((t=>{(t=>{const{scrollToFirstError:n}=e;if(r("finishFailed",t),n&&t.errorFields.length){let e={};"object"==typeof n&&(e=n),P(t.errorFields[0].name,e)}})(t)}))};return a({resetFields:t=>{e.model&&k(t).forEach((e=>{e.resetField()}))},clearValidate:e=>{k(e).forEach((e=>{e.clearValidate()}))},validateFields:E,getFieldsValue:I,validate:function(){return j(...arguments)},scrollToField:P}),bw({model:n((()=>e.model)),name:n((()=>e.name)),labelAlign:n((()=>e.labelAlign)),labelCol:n((()=>e.labelCol)),labelWrap:n((()=>e.labelWrap)),wrapperCol:n((()=>e.wrapperCol)),vertical:n((()=>"vertical"===e.layout)),colon:h,requiredMark:m,validateTrigger:n((()=>e.validateTrigger)),rules:n((()=>e.rules)),addField:(e,t)=>{O[e]=t},removeField:e=>{delete O[e]},onValidate:(e,t,n)=>{r("validate",e,t,n)},validateMessages:y}),i((()=>e.rules),(()=>{e.validateOnRuleChange&&E()})),()=>{var e;return w($("form",Te(Te({},s),{},{onSubmit:A,class:[C.value,s.class]}),[null===(e=l.default)||void 0===e?void 0:e.call(l)]))}}});Yw.useInjectFormItemContext=qd,Yw.ItemRest=Gd,Yw.install=function(e){return e.component(Yw.name,Yw),e.component(Yw.Item.name,Yw.Item),e.component(Gd.name,Gd),e};const Zw=new Eo("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),Qw=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:ze(ze({},Pr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:ze(ze({},Pr(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:ze(ze({},Pr(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:ze({},jr(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:Zw,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Jw(e,t){const n=Dr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Qw(n)]}const ex=e=>{const{prefixCls:t,componentCls:n,antCls:o}=e,r=`${n}-menu-item`,l=`\n &${r}-expand ${r}-expand-icon,\n ${r}-loading-icon\n `,i=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return[{[n]:{width:e.controlWidth}},{[`${n}-dropdown`]:[Jw(`${t}-checkbox`,e),{[`&${o}-select-dropdown`]:{padding:0}},{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.paddingXXS,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},"&-item":ze(ze({},kr),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:`${i}px ${e.paddingSM}px`,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[l]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive}},"&-content":{flex:"auto"},[l]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},{[`${n}-dropdown-rtl`]:{direction:"rtl"}},em(e)]},tx=Mr("Cascader",(e=>[ex(e)]),{controlWidth:184,controlItemWidth:111,dropdownHeight:180});const nx=e=>{let{inputValue:t,path:n,prefixCls:o,fieldNames:r}=e;const l=[],i=t.toLowerCase();return n.forEach(((e,t)=>{0!==t&&l.push(" / ");let n=e[r.label];const a=typeof n;("string"===a||"number"===a)&&(n=function(e,t,n){const o=e.toLowerCase().split(t).reduce(((e,n,o)=>0===o?[n]:[...e,t,n]),[]),r=[];let l=0;return o.forEach(((t,o)=>{const i=l+t.length;let a=e.slice(l,i);l=i,o%2==1&&(a=$("span",{class:`${n}-menu-item-keyword`,key:"seperator"},[a])),r.push(a)})),r}(String(n),i,o)),l.push(n)})),l};const ox=l({compatConfig:{MODE:3},name:"ACascader",inheritAttrs:!1,props:yt(ze(ze({},tl(vb(),["customSlots","checkable","options"])),{multiple:{type:Boolean,default:void 0},size:String,bordered:{type:Boolean,default:void 0},placement:{type:String},suffixIcon:Dl.any,status:String,options:Array,popupClassName:String,dropdownClassName:String,"onUpdate:value":Function}),{bordered:!0,choiceTransitionName:"",allowClear:!0}),setup(e,t){let{attrs:o,expose:r,slots:l,emit:i}=t;const a=qd(),s=Ud.useInject(),u=n((()=>Qd(s.status,e.status))),{prefixCls:d,rootPrefixCls:p,getPrefixCls:f,direction:v,getPopupContainer:m,renderEmpty:h,size:g,disabled:y}=el("cascader",e),w=n((()=>f("select",e.prefixCls))),{compactSize:x,compactItemClassnames:C}=ov(w,v),S=n((()=>x.value||g.value)),O=Ht(),k=n((()=>{var e;return null!==(e=y.value)&&void 0!==e?e:O.value})),[P,I]=im(w),[E]=tx(d),j=n((()=>"rtl"===v.value)),A=n((()=>{if(!e.showSearch)return e.showSearch;let t={render:nx};return"object"==typeof e.showSearch&&(t=ze(ze({},t),e.showSearch)),t})),M=n((()=>Ge(e.popupClassName||e.dropdownClassName,`${d.value}-dropdown`,{[`${d.value}-dropdown-rtl`]:j.value},I.value))),T=b();r({focus(){var e;null===(e=T.value)||void 0===e||e.focus()},blur(){var e;null===(e=T.value)||void 0===e||e.blur()}});const z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i("update:value",t[0]),i("change",...t),a.onFieldChange()},D=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i("blur",...t),a.onFieldBlur()},R=n((()=>void 0!==e.showArrow?e.showArrow:e.loading||!e.multiple)),B=n((()=>void 0!==e.placement?e.placement:"rtl"===v.value?"bottomRight":"bottomLeft"));return()=>{var t,n;const{notFoundContent:r=(null===(t=l.notFoundContent)||void 0===t?void 0:t.call(l)),expandIcon:i=(null===(n=l.expandIcon)||void 0===n?void 0:n.call(l)),multiple:f,bordered:g,allowClear:y,choiceTransitionName:b,transitionName:x,id:O=a.id.value}=e,N=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["notFoundContent","expandIcon","multiple","bordered","allowClear","choiceTransitionName","transitionName","id"]),H=r||h("Cascader");let F=i;i||(F=j.value?$(wb,null,null):$(kg,null,null));const L=$("span",{class:`${w.value}-menu-item-loading-icon`},[$(Od,{spin:!0},null)]),{suffixIcon:_,removeIcon:W,clearIcon:V}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{loading:n,multiple:o,prefixCls:r,hasFeedback:l,feedbackIcon:i,showArrow:a}=e,s=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),u=e.clearIcon||t.clearIcon&&t.clearIcon(),d=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),p=e.removeIcon||t.removeIcon&&t.removeIcon(),f=u??$(Bd,null,null),v=e=>$(c,null,[!1!==a&&e,l&&i]);let m=null;if(void 0!==s)m=v(s);else if(n)m=v($(Od,{spin:!0},null));else{const e=`${r}-suffix`;m=t=>{let{open:n,showSearch:o}=t;return v($(n&&o?Ld:xd,{class:e},null))}}let h=null;h=void 0!==d?d:o?$(Ed,null,null):null;let g=null;return g=void 0!==p?p:$(Td,null,null),{clearIcon:f,suffixIcon:m,itemIcon:h,removeIcon:g}}(ze(ze({},e),{hasFeedback:s.hasFeedback,feedbackIcon:s.feedbackIcon,multiple:f,prefixCls:w.value,showArrow:R.value}),l);return E(P($(hb,Te(Te(Te({},N),o),{},{id:O,prefixCls:w.value,class:[d.value,{[`${w.value}-lg`]:"large"===S.value,[`${w.value}-sm`]:"small"===S.value,[`${w.value}-rtl`]:j.value,[`${w.value}-borderless`]:!g,[`${w.value}-in-form-item`]:s.isFormItemInput},Zd(w.value,u.value,s.hasFeedback),C.value,o.class,I.value],disabled:k.value,direction:v.value,placement:B.value,notFoundContent:H,allowClear:y,showSearch:A.value,expandIcon:F,inputIcon:_,removeIcon:W,clearIcon:V,loadingIcon:L,checkable:!!f,dropdownClassName:M.value,dropdownPrefixCls:d.value,choiceTransitionName:cu(p.value,"",b),transitionName:cu(p.value,au(B.value),x),getPopupContainer:null==m?void 0:m.value,customSlots:ze(ze({},l),{checkable:()=>$("span",{class:`${d.value}-checkbox-inner`},null)}),tagRender:e.tagRender||l.tagRender,displayRender:e.displayRender||l.displayRender,maxTagPlaceholder:e.maxTagPlaceholder||l.maxTagPlaceholder,showArrow:s.hasFeedback||e.showArrow,onChange:z,onBlur:D,ref:T}),l)))}}}),rx=re(ze(ox,{SHOW_CHILD:Ky,SHOW_PARENT:Xy}));let lx=ze({},Vt.Modal);const ix="internalMark",ax=l({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;bn(e.ANT_MARK__===ix);const o=v({antLocale:ze(ze({},e.locale),{exist:!0}),ANT_MARK__:ix});return r("localeData",o),i((()=>e.locale),(e=>{(function(e){lx=e?ze(ze({},lx),e):ze({},Vt.Modal)})(e&&e.Modal),o.antLocale=ze(ze({},e),{exist:!0})}),{immediate:!0}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});ax.install=function(e){return e.component(ax.name,ax),e};const sx=re(ax),ux=l({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let o,{attrs:r,slots:l}=t,a=!1;const s=n((()=>void 0===e.duration?4.5:e.duration)),u=()=>{s.value&&!a&&(o=setTimeout((()=>{d()}),1e3*s.value))},c=()=>{o&&(clearTimeout(o),o=null)},d=t=>{t&&t.stopPropagation(),c();const{onClose:n,noticeKey:o}=e;n&&n(o)};return h((()=>{u()})),y((()=>{a=!0,c()})),i([s,()=>e.updateMark,()=>e.visible],((e,t)=>{let[n,o,r]=e,[l,i,a]=t;(n!==l||o!==i||r!==a&&a)&&(c(),u())}),{flush:"post"}),()=>{var t,n;const{prefixCls:o,closable:i,closeIcon:a=(null===(t=l.closeIcon)||void 0===t?void 0:t.call(l)),onClick:s,holder:p}=e,{class:f,style:v}=r,m=`${o}-notice`,h=Object.keys(r).reduce(((e,t)=>((t.startsWith("data-")||t.startsWith("aria-")||"role"===t)&&(e[t]=r[t]),e)),{}),g=$("div",Te({class:Ge(m,f,{[`${m}-closable`]:i}),style:v,onMouseenter:c,onMouseleave:u,onClick:s},h),[$("div",{class:`${m}-content`},[null===(n=l.default)||void 0===n?void 0:n.call(l)]),i?$("a",{tabindex:0,onClick:d,class:`${m}-close`},[a||$("span",{class:`${m}-close-x`},null)]):null]);return p?$(T,{to:p},{default:()=>g}):g}}});let cx=0;const dx=Date.now();function px(){const e=cx;return cx+=1,`rcNotification_${dx}_${e}`}const fx=l({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId"],setup(e,t){let{attrs:o,expose:r,slots:l}=t;const i=new Map,a=b([]),s=n((()=>{const{prefixCls:t,animation:n="fade"}=e;let o=e.transitionName;return!o&&n&&(o=`${t}-${n}`),uu(o)})),u=e=>{a.value=B(a.value).filter((t=>{let{notice:{key:n,userPassKey:o}}=t;return(o||n)!==e}))};return r({add:(t,n)=>{const o=t.key||px(),r=ze(ze({},t),{key:o}),{maxCount:l}=e,i=a.value.map((e=>e.notice.key)).indexOf(o),s=a.value.concat();-1!==i?s.splice(i,1,{notice:r,holderCallback:n}):(l&&a.value.length>=l&&(r.key=s[0].notice.key,r.updateMark=px(),r.userPassKey=o,s.shift()),s.push({notice:r,holderCallback:n})),a.value=s},remove:u,notices:a}),()=>{var t;const{prefixCls:n,closeIcon:r=(null===(t=l.closeIcon)||void 0===t?void 0:t.call(l,{prefixCls:n}))}=e,c=a.value.map(((t,o)=>{let{notice:l,holderCallback:s}=t;const c=o===a.value.length-1?l.updateMark:void 0,{key:d,userPassKey:p}=l,{content:f}=l,v=ze(ze(ze({prefixCls:n,closeIcon:"function"==typeof r?r({prefixCls:n}):r},l),l.props),{key:d,noticeKey:p||d,updateMark:c,onClose:e=>{var t;u(e),null===(t=l.onClose)||void 0===t||t.call(l)},onClick:l.onClick});return s?$("div",{key:d,class:`${n}-hook-holder`,ref:e=>{typeof d>"u"||(e?(i.set(d,e),s(e,v)):i.delete(d))}},null):$(ux,Te(Te({},v),{},{class:Ge(v.class,e.hashId)}),{default:()=>["function"==typeof f?f({prefixCls:n}):f]})})),d={[n]:1,[o.class]:!!o.class,[e.hashId]:!0};return $("div",{class:d,style:o.style||{top:"65px",left:"50%"}},[$(F,Te({tag:"div"},s.value),{default:()=>[c]})])}}});fx.newInstance=function(e,t){const o=e||{},{name:r="notification",getContainer:i,appContext:a,prefixCls:u,rootPrefixCls:c,transitionName:d,hasTransitionName:p,useStyle:f}=o,v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),m=document.createElement("div");i?i().appendChild(m):document.body.appendChild(m);const g=l({compatConfig:{MODE:3},name:"NotificationWrapper",setup(e,o){let{attrs:l}=o;const i=s(),a=n((()=>v$.getPrefixCls(r,u))),[,v]=f(a);return h((()=>{t({notice(e){var t;null===(t=i.value)||void 0===t||t.add(e)},removeNotice(e){var t;null===(t=i.value)||void 0===t||t.remove(e)},destroy(){N(null,m),m.parentNode&&m.parentNode.removeChild(m)},component:i})})),()=>{const e=v$,t=e.getRootPrefixCls(c,a.value),n=p?d:`${a.value}-${d}`;return $(g$,Te(Te({},e),{},{prefixCls:t}),{default:()=>[$(fx,Te(Te({ref:i},l),{},{prefixCls:a.value,transitionName:n,hashId:v.value}),null)]})}}}),y=$(g,v);y.appContext=a||y.appContext,N(y,m)};let vx=0;const mx=Date.now();function hx(){const e=vx;return vx+=1,`rcNotification_${mx}_${e}`}const gx=l({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:o,slots:r}=t;const l=new Map,a=n((()=>e.notices)),s=n((()=>{let t=e.transitionName;if(!t&&e.animation)switch(typeof e.animation){case"string":t=e.animation;break;case"function":t=e.animation().name;break;case"object":t=e.animation.name;break;default:t=`${e.prefixCls}-fade`}return uu(t)})),u=b({});i(a,(()=>{const t={};Object.keys(u.value).forEach((e=>{t[e]=[]})),e.notices.forEach((e=>{const{placement:n="topRight"}=e.notice;n&&(t[n]=t[n]||[],t[n].push(e))})),u.value=t}));const c=n((()=>Object.keys(u.value)));return()=>{var t;const{prefixCls:n,closeIcon:i=(null===(t=r.closeIcon)||void 0===t?void 0:t.call(r,{prefixCls:n}))}=e,d=c.value.map((t=>{var r,c;const d=u.value[t],p=null===(r=e.getClassName)||void 0===r?void 0:r.call(e,t),f=null===(c=e.getStyles)||void 0===c?void 0:c.call(e,t),v=d.map(((t,o)=>{let{notice:r,holderCallback:s}=t;const u=o===a.value.length-1?r.updateMark:void 0,{key:c,userPassKey:d}=r,{content:p}=r,f=ze(ze(ze({prefixCls:n,closeIcon:"function"==typeof i?i({prefixCls:n}):i},r),r.props),{key:c,noticeKey:d||c,updateMark:u,onClose:t=>{var n;(t=>{e.remove(t)})(t),null===(n=r.onClose)||void 0===n||n.call(r)},onClick:r.onClick});return s?$("div",{key:c,class:`${n}-hook-holder`,ref:e=>{typeof c>"u"||(e?(l.set(c,e),s(e,f)):l.delete(c))}},null):$(ux,Te(Te({},f),{},{class:Ge(f.class,e.hashId)}),{default:()=>["function"==typeof p?p({prefixCls:n}):p]})})),m={[n]:1,[`${n}-${t}`]:1,[o.class]:!!o.class,[e.hashId]:!0,[p]:!!p};return $("div",{key:t,class:m,style:o.style||f||{top:"65px",left:"50%"}},[$(F,Te(Te({tag:"div"},s.value),{},{onAfterLeave:function(){var n;d.length>0||(Reflect.deleteProperty(u.value,t),null===(n=e.onAllRemoved)||void 0===n||n.call(e))}}),{default:()=>[v]})])}));return $(yu,{getContainer:e.getContainer},{default:()=>[d]})}}});const yx=()=>document.body;let bx=0;function wx(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{getContainer:t=yx,motion:n,prefixCls:o,maxCount:r,getClassName:l,getStyles:a,onAllRemoved:u}=e,c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),d=s([]),p=s(),f=e=>{d.value=d.value.filter((t=>{let{notice:{key:n,userPassKey:o}}=t;return(o||n)!==e}))},v=s([]),m={open:e=>{const t=function(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.forEach((t=>{t&&Object.keys(t).forEach((n=>{const o=t[n];void 0!==o&&(e[n]=o)}))})),e}(c,e);(null===t.key||void 0===t.key)&&(t.key=`vc-notification-${bx}`,bx+=1),v.value=[...v.value,{type:"open",config:t}]},close:e=>{v.value=[...v.value,{type:"close",key:e}]},destroy:()=>{v.value=[...v.value,{type:"destroy"}]}};return i(v,(()=>{v.value.length&&(v.value.forEach((e=>{switch(e.type){case"open":((e,t)=>{const n=e.key||hx(),o=ze(ze({},e),{key:n}),l=d.value.map((e=>e.notice.key)).indexOf(n),i=d.value.concat();-1!==l?i.splice(l,1,{notice:o,holderCallback:t}):(r&&d.value.length>=r&&(o.key=i[0].notice.key,o.updateMark=hx(),o.userPassKey=n,i.shift()),i.push({notice:o,holderCallback:t})),d.value=i})(e.config);break;case"close":f(e.key);break;case"destroy":d.value=[]}})),v.value=[])})),[m,()=>$(gx,{ref:p,prefixCls:o,maxCount:r,notices:d.value,remove:f,getClassName:l,getStyles:a,animation:n,hashId:e.hashId,onAllRemoved:u,getContainer:t},null)]}const xx=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:o,colorBgElevated:r,colorSuccess:l,colorError:i,colorWarning:a,colorInfo:s,fontSizeLG:u,motionEaseInOutCirc:c,motionDurationSlow:d,marginXS:p,paddingXS:f,borderRadiusLG:v,zIndexPopup:m,messageNoticeContentPadding:h}=e,g=new Eo("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),y=new Eo("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:ze(ze({},Pr(e)),{position:"fixed",top:p,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:g,animationDuration:d,animationPlayState:"paused",animationTimingFunction:c},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:c},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:f,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:u},[`${t}-notice-content`]:{display:"inline-block",padding:h,background:r,borderRadius:v,boxShadow:o,pointerEvents:"all"},[`${t}-success ${n}`]:{color:l},[`${t}-error ${n}`]:{color:i},[`${t}-warning ${n}`]:{color:a},[`\n ${t}-info ${n},\n ${t}-loading ${n}`]:{color:s}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},$x=Mr("Message",(e=>{const t=Dr(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[xx(t)]}),(e=>({height:150,zIndexPopup:e.zIndexPopupBase+10}))),Cx={info:$(zm,null,null),success:$(km,null,null),error:$(Bd,null,null),warning:$(jm,null,null),loading:$(Od,null,null)},Sx=l({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var t;return $("div",{class:Ge(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||Cx[e.type],$("span",null,[null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}});l({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","class","type","icon","content"],setup(e,t){let{slots:o,attrs:r}=t;var l;const{getPrefixCls:i}=ge(),a=n((()=>e.prefixCls||i("message"))),[,s]=$x(a);return $(ux,Te(Te({},r),{},{prefixCls:a.value,class:Ge(s.value,`${a.value}-notice-pure-panel`),noticeKey:"pure",duration:null}),{default:()=>[$(Sx,{prefixCls:a.value,type:e.type,icon:e.icon},{default:()=>[null===(l=o.default)||void 0===l?void 0:l.call(o)]})]})}});const Ox=l({name:"Holder",inheritAttrs:!1,props:["top","prefixCls","getContainer","maxCount","duration","rtl","transitionName","onAllRemoved","animation","staticGetContainer"],setup(e,t){let{expose:o}=t;var r,l;const{getPrefixCls:i,getPopupContainer:a}=el("message",e),s=n((()=>i("message",e.prefixCls))),[,u]=$x(s),c=$("span",{class:`${s.value}-close-x`},[$(Td,{class:`${s.value}-close-icon`},null)]),[d,p]=wx({getStyles:()=>{var t;const n=null!==(t=e.top)&&void 0!==t?t:8;return{left:"50%",transform:"translateX(-50%)",top:"number"==typeof n?`${n}px`:n}},prefixCls:s.value,getClassName:()=>Ge(u.value,e.rtl?`${s.value}-rtl`:""),motion:()=>{var t;return Kl({prefixCls:s.value,animation:null!==(t=e.animation)&&void 0!==t?t:"move-up",transitionName:e.transitionName})},closable:!1,closeIcon:c,duration:null!==(r=e.duration)&&void 0!==r?r:3,getContainer:null!==(l=e.staticGetContainer)&&void 0!==l?l:a.value,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return o(ze(ze({},d),{prefixCls:s,hashId:u})),p}});let kx=0;function Px(e){const t=s(null),n=Symbol("messageHolderKey"),o=e=>{var n;null===(n=t.value)||void 0===n||n.close(e)},r=e=>{if(!t.value){const e=()=>{};return e.then=()=>{},e}const{open:n,prefixCls:r,hashId:l}=t.value,i=`${r}-notice`,{content:a,icon:s,type:u,key:c,class:d,onClose:p}=e,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["content","icon","type","key","class","onClose"]);let v=c;return null==v&&(kx+=1,v=`antd-message-${kx}`),function(e){let t;const n=new Promise((n=>{t=e((()=>{n(!0)}))})),o=()=>{null==t||t()};return o.then=(e,t)=>n.then(e,t),o.promise=n,o}((e=>(n(ze(ze({},f),{key:v,content:()=>$(Sx,{prefixCls:r,type:u,icon:"function"==typeof s?s():s},{default:()=>["function"==typeof a?a():a]}),placement:"top",class:Ge(u&&`${i}-${u}`,l,d),onClose:()=>{null==p||p(),e()}})),()=>{o(v)})))},l={open:r,destroy:e=>{var n;void 0!==e?o(e):null===(n=t.value)||void 0===n||n.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{l[e]=(t,n,o)=>{let l,i,a;l=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?a=n:(i=n,a=o);const s=ze(ze({onClose:a,duration:i},l),{type:e});return r(s)}})),[l,()=>$(Ox,Te(Te({key:n},e),{},{ref:t}),null)]}let Ix,Ex,jx,Ax=3,Mx=1,Tx="",zx="move-up",Dx=!1,Rx=()=>document.body,Bx=!1;const Nx={info:zm,success:km,error:Bd,warning:jm,loading:Od},Hx=Object.keys(Nx);const Fx={open:function(e){const t=void 0!==e.duration?e.duration:Ax,n=e.key||Mx++,o=new Promise((o=>{const r=()=>("function"==typeof e.onClose&&e.onClose(),o(!0));!function(e,t){Ex?t(Ex):fx.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||Tx,rootPrefixCls:e.rootPrefixCls,transitionName:zx,hasTransitionName:Dx,style:{top:Ix},getContainer:Rx||e.getPopupContainer,maxCount:jx,name:"message",useStyle:$x},(e=>{Ex?t(Ex):(Ex=e,t(e))}))}(e,(o=>{o.notice({key:n,duration:t,style:e.style||{},class:e.class,content:t=>{let{prefixCls:n}=t;const o=Nx[e.type],r=o?$(o,null,null):"",l=Ge(`${n}-custom-content`,{[`${n}-${e.type}`]:e.type,[`${n}-rtl`]:!0===Bx});return $("div",{class:l},["function"==typeof e.icon?e.icon():e.icon||r,$("span",null,["function"==typeof e.content?e.content():e.content])])},onClose:r,onClick:e.onClick})}))})),r=()=>{Ex&&Ex.removeNotice(n)};return r.then=(e,t)=>o.then(e,t),r.promise=o,r},config:function(e){void 0!==e.top&&(Ix=e.top,Ex=null),void 0!==e.duration&&(Ax=e.duration),void 0!==e.prefixCls&&(Tx=e.prefixCls),void 0!==e.getContainer&&(Rx=e.getContainer,Ex=null),void 0!==e.transitionName&&(zx=e.transitionName,Ex=null,Dx=!0),void 0!==e.maxCount&&(jx=e.maxCount,Ex=null),void 0!==e.rtl&&(Bx=e.rtl)},destroy(e){if(Ex)if(e){const{removeNotice:t}=Ex;t(e)}else{const{destroy:e}=Ex;e(),Ex=null}}};function Lx(e,t){e[t]=(n,o,r)=>function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(n)?e.open(ze(ze({},n),{type:t})):("function"==typeof o&&(r=o,o=void 0),e.open({content:n,duration:o,type:t,onClose:r}))}Hx.forEach((e=>Lx(Fx,e))),Fx.warn=Fx.warning,Fx.useMessage=function(e){return Px(e)};const _x=e=>{const{componentCls:t,width:n,notificationMarginEdge:o}=e,r=new Eo("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),l=new Eo("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),i=new Eo("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:r}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:o,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}}}},Wx=e=>{const{iconCls:t,componentCls:n,boxShadowSecondary:o,fontSizeLG:r,notificationMarginBottom:l,borderRadiusLG:i,colorSuccess:a,colorInfo:s,colorWarning:u,colorError:c,colorTextHeading:d,notificationBg:p,notificationPadding:f,notificationMarginEdge:v,motionDurationMid:m,motionEaseInOut:h,fontSize:g,lineHeight:y,width:b,notificationIconSize:w}=e,x=`${n}-notice`,$=new Eo("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:b},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),C=new Eo("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:l,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:ze(ze(ze(ze({},Pr(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:v,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:h,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:h,animationFillMode:"both",animationDuration:m,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:$,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:C,animationPlayState:"running"}}),_x(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[x]:{position:"relative",width:b,maxWidth:`calc(100vw - ${2*v}px)`,marginBottom:l,marginInlineStart:"auto",padding:f,overflow:"hidden",lineHeight:y,wordWrap:"break-word",background:p,borderRadius:i,boxShadow:o,[`${n}-close-icon`]:{fontSize:g,cursor:"pointer"},[`${x}-message`]:{marginBottom:e.marginXS,color:d,fontSize:r,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:g},[`&${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+w,fontSize:r},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.marginSM+w,fontSize:g},[`${x}-icon`]:{position:"absolute",fontSize:w,lineHeight:0,[`&-success${t}`]:{color:a},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:c}},[`${x}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${x}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${x}-pure-panel`]:{margin:0}}]},Vx=Mr("Notification",(e=>{const t=e.paddingMD,n=e.paddingLG,o=Dr(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG});return[Wx(o)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})));function Xx(e,t){return t||$("span",{class:`${e}-close-x`},[$(Td,{class:`${e}-close-icon`},null)])}$(zm,null,null),$(km,null,null),$(Bd,null,null),$(jm,null,null),$(Od,null,null);const Kx={success:km,info:zm,error:Bd,warning:jm};function qx(e){let{prefixCls:t,icon:n,type:o,message:r,description:l,btn:i}=e,a=null;if(n)a=$("span",{class:`${t}-icon`},[qe(n)]);else if(o){a=$(Kx[o],{class:`${t}-icon ${t}-icon-${o}`},null)}return $("div",{class:Ge({[`${t}-with-icon`]:a}),role:"alert"},[a,$("div",{class:`${t}-message`},[r]),$("div",{class:`${t}-description`},[l]),i&&$("div",{class:`${t}-btn`},[i])])}function Gx(e,t,n){let o;switch(t="number"==typeof t?`${t}px`:t,n="number"==typeof n?`${n}px`:n,e){case"top":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":o={left:0,top:t,bottom:"auto"};break;case"topRight":o={right:0,top:t,bottom:"auto"};break;case"bottom":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":o={left:0,top:"auto",bottom:n};break;default:o={right:0,top:"auto",bottom:n}}return o}l({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","icon","type","message","description","btn","closeIcon"],setup(e){const{getPrefixCls:t}=el("notification",e),o=n((()=>e.prefixCls||t("notification"))),r=n((()=>`${o.value}-notice`)),[,l]=Vx(o);return()=>$(ux,Te(Te({},e),{},{prefixCls:o.value,class:Ge(l.value,`${r.value}-pure-panel`),noticeKey:"pure",duration:null,closable:e.closable,closeIcon:Xx(o.value,e.closeIcon)}),{default:()=>[$(qx,{prefixCls:r.value,icon:e.icon,type:e.type,message:e.message,description:e.description,btn:e.btn},null)]})}});const Ux=l({name:"Holder",inheritAttrs:!1,props:["prefixCls","class","type","icon","content","onAllRemoved"],setup(e,t){let{expose:o}=t;const{getPrefixCls:r,getPopupContainer:l}=el("notification",e),i=n((()=>e.prefixCls||r("notification"))),[,a]=Vx(i),[s,u]=wx({prefixCls:i.value,getStyles:t=>{var n,o;return Gx(t,null!==(n=e.top)&&void 0!==n?n:24,null!==(o=e.bottom)&&void 0!==o?o:24)},getClassName:()=>Ge(a.value,{[`${i.value}-rtl`]:e.rtl}),motion:()=>function(e){return{name:`${e}-fade`}}(i.value),closable:!0,closeIcon:Xx(i.value),duration:4.5,getContainer:()=>{var t,n;return(null===(t=e.getPopupContainer)||void 0===t?void 0:t.call(e))||(null===(n=l.value)||void 0===n?void 0:n.call(l))||document.body},maxCount:e.maxCount,hashId:a.value,onAllRemoved:e.onAllRemoved});return o(ze(ze({},s),{prefixCls:i.value,hashId:a})),u}});function Yx(e){const t=s(null),n=Symbol("notificationHolderKey"),o=e=>{if(!t.value)return;const{open:n,prefixCls:o,hashId:r}=t.value,l=`${o}-notice`,{message:i,description:a,icon:s,type:u,btn:c,class:d}=e,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["message","description","icon","type","btn","class"]);return n(ze(ze({placement:"topRight"},p),{content:()=>$(qx,{prefixCls:l,icon:"function"==typeof s?s():s,type:u,message:"function"==typeof i?i():i,description:"function"==typeof a?a():a,btn:"function"==typeof c?c():c},null),class:Ge(u&&`${l}-${u}`,r,d)}))},r={open:o,destroy:e=>{var n,o;void 0!==e?null===(n=t.value)||void 0===n||n.close(e):null===(o=t.value)||void 0===o||o.destroy()}};return["success","info","warning","error"].forEach((e=>{r[e]=t=>o(ze(ze({},t),{type:e}))})),[r,()=>$(Ux,Te(Te({key:n},e),{},{ref:t}),null)]}const Zx={};let Qx,Jx=4.5,e$="24px",t$="24px",n$="",o$="topRight",r$=()=>document.body,l$=null,i$=!1;const a$={success:cm,info:ym,error:$m,warning:vm};const s$={open:function(e){const{icon:t,type:n,description:o,message:r,btn:l}=e,i=void 0===e.duration?Jx:e.duration;!function(e,t){let{prefixCls:n,placement:o=o$,getContainer:r=r$,top:l,bottom:i,closeIcon:a=l$,appContext:s}=e;const{getPrefixCls:u}=h$(),c=u("notification",n||n$),d=`${c}-${o}-${i$}`,p=Zx[d];if(p)return void Promise.resolve(p).then((e=>{t(e)}));const f=Ge(`${c}-${o}`,{[`${c}-rtl`]:!0===i$});fx.newInstance({name:"notification",prefixCls:n||n$,useStyle:Vx,class:f,style:Gx(o,l??e$,i??t$),appContext:s,getContainer:r,closeIcon:e=>{let{prefixCls:t}=e;return $("span",{class:`${t}-close-x`},[qe(a,{},$(Td,{class:`${t}-close-icon`},null))])},maxCount:Qx,hasTransitionName:!0},(e=>{Zx[d]=e,t(e)}))}(e,(a=>{a.notice({content:e=>{let{prefixCls:i}=e;const a=`${i}-notice`;let s=null;if(t)s=()=>$("span",{class:`${a}-icon`},[qe(t)]);else if(n){const e=a$[n];s=()=>$(e,{class:`${a}-icon ${a}-icon-${n}`},null)}return $("div",{class:s?`${a}-with-icon`:""},[s&&s(),$("div",{class:`${a}-message`},[!o&&s?$("span",{class:`${a}-message-single-line-auto-margin`},null):null,qe(r)]),$("div",{class:`${a}-description`},[qe(o)]),l?$("span",{class:`${a}-btn`},[qe(l)]):null])},duration:i,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})}))},close(e){Object.keys(Zx).forEach((t=>Promise.resolve(Zx[t]).then((t=>{t.removeNotice(e)}))))},config:function(e){const{duration:t,placement:n,bottom:o,top:r,getContainer:l,closeIcon:i,prefixCls:a}=e;void 0!==a&&(n$=a),void 0!==t&&(Jx=t),void 0!==n&&(o$=n),void 0!==o&&(t$="number"==typeof o?`${o}px`:o),void 0!==r&&(e$="number"==typeof r?`${r}px`:r),void 0!==l&&(r$=l),void 0!==i&&(l$=i),void 0!==e.rtl&&(i$=e.rtl),void 0!==e.maxCount&&(Qx=e.maxCount)},destroy(){Object.keys(Zx).forEach((e=>{Promise.resolve(Zx[e]).then((e=>{e.destroy()})),delete Zx[e]}))}};["success","info","warning","error"].forEach((e=>{s$[e]=t=>s$.open(ze(ze({},t),{type:e}))})),s$.warn=s$.warning,s$.useNotification=function(e){return Yx(e)};const u$=`-ant-${Date.now()}-${Math.random()}`;function c$(e,t){const n=function(e,t){const n={},o=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},r=(e,t)=>{const r=new Zo(e),l=rr(r.toRgbString());n[`${t}-color`]=o(r),n[`${t}-color-disabled`]=l[1],n[`${t}-color-hover`]=l[4],n[`${t}-color-active`]=l[6],n[`${t}-color-outline`]=r.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=l[0],n[`${t}-color-deprecated-border`]=l[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new Zo(t.primaryColor),l=rr(e.toRgbString());l.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=o(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=o(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=o(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=o(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=o(e,(e=>e.setAlpha(.12*e.getAlpha())));const i=new Zo(l[0]);n["primary-color-active-deprecated-f-30"]=o(i,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=o(i,(e=>e.darken(2)))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);rn()&&mn(n,`${u$}-dynamic-theme`)}function d$(){return v$.prefixCls||"ant"}function p$(){return v$.iconPrefixCls||fe}const f$=v({}),v$=v({});let m$;w((()=>{ze(v$,f$),v$.prefixCls=d$(),v$.iconPrefixCls=p$(),v$.getPrefixCls=(e,t)=>t||(e?`${v$.prefixCls}-${e}`:v$.prefixCls),v$.getRootPrefixCls=()=>v$.prefixCls?v$.prefixCls:d$()}));const h$=()=>({getPrefixCls:(e,t)=>t||(e?`${d$()}-${e}`:d$()),getIconPrefixCls:p$,getRootPrefixCls:()=>v$.prefixCls?v$.prefixCls:d$()}),g$=l({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:{iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:ie(),input:ie(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:ie(),pageHeader:ie(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:ie(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:ie(),pagination:ie(),theme:ie(),select:ie(),wave:ie()},setup(e,t){let{slots:o}=t;const l=ge(),a=n((()=>e.iconPrefixCls||l.iconPrefixCls.value||fe)),s=n((()=>a.value!==l.iconPrefixCls.value)),u=n((()=>{var t;return e.csp||(null===(t=l.csp)||void 0===t?void 0:t.value)})),c=(e=>{const[t,o]=_r();return Io(n((()=>({theme:t.value,token:o.value,hashId:"",path:["ant-design-icons",e.value]}))),(()=>[{[`.${e.value}`]:ze(ze({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}]))})(a),d=function(e,t){const o=n((()=>(null==e?void 0:e.value)||{})),r=n((()=>!1!==o.value.inherit&&null!=t&&t.value?t.value:Nr));return n((()=>{if(null==e||!e.value)return null==t?void 0:t.value;const n=ze({},r.value.components);return Object.keys(e.value.components||{}).forEach((t=>{n[t]=ze(ze({},n[t]),e.value.components[t])})),ze(ze(ze({},r.value),o.value),{token:ze(ze({},r.value.token),o.value.token),components:n})}))}(n((()=>e.theme)),n((()=>{var e;return null===(e=l.theme)||void 0===e?void 0:e.value}))),p=n((()=>{var t,n;return null!==(t=e.autoInsertSpaceInButton)&&void 0!==t?t:null===(n=l.autoInsertSpaceInButton)||void 0===n?void 0:n.value})),f=n((()=>{var t;return e.locale||(null===(t=l.locale)||void 0===t?void 0:t.value)}));i(f,(()=>{f$.locale=f.value}),{immediate:!0});const v=n((()=>{var t;return e.direction||(null===(t=l.direction)||void 0===t?void 0:t.value)})),m=n((()=>{var t,n;return null!==(t=e.space)&&void 0!==t?t:null===(n=l.space)||void 0===n?void 0:n.value})),h=n((()=>{var t,n;return null!==(t=e.virtual)&&void 0!==t?t:null===(n=l.virtual)||void 0===n?void 0:n.value})),g=n((()=>{var t,n;return null!==(t=e.dropdownMatchSelectWidth)&&void 0!==t?t:null===(n=l.dropdownMatchSelectWidth)||void 0===n?void 0:n.value})),y=n((()=>{var t;return void 0!==e.getTargetContainer?e.getTargetContainer:null===(t=l.getTargetContainer)||void 0===t?void 0:t.value})),b=n((()=>{var t;return void 0!==e.getPopupContainer?e.getPopupContainer:null===(t=l.getPopupContainer)||void 0===t?void 0:t.value})),x=n((()=>{var t;return void 0!==e.pageHeader?e.pageHeader:null===(t=l.pageHeader)||void 0===t?void 0:t.value})),C=n((()=>{var t;return void 0!==e.input?e.input:null===(t=l.input)||void 0===t?void 0:t.value})),S=n((()=>{var t;return void 0!==e.pagination?e.pagination:null===(t=l.pagination)||void 0===t?void 0:t.value})),O=n((()=>{var t;return void 0!==e.form?e.form:null===(t=l.form)||void 0===t?void 0:t.value})),k=n((()=>{var t;return void 0!==e.select?e.select:null===(t=l.select)||void 0===t?void 0:t.value})),P=n((()=>e.componentSize)),I=n((()=>e.componentDisabled)),E=n((()=>{var t,n;return null!==(t=e.wave)&&void 0!==t?t:null===(n=l.wave)||void 0===n?void 0:n.value})),j={csp:u,autoInsertSpaceInButton:p,locale:f,direction:v,space:m,virtual:h,dropdownMatchSelectWidth:g,getPrefixCls:(t,n)=>{const{prefixCls:o="ant"}=e;if(n)return n;const r=o||l.getPrefixCls("");return t?`${r}-${t}`:r},iconPrefixCls:a,theme:n((()=>{var e,t;return null!==(e=d.value)&&void 0!==e?e:null===(t=l.theme)||void 0===t?void 0:t.value})),renderEmpty:t=>(e.renderEmpty||o.renderEmpty||l.renderEmpty||Yr)(t),getTargetContainer:y,getPopupContainer:b,pageHeader:x,input:C,pagination:S,form:O,select:k,componentSize:P,componentDisabled:I,transformCellText:n((()=>e.transformCellText)),wave:E},A=n((()=>{const e=d.value||{},{algorithm:t,token:n}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["algorithm","token"]),r=t&&(!Array.isArray(t)||t.length>0)?Cn(t):void 0;return ze(ze({},o),{theme:r,token:ze(ze({},pr),n)})})),M=n((()=>{var t,n;let o={};return f.value&&(o=(null===(t=f.value.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(n=Vt.Form)||void 0===n?void 0:n.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(o=ze(ze({},o),e.form.validateMessages)),o}));(e=>{r(me,e)})(j),(e=>{r(ve,e)})({validateMessages:M}),Jr(P),Ft(I);return w((()=>{v.value&&(Fx.config({rtl:"rtl"===v.value}),s$.config({rtl:"rtl"===v.value}))})),()=>$(Xt,{children:(t,n,r)=>(t=>{var n,r;let l=s.value?c(null===(n=o.default)||void 0===n?void 0:n.call(o)):null===(r=o.default)||void 0===r?void 0:r.call(o);if(e.theme){const e=function(){return l}();l=$(Lr,{value:A.value},{default:()=>[e]})}return $(sx,{locale:f.value||t,ANT_MARK__:ix},{default:()=>[l]})})(r)},null)}});g$.config=e=>{m$&&m$(),m$=w((()=>{ze(f$,v(e)),ze(v$,v(e))})),e.theme&&c$(d$(),e.theme)},g$.install=function(e){e.component(g$.name,g$)},Eg.Button=$g,Eg.install=function(e){return e.component(Eg.name,Eg),e.component($g.name,$g),e};const y$=e=>null!=e&&(!Array.isArray(e)||kt(e).length);function b$(e){return y$(e.prefix)||y$(e.suffix)||y$(e.allowClear)}function w$(e){return y$(e.addonBefore)||y$(e.addonAfter)}function x$(e){return typeof e>"u"||null===e?"":String(e)}function $$(e,t,n,o){if(!n)return;const r=t;if("click"===t.type){Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0});const t=e.cloneNode(!0);return r.target=t,r.currentTarget=t,t.value="",void n(r)}if(void 0!==o)return Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0}),r.target=e,r.currentTarget=e,e.value=o,void n(r);n(r)}function C$(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}const S$=()=>ze(ze({},{addonBefore:Dl.any,addonAfter:Dl.any,prefix:Dl.any,suffix:Dl.any,clearIcon:Dl.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:Dl.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),O$=()=>ze(ze({},S$()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:de("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),k$=l({name:"BaseInput",inheritAttrs:!1,props:S$(),setup(e,t){let{slots:n,attrs:o}=t;const r=b(),l=t=>{var n;if(null!==(n=r.value)&&void 0!==n&&n.contains(t.target)){const{triggerFocus:t}=e;null==t||t()}},i=()=>{var t;const{allowClear:o,value:r,disabled:l,readonly:i,handleReset:a,suffix:s=n.suffix,prefixCls:u}=e;if(!o)return null;const c=!l&&!i&&r,d=`${u}-clear-icon`,p=(null===(t=n.clearIcon)||void 0===t?void 0:t.call(n))||"*";return $("span",{onClick:a,onMousedown:e=>e.preventDefault(),class:Ge({[`${d}-hidden`]:!c,[`${d}-has-suffix`]:!!s},d),role:"button",tabindex:-1},[p])};return()=>{var t,a;const{focused:s,value:u,disabled:c,allowClear:d,readonly:p,hidden:f,prefixCls:v,prefix:m=(null===(t=n.prefix)||void 0===t?void 0:t.call(n)),suffix:h=(null===(a=n.suffix)||void 0===a?void 0:a.call(n)),addonAfter:g=n.addonAfter,addonBefore:y=n.addonBefore,inputElement:b,affixWrapperClassName:w,wrapperClassName:x,groupClassName:C}=e;let S=Ji(b,{value:u,hidden:f});if(b$({prefix:m,suffix:h,allowClear:d})){const e=`${v}-affix-wrapper`,t=Ge(e,{[`${e}-disabled`]:c,[`${e}-focused`]:s,[`${e}-readonly`]:p,[`${e}-input-with-clear-btn`]:h&&d&&u},!w$({addonAfter:g,addonBefore:y})&&o.class,w),n=(h||d)&&$("span",{class:`${v}-suffix`},[i(),h]);S=$("span",{class:t,style:o.style,hidden:!w$({addonAfter:g,addonBefore:y})&&f,onMousedown:l,ref:r},[m&&$("span",{class:`${v}-prefix`},[m]),Ji(b,{style:null,value:u,hidden:null}),n])}if(w$({addonAfter:g,addonBefore:y})){const e=`${v}-group`,t=`${e}-addon`,n=Ge(`${v}-wrapper`,e,x),r=Ge(`${v}-group-wrapper`,o.class,C);return $("span",{class:r,style:o.style,hidden:f},[$("span",{class:n},[y&&$("span",{class:t},[y]),Ji(S,{style:null,hidden:null}),g&&$("span",{class:t},[g])])])}return S}}});const P$=l({name:"VCInput",inheritAttrs:!1,props:O$(),setup(e,t){let{slots:o,attrs:r,expose:l,emit:a}=t;const u=s(void 0===e.value?e.defaultValue:e.value),d=s(!1),p=s(),f=s();i((()=>e.value),(()=>{u.value=e.value})),i((()=>e.disabled),(()=>{e.disabled&&(d.value=!1)}));const v=e=>{p.value&&C$(p.value.input,e)};l({focus:v,blur:()=>{var e;null===(e=p.value.input)||void 0===e||e.blur()},input:n((()=>{var e;return null===(e=p.value.input)||void 0===e?void 0:e.input})),stateValue:u,setSelectionRange:(e,t,n)=>{var o;null===(o=p.value.input)||void 0===o||o.setSelectionRange(e,t,n)},select:()=>{var e;null===(e=p.value.input)||void 0===e||e.select()}});const m=e=>{a("change",e)},g=(t,n)=>{u.value!==t&&(void 0===e.value?u.value=t:I((()=>{var e;p.value.input.value!==u.value&&(null===(e=f.value)||void 0===e||e.$forceUpdate())})),I((()=>{n&&n()})))},y=e=>{const{value:t}=e.target;if(u.value===t)return;const n=e.target.value;$$(p.value.input,e,m),g(n)},b=e=>{13===e.keyCode&&a("pressEnter",e),a("keydown",e)},w=e=>{d.value=!0,a("focus",e)},x=e=>{d.value=!1,a("blur",e)},C=e=>{$$(p.value.input,e,m),g("",(()=>{v()}))},S=()=>{var t,n;const{addonBefore:l=o.addonBefore,addonAfter:i=o.addonAfter,disabled:a,valueModifiers:s={},htmlSize:u,autocomplete:c,prefixCls:d,inputClassName:f,prefix:v=(null===(t=o.prefix)||void 0===t?void 0:t.call(o)),suffix:m=(null===(n=o.suffix)||void 0===n?void 0:n.call(o)),allowClear:h,type:g="text"}=e,C=ze(ze(ze({},tl(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"])),r),{autocomplete:c,onChange:y,onInput:y,onFocus:w,onBlur:x,onKeydown:b,class:Ge(d,{[`${d}-disabled`]:a},f,!w$({addonAfter:i,addonBefore:l})&&!b$({prefix:v,suffix:m,allowClear:h})&&r.class),ref:p,key:"ant-input",size:u,type:g,lazy:e.lazy});return s.lazy&&delete C.onInput,C.autofocus||delete C.autofocus,$(zu,tl(C,["size"]),null)},O=()=>{var t;const{maxlength:n,suffix:r=(null===(t=o.suffix)||void 0===t?void 0:t.call(o)),showCount:l,prefixCls:i}=e,a=Number(n)>0;if(r||l){const e=[...x$(u.value)].length,t="object"==typeof l?l.formatter({count:e,maxlength:n}):`${e}${a?` / ${n}`:""}`;return $(c,null,[!!l&&$("span",{class:Ge(`${i}-show-count-suffix`,{[`${i}-show-count-has-suffix`]:!!r})},[t]),r])}return null};return h((()=>{})),()=>{const{prefixCls:t,disabled:n}=e,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","disabled"]);return $(k$,Te(Te(Te({},l),r),{},{ref:f,prefixCls:t,inputElement:S(),handleReset:C,value:x$(u.value),focused:d.value,triggerFocus:v,suffix:O(),disabled:n}),o)}}}),I$=()=>tl(O$(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),E$=()=>ze(ze({},tl(I$(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:le(),onCompositionend:le(),valueModifiers:Object});const j$=l({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:I$(),setup(e,t){let{slots:o,attrs:r,expose:l,emit:i}=t;const a=b(),s=qd(),u=Ud.useInject(),d=n((()=>Qd(u.status,e.status))),{direction:p,prefixCls:f,size:v,autocomplete:m}=el("input",e),{compactSize:g,compactItemClassnames:y}=ov(f,p),w=n((()=>g.value||v.value)),[C,S]=Ny(f),O=Ht();l({focus:e=>{var t;null===(t=a.value)||void 0===t||t.focus(e)},blur:()=>{var e;null===(e=a.value)||void 0===e||e.blur()},input:a,setSelectionRange:(e,t,n)=>{var o;null===(o=a.value)||void 0===o||o.setSelectionRange(e,t,n)},select:()=>{var e;null===(e=a.value)||void 0===e||e.select()}});const k=b([]),P=()=>{k.value.push(setTimeout((()=>{var e,t,n,o;null!==(e=a.value)&&void 0!==e&&e.input&&"password"===(null===(t=a.value)||void 0===t?void 0:t.input.getAttribute("type"))&&null!==(n=a.value)&&void 0!==n&&n.input.hasAttribute("value")&&(null===(o=a.value)||void 0===o||o.input.removeAttribute("value"))})))};h((()=>{P()})),H((()=>{k.value.forEach((e=>clearTimeout(e)))})),x((()=>{k.value.forEach((e=>clearTimeout(e)))}));const I=e=>{P(),i("blur",e),s.onFieldBlur()},E=e=>{P(),i("focus",e)},j=e=>{i("update:value",e.target.value),i("change",e),i("input",e),s.onFieldChange()};return()=>{var t,n,l,i,v,h;const{hasFeedback:g,feedbackIcon:b}=u,{allowClear:x,bordered:k=!0,prefix:P=(null===(t=o.prefix)||void 0===t?void 0:t.call(o)),suffix:A=(null===(n=o.suffix)||void 0===n?void 0:n.call(o)),addonAfter:M=(null===(l=o.addonAfter)||void 0===l?void 0:l.call(o)),addonBefore:T=(null===(i=o.addonBefore)||void 0===i?void 0:i.call(o)),id:z=(null===(v=s.id)||void 0===v?void 0:v.value)}=e,D=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),R=(g||A)&&$(c,null,[A,g&&b]),B=f.value,N=b$({prefix:P,suffix:A})||!!g,H=o.clearIcon||(()=>$(Bd,null,null));return C($(P$,Te(Te(Te({},r),tl(D,["onUpdate:value","onChange","onInput"])),{},{onChange:j,id:z,disabled:null!==(h=e.disabled)&&void 0!==h?h:O.value,ref:a,prefixCls:B,autocomplete:m.value,onBlur:I,onFocus:E,prefix:P,suffix:R,allowClear:x,addonAfter:M&&$(rv,null,{default:()=>[$(Yd,null,{default:()=>[M]})]}),addonBefore:T&&$(rv,null,{default:()=>[$(Yd,null,{default:()=>[T]})]}),class:[r.class,y.value],inputClassName:Ge({[`${B}-sm`]:"small"===w.value,[`${B}-lg`]:"large"===w.value,[`${B}-rtl`]:"rtl"===p.value,[`${B}-borderless`]:!k},!N&&Zd(B,d.value),S.value),affixWrapperClassName:Ge({[`${B}-affix-wrapper-sm`]:"small"===w.value,[`${B}-affix-wrapper-lg`]:"large"===w.value,[`${B}-affix-wrapper-rtl`]:"rtl"===p.value,[`${B}-affix-wrapper-borderless`]:!k},Zd(`${B}-affix-wrapper`,d.value,g),S.value),wrapperClassName:Ge({[`${B}-group-rtl`]:"rtl"===p.value},S.value),groupClassName:Ge({[`${B}-group-wrapper-sm`]:"small"===w.value,[`${B}-group-wrapper-lg`]:"large"===w.value,[`${B}-group-wrapper-rtl`]:"rtl"===p.value},Zd(`${B}-group-wrapper`,d.value,g),S.value)}),ze(ze({},o),{clearIcon:H})))}}}),A$=l({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:o,attrs:r}=t;const{prefixCls:l,direction:i,getPrefixCls:a}=el("input-group",e),s=Ud.useInject();Ud.useProvide(s,{isFormItemInput:!1});const u=n((()=>a("input"))),[c,d]=Ny(u),p=n((()=>{const t=l.value;return{[`${t}`]:!0,[d.value]:!0,[`${t}-lg`]:"large"===e.size,[`${t}-sm`]:"small"===e.size,[`${t}-compact`]:e.compact,[`${t}-rtl`]:"rtl"===i.value}}));return()=>{var e;return c($("span",Te(Te({},r),{},{class:Ge(p.value,r.class)}),[null===(e=o.default)||void 0===e?void 0:e.call(o)]))}}});const M$=l({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:ze(ze({},I$()),{inputPrefixCls:String,enterButton:Dl.any,onSearch:{type:Function}}),setup(e,t){let{slots:o,attrs:r,expose:l,emit:i}=t;const a=s(),u=s(!1);l({focus:()=>{var e;null===(e=a.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=a.value)||void 0===e||e.blur()}});const c=e=>{i("update:value",e.target.value),e&&e.target&&"click"===e.type&&i("search",e.target.value,e),i("change",e)},d=e=>{var t;document.activeElement===(null===(t=a.value)||void 0===t?void 0:t.input)&&e.preventDefault()},p=e=>{var t,n;i("search",null===(n=null===(t=a.value)||void 0===t?void 0:t.input)||void 0===n?void 0:n.stateValue,e)},f=t=>{u.value||e.loading||p(t)},v=e=>{u.value=!0,i("compositionstart",e)},m=e=>{u.value=!1,i("compositionend",e)},{prefixCls:h,getPrefixCls:g,direction:y,size:b}=el("input-search",e),w=n((()=>g("input",e.inputPrefixCls)));return()=>{var t,n,l,i;const{disabled:s,loading:u,addonAfter:g=(null===(t=o.addonAfter)||void 0===t?void 0:t.call(o)),suffix:x=(null===(n=o.suffix)||void 0===n?void 0:n.call(o))}=e,C=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:S=null!==(i=null===(l=o.enterButton)||void 0===l?void 0:l.call(o))&&void 0!==i&&i}=e;S=S||""===S;const O="boolean"==typeof S?$(Ld,null,null):null,k=`${h.value}-button`,P=Array.isArray(S)?S[0]:S;let I;const E=P.type&&nf(P.type)&&P.type.__ANT_BUTTON;if(E||"button"===P.tagName)I=Ji(P,ze({onMousedown:d,onClick:p,key:"enterButton"},E?{class:k,size:b.value}:{}),!1);else{const e=O&&!S;I=$(cg,{class:k,type:S?"primary":void 0,size:b.value,disabled:s,key:"enterButton",onMousedown:d,onClick:p,loading:u,icon:e?O:null},{default:()=>[e?null:O||S]})}g&&(I=[I,g]);const j=Ge(h.value,{[`${h.value}-rtl`]:"rtl"===y.value,[`${h.value}-${b.value}`]:!!b.value,[`${h.value}-with-button`]:!!S},r.class);return $(j$,Te(Te(Te({ref:a},tl(C,["onUpdate:value","onSearch","enterButton"])),r),{},{onPressEnter:f,onCompositionstart:v,onCompositionend:m,size:b.value,prefixCls:w.value,addonAfter:I,suffix:x,onChange:c,class:j,disabled:s}),o)}}}),T$=e=>null!=e&&(!Array.isArray(e)||kt(e).length);function z$(e){return T$(e.addonBefore)||T$(e.addonAfter)}const D$=["text","input"],R$=l({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:Dl.oneOf(oe("text","input")),value:ue(),defaultValue:ue(),allowClear:{type:Boolean,default:void 0},element:ue(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:ue(),prefix:ue(),addonBefore:ue(),addonAfter:ue(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,t){let{slots:n,attrs:o}=t;const r=Ud.useInject(),l=t=>{const{value:o,disabled:r,readonly:l,handleReset:i,suffix:a=n.suffix}=e,s=!r&&!l&&o,u=`${t}-clear-icon`;return $(Bd,{onClick:i,onMousedown:e=>e.preventDefault(),class:Ge({[`${u}-hidden`]:!s,[`${u}-has-suffix`]:!!a},u),role:"button"},null)};return()=>{var t;const{prefixCls:i,inputType:a,element:s=(null===(t=n.element)||void 0===t?void 0:t.call(n))}=e;return a===D$[0]?((t,i)=>{const{value:a,allowClear:s,direction:u,bordered:c,hidden:d,status:p,addonAfter:f=n.addonAfter,addonBefore:v=n.addonBefore,hashId:m}=e,{status:h,hasFeedback:g}=r;if(!s)return Ji(i,{value:a,disabled:e.disabled});const y=Ge(`${t}-affix-wrapper`,`${t}-affix-wrapper-textarea-with-clear-btn`,Zd(`${t}-affix-wrapper`,Qd(h,p),g),{[`${t}-affix-wrapper-rtl`]:"rtl"===u,[`${t}-affix-wrapper-borderless`]:!c,[`${o.class}`]:!z$({addonAfter:f,addonBefore:v})&&o.class},m);return $("span",{class:y,style:o.style,hidden:d},[Ji(i,{style:null,value:a,disabled:e.disabled}),l(t)])})(i,s):null}}}),B$=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],N$={};let H$;function F$(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;H$||(H$=document.createElement("textarea"),H$.setAttribute("tab-index","-1"),H$.setAttribute("aria-hidden","true"),document.body.appendChild(H$)),e.getAttribute("wrap")?H$.setAttribute("wrap",e.getAttribute("wrap")):H$.removeAttribute("wrap");const{paddingSize:r,borderSize:l,boxSizing:i,sizingStyle:a}=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&N$[n])return N$[n];const o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),l=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),a={sizingStyle:B$.map((e=>`${e}:${o.getPropertyValue(e)}`)).join(";"),paddingSize:l,borderSize:i,boxSizing:r};return t&&n&&(N$[n]=a),a}(e,t);H$.setAttribute("style",`${a};\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n`),H$.value=e.value||e.placeholder||"";let s,u,c,d=H$.scrollHeight;if("border-box"===i?d+=l:"content-box"===i&&(d-=r),null!==n||null!==o){H$.value=" ";const e=H$.scrollHeight-r;null!==n&&(s=e*n,"border-box"===i&&(s=s+r+l),d=Math.max(s,d)),null!==o&&(u=e*o,"border-box"===i&&(u=u+r+l),c=d>u?"":"hidden",d=Math.min(u,d))}const p={height:`${d}px`,overflowY:c,resize:"none"};return s&&(p.minHeight=`${s}px`),u&&(p.maxHeight=`${u}px`),p}const L$=l({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:E$(),setup(e,t){let{attrs:o,emit:r,expose:l}=t;const a=b(),s=b({}),u=b(2);x((()=>{Dt.cancel(undefined),Dt.cancel(undefined)}));const c=b(),d=b();w((()=>{const t=e.autoSize||e.autosize;t?(c.value=t.minRows,d.value=t.maxRows):(c.value=void 0,d.value=void 0)}));const p=n((()=>!(!e.autoSize&&!e.autosize))),f=()=>{u.value=0};i([()=>e.value,c,d,p],(()=>{p.value&&f()}),{immediate:!0});const v=b();i([u,a],(()=>{if(a.value)if(0===u.value)u.value=1;else if(1===u.value){const e=F$(a.value.input,!1,c.value,d.value);u.value=2,v.value=e}else(()=>{try{if(a.value&&document.activeElement===a.value.input){const e=a.value.getSelectionStart(),t=a.value.getSelectionEnd(),n=a.value.getScrollTop();a.value.setSelectionRange(e,t),a.value.setScrollTop(n)}}catch{}})()}),{immediate:!0,flush:"post"});const h=m(),g=b(),y=()=>{Dt.cancel(g.value)},C=e=>{2===u.value&&(r("resize",e),p.value&&(y(),g.value=Dt((()=>{f()}))))};x((()=>{y()})),l({resizeTextarea:()=>{f()},textArea:n((()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.input})),instance:h}),bn(void 0===e.autosize);return()=>(()=>{const{prefixCls:t,disabled:n}=e,r=tl(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),l=Ge(t,o.class,{[`${t}-disabled`]:n}),i=p.value?v.value:null,c=[o.style,s.value,i],d=ze(ze(ze({},r),o),{style:c,class:l});return(0===u.value||1===u.value)&&c.push({overflowX:"hidden",overflowY:"hidden"}),d.autofocus||delete d.autofocus,0===d.rows&&delete d.rows,$(Et,{onResize:C,disabled:!p.value},{default:()=>[$(zu,Te(Te({},d),{},{ref:a,tag:"textarea"}),null)]})})()}});function _$(e,t){return[...e||""].slice(0,t).join("")}function W$(e,t,n,o){let r=n;return e?r=_$(n,o):[...t||""].length<n.length&&[...n||""].length>o&&(r=t),r}const V$=l({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:E$(),setup(e,t){let{attrs:o,expose:r,emit:l}=t;var a;const u=qd(),c=Ud.useInject(),d=n((()=>Qd(c.status,e.status))),p=s(null!==(a=e.value)&&void 0!==a?a:e.defaultValue),f=s(),v=s(""),{prefixCls:h,size:g,direction:y}=el("input",e),[b,x]=Ny(h),C=Ht(),S=n((()=>""===e.showCount||e.showCount||!1)),O=n((()=>Number(e.maxlength)>0)),k=s(!1),P=s(),E=s(0),j=e=>{k.value=!0,P.value=v.value,E.value=e.currentTarget.selectionStart,l("compositionstart",e)},A=t=>{var n;k.value=!1;let o=t.currentTarget.value;if(O.value){o=W$(E.value>=e.maxlength+1||E.value===(null===(n=P.value)||void 0===n?void 0:n.length),P.value,o,e.maxlength)}o!==v.value&&(z(o),$$(t.currentTarget,t,B,o)),l("compositionend",t)},M=m();i((()=>e.value),(()=>{var t;M.vnode.props,p.value=null!==(t=e.value)&&void 0!==t?t:""}));const T=e=>{var t;C$(null===(t=f.value)||void 0===t?void 0:t.textArea,e)},z=(t,n)=>{p.value!==t&&(void 0===e.value?p.value=t:I((()=>{var e,t,n;f.value.textArea.value!==v.value&&(null===(n=null===(e=f.value)||void 0===e?void 0:(t=e.instance).update)||void 0===n||n.call(t))})),I((()=>{n&&n()})))},D=e=>{13===e.keyCode&&l("pressEnter",e),l("keydown",e)},R=t=>{const{onBlur:n}=e;null==n||n(t),u.onFieldBlur()},B=e=>{l("update:value",e.target.value),l("change",e),l("input",e),u.onFieldChange()},N=e=>{$$(f.value.textArea,e,B),z("",(()=>{T()}))},H=t=>{let n=t.target.value;if(p.value!==n){if(O.value){const o=t.target;n=W$(o.selectionStart>=e.maxlength+1||o.selectionStart===n.length||!o.selectionStart,v.value,n,e.maxlength)}$$(t.currentTarget,t,B,n),z(n)}},F=()=>{var t,n;const{class:r}=o,{bordered:l=!0}=e,i=ze(ze(ze({},tl(e,["allowClear"])),o),{class:[{[`${h.value}-borderless`]:!l,[`${r}`]:r&&!S.value,[`${h.value}-sm`]:"small"===g.value,[`${h.value}-lg`]:"large"===g.value},Zd(h.value,d.value),x.value],disabled:C.value,showCount:null,prefixCls:h.value,onInput:H,onChange:H,onBlur:R,onKeydown:D,onCompositionstart:j,onCompositionend:A});return!(null===(t=e.valueModifiers)||void 0===t)&&t.lazy&&delete i.onInput,$(L$,Te(Te({},i),{},{id:null!==(n=null==i?void 0:i.id)&&void 0!==n?n:u.id.value,ref:f,maxlength:e.maxlength,lazy:e.lazy}),null)};return r({focus:T,blur:()=>{var e,t;null===(t=null===(e=f.value)||void 0===e?void 0:e.textArea)||void 0===t||t.blur()},resizableTextArea:f}),w((()=>{let t=x$(p.value);!k.value&&O.value&&(null===e.value||void 0===e.value)&&(t=_$(t,e.maxlength)),v.value=t})),()=>{var t;const{maxlength:n,bordered:r=!0,hidden:l}=e,{style:i,class:a}=o,s=ze(ze(ze({},e),o),{prefixCls:h.value,inputType:"text",handleReset:N,direction:y.value,bordered:r,style:S.value?void 0:i,hashId:x.value,disabled:null!==(t=e.disabled)&&void 0!==t?t:C.value});let u=$(R$,Te(Te({},s),{},{value:v.value,status:e.status}),{element:F});if(S.value||c.hasFeedback){const e=[...v.value].length;let t="";t="object"==typeof S.value?S.value.formatter({value:v.value,count:e,maxlength:n}):`${e}${O.value?` / ${n}`:""}`,u=$("div",{hidden:l,class:Ge(`${h.value}-textarea`,{[`${h.value}-textarea-rtl`]:"rtl"===y.value,[`${h.value}-textarea-show-count`]:S.value,[`${h.value}-textarea-in-form-item`]:c.isFormItemInput},`${h.value}-textarea-show-count`,a,x.value),style:i,"data-count":"object"!=typeof t?t:void 0},[u,c.hasFeedback&&$("span",{class:`${h.value}-textarea-suffix`},[c.feedbackIcon])])}return b(u)}}});var X$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};function K$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){q$(e,t,n[t])}))}return e}function q$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G$=function(e,t){var n=K$({},e,t.attrs);return $(yd,K$({},n,{icon:X$}),null)};G$.displayName="EyeOutlined",G$.inheritAttrs=!1;var U$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};function Y$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Z$(e,t,n[t])}))}return e}function Z$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q$=function(e,t){var n=Y$({},e,t.attrs);return $(yd,Y$({},n,{icon:U$}),null)};Q$.displayName="EyeInvisibleOutlined",Q$.inheritAttrs=!1;const J$={click:"onClick",hover:"onMouseover"},eC=e=>$(e?G$:Q$,null,null),tC=l({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:ze(ze({},I$()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(e,t){let{slots:o,attrs:r,expose:l,emit:i}=t;const a=s(!1),u=()=>{const{disabled:t}=e;t||(a.value=!a.value,i("update:visible",a.value))};w((()=>{void 0!==e.visible&&(a.value=!!e.visible)}));const c=s();l({focus:()=>{var e;null===(e=c.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=c.value)||void 0===e||e.blur()}});const{prefixCls:d,getPrefixCls:p}=el("input-password",e),f=n((()=>p("input",e.inputPrefixCls))),v=()=>{const{size:t,visibilityToggle:n}=e,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["size","visibilityToggle"]),i=n&&(t=>{const{action:n,iconRender:r=o.iconRender||eC}=e,l=J$[n]||"",i=r(a.value),s={[l]:u,class:`${t}-icon`,key:"passwordIcon",onMousedown:e=>{e.preventDefault()},onMouseup:e=>{e.preventDefault()}};return Ji(Pt(i)?i:$("span",null,[i]),s)})(d.value),s=Ge(d.value,r.class,{[`${d.value}-${t}`]:!!t}),p=ze(ze(ze({},tl(l,["suffix","iconRender","action"])),r),{type:a.value?"text":"password",class:s,prefixCls:f.value,suffix:i});return t&&(p.size=t),$(j$,Te({ref:c},p),o)};return()=>v()}});function nC(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:Dl.shape({x:Number,y:Number}).loose,title:Dl.any,footer:Dl.any,transitionName:String,maskTransitionName:String,animation:Dl.any,maskAnimation:Dl.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:Dl.any,maskProps:Dl.any,wrapProps:Dl.any,getContainer:Dl.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:Dl.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function oC(e,t,n){let o=t;return!o&&n&&(o=`${e}-${n}`),o}j$.Group=A$,j$.Search=M$,j$.TextArea=V$,j$.Password=tC,j$.install=function(e){return e.component(j$.name,j$),e.component(j$.Group.name,j$.Group),e.component(j$.Search.name,j$.Search),e.component(j$.TextArea.name,j$.TextArea),e.component(j$.Password.name,j$.Password),e};let rC=-1;function lC(e,t){let n=e[`page${t?"Y":"X"}Offset`];const o="scroll"+(t?"Top":"Left");if("number"!=typeof n){const t=e.document;n=t.documentElement[o],"number"!=typeof n&&(n=t.body[o])}return n}const iC={width:0,height:0,overflow:"hidden",outline:"none"},aC={outline:"none"},sC=l({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:ze(ze({},nC()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:o,slots:r,attrs:l}=t;const i=b(),a=b(),s=b();o({focus:()=>{var e;null===(e=i.value)||void 0===e||e.focus({preventScroll:!0})},changeActive:e=>{const{activeElement:t}=document;e&&t===a.value?i.value.focus({preventScroll:!0}):!e&&t===i.value&&a.value.focus({preventScroll:!0})}});const u=b(),c=n((()=>{const{width:t,height:n}=e,o={};return void 0!==t&&(o.width="number"==typeof t?`${t}px`:t),void 0!==n&&(o.height="number"==typeof n?`${n}px`:n),u.value&&(o.transformOrigin=u.value),o})),d=()=>{I((()=>{if(s.value){const t=function(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow;return n.left+=lC(r),n.top+=lC(r,!0),n}(s.value);u.value=e.mousePosition?`${e.mousePosition.x-t.left}px ${e.mousePosition.y-t.top}px`:""}}))},p=t=>{e.onVisibleChanged(t)};return()=>{var t,n,o,u;const{prefixCls:f,footer:v=(null===(t=r.footer)||void 0===t?void 0:t.call(r)),title:m=(null===(n=r.title)||void 0===n?void 0:n.call(r)),ariaId:h,closable:g,closeIcon:y=(null===(o=r.closeIcon)||void 0===o?void 0:o.call(r)),onClose:b,bodyStyle:w,bodyProps:x,onMousedown:C,onMouseup:k,visible:P,modalRender:I=r.modalRender,destroyOnClose:E,motionName:j}=e;let M,T,z;v&&(M=$("div",{class:`${f}-footer`},[v])),m&&(T=$("div",{class:`${f}-header`},[$("div",{class:`${f}-title`,id:h},[m])])),g&&(z=$("button",{type:"button",onClick:b,"aria-label":"Close",class:`${f}-close`},[y||$("span",{class:`${f}-close-x`},null)]));const D=$("div",{class:`${f}-content`},[z,T,$("div",Te({class:`${f}-body`,style:w},x),[null===(u=r.default)||void 0===u?void 0:u.call(r)]),M]),R=su(j);return $(S,Te(Te({},R),{},{onBeforeEnter:d,onAfterEnter:()=>p(!0),onAfterLeave:()=>p(!1)}),{default:()=>[P||!E?O($("div",Te(Te({},l),{},{ref:s,key:"dialog-element",role:"document",style:[c.value,l.style],class:[f,l.class],onMousedown:C,onMouseup:k}),[$("div",{tabindex:0,ref:i,style:aC},[I?I({originVNode:D}):D]),$("div",{tabindex:0,ref:a,style:iC},null)]),[[A,P]]):null]})}}}),uC=l({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup:(e,t)=>()=>{const{prefixCls:t,visible:n,maskProps:o,motionName:r}=e,l=su(r);return $(S,l,{default:()=>[O($("div",Te({class:`${t}-mask`},o),null),[[A,n]])]})}}),cC=l({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:yt(ze(ze({},nC()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,t){let{attrs:n,slots:o}=t;const r=s(),l=s(),a=s(),u=s(e.visible),c=s(`vcDialogTitle${rC+=1,rC}`),d=t=>{var n,o;if(t)ln(l.value,document.activeElement)||(r.value=document.activeElement,null===(n=a.value)||void 0===n||n.focus());else{const t=u.value;if(u.value=!1,e.mask&&r.value&&e.focusTriggerAfterClose){try{r.value.focus({preventScroll:!0})}catch{}r.value=null}t&&(null===(o=e.afterClose)||void 0===o||o.call(e))}},p=t=>{var n;null===(n=e.onClose)||void 0===n||n.call(e,t)},f=s(!1),v=s(),m=()=>{clearTimeout(v.value),f.value=!0},h=()=>{v.value=setTimeout((()=>{f.value=!1}))},g=t=>{if(!e.maskClosable)return null;f.value?f.value=!1:l.value===t.target&&p(t)},y=t=>{if(e.keyboard&&t.keyCode===ju.ESC)return t.stopPropagation(),void p(t);e.visible&&t.keyCode===ju.TAB&&a.value.changeActive(!t.shiftKey)};return i((()=>e.visible),(()=>{e.visible&&(u.value=!0)}),{flush:"post"}),x((()=>{var t;clearTimeout(v.value),null===(t=e.scrollLocker)||void 0===t||t.unLock()})),w((()=>{var t,n;null===(t=e.scrollLocker)||void 0===t||t.unLock(),u.value&&(null===(n=e.scrollLocker)||void 0===n||n.lock())})),()=>{const{prefixCls:t,mask:r,visible:i,maskTransitionName:s,maskAnimation:f,zIndex:v,wrapClassName:b,rootClassName:w,wrapStyle:x,closable:C,maskProps:S,maskStyle:O,transitionName:k,animation:P,wrapProps:I,title:E=o.title}=e,{style:j,class:A}=n;return $("div",Te({class:[`${t}-root`,w]},Hu(e,{data:!0})),[$(uC,{prefixCls:t,visible:r&&i,motionName:oC(t,s,f),style:ze({zIndex:v},O),maskProps:S},null),$("div",Te({tabIndex:-1,onKeydown:y,class:Ge(`${t}-wrap`,b),ref:l,onClick:g,role:"dialog","aria-labelledby":E?c.value:null,style:ze(ze({zIndex:v},x),{display:u.value?null:"none"})},I),[$(sC,Te(Te({},tl(e,["scrollLocker"])),{},{style:j,class:A,onMousedown:m,onMouseup:h,ref:a,closable:C,ariaId:c.value,prefixCls:t,visible:i,onClose:p,onVisibleChanged:d,motionName:oC(t,k,P)}),o)])])}}}),dC=nC(),pC=l({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:yt(dC,{visible:!1}),setup(e,t){let{attrs:n,slots:o}=t;const r=b(e.visible);return gu({},{inTriggerContext:!1}),i((()=>e.visible),(()=>{e.visible&&(r.value=!0)}),{flush:"post"}),()=>{const{visible:t,getContainer:l,forceRender:i,destroyOnClose:a=!1,afterClose:s}=e;let u=ze(ze(ze({},e),n),{ref:"_component",key:"dialog"});return!1===l?$(cC,Te(Te({},u),{},{getOpenCount:()=>2}),o):i||!a||r.value?$(ku,{autoLock:!0,visible:t,forceRender:i,getContainer:l},{default:e=>(u=ze(ze(ze({},u),e),{afterClose:()=>{null==s||s(),r.value=!1}}),$(cC,u,o))}):null}}});function fC(e,t,n,o){const r=t+n,l=(n-o)/2;if(n>o){if(t>0)return{[e]:l};if(t<0&&r<o)return{[e]:-l}}else if(t<0||r>o)return{[e]:t<0?l:-l};return{}}function vC(e,t,n,o){const{width:r,height:l}={width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight};let i=null;return e<=r&&t<=l?i={x:0,y:0}:(e>r||t>l)&&(i=ze(ze({},fC("x",n,e,r)),fC("y",o,t,l))),i}const mC=Symbol("previewGroupContext"),hC=e=>{r(mC,e)},gC=()=>o(mC,{isPreviewGroup:s(!1),previewUrls:n((()=>new Map)),setPreviewUrls:()=>{},current:b(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""}),yC=l({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}},setup(e,t){let{slots:o}=t;const r=n((()=>{const t={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return"object"==typeof e.preview?CC(e.preview,t):t})),l=v(new Map),a=b(),u=n((()=>r.value.visible)),d=n((()=>r.value.getContainer)),[p,f]=zc(!!u.value,{value:u,onChange:(e,t)=>{var n,o;null===(o=(n=r.value).onVisibleChange)||void 0===o||o.call(n,e,t)}}),m=b(null),h=n((()=>void 0!==u.value)),g=n((()=>Array.from(l.keys()))),y=n((()=>g.value[r.value.current])),x=n((()=>new Map(Array.from(l).filter((e=>{let[,{canPreview:t}]=e;return!!t})).map((e=>{let[t,{url:n}]=e;return[t,n]}))))),C=e=>{a.value=e},S=e=>{m.value=e},O=e=>{null==e||e.stopPropagation(),f(!1),S(null)};return i(y,(e=>{C(e)}),{immediate:!0,flush:"post"}),w((()=>{p.value&&h.value&&C(y.value)}),{flush:"post"}),hC({isPreviewGroup:s(!0),previewUrls:x,setPreviewUrls:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];l.set(e,{url:t,canPreview:n})},current:a,setCurrent:C,setShowPreview:f,setMousePosition:S,registerImage:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return l.set(e,{url:t,canPreview:n}),()=>{l.delete(e)}}}),()=>{const t=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(r.value,[]);return $(c,null,[o.default&&o.default(),$(xC,Te(Te({},t),{},{"ria-hidden":!p.value,visible:p.value,prefixCls:e.previewPrefixCls,onClose:O,mousePosition:m.value,src:x.value.get(a.value),icons:e.icons,getContainer:d.value}),null)])}}}),bC={x:0,y:0},wC=ze(ze({},nC()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),xC=l({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:wC,emits:["close","afterClose"],setup(e,t){let{emit:o,attrs:r}=t;const{rotateLeft:l,rotateRight:a,zoomIn:u,zoomOut:c,close:d,left:p,right:f,flipX:m,flipY:g}=v(e.icons),w=s(1),x=s(0),C=v({x:1,y:1}),[S,O]=function(e){const t=b(null),n=v(ze({},e)),o=b([]);return h((()=>{t.value&&Dt.cancel(t.value)})),[n,e=>{null===t.value&&(o.value=[],t.value=Dt((()=>{let e;o.value.forEach((t=>{e=ze(ze({},e),t)})),ze(n,e),t.value=null}))),o.value.push(e)}]}(bC),k=()=>o("close"),I=s(),E=v({originX:0,originY:0,deltaX:0,deltaY:0}),j=s(!1),A=gC(),{previewUrls:M,current:T,isPreviewGroup:z,setCurrent:D}=A,R=n((()=>M.value.size)),B=n((()=>Array.from(M.value.keys()))),N=n((()=>B.value.indexOf(T.value))),H=n((()=>z.value?M.value.get(T.value):e.src)),F=n((()=>z.value&&R.value>1)),L=s({wheelDirection:0}),_=()=>{w.value=1,x.value=0,C.x=1,C.y=1,O(bC),o("afterClose")},W=e=>{e?w.value+=.5:w.value++,O(bC)},V=e=>{w.value>1&&(e?w.value-=.5:w.value--),O(bC)},X=e=>{e.preventDefault(),e.stopPropagation(),N.value>0&&D(B.value[N.value-1])},K=e=>{e.preventDefault(),e.stopPropagation(),N.value<R.value-1&&D(B.value[N.value+1])},q=Ge({[`${e.prefixCls}-moving`]:j.value}),G=`${e.prefixCls}-operations-operation`,U=`${e.prefixCls}-operations-icon`,Y=[{icon:d,onClick:k,type:"close"},{icon:u,onClick:()=>W(),type:"zoomIn"},{icon:c,onClick:()=>V(),type:"zoomOut",disabled:n((()=>1===w.value))},{icon:a,onClick:()=>{x.value+=90},type:"rotateRight"},{icon:l,onClick:()=>{x.value-=90},type:"rotateLeft"},{icon:m,onClick:()=>{C.x=-C.x},type:"flipX"},{icon:g,onClick:()=>{C.y=-C.y},type:"flipY"}],Z=()=>{if(e.visible&&j.value){const e=I.value.offsetWidth*w.value,t=I.value.offsetHeight*w.value,{left:n,top:o}=Tu(I.value),r=x.value%180!=0;j.value=!1;const l=vC(r?t:e,r?e:t,n,o);l&&O(ze({},l))}},Q=e=>{0===e.button&&(e.preventDefault(),e.stopPropagation(),E.deltaX=e.pageX-S.x,E.deltaY=e.pageY-S.y,E.originX=S.x,E.originY=S.y,j.value=!0)},J=t=>{e.visible&&j.value&&O({x:t.pageX-E.deltaX,y:t.pageY-E.deltaY})},ee=t=>{if(!e.visible)return;t.preventDefault();const n=t.deltaY;L.value={wheelDirection:n}},te=t=>{!e.visible||!F.value||(t.preventDefault(),t.keyCode===ju.LEFT?N.value>0&&D(B.value[N.value-1]):t.keyCode===ju.RIGHT&&N.value<R.value-1&&D(B.value[N.value+1]))},ne=()=>{e.visible&&(1!==w.value&&(w.value=1),(S.x!==bC.x||S.y!==bC.y)&&O(bC))};let oe=()=>{};return h((()=>{i([()=>e.visible,j],(()=>{let e,t;oe();const n=Bt(window,"mouseup",Z,!1),o=Bt(window,"mousemove",J,!1),r=Bt(window,"wheel",ee,{passive:!1}),l=Bt(window,"keydown",te,!1);try{window.top!==window.self&&(e=Bt(window.top,"mouseup",Z,!1),t=Bt(window.top,"mousemove",J,!1))}catch{}oe=()=>{n.remove(),o.remove(),r.remove(),l.remove(),e&&e.remove(),t&&t.remove()}}),{flush:"post",immediate:!0}),i([L],(()=>{const{wheelDirection:e}=L.value;e>0?V(!0):e<0&&W(!0)}))})),y((()=>{oe()})),()=>{const{visible:t,prefixCls:n,rootClassName:o}=e;return $(pC,Te(Te({},r),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:n,onClose:k,afterClose:_,visible:t,wrapClassName:q,rootClassName:o,getContainer:e.getContainer}),{default:()=>[$("div",{class:[`${e.prefixCls}-operations-wrapper`,o]},[$("ul",{class:`${e.prefixCls}-operations`},[Y.map((t=>{let{icon:n,onClick:o,type:r,disabled:l}=t;return $("li",{class:Ge(G,{[`${e.prefixCls}-operations-operation-disabled`]:l&&(null==l?void 0:l.value)}),onClick:o,key:r},[P(n,{class:U})])}))])]),$("div",{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${S.x}px, ${S.y}px, 0)`}},[$("img",{onMousedown:Q,onDblclick:ne,ref:I,class:`${e.prefixCls}-img`,src:H.value,alt:e.alt,style:{transform:`scale3d(${C.x*w.value}, ${C.y*w.value}, 1) rotate(${x.value}deg)`}},null)]),F.value&&$("div",{class:Ge(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:N.value<=0}),onClick:X},[p]),F.value&&$("div",{class:Ge(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:N.value>=R.value-1}),onClick:K},[f])]})}}});const $C=()=>({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,width:[Number,String],height:[Number,String],previewMask:{type:[Boolean,Function],default:void 0},placeholder:Dl.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),CC=(e,t)=>{const n=ze({},e);return Object.keys(t).forEach((o=>{void 0===e[o]&&(n[o]=t[o])})),n};let SC=0;const OC=l({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:$C(),emits:["click","error"],setup(e,t){let{attrs:o,slots:r,emit:l}=t;const a=n((()=>e.prefixCls)),s=n((()=>`${a.value}-preview`)),u=n((()=>{const t={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return"object"==typeof e.preview?CC(e.preview,t):t})),d=n((()=>{var t;return null!==(t=u.value.src)&&void 0!==t?t:e.src})),p=n((()=>e.placeholder&&!0!==e.placeholder||r.placeholder)),f=n((()=>u.value.visible)),v=n((()=>u.value.getContainer)),m=n((()=>void 0!==f.value)),[g,w]=zc(!!f.value,{value:f,onChange:(e,t)=>{var n,o;null===(o=(n=u.value).onVisibleChange)||void 0===o||o.call(n,e,t)}}),x=b(p.value?"loading":"normal");i((()=>e.src),(()=>{x.value=p.value?"loading":"normal"}));const C=b(null),S=n((()=>"error"===x.value)),O=gC(),{isPreviewGroup:k,setCurrent:P,setShowPreview:I,setMousePosition:E,registerImage:j}=O,A=b(SC++),M=n((()=>e.preview&&!S.value)),T=()=>{x.value="normal"},z=e=>{x.value="error",l("error",e)},D=e=>{if(!m.value){const{left:t,top:n}=Tu(e.target);k.value?(P(A.value),E({x:t,y:n})):C.value={x:t,y:n}}k.value?I(!0):w(!0),l("click",e)},R=()=>{w(!1),m.value||(C.value=null)},B=b(null);i((()=>B),(()=>{"loading"===x.value&&B.value.complete&&(B.value.naturalWidth||B.value.naturalHeight)&&T()}));let N=()=>{};h((()=>{i([d,M],(()=>{if(N(),!k.value)return()=>{};N=j(A.value,d.value,M.value),M.value||N()}),{flush:"post",immediate:!0})})),y((()=>{N()}));const H=e=>function(e){return"number"==typeof e||ns(e)&&"[object Number]"==ha(e)}(e)?e+"px":e;return()=>{const{prefixCls:t,wrapperClassName:n,fallback:i,src:a,placeholder:p,wrapperStyle:f,rootClassName:m,width:h,height:y,crossorigin:b,decoding:w,alt:O,sizes:P,srcset:I,usemap:E,class:j,style:A}=ze(ze({},e),o),N=u.value,{icons:F,maskClassName:L}=N,_=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(N,["icons","maskClassName"]),W=Ge(t,n,m,{[`${t}-error`]:S.value}),V=S.value&&i?i:d.value,X={crossorigin:b,decoding:w,alt:O,sizes:P,srcset:I,usemap:E,width:h,height:y,class:Ge(`${t}-img`,{[`${t}-img-placeholder`]:!0===p},j),style:ze({height:H(y)},A)};return $(c,null,[$("div",{class:W,onClick:M.value?D:e=>{l("click",e)},style:ze({width:H(h),height:H(y)},f)},[$("img",Te(Te(Te({},X),S.value&&i?{src:i}:{onLoad:T,onError:z,src:a}),{},{ref:B}),null),"loading"===x.value&&$("div",{"aria-hidden":"true",class:`${t}-placeholder`},[p||r.placeholder&&r.placeholder()]),r.previewMask&&M.value&&$("div",{class:[`${t}-mask`,L]},[r.previewMask()])]),!k.value&&M.value&&$(xC,Te(Te({},_),{},{"aria-hidden":!g.value,visible:g.value,prefixCls:s.value,onClose:R,mousePosition:C.value,src:V,alt:O,getContainer:v.value,icons:F,rootClassName:m}),null)])}}});OC.PreviewGroup=yC;var kC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};function PC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){IC(e,t,n[t])}))}return e}function IC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EC=function(e,t){var n=PC({},e,t.attrs);return $(yd,PC({},n,{icon:kC}),null)};EC.displayName="RotateLeftOutlined",EC.inheritAttrs=!1;var jC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};function AC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){MC(e,t,n[t])}))}return e}function MC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var TC=function(e,t){var n=AC({},e,t.attrs);return $(yd,AC({},n,{icon:jC}),null)};TC.displayName="RotateRightOutlined",TC.inheritAttrs=!1;var zC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};function DC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){RC(e,t,n[t])}))}return e}function RC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var BC=function(e,t){var n=DC({},e,t.attrs);return $(yd,DC({},n,{icon:zC}),null)};BC.displayName="ZoomInOutlined",BC.inheritAttrs=!1;var NC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};function HC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){FC(e,t,n[t])}))}return e}function FC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var LC=function(e,t){var n=HC({},e,t.attrs);return $(yd,HC({},n,{icon:NC}),null)};LC.displayName="ZoomOutOutlined",LC.inheritAttrs=!1;var _C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};function WC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){VC(e,t,n[t])}))}return e}function VC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XC=function(e,t){var n=WC({},e,t.attrs);return $(yd,WC({},n,{icon:_C}),null)};function KC(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}XC.displayName="SwapOutlined",XC.inheritAttrs=!1;const qC=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${e.antCls}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:ze(ze({},KC("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:ze(ze({},KC("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:dv(e)}]},GC=e=>({position:e||"absolute",inset:0}),UC=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:o,marginXXS:r,prefixCls:l}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new Zo("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${l}-mask-info`]:ze(ze({},kr),{padding:`0 ${o}px`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},YC=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:o,previewOperationColorDisabled:r,motionDurationSlow:l}=e,i=new Zo(n).setAlpha(.1),a=i.clone().setAlpha(.2);return{[`${t}-operations`]:ze(ze({},Pr(e)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:e.previewOperationColor,listStyle:"none",background:i.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${l}`,userSelect:"none","&:hover":{background:a.toRgbString()},"&-disabled":{color:r,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:e.previewOperationSize}})}},ZC=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:l,motionDurationSlow:i}=e,a=new Zo(t).setAlpha(.1),s=a.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:l+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:a.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:e.marginSM},[`${r}-switch-right`]:{insetInlineEnd:e.marginSM}}},QC=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:ze(ze({},GC()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":ze(ze({},GC()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:e.zIndexPopup+1,width:"100%"},"&":[YC(e),ZC(e)]}]},JC=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:ze({},UC(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:ze({},GC())}}},eS=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Wv(e,"zoom"),"&":dv(e,!0)}},tS=Mr("Image",(e=>{const t=`${e.componentCls}-preview`,n=Dr(e,{previewCls:t,modalMaskBg:new Zo("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[JC(n),QC(n),qC(Dr(n,{componentCls:t})),eS(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Zo(e.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new Zo(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}))),nS={rotateLeft:$(EC,null,null),rotateRight:$(TC,null,null),zoomIn:$(BC,null,null),zoomOut:$(LC,null,null),close:$(Td,null,null),left:$(wb,null,null),right:$(kg,null,null),flipX:$(XC,null,null),flipY:$(XC,{rotate:90},null)},oS=l({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String,preview:ue()},setup(e,t){let{attrs:o,slots:r}=t;const{prefixCls:l,rootPrefixCls:i}=el("image",e),a=n((()=>`${l.value}-preview`)),[s,u]=tS(l),c=n((()=>{const{preview:t}=e;if(!1===t)return t;const n="object"==typeof t?t:{};return ze(ze({},n),{rootClassName:u.value,transitionName:cu(i.value,"zoom",n.transitionName),maskTransitionName:cu(i.value,"fade",n.maskTransitionName)})}));return()=>s($(yC,Te(Te({},ze(ze({},o),e)),{},{preview:c.value,icons:nS,previewPrefixCls:a.value}),r))}}),rS=l({name:"AImage",inheritAttrs:!1,props:$C(),setup(e,t){let{slots:o,attrs:r}=t;const{prefixCls:l,rootPrefixCls:i,configProvider:a}=el("image",e),[s,u]=tS(l),c=n((()=>{const{preview:t}=e;if(!1===t)return t;const n="object"==typeof t?t:{};return ze(ze({icons:nS},n),{transitionName:cu(i.value,"zoom",n.transitionName),maskTransitionName:cu(i.value,"fade",n.maskTransitionName)})}));return()=>{var t,n;const i=(null===(n=null===(t=a.locale)||void 0===t?void 0:t.value)||void 0===n?void 0:n.Image)||Vt.Image,d=()=>$("div",{class:`${l.value}-mask-info`},[$(G$,null,null),null==i?void 0:i.preview]),{previewMask:p=o.previewMask||d}=e;return s($(OC,Te(Te({},ze(ze(ze({},r),e),{prefixCls:l.value})),{},{preview:c.value,rootClassName:Ge(e.rootClassName,u.value)}),ze(ze({},o),{previewMask:"function"==typeof p?p:null})))}}});rS.PreviewGroup=oS,rS.install=function(e){return e.component(rS.name,rS),e.component(rS.PreviewGroup.name,rS.PreviewGroup),e};const lS={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},iS=l({compatConfig:{MODE:3},name:"TransButton",inheritAttrs:!1,props:{noStyle:{type:Boolean,default:void 0},onClick:Function,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,emit:o,attrs:r,expose:l}=t;const i=s(),a=e=>{const{keyCode:t}=e;t===ju.ENTER&&e.preventDefault()},u=e=>{const{keyCode:t}=e;t===ju.ENTER&&o("click",e)},c=e=>{o("click",e)},d=()=>{i.value&&i.value.focus()};return h((()=>{e.autofocus&&d()})),l({focus:d,blur:()=>{i.value&&i.value.blur()}}),()=>{var t;const{noStyle:o,disabled:l}=e,s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["noStyle","disabled"]);let d={};return o||(d=ze({},lS)),l&&(d.pointerEvents="none"),$("div",Te(Te(Te({role:"button",tabindex:0,ref:i},s),r),{},{onClick:c,onKeydown:a,onKeyup:u,style:ze(ze({},d),r.style||{})}),[null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}),aS=["normal","exception","active","success"],sS=()=>({prefixCls:String,type:de(),percent:Number,format:se(),status:de(),showInfo:ae(),strokeWidth:Number,strokeLinecap:de(),strokeColor:ue(),trailColor:String,width:Number,success:ie(),gapDegree:Number,gapPosition:de(),size:pe([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:de()});function uS(e){return!e||e<0?0:e>100?100:e}function cS(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(Rl(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),o=t.progress),t&&"percent"in t&&(o=t.percent),o}const dS=(e,t,n)=>{var o,r,l,i;let a=-1,s=-1;if("step"===t){const t=n.steps,o=n.strokeWidth;"string"==typeof e||typeof e>"u"?(a="small"===e?2:14,s=o??8):"number"==typeof e?[a,s]=[e,e]:[a=14,s=8]=e,a*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||typeof e>"u"?s=t||("small"===e?6:8):"number"==typeof e?[a,s]=[e,e]:[a=-1,s=8]=e}else("circle"===t||"dashboard"===t)&&("string"==typeof e||typeof e>"u"?[a,s]="small"===e?[60,60]:[120,120]:"number"==typeof e?[a,s]=[e,e]:(a=null!==(r=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==r?r:120,s=null!==(i=null!==(l=e[0])&&void 0!==l?l:e[1])&&void 0!==i?i:120));return{width:a,height:s}};const pS=(e,t)=>{const{from:n=lr.blue,to:o=lr.blue,direction:r=("rtl"===t?"to left":"to right")}=e,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["from","to","direction"]);if(0!==Object.keys(l).length){const e=(e=>{let t=[];return Object.keys(e).forEach((n=>{const o=parseFloat(n.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(l);return{backgroundImage:`linear-gradient(${r}, ${e})`}}return{backgroundImage:`linear-gradient(${r}, ${n}, ${o})`}},fS=l({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:ze(ze({},sS()),{strokeColor:ue(),direction:de()}),setup(e,t){let{slots:o,attrs:r}=t;const l=n((()=>{const{strokeColor:t,direction:n}=e;return t&&"string"!=typeof t?pS(t,n):{backgroundColor:t}})),i=n((()=>"square"===e.strokeLinecap||"butt"===e.strokeLinecap?0:void 0)),a=n((()=>e.trailColor?{backgroundColor:e.trailColor}:void 0)),s=n((()=>{var t;return null!==(t=e.size)&&void 0!==t?t:[-1,e.strokeWidth||("small"===e.size?6:8)]})),u=n((()=>dS(s.value,"line",{strokeWidth:e.strokeWidth}))),d=n((()=>{const{percent:t}=e;return ze({width:`${uS(t)}%`,height:`${u.value.height}px`,borderRadius:i.value},l.value)})),p=n((()=>cS(e))),f=n((()=>{const{success:t}=e;return{width:`${uS(p.value)}%`,height:`${u.value.height}px`,borderRadius:i.value,backgroundColor:null==t?void 0:t.strokeColor}})),v={width:u.value.width<0?"100%":u.value.width,height:`${u.value.height}px`};return()=>{var t;return $(c,null,[$("div",Te(Te({},r),{},{class:[`${e.prefixCls}-outer`,r.class],style:[r.style,v]}),[$("div",{class:`${e.prefixCls}-inner`,style:a.value},[$("div",{class:`${e.prefixCls}-bg`,style:d.value},null),void 0!==p.value?$("div",{class:`${e.prefixCls}-success-bg`,style:f.value},null):null])]),null===(t=o.default)||void 0===t?void 0:t.call(o)])}}}),vS={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},mS=e=>{const t=b(null);return g((()=>{const n=Date.now();let o=!1;e.value.forEach((e=>{const r=(null==e?void 0:e.$el)||e;if(!r)return;o=!0;const l=r.style;l.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(l.transitionDuration="0s, 0s")})),o&&(t.value=Date.now())})),e},hS={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};l({compatConfig:{MODE:3},name:"ProgressLine",props:yt(hS,vS),setup(e){const t=n((()=>{const{percent:t}=e;return Array.isArray(t)?t:[t]})),o=n((()=>{const{prefixCls:n,strokeLinecap:o,strokeWidth:l,transition:i}=e;let a=0;return t.value.map(((e,t)=>{let s=1;switch(o){case"round":s=1-l/100;break;case"square":s=1-l/2/100;break;default:s=1}const c={strokeDasharray:e*s+"px, 100px",strokeDashoffset:`-${a}px`,transition:i||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},d=r.value[t]||r.value[r.value.length-1];return a+=e,{key:t,d:u.value,"stroke-linecap":o,stroke:d,"stroke-width":l,"fill-opacity":"0",class:`${n}-line-path`,style:c}}))})),r=n((()=>{const{strokeColor:t}=e;return Array.isArray(t)?t:[t]})),[l,i]=Hy();mS(i);const a=n((()=>e.strokeWidth/2)),s=n((()=>100-e.strokeWidth/2)),u=n((()=>`M ${"round"===e.strokeLinecap?a.value:0},${a.value}\n L ${"round"===e.strokeLinecap?s.value:100},${a.value}`)),c=n((()=>`0 0 100 ${e.strokeWidth}`)),d=n((()=>({d:u.value,"stroke-linecap":e.strokeLinecap,stroke:e.trailColor,"stroke-width":e.trailWidth||e.strokeWidth,"fill-opacity":"0",class:`${e.prefixCls}-line-trail`})));return()=>{const{percent:t,prefixCls:n,strokeColor:r,strokeLinecap:i,strokeWidth:a,trailColor:s,trailWidth:u,transition:p}=e,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","trailColor","trailWidth","transition"]);return delete f.gapPosition,$("svg",Te({class:`${n}-line`,viewBox:c.value,preserveAspectRatio:"none"},f),[$("path",d.value,null),o.value.map(((e,t)=>$("path",Te({ref:l(t)},e),null)))])}}});let gS=0;function yS(e){return+e.replace("%","")}function bS(e){return Array.isArray(e)?e:[e]}function wS(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const l=50-o/2;let i=0,a=-l,s=0,u=-2*l;switch(arguments.length>5?arguments[5]:void 0){case"left":i=-l,a=0,s=2*l,u=0;break;case"right":i=l,a=0,s=-2*l,u=0;break;case"bottom":a=l,u=2*l}const c=`M 50,50 m ${i},${a}\n a ${l},${l} 0 1 1 ${s},${-u}\n a ${l},${l} 0 1 1 ${-s},${u}`,d=2*Math.PI*l;return{pathString:c,pathStyle:{stroke:n,strokeDasharray:`${t/100*(d-r)}px ${d}px`,strokeDashoffset:`-${r/2+e/100*(d-r)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"}}}const xS=l({compatConfig:{MODE:3},name:"VCCircle",props:yt(hS,vS),setup(e){gS+=1;const t=b(gS),o=n((()=>bS(e.percent))),r=n((()=>bS(e.strokeColor))),[l,i]=Hy();mS(i);const a=()=>{const{prefixCls:n,strokeWidth:i,strokeLinecap:a,gapDegree:s,gapPosition:u}=e;let c=0;return o.value.map(((e,o)=>{const d=r.value[o]||r.value[r.value.length-1],p="[object Object]"===Object.prototype.toString.call(d)?`url(#${n}-gradient-${t.value})`:"",{pathString:f,pathStyle:v}=wS(c,e,d,i,s,u);c+=e;const m={key:o,d:f,stroke:p,"stroke-linecap":a,"stroke-width":i,opacity:0===e?0:1,"fill-opacity":"0",class:`${n}-circle-path`,style:v};return $("path",Te({ref:l(o)},m),null)}))};return()=>{const{prefixCls:n,strokeWidth:o,trailWidth:l,gapDegree:i,gapPosition:s,trailColor:u,strokeLinecap:c,strokeColor:d}=e,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:f,pathStyle:v}=wS(0,100,u,o,i,s);delete p.percent;const m=r.value.find((e=>"[object Object]"===Object.prototype.toString.call(e))),h={d:f,stroke:u,"stroke-linecap":c,"stroke-width":l||o,"fill-opacity":"0",class:`${n}-circle-trail`,style:v};return $("svg",Te({class:`${n}-circle`,viewBox:"0 0 100 100"},p),[m&&$("defs",null,[$("linearGradient",{id:`${n}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(m).sort(((e,t)=>yS(e)-yS(t))).map(((e,t)=>$("stop",{key:t,offset:e,"stop-color":m[e]},null)))])]),$("path",h,null),a().reverse()])}}}),$S=l({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:yt(ze(ze({},sS()),{strokeColor:ue()}),{trailColor:null}),setup(e,t){let{slots:o,attrs:r}=t;const l=n((()=>{var t;return null!==(t=e.width)&&void 0!==t?t:120})),i=n((()=>{var t;return null!==(t=e.size)&&void 0!==t?t:[l.value,l.value]})),a=n((()=>dS(i.value,"circle"))),s=n((()=>e.gapDegree||0===e.gapDegree?e.gapDegree:"dashboard"===e.type?75:void 0)),u=n((()=>({width:`${a.value.width}px`,height:`${a.value.height}px`,fontSize:.15*a.value.width+6+"px"}))),d=n((()=>{var t;return null!==(t=e.strokeWidth)&&void 0!==t?t:Math.max((e=>3/e*100)(a.value.width),6)})),p=n((()=>e.gapPosition||"dashboard"===e.type&&"bottom"||void 0)),f=n((()=>function(e){let{percent:t,success:n,successPercent:o}=e;const r=uS(cS({success:n,successPercent:o}));return[r,uS(uS(t)-r)]}(e))),v=n((()=>"[object Object]"===Object.prototype.toString.call(e.strokeColor))),m=n((()=>function(e){let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||lr.green,n||null]}({success:e.success,strokeColor:e.strokeColor}))),h=n((()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:v.value})));return()=>{var t;const n=$(xS,{percent:f.value,strokeWidth:d.value,trailWidth:d.value,strokeColor:m.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:s.value,gapPosition:p.value},null);return $("div",Te(Te({},r),{},{class:[h.value,r.class],style:[r.style,u.value]}),[a.value.width<=20?$(sh,null,{default:()=>[$("span",null,[n])],title:o.default}):$(c,null,[n,null===(t=o.default)||void 0===t?void 0:t.call(o)])])}}}),CS=l({compatConfig:{MODE:3},name:"Steps",props:ze(ze({},sS()),{steps:Number,strokeColor:pe(),trailColor:String}),setup(e,t){let{slots:o}=t;const r=n((()=>Math.round(e.steps*((e.percent||0)/100)))),l=n((()=>{var t;return null!==(t=e.size)&&void 0!==t?t:["small"===e.size?2:14,e.strokeWidth||8]})),i=n((()=>dS(l.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8}))),a=n((()=>{const{steps:t,strokeColor:n,trailColor:o,prefixCls:l}=e,a=[];for(let e=0;e<t;e+=1){const s=Array.isArray(n)?n[e]:n,u={[`${l}-steps-item`]:!0,[`${l}-steps-item-active`]:e<=r.value-1};a.push($("div",{key:e,class:u,style:{backgroundColor:e<=r.value-1?s:o,width:i.value.width/t+"px",height:`${i.value.height}px`}},null))}return a}));return()=>{var t;return $("div",{class:`${e.prefixCls}-steps-outer`},[a.value,null===(t=o.default)||void 0===t?void 0:t.call(o)])}}}),SS=new Eo("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),OS=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:ze(ze({},Pr(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:SS,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},kS=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.fontSize/e.fontSizeSM+"em"}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},PS=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},IS=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},ES=Mr("Progress",(e=>{const t=e.marginXXS/2,n=Dr(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[OS(n),kS(n),PS(n),IS(n)]}));const jS=l({compatConfig:{MODE:3},name:"AProgress",inheritAttrs:!1,props:yt(sS(),{type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",strokeLinecap:"round"}),slots:Object,setup(e,t){let{slots:o,attrs:r}=t;const{prefixCls:l,direction:i}=el("progress",e),[a,s]=ES(l),u=n((()=>Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor)),c=n((()=>{const{percent:t=0}=e,n=cS(e);return parseInt(void 0!==n?n.toString():t.toString(),10)})),d=n((()=>{const{status:t}=e;return!aS.includes(t)&&c.value>=100?"success":t||"normal"})),p=n((()=>{const{type:t,showInfo:n,size:o}=e,r=l.value;return{[r]:!0,[`${r}-inline-circle`]:"circle"===t&&dS(o,"circle").width<=20,[`${r}-${"dashboard"===t?"circle":t}`]:!0,[`${r}-status-${d.value}`]:!0,[`${r}-show-info`]:n,[`${r}-${o}`]:o,[`${r}-rtl`]:"rtl"===i.value,[s.value]:!0}})),f=n((()=>"string"==typeof e.strokeColor||Array.isArray(e.strokeColor)?e.strokeColor:void 0));return()=>{const{type:t,steps:n,title:s}=e,{class:c}=r,v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(r,["class"]),m=(()=>{const{showInfo:t,format:n,type:r,percent:i,title:a}=e,s=cS(e);if(!t)return null;let u;const c=n||(null==o?void 0:o.format)||(e=>`${e}%`),p="line"===r;return n||null!=o&&o.format||"exception"!==d.value&&"success"!==d.value?u=c(uS(i),uS(s)):"exception"===d.value?u=$(p?Bd:Td,null,null):"success"===d.value&&(u=$(p?km:Ed,null,null)),$("span",{class:`${l.value}-text`,title:void 0===a&&"string"==typeof u?u:void 0},[u])})();let h;return"line"===t?h=n?$(CS,Te(Te({},e),{},{strokeColor:f.value,prefixCls:l.value,steps:n}),{default:()=>[m]}):$(fS,Te(Te({},e),{},{strokeColor:u.value,prefixCls:l.value,direction:i.value}),{default:()=>[m]}):("circle"===t||"dashboard"===t)&&(h=$($S,Te(Te({},e),{},{prefixCls:l.value,strokeColor:u.value,progressStatus:d.value}),{default:()=>[m]})),a($("div",Te(Te({role:"progressbar"},v),{},{class:[p.value,c],title:s}),[h]))}}}),AS=re(jS);var MS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};function TS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){zS(e,t,n[t])}))}return e}function zS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var DS=function(e,t){var n=TS({},e,t.attrs);return $(yd,TS({},n,{icon:MS}),null)};DS.displayName="DeleteOutlined",DS.inheritAttrs=!1;var RS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};function BS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){NS(e,t,n[t])}))}return e}function NS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HS=function(e,t){var n=BS({},e,t.attrs);return $(yd,BS({},n,{icon:RS}),null)};HS.displayName="EnterOutlined",HS.inheritAttrs=!1;const FS=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,o)=>{const{sizeMarginHeadingVerticalEnd:r,fontWeightStrong:l}=o;return{marginBottom:r,color:n,fontWeight:l,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},LS=e=>{const{componentCls:t}=e;return{"a&, a":ze(ze({},Cr(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},_S=e=>{const{componentCls:t}=e,n=Ry(e).inputPaddingVertical+1;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-n,marginBottom:`calc(1em - ${n}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},WS=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),VS=e=>{const{componentCls:t,sizeMarginHeadingVerticalStart:n}=e;return{[t]:ze(ze(ze(ze(ze(ze(ze(ze(ze({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},FS(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),{code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:sr[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),LS(e)),{[`\n ${t}-expand,\n ${t}-edit,\n ${t}-copy\n `]:ze(ze({},Cr(e)),{marginInlineStart:e.marginXXS})}),_S(e)),WS(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}},XS=Mr("Typography",(e=>[VS(e)]),{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),KS=l({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:{prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String},setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:l}=R(e),a=v({current:e.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});i((()=>e.value),(e=>{a.current=e}));const s=b();function u(e){s.value=e}function c(e){let{target:{value:t}}=e;a.current=t.replace(/[\r\n]/g,""),n("change",a.current)}function d(){a.inComposition=!0}function p(){a.inComposition=!1}function f(e){const{keyCode:t}=e;t===ju.ENTER&&e.preventDefault(),!a.inComposition&&(a.lastKeyCode=t)}function m(t){const{keyCode:o,ctrlKey:r,altKey:l,metaKey:i,shiftKey:s}=t;a.lastKeyCode===o&&!a.inComposition&&!r&&!l&&!i&&!s&&(o===ju.ENTER?(y(),n("end")):o===ju.ESC&&(a.current=e.originContent,n("cancel")))}function g(){y()}function y(){n("save",a.current.trim())}h((()=>{var e;if(s.value){const t=null===(e=s.value)||void 0===e?void 0:e.resizableTextArea,n=null==t?void 0:t.textArea;n.focus();const{length:o}=n.value;n.setSelectionRange(o,o)}}));const[w,x]=XS(l);return()=>{const t=Ge({[`${l.value}`]:!0,[`${l.value}-edit-content`]:!0,[`${l.value}-rtl`]:"rtl"===e.direction,[e.component?`${l.value}-${e.component}`:""]:!0},r.class,x.value);return w($("div",Te(Te({},r),{},{class:t}),[$(V$,{ref:u,maxlength:e.maxlength,value:a.current,onChange:c,onKeydown:f,onKeyup:m,onCompositionstart:d,onCompositionend:p,onBlur:g,rows:1,autoSize:void 0===e.autoSize||e.autoSize},null),o.enterIcon?o.enterIcon({className:`${e.prefixCls}-edit-content-confirm`}):$(HS,{class:`${e.prefixCls}-edit-content-confirm`},null)]))}}});let qS;const GS={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function US(e,t){e.setAttribute("aria-hidden","true");const n=function(e){return Array.prototype.slice.apply(e).map((t=>`${t}: ${e.getPropertyValue(t)};`)).join("")}(window.getComputedStyle(t));e.setAttribute("style",n),e.style.position="fixed",e.style.left="0",e.style.height="auto",e.style.minHeight="auto",e.style.maxHeight="auto",e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderTopWidth="0",e.style.borderBottomWidth="0",e.style.top="-999999px",e.style.zIndex="-1000",e.style.textOverflow="clip",e.style.whiteSpace="normal",e.style.webkitLineClamp="none"}const YS=(e,t,n,o,r)=>{qS||(qS=document.createElement("div"),qS.setAttribute("aria-hidden","true"),document.body.appendChild(qS));const{rows:l,suffix:i=""}=t,a=function(e){const t=document.createElement("div");US(t,e),t.appendChild(document.createTextNode("text")),document.body.appendChild(t);const n=t.getBoundingClientRect().height;return document.body.removeChild(t),n}(e),s=Math.round(a*l*100)/100;US(qS,e);const u=L({render:()=>$("div",{style:GS},[$("span",{style:GS},[n,i]),$("span",{style:GS},[o])])});function c(){return Math.round(100*qS.getBoundingClientRect().height)/100-.1<=s}if(u.mount(qS),c())return u.unmount(),{content:n,text:qS.innerHTML,ellipsis:!1};const d=Array.prototype.slice.apply(qS.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter((e=>{let{nodeType:t,data:n}=e;return 8!==t&&""!==n})),p=Array.prototype.slice.apply(qS.childNodes[0].childNodes[1].cloneNode(!0).childNodes);u.unmount();const f=[];qS.innerHTML="";const v=document.createElement("span");qS.appendChild(v);const m=document.createTextNode(r+i);function h(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const l=Math.floor((n+o)/2),i=t.slice(0,l);if(e.textContent=i,n>=o-1)for(let r=o;r>=n;r-=1){const n=t.slice(0,r);if(e.textContent=n,c()||!n)return r===t.length?{finished:!1,vNode:t}:{finished:!0,vNode:n}}return c()?h(e,t,l,o,l):h(e,t,n,l,r)}function g(e){if(3===e.nodeType){const t=e.textContent||"",n=document.createTextNode(t);return function(e){v.insertBefore(e,m)}(n),h(n,t)}return{finished:!1,vNode:null}}return v.appendChild(m),p.forEach((e=>{qS.appendChild(e)})),d.some((e=>{const{finished:t,vNode:n}=g(e);return n&&f.push(n),t})),{content:f,text:qS.innerHTML,ellipsis:!0}};const ZS=l({name:"ATypography",inheritAttrs:!1,props:{prefixCls:String,direction:String,component:String},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=el("typography",e),[i,a]=XS(r);return()=>{var t;const s=ze(ze({},e),o),{prefixCls:u,direction:c,component:d="article"}=s,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(s,["prefixCls","direction","component"]);return i($(d,Te(Te({},p),{},{class:Ge(r.value,{[`${r.value}-rtl`]:"rtl"===l.value},o.class,a.value)}),{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]}))}}}),QS={"text/plain":"Text","text/html":"Url",default:"Text"};function JS(e,t){let n,o,r,l,i,a=!1;t||(t={});const s=t.debug||!1;try{if(o=(()=>{const e=document.getSelection();if(!e.rangeCount)return function(){};let t=document.activeElement;const n=[];for(let t=0;t<e.rangeCount;t++)n.push(e.getRangeAt(t));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}})(),r=document.createRange(),l=document.getSelection(),i=document.createElement("span"),i.textContent=e,i.style.all="unset",i.style.position="fixed",i.style.top=0,i.style.clip="rect(0, 0, 0, 0)",i.style.whiteSpace="pre",i.style.webkitUserSelect="text",i.style.MozUserSelect="text",i.style.msUserSelect="text",i.style.userSelect="text",i.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),typeof n.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();const n=QS[t.format]||QS.default;window.clipboardData.setData(n,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(i),r.selectNodeContents(i),l.addRange(r),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");a=!0}catch(o){s&&console.error("unable to copy using execCommand: ",o),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),a=!0}catch(o){s&&console.error("unable to copy using clipboardData: ",o),s&&console.error("falling back to prompt"),n=function(e){const t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(n,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(r):l.removeAllRanges()),i&&document.body.removeChild(i),o()}return a}var eO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};function tO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){nO(e,t,n[t])}))}return e}function nO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oO=function(e,t){var n=tO({},e,t.attrs);return $(yd,tO({},n,{icon:eO}),null)};oO.displayName="CopyOutlined",oO.inheritAttrs=!1;var rO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function lO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){iO(e,t,n[t])}))}return e}function iO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aO=function(e,t){var n=lO({},e,t.attrs);return $(yd,lO({},n,{icon:rO}),null)};aO.displayName="EditOutlined",aO.inheritAttrs=!1;const sO=xb("webkitLineClamp"),uO=xb("textOverflow"),cO=()=>({editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}),dO=l({compatConfig:{MODE:3},name:"TypographyBase",inheritAttrs:!1,props:cO(),setup(e,t){let{slots:o,attrs:r,emit:l}=t;const{prefixCls:a,direction:s}=el("typography",e),u=v({copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:"",copyStr:"",copiedStr:"",editStr:"",copyId:void 0,rafId:void 0,prevProps:void 0,originContent:""}),d=b(),p=b(),f=n((()=>{const t=e.ellipsis;return t?ze({rows:1,expandable:!1},"object"==typeof t?t:null):{}}));function m(e){const{onExpand:t}=f.value;u.expanded=!0,null==t||t(e)}function g(t){t.preventDefault(),u.originContent=e.content,j(!0)}function y(e){C(e),j(!1)}function C(t){const{onChange:n}=k.value;t!==e.content&&(l("update:content",t),null==n||n(t))}function S(){var e,t;null===(t=(e=k.value).onCancel)||void 0===t||t.call(e),j(!1)}function O(t){t.preventDefault(),t.stopPropagation();const{copyable:n}=e,o=ze({},"object"==typeof n?n:null);void 0===o.text&&(o.text=function(){var t;return e.ellipsis||e.editable?e.content:null===(t=xt(d.value))||void 0===t?void 0:t.innerText}()),JS(o.text||""),u.copied=!0,I((()=>{o.onCopy&&o.onCopy(t),u.copyId=setTimeout((()=>{u.copied=!1}),3e3)}))}h((()=>{u.clientRendered=!0,T()})),x((()=>{clearTimeout(u.copyId),Dt.cancel(u.rafId)})),i([()=>f.value.rows,()=>e.content],(()=>{I((()=>{A()}))}),{flush:"post",deep:!0}),w((()=>{void 0===e.content&&(bn(!e.editable),bn(!e.ellipsis))}));const k=n((()=>{const t=e.editable;return t?ze({},"object"==typeof t?t:null):{editing:!1}})),[P,E]=zc(!1,{value:n((()=>k.value.editing))});function j(e){const{onStart:t}=k.value;e&&t&&t(),E(e)}function A(e){if(e){const{width:t,height:n}=e;if(!t||!n)return}Dt.cancel(u.rafId),u.rafId=Dt((()=>{T()}))}i(P,(e=>{var t;e||null===(t=p.value)||void 0===t||t.focus()}),{flush:"post"});const M=n((()=>{const{rows:t,expandable:n,suffix:o,onEllipsis:r,tooltip:l}=f.value;return!(o||l||e.editable||e.copyable||n||r)&&(1===t?uO:sO)})),T=()=>{const{ellipsisText:t,isEllipsis:n}=u,{rows:o,suffix:r,onEllipsis:l}=f.value;if(!o||o<0||!xt(d.value)||u.expanded||void 0===e.content||M.value)return;const{content:i,text:a,ellipsis:s}=YS(xt(d.value),{rows:o,suffix:r},e.content,N(!0),"...");(t!==a||u.isEllipsis!==s)&&(u.ellipsisText=a,u.ellipsisContent=i,u.isEllipsis=s,n!==s&&l&&l(s))};function z(e){const{expandable:t,symbol:n}=f.value;if(!t||!e&&(u.expanded||!u.isEllipsis))return null;const r=(o.ellipsisSymbol?o.ellipsisSymbol():n)||u.expandStr;return $("a",{key:"expand",class:`${a.value}-expand`,onClick:m,"aria-label":u.expandStr},[r])}function D(){if(!e.editable)return;const{tooltip:t,triggerType:n=["icon"]}=e.editable,r=o.editableIcon?o.editableIcon():$(aO,{role:"button"},null),l=o.editableTooltip?o.editableTooltip():u.editStr,i="string"==typeof l?l:"";return-1!==n.indexOf("icon")?$(sh,{key:"edit",title:!1===t?"":l},{default:()=>[$(iS,{ref:p,class:`${a.value}-edit`,onClick:g,"aria-label":i},{default:()=>[r]})]}):null}function R(){if(!e.copyable)return;const{tooltip:t}=e.copyable,n=u.copied?u.copiedStr:u.copyStr,r=o.copyableTooltip?o.copyableTooltip({copied:u.copied}):n,l="string"==typeof r?r:"",i=u.copied?$(Ed,null,null):$(oO,null,null),s=o.copyableIcon?o.copyableIcon({copied:!!u.copied}):i;return $(sh,{key:"copy",title:!1===t?"":r},{default:()=>[$(iS,{class:[`${a.value}-copy`,{[`${a.value}-copy-success`]:u.copied}],onClick:O,"aria-label":l},{default:()=>[s]})]})}function N(e){return[z(e),D(),R()].filter((e=>e))}return()=>{var t;const{triggerType:n=["icon"]}=k.value,l=e.ellipsis||e.editable?void 0!==e.content?e.content:null===(t=o.default)||void 0===t?void 0:t.call(o):o.default?o.default():e.content;return P.value?function(){const{class:t,style:n}=r,{maxlength:l,autoSize:i,onEnd:c}=k.value;return $(KS,{class:t,style:n,prefixCls:a.value,value:e.content,originContent:u.originContent,maxlength:l,autoSize:i,onSave:y,onChange:C,onCancel:S,onEnd:c,direction:s.value,component:e.component},{enterIcon:o.editableEnterIcon})}():$(Xt,{componentName:"Text",children:t=>{const i=ze(ze({},e),r),{type:p,disabled:v,content:m,class:h,style:y}=i,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(i,["type","disabled","content","class","style"]),{rows:w,suffix:x,tooltip:C}=f.value,{edit:S,copy:O,copied:k,expand:P}=t;u.editStr=S,u.copyStr=O,u.copiedStr=k,u.expandStr=P;const I=tl(b,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","onUpdate:content"]),E=M.value,j=1===w&&E,T=w&&w>1&&E;let z=l;if(w&&u.isEllipsis&&!u.expanded&&!E){const{title:e}=b;let t=e||"";!e&&("string"==typeof l||"number"==typeof l)&&(t=String(l)),t=null==t?void 0:t.slice(String(u.ellipsisContent||"").length),z=$(c,null,[B(u.ellipsisContent),$("span",{title:t,"aria-hidden":"true"},["..."]),x])}else z=$(c,null,[l,x]);z=function(e,t){let{mark:n,code:o,underline:r,delete:l,strong:i,keyboard:a}=e,s=t;function u(e,t){if(!e)return;const n=function(){return s}();s=$(t,null,{default:()=>[n]})}return u(i,"strong"),u(r,"u"),u(l,"del"),u(o,"code"),u(n,"mark"),u(a,"kbd"),s}(e,z);const D=C&&w&&u.isEllipsis&&!u.expanded&&!E,R=o.ellipsisTooltip?o.ellipsisTooltip():C;return $(Et,{onResize:A,disabled:!w},{default:()=>[$(ZS,Te({ref:d,class:[{[`${a.value}-${p}`]:p,[`${a.value}-disabled`]:v,[`${a.value}-ellipsis`]:w,[`${a.value}-single-line`]:1===w&&!u.isEllipsis,[`${a.value}-ellipsis-single-line`]:j,[`${a.value}-ellipsis-multiple-line`]:T},h],style:ze(ze({},y),{WebkitLineClamp:T?w:void 0}),"aria-label":undefined,direction:s.value,onClick:-1!==n.indexOf("text")?g:()=>{}},I),{default:()=>[D?$(sh,{title:!0===C?l:R},{default:()=>[$("span",null,[z])]}):z,N()]})]})}},null)}}});const pO=(e,t)=>{let{slots:n,attrs:o}=t;const r=ze(ze({},e),o),{ellipsis:l,rel:i}=r,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(r,["ellipsis","rel"]),s=ze(ze({},a),{rel:void 0===i&&"_blank"===a.target?"noopener noreferrer":i,ellipsis:!!l,component:"a"});return delete s.navigate,$(dO,s,n)};pO.displayName="ATypographyLink",pO.inheritAttrs=!1,pO.props=tl(ze(ze({},cO()),{ellipsis:{type:Boolean,default:void 0}}),["component"]);const fO=(e,t)=>{let{slots:n,attrs:o}=t;const r=ze(ze(ze({},e),{component:"div"}),o);return $(dO,r,n)};fO.displayName="ATypographyParagraph",fO.inheritAttrs=!1,fO.props=tl(cO(),["component"]);const vO=(e,t)=>{let{slots:n,attrs:o}=t;const{ellipsis:r}=e,l=ze(ze(ze({},e),{ellipsis:r&&"object"==typeof r?tl(r,["expandable","rows"]):r,component:"span"}),o);return $(dO,l,n)};vO.displayName="ATypographyText",vO.inheritAttrs=!1,vO.props=ze(ze({},tl(cO(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}});const mO=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}(1,2,3,4,5),hO=(e,t)=>{let{slots:n,attrs:o}=t;const{level:r=1}=e,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["level"]);let i;i=mO.includes(r)?`h${r}`:"h1";const a=ze(ze(ze({},l),{component:i}),o);return $(dO,a,n)};function gO(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function yO(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});const n=new FormData;e.data&&Object.keys(e.data).forEach((t=>{const o=e.data[t];Array.isArray(o)?o.forEach((e=>{n.append(`${t}[]`,e)})):n.append(t,o)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,o=new Error(n);return o.status=t.status,o.method=e.method,o.url=e.action,o}(e,t),gO(t)):e.onSuccess(gO(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};return null!==o["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach((e=>{null!==o[e]&&t.setRequestHeader(e,o[e])})),t.send(n),{abort(){t.abort()}}}hO.displayName="ATypographyTitle",hO.inheritAttrs=!1,hO.props=ze(ze({},tl(cO(),["component","strong"])),{level:Number}),ZS.Text=vO,ZS.Title=hO,ZS.Paragraph=fO,ZS.Link=pO,ZS.Base=dO,ZS.install=function(e){return e.component(ZS.name,ZS),e.component(ZS.Text.displayName,vO),e.component(ZS.Title.displayName,hO),e.component(ZS.Paragraph.displayName,fO),e.component(ZS.Link.displayName,pO),e};const bO=+new Date;let wO=0;function xO(){return`vc-upload-${bO}-${++wO}`}const $O=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),o=e.name||"",r=e.type||"",l=r.replace(/\/.*$/,"");return n.some((e=>{const t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){const e=o.toLowerCase(),n=t.toLowerCase();let r=[n];return(".jpg"===n||".jpeg"===n)&&(r=[".jpg",".jpeg"]),r.some((t=>e.endsWith(t)))}return/\/\*$/.test(t)?l===t.replace(/\/.*$/,""):!(r!==t&&!/^\w+$/.test(t))}))}return!0};const CO=(e,t,n)=>{const o=(e,r)=>{e.path=r||"",e.isFile?e.file((o=>{n(o)&&(e.fullPath&&!o.webkitRelativePath&&(Object.defineProperties(o,{webkitRelativePath:{writable:!0}}),o.webkitRelativePath=e.fullPath.replace(/^\//,""),Object.defineProperties(o,{webkitRelativePath:{writable:!1}})),t([o]))})):e.isDirectory&&function(e,t){const n=e.createReader();let o=[];!function e(){n.readEntries((n=>{const r=Array.prototype.slice.apply(n);o=o.concat(r),r.length?e():t(o)}))}()}(e,(t=>{t.forEach((t=>{o(t,`${r}${e.name}/`)}))}))};e.forEach((e=>{o(e.webkitGetAsEntry())}))},SO=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var OO=function(e,t,n,o){return new(n||(n=Promise))((function(r,l){function i(e){try{s(o.next(e))}catch(e){l(e)}}function a(e){try{s(o.throw(e))}catch(e){l(e)}}function s(e){e.done?r(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(i,a)}s((o=o.apply(e,t||[])).next())}))};const kO=l({compatConfig:{MODE:3},name:"AjaxUploader",inheritAttrs:!1,props:SO(),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=b(xO()),i={},a=b();let s=!1;const u=(t,n)=>OO(this,void 0,void 0,(function*(){const{beforeUpload:o}=e;let r=t;if(o){try{r=yield o(t,n)}catch{r=!1}if(!1===r)return{origin:t,parsedFile:null,action:null,data:null}}const{action:l}=e;let i;i="function"==typeof l?yield l(t):l;const{data:a}=e;let s;s="function"==typeof a?yield a(t):a;const u="object"!=typeof r&&"string"!=typeof r||!r?t:r;let c;c=u instanceof File?u:new File([u],t.name,{type:t.type});const d=c;return d.uid=t.uid,{origin:t,data:s,parsedFile:d,action:i}})),c=e=>{if(e){const t=e.uid?e.uid:e;i[t]&&i[t].abort&&i[t].abort(),delete i[t]}else Object.keys(i).forEach((e=>{i[e]&&i[e].abort&&i[e].abort(),delete i[e]}))};h((()=>{s=!0})),x((()=>{s=!1,c()}));const d=t=>{const n=[...t],o=n.map((e=>(e.uid=xO(),u(e,n))));Promise.all(o).then((t=>{const{onBatchStart:n}=e;null==n||n(t.map((e=>{let{origin:t,parsedFile:n}=e;return{file:t,parsedFile:n}}))),t.filter((e=>null!==e.parsedFile)).forEach((t=>{(t=>{let{data:n,origin:o,action:r,parsedFile:l}=t;if(!s)return;const{onStart:a,customRequest:u,name:c,headers:d,withCredentials:p,method:f}=e,{uid:v}=o,m=u||yO,h={action:r,filename:c,data:n,file:l,headers:d,withCredentials:p,method:f||"post",onProgress:t=>{const{onProgress:n}=e;null==n||n(t,l)},onSuccess:(t,n)=>{const{onSuccess:o}=e;null==o||o(t,l,n),delete i[v]},onError:(t,n)=>{const{onError:o}=e;null==o||o(t,n,l),delete i[v]}};a(o),i[v]=m(h)})(t)}))}))},p=t=>{const{accept:n,directory:o}=e,{files:r}=t.target,i=[...r].filter((e=>!o||$O(e,n)));d(i),l.value=xO()},f=t=>{const n=a.value;if(!n)return;const{onClick:o}=e;n.click(),o&&o(t)},v=e=>{"Enter"===e.key&&f(e)},m=t=>{const{multiple:n}=e;if(t.preventDefault(),"dragover"!==t.type)if(e.directory)CO(Array.prototype.slice.call(t.dataTransfer.items),d,(t=>$O(t,e.accept)));else{const o=Jf(Array.prototype.slice.call(t.dataTransfer.files),(t=>$O(t,e.accept)));let r=o[0];const l=o[1];!1===n&&(r=r.slice(0,1)),d(r),l.length&&e.onReject&&e.onReject(l)}};return r({abort:c}),()=>{var t;const{componentTag:r,prefixCls:i,disabled:s,id:u,multiple:c,accept:d,capture:h,directory:g,openFileDialogOnClick:y,onMouseenter:b,onMouseleave:w}=e,x=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),C={[i]:!0,[`${i}-disabled`]:s,[o.class]:!!o.class},S=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return $(r,Te(Te({},s?{}:{onClick:y?f:()=>{},onKeydown:y?v:()=>{},onMouseenter:b,onMouseleave:w,onDrop:m,onDragover:m,tabindex:"0"}),{},{class:C,role:"button",style:o.style}),{default:()=>[$("input",Te(Te(Te({},Hu(x,{aria:!0,data:!0})),{},{id:u,type:"file",ref:a,onClick:e=>e.stopPropagation(),onCancel:e=>e.stopPropagation(),key:l.value,style:{display:"none"},accept:d},S),{},{multiple:c,onChange:p},null!=h?{capture:h}:{}),null),null===(t=n.default)||void 0===t?void 0:t.call(n)]})}}});function PO(){}const IO=l({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:yt(SO(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:PO,onError:PO,onSuccess:PO,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=b();return r({abort:e=>{var t;null===(t=l.value)||void 0===t||t.abort(e)}}),()=>$(kO,Te(Te(Te({},e),o),{},{ref:l}),n)}});var EO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};function jO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){AO(e,t,n[t])}))}return e}function AO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var MO=function(e,t){var n=jO({},e,t.attrs);return $(yd,jO({},n,{icon:EO}),null)};MO.displayName="PaperClipOutlined",MO.inheritAttrs=!1;var TO={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};function zO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){DO(e,t,n[t])}))}return e}function DO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var RO=function(e,t){var n=zO({},e,t.attrs);return $(yd,zO({},n,{icon:TO}),null)};RO.displayName="PictureTwoTone",RO.inheritAttrs=!1;var BO={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};function NO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){HO(e,t,n[t])}))}return e}function HO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var FO=function(e,t){var n=NO({},e,t.attrs);return $(yd,NO({},n,{icon:BO}),null)};function LO(){return{capture:pe([Boolean,String]),type:de(),name:String,defaultFileList:ce(),fileList:ce(),action:pe([String,Function]),directory:ae(),data:pe([Object,Function]),method:de(),headers:ie(),showUploadList:pe([Boolean,Object]),multiple:ae(),accept:String,beforeUpload:se(),onChange:se(),"onUpdate:fileList":se(),onDrop:se(),listType:de(),onPreview:se(),onDownload:se(),onReject:se(),onRemove:se(),remove:se(),supportServerRender:ae(),disabled:ae(),prefixCls:String,customRequest:se(),withCredentials:ae(),openFileDialogOnClick:ae(),locale:ie(),id:String,previewFile:se(),transformFile:se(),iconRender:se(),isImageUrl:se(),progress:ie(),itemRender:se(),maxCount:Number,height:pe([Number,String]),removeIcon:se(),downloadIcon:se(),previewIcon:se()}}function _O(e){return ze(ze({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function WO(e,t){const n=[...t],o=n.findIndex((t=>{let{uid:n}=t;return n===e.uid}));return-1===o?n.push(e):n[o]=e,n}function VO(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter((t=>t[n]===e[n]))[0]}FO.displayName="FileTwoTone",FO.inheritAttrs=!1;const XO=e=>0===e.indexOf("image/"),KO=200;var qO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};function GO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){UO(e,t,n[t])}))}return e}function UO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var YO=function(e,t){var n=GO({},e,t.attrs);return $(yd,GO({},n,{icon:qO}),null)};YO.displayName="DownloadOutlined",YO.inheritAttrs=!1;const ZO=l({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:{prefixCls:String,locale:ie(void 0),file:ie(),items:ce(),listType:de(),isImgUrl:se(),showRemoveIcon:ae(),showDownloadIcon:ae(),showPreviewIcon:ae(),removeIcon:se(),downloadIcon:se(),previewIcon:se(),iconRender:se(),actionIconRender:se(),itemRender:se(),onPreview:se(),onClose:se(),onDownload:se(),progress:ie()},setup(e,t){let{slots:o,attrs:r}=t;var l;const a=s(!1),u=s();h((()=>{u.value=setTimeout((()=>{a.value=!0}),300)})),x((()=>{clearTimeout(u.value)}));const c=s(null===(l=e.file)||void 0===l?void 0:l.status);i((()=>{var t;return null===(t=e.file)||void 0===t?void 0:t.status}),(e=>{"removed"!==e&&(c.value=e)}));const{rootPrefixCls:d}=el("upload",e),p=n((()=>su(`${d.value}-fade`)));return()=>{var t,n;const{prefixCls:l,locale:i,listType:s,file:u,items:d,progress:f,iconRender:v=o.iconRender,actionIconRender:m=o.actionIconRender,itemRender:h=o.itemRender,isImgUrl:g,showPreviewIcon:y,showRemoveIcon:b,showDownloadIcon:w,previewIcon:x=o.previewIcon,removeIcon:C=o.removeIcon,downloadIcon:k=o.downloadIcon,onPreview:P,onDownload:I,onClose:E}=e,{class:j,style:M}=r,T=v({file:u});let z=$("div",{class:`${l}-text-icon`},[T]);if("picture"===s||"picture-card"===s)if("uploading"===c.value||!u.thumbUrl&&!u.url){const e={[`${l}-list-item-thumbnail`]:!0,[`${l}-list-item-file`]:"uploading"!==c.value};z=$("div",{class:e},[T])}else{const e=null!=g&&g(u)?$("img",{src:u.thumbUrl||u.url,alt:u.name,class:`${l}-list-item-image`,crossorigin:u.crossOrigin},null):T,t={[`${l}-list-item-thumbnail`]:!0,[`${l}-list-item-file`]:g&&!g(u)};z=$("a",{class:t,onClick:e=>P(u,e),href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[e])}const D={[`${l}-list-item`]:!0,[`${l}-list-item-${c.value}`]:!0},R="string"==typeof u.linkProps?JSON.parse(u.linkProps):u.linkProps,B=b?m({customIcon:C?C({file:u}):$(DS,null,null),callback:()=>E(u),prefixCls:l,title:i.removeFile}):null,N=w&&"done"===c.value?m({customIcon:k?k({file:u}):$(YO,null,null),callback:()=>I(u),prefixCls:l,title:i.downloadFile}):null,H="picture-card"!==s&&$("span",{key:"download-delete",class:[`${l}-list-item-actions`,{picture:"picture"===s}]},[N,B]),F=`${l}-list-item-name`,L=u.url?[$("a",Te(Te({key:"view",target:"_blank",rel:"noopener noreferrer",class:F,title:u.name},R),{},{href:u.url,onClick:e=>P(u,e)}),[u.name]),H]:[$("span",{key:"view",class:F,onClick:e=>P(u,e),title:u.name},[u.name]),H],_=y?$("a",{href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:u.url||u.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:e=>P(u,e),title:i.previewFile},[x?x({file:u}):$(G$,null,null)]):null,W="picture-card"===s&&"uploading"!==c.value&&$("span",{class:`${l}-list-item-actions`},[_,"done"===c.value&&N,B]),V=$("div",{class:D},[z,L,W,a.value&&$(S,p.value,{default:()=>[O($("div",{class:`${l}-list-item-progress`},["percent"in u?$(AS,Te(Te({},f),{},{type:"line",percent:u.percent}),null):null]),[[A,"uploading"===c.value]])]})]),X={[`${l}-list-item-container`]:!0,[`${j}`]:!!j},K=u.response&&"string"==typeof u.response?u.response:(null===(t=u.error)||void 0===t?void 0:t.statusText)||(null===(n=u.error)||void 0===n?void 0:n.message)||i.uploadError,q="error"===c.value?$(sh,{title:K,getPopupContainer:e=>e.parentNode},{default:()=>[V]}):V;return $("div",{class:X,style:M},[h?h({originNode:q,file:u,fileList:d,actions:{download:I.bind(null,u),preview:P.bind(null,u),remove:E.bind(null,u)}}):q])}}}),QO=(e,t)=>{let{slots:n}=t;var o;return kt(null===(o=n.default)||void 0===o?void 0:o.call(n))[0]},JO=l({compatConfig:{MODE:3},name:"AUploadList",props:yt({listType:de(),onPreview:se(),onDownload:se(),onRemove:se(),items:ce(),progress:ie(),prefixCls:de(),showRemoveIcon:ae(),showDownloadIcon:ae(),showPreviewIcon:ae(),removeIcon:se(),downloadIcon:se(),previewIcon:se(),locale:ie(void 0),previewFile:se(),iconRender:se(),isImageUrl:se(),appendAction:se(),appendActionVisible:ae(),itemRender:se()},{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:function(e){return new Promise((t=>{if(!e.type||!XO(e.type))return void t("");const n=document.createElement("canvas");n.width=KO,n.height=KO,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const o=n.getContext("2d"),r=new Image;if(r.onload=()=>{const{width:e,height:l}=r;let i=KO,a=KO,s=0,u=0;e>l?(a=l*(KO/e),u=-(a-i)/2):(i=e*(KO/l),s=-(i-a)/2),o.drawImage(r,s,u,i,a);const c=n.toDataURL();document.body.removeChild(n),t(c)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.addEventListener("load",(()=>{t.result&&(r.src=t.result)})),t.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)}))},isImageUrl:e=>{if(e.type&&!e.thumbUrl)return XO(e.type);const t=e.thumbUrl||e.url||"",n=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n))||!(/^data:/.test(t)||n)},items:[],appendActionVisible:!0}),setup(e,t){let{slots:o,expose:r}=t;const l=s(!1);h((()=>{l.value}));const a=s([]);i((()=>e.items),(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a.value=e.slice()}),{immediate:!0,deep:!0}),w((()=>{if("picture"!==e.listType&&"picture-card"!==e.listType)return;let t=!1;(e.items||[]).forEach(((n,o)=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(n.originFileObj instanceof File||n.originFileObj instanceof Blob)||void 0!==n.thumbUrl||(n.thumbUrl="",e.previewFile&&e.previewFile(n.originFileObj).then((e=>{const r=e||"";r!==n.thumbUrl&&(a.value[o].thumbUrl=r,t=!0)})))})),t&&u(a)}));const c=(t,n)=>{if(e.onPreview)return null==n||n.preventDefault(),e.onPreview(t)},d=t=>{"function"==typeof e.onDownload?e.onDownload(t):t.url&&window.open(t.url)},p=t=>{var n;null===(n=e.onRemove)||void 0===n||n.call(e,t)},f=t=>{let{file:n}=t;const r=e.iconRender||o.iconRender;if(r)return r({file:n,listType:e.listType});const l="uploading"===n.status,i=e.isImageUrl&&e.isImageUrl(n)?$(RO,null,null):$(FO,null,null);let a=$(l?Od:MO,null,null);return"picture"===e.listType?a=l?$(Od,null,null):i:"picture-card"===e.listType&&(a=l?e.locale.uploading:i),a},v=e=>{const{customIcon:t,callback:n,prefixCls:o,title:r}=e,l={type:"text",size:"small",title:r,onClick:()=>{n()},class:`${o}-list-item-action`};return Pt(t)?$(cg,l,{icon:()=>t}):$(cg,l,{default:()=>[$("span",null,[t])]})};r({handlePreview:c,handleDownload:d});const{prefixCls:m,rootPrefixCls:g}=el("upload",e),y=n((()=>({[`${m.value}-list`]:!0,[`${m.value}-list-${e.listType}`]:!0}))),b=n((()=>{const t=ze({},ay(`${g.value}-motion-collapse`));delete t.onAfterAppear,delete t.onAfterEnter,delete t.onAfterLeave;const n=ze(ze({},uu(`${m.value}-${"picture-card"===e.listType?"animate-inline":"animate"}`)),{class:y.value,appear:l.value});return"picture-card"!==e.listType?ze(ze({},t),n):n}));return()=>{const{listType:t,locale:n,isImageUrl:r,showPreviewIcon:l,showRemoveIcon:i,showDownloadIcon:s,removeIcon:u,previewIcon:h,downloadIcon:g,progress:y,appendAction:w,itemRender:x,appendActionVisible:C}=e,S=null==w?void 0:w(),k=a.value;return $(F,Te(Te({},b.value),{},{tag:"div"}),{default:()=>[k.map((e=>{const{uid:a}=e;return $(ZO,{key:a,locale:n,prefixCls:m.value,file:e,items:k,progress:y,listType:t,isImgUrl:r,showPreviewIcon:l,showRemoveIcon:i,showDownloadIcon:s,onPreview:c,onDownload:d,onClose:p,removeIcon:u,previewIcon:h,downloadIcon:g,itemRender:x},ze(ze({},o),{iconRender:f,actionIconRender:v}))})),w?O($(QO,{key:"__ant_upload_appendAction"},{default:()=>S}),[[A,!!C]]):null]})}}}),ek=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}},tk=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSize:r,lineHeight:l}=e,i=`${t}-list-item`,a=`${i}-actions`,s=`${i}-action`,u=Math.round(r*l);return{[`${t}-wrapper`]:{[`${t}-list`]:ze(ze({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{lineHeight:e.lineHeight,[i]:{position:"relative",height:e.lineHeight*r,marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${i}-name`]:ze(ze({},kr),{padding:`0 ${e.paddingXS}px`,lineHeight:l,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[a]:{[s]:{opacity:0},[`${s}${n}-btn-sm`]:{height:u,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`\n ${s}:focus,\n &.picture ${s}\n `]:{opacity:1},[o]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${o}`]:{color:e.colorText}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:r},[`${i}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:r+e.paddingXS,fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${s}`]:{opacity:1,color:e.colorText},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${o}`]:{color:e.colorError},[a]:{[`${o}, ${o}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},nk=new Eo("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),ok=new Eo("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),rk=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:nk},[`${n}-leave`]:{animationName:ok}}},nk,ok]},lk=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:r}=e,l=`${t}-list`,i=`${l}-item`;return{[`${t}-wrapper`]:{[`${l}${l}-picture, ${l}${l}-picture-card`]:{[i]:{position:"relative",height:o+2*e.lineWidth+2*e.paddingXS,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${i}-thumbnail`]:ze(ze({},kr),{width:o,height:o,lineHeight:`${o+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${i}-progress`]:{bottom:r,width:`calc(100% - ${2*e.paddingSM}px)`,marginTop:0,paddingInlineStart:o+e.paddingXS}},[`${i}-error`]:{borderColor:e.colorError,[`${i}-thumbnail ${n}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${i}-uploading`]:{borderStyle:"dashed",[`${i}-name`]:{marginBottom:r}}}}}},ik=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:r}=e,l=`${t}-list`,i=`${l}-item`,a=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:ze(ze({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:a,height:a,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${l}${l}-picture-card`]:{[`${l}-item-container`]:{display:"inline-block",width:a,height:a,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[i]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${2*e.paddingXS}px)`,height:`calc(100% - ${2*e.paddingXS}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${i}:hover`]:{[`&::before, ${i}-actions`]:{opacity:1}},[`${i}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:o,margin:`0 ${e.marginXXS}px`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${i}-actions, ${i}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new Zo(r).setAlpha(.65).toRgbString(),"&:hover":{color:r}}},[`${i}-thumbnail, ${i}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${i}-name`]:{display:"none",textAlign:"center"},[`${i}-file + ${i}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${2*e.paddingXS}px)`},[`${i}-uploading`]:{[`&${i}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${i}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${2*e.paddingXS}px)`,paddingInlineStart:0}}})}},ak=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},sk=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:ze(ze({},Pr(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},uk=Mr("Upload",(e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightLG:l}=e,i=Dr(e,{uploadThumbnailSize:2*t,uploadProgressOffset:Math.round(n*o)/2+r,uploadPicCardSize:2.55*l});return[sk(i),ek(i),lk(i),ik(i),tk(i),rk(i),ak(i),Vv(i)]}));var ck=function(e,t,n,o){return new(n||(n=Promise))((function(r,l){function i(e){try{s(o.next(e))}catch(e){l(e)}}function a(e){try{s(o.throw(e))}catch(e){l(e)}}function s(e){e.done?r(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(i,a)}s((o=o.apply(e,t||[])).next())}))};const dk=`__LIST_IGNORE_${Date.now()}__`,pk=l({compatConfig:{MODE:3},name:"AUpload",inheritAttrs:!1,props:yt(LO(),{type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",supportServerRender:!0}),setup(e,t){let{slots:o,attrs:r,expose:l}=t;const i=qd(),{prefixCls:a,direction:s,disabled:u}=el("upload",e),[c,d]=uk(a),p=Ht(),f=n((()=>{var e;return null!==(e=u.value)&&void 0!==e?e:p.value})),[v,m]=zc(e.defaultFileList||[],{value:E(e,"fileList"),postState:e=>{const t=Date.now();return(e??[]).map(((e,n)=>(!e.uid&&!Object.isFrozen(e)&&(e.uid=`__AUTO__${t}_${n}__`),e)))}}),g=b("drop"),y=b(null);h((()=>{Rl(void 0!==e.fileList||void 0===r.value,"Upload","`value` is not a valid prop, do you mean `fileList`?"),Rl(void 0===e.transformFile,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),Rl(void 0===e.remove,"Upload","`remove` props is deprecated. Please use `remove` event.")}));const w=(t,n,o)=>{var r,l;let a=[...n];1===e.maxCount?a=a.slice(-1):e.maxCount&&(a=a.slice(0,e.maxCount)),m(a);const s={file:t,fileList:a};o&&(s.event=o),null===(r=e["onUpdate:fileList"])||void 0===r||r.call(e,s.fileList),null===(l=e.onChange)||void 0===l||l.call(e,s),i.onFieldChange()},x=(t,n)=>ck(this,void 0,void 0,(function*(){const{beforeUpload:o,transformFile:r}=e;let l=t;if(o){const e=yield o(t,n);if(!1===e)return!1;if(delete t[dk],e===dk)return Object.defineProperty(t,dk,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(l=e)}return r&&(l=yield r(l)),l})),C=e=>{const t=e.filter((e=>!e.file[dk]));if(!t.length)return;const n=t.map((e=>_O(e.file)));let o=[...v.value];n.forEach((e=>{o=WO(e,o)})),n.forEach(((e,n)=>{let r=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch{n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,r=n}w(r,o)}))},S=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch{}if(!VO(t,v.value))return;const o=_O(t);o.status="done",o.percent=100,o.response=e,o.xhr=n;const r=WO(o,v.value);w(o,r)},O=(e,t)=>{if(!VO(t,v.value))return;const n=_O(t);n.status="uploading",n.percent=e.percent;const o=WO(n,v.value);w(n,o,e)},k=(e,t,n)=>{if(!VO(n,v.value))return;const o=_O(n);o.error=e,o.response=t,o.status="error";const r=WO(o,v.value);w(o,r)},P=t=>{let n;const o=e.onRemove||e.remove;Promise.resolve("function"==typeof o?o(t):o).then((e=>{var o,r;if(!1===e)return;const l=function(e,t){const n=void 0!==e.uid?"uid":"name",o=t.filter((t=>t[n]!==e[n]));return o.length===t.length?null:o}(t,v.value);l&&(n=ze(ze({},t),{status:"removed"}),null===(o=v.value)||void 0===o||o.forEach((e=>{const t=void 0!==n.uid?"uid":"name";e[t]===n[t]&&!Object.isFrozen(e)&&(e.status="removed")})),null===(r=y.value)||void 0===r||r.abort(n),w(n,l))}))},I=t=>{var n;g.value=t.type,"drop"===t.type&&(null===(n=e.onDrop)||void 0===n||n.call(e,t))};l({onBatchStart:C,onSuccess:S,onProgress:O,onError:k,fileList:v,upload:y});const[j]=Kt("Upload",Vt.Upload,n((()=>e.locale))),A=(t,n)=>{const{removeIcon:r,previewIcon:l,downloadIcon:i,previewFile:s,onPreview:u,onDownload:c,isImageUrl:d,progress:p,itemRender:m,iconRender:h,showUploadList:g}=e,{showDownloadIcon:y,showPreviewIcon:b,showRemoveIcon:w}="boolean"==typeof g?{}:g;return g?$(JO,{prefixCls:a.value,listType:e.listType,items:v.value,previewFile:s,onPreview:u,onDownload:c,onRemove:P,showRemoveIcon:!f.value&&w,showPreviewIcon:b,showDownloadIcon:y,removeIcon:r,previewIcon:l,downloadIcon:i,iconRender:h,locale:j.value,isImageUrl:d,progress:p,itemRender:m,appendActionVisible:n,appendAction:t},ze({},o)):null==t?void 0:t()};return()=>{var t,n,l;const{listType:u,type:p}=e,{class:m,style:h}=r,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(r,["class","style"]),w=ze(ze(ze({onBatchStart:C,onError:k,onProgress:O,onSuccess:S},b),e),{id:null!==(t=e.id)&&void 0!==t?t:i.id.value,prefixCls:a.value,beforeUpload:x,onChange:void 0,disabled:f.value});delete w.remove,(!o.default||f.value)&&delete w.id;const P={[`${a.value}-rtl`]:"rtl"===s.value};if("drag"===p){const e=Ge(a.value,{[`${a.value}-drag`]:!0,[`${a.value}-drag-uploading`]:v.value.some((e=>"uploading"===e.status)),[`${a.value}-drag-hover`]:"dragover"===g.value,[`${a.value}-disabled`]:f.value,[`${a.value}-rtl`]:"rtl"===s.value},r.class,d.value);return c($("span",Te(Te({},r),{},{class:Ge(`${a.value}-wrapper`,P,m,d.value)}),[$("div",{class:e,onDrop:I,onDragover:I,onDragleave:I,style:r.style},[$(IO,Te(Te({},w),{},{ref:y,class:`${a.value}-btn`}),Te({default:()=>[$("div",{class:`${a.value}-drag-container`},[null===(n=o.default)||void 0===n?void 0:n.call(o)])]},o))]),A()]))}const E=Ge(a.value,{[`${a.value}-select`]:!0,[`${a.value}-select-${u}`]:!0,[`${a.value}-disabled`]:f.value,[`${a.value}-rtl`]:"rtl"===s.value}),j=wt(null===(l=o.default)||void 0===l?void 0:l.call(o)),M=e=>$("div",{class:E,style:e},[$(IO,Te(Te({},w),{},{ref:y}),o)]);return c("picture-card"===u?$("span",Te(Te({},r),{},{class:Ge(`${a.value}-wrapper`,`${a.value}-picture-card-wrapper`,P,r.class,d.value)}),[A(M,!(!j||!j.length))]):$("span",Te(Te({},r),{},{class:Ge(`${a.value}-wrapper`,P,r.class,d.value)}),[M(j&&j.length?void 0:{display:"none"}),A()]))}}});var fk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const vk=l({compatConfig:{MODE:3},name:"AUploadDragger",inheritAttrs:!1,props:LO(),setup(e,t){let{slots:n,attrs:o}=t;return()=>{const{height:t}=e,r=fk(e,["height"]),{style:l}=o,i=fk(o,["style"]),a=ze(ze(ze({},r),i),{type:"drag",style:ze(ze({},l),{height:"number"==typeof t?`${t}px`:t})});return $(pk,a,n)}}}),mk=ze(pk,{Dragger:vk,LIST_IGNORE:dk,install:e=>(e.component(pk.name,pk),e.component(vk.name,vk),e)});var hk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"};function gk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){yk(e,t,n[t])}))}return e}function yk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bk=function(e,t){var n=gk({},e,t.attrs);return $(yd,gk({},n,{icon:hk}),null)};bk.displayName="ArrowUpOutlined",bk.inheritAttrs=!1;var wk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"};function xk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){$k(e,t,n[t])}))}return e}function $k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ck=function(e,t){var n=xk({},e,t.attrs);return $(yd,xk({},n,{icon:wk}),null)};Ck.displayName="AudioMutedOutlined",Ck.inheritAttrs=!1;var Sk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"};function Ok(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){kk(e,t,n[t])}))}return e}function kk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pk=function(e,t){var n=Ok({},e,t.attrs);return $(yd,Ok({},n,{icon:Sk}),null)};Pk.displayName="AudioOutlined",Pk.inheritAttrs=!1;var Ik={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};function Ek(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){jk(e,t,n[t])}))}return e}function jk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ak=function(e,t){var n=Ek({},e,t.attrs);return $(yd,Ek({},n,{icon:Ik}),null)};Ak.displayName="ClearOutlined",Ak.inheritAttrs=!1;var Mk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"};function Tk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){zk(e,t,n[t])}))}return e}function zk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dk=function(e,t){var n=Tk({},e,t.attrs);return $(yd,Tk({},n,{icon:Mk}),null)};Dk.displayName="FileExcelFilled",Dk.inheritAttrs=!1;var Rk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"};function Bk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Nk(e,t,n[t])}))}return e}function Nk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hk=function(e,t){var n=Bk({},e,t.attrs);return $(yd,Bk({},n,{icon:Rk}),null)};Hk.displayName="FileImageFilled",Hk.inheritAttrs=!1;var Fk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"};function Lk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){_k(e,t,n[t])}))}return e}function _k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wk=function(e,t){var n=Lk({},e,t.attrs);return $(yd,Lk({},n,{icon:Fk}),null)};Wk.displayName="FileMarkdownFilled",Wk.inheritAttrs=!1;var Vk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"};function Xk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Kk(e,t,n[t])}))}return e}function Kk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qk=function(e,t){var n=Xk({},e,t.attrs);return $(yd,Xk({},n,{icon:Vk}),null)};qk.displayName="FilePdfFilled",qk.inheritAttrs=!1;var Gk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"};function Uk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Yk(e,t,n[t])}))}return e}function Yk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zk=function(e,t){var n=Uk({},e,t.attrs);return $(yd,Uk({},n,{icon:Gk}),null)};Zk.displayName="FilePptFilled",Zk.inheritAttrs=!1;var Qk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"};function Jk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){eP(e,t,n[t])}))}return e}function eP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tP=function(e,t){var n=Jk({},e,t.attrs);return $(yd,Jk({},n,{icon:Qk}),null)};tP.displayName="FileTextFilled",tP.inheritAttrs=!1;var nP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"};function oP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){rP(e,t,n[t])}))}return e}function rP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lP=function(e,t){var n=oP({},e,t.attrs);return $(yd,oP({},n,{icon:nP}),null)};lP.displayName="FileWordFilled",lP.inheritAttrs=!1;var iP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"};function aP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){sP(e,t,n[t])}))}return e}function sP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uP=function(e,t){var n=aP({},e,t.attrs);return $(yd,aP({},n,{icon:iP}),null)};uP.displayName="FileZipFilled",uP.inheritAttrs=!1;const cP=["wrap","nowrap","wrap-reverse"],dP=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],pP=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];function fP(e,t){return Ge(ze(ze(ze({},((e,t)=>{const n={};return cP.forEach((o=>{n[`${e}-wrap-${o}`]=t.wrap===o})),n})(e,t)),((e,t)=>{const n={};return pP.forEach((o=>{n[`${e}-align-${o}`]=t.align===o})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return dP.forEach((o=>{n[`${e}-justify-${o}`]=t.justify===o})),n})(e,t)))}const vP=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},mP=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},hP=e=>{const{componentCls:t}=e,n={};return cP.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},gP=e=>{const{componentCls:t}=e,n={};return pP.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},yP=e=>{const{componentCls:t}=e,n={};return dP.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n},bP=Mr("Flex",(e=>{const t=Dr(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[vP(t),mP(t),hP(t),gP(t),yP(t)]}));function wP(e){return["small","middle","large"].includes(e)}const xP=l({name:"AFlex",inheritAttrs:!1,props:{prefixCls:de(),vertical:ae(),wrap:de(),justify:de(),align:de(),flex:pe([Number,String]),gap:pe([Number,String]),component:ue()},setup(e,t){let{slots:o,attrs:r}=t;const{flex:l,direction:i}=ge(),{prefixCls:a}=el("flex",e),[s,u]=bP(a),c=n((()=>{var t;return[a.value,u.value,fP(a.value,e),{[`${a.value}-rtl`]:"rtl"===i.value,[`${a.value}-gap-${e.gap}`]:wP(e.gap),[`${a.value}-vertical`]:null!==(t=e.vertical)&&void 0!==t?t:null==l?void 0:l.value.vertical}]}));return()=>{var t;const{flex:n,gap:l,component:i="div"}=e,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["flex","gap","component"]),u={};return n&&(u.flex=n),l&&!wP(l)&&(u.gap=`${l}px`),s($(i,Te({class:[r.class,c.value],style:[r.style,u]},tl(a,["justify","wrap","align","vertical"])),{default:()=>[null===(t=o.default)||void 0===t?void 0:t.call(o)]}))}}}),$P=re(xP),CP=(e,t)=>new Zo(e).setAlpha(t).toRgbString(),SP=(e,t)=>new Zo(e).lighten(t).toHexString(),OP=e=>{const t=rr(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},kP=(e,t)=>{const n=e||"#000",o=t||"#fff";return{colorBgBase:n,colorTextBase:o,colorText:CP(o,.85),colorTextSecondary:CP(o,.65),colorTextTertiary:CP(o,.45),colorTextQuaternary:CP(o,.25),colorFill:CP(o,.18),colorFillSecondary:CP(o,.12),colorFillTertiary:CP(o,.08),colorFillQuaternary:CP(o,.04),colorBgElevated:SP(n,12),colorBgContainer:SP(n,8),colorBgLayout:SP(n,0),colorBgSpotlight:SP(n,26),colorBorder:SP(n,26),colorBorderSecondary:SP(n,19)}};const PP={defaultConfig:Nr,defaultSeed:Nr.token,useToken:function(){const[e,t,n]=_r();return{theme:e,token:t,hashId:n}},defaultAlgorithm:br,darkAlgorithm:(e,t)=>{const n=Object.keys(dr).map((t=>{const n=rr(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e)),{})})).reduce(((e,t)=>e=ze(ze({},e),t)),{});return ze(ze(ze({},t??br(e)),n),fr(e,{generateColorPalettes:OP,generateNeutralColorPalettes:kP}))},compactAlgorithm:(e,t)=>{const n=t??br(e),o=n.fontSizeSM,r=n.controlHeight-4;return ze(ze(ze(ze(ze({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,o=n-2;return{sizeXXL:t*(o+10),sizeXL:t*(o+6),sizeLG:t*(o+2),sizeMD:t*(o+2),sizeMS:t*(o+1),size:t*o,sizeSM:t*o,sizeXS:t*(o-1),sizeXXS:t*(o-1)}}(t??e)),yr(o)),{controlHeight:r}),cr(ze(ze({},n),{controlHeight:r})))}},IP=l({name:"AXProvider",inheritAttrs:!1,__name:"index",props:{bubble:null,conversations:null,prompts:null,sender:null,suggestion:null,thoughtChain:null,attachments:null,welcome:null,iconPrefixCls:null,getTargetContainer:null,getPopupContainer:null,prefixCls:null,getPrefixCls:null,renderEmpty:null,transformCellText:null,csp:null,input:null,autoInsertSpaceInButton:null,locale:null,pageHeader:null,componentSize:null,componentDisabled:null,direction:null,space:null,virtual:null,dropdownMatchSelectWidth:null,form:null,pagination:null,theme:null,select:null,wave:null},setup(e){const t=we(e,["attachments","bubble","conversations","prompts","sender","suggestion","thoughtChain","welcome"]),o=_(),r=n((()=>({attachments:e.attachments,bubble:e.bubble,conversations:e.conversations,prompts:e.prompts,sender:e.sender,suggestion:e.suggestion,thoughtChain:e.thoughtChain,welcome:e.welcome}))),{theme:l}=be(),i=n((()=>({...(null==l?void 0:l.value)||{},...t.theme}))),a=n((()=>{var e;return null==(e=o.default)?void 0:e.call(o)}));return()=>$(Ie,{value:r.value},{default:()=>[$(g$,W(t,{theme:i.value}),{default:()=>[a.value]})]})}}),EP={classNames:{},styles:{},className:"",style:{}},jP=e=>{const t=o(ke,n((()=>Pe.value||{})));return n((()=>({...EP,...a(t)[e]})))};function AP(e){const t="function"==typeof e?e():e,n=b(t);return[n,function(e){n.value=e}]}function MP(e){return"string"==typeof e}const TP=l({name:"AXBubbleLoading",__name:"loading",props:{prefixCls:null},setup:e=>()=>$("span",{class:`${e.prefixCls}-dot`},[$("i",{class:`${e.prefixCls}-dot-item`,key:"item-1"},null),$("i",{class:`${e.prefixCls}-dot-item`,key:"item-2"},null),$("i",{class:`${e.prefixCls}-dot-item`,key:"item-3"},null)])});class zP{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join("%"):e)||null}update(e,t){const n=Array.isArray(e)?e.join("%"):e,o=t(this.cache.get(n));null===o?this.cache.delete(n):this.cache.set(n,o)}}const DP="data-token-hash",RP="data-css-hash",BP="__cssinjs_instance__";function NP(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${RP}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach((t=>{t[BP]=t[BP]||e,t[BP]===e&&document.head.insertBefore(t,n)}));const o={};Array.from(document.querySelectorAll(`style[${RP}]`)).forEach((t=>{var n;const r=t.getAttribute(RP);o[r]?t[BP]===e&&(null==(n=t.parentNode)||n.removeChild(t)):o[r]=!0}))}return new zP(e)}const HP=Symbol("StyleContextKey"),FP={cache:NP(),defaultCache:!0,hashPriority:"low"},LP=()=>{const e=(()=>{var e,t,n;const o=m();let r;if(o&&o.appContext){const l=null==(n=null==(t=null==(e=o.appContext)?void 0:e.config)?void 0:t.globalProperties)?void 0:n.__ANTDV_CSSINJS_CACHE__;l?r=l:(r=NP(),o.appContext.config.globalProperties&&(o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=r))}else r=NP();return r})();return o(HP,s({...FP,cache:e}))},_P=e=>{const t=LP(),n=s({...FP,cache:NP()});return i([()=>a(e),t],(()=>{const o={...t.value},r=a(e);Object.keys(r).forEach((e=>{const t=r[e];void 0!==r[e]&&(o[e]=t)}));const{cache:l}=r;o.cache=o.cache||NP(),o.defaultCache=!l&&t.value.defaultCache,n.value=o}),{immediate:!0}),r(HP,n),n},WP=(e=>{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e})(l({name:"AXStyleProvider",inheritAttrs:!1,props:{autoClear:$e(),mock:Se(),cache:xe(),defaultCache:$e(),hashPriority:Se(),container:Oe(),ssrInline:$e(),transformers:Ce(),linters:Ce()},setup:(e,{slots:t})=>(_P(e),()=>C(nn,e,(()=>{var e;return null==(e=t.default)?void 0:e.call(t)})))})),VP={useStyleInject:LP,useStyleProvider:_P,StyleProvider:WP};function XP(e,t,n,o){const r=LP(),l=s(""),a=s();w((()=>{l.value=[e,...t.value].join("%")}));const u=e=>{r.value.cache.update(e,(e=>{const[t=0,n]=e||[];return t-1==0?(null==o||o(n,!1),null):[t-1,n]}))};return i(l,((e,t)=>{t&&u(t),r.value.cache.update(e,(e=>{const[t=0,o]=e||[];return[t+1,o||n()]})),a.value=r.value.cache.get(l.value)[1]}),{immediate:!0}),x((()=>{u(l.value)})),a}function KP(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const qP="data-vc-order",GP=new Map;function UP({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"vc-util-key"}function YP(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ZP(e){return Array.from((GP.get(e)||e).children).filter((e=>"STYLE"===e.tagName))}function QP(e,t={}){if(!KP())return null;const{csp:n,prepend:o}=t,r=document.createElement("style");r.setAttribute(qP,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o)),null!=n&&n.nonce&&(r.nonce=null==n?void 0:n.nonce),r.innerHTML=e;const l=YP(t),{firstChild:i}=l;if(o){if("queue"===o){const e=ZP(l).filter((e=>["prepend","prependQueue"].includes(e.getAttribute(qP))));if(e.length)return l.insertBefore(r,e[e.length-1].nextSibling),r}l.insertBefore(r,i)}else l.appendChild(r);return r}function JP(e,t={}){return ZP(YP(t)).find((n=>n.getAttribute(UP(t))===e))}function eI(e,t={}){const n=JP(e,t);n&&YP(t).removeChild(n)}function tI(e,t,n={}){var o,r,l;!function(e,t){const n=GP.get(e);if(!n||!function(e,t){return!(!e||!e.contains)&&e.contains(t)}(document,n)){const n=QP("",t),{parentNode:o}=n;GP.set(e,o),e.removeChild(n)}}(YP(n),n);const i=JP(t,n);if(i)return null!=(o=n.csp)&&o.nonce&&i.nonce!==(null==(r=n.csp)?void 0:r.nonce)&&(i.nonce=null==(l=n.csp)?void 0:l.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const a=QP(e,n);return a.setAttribute(UP(n),t),a}const nI=class e{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e,t=!1){let n={map:this.cache};return e.forEach((e=>{var t;n=n?null==(t=null==n?void 0:n.map)?void 0:t.get(e):void 0})),null!=n&&n.value&&t&&(n.value[1]=this.cacheCallTimes++),null==n?void 0:n.value}get(e){var t;return null==(t=this.internalGet(e,!0))?void 0:t[0]}has(e){return!!this.internalGet(e)}set(t,n){if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){const[e]=this.keys.reduce(((e,t)=>{const[,n]=e;return this.internalGet(t)[1]<n?[t,this.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(t)}let o=this.cache;t.forEach(((e,r)=>{if(r===t.length-1)o.set(e,{value:[n,this.cacheCallTimes++]});else{const t=o.get(e);t?t.map||(t.map=new Map):o.set(e,{map:new Map}),o=o.get(e).map}}))}deleteByPath(e,t){var n;const o=e.get(t[0]);if(1===t.length)return o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null==(n=o.value)?void 0:n[0];const r=this.deleteByPath(o.map,t.slice(1));return(!o.map||0===o.map.size)&&!o.value&&e.delete(t[0]),r}delete(e){if(this.has(e))return this.keys=this.keys.filter((t=>!function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e))),this.deleteByPath(this.cache,e)}};nI.MAX_CACHE_SIZE=20,nI.MAX_CACHE_OFFSET=5;let oI=nI,rI={};function lI(e,t){var n;rI[n=t]||(rI[n]=!0)}let iI=function(){};const aI=Symbol("WarningContext"),sI=s();l({props:{value:xe()},setup:(e,{slots:t})=>((e=>{r(aI,e),i(e,(()=>{sI.value=a(e),u(sI)}),{immediate:!0,deep:!0})})(n((()=>e.value))),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})});let uI=0;class cI{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=uI,0===e.length&&iI(e.length>0),uI+=1}getDerivativeToken(e){return this.derivatives.reduce(((t,n)=>n(e,t)),void 0)}}const dI=new oI;function pI(e){const t=Array.isArray(e)?e:[e];return dI.has(t)||dI.set(t,new cI(t)),dI.get(t)}const fI=new WeakMap;function vI(e){let t=fI.get(e)||"";return t||(Object.keys(e).forEach((n=>{const o=e[n];t+=n,t+=o instanceof cI?o.id:o&&"object"==typeof o?vI(o):o})),fI.set(e,t)),t}const mI=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),hI="_bAmBoO_";function gI(e,t,n){var o,r;if(KP()){tI(e,mI);const l=document.createElement("div");l.style.position="fixed",l.style.left="0",l.style.top="0",null==t||t(l),document.body.appendChild(l);const i=n?n(l):null==(o=getComputedStyle(l).content)?void 0:o.includes(hI);return null==(r=l.parentNode)||r.removeChild(l),eI(mI),i}return!1}let yI,bI,wI;const xI=KP();function $I(e){return"number"==typeof e?`${e}px`:e}const CI=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),SI=(e,t,n)=>Object.keys(e).length?`.${t}${null!=n&&n.scope?`.${n.scope}`:""}{${Object.entries(e).map((([e,t])=>`${e}:${t};`)).join("")}}`:"",OI={},kI=new Map;function PI(e,t){kI.set(e,(kI.get(e)||0)-1);const n=Array.from(kI.keys()),o=n.filter((e=>(kI.get(e)||0)<=0));n.length-o.length>0&&o.forEach((e=>{(function(e,t){typeof document<"u"&&document.querySelectorAll(`style[${DP}="${e}"]`).forEach((e=>{var n;e[BP]===t&&(null==(n=e.parentNode)||n.removeChild(e))}))})(e,t),kI.delete(e)}))}function II(e,t,o=b({})){const r=LP(),l=n((()=>Object.assign({},...t.value||[]))),i=n((()=>vI(l.value))),a=n((()=>{var e;return vI((null==(e=o.value)?void 0:e.override)||OI)}));return XP("token",n((()=>{var t,n;return[(null==(t=o.value)?void 0:t.salt)||"",null==(n=e.value)?void 0:n.id,i.value,a.value]})),(()=>{const{salt:t="",override:n=OI,formatToken:r,getComputedToken:i}=o.value||{},a=i?i(l.value,n,e.value):((e,t,n,o)=>{let r={...null==n?void 0:n.getDerivativeToken(e),...t};return o&&(r=o(r)),r})(l.value,n,e.value,r),s=function(e,t){return qt(`${t}_${vI(e)}`)}(a,t);a._tokenKey=s,function(e){kI.set(e,(kI.get(e)||0)+1)}(s);const u=`css-${qt(s)}`;return a._hashId=u,[a,u]}),(e=>{var t;PI(e[0]._tokenKey,null==(t=r.value)?void 0:t.cache.instanceId)}))}var EI={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function jI(e,t){const{path:n,parentSelectors:o}=t;lI(0,`[Ant Design Vue CSS-in-JS] ${n?`Error in '${n}': `:""}${e}${o.length?` Selector info: ${o.join(" -> ")}`:""}`)}function AI(e){var t;return((null==(t=e.match(/:not\(([^)]*)\)/))?void 0:t[1])||"").split(/(\[[^[]*])|(?=[.#])/).filter((e=>e)).length>1}const MI=(e,t,n)=>{const o=function(e){return e.parentSelectors.reduce(((e,t)=>e?t.includes("&")?t.replace(/&/g,e):`${e} ${t}`:t),"")}(n).match(/:not\([^)]*\)/g)||[];o.length>0&&o.some(AI)&&jI("Concat ':not' selector not support in legacy browsers.",n)},TI=(e,t,n)=>{switch(e){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":return void jI(`You seem to be using non-logical property '${e}' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);case"margin":case"padding":case"borderWidth":case"borderStyle":if("string"==typeof t){const o=t.split(" ").map((e=>e.trim()));4===o.length&&o[1]!==o[3]&&jI(`You seem to be using '${e}' property with different left ${e} and right ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n)}return;case"clear":case"textAlign":return void(("left"===t||"right"===t)&&jI(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n));case"borderRadius":return void("string"==typeof t&&t.split("/").map((e=>e.trim())).reduce(((e,t)=>{if(e)return e;const n=t.split(" ").map((e=>e.trim()));return n.length>=2&&n[0]!==n[1]||3===n.length&&n[1]!==n[2]||4===n.length&&n[2]!==n[3]||e}),!1)&&jI(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n))}},zI=(e,t,n)=>{n.parentSelectors.some((e=>e.split(",").some((e=>e.split("&").length>2))))&&jI("Should not use more than one `&` in a selector.",n)},DI="data-ant-cssinjs-cache-path";let RI,BI=!0;function NI(e){return function(){var e;if(!RI&&(RI={},KP())){const t=document.createElement("div");t.className=DI,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach((e=>{const[t,n]=e.split(":");RI[t]=n}));const o=document.querySelector(`style[${DI}]`);o&&(BI=!1,null==(e=o.parentNode)||e.removeChild(o)),document.body.removeChild(t)}}(),!!RI[e]}const HI=KP(),FI="_multi_value_";function LI(e){return go(po(e),yo).replace(/\{%%%\:[^;];}/g,";")}const _I=new Set,WI=(e,t={},{root:n,injectHash:o,parentSelectors:r}={root:!0,parentSelectors:[]})=>{const{hashId:l,layer:i,path:a,hashPriority:s,transformers:u=[],linters:c=[]}=t;let d="",p={};function f(e){const n=e.getName(l);if(!p[n]){const[o]=WI(e.style,t,{root:!1,parentSelectors:r});p[n]=`@keyframes ${e.getName(l)}${o}`}}return function e(t,n=[]){return t.forEach((t=>{Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(e)?e:[e]).forEach((e=>{const i="string"!=typeof e||n?e:{};if("string"==typeof i)d+=`${i}\n`;else if(i._keyframe)f(i);else{const e=u.reduce(((e,t)=>{var n;return(null==(n=null==t?void 0:t.visit)?void 0:n.call(t,e))||e}),i);Object.keys(e).forEach((i=>{const a=e[i];if("object"!=typeof a||!a||"animationName"===i&&a._keyframe||function(e){return"object"==typeof e&&e&&("_skip_check_"in e||FI in e)}(a)){let e=function(e,t){const n=e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`));let o=t;!EI[e]&&"number"==typeof o&&0!==o&&(o=`${o}px`),"animationName"===e&&null!=t&&t._keyframe&&(f(t),o=t.getName(l)),d+=`${n}:${o};`};const t=(null==a?void 0:a.value)??a;"object"==typeof a&&null!=a&&a[FI]&&Array.isArray(t)?t.forEach((t=>{e(i,t)})):e(i,t)}else{let e=!1,u=i.trim(),c=!1;(n||o)&&l?u.startsWith("@")?e=!0:u=function(e,t,n){if(!t)return e;const o=`.${t}`,r="low"===n?`:where(${o})`:o;return e.split(",").map((e=>{var t;const n=e.trim().split(/\s+/);let o=n[0]||"";const l=(null==(t=o.match(/^\w+/))?void 0:t[0])||"";return o=`${l}${r}${o.slice(l.length)}`,[o,...n.slice(1)].join(" ")})).join(",")}(i,l,s):n&&!l&&("&"===u||""===u)&&(u="",c=!0);const[f,v]=WI(a,t,{root:c,injectHash:e,parentSelectors:[...r,u]});p={...p,...v},d+=`${u}${f}`}}))}})),n?i&&(void 0===yI&&(yI=gI(`@layer ${mI} { .${mI} { content: "${hI}"!important; } }`,(e=>{e.className=mI})))):d=`{${d}}`,[d,p]};function VI(e,t){return qt(`${e.join("%")}${t}`)}function XI(e,t){const o=LP(),r=n((()=>{var t;return null==(t=e.value)?void 0:t.token._tokenKey})),l=n((()=>{var t;return[r.value,...(null==(t=e.value)?void 0:t.path)||[]]}));let i=HI;return XP("style",l,(()=>{const{path:n,hashId:a,layer:s,nonce:u,clientOnly:c,order:d=0}=e.value||{},p=l.value.join("|");if(NI(p)){const[e,t]=function(e){const t=RI[e];let n=null;if(t&&KP())if(BI)n="_FILE_STYLE__";else{const t=document.querySelector(`style[${RP}="${RI[e]}"]`);t?n=t.innerHTML:delete RI[e]}return[n,t]}(p);if(e)return[e,r.value,t,{},c,d]}const f=t(),{hashPriority:v,container:m,transformers:h,linters:g,cache:y}=o.value,[b,w]=WI(f,{hashId:a,hashPriority:v,layer:s,path:null==n?void 0:n.join("-"),transformers:h,linters:g}),x=LI(b),$=VI(l.value,x);if(i){const e={mark:RP,prepend:"queue",attachTo:m},t="function"==typeof u?u():u;t&&(e.csp={nonce:t});const n=tI(x,$,e);n[BP]=y.instanceId,n.setAttribute(DP,r.value),Object.keys(w).forEach((e=>{_I.has(e)||(_I.add(e),tI(LI(w[e]),`_effect-${e}`,{mark:RP,prepend:"queue",attachTo:m}))}))}return[x,r.value,$,w,c,d]}),(([,,e],t)=>{(t||o.value.autoClear)&&HI&&eI(e,{mark:RP})})),e=>e}function KI(e,t=!1){const n="style%",o=Array.from(e.cache.keys()).filter((e=>e.startsWith(n))),r={},l={};let i="";function a(e,n,o,r={}){const l={...r,[DP]:n,[RP]:o},i=Object.keys(l).map((e=>{const t=l[e];return t?`${e}="${t}"`:null})).filter((e=>e)).join(" ");return t?e:`<style ${i}>${e}</style>`}return o.map((t=>{const n=t.slice(6).replace(/%/g,"|"),[o,i,s,u,c,d]=e.cache.get(t)[1];if(c)return null;const p={"data-vc-order":"prependQueue","data-vc-priority":`${d}`};let f=a(o,i,s,p);return l[n]=s,u&&Object.keys(u).forEach((e=>{r[e]||(r[e]=!0,f+=a(LI(u[e]),i,`_effect-${e}`,p))})),[d,f]})).filter((e=>e)).sort(((e,t)=>e[0]-t[0])).forEach((([,e])=>{i+=e})),i+=a(`.${DI}{content:"${function(e){return Object.keys(e).map((t=>`${t}:${e[t]}`)).join(";")}(l)}";}`,void 0,void 0,{[DI]:DI}),i}const qI=(e,t)=>{const{key:n,prefix:o,unitless:r,ignore:l,token:i,scope:a=""}=e,{cache:{instanceId:s},container:u}=useContext(VP),{_tokenKey:c}=i,d=[...e.path,n,a,c];return XP("cssVar",d,(()=>{const e=t(),[i,s]=((e,t,n)=>{const o={},r={};return Object.entries(e).forEach((([e,t])=>{var l,i,a;if(null!=(l=null==n?void 0:n.preserve)&&l[e])r[e]=t;else if(!("string"!=typeof t&&"number"!=typeof t||null!=(i=null==n?void 0:n.ignore)&&i[e])){const l=CI(e,null==n?void 0:n.prefix);o[l]="number"!=typeof t||null!=(a=null==n?void 0:n.unitless)&&a[e]?String(t):`${t}px`,r[e]=`var(${l})`}})),[r,SI(o,t,{scope:null==n?void 0:n.scope})]})(e,n,{prefix:o,unitless:r,ignore:l,scope:a});return[i,s,VI(d,s),n]}),(([,,e])=>{xI&&eI(e,{mark:RP})}))};class GI{constructor(e,t){this._keyframe=!0,this.name=e,this.style=t}getName(e=""){return e?`${e}-${this.name}`:this.name}}function UI(e){return e.notSplit=!0,e}const YI={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:UI(["borderTop","borderBottom"]),borderBlockStart:UI(["borderTop"]),borderBlockEnd:UI(["borderBottom"]),borderInline:UI(["borderLeft","borderRight"]),borderInlineStart:UI(["borderLeft"]),borderInlineEnd:UI(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function ZI(e){return{_skip_check_:!0,value:e}}const QI={visit:e=>{const t={};return Object.keys(e).forEach((n=>{const o=e[n],r=YI[n];if(!r||"number"!=typeof o&&"string"!=typeof o)t[n]=o;else{const e=function(e){if("number"==typeof e)return[e];const t=String(e).split(/\s+/);let n="",o=0;return t.reduce(((e,t)=>(t.includes("(")?(n+=t,o+=t.split("(").length-1):t.includes(")")?(n+=` ${t}`,o-=t.split(")").length-1,0===o&&(e.push(n),n="")):o>0?n+=` ${t}`:e.push(t),e)),[])}(o);r.length&&r.notSplit?r.forEach((e=>{t[e]=ZI(o)})):1===r.length?t[r[0]]=ZI(o):2===r.length?r.forEach(((n,o)=>{t[n]=ZI(e[o]??e[0])})):4===r.length?r.forEach(((n,o)=>{t[n]=ZI(e[o]??e[o-2]??e[0])})):t[n]=o}})),t}},JI=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;const eE=(e={})=>{const{rootValue:t=16,precision:n=5,mediaQuery:o=!1}=e,r=(e,o)=>{if(!o)return e;const r=parseFloat(o);return r<=1?e:`${function(e,t){const n=Math.pow(10,t+1),o=Math.floor(e*n);return 10*Math.round(o/10)/n}(r/t,n)}rem`};return{visit:e=>{const t={...e};return Object.entries(e).forEach((([e,n])=>{if("string"==typeof n&&n.includes("px")){const o=n.replace(JI,r);t[e]=o}!EI[e]&&"number"==typeof n&&0!==n&&(t[e]=`${n}px`.replace(JI,r));const l=e.trim();if(l.startsWith("@")&&l.includes("px")&&o){const n=e.replace(JI,r);t[n]=t[e],delete t[e]}})),t}}},tE={StyleProvider:WP},nE={supportModernCSS:()=>(void 0===bI&&(bI=gI(`:where(.${mI}) { content: "${hI}"!important; }`,(e=>{e.className=mI}))),bI&&(void 0===wI&&(wI=gI(`.${mI} { inset-block: 93px !important; }`,(e=>{e.className=mI}),(e=>"93px"===getComputedStyle(e).bottom))),wI))};class oE{}const rE="CALC_UNIT",lE=new RegExp(rE,"g");function iE(e){return"number"==typeof e?`${e}${rE}`:e}class aE extends oE{constructor(e,t){super(),this.result="";const n=typeof e;this.unitlessCssVar=t,e instanceof aE?this.result=`(${e.result})`:"number"===n?this.result=iE(e):"string"===n&&(this.result=e)}add(e){return e instanceof aE?this.result=`${this.result} + ${e.getResult()}`:("number"==typeof e||"string"==typeof e)&&(this.result=`${this.result} + ${iE(e)}`),this.lowPriority=!0,this}sub(e){return e instanceof aE?this.result=`${this.result} - ${e.getResult()}`:("number"==typeof e||"string"==typeof e)&&(this.result=`${this.result} - ${iE(e)}`),this.lowPriority=!0,this}mul(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof aE?this.result=`${this.result} * ${e.getResult(!0)}`:("number"==typeof e||"string"==typeof e)&&(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}div(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof aE?this.result=`${this.result} / ${e.getResult(!0)}`:("number"==typeof e||"string"==typeof e)&&(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}getResult(e){return this.lowPriority||e?`(${this.result})`:this.result}equal(e){const{unit:t}=e||{};let n=!0;return"boolean"==typeof t?n=t:Array.from(this.unitlessCssVar).some((e=>this.result.includes(e)))&&(n=!1),this.result=this.result.replace(lE,n?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}class sE extends oE{constructor(e){super(),this.result=0,e instanceof sE?this.result=e.result:"number"==typeof e&&(this.result=e)}add(e){return e instanceof sE?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}sub(e){return e instanceof sE?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}mul(e){return e instanceof sE?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}div(e){return e instanceof sE?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}equal(){return this.result}}const uE=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function cE(e,t={},n,o){const r={...t[e]};if(null!=o&&o.deprecatedTokens){const{deprecatedTokens:e}=o;e.forEach((([e,t])=>{(null!=r&&r[e]||null!=r&&r[t])&&(r[t]??(r[t]=null==r?void 0:r[e]))}))}const l={...n,...r};return Object.keys(l).forEach((e=>{l[e]===t[e]&&delete l[e]})),l}const dE=typeof CSSINJS_STATISTIC<"u";let pE=!0;function fE(...e){if(!dE)return Object.assign({},...e);pE=!1;const t={};return e.forEach((e=>{"object"==typeof e&&Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:()=>e[n]})}))})),pE=!0,t}const vE={};function mE(){}function hE(e,t={},n){return"function"==typeof n?n(fE(t,t[e]??{})):n??{}}const gE=new class{constructor(){t(this,"map",new Map),t(this,"objectIDMap",new WeakMap),t(this,"nextID",0),t(this,"lastAccessBeat",new Map),t(this,"accessBeat",0)}set(e,t){this.clear();const n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}get(e){const t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}getCompositeKey(e){return e.map((e=>e&&"object"==typeof e?`obj_${this.getObjectID(e)}`:`${typeof e}_${e}`)).join("|")}getObjectID(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);const t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}clear(){if(this.accessBeat>1e4){const e=Date.now();this.lastAccessBeat.forEach(((t,n)=>{e-t>6e5&&(this.map.delete(n),this.lastAccessBeat.delete(n))})),this.accessBeat=0}}};const yE=()=>({});const bE={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},wE={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},xE=pI(PP.defaultAlgorithm),$E={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},CE=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r,...l}=t;let i={...o,override:r};return i=$r(i),l&&Object.entries(l).forEach((([e,t])=>{const{theme:n,...o}=t;let r=o;n&&(r=CE({...i,...o},{override:o},n)),i[e]=r})),i};const{genStyleHooks:SE}=function(e){const{useCSP:t=yE,useToken:o,usePrefix:r,getResetStyles:l,getCommonStyle:i,getCompUnitless:s}=e;function u(s,u,c,d={}){const p=Array.isArray(s)?s:[s,s],[f]=p,v=p.join("-"),m=e.layer||{name:"antd"};return(e,s=e)=>{const{theme:p,realToken:h,hashId:g,token:y,cssVar:b}=o(),{rootPrefixCls:w,iconPrefixCls:x}=r(),$=t(),C=b?"css":"js",S=a(function(e,t){return n((()=>{const n=gE.get(t);if(n)return n;const o=e();return gE.set(t,o),o}))}((()=>{const e=new Set;return b&&Object.keys(d.unitless||{}).forEach((t=>{e.add(CI(t,b.prefix)),e.add(CI(t,uE(f,b.prefix)))})),((e,t)=>{const n="css"===e?aE:sE;return e=>new n(e,t)})(C,e)}),[C,f,null==b?void 0:b.prefix])),{max:O,min:k}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:(...e)=>`max(${e.map((e=>$I(e))).join(",")})`,min:(...e)=>`min(${e.map((e=>$I(e))).join(",")})`}}(C),P=n((()=>({theme:p.value,token:y.value,hashId:g.value,nonce:()=>$.nonce,clientOnly:d.clientOnly,layer:m,order:d.order||-999})));return"function"==typeof l&&XI(n((()=>({...P.value,clientOnly:!1,path:["Shared",w]}))),(()=>l(y.value,{prefix:{rootPrefixCls:w,iconPrefixCls:x},csp:$}))),[XI(n((()=>({...P.value,path:[v,e,x]}))),(()=>{if(!1===d.injectStyle)return[];const{token:t,flush:o}=(e=>{let t,n=e,o=mE;return dE&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(pE&&(null==t||t.add(n)),e[n])}),o=(e,n)=>{var o;vE[e]={global:Array.from(t),component:{...null==(o=vE[e])?void 0:o.component,...n}}}),{token:n,keys:t,flush:o}})(y),r=hE(f,h,c),l=`.${e}`,a=cE(f,h,r,{deprecatedTokens:d.deprecatedTokens});b&&r&&"object"==typeof r&&Object.keys(r).forEach((e=>{r[e]=`var(${CI(e,uE(f,b.prefix))})`}));const p=n((()=>fE(t.value,{componentCls:l,prefixCls:e,iconCls:`.${x}`,antCls:`.${w}`,calc:S,max:O,min:k},b?r:a))),v=n((()=>u(p.value,{hashId:g.value,prefixCls:e,rootPrefixCls:w,iconPrefixCls:x})));o(f,a);const m="function"==typeof i?i(p.value,e,s,d.resetFont):null;return[!1===d.resetStyle?null:m,v.value]})),g]}}return{genStyleHooks:function(e,t,n,r){const l=Array.isArray(e)?e[0]:e;function i(e){return`${String(l)}${e.slice(0,1).toUpperCase()}${e.slice(1)}`}const a=(null==r?void 0:r.unitless)||{},d={..."function"==typeof s?s(e):{},[i("zIndexPopup")]:!0};Object.keys(a).forEach((e=>{d[i(e)]=a[e]}));const p={...r,unitless:d,prefixToken:i},f=u(e,t,n,p),v=function(e,t,n){const{unitless:r,injectStyle:l=!0,prefixToken:i,ignore:a}=n,s=({rootCls:l,cssVar:s={}})=>{const{realToken:u}=o();return qI({path:[e],prefix:s.prefix,key:s.key,unitless:r,ignore:a,token:u,scope:l},(()=>{const o=hE(e,u,t),r=cE(e,u,o,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(o).forEach((e=>{r[i(e)]=r[e],delete r[e]})),r})),null};return t=>{const{cssVar:n}=o();return[o=>l&&n?$(c,null,[$(s,{rootCls:t,cssVar:n,component:e},null),o]):o,null==n?void 0:n.key]}}(l,n,p);return(e,t=X(e))=>{const[,n]=f(X(e),t),[o,r]=v(t);return[o,n,r]}},genSubStyleComponent:function(e,t,n,o={}){const r=u(e,t,n,{resetStyle:!1,order:-998,...o});return({prefixCls:e,rootCls:t=e})=>(r(e,t),null)},genComponentStyleHook:u}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=be();return{iconPrefixCls:a(t),rootPrefixCls:e()}},useToken:()=>{const[e,t,o,r,l]=function(){const{token:e,hashId:t,theme:o}=PP.useToken(),r=n((()=>({token:e.value,hashed:t.value,theme:o.value}))),{override:l,cssVar:i}=a(r),s=n((()=>r.value.token)),u=n((()=>r.value.hashed)),c=n((()=>r.value.theme??xE)),d=II(n((()=>c.value)),n((()=>[PP.defaultSeed,s.value])),n((()=>({salt:`1.0.3-${u.value||""}`,override:l,getComputedToken:CE,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:wE,ignore:bE,preserve:$E}})))),[p,f,v]=a(d),m=n((()=>d.value[0])),h=n((()=>u.value?d.value[1]:""));return[c,v,h,m,i]}();return{theme:e,realToken:t,hashId:o,token:r,cssVar:l}},useCSP:()=>{const{csp:e}=be();return(null==e?void 0:e.value)??{}},layer:{name:"antdx",dependencies:["antd"]}}),OE=e=>{const{componentCls:t,paddingSM:n,padding:o}=e;return{[t]:{[`${t}-content`]:{"&-filled,&-outlined,&-shadow":{padding:`${$I(n)} ${$I(o)}`,borderRadius:e.borderRadiusLG},"&-filled":{backgroundColor:e.colorFillContent},"&-outlined":{border:`1px solid ${e.colorBorderSecondary}`},"&-shadow":{boxShadow:e.boxShadowTertiary}}}}},kE=e=>{const{componentCls:t,fontSize:n,lineHeight:o,paddingSM:r,padding:l,calc:i}=e,a=i(n).mul(o).div(2).add(r).equal(),s=`${t}-content`;return{[t]:{[s]:{"&-round":{borderRadius:{_skip_check_:!0,value:a},paddingInline:i(l).mul(1.25).equal()}},[`&-start ${s}-corner`]:{borderStartStartRadius:e.borderRadiusXS},[`&-end ${s}-corner`]:{borderStartEndRadius:e.borderRadiusXS}}}},PE=e=>{const{componentCls:t,padding:n}=e;return{[`${t}-list`]:{display:"flex",flexDirection:"column",gap:n,overflowY:"auto","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`}}}},IE=new GI("loadingMove",{"0%":{transform:"translateY(0)"},"10%":{transform:"translateY(4px)"},"20%":{transform:"translateY(0)"},"30%":{transform:"translateY(-4px)"},"40%":{transform:"translateY(0)"}}),EE=new GI("cursorBlink",{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}}),jE=e=>{const{componentCls:t,fontSize:n,lineHeight:o,paddingSM:r,colorText:l,calc:i}=e;return{[t]:{display:"flex",columnGap:r,[`&${t}-end`]:{justifyContent:"end",flexDirection:"row-reverse",[`& ${t}-content-wrapper`]:{alignItems:"flex-end"}},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-typing ${t}-content:last-child::after`]:{content:'"|"',fontWeight:900,userSelect:"none",opacity:1,marginInlineStart:"0.1em",animationName:EE,animationDuration:"0.8s",animationIterationCount:"infinite",animationTimingFunction:"linear"},[`& ${t}-avatar`]:{display:"inline-flex",justifyContent:"center",alignSelf:"flex-start"},[`& ${t}-header, & ${t}-footer`]:{fontSize:n,lineHeight:o,color:e.colorText},[`& ${t}-header`]:{marginBottom:e.paddingXXS},[`& ${t}-footer`]:{marginTop:r},[`& ${t}-content-wrapper`]:{flex:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:0,maxWidth:"100%"},[`& ${t}-content`]:{position:"relative",boxSizing:"border-box",minWidth:0,maxWidth:"100%",color:l,fontSize:e.fontSize,lineHeight:e.lineHeight,minHeight:i(r).mul(2).add(i(o).mul(n)).equal(),wordBreak:"break-word",[`& ${t}-dot`]:{position:"relative",height:"100%",display:"flex",alignItems:"center",columnGap:e.marginXS,padding:`0 ${$I(e.paddingXXS)}`,"&-item":{backgroundColor:e.colorPrimary,borderRadius:"100%",width:4,height:4,animationName:IE,animationDuration:"2s",animationIterationCount:"infinite",animationTimingFunction:"linear","&:nth-child(1)":{animationDelay:"0s"},"&:nth-child(2)":{animationDelay:"0.2s"},"&:nth-child(3)":{animationDelay:"0.4s"}}}}}}},AE=SE("Bubble",(e=>{const t=fE(e,{});return[jE(t),PE(t),OE(t),kE(t)]}),(()=>({}))),ME=Symbol("BubbleContext"),TE=s(),zE=l({props:{value:xe()},setup:(e,{slots:t})=>((e=>{r(ME,e),i(e,(()=>{TE.value=a(e),u(TE)}),{immediate:!0,deep:!0})})(n((()=>e.value))),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})}),DE=l({name:"AXBubble",__name:"Bubble",props:{prefixCls:{},rootClassName:{},styles:{default:()=>({})},classNames:{default:()=>({})},avatar:{},placement:{default:"start"},loading:{type:Boolean,default:!1},typing:{},content:{default:""},messageRender:{},loadingRender:{},variant:{default:"filled"},shape:{},_key:{},onTypingComplete:{},header:{},footer:{}},setup(e,{expose:t}){const r=we(e,["prefixCls","rootClassName","classNames","styles","avatar","placement","loading","loadingRender","typing","content","messageRender","variant","shape","onTypingComplete","header","footer","_key"]);E(e,"content"),E(e,"prefixCls");const l=_(),s=b(e.content);i((()=>e.content),(()=>{s.value=e.content}));const{onUpdate:u}=a(o(ME,n((()=>TE.value||{})))),p=b(null),{direction:f,getPrefixCls:v}=be(),m=v("bubble",e.prefixCls),h=jP("bubble"),[g,y,x,C]=function(e){const t=n((()=>!!X(e))),o={step:1,interval:50,suffix:null},r=n((()=>{const t=X(e);return{...o,..."object"==typeof t?t:{}}}));return[t,n((()=>r.value.step)),n((()=>r.value.interval)),n((()=>r.value.suffix))]}((()=>e.typing)),[S,O]=((e,t,o,r)=>{const[l,s]=AP(""),[u,c]=AP(1),d=n((()=>t.value&&MP(e.value)));return i(e,(()=>{const t=a(l);s(e.value),!d.value&&MP(e.value)?c(e.value.length):MP(e.value)&&MP(t)&&0!==e.value.indexOf(t)&&c(1)}),{immediate:!0}),i([u,t,e],(()=>{if(d.value&&MP(e.value)&&a(u)<e.value.length){const e=setTimeout((()=>{c(a(u)+o.value)}),r.value);V((()=>{clearTimeout(e)}))}}),{immediate:!0}),[n((()=>d.value&&MP(e.value)?e.value.slice(0,a(u)):e.value)),n((()=>d.value&&MP(e.value)&&a(u)<e.value.length))]})(s,g,y,x),k=b(!1);i(S,(()=>{null==u||u()})),w((()=>{var t;O.value||e.loading?k.value=!1:k.value||(k.value=!0,null==(t=e.onTypingComplete)||t.call(e))}));const[P,I,j]=AE((()=>m)),A=n((()=>[m,e.rootClassName,h.value.className,I.value,j,`${m}-${e.placement}`,{[`${m}-rtl`]:"rtl"===f.value},{[`${m}-typing`]:O.value&&!e.loading&&!e.messageRender&&!l.message&&!C.value}])),M=n((()=>{return l.avatar?l.avatar():"function"==typeof e.avatar?e.avatar():d(e.avatar)||(t=e.avatar,Array.isArray(t)&&t.every(d))?e.avatar:$(Lm,e.avatar,null);var t})),T=n((()=>l.message?l.message({content:S.value}):e.messageRender?e.messageRender(S.value):S.value)),z=n((()=>e.loading?l.loading?l.loading():e.loadingRender?e.loadingRender():$(TP,{prefixCls:m},null):$(c,null,[T.value,O.value&&X(C)]))),D=n((()=>{const t=$("div",{style:{...h.value.styles.content,...e.styles.content},class:[`${m}-content`,`${m}-content-${e.variant}`,{[`${m}-content-${e.shape}`]:e.shape},h.value.classNames.content,e.classNames.content]},[X(z)]),n=l.header?l.header({content:S.value,info:{key:e._key}}):"function"==typeof e.header?e.header(S.value,{key:e._key}):e.header,o=l.footer?l.footer({content:S.value,info:{key:e._key}}):"function"==typeof e.footer?e.footer(S.value,{key:e._key}):e.footer;return n||o?$("div",{class:`${m}-content-wrapper`},[n&&$("div",{class:[`${m}-header`,h.value.classNames.header,e.classNames.header],style:{...h.value.styles.header,...e.styles.header}},[n]),t,o&&$("div",{class:[`${m}-footer`,h.value.classNames.footer,e.classNames.footer],style:{...h.value.styles.footer,...e.styles.footer}},[o])]):t}));return t({nativeElement:p}),()=>P($("div",W({style:{...h.value.style},class:X(A)},r,{ref:p}),[(l.avatar||e.avatar)&&$("div",{style:{...h.value.styles.avatar,...e.styles.avatar},class:[`${m}-avatar`,h.value.classNames.avatar,e.classNames.avatar]},[X(M)]),X(D)]))}});var RE,BE={exports:{}};
|
|
2
2
|
/*!
|
|
3
3
|
Copyright (c) 2018 Jed Watson.
|
|
4
4
|
Licensed under the MIT License (MIT), see
|
|
5
5
|
http://jedwatson.github.io/classnames
|
|
6
|
-
*/var FE=(BE||(BE=1,function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var l in e)t.call(e,l)&&e[l]&&(o=r(o,l));return o}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(NE)),NE.exports);const HE=Cy(FE);function LE(e){const t=b(e),n=b((e=>{t.value&&t.value(e)}));return t.value=e,n.value}const _E="accept acceptcharset accesskey action allowfullscreen allowtransparency\nalt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge\ncharset checked classid class colspan cols content contenteditable contextmenu\ncontrols coords crossorigin data datetime default defer dir disabled download draggable\nenctype form formaction formenctype formmethod formnovalidate formtarget frameborder\nheaders height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity\nis keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media\nmediagroup method min minlength multiple muted name novalidate nonce open\noptimum pattern placeholder poster preload radiogroup readonly rel required\nreversed role rowspan rows sandbox scope scoped scrolling seamless selected\nshape size sizes span spellcheck src srcdoc srclang srcset start step style\nsummary tabindex target title type usemap value width wmode wrap onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown\n onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick\n onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown\n onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel\n onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough\n onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata\n onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError".split(/[\s\n]+/);function WE(e,t){return 0===e.indexOf(t)}function VE(e,t=!1){let n;n=!1===t?{aria:!0,data:!0,attr:!0}:!0===t?{aria:!0}:{...t};const o={};return Object.keys(e).forEach((t=>{(n.aria&&("role"===t||WE(t,"aria-"))||n.data&&WE(t,"data-")||n.attr&&(_E.includes(t)||_E.includes(t.toLowerCase())))&&(o[t]=e[t])})),o}const XE=l({name:"AXBubbleList",inheritAttrs:!1,__name:"BubbleList",props:K({prefixCls:null,rootClassName:null,items:null,autoScroll:{type:Boolean},roles:null},{autoScroll:!0}),setup(e,{expose:t}){const o=xe(e,["prefixCls","rootClassName","items","autoScroll","roles"]);E(e,"roles"),E(e,"items"),E(e,"prefixCls");const r=[];r[0]=[];const l=q(),s=_(),u=n((()=>VE(W(o,l),{attr:!0,aria:!0}))),c=b(e.items),d=b(e.roles);i((()=>e.items),(()=>{c.value=e.items})),i((()=>e.roles),(()=>{d.value=e.roles}));const p=b(null),f=b({}),{getPrefixCls:v}=we(),m=v("bubble",e.prefixCls),h=`${m}-list`,[g,y,w]=ME(m),[x,C]=MP(!1);G((()=>{C(!0),V((()=>{C(!1)}))}));const S=function(e,t){const o=(e,n)=>{var o;return"function"==typeof t.value?t.value(e,n):t&&(null==(o=t.value)?void 0:o[e.role])||{}};return n((()=>(e.value||[]).map(((e,t)=>{const n=e.key??`preset_${t}`;return{...o(e,t),...e,key:n}}))))}(c,d),[O,k]=function(e){const[t,o]=MP(e.value.length),r=n((()=>e.value.slice(0,a(t)))),l=n((()=>{const e=a(r)[a(r).length-1];return e?e.key:null}));i(e,(()=>{var t;if(o(e.value.length),!a(r).length||!a(r).every(((t,n)=>{var o;return t.key===(null==(o=e.value[n])?void 0:o.key)})))if(0===a(r).length)o(1);else for(let n=0;n<a(r).length;n+=1)if(a(r)[n].key!==(null==(t=e.value[n])?void 0:t.key)){o(n);break}}),{immediate:!0,deep:!0});const s=LE((e=>{e===a(l)&&o(a(t)+1)}));return[r,s]}(S),[P,j]=MP(!0),[A,M]=MP(0),T=e=>{const t=e.target;j(t.scrollHeight-Math.abs(t.scrollTop)-t.clientHeight<=1)};i(A,(()=>{e.autoScroll&&a(p)&&a(P)&&I((()=>{a(p).scrollTo({top:a(p).scrollHeight})}))})),i((()=>a(O).length),(()=>{var t;if(e.autoScroll){const e=null==(t=a(O)[a(O).length-2])?void 0:t.key,n=a(f)[e];if(n){const{nativeElement:e}=n,{top:t=0,bottom:o=0}=(null==e?void 0:e.getBoundingClientRect())??{},{top:r,bottom:l}=a(p).getBoundingClientRect();t<l&&o>r&&(M(a(A)+1),j(!0))}}}));const z=LE((()=>{e.autoScroll&&M(a(A)+1)})),D=n((()=>({onUpdate:z})));return t({nativeElement:p,scrollTo:({key:e,offset:t,behavior:n="smooth",block:o})=>{if("number"==typeof t)a(p).scrollTo({top:t,behavior:n});else if(void 0!==e){const t=a(f)[e];if(t){const r=a(O).findIndex((t=>t.key===e));j(r===a(O).length-1),t.nativeElement.scrollIntoView({behavior:n,block:o})}}}}),()=>g($(DE,{value:D.value},{default:()=>[$("div",W(u.value,{class:HE(h,e.rootClassName,y.value,w,{[`${h}-reach-end`]:P.value}),ref:p,onScroll:T}),[U(a(O),(({key:e,onTypingComplete:t,...n},o)=>Y([e],(()=>{var o,r,l;return $(RE,W(n,{avatar:s.avatar?()=>{var t;return null==(t=s.avatar)?void 0:t.call(s,{item:{key:e,...n}})}:n.avatar,header:(null==(o=s.header)?void 0:o.call(s,{item:{key:e,...n}}))??n.header,footer:(null==(r=s.footer)?void 0:r.call(s,{item:{key:e,...n}}))??n.footer,loadingRender:s.loading?()=>s.loading({item:{key:e,...n}}):n.loadingRender,content:(null==(l=s.message)?void 0:l.call(s,{item:{key:e,...n}}))??n.content,key:e,ref:t=>{t?f.value[e]=t:delete f.value[e]},typing:!!x.value&&n.typing,onTypingComplete:()=>{null==t||t(),k(e)}}),null)}),r[0],0+o+1)))])]}))}}),KE=Object.assign(RE,{List:XE});KE.install=function(e){return e.component(KE.name,KE),e.component(XE.name,XE),e};const qE=l({name:"AXConversationsItem",__name:"ConversationsItem",props:{info:null,prefixCls:null,direction:null,menu:null,active:{type:Boolean},onClick:{type:Function}},setup(e){const t=xe(e,["prefixCls","info","class","direction","onClick","active","menu"]);E(e,"class");const o=n((()=>VE(t,{aria:!0,data:!0,attr:!0}))),r=e=>{e.stopPropagation()},l=n((()=>e.info.disabled)),[i,a]=MP(!1),[s,u]=MP(!1),c=n((()=>HE(e.class,`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:e.active&&!l.value},{[`${e.prefixCls}-item-disabled`]:l.value}))),d=()=>{!l.value&&e.onClick&&e.onClick(e.info)},p=e=>{e&&u(!e)},f=n((()=>{var t;return null==(t=e.menu)?void 0:t.trigger})),v=n((()=>{const{trigger:t,...n}=e.menu||{};return n})),m=n((()=>{var e;return null==(e=v.value)?void 0:e.getPopupContainer}));return()=>$(uh,{title:e.info.label,open:i.value&&s.value,onOpenChange:u,placement:"rtl"===e.direction?"left":"right"},{default:()=>[$("li",W(o.value,{class:c.value,onClick:d}),[e.info.icon&&$("div",{class:`${e.prefixCls}-icon`},[e.info.icon]),$(QS.Text,{class:`${e.prefixCls}-label`,ellipsis:{onEllipsis:a}},{default:()=>[e.info.label]}),!l.value&&e.menu&&$(jg,{placement:"rtl"===e.direction?"bottomLeft":"bottomRight",trigger:["click"],disabled:l.value,onOpenChange:p,getPopupContainer:m.value},{default:()=>(t=>{const n=$(gg,{onClick:r,class:`${e.prefixCls}-menu-icon`},null);return f.value?"function"==typeof f.value?f.value(t,{originNode:n}):f.value:n})(e.info),overlay:()=>$($y,v.value,null)})])]})}}),GE=Symbol("GroupTitleContext"),UE=s(),YE=l({props:{value:$e()},setup:(e,{slots:t})=>((e=>{r(GE,e),i(e,(()=>{UE.value=a(e),u(UE)}),{immediate:!0,deep:!0})})(n((()=>e.value))),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})}),ZE=l({name:"AXConversationsGroupTitle",__name:"GroupTitle",setup(e){const t=_(),r=o(GE,n((()=>UE.value||{}))),l=n((()=>{var e;return null==(e=t.default)?void 0:e.call(t)}));return()=>$("div",{class:HE(`${r.value.prefixCls}-group-title`)},[l.value&&$(QS.Text,null,{default:()=>[l.value]})])}});function QE(e,t){const{defaultValue:n,value:o=b()}=t||{};let r="function"==typeof e?e():e;void 0!==o.value&&(r=a(o)),void 0!==n&&(r="function"==typeof n?n():n);const l=b(r),s=b(r);return w((()=>{let e=void 0!==o.value?o.value:l.value;t.postState&&(e=t.postState(e)),s.value=e})),i(o,(()=>{l.value=o.value})),[s,function(e){const n=s.value;l.value=e,B(s.value)!==e&&t.onChange&&t.onChange(e,n)}]}const JE="__ungrouped",ej=OE("Conversations",(e=>(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",gap:e.paddingXXS,overflowY:"auto",padding:e.paddingSM,[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-list`]:{display:"flex",gap:e.paddingXXS,flexDirection:"column",paddingLeft:0,[`& ${t}-item`]:{paddingInlineStart:e.paddingXL},[`& ${t}-label`]:{color:e.colorTextDescription}},[`& ${t}-item`]:{display:"flex",height:e.controlHeightLG,minHeight:e.controlHeightLG,gap:e.paddingXS,padding:`0 ${CI(e.paddingXS)}`,alignItems:"center",borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,"&:hover":{backgroundColor:e.colorBgTextHover},"&-active":{backgroundColor:e.colorBgTextHover,[`& ${t}-label, ${t}-menu-icon`]:{color:e.colorText}},"&-disabled":{cursor:"not-allowed",[`& ${t}-label`]:{color:e.colorTextDisabled}},"&:hover, &-active":{[`& ${t}-menu-icon`]:{opacity:1}}},[`& ${t}-label`]:{flex:1,overflow:"hidden",textOverflow:"ellipsis",color:e.colorText},[`& ${t}-menu-icon`]:{opacity:0,fontSize:e.fontSizeXL},[`& ${t}-group-title`]:{display:"flex",alignItems:"center",height:e.controlHeightLG,minHeight:e.controlHeightLG,padding:`0 ${CI(e.paddingXS)}`}}}})(vE(e,{}))),(()=>({}))),tj=l({name:"AXConversations",__name:"Conversations",props:K({items:null,activeKey:null,defaultActiveKey:null,onActiveChange:{type:Function},menu:{type:Function},groupable:null,styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=xe(e,["prefixCls","rootClassName","items","activeKey","defaultActiveKey","onActiveChange","menu","styles","classNames","groupable","class","style"]);E(e,"class"),E(e,"activeKey"),E(e,"prefixCls");const o=b(e.activeKey),r=n((()=>VE(t,{attr:!0,aria:!0,data:!0}))),[l,a]=QE(e.defaultActiveKey,{value:o});i((()=>e.activeKey),(()=>{o.value=e.activeKey}));const s=((e,t=[])=>{const o=n((()=>{if(!X(e))return{enableGroup:!1,sort:void 0,title:void 0};let t={sort:void 0,title:void 0};return"object"==typeof X(e)&&(t={...t,...X(e)}),{enableGroup:!0,sort:t.sort,title:t.title}}));return n((()=>{if(!o.value.enableGroup)return{groupList:[{name:JE,data:X(t),title:void 0}],enableGroup:o.value.enableGroup};const e=X(t).reduce(((e,t)=>{const n=t.group||JE;return e[n]||(e[n]=[]),e[n].push(t),e}),{});return{groupList:(o.value.sort?Object.keys(e).sort(o.value.sort):Object.keys(e)).map((t=>({name:t===JE?void 0:t,title:o.value.title,data:e[t]}))),enableGroup:o.value.enableGroup}}))})((()=>e.groupable),(()=>e.items)),{getPrefixCls:u,direction:c}=we(),d=n((()=>u("conversations",e.prefixCls))),p=AP("conversations"),[f,v,m]=ej(d),h=n((()=>HE(d.value,p.value.className,e.class,e.rootClassName,v.value,m,{[`${d.value}-rtl`]:"rtl"===c.value}))),g=t=>{a(t.key),e.onActiveChange&&e.onActiveChange(t.key)};return()=>f($("ul",W(r.value,{style:{..."object"==typeof p.value.style?p.value.style:{},..."object"==typeof e.style?e.style:{}},class:h.value}),[s.value.groupList.map(((t,n)=>{const o=t.data.map(((t,n)=>$(qE,{key:t.key||`key-${n}`,info:t,prefixCls:d.value,direction:c.value,class:HE(e.classNames.item,p.value.classNames.item),style:{...p.value.styles.item,...e.styles.item},menu:"function"==typeof e.menu?e.menu(t):e.menu,active:l.value===t.key,onClick:g},null)));return s.value.enableGroup?$("li",{key:t.name||`key-${n}`},[$(YE,{value:{prefixCls:d.value}},{default:()=>{var e;return[(null==(e=t.title)?void 0:e.call(t,t.name,{components:{GroupTitle:ZE}}))||$(ZE,{key:t.name},{default:()=>[t.name]})]}}),$("ul",{class:`${d.value}-list`},[o])]):o}))]))}}),nj=e=>{const{componentCls:t,calc:n}=e,o=n(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),r=n(e.fontSize).mul(e.lineHeight).equal();return{[t]:{gap:e.padding,[`${t}-icon`]:{height:n(o).add(r).add(e.paddingXXS).equal(),display:"flex",img:{height:"100%"}},[`${t}-content-wrapper`]:{gap:e.paddingXS,flex:"auto",minWidth:0,[`${t}-title-wrapper`]:{gap:e.paddingXS},[`${t}-title`]:{margin:0},[`${t}-extra`]:{marginInlineStart:"auto"}}}}},oj=e=>{const{componentCls:t}=e;return{[t]:{"&-filled":{paddingInline:e.padding,paddingBlock:e.paddingSM,background:e.colorFillContent,borderRadius:e.borderRadiusLG},"&-borderless":{[`${t}-title`]:{fontSize:e.fontSizeHeading3,lineHeight:e.lineHeightHeading3}}}}},rj=OE("Welcome",(e=>{const t=vE(e,{});return[nj(t),oj(t)]}),(()=>({})));const lj=l({name:"AXWelcome",__name:"Welcome",props:K({prefixCls:null,rootClassName:null,className:null,style:null,variant:null,classNames:null,styles:null,icon:null,title:null,description:null,extra:null},{variant:"filled",classNames:()=>({}),styles:()=>({})}),setup(e){E(e,"prefixCls");const t=_(),{direction:o,getPrefixCls:r}=we(),l=r("welcome",e.prefixCls),i=AP("welcome"),[a,s,u]=rj(l),c=n((()=>{const n=t.icon?t.icon():"function"==typeof e.icon?e.icon():e.icon;if(!n)return null;let o=n;return"string"==typeof n&&n.startsWith("http")&&(o=$("img",{src:n,alt:"icon"},null)),$("div",{class:HE(`${l}-icon`,i.value.classNames.icon,e.classNames.icon),style:e.styles.icon},[o])})),p=n((()=>{const n=t.title?t.title():"function"==typeof e.title?e.title():e.title;return n?$(QS.Title,{level:4,class:HE(`${l}-title`,i.value.classNames.title,e.classNames.title),style:e.styles.title},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!d(e)}(n)?n:{default:()=>[n]}):null})),f=n((()=>t.description?t.description():"function"==typeof e.description?e.description():e.description)),v=n((()=>{const n=t.extra?t.extra():"function"==typeof e.extra?e.extra():e.extra;return n?$("div",{class:HE(`${l}-extra`,i.value.classNames.extra,e.classNames.extra),style:e.styles.extra},[n]):null}));return()=>a($(CP,{class:HE(l,i.value.className,e.className,e.rootClassName,s.value,u,`${l}-${e.variant}`,{[`${l}-rtl`]:"rtl"===o.value}),style:e.style},{default:()=>[c.value,$(CP,{vertical:!0,class:`${l}-content-wrapper`},{default:()=>[t.extra||e.extra?$(CP,{align:"flex-start",class:`${l}-title-wrapper`},{default:()=>[p.value,v.value]}):p.value,f.value&&$(QS.Text,{class:HE(`${l}-description`,i.value.classNames.description,e.classNames.description),style:e.styles.description},{default:()=>[f.value]})]})]}))}}),ij=e=>{const{componentCls:t}=e;return{[t]:{"&, & *":{boxSizing:"border-box"},maxWidth:"100%",[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-title`]:{marginBlockStart:0,fontWeight:"normal",color:e.colorTextTertiary},[`& ${t}-list`]:{display:"flex",gap:e.paddingSM,overflowX:"auto",scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},listStyle:"none",paddingInlineStart:0,marginBlock:0,alignItems:"stretch","&-wrap":{flexWrap:"wrap"},"&-vertical":{flexDirection:"column",alignItems:"flex-start"}},[`${t}-item`]:{flex:"none",display:"flex",gap:e.paddingXS,height:"auto",paddingBlock:e.paddingSM,paddingInline:e.padding,alignItems:"flex-start",justifyContent:"flex-start",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,transition:["border","background"].map((t=>`${t} ${e.motionDurationSlow}`)).join(","),border:`${CI(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,[`&:not(${t}-item-has-nest)`]:{"&:hover":{cursor:"pointer",background:e.colorFillTertiary},"&:active":{background:e.colorFill}},[`${t}-content`]:{flex:"auto",minWidth:0,display:"flex",gap:e.paddingXXS,flexDirection:"column",alignItems:"flex-start"},[`${t}-icon, ${t}-label, ${t}-desc`]:{margin:0,padding:0,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start",whiteSpace:"normal"},[`${t}-label`]:{color:e.colorTextHeading,fontWeight:500},[`${t}-label + ${t}-desc`]:{color:e.colorTextTertiary},[`&${t}-item-disabled`]:{pointerEvents:"none",background:e.colorBgContainerDisabled,[`${t}-label, ${t}-desc`]:{color:e.colorTextTertiary}}}}}},aj=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-item-has-nest`]:{[`> ${t}-content`]:{[`> ${t}-label`]:{fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}}},[`&${t}-nested`]:{marginTop:e.paddingXS,alignSelf:"stretch",[`${t}-list`]:{alignItems:"stretch"},[`${t}-item`]:{border:0,background:e.colorFillQuaternary}}}}},sj=OE("Prompts",(e=>{const t=vE(e,{});return[ij(t),aj(t)]}),(()=>({}))),uj=l({name:"AXPrompts",__name:"Prompts",props:K({items:null,title:{type:Function},onItemClick:{type:Function},vertical:{type:Boolean},wrap:{type:Boolean},styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=xe(e,["prefixCls","title","class","items","onItemClick","vertical","wrap","rootClassName","styles","classNames","style"]);E(e,"class"),E(e,"prefixCls");const o=_(),{getPrefixCls:r,direction:l}=we(),i=r("prompts",e.prefixCls),a=AP("prompts"),[s,u,c]=sj(i),d=n((()=>HE(i,a.value.className,e.class,e.rootClassName,u.value,c,{[`${i}-rtl`]:"rtl"===l.value}))),p=n((()=>HE(`${i}-list`,a.value.classNames.list,e.classNames.list,{[`${i}-list-wrap`]:e.wrap},{[`${i}-list-vertical`]:e.vertical}))),f=n((()=>o.title?o.title():"function"==typeof e.title?e.title():e.title));return()=>{var n;return s($("div",W(t,{class:d.value,style:{..."object"==typeof e.style?e.style:{},..."object"==typeof a.value.style?a.value.style:{}}}),[f.value&&$(QS.Title,{level:5,class:HE(`${i}-title`,a.value.classNames.title,e.classNames.title),style:{...a.value.styles.title,...e.styles.title}},{default:()=>[f.value]}),$("div",{class:p.value,style:{...a.value.styles.list,...e.styles.list}},[null==(n=e.items)?void 0:n.map(((t,n)=>{const o=t.children&&t.children.length>0;return $("div",{key:t.key||`key_${n}`,style:{...a.value.styles.item,...e.styles.item},class:HE(`${i}-item`,a.value.classNames.item,e.classNames.item,{[`${i}-item-disabled`]:t.disabled,[`${i}-item-has-nest`]:o}),onClick:()=>{!o&&e.onItemClick&&e.onItemClick({data:t})}},[t.icon&&$("div",{class:`${i}-icon`},[t.icon]),$("div",{class:HE(`${i}-content`,a.value.classNames.itemContent,e.classNames.itemContent),style:{...a.value.styles.itemContent,...e.styles.itemContent}},[t.label&&$("h6",{class:`${i}-label`},[t.label]),t.description&&$("p",{class:`${i}-desc`},[t.description]),o&&$(uj,{class:`${i}-nested`,items:t.children,vertical:!0,onItemClick:e.onItemClick,classNames:{list:e.classNames.subList,item:e.classNames.subItem},styles:{list:e.styles.subList,item:e.styles.subItem}},null)])])}))])]))}}});uj.install=function(e){return e.component(uj.name,uj),e};const cj=OE("Suggestion",(e=>(e=>{const{componentCls:t,antCls:n}=e;return{[t]:{[`${n}-cascader-menus ${n}-cascader-menu`]:{height:"auto"},[`${t}-item`]:{"&-icon":{marginInlineEnd:e.paddingXXS},"&-extra":{marginInlineStart:e.padding}},[`&${t}-block`]:{[`${t}-item-extra`]:{marginInlineStart:"auto"}}}}})(vE(e,{}))),(()=>({})));function dj(e,t,n,o,r){const[l,a]=MP([]),s=(t,n=l.value)=>{let o=X(e);for(let e=0;e<t-1;e+=1){const t=n[e],r=o.find((e=>e.value===t));if(!r)break;o=r.children||[]}return o},u=e=>{const t=l.value.length||1,n=s(t),o=n.findIndex((e=>e.value===l.value[t-1])),r=n.length,i=n[(o+e+r)%r];a([...l.value.slice(0,t-1),i.value])},c=()=>{l.value.length>1&&a(l.value.slice(0,l.value.length-1))},d=()=>{const e=s(l.value.length+1);e.length&&a([...l.value,e[0].value])},p=LE((e=>{if(X(t))switch(console.log("e.key",e),e.key){case"ArrowDown":u(1),e.preventDefault();break;case"ArrowUp":u(-1),e.preventDefault();break;case"ArrowRight":X(n)?c():d(),e.preventDefault();break;case"ArrowLeft":X(n)?d():c(),e.preventDefault();break;case"Enter":s(l.value.length+1).length||o((e=>e.map(((t,n)=>{const o=s(n+1,e).find((e=>e.value===t));return null==o?void 0:o.value})))(l.value)),e.preventDefault();break;case"Escape":r(),e.preventDefault()}}));return i((()=>X(t)),(()=>{X(t)&&a([X(e)[0].value])}),{immediate:!0}),[l,p]}const pj=typeof window<"u"&&typeof document<"u";function fj(e,t=!0,n){m()?h(e,n):t?e():I(e)}typeof WorkerGlobalScope<"u"&&(globalThis,WorkerGlobalScope);const vj=pj?window:void 0;function mj(e){var t;const n=X(e);return null!=(t=null==n?void 0:n.$el)?t:n}function hj(e){const t=function(){const e=s(!1),t=m();return t&&h((()=>{e.value=!0}),t),e}();return n((()=>(t.value,!!e())))}function gj(e,t,o={}){const{window:r=vj,...l}=o;let a;const s=hj((()=>r&&"ResizeObserver"in r)),u=()=>{a&&(a.disconnect(),a=void 0)},c=n((()=>{const t=X(e);return Array.isArray(t)?t.map((e=>mj(e))):[mj(t)]})),d=i(c,(e=>{if(u(),s.value&&r){a=new ResizeObserver(t);for(const t of e)t&&a.observe(t,l)}}),{immediate:!0,flush:"post"}),p=()=>{u(),d()};return function(e){!!Z()&&Q(e)}(p),{isSupported:s,stop:p}}function yj(e,t={width:0,height:0},o={}){const{window:r=vj,box:l="content-box"}=o,a=n((()=>{var t,n;return null==(n=null==(t=mj(e))?void 0:t.namespaceURI)?void 0:n.includes("svg")})),u=s(t.width),c=s(t.height),{stop:d}=gj(e,(([t])=>{const n="border-box"===l?t.borderBoxSize:"content-box"===l?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){const t=mj(e);if(t){const e=t.getBoundingClientRect();u.value=e.width,c.value=e.height}}else if(n){const e=function(e){return Array.isArray(e)?e:[e]}(n);u.value=e.reduce(((e,{inlineSize:t})=>e+t),0),c.value=e.reduce(((e,{blockSize:t})=>e+t),0)}else u.value=t.contentRect.width,c.value=t.contentRect.height}),o);fj((()=>{const n=mj(e);n&&(u.value="offsetWidth"in n?n.offsetWidth:t.width,c.value="offsetHeight"in n?n.offsetHeight:t.height)}));const p=i((()=>mj(e)),(e=>{u.value=e?t.width:0,c.value=e?t.height:0}));return{width:u,height:c,stop:function(){d(),p()}}}const bj=l({name:"AXSuggestion",__name:"Suggestion",props:K({prefixCls:null,className:null,rootClassName:null,style:null,children:{type:Function},open:{type:Boolean},onOpenChange:{type:Function},items:{type:Function},onSelect:{type:Function},block:{type:Boolean},styles:null,classNames:null},{open:!1}),setup(e){E(e,"prefixCls");const t=_(),{direction:o,getPrefixCls:r}=we(),l=n((()=>r("suggestion",e.prefixCls)));l.value;const i=n((()=>"rtl"===o.value)),a=AP("suggestion"),s=b(),[u,c,d]=cj(l),{width:p}=yj(s),f=n((()=>{if(e.block&&p.value)return{width:`${p.value}px`}})),[v,m]=MP(e.open),[h,g]=MP(),y=t=>{var n;m(t),null==(n=e.onOpenChange)||n.call(e,t)},w=e=>{!1===e?y(!1):(g(e),y(!0))},x=()=>{y(!1)},C=n((()=>"function"==typeof e.items?e.items(h.value):e.items)),S=t=>{e.onSelect&&e.onSelect(t[t.length-1]),y(!1)},[O,k]=dj(C,v,i,S,x),P=n((()=>{var n;return t.default?t.default({onTrigger:w,onKeyDown:k}):null==(n=e.children)?void 0:n.call(e,{onTrigger:w,onKeyDown:k})}));return()=>u($(lx,{options:C.value,open:v.value,value:O.value,placement:i.value?"topRight":"topLeft",onDropdownVisibleChange:e=>{e||x()},popupClassName:HE(e.rootClassName,l.value,c.value,d,{[`${l.value}-block`]:e.block}),onChange:S,dropdownStyle:f.value},{default:()=>$("div",{ref:s,class:HE(l.value,a.value.className,e.rootClassName,e.className,`${l.value}-wrapper`,c.value,d),style:{...a.value.style,...e.style}},[P.value])}))}}),wj=Symbol("SenderHeaderContext"),xj=s(),$j=l({props:{value:$e()},setup:(e,{slots:t})=>((e=>{r(wj,e),i(e,(()=>{xj.value=a(e),u(xj)}),{immediate:!0,deep:!0})})(n((()=>e.value))),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})}),Cj=Symbol("ActionButtonContext"),Sj=s(),Oj=()=>o(Cj,n((()=>Sj.value||{}))),kj=l({props:{value:$e()},setup:(e,{slots:t})=>((e=>{r(Cj,e),i(e,(()=>{Sj.value=a(e),u(Sj)}),{immediate:!0,deep:!0})})(n((()=>e.value))),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})}),Pj=l({name:"AXSenderActionButton",__name:"index",props:K({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null,action:null},{type:"text",disabled:void 0}),setup(e){const t=xe(e,["action","type","disabled","onClick"]);E(e,"disabled");const o=_(),r=Oj(),l=n((()=>{var t;const n=r.value.disabled,o=null==(t=r.value)?void 0:t[`${e.action}Disabled`];return e.disabled??n??o})),i=n((()=>r.value.prefixCls));return()=>$(dg,W({type:e.type},t,{onClick:t=>{var n,o;l.value||(null==(o=null==(n=r.value)?void 0:n[e.action])||o.call(n),e.onClick&&!Array.isArray(e.onClick)&&e.onClick(t))},class:HE(i.value,{[`${i.value}-disabled`]:l.value})}),{icon:()=>o.default()})}}),Ij=l({name:"AXSenderClearButton",__name:"ClearButton",props:K({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{disabled:void 0}),setup(e){const t=xe(e,["disabled"]);return()=>$(Pj,W({disabled:e.disabled},t,{action:"onClear"}),{default:()=>[$(Mk,null,null)]})}}),Ej=l({name:"AXSenderStopLoading",__name:"StopLoading",props:{className:null},setup(e){const t=e;return()=>$("svg",{color:"currentColor",viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:t.className},[$("title",null,[z("Stop Loading")]),$("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"},null),$("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100",opacity:"0.45"},null),$("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100","stroke-dasharray":"600 9999999"},[$("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"},null)])])}}),jj=l({name:"AXSenderLoadingButton",__name:"LoadingButton",props:K({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{type:"primary",shape:"circle",icon:void 0,disabled:void 0}),setup(e){const t=xe(e,["type","shape","icon","disabled"]),n=Oj(),{token:o}=IP.useToken();return()=>$(Pj,W({type:e.type,disabled:e.disabled,shape:e.shape,icon:e.icon},t,{style:{backgroundColor:"transparent",color:o.value.colorPrimary},class:HE(`${n.value.prefixCls}-loading-button`),action:"onCancel"}),{default:()=>[$(Ej,{className:`${n.value.prefixCls}-loading-icon`},null)]})}}),Aj=l({name:"AXSenderLoadingButton",__name:"SendButton",props:K({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{type:"primary",shape:"circle",disabled:void 0}),setup(e){const t=xe(e,["type","shape","disabled"]);return()=>$(Pj,W({type:e.type,shape:e.shape,disabled:e.disabled},t,{action:"onSend"}),{default:()=>[$(wk,null,null)]})}}),Mj=140,Tj=250,zj=l({name:"AXSenderRecordingIcon",__name:"RecordingIcon",props:{className:null,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},setup:e=>()=>$("svg",{color:"currentColor",viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:e.className},[$("title",null,[z("Speech Recording")]),Array.from({length:4}).map(((e,t)=>$("rect",{fill:"currentColor",rx:70,ry:70,height:Tj,width:Mj,x:t*(440/3+Mj),y:375,key:t},[$("animate",{attributeName:"height",values:"250; 500; 250",keyTimes:"0; 0.5; 1",dur:"0.8s",begin:.2*t+"s",repeatCount:"indefinite"},null),$("animate",{attributeName:"y",values:"375; 250; 375",keyTimes:"0; 0.5; 1",dur:"0.8s",begin:.2*t+"s",repeatCount:"indefinite"},null)])))])}),Dj=l({name:"AXSenderSpeechButton",__name:"index",props:K({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{type:"text",disabled:void 0,audioIcon:()=>$(Ik,null,null),audioDisabledIcon:()=>$(Sk,null,null),audioRecordingIcon:void 0}),setup(e){const t=xe(e,["type","disabled","audioIcon","audioDisabledIcon","audioRecordingIcon"]),o=Oj(),{token:r}=IP.useToken(),l=n((()=>o.value.speechRecording)),i=n((()=>o.value.prefixCls)),a=n((()=>{let t;return t=l.value?e.audioRecordingIcon?e.audioRecordingIcon:$(zj,{className:`${i.value}-recording-icon`},null):o.value.onSpeechDisabled?e.audioDisabledIcon:e.audioIcon,t}));return()=>$(Pj,W({type:e.type,disabled:e.disabled},t,{style:{display:"flex",justifyContent:"center",alignItems:"center",color:r.value.colorPrimary},action:"onSpeech"}),{default:()=>[a.value]})}}),Rj=l({name:"AXTransitionCollapse",__name:"TransitionCollapse",props:{prefixCls:{default:"ax"}},setup(e){const t=e,o=_(),r=n((()=>t.prefixCls+"-transition-collapse")),l={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.maxHeight="0",e.style.paddingTop="0",e.style.paddingBottom="0"},enter(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.maxHeight=`${e.scrollHeight}px`,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.maxHeight=`${e.dataset.oldMaxHeight||"999"}px`,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldMaxHeight=e.scrollHeight,e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.overflow="hidden",e.style.maxHeight=`${e.scrollHeight}px`},leave(e){0!==e.scrollHeight&&(e.style.maxHeight="0",e.style.paddingTop="0",e.style.paddingBottom="0")},afterLeave(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}};return()=>$(S,{name:r.value,onBeforeEnter:l.beforeEnter,onEnter:l.enter,onAfterEnter:l.afterEnter,onBeforeLeave:l.beforeLeave,onLeave:l.leave,onAfterLeave:l.afterLeave},{default:()=>{var e;return[null==(e=o.default)?void 0:e.call(o)]}})}}),Bj=e=>{const{componentCls:t}=e,n=`${t}-transition-collapse`;return{[t]:{[n]:{"&-enter-active":{transition:["max-height","padding-top","padding-bottom"].map((t=>`${t} ${e.motionDurationSlow} ${e.motionEaseInOut}`)).join(",")},"&-leave-active":{transition:["max-height","padding-top","padding-bottom"].map((t=>`${t} ${e.motionDurationSlow} ${e.motionEaseInOut}`)).join(",")}}}}};Rj.install=function(e){return e.component(Rj.name,Rj),e};const Nj=e=>{const{componentCls:t,calc:n}=e,o=`${t}-header`;return{[t]:{[o]:{borderBottomWidth:e.lineWidth,borderBottomStyle:"solid",borderBottomColor:e.colorBorder,"&-header":{background:e.colorFillAlter,fontSize:e.fontSize,lineHeight:e.lineHeight,paddingBlock:n(e.paddingSM).sub(e.lineWidthBold).equal(),paddingInlineStart:e.padding,paddingInlineEnd:e.paddingXS,display:"flex",borderRadius:{_skip_check_:!0,value:n(e.borderRadius).mul(2).equal()},borderBottomRightRadius:0,borderBottomLeftRadius:0,[`${o}-title`]:{flex:"auto"}},"&-content":{padding:e.padding},"&-motion":{transition:["height","border"].map((t=>`${t} ${e.motionDurationSlow}`)).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}}}}}},Fj=e=>{const{componentCls:t,padding:n,paddingSM:o,paddingXS:r,paddingXXS:l,lineWidth:i,lineWidthBold:a,calc:s}=e;return{[t]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${e.boxShadowTertiary}`,transition:`background ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:s(e.borderRadius).mul(2).equal()},borderColor:e.colorBorder,borderWidth:0,borderStyle:"solid","&:after":{content:'""',position:"absolute",inset:0,pointerEvents:"none",transition:`border-color ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:"inherit"},borderStyle:"inherit",borderColor:"inherit",borderWidth:i},"&:focus-within":{boxShadow:`${e.boxShadowSecondary}`,borderColor:e.colorPrimary,"&:after":{borderWidth:a}},"&-disabled":{background:e.colorBgContainerDisabled},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{display:"flex",gap:r,width:"100%",paddingBlock:o,paddingInlineStart:n,paddingInlineEnd:o,boxSizing:"border-box",alignItems:"flex-end"},[`${t}-prefix`]:{flex:"none"},[`${t}-input`]:{padding:0,borderRadius:0,flex:"auto",alignSelf:"center",minHeight:"auto"},[`${t}-actions-list`]:{flex:"none",display:"flex","&-presets":{gap:e.paddingXS}},[`${t}-actions-btn`]:{"&-disabled":{opacity:.45},"&-loading-button":{padding:0,border:0},"&-loading-icon":{height:e.controlHeight,width:e.controlHeight,verticalAlign:"top"},"&-recording-icon":{height:"1.2em",width:"1.2em",verticalAlign:"top"}},[`${t}-footer`]:{paddingInlineStart:n,paddingInlineEnd:o,paddingBlockEnd:o,paddingBlockStart:l,boxSizing:"border-box"}}}},Hj=OE("Sender",(e=>{const{paddingXS:t,calc:n}=e,o=vE(e,{SenderContentMaxWidth:`calc(100% - ${CI(n(t).add(32).equal())})`});return[Fj(o),Nj(o),Bj(o)]}),(()=>({})));let Lj;function _j(e,t){const o=e,r=n((()=>{const e=X(t);return"object"==typeof e?{controlledRecording:e.recording,onControlledRecordingChange:e.onRecordingChange,speechInControlled:"boolean"==typeof e.recording}:{controlledRecording:void 0,onControlledRecordingChange:void 0,speechInControlled:!1}})),l=n((()=>r.value.controlledRecording)),i=r.value.onControlledRecordingChange,a=r.value.speechInControlled,s=b(null);w((()=>{if(typeof navigator<"u"&&"permissions"in navigator){let e=null;navigator.permissions.query({name:"microphone"}).then((t=>{s.value=t.state,t.onchange=function(){s.value=this.state},e=t})),V((()=>{e&&(e.onchange=null)}))}}));const u=n((()=>Lj&&"denied"!==s.value)),c=b(null),[d,p]=QE(!1,{value:l}),f=b(!1);return{speechPermission:u,triggerSpeech:e=>{e&&!d.value||(f.value=e,a?null==i||i(!d.value):((()=>{if(u.value&&!c.value){const e=new Lj;e.onstart=()=>{p(!0)},e.onend=()=>{p(!1)},e.onresult=e=>{var t,n,r;if(!f.value){const l=null==(r=null==(n=null==(t=e.results)?void 0:t[0])?void 0:n[0])?void 0:r.transcript;o(l)}f.value=!1},c.value=e}})(),c.value&&(d.value?(c.value.stop(),null==i||i(!1)):(c.value.start(),null==i||i(!0)))))},recording:d}}!Lj&&typeof window<"u"&&(Lj=window.SpeechRecognition||window.webkitSpeechRecognition);const Wj=l({name:"AXSender",__name:"Sender",props:K({onKeyPress:{type:Function},onFocus:null,onBlur:null,prefixCls:null,defaultValue:null,value:null,loading:{type:Boolean},placeholder:null,readOnly:{type:Boolean},submitType:{type:[String,Boolean]},disabled:{type:Boolean},onSubmit:{type:Function},onChange:{type:Function},onCancel:null,onKeyDown:{type:Function},onPaste:{type:Function},onPasteFile:{type:Function},components:null,styles:null,rootClassName:null,classNames:null,style:null,className:null,actions:{type:[Function,Boolean]},allowSpeech:null,prefix:{type:Function},footer:{type:Function},header:{type:Function},autoSize:null},{styles:()=>({}),classNames:()=>({}),submitType:"enter",actions:void 0,disabled:void 0,autoSize:()=>({maxRows:8})}),emits:["update:value"],setup(e,{expose:t,emit:o}){const r=xe(e,["prefixCls","styles","classNames","className","rootClassName","style","defaultValue","value","placeholder","readOnly","submitType","onSubmit","loading","components","onCancel","onChange","actions","onKeyPress","onKeyDown","disabled","allowSpeech","prefix","footer","header","onPaste","onPasteFile","autoSize"]);E(e,"prefixCls");const l={SendButton:Aj,ClearButton:Ij,LoadingButton:jj,SpeechButton:Dj},a=o,s=_(),{direction:u,getPrefixCls:c}=we(),d=n((()=>c("sender",e.prefixCls))),p=b(null),f=b(null),v=AP("sender"),m=n((()=>`${d.value}-input`)),[h,g,y]=Hj(d.value),w=n((()=>HE(d.value,v.value.className,e.className,e.rootClassName,g.value,y,{[`${d.value}-rtl`]:"rtl"===u.value,[`${d.value}-disabled`]:e.disabled}))),x=n((()=>`${d.value}-actions-btn`)),C=n((()=>`${d.value}-actions-list`)),S=b(e.value??e.defaultValue??""),O=e=>{S.value=e};i((()=>e.value),(()=>{O(e.value)}));const k=(t,n)=>{O(t),a("update:value",t),e.onChange&&e.onChange(t,n)},{speechPermission:P,triggerSpeech:I,recording:j}=_j((e=>{k(`${S.value} ${e}`)}),(()=>e.allowSpeech)),A=(U=e.components,Y=["input"],Z=A$.TextArea,function(e,t){for(var n=e,o=0;o<t.length;o+=1){if(null==n)return;n=n[t[o]]}return n}(U,Y)||Z),M=n((()=>VE(r,{attr:!0,aria:!0,data:!0}))),T=n((()=>({...M.value,ref:f}))),z=()=>{S.value&&e.onSubmit&&!e.loading&&e.onSubmit(S.value)},D=()=>{k("")},R=b(!1),B=()=>{R.value=!0},N=()=>{R.value=!1},F=t=>{const n="Enter"===t.key&&!R.value;switch(e.submitType){case"enter":n&&!t.shiftKey&&(t.preventDefault(),z());break;case"shiftEnter":n&&t.shiftKey&&(t.preventDefault(),z())}e.onKeyPress&&e.onKeyPress(t)},H=t=>{var n,o;const r=null==(n=t.clipboardData)?void 0:n.files;null!=r&&r.length&&e.onPasteFile&&(e.onPasteFile(r[0],r),t.preventDefault()),null==(o=e.onPaste)||o.call(e,t)},L=e=>{var t,n;e.target!==(null==(t=p.value)?void 0:t.querySelector(`.${m.value}`))&&e.preventDefault(),null==(n=f.value)||n.focus()},V=n((()=>{let t=$(CP,{class:`${C.value}-presets`},{default:()=>[e.allowSpeech&&$(Dj,"object"==typeof e.allowSpeech?{audioIcon:e.allowSpeech.audioIcon,audioDisabledIcon:e.allowSpeech.audioDisabledIcon,audioRecordingIcon:e.allowSpeech.audioRecordingIcon}:{},null),e.loading?$(jj,null,null):$(Aj,null,null)]});const n={components:l};return s.actions?t=s.actions({ori:t,info:n}):"function"==typeof e.actions?t=e.actions(t,n):(e.actions||!1===e.actions)&&(t=e.actions),t})),X=n((()=>({prefixCls:x.value,onSend:z,onSendDisabled:!S.value,onClear:D,onClearDisabled:!S.value,onCancel:e.onCancel,onCancelDisabled:!e.loading,onSpeech:()=>I(!1),onSpeechDisabled:!P.value,speechRecording:j.value,disabled:e.disabled}))),K=n((()=>{let t=null;const n={components:l};return s.footer?t=s.footer({info:n}):"function"==typeof e.footer?t=e.footer({components:l}):e.footer&&(t=e.footer),t})),q=n((()=>s.header?s.header():"function"==typeof e.header?e.header():e.header)),G=n((()=>s.prefix?s.prefix():"function"==typeof e.prefix?e.prefix():e.prefix));var U,Y,Z;return t({nativeElement:p.value,focus:e=>{var t;return null==(t=f.value)?void 0:t.focus(e)},blur:()=>{var e;return null==(e=f.value)?void 0:e.blur()}}),()=>h($("div",{ref:p,class:w.value,style:{...v.value.style,...e.style}},[q.value&&$($j,{value:{prefixCls:d.value}},{default:()=>[q.value]}),$(kj,{value:X.value},{default:()=>[$("div",{class:`${d.value}-content`,onMousedown:L},[G.value&&$("div",{class:HE(`${d.value}-prefix`,v.value.classNames.prefix,e.classNames.prefix),style:{...v.value.styles.prefix,...e.styles.prefix}},[G.value]),$(A,W(T.value,{disabled:e.disabled,style:{...v.value.styles.input,...e.styles.input},class:HE(m.value,v.value.classNames.input,e.classNames.input),autoSize:e.autoSize,value:S.value,onChange:e=>{k(e.target.value,e),I(!0)},onPressEnter:F,onCompositionstart:B,onCompositionend:N,onKeydown:e.onKeyDown,placeholder:e.placeholder,onPaste:H,bordered:!1,readOnly:e.readOnly}),null),V.value&&$("div",{class:HE(C.value,v.value.classNames.actions,e.classNames.actions),style:{...v.value.styles.actions,...e.styles.actions}},[V.value])]),K.value&&$("div",{class:HE(`${d.value}-footer`,v.value.classNames.footer,e.classNames.footer),style:{...v.value.styles.footer,...e.styles.footer}},[K.value])]})]))}}),Vj=l({name:"AXSenderHeader",inheritAttrs:!1,__name:"SenderHeader",props:K({forceRender:{type:Boolean},open:{type:Boolean},onOpenChange:{type:Function},title:null,children:null,className:null,style:null,classNames:null,styles:null,closable:{type:Boolean}},{classNames:()=>({}),styles:()=>({})}),setup(e){E(e,"classNames");const t=_(),r=o(wj,n((()=>xj.value||{}))),l=n((()=>`${r.value.prefixCls}-header`)),i=q();return()=>$(Rj,{prefixCls:r.value.prefixCls},{default:()=>{var n;return[e.open||e.forceRender?O($("div",W(i,{class:HE(l.value,e.className),style:{...e.style}}),[(!1!==e.closable||e.title)&&$("div",{class:HE(`${l.value}-header`,e.classNames.header),style:{...e.styles.header}},[$("div",{class:`${l.value}-title`},[e.title]),!1!==e.closable&&$("div",{class:`${l.value}-close`},[$(dg,{type:"text",icon:$(zd,null,null),size:"small",onClick:()=>{var t;null==(t=e.onOpenChange)||t.call(e,!e.open)}},null)])]),t.default&&$("div",{class:HE(`${l.value}-content`,e.classNames.content),style:{...e.styles.content}},[null==(n=t.default)?void 0:n.call(t)])]),[[A,e.open]]):null]}})}}),Xj=Object.assign(Wj,{Header:Vj});Xj.install=function(e){return e.component(Xj.name,Xj),e.component(Vj.name,Vj),e};const Kj=Symbol("AttachmentContext"),qj=s(),Gj=()=>o(Kj,n((()=>qj.value||{}))),Uj=l({inheritAttrs:!1,props:{value:$e()},setup:(e,{slots:t})=>((e=>{r(Kj,e),i(e,(()=>{qj.value=a(e),u(qj)}),{immediate:!0,deep:!0})})(n((()=>e.value))),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})}),Yj=l({name:"AXAttachmentsPlaceholderUploader",__name:"PlaceholderUploader",props:K({prefixCls:null,placeholder:null,upload:null,className:null,style:null},{placeholder:()=>({})}),setup(e,{expose:t}){const o=`${e.prefixCls}-placeholder`,r=n((()=>e.placeholder||{})),l=J("upload-dragger"),i=Gj(),[a,s]=MP(!1),u=()=>{s(!0)},c=e=>{e.currentTarget.contains(e.relatedTarget)||s(!1)},p=()=>{s(!1)};t({nativeElement:n((()=>{var e;return null==(e=l.value)?void 0:e.$el}))});const f=n((()=>{return d(e.placeholder)||(t=e.placeholder,Array.isArray(t)&&t.every(d))?e.placeholder:$(CP,{align:"center",justify:"center",vertical:!0,class:`${o}-inner`},{default:()=>[$(QS.Text,{class:`${o}-icon`},{default:()=>[r.value.icon]}),$(QS.Title,{class:`${o}-title`,level:5},{default:()=>[r.value.title]}),$(QS.Text,{class:`${o}-description`,type:"secondary"},{default:()=>[r.value.description]})]});var t}));return()=>$("div",{class:HE(o,{[`${o}-drag-in`]:a.value,[`${o}-disabled`]:i.value.disabled},e.className),onDragenter:u,onDragleave:c,onDrop:p,"aria-hidden":i.value.disabled,style:e.style},[$(hk.Dragger,W({showUploadList:!1},e.upload,{ref:"upload-dragger",style:{padding:0,border:0,background:"transparent"}}),{default:()=>[f.value]})])}}),Zj=l({name:"AXAttachmentsDropArea",__name:"DropArea",props:{prefixCls:null,className:null,getDropContainer:{type:Function},children:null},setup(e){const t=Gj(),[o,r]=MP(),[l,a]=MP(null);h((()=>{var t;r(null==(t=e.getDropContainer)?void 0:t.call(e))})),i((()=>X(e.getDropContainer)),(()=>{var t;const n=null==(t=e.getDropContainer)?void 0:t.call(e);o.value!==n&&r(n)})),i((()=>!!o.value),(()=>{if(o.value){const e=()=>{a(!0)},t=e=>{e.preventDefault()},n=e=>{e.relatedTarget||a(!1)},o=e=>{a(!1),e.preventDefault()};document.addEventListener("dragenter",e),document.addEventListener("dragover",t),document.addEventListener("dragleave",n),document.addEventListener("drop",o),V((()=>{document.removeEventListener("dragenter",e),document.removeEventListener("dragover",t),document.removeEventListener("dragleave",n),document.removeEventListener("drop",o)}))}}));const s=n((()=>e.getDropContainer&&o.value&&!t.value.disabled)),u=`${e.prefixCls}-drop-area`;return()=>s.value?$(T,{to:o.value},{default:()=>[$("div",{class:HE(u,e.className,{[`${u}-on-body`]:"BODY"===o.value.tagName}),style:{display:l.value?"block":"none"}},[e.children])]}):null}}),Qj=l({name:"AXAttachmentsSilentUploader",__name:"SilentUploader",props:{children:null,upload:null,rootClassName:null},setup(e,{expose:t}){const o=J("upload");return t({nativeElement:n((()=>{var e;return null==(e=o.value)?void 0:e.$el}))}),()=>$(hk,W(e.upload,{showUploadList:!1,ref:"upload"}),{default:()=>[e.children]})}}),Jj=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n},eA={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};const tA=Jj({},[["render",function(e,t){return te(),ee("svg",eA,t[0]||(t[0]=[ne("title",null,"audio",-1),ne("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[ne("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",fill:"currentColor"})],-1)]))}]]),nA={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};const oA=Jj({},[["render",function(e,t){return te(),ee("svg",nA,t[0]||(t[0]=[ne("title",null,"video",-1),ne("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[ne("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",fill:"currentColor"})],-1)]))}]]),rA=200;const lA=Math.round;function iA(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=n.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)o[e]=t(o[e]||0,n[e]||"",e);return n[3]?o[3]=n[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const aA=(e,t,n)=>0===n?e:e/100;function sA(e,t){const n=t||255;return e>n?n:e<0?0:e}class uA{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(Me(this,"isValid",!0),Me(this,"r",0),Me(this,"g",0),Me(this,"b",0),Me(this,"a",1),Me(this,"_h",void 0),Me(this,"_s",void 0),Me(this,"_l",void 0),Me(this,"_v",void 0),Me(this,"_max",void 0),Me(this,"_min",void 0),Me(this,"_brightness",void 0),e)if("string"==typeof e){let t=function(e){return n.startsWith(e)};const n=e.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):t("rgb")?this.fromRgbString(n):t("hsl")?this.fromHslString(n):(t("hsv")||t("hsb"))&&this.fromHsvString(n)}else if(e instanceof uA)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=sA(e.r),this.g=sA(e.g),this.b=sA(e.b),this.a="number"==typeof e.a?sA(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();this._h=0===e?0:lA(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()-e/100;return o<0&&(o=0),this._c({h:t,s:n,l:o,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()+e/100;return o>1&&(o=1),this._c({h:t,s:n,l:o,a:this.a})}mix(e,t=50){const n=this._c(e),o=t/100,r=e=>(n[e]-this[e])*o+this[e],l={r:lA(r("r")),g:lA(r("g")),b:lA(r("b")),a:lA(100*r("a"))/100};return this._c(l)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),o=e=>lA((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const o=(this.b||0).toString(16);if(e+=2===o.length?o:"0"+o,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=lA(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=lA(100*this.getSaturation()),n=lA(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const o=this.clone();return o[e]=sA(t,n),o}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:o}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof o?o:1,t<=0){const e=lA(255*n);this.r=e,this.g=e,this.b=e}let r=0,l=0,i=0;const a=e/60,s=(1-Math.abs(2*n-1))*t,u=s*(1-Math.abs(a%2-1));a>=0&&a<1?(r=s,l=u):a>=1&&a<2?(r=u,l=s):a>=2&&a<3?(l=s,i=u):a>=3&&a<4?(l=u,i=s):a>=4&&a<5?(r=u,i=s):a>=5&&a<6&&(r=s,i=u);const c=n-s/2;this.r=lA(255*(r+c)),this.g=lA(255*(l+c)),this.b=lA(255*(i+c))}fromHsv({h:e,s:t,v:n,a:o}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof o?o:1;const r=lA(255*n);if(this.r=r,this.g=r,this.b=r,t<=0)return;const l=e/60,i=Math.floor(l),a=l-i,s=lA(n*(1-t)*255),u=lA(n*(1-t*a)*255),c=lA(n*(1-t*(1-a))*255);switch(i){case 0:this.g=c,this.b=s;break;case 1:this.r=u,this.b=s;break;case 2:this.r=s,this.b=c;break;case 3:this.r=s,this.g=u;break;case 4:this.r=c,this.g=s;break;default:this.g=s,this.b=u}}fromHsvString(e){const t=iA(e,aA);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=iA(e,aA);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=iA(e,((e,t)=>t.includes("%")?lA(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const cA=e=>{const{componentCls:t,antCls:n,calc:o}=e,r=`${t}-list-card`,l=o(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[r]:{borderRadius:e.borderRadius,position:"relative",background:e.colorFillContent,borderWidth:e.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${r}-name,${r}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${r}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${r}-ellipsis-suffix`]:{flex:"none"},"&-type-overview":{padding:o(e.paddingSM).sub(e.lineWidth).equal(),paddingInlineStart:o(e.padding).add(e.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:e.paddingXS,alignItems:"flex-start",width:236,[`${r}-icon`]:{fontSize:o(e.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:o(e.paddingXXS).mul(1.5).equal(),flex:"none"},[`${r}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${r}-desc`]:{color:e.colorTextTertiary}},"&-type-preview":{width:l,height:l,lineHeight:1,display:"flex",alignItems:"center",[`&:not(${r}-status-error)`]:{border:0},[`${n}-image`]:{width:"100%",height:"100%",borderRadius:"inherit",img:{height:"100%",objectFit:"cover",borderRadius:"inherit"}},[`${r}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${e.opacityLoading})`,borderRadius:"inherit"},[`&${r}-status-error`]:{[`img, ${r}-img-mask`]:{borderRadius:o(e.borderRadius).sub(e.lineWidth).equal()},[`${r}-desc`]:{paddingInline:e.paddingXXS}},[`${r}-progress`]:{}},[`${r}-remove`]:{position:"absolute",top:0,insetInlineEnd:0,border:0,padding:e.paddingXXS,background:"transparent",lineHeight:1,transform:"translate(50%, -50%)",fontSize:e.fontSize,cursor:"pointer",opacity:e.opacityLoading,display:"none","&:dir(rtl)":{transform:"translate(-50%, -50%)"},"&:hover":{opacity:1},"&:active":{opacity:e.opacityLoading}},[`&:hover ${r}-remove`]:{display:"block"},"&-status-error":{borderColor:e.colorError,[`${r}-desc`]:{color:e.colorError}},"&-motion":{overflow:"hidden",transition:["opacity","width","margin","padding"].map((t=>`${t} ${e.motionDurationSlow}`)).join(","),[`${r}-remove`]:{display:"none !important"},"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:o(e.paddingSM).mul(-1).equal()}}}}},dA={"&, *":{boxSizing:"border-box"}},pA=e=>{const{componentCls:t,calc:n,antCls:o}=e,r=`${t}-drop-area`,l=`${t}-placeholder`;return{[r]:{position:"absolute",inset:0,zIndex:e.zIndexPopupBase,...dA,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${l}-inner`]:{display:"none"}},[l]:{padding:0}},"&":{[l]:{height:"100%",borderRadius:e.borderRadius,borderWidth:e.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:e.padding,position:"relative",backdropFilter:"blur(10px)",...dA,[`${o}-upload-wrapper ${o}-upload${o}-upload-btn`]:{padding:0},[`&${l}-drag-in`]:{borderColor:e.colorPrimaryHover},[`&${l}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${l}-inner`]:{gap:n(e.paddingXXS).div(2).equal()},[`${l}-icon`]:{fontSize:e.fontSizeHeading2,lineHeight:1},[`${l}-title${l}-title`]:{margin:0,fontSize:e.fontSize,lineHeight:e.lineHeight},[`${l}-description`]:{}}}}},fA=e=>{const{componentCls:t,calc:n}=e,o=`${t}-list`,r=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[t]:{position:"relative",width:"100%",...dA,[o]:{display:"flex",flexWrap:"wrap",gap:e.paddingSM,fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.colorText,paddingBlock:e.paddingSM,paddingInline:e.padding,width:"100%",background:e.colorBgContainer,scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},"&-overflow-scrollX, &-overflow-scrollY":{"&:before, &:after":{content:'""',position:"absolute",opacity:0,transition:`opacity ${e.motionDurationSlow}`,zIndex:1}},"&-overflow-ping-start:before":{opacity:1},"&-overflow-ping-end:after":{opacity:1},"&-overflow-scrollX":{overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap","&:before, &:after":{insetBlock:0,width:8},"&:before":{insetInlineStart:0,background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetInlineEnd:0,background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:dir(rtl)":{"&:before":{background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"}}},"&-overflow-scrollY":{overflowX:"hidden",overflowY:"auto",maxHeight:n(r).mul(3).equal(),"&:before, &:after":{insetInline:0,height:8},"&:before":{insetBlockStart:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetBlockEnd:0,background:"linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"}},"&-upload-btn":{width:r,height:r,fontSize:e.fontSizeHeading2,color:"#999"},"&-prev-btn, &-next-btn":{position:"absolute",top:"50%",transform:"translateY(-50%)",boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none"},"&-prev-btn":{left:{_skip_check_:!0,value:e.padding}},"&-next-btn":{right:{_skip_check_:!0,value:e.padding}},"&:dir(ltr)":{[`&${o}-overflow-ping-start ${o}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${o}-overflow-ping-end ${o}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${o}-overflow-ping-end ${o}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${o}-overflow-ping-start ${o}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},vA=OE("Attachments",(e=>{const t=vE(e,{});return[pA(t),fA(t),cA(t)]}),(e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new uA(t).setA(.85).toRgbString()}})),mA="#8c8c8c",hA=l({name:"AXAttachmentsFileListCard",__name:"FileListCard",props:{prefixCls:null,item:null,onRemove:{type:Function},className:null,style:null,imageProps:null,icon:null,type:null},setup(e,{expose:t}){E(e,"prefixCls");const o=["png","jpg","jpeg","gif","bmp","webp","svg"],r=[{key:"default",icon:$(nP,null,null),color:mA,ext:[]},{key:"excel",icon:$(Rk,null,null),color:"#22b35e",ext:["xlsx","xls"]},{key:"image",icon:$(Hk,null,null),color:mA,ext:o},{key:"markdown",icon:$(Vk,null,null),color:mA,ext:["md","mdx"]},{key:"pdf",icon:$(Gk,null,null),color:"#ff4d4f",ext:["pdf"]},{key:"ppt",icon:$(Qk,null,null),color:"#ff6e31",ext:["ppt","pptx"]},{key:"word",icon:$(iP,null,null),color:"#1677ff",ext:["doc","docx"]},{key:"zip",icon:$(cP,null,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{key:"video",icon:$(oA,null,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{key:"audio",icon:$(tA,null,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function l(e,t){return t.some((t=>e.toLowerCase()===`.${t}`))}const a=Gj(),s=n((()=>a.value.disabled)),u=n((()=>e.item.name)),d=n((()=>e.item.size)),p=n((()=>e.item.percent)),f=n((()=>e.item.status||"done")),v=n((()=>e.item.description)),{getPrefixCls:m}=we(),h=n((()=>m("attachment",e.prefixCls))),g=`${h.value}-list-card`,[y,b,w]=vA(h),x=J("file-list-card-container"),C=n((()=>{const e=u.value||"",t=e.match(/^(.*)\.[^.]+$/);return{namePrefix:t?t[1]:e,nameSuffix:t?e.slice(t[1].length):""}})),S=n((()=>l(C.value.nameSuffix,o))),O=n((()=>v.value?v.value:"uploading"===f.value?`${p.value||0}%`:"error"===f.value?e.item.response||" ":d.value?function(e){let t=e;const n=["B","KB","MB","GB","TB","PB","EB"];let o=0;for(;t>=1024&&o<n.length-1;)t/=1024,o++;return`${t.toFixed(0)} ${n[o]}`}(d.value):" ")),k=n((()=>{if(e.icon){if("string"!=typeof e.icon)return{icon:e.icon,color:void 0};{const t=r.find((t=>t.key===e.icon));if(t)return{icon:t.icon,color:t.color}}}for(const{ext:e,icon:t,color:n}of r)if(l(C.value.nameSuffix,e))return{icon:t,iconColor:n};return{icon:$(nP,{key:"defaultIcon"},null),iconColor:mA}})),[P,I]=MP();i((()=>e.item.originFileObj),(()=>{if(e.item.originFileObj){let t=!0;(function(e){return new Promise((t=>{if(!e||!e.type||!(e=>0===e.indexOf("image/"))(e.type))return void t("");const n=new Image;if(n.onload=()=>{const{width:e,height:o}=n,r=e/o,l=r>1?rA:rA*r,i=r>1?rA/r:rA,a=document.createElement("canvas");a.width=l,a.height=i,a.style.cssText=`position: fixed; left: 0; top: 0; width: ${l}px; height: ${i}px; z-index: 9999; display: none;`,document.body.appendChild(a),a.getContext("2d").drawImage(n,0,0,l,i);const s=a.toDataURL();document.body.removeChild(a),window.URL.revokeObjectURL(n.src),t(s)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(n.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)}))})(e.item.originFileObj).then((e=>{t&&I(e)})),V((()=>{t=!1}))}I(void 0)}),{immediate:!0});const j=n((()=>e.item.thumbUrl||e.item.url||P.value)),A=n((()=>"image"===e.type||"file"!==e.type&&S.value&&(e.item.originFileObj||j.value))),M=n((()=>A.value?$(c,null,[j.value&&$(lS,W(e.imageProps,{alt:"preview",src:j.value}),null),"done"!==f.value&&$("div",{class:`${g}-img-mask`},["uploading"===f.value&&void 0!==p.value&&$(MS,{percent:p.value,prefixCls:g},null),"error"===f.value&&$("div",{class:`${g}-desc`},[$("div",{class:`${g}-ellipsis-prefix`},[O.value])])])]):$(c,null,[$("div",{class:`${g}-icon`,style:{color:k.value.iconColor}},[k.value.icon]),$("div",{class:`${g}-content`},[$("div",{class:`${g}-name`},[$("div",{class:`${g}-ellipsis-prefix`},[C.value.namePrefix??" "]),$("div",{class:`${g}-ellipsis-suffix`},[C.value.nameSuffix])]),$("div",{class:`${g}-desc`},[$("div",{class:`${g}-ellipsis-prefix`},[O.value])])])])));return t({nativeElement:x}),()=>y($("div",{class:HE(g,{[`${g}-status-${f.value}`]:f.value,[`${g}-type-preview`]:A.value,[`${g}-type-overview`]:!A.value},e.className,b.value,w),style:e.style,ref:"file-list-card-container"},[M.value,!s.value&&e.onRemove&&$("button",{type:"button",class:`${g}-remove`,onClick:()=>{e.onRemove(e.item)}},[$(Nd,null,null)])]))}}),gA=l({name:"AXAttachmentsFileList",__name:"FileList",props:{prefixCls:null,items:null,onRemove:{type:Function},overflow:null,upload:null,imageProps:null,listClassName:null,listStyle:null,itemClassName:null,itemStyle:null},setup(e){const t=n((()=>`${e.prefixCls}-list`)),o=J("file-list-container"),[r,l]=MP(!1),a=Gj();w((()=>{l(!0),V((()=>{l(!1)}))}));const[s,u]=MP(!1),[d,p]=MP(!1),f=()=>{const t=o.value;t&&("scrollX"===e.overflow?(u(Math.abs(t.scrollLeft)>=1),p(t.scrollWidth-t.clientWidth-Math.abs(t.scrollLeft)>=1)):"scrollY"===e.overflow&&(u(0!==t.scrollTop),p(t.scrollHeight-t.clientHeight!==t.scrollTop)))};i([()=>e.overflow,()=>e.items.length],(()=>{I((()=>{f()}))}),{immediate:!0});const v=e=>{const t=o.value;t&&t.scrollTo({left:t.scrollLeft+e*t.clientWidth,behavior:"smooth"})},m=()=>{v(-1)},h=()=>{v(1)};return()=>$("div",{class:HE(t.value,{[`${t.value}-overflow-${e.overflow}`]:e.overflow,[`${t.value}-overflow-ping-start`]:s.value,[`${t.value}-overflow-ping-end`]:d.value},e.listClassName),ref:"file-list-container",onScroll:f,style:e.listStyle},[e.items.map((t=>$(hA,{key:t.uid,prefixCls:e.prefixCls,item:t,onRemove:e.onRemove,className:HE(e.itemClassName),imageProps:e.imageProps,style:{...e.itemStyle}},null))),!a.value.disabled&&$(Qj,{upload:e.upload,children:$(dg,{class:`${t.value}-upload-btn`,type:"dashed"},{default:()=>[$(Vy,{class:`${t.value}-upload-btn-icon`},null)]})},null),"scrollX"===e.overflow&&$(c,null,[$(dg,{size:"small",shape:"circle",class:`${t.value}-prev-btn`,icon:$(xb,null,null),onClick:m},null),$(dg,{size:"small",shape:"circle",class:`${t.value}-next-btn`,icon:$(Pg,null,null),onClick:h},null)])])}}),yA=l({name:"AXAttachments",__name:"Attachments",props:K({capture:null,type:null,name:null,defaultFileList:null,action:null,directory:null,data:null,method:null,headers:null,showUploadList:null,multiple:null,accept:null,beforeUpload:null,onChange:{type:Function},"onUpdate:fileList":null,onDrop:null,listType:null,onPreview:null,onDownload:null,onReject:null,onRemove:null,remove:null,supportServerRender:null,disabled:{type:Boolean},prefixCls:null,customRequest:null,withCredentials:null,openFileDialogOnClick:null,locale:null,id:null,previewFile:null,transformFile:null,iconRender:null,isImageUrl:null,progress:null,itemRender:null,maxCount:null,height:null,removeIcon:null,downloadIcon:null,previewIcon:null,rootClassName:null,rootStyle:null,style:null,className:null,classNames:null,styles:null,children:null,placeholder:{type:Function},getDropContainer:{type:Function},items:null,overflow:null,imageProps:null},{items:()=>[],classNames:()=>({}),styles:()=>({})}),setup(e,{expose:t}){const o=xe(e,["prefixCls","rootClassName","rootStyle","className","style","items","children","getDropContainer","placeholder","onChange","onRemove","overflow","imageProps","disabled","classNames","styles"]);E(e,"prefixCls");const r=_(),{getPrefixCls:l,direction:a}=we(),s=l("attachment",e.prefixCls),u=AP("attachments"),d=n((()=>u.value.classNames)),p=n((()=>u.value.styles)),f=J("attachments-container"),v=J("placeholder-uploader"),[m,h,g]=vA(s),y=n((()=>HE(h.value,g))),[b,w]=MP(e.items);i((()=>e.items),(()=>{w(e.items)}));const x=t=>{var n;w(t.fileList),null==(n=e.onChange)||n.call(e,t)},C=n((()=>({...o,fileList:b.value,onChange:x}))),S=t=>Promise.resolve("function"==typeof e.onRemove?e.onRemove(t):e.onRemove).then((e=>{if(!1===e)return;const n=b.value.filter((e=>e.uid!==t.uid));x({file:{...t,status:"removed"},fileList:n})})),O=(t,n)=>{const o=r.placeholder?r.placeholder({type:t}):"function"==typeof e.placeholder?e.placeholder(t):e.placeholder;return $(Yj,{placeholder:o,upload:C.value,prefixCls:s,className:HE(d.value.placeholder,e.classNames.placeholder),style:{...p.value.placeholder,...e.styles.placeholder,...null==n?void 0:n.style},ref:"inline"===t?"placeholder-uploader":void 0},null)},k=n((()=>b.value.length>0));return t({nativeElement:f.value,upload:e=>{var t,n,o;const r=null==(o=null==(t=v.value)?void 0:(n=t.nativeElement).querySelector)?void 0:o.call(n,'input[type="file"]');if(!r)return;const l=new DataTransfer;try{if("length"in e&&e.length>=1)for(let t=0;t<e.length;t++)l.items.add(e[t]);else l.items.add(e);r.files=l.files,r.dispatchEvent(new Event("change",{bubbles:!0}))}catch(e){console.error("upload failed",e)}}}),()=>m($(Uj,{value:{disabled:e.disabled}},{default:()=>[e.children?$(c,null,[$(Qj,{upload:C.value,rootClassName:e.rootClassName,ref:"attachments-upload",children:e.children},null),$(Zj,{getDropContainer:e.getDropContainer,prefixCls:s,className:HE(y.value,e.rootClassName),children:O("drop")},null)]):$("div",{class:HE(s,y.value,{[`${s}-rtl`]:"rtl"===a.value},e.className,e.rootClassName),style:{...e.rootStyle,...e.style},dir:a.value||"ltr",ref:"attachments-container"},[$(gA,{prefixCls:s,items:b.value,onRemove:S,overflow:e.overflow,upload:C.value,listClassName:HE(d.value.list,e.classNames.list),listStyle:{...p.value.list,...e.styles.list,...!k.value&&{display:"none"}},itemClassName:HE(d.value.item,e.classNames.item),itemStyle:{...p.value.item,...e.styles.item},imageProps:e.imageProps},null),O("inline",k.value?{style:{display:"none"}}:{}),$(Zj,{getDropContainer:e.getDropContainer||(()=>f.value),prefixCls:s,className:y.value,children:O("drop")},null)])]}))}}),bA=Object.assign(yA,{FileCard:hA});bA.install=function(e){return e.component(bA.name,bA),e.component(hA.name,hA),e};var wA=(e=>(e.PENDING="pending",e.SUCCESS="success",e.ERROR="error",e))(wA||{});const xA=e=>{const{componentCls:t}=e,n=`${t}-item`,o={[wA.PENDING]:e.colorPrimaryText,[wA.SUCCESS]:e.colorSuccessText,[wA.ERROR]:e.colorErrorText},r=Object.keys(o);return r.reduce(((e,t)=>{const l=o[t];return r.forEach((r=>{const i=t===r?{}:{backgroundColor:"none !important",backgroundImage:`linear-gradient(${l}, ${o[r]})`};e[`& ${n}-${t}-${r}`]={[`& ${n}-icon, & > *::before`]:{backgroundColor:`${l} !important`},"& > :last-child::before":i}})),e}),{})},$A=e=>{const{calc:t,componentCls:n}=e,o=`${n}-item`,r={content:'""',width:t(e.lineWidth).mul(2).equal(),display:"block",position:"absolute",insetInlineEnd:"none",backgroundColor:e.colorTextPlaceholder};return{"& > :last-child > :last-child":{"&::before":{display:"none !important"},[`&${o}-footer`]:{"&::before":{display:"block !important",bottom:0}}},[`& > ${o}`]:{[`& ${o}-header, & ${o}-content, & ${o}-footer`]:{position:"relative","&::before":{bottom:t(e.itemGap).mul(-1).equal()}},[`& ${o}-header, & ${o}-content`]:{marginInlineStart:t(e.itemSize).mul(-1).equal(),"&::before":{...r,insetInlineStart:t(e.itemSize).div(2).sub(e.lineWidth).equal()}},[`& ${o}-header::before`]:{top:e.itemSize,bottom:t(e.itemGap).mul(-2).equal()},[`& ${o}-content::before`]:{top:"100%"},[`& ${o}-footer::before`]:{...r,top:0,insetInlineStart:t(e.itemSize).div(-2).sub(e.lineWidth).equal()}}}},CA=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[n]:{display:"flex",flexDirection:"column",[`& ${n}-collapsible`]:{cursor:"pointer"},[`& ${n}-header`]:{display:"flex",marginBottom:e.itemGap,gap:e.itemGap,alignItems:"flex-start",[`& ${n}-icon`]:{height:e.itemSize,width:e.itemSize,fontSize:e.itemFontSize,display:"flex",justifyContent:"center",alignItems:"center"},[`& ${n}-extra`]:{height:e.itemSize,maxHeight:e.itemSize},[`& ${n}-header-box`]:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",[`& ${n}-title`]:{height:e.itemSize,lineHeight:`${CI(e.itemSize)}`,maxHeight:e.itemSize,fontSize:e.itemFontSize,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",[`& ${n}-collapse-icon`]:{marginInlineEnd:e.marginXS}},[`& ${n}-desc`]:{fontSize:e.itemFontSize,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},[`& ${n}-content`]:{[`& ${n}-content-hidden`]:{display:"none"},[`& ${n}-content-box`]:{padding:e.itemGap,display:"inline-block",maxWidth:`calc(100% - ${e.itemSize})`,borderRadius:e.borderRadiusLG,backgroundColor:e.colorBgContainer,border:`${CI(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}},[`& ${n}-footer`]:{marginTop:e.itemGap,display:"inline-flex"}}}},SA=(e,t="middle")=>{const{componentCls:n}=e,o={large:{itemSize:e.itemSizeLG,itemGap:e.itemGapLG,itemFontSize:e.itemFontSizeLG},middle:{itemSize:e.itemSize,itemGap:e.itemGap,itemFontSize:e.itemFontSize},small:{itemSize:e.itemSizeSM,itemGap:e.itemGapSM,itemFontSize:e.itemFontSizeSM}}[t];return{[`&${n}-${t}`]:{paddingInlineStart:o.itemSize,gap:o.itemGap,...CA({...e,...o}),...$A({...e,...o})}}},OA=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",...xA(e),...SA(e),...SA(e,"large"),...SA(e,"small"),[`&${t}-rtl`]:{direction:"rtl"}}}},kA=OE("ThoughtChain",(e=>{const t=vE(e,{itemFontSizeSM:e.fontSizeSM,itemSizeSM:e.calc(e.controlHeightXS).add(e.controlHeightSM).div(2).equal(),itemGapSM:e.marginSM,itemFontSize:e.fontSize,itemSize:e.calc(e.controlHeightSM).add(e.controlHeight).div(2).equal(),itemGap:e.margin,itemFontSizeLG:e.fontSizeLG,itemSizeLG:e.calc(e.controlHeight).add(e.controlHeightLG).div(2).equal(),itemGapLG:e.marginLG});return[OA(t),Bj(t)]})),PA=Symbol("ThoughtChainNodeContext"),IA=s(),EA=l({props:{value:$e()},setup:(e,{slots:t})=>((e=>{r(PA,e),i(e,(()=>{IA.value=a(e),u(IA)}),{immediate:!0,deep:!0})})(n((()=>e.value))),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})}),jA=l({name:"AXThoughtChainNode",__name:"item",props:K({info:null,nextStatus:null,onClick:{type:Function}},{info:()=>({})}),setup(e){const t=xe(e,["info","nextStatus","onClick"]),r=n((()=>VE(t,{attr:!0,aria:!0,data:!0}))),l=o(PA,n((()=>IA.value||{}))),i=n((()=>l.value.prefixCls)),a=n((()=>l.value.enableCollapse)),s=n((()=>l.value.expandedKeys)),u=n((()=>l.value.direction)),c=n((()=>l.value.classNames)),d=n((()=>l.value.styles)),p=oe(),f=n((()=>e.info.key??p)),v=n((()=>e.info.icon)),m=n((()=>e.info.title)),h=n((()=>e.info.extra)),g=n((()=>e.info.content)),y=n((()=>e.info.footer)),b=n((()=>e.info.status)),w=n((()=>e.info.description)),x=n((()=>{const t=e.info.tooltip??!0,n="rtl"===u.value?"topRight":"topLeft",o={title:m.value,placement:n},r={title:w.value,placement:n};return"boolean"==typeof t?{titleConfig:o,descriptionConfig:r}:{titleConfig:{...o,...t.titleConfig?t.titleConfig:{}},descriptionConfig:{...r,...t.descriptionConfig?t.descriptionConfig:{}}}})),C=n((()=>!e.info.tooltip)),S=n((()=>`${i.value}-item`)),k=()=>{var t;return null==(t=e.onClick)?void 0:t.call(e,f.value)},P=n((()=>{var e;return null==(e=s.value)?void 0:e.includes(f.value)})),I=n((()=>!a.value||P.value));return()=>$("div",W(r.value,{class:HE(S.value,{[`${S.value}-${b.value}${e.nextStatus?`-${e.nextStatus}`:""}`]:b.value},t.class),style:t.style}),[$("div",{class:HE(`${S.value}-header`,c.value.itemHeader),style:d.value.itemHeader,onClick:k},[$(_m,{icon:v.value,class:`${S.value}-icon`},null),$("div",{class:HE(`${S.value}-header-box`,{[`${S.value}-collapsible`]:a.value&&g.value})},[$(QS.Text,{strong:!0,class:`${S.value}-title`},{default:()=>[a.value&&g.value&&("rtl"===u.value?$(xb,{class:`${S.value}-collapse-icon`,rotate:P.value?-90:0},null):$(Pg,{class:`${S.value}-collapse-icon`,rotate:P.value?90:0},null)),C.value?m.value:$(uh,x.value.titleConfig,{default:()=>[m.value]})]}),w.value&&$(QS.Text,{class:`${S.value}-desc`,type:"secondary"},{default:()=>[C.value?w.value:$(uh,x.value.descriptionConfig,{default:()=>[w.value]})]})]),h.value&&$("div",{class:`${S.value}-extra`},[h.value])]),$(Rj,{prefixCls:i.value},{default:()=>[g.value&&O($("div",{class:HE(`${S.value}-content`)},[$("div",{class:HE(`${S.value}-content-box`,c.value.itemContent),style:d.value.itemContent},[g.value])]),[[A,I.value]])]}),y.value&&$("div",{class:HE(`${S.value}-footer`,c.value.itemFooter),style:d.value.itemFooter},[y.value])])}}),AA=l({name:"AXThoughtChain",__name:"ThoughtChain",props:K({items:null,collapsible:{type:Boolean},size:null,styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({}),size:"middle"}),setup(e){const t=xe(e,["prefixCls","rootClassName","class","items","collapsible","styles","style","classNames","size"]);E(e,"class"),E(e,"prefixCls");const o=n((()=>VE(t,{attr:!0,aria:!0,data:!0}))),{getPrefixCls:r,direction:l}=we(),a=n((()=>r())),s=n((()=>r("thought-chain",e.prefixCls))),u=AP("thoughtChain"),[c,d,p]=(e=>{const t=n((()=>{const t=X(e);let n={expandedKeys:[],onExpand:()=>{}};return t?("object"==typeof t&&(n={...n,...t}),{enableCollapse:!0,customizeExpandedKeys:n.expandedKeys,customizeOnExpand:n.onExpand}):{enableCollapse:!1,customizeExpandedKeys:n.expandedKeys,customizeOnExpand:n.onExpand}})),[o,r]=MP(t.value.customizeExpandedKeys);return i(t,(e=>{r(e.customizeExpandedKeys)}),{deep:1}),[n((()=>t.value.enableCollapse)),o,n=>{var l,i;if(!t.value.enableCollapse)return;const a=o.value.includes(n)?o.value.filter((e=>e!==n)):[...o.value,n];null==(i=(l=t.value).customizeOnExpand)||i.call(l,a),"object"!=typeof X(e)&&r(a)}]})((()=>e.collapsible),s.value,a.value),[f,v,m]=kA(s),h=n((()=>HE(e.class,e.rootClassName,s.value,u.value.className,v.value,m,{[`${s.value}-rtl`]:"rtl"===l.value},`${s.value}-${e.size}`)));return()=>f($("div",W(o.value,{class:h.value,style:{..."object"==typeof u.value.style?u.value.style:{},..."object"==typeof e.style?e.style:{}}}),[$(EA,{value:{prefixCls:s.value,enableCollapse:c.value,expandedKeys:d.value,direction:l.value,classNames:{itemHeader:HE(u.value.classNames.itemHeader,e.classNames.itemHeader),itemContent:HE(u.value.classNames.itemContent,e.classNames.itemContent),itemFooter:HE(u.value.classNames.itemFooter,e.classNames.itemFooter)},styles:{itemHeader:{...u.value.styles.itemHeader,...e.styles.itemHeader},itemContent:{...u.value.styles.itemContent,...e.styles.itemContent},itemFooter:{...u.value.styles.itemFooter,...e.styles.itemFooter}}}},{default:()=>{var t;return[null==(t=e.items)?void 0:t.map(((t,n)=>{var o;return $(jA,{key:t.key||`key_${n}`,class:HE(u.value.classNames.item,e.classNames.item),style:{...u.value.styles.item,...e.styles.item},info:{...t,icon:t.icon||n+1},onClick:p,nextStatus:(null==(o=e.items[n+1])?void 0:o.status)||t.status},null)}))]}})]))}}),MA=Object.freeze(Object.defineProperty({__proto__:null,Attachments:bA,Bubble:KE,BubbleList:XE,Conversations:tj,Prompts:uj,Sender:Xj,Suggestion:bj,ThoughtChain:AA,Welcome:lj,XProvider:EP,defaultPrefixCls:"ant",useXProviderContext:we},Symbol.toStringTag,{value:"Module"})),TA=e=>""!==(e??"").trim();function zA(e){const{readableStream:t,transformStream:n}=e;if(!(t instanceof ReadableStream))throw new Error("The options.readableStream must be an instance of ReadableStream.");const o=new TextDecoderStream,r=n?t.pipeThrough(o).pipeThrough(n):t.pipeThrough(o).pipeThrough(function(){let e="";return new TransformStream({transform(t,n){e+=t;const o=e.split("\n\n");o.slice(0,-1).forEach((e=>{TA(e)&&n.enqueue(e)})),e=o[o.length-1]},flush(t){TA(e)&&t.enqueue(e)}})}()).pipeThrough(new TransformStream({transform(e,t){const n=e.split("\n").reduce(((e,t)=>{const n=t.indexOf(":");if(-1===n)throw new Error('The key-value separator ":" is not found in the sse line chunk!');const o=t.slice(0,n);if(!TA(o))return e;const r=t.slice(n+1);return{...e,[o]:r}}),{});0!==Object.keys(n).length&&t.enqueue(n)}}));return r[Symbol.asyncIterator]=async function*(){const e=this.getReader();for(;;){const{done:t,value:n}=await e.read();if(t)break;n&&(yield n)}},r}const DA=async(e,t={})=>{const{fetch:n=globalThis.fetch,middlewares:o={},...r}=t;if("function"!=typeof n)throw new Error("The options.fetch must be a typeof fetch function!");let l=[e,r];"function"==typeof o.onRequest&&(l=await o.onRequest(...l));let i=await n(...l);if("function"==typeof o.onResponse){const e=await o.onResponse(i);if(!(e instanceof Response))throw new Error("The options.onResponse must return a Response instance!");i=e}if(!i.ok)throw new Error(`Fetch failed with status ${i.status}`);if(!i.body)throw new Error("The response body is empty.");return i};class RA{constructor(e){this.create=async(e,t,n)=>{var o,r;const l=new AbortController,i={method:"POST",body:JSON.stringify({model:this.model,...e}),headers:this.defaultHeaders,signal:l.signal};null==(o=null==t?void 0:t.onStream)||o.call(t,l);try{const e=await DA(this.baseURL,{fetch:this.customOptions.fetch,...i});if(n)return void await this.customResponseHandler(e,t,n);const o=e.headers.get("content-type")||"";switch(o.split(";")[0].trim()){case"text/event-stream":await this.sseResponseHandler(e,t);break;case"application/json":await this.jsonResponseHandler(e,t);break;default:throw new Error(`The response content-type: ${o} is not support!`)}}catch(e){const n=e instanceof Error?e:new Error("Unknown error!");throw null==(r=null==t?void 0:t.onError)||r.call(t,n),n}},this.customResponseHandler=async(e,t,n)=>{var o,r;const l=[];for await(const r of zA({readableStream:e.body,transformStream:n}))l.push(r),null==(o=null==t?void 0:t.onUpdate)||o.call(t,r);null==(r=null==t?void 0:t.onSuccess)||r.call(t,l)},this.sseResponseHandler=async(e,t)=>{var n,o;const r=[];for await(const o of zA({readableStream:e.body}))r.push(o),null==(n=null==t?void 0:t.onUpdate)||n.call(t,o);null==(o=null==t?void 0:t.onSuccess)||o.call(t,r)},this.jsonResponseHandler=async(e,t)=>{var n,o;const r=await e.json();null==(n=null==t?void 0:t.onUpdate)||n.call(t,r),null==(o=null==t?void 0:t.onSuccess)||o.call(t,[r])};const{baseURL:t,model:n,dangerouslyApiKey:o,...r}=e;this.baseURL=e.baseURL,this.model=e.model,this.defaultHeaders={"Content-Type":"application/json",...e.dangerouslyApiKey&&{Authorization:e.dangerouslyApiKey}},this.customOptions=r}static init(e){if(!e.baseURL||"string"!=typeof e.baseURL)throw new Error("The baseURL is not valid!");return new RA(e)}}const BA=e=>n((()=>RA.init(X(e))));let NA=0;class FA{constructor(e){this.requestingMap=b({}),this.request=(e,t,n)=>{const{request:o}=this.config,{onUpdate:r,onSuccess:l,onError:i,onStream:a}=t,s=NA;NA+=1,this.requestingMap.value[s]=!0,null==o||o(e,{onStream:e=>{this.requestingMap.value[s]&&(null==a||a(e))},onUpdate:e=>{this.requestingMap.value[s]&&r(e)},onSuccess:e=>{this.requestingMap.value[s]&&(l(e),this.finishRequest(s))},onError:e=>{this.requestingMap.value[s]&&(i(e),this.finishRequest(s))}},n)},this.config=e}finishRequest(e){delete this.requestingMap.value[e]}isRequesting(){return Object.keys(this.requestingMap.value).length>0}}function HA(e){return[n((()=>{const{request:t,...n}=X(e);return new FA({request:t||BA({baseURL:n.baseURL,model:n.model,dangerouslyApiKey:n.dangerouslyApiKey}).value.create,...n})}))]}function LA(e){const{defaultMessages:t,agent:o,requestFallback:r,requestPlaceholder:l,parser:i,transformMessage:a,transformStream:s,resolveAbortController:u}=e,c=b(0),d=n((()=>(t||[]).map(((e,t)=>({id:`default_${t}`,status:"local",...e}))))),[p,f]=function(e,t){const n=b(e);return[n,function(e){const o="function"==typeof e?e(n.value):e;o!==n.value&&t(o,n.value),n.value=o}]}(d.value,(()=>{})),v=(e,t)=>{const n={id:`msg_${c.value}`,message:e,status:t};return c.value+=1,n},m=n((()=>{const e=[];return p.value.forEach((t=>{const n=function(e){return Array.isArray(e)?e:[e]}(i?i(t.message):t.message);n.forEach(((o,r)=>{let l=t.id;n.length>1&&(l=`${l}_${r}`),e.push({id:l,message:o,status:t.status})}))})),e})),h=e=>e.filter((e=>"loading"!==e.status&&"error"!==e.status)).map((e=>e.message)),g=()=>h(p.value),y=e=>{const{chunk:t,chunks:n,originMessage:o}=e;if("function"==typeof a)return a(e);if(t)return t;if(Array.isArray(n)){const e=(null==n?void 0:n.length)>0?null==n?void 0:n[(null==n?void 0:n.length)-1]:void 0;return o||e}return n};return{onRequest:LE((e=>{if(!o)throw new Error("The agent parameter is required when using the onRequest method in an agent generated by useXAgent.");let t,n=null,i={};if(e&&"object"==typeof e&&"message"in e){const{message:n,...o}=e;t=n,i=o}else t=e;f((e=>{let o=[...e,v(t,"local")];if(l){let e;e="function"==typeof l?l(t,{messages:h(o)}):l;const r=v(e,"loading");n=r.id,o=[...o,r]}return o}));let a=null;const c=(e,t,o)=>{let r=p.value.find((e=>e.id===a));if(r)f((n=>n.map((n=>{if(n.id===a){const r=y({originMessage:n.message,chunk:t,chunks:o,status:e});return{...n,message:r,status:e}}return n}))));else{const l=y({chunk:t,status:e,chunks:o});r=v(l,e),f((e=>[...e.filter((e=>e.id!==n)),r])),a=r.id}return r};o.request({message:t,messages:g(),...i},{onUpdate:e=>{c("loading",e,[])},onSuccess:e=>{c("success",void 0,e)},onError:async e=>{if(r){let o;o="function"==typeof r?await r(t,{error:e,messages:g()}):r,f((e=>[...e.filter((e=>e.id!==n&&e.id!==a)),v(o,"error")]))}else f((e=>e.filter((e=>e.id!==n&&e.id!==a))))},onStream:e=>{null==u||u(e)}},s)})),messages:p,parsedMessages:m,setMessages:f}}const _A=function(e){return Object.keys(MA).forEach((t=>{const n=MA[t];n.install&&e.use(n)})),e.use(nE.StyleProvider),e},WA={install:_A};export{bA as Attachments,KE as Bubble,XE as BubbleList,tj as Conversations,UI as Keyframes,uj as Prompts,Xj as Sender,VP as StyleProvider,bj as Suggestion,dI as Theme,AA as ThoughtChain,lj as Welcome,FA as XAgent,DA as XFetch,EP as XProvider,BA as XRequest,zA as XStream,oE as _experimental,FP as createCache,fI as createTheme,WA as default,be as defaultPrefixCls,qI as extractStyle,_A as install,JI as legacyLogicalPropertiesTransformer,TI as legacyNotSelectorLinter,zI as logicalPropertiesLinter,DI as parentSelectorLinter,tE as px2remTransformer,IP as theme,SI as token2CSSVar,CI as unit,GI as useCSSVarRegister,EI as useCacheToken,_P as useStyleInject,WP as useStyleProvider,KI as useStyleRegister,HA as useXAgent,LA as useXChat,we as useXProviderContext};
|
|
6
|
+
*/var NE=(RE||(RE=1,function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var l in e)t.call(e,l)&&e[l]&&(o=r(o,l));return o}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(BE)),BE.exports);const HE=$y(NE);function FE(e){const t=b(e),n=b((e=>{t.value&&t.value(e)}));return t.value=e,n.value}const LE="accept acceptcharset accesskey action allowfullscreen allowtransparency\nalt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge\ncharset checked classid class colspan cols content contenteditable contextmenu\ncontrols coords crossorigin data datetime default defer dir disabled download draggable\nenctype form formaction formenctype formmethod formnovalidate formtarget frameborder\nheaders height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity\nis keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media\nmediagroup method min minlength multiple muted name novalidate nonce open\noptimum pattern placeholder poster preload radiogroup readonly rel required\nreversed role rowspan rows sandbox scope scoped scrolling seamless selected\nshape size sizes span spellcheck src srcdoc srclang srcset start step style\nsummary tabindex target title type usemap value width wmode wrap onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown\n onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick\n onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown\n onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel\n onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough\n onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata\n onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError".split(/[\s\n]+/);function _E(e,t){return 0===e.indexOf(t)}function WE(e,t=!1){let n;n=!1===t?{aria:!0,data:!0,attr:!0}:!0===t?{aria:!0}:{...t};const o={};return Object.keys(e).forEach((t=>{(n.aria&&("role"===t||_E(t,"aria-"))||n.data&&_E(t,"data-")||n.attr&&(LE.includes(t)||LE.includes(t.toLowerCase())))&&(o[t]=e[t])})),o}const VE=l({name:"AXBubbleList",inheritAttrs:!1,__name:"BubbleList",props:K({prefixCls:null,rootClassName:null,items:null,autoScroll:{type:Boolean},roles:null},{autoScroll:!0}),setup(e,{expose:t}){const o=we(e,["prefixCls","rootClassName","items","autoScroll","roles"]);E(e,"roles"),E(e,"items"),E(e,"prefixCls");const r=q(),l=_(),s=n((()=>WE(W(o,r),{attr:!0,aria:!0}))),u=b(e.items),c=b(e.roles);i((()=>e.items),(()=>{u.value=e.items})),i((()=>e.roles),(()=>{c.value=e.roles}));const d=b(null),p=b({}),{getPrefixCls:f}=be(),v=f("bubble",e.prefixCls),m=`${v}-list`,[h,g,y]=AE(v),[w,x]=AP(!1);G((()=>{x(!0),V((()=>{x(!1)}))}));const C=function(e,t){const o=(e,n)=>{var o;return"function"==typeof t.value?t.value(e,n):t&&(null==(o=t.value)?void 0:o[e.role])||{}};return n((()=>(e.value||[]).map(((e,t)=>{const n=e.key??`preset_${t}`;return{...o(e,t),...e,key:n}}))))}(u,c),[S,O]=function(e){const[t,o]=AP(e.value.length),r=n((()=>e.value.slice(0,a(t)))),l=n((()=>{const e=a(r)[a(r).length-1];return e?e.key:null}));i(e,(()=>{var t;if(o(e.value.length),!a(r).length||!a(r).every(((t,n)=>{var o;return t.key===(null==(o=e.value[n])?void 0:o.key)})))if(0===a(r).length)o(1);else for(let n=0;n<a(r).length;n+=1)if(a(r)[n].key!==(null==(t=e.value[n])?void 0:t.key)){o(n);break}}),{immediate:!0,deep:!0});const s=FE((e=>{e===a(l)&&o(a(t)+1)}));return[r,s]}(C),[k,P]=AP(!0),[j,A]=AP(0),M=e=>{const t=e.target;P(t.scrollHeight-Math.abs(t.scrollTop)-t.clientHeight<=1)};i(j,(()=>{e.autoScroll&&a(d)&&a(k)&&I((()=>{a(d).scrollTo({top:a(d).scrollHeight})}))})),i((()=>a(S).length),(()=>{var t;if(e.autoScroll){const e=null==(t=a(S)[a(S).length-2])?void 0:t.key,n=a(p)[e];if(n){const{nativeElement:e}=n,{top:t=0,bottom:o=0}=(null==e?void 0:e.getBoundingClientRect())??{},{top:r,bottom:l}=a(d).getBoundingClientRect();t<l&&o>r&&(A(a(j)+1),P(!0))}}}));const T=FE((()=>{e.autoScroll&&A(a(j)+1)})),z=n((()=>({onUpdate:T})));return t({nativeElement:d,scrollTo:({key:e,offset:t,behavior:n="smooth",block:o})=>{if("number"==typeof t)a(d).scrollTo({top:t,behavior:n});else if(void 0!==e){const t=a(p)[e];if(t){const r=a(S).findIndex((t=>t.key===e));P(r===a(S).length-1),t.nativeElement.scrollIntoView({behavior:n,block:o})}}}}),()=>h($(zE,{value:z.value},{default:()=>[$("div",W(s.value,{class:HE(m,e.rootClassName,g.value,y,{[`${m}-reach-end`]:k.value}),ref:d,onScroll:M}),[U(a(S),(({key:e,onTypingComplete:t,...n})=>{var o,r,i;return $(DE,W(n,{avatar:l.avatar?()=>{var t;return null==(t=l.avatar)?void 0:t.call(l,{item:{key:e,...n}})}:n.avatar,header:(null==(o=l.header)?void 0:o.call(l,{item:{key:e,...n}}))??n.header,footer:(null==(r=l.footer)?void 0:r.call(l,{item:{key:e,...n}}))??n.footer,loadingRender:l.loading?()=>l.loading({item:{key:e,...n}}):n.loadingRender,content:(null==(i=l.message)?void 0:i.call(l,{item:{key:e,...n}}))??n.content,key:e,ref:t=>{t?p.value[e]=t:delete p.value[e]},typing:!!w.value&&n.typing,onTypingComplete:()=>{null==t||t(),O(e)}}),null)}))])]}))}}),XE=Object.assign(DE,{List:VE});XE.install=function(e){return e.component(XE.name,XE),e.component(VE.name,VE),e};const KE=l({name:"AXConversationsItem",__name:"ConversationsItem",props:{info:null,prefixCls:null,direction:null,menu:null,active:{type:Boolean},onClick:{type:Function}},setup(e){const t=we(e,["prefixCls","info","class","direction","onClick","active","menu"]);E(e,"class");const o=n((()=>WE(t,{aria:!0,data:!0,attr:!0}))),r=e=>{e.stopPropagation()},l=n((()=>e.info.disabled)),[i,a]=AP(!1),[s,u]=AP(!1),c=n((()=>HE(e.class,`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:e.active&&!l.value},{[`${e.prefixCls}-item-disabled`]:l.value}))),d=()=>{!l.value&&e.onClick&&e.onClick(e.info)},p=e=>{e&&u(!e)},f=n((()=>{var t;return null==(t=e.menu)?void 0:t.trigger})),v=n((()=>{const{trigger:t,...n}=e.menu||{};return n})),m=n((()=>{var e;return null==(e=v.value)?void 0:e.getPopupContainer}));return()=>$(sh,{title:e.info.label,open:i.value&&s.value,onOpenChange:u,placement:"rtl"===e.direction?"left":"right"},{default:()=>[$("li",W(o.value,{class:c.value,onClick:d}),[e.info.icon&&$("div",{class:`${e.prefixCls}-icon`},[e.info.icon]),$(ZS.Text,{class:`${e.prefixCls}-label`,ellipsis:{onEllipsis:a}},{default:()=>[e.info.label]}),!l.value&&e.menu&&$(Eg,{placement:"rtl"===e.direction?"bottomLeft":"bottomRight",trigger:["click"],disabled:l.value,onOpenChange:p,getPopupContainer:m.value},{default:()=>(t=>{const n=$(hg,{onClick:r,class:`${e.prefixCls}-menu-icon`},null);return f.value?"function"==typeof f.value?f.value(t,{originNode:n}):f.value:n})(e.info),overlay:()=>$(xy,v.value,null)})])]})}}),qE=Symbol("GroupTitleContext"),GE=s(),UE=l({props:{value:xe()},setup:(e,{slots:t})=>((e=>{r(qE,e),i(e,(()=>{GE.value=a(e),u(GE)}),{immediate:!0,deep:!0})})(n((()=>e.value))),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})}),YE=l({name:"AXConversationsGroupTitle",__name:"GroupTitle",setup(e){const t=_(),r=o(qE,n((()=>GE.value||{}))),l=n((()=>{var e;return null==(e=t.default)?void 0:e.call(t)}));return()=>$("div",{class:HE(`${r.value.prefixCls}-group-title`)},[l.value&&$(ZS.Text,null,{default:()=>[l.value]})])}});function ZE(e,t){const{defaultValue:n,value:o=b()}=t||{};let r="function"==typeof e?e():e;void 0!==o.value&&(r=a(o)),void 0!==n&&(r="function"==typeof n?n():n);const l=b(r),s=b(r);return w((()=>{let e=void 0!==o.value?o.value:l.value;t.postState&&(e=t.postState(e)),s.value=e})),i(o,(()=>{l.value=o.value})),[s,function(e){const n=s.value;l.value=e,B(s.value)!==e&&t.onChange&&t.onChange(e,n)}]}const QE="__ungrouped",JE=SE("Conversations",(e=>(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",gap:e.paddingXXS,overflowY:"auto",padding:e.paddingSM,[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-list`]:{display:"flex",gap:e.paddingXXS,flexDirection:"column",paddingLeft:0,[`& ${t}-item`]:{paddingInlineStart:e.paddingXL},[`& ${t}-label`]:{color:e.colorTextDescription}},[`& ${t}-item`]:{display:"flex",height:e.controlHeightLG,minHeight:e.controlHeightLG,gap:e.paddingXS,padding:`0 ${$I(e.paddingXS)}`,alignItems:"center",borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,"&:hover":{backgroundColor:e.colorBgTextHover},"&-active":{backgroundColor:e.colorBgTextHover,[`& ${t}-label, ${t}-menu-icon`]:{color:e.colorText}},"&-disabled":{cursor:"not-allowed",[`& ${t}-label`]:{color:e.colorTextDisabled}},"&:hover, &-active":{[`& ${t}-menu-icon`]:{opacity:1}}},[`& ${t}-label`]:{flex:1,overflow:"hidden",textOverflow:"ellipsis",color:e.colorText},[`& ${t}-menu-icon`]:{opacity:0,fontSize:e.fontSizeXL},[`& ${t}-group-title`]:{display:"flex",alignItems:"center",height:e.controlHeightLG,minHeight:e.controlHeightLG,padding:`0 ${$I(e.paddingXS)}`}}}})(fE(e,{}))),(()=>({}))),ej=l({name:"AXConversations",__name:"Conversations",props:K({items:null,activeKey:null,defaultActiveKey:null,onActiveChange:{type:Function},menu:{type:Function},groupable:null,styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=we(e,["prefixCls","rootClassName","items","activeKey","defaultActiveKey","onActiveChange","menu","styles","classNames","groupable","class","style"]);E(e,"class"),E(e,"activeKey"),E(e,"prefixCls");const o=b(e.activeKey),r=n((()=>WE(t,{attr:!0,aria:!0,data:!0}))),[l,a]=ZE(e.defaultActiveKey,{value:o});i((()=>e.activeKey),(()=>{o.value=e.activeKey}));const s=((e,t=[])=>{const o=n((()=>{if(!X(e))return{enableGroup:!1,sort:void 0,title:void 0};let t={sort:void 0,title:void 0};return"object"==typeof X(e)&&(t={...t,...X(e)}),{enableGroup:!0,sort:t.sort,title:t.title}}));return n((()=>{if(!o.value.enableGroup)return{groupList:[{name:QE,data:X(t),title:void 0}],enableGroup:o.value.enableGroup};const e=X(t).reduce(((e,t)=>{const n=t.group||QE;return e[n]||(e[n]=[]),e[n].push(t),e}),{});return{groupList:(o.value.sort?Object.keys(e).sort(o.value.sort):Object.keys(e)).map((t=>({name:t===QE?void 0:t,title:o.value.title,data:e[t]}))),enableGroup:o.value.enableGroup}}))})((()=>e.groupable),(()=>e.items)),{getPrefixCls:u,direction:c}=be(),d=n((()=>u("conversations",e.prefixCls))),p=jP("conversations"),[f,v,m]=JE(d),h=n((()=>HE(d.value,p.value.className,e.class,e.rootClassName,v.value,m,{[`${d.value}-rtl`]:"rtl"===c.value}))),g=t=>{a(t.key),e.onActiveChange&&e.onActiveChange(t.key)};return()=>f($("ul",W(r.value,{style:{..."object"==typeof p.value.style?p.value.style:{},..."object"==typeof e.style?e.style:{}},class:h.value}),[s.value.groupList.map(((t,n)=>{const o=t.data.map(((t,n)=>$(KE,{key:t.key||`key-${n}`,info:t,prefixCls:d.value,direction:c.value,class:HE(e.classNames.item,p.value.classNames.item),style:{...p.value.styles.item,...e.styles.item},menu:"function"==typeof e.menu?e.menu(t):e.menu,active:l.value===t.key,onClick:g},null)));return s.value.enableGroup?$("li",{key:t.name||`key-${n}`},[$(UE,{value:{prefixCls:d.value}},{default:()=>{var e;return[(null==(e=t.title)?void 0:e.call(t,t.name,{components:{GroupTitle:YE}}))||$(YE,{key:t.name},{default:()=>[t.name]})]}}),$("ul",{class:`${d.value}-list`},[o])]):o}))]))}}),tj=e=>{const{componentCls:t,calc:n}=e,o=n(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),r=n(e.fontSize).mul(e.lineHeight).equal();return{[t]:{gap:e.padding,[`${t}-icon`]:{height:n(o).add(r).add(e.paddingXXS).equal(),display:"flex",img:{height:"100%"}},[`${t}-content-wrapper`]:{gap:e.paddingXS,flex:"auto",minWidth:0,[`${t}-title-wrapper`]:{gap:e.paddingXS},[`${t}-title`]:{margin:0},[`${t}-extra`]:{marginInlineStart:"auto"}}}}},nj=e=>{const{componentCls:t}=e;return{[t]:{"&-filled":{paddingInline:e.padding,paddingBlock:e.paddingSM,background:e.colorFillContent,borderRadius:e.borderRadiusLG},"&-borderless":{[`${t}-title`]:{fontSize:e.fontSizeHeading3,lineHeight:e.lineHeightHeading3}}}}},oj=SE("Welcome",(e=>{const t=fE(e,{});return[tj(t),nj(t)]}),(()=>({})));const rj=l({name:"AXWelcome",__name:"Welcome",props:K({prefixCls:null,rootClassName:null,className:null,style:null,variant:null,classNames:null,styles:null,icon:null,title:null,description:null,extra:null},{variant:"filled",classNames:()=>({}),styles:()=>({})}),setup(e){E(e,"prefixCls");const t=_(),{direction:o,getPrefixCls:r}=be(),l=r("welcome",e.prefixCls),i=jP("welcome"),[a,s,u]=oj(l),c=n((()=>{const n=t.icon?t.icon():"function"==typeof e.icon?e.icon():e.icon;if(!n)return null;let o=n;return"string"==typeof n&&n.startsWith("http")&&(o=$("img",{src:n,alt:"icon"},null)),$("div",{class:HE(`${l}-icon`,i.value.classNames.icon,e.classNames.icon),style:e.styles.icon},[o])})),p=n((()=>{const n=t.title?t.title():"function"==typeof e.title?e.title():e.title;return n?$(ZS.Title,{level:4,class:HE(`${l}-title`,i.value.classNames.title,e.classNames.title),style:e.styles.title},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!d(e)}(n)?n:{default:()=>[n]}):null})),f=n((()=>t.description?t.description():"function"==typeof e.description?e.description():e.description)),v=n((()=>{const n=t.extra?t.extra():"function"==typeof e.extra?e.extra():e.extra;return n?$("div",{class:HE(`${l}-extra`,i.value.classNames.extra,e.classNames.extra),style:e.styles.extra},[n]):null}));return()=>a($($P,{class:HE(l,i.value.className,e.className,e.rootClassName,s.value,u,`${l}-${e.variant}`,{[`${l}-rtl`]:"rtl"===o.value}),style:e.style},{default:()=>[c.value,$($P,{vertical:!0,class:`${l}-content-wrapper`},{default:()=>[t.extra||e.extra?$($P,{align:"flex-start",class:`${l}-title-wrapper`},{default:()=>[p.value,v.value]}):p.value,f.value&&$(ZS.Text,{class:HE(`${l}-description`,i.value.classNames.description,e.classNames.description),style:e.styles.description},{default:()=>[f.value]})]})]}))}}),lj=e=>{const{componentCls:t}=e;return{[t]:{"&, & *":{boxSizing:"border-box"},maxWidth:"100%",[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-title`]:{marginBlockStart:0,fontWeight:"normal",color:e.colorTextTertiary},[`& ${t}-list`]:{display:"flex",gap:e.paddingSM,overflowX:"auto",scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},listStyle:"none",paddingInlineStart:0,marginBlock:0,alignItems:"stretch","&-wrap":{flexWrap:"wrap"},"&-vertical":{flexDirection:"column",alignItems:"flex-start"}},[`${t}-item`]:{flex:"none",display:"flex",gap:e.paddingXS,height:"auto",paddingBlock:e.paddingSM,paddingInline:e.padding,alignItems:"flex-start",justifyContent:"flex-start",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,transition:["border","background"].map((t=>`${t} ${e.motionDurationSlow}`)).join(","),border:`${$I(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,[`&:not(${t}-item-has-nest)`]:{"&:hover":{cursor:"pointer",background:e.colorFillTertiary},"&:active":{background:e.colorFill}},[`${t}-content`]:{flex:"auto",minWidth:0,display:"flex",gap:e.paddingXXS,flexDirection:"column",alignItems:"flex-start"},[`${t}-icon, ${t}-label, ${t}-desc`]:{margin:0,padding:0,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start",whiteSpace:"normal"},[`${t}-label`]:{color:e.colorTextHeading,fontWeight:500},[`${t}-label + ${t}-desc`]:{color:e.colorTextTertiary},[`&${t}-item-disabled`]:{pointerEvents:"none",background:e.colorBgContainerDisabled,[`${t}-label, ${t}-desc`]:{color:e.colorTextTertiary}}}}}},ij=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-item-has-nest`]:{[`> ${t}-content`]:{[`> ${t}-label`]:{fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}}},[`&${t}-nested`]:{marginTop:e.paddingXS,alignSelf:"stretch",[`${t}-list`]:{alignItems:"stretch"},[`${t}-item`]:{border:0,background:e.colorFillQuaternary}}}}},aj=SE("Prompts",(e=>{const t=fE(e,{});return[lj(t),ij(t)]}),(()=>({}))),sj=l({name:"AXPrompts",__name:"Prompts",props:K({items:null,title:{type:Function},onItemClick:{type:Function},vertical:{type:Boolean},wrap:{type:Boolean},styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=we(e,["prefixCls","title","class","items","onItemClick","vertical","wrap","rootClassName","styles","classNames","style"]);E(e,"class"),E(e,"prefixCls");const o=_(),{getPrefixCls:r,direction:l}=be(),i=r("prompts",e.prefixCls),a=jP("prompts"),[s,u,c]=aj(i),d=n((()=>HE(i,a.value.className,e.class,e.rootClassName,u.value,c,{[`${i}-rtl`]:"rtl"===l.value}))),p=n((()=>HE(`${i}-list`,a.value.classNames.list,e.classNames.list,{[`${i}-list-wrap`]:e.wrap},{[`${i}-list-vertical`]:e.vertical}))),f=n((()=>o.title?o.title():"function"==typeof e.title?e.title():e.title));return()=>{var n;return s($("div",W(t,{class:d.value,style:{..."object"==typeof e.style?e.style:{},..."object"==typeof a.value.style?a.value.style:{}}}),[f.value&&$(ZS.Title,{level:5,class:HE(`${i}-title`,a.value.classNames.title,e.classNames.title),style:{...a.value.styles.title,...e.styles.title}},{default:()=>[f.value]}),$("div",{class:p.value,style:{...a.value.styles.list,...e.styles.list}},[null==(n=e.items)?void 0:n.map(((t,n)=>{const o=t.children&&t.children.length>0;return $("div",{key:t.key||`key_${n}`,style:{...a.value.styles.item,...e.styles.item},class:HE(`${i}-item`,a.value.classNames.item,e.classNames.item,{[`${i}-item-disabled`]:t.disabled,[`${i}-item-has-nest`]:o}),onClick:()=>{!o&&e.onItemClick&&e.onItemClick({data:t})}},[t.icon&&$("div",{class:`${i}-icon`},[t.icon]),$("div",{class:HE(`${i}-content`,a.value.classNames.itemContent,e.classNames.itemContent),style:{...a.value.styles.itemContent,...e.styles.itemContent}},[t.label&&$("h6",{class:`${i}-label`},[t.label]),t.description&&$("p",{class:`${i}-desc`},[t.description]),o&&$(sj,{class:`${i}-nested`,items:t.children,vertical:!0,onItemClick:e.onItemClick,classNames:{list:e.classNames.subList,item:e.classNames.subItem},styles:{list:e.styles.subList,item:e.styles.subItem}},null)])])}))])]))}}});sj.install=function(e){return e.component(sj.name,sj),e};const uj=SE("Suggestion",(e=>(e=>{const{componentCls:t,antCls:n}=e;return{[t]:{[`${n}-cascader-menus ${n}-cascader-menu`]:{height:"auto"},[`${t}-item`]:{"&-icon":{marginInlineEnd:e.paddingXXS},"&-extra":{marginInlineStart:e.padding}},[`&${t}-block`]:{[`${t}-item-extra`]:{marginInlineStart:"auto"}}}}})(fE(e,{}))),(()=>({})));function cj(e,t,n,o,r){const[l,a]=AP([]),s=(t,n=l.value)=>{let o=X(e);for(let e=0;e<t-1;e+=1){const t=n[e],r=o.find((e=>e.value===t));if(!r)break;o=r.children||[]}return o},u=e=>{const t=l.value.length||1,n=s(t),o=n.findIndex((e=>e.value===l.value[t-1])),r=n.length,i=n[(o+e+r)%r];a([...l.value.slice(0,t-1),i.value])},c=()=>{l.value.length>1&&a(l.value.slice(0,l.value.length-1))},d=()=>{const e=s(l.value.length+1);e.length&&a([...l.value,e[0].value])},p=FE((e=>{if(X(t))switch(console.log("e.key",e),e.key){case"ArrowDown":u(1),e.preventDefault();break;case"ArrowUp":u(-1),e.preventDefault();break;case"ArrowRight":X(n)?c():d(),e.preventDefault();break;case"ArrowLeft":X(n)?d():c(),e.preventDefault();break;case"Enter":s(l.value.length+1).length||o((e=>e.map(((t,n)=>{const o=s(n+1,e).find((e=>e.value===t));return null==o?void 0:o.value})))(l.value)),e.preventDefault();break;case"Escape":r(),e.preventDefault()}}));return i((()=>X(t)),(()=>{X(t)&&a([X(e)[0].value])}),{immediate:!0}),[l,p]}const dj=typeof window<"u"&&typeof document<"u";function pj(e,t=!0,n){m()?h(e,n):t?e():I(e)}typeof WorkerGlobalScope<"u"&&(globalThis,WorkerGlobalScope);const fj=dj?window:void 0;function vj(e){var t;const n=X(e);return null!=(t=null==n?void 0:n.$el)?t:n}function mj(e){const t=function(){const e=s(!1),t=m();return t&&h((()=>{e.value=!0}),t),e}();return n((()=>(t.value,!!e())))}function hj(e,t,o={}){const{window:r=fj,...l}=o;let a;const s=mj((()=>r&&"ResizeObserver"in r)),u=()=>{a&&(a.disconnect(),a=void 0)},c=n((()=>{const t=X(e);return Array.isArray(t)?t.map((e=>vj(e))):[vj(t)]})),d=i(c,(e=>{if(u(),s.value&&r){a=new ResizeObserver(t);for(const t of e)t&&a.observe(t,l)}}),{immediate:!0,flush:"post"}),p=()=>{u(),d()};return function(e){!!Y()&&Z(e)}(p),{isSupported:s,stop:p}}function gj(e,t={width:0,height:0},o={}){const{window:r=fj,box:l="content-box"}=o,a=n((()=>{var t,n;return null==(n=null==(t=vj(e))?void 0:t.namespaceURI)?void 0:n.includes("svg")})),u=s(t.width),c=s(t.height),{stop:d}=hj(e,(([t])=>{const n="border-box"===l?t.borderBoxSize:"content-box"===l?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){const t=vj(e);if(t){const e=t.getBoundingClientRect();u.value=e.width,c.value=e.height}}else if(n){const e=function(e){return Array.isArray(e)?e:[e]}(n);u.value=e.reduce(((e,{inlineSize:t})=>e+t),0),c.value=e.reduce(((e,{blockSize:t})=>e+t),0)}else u.value=t.contentRect.width,c.value=t.contentRect.height}),o);pj((()=>{const n=vj(e);n&&(u.value="offsetWidth"in n?n.offsetWidth:t.width,c.value="offsetHeight"in n?n.offsetHeight:t.height)}));const p=i((()=>vj(e)),(e=>{u.value=e?t.width:0,c.value=e?t.height:0}));return{width:u,height:c,stop:function(){d(),p()}}}const yj=l({name:"AXSuggestion",__name:"Suggestion",props:K({prefixCls:null,className:null,rootClassName:null,style:null,children:{type:Function},open:{type:Boolean},onOpenChange:{type:Function},items:{type:Function},onSelect:{type:Function},block:{type:Boolean},styles:null,classNames:null},{open:!1}),setup(e){E(e,"prefixCls");const t=_(),{direction:o,getPrefixCls:r}=be(),l=n((()=>r("suggestion",e.prefixCls)));l.value;const a=n((()=>"rtl"===o.value)),s=jP("suggestion"),u=b(),[c,d,p]=uj(l),{width:f}=gj(u),v=n((()=>{if(e.block&&f.value)return{width:`${f.value}px`}})),[m,h]=AP(e.open);i((()=>e.open),(e=>{h(e)}));const[g,y]=AP(),w=t=>{var n;h(t),null==(n=e.onOpenChange)||n.call(e,t)},x=e=>{!1===e?w(!1):(y(e),w(!0))},C=()=>{w(!1)},S=n((()=>"function"==typeof e.items?e.items(g.value):e.items)),O=t=>{e.onSelect&&e.onSelect(t[t.length-1]),w(!1)},[k,P]=cj(S,m,a,O,C),I=n((()=>{var n;return t.default?t.default({onTrigger:x,onKeyDown:P}):null==(n=e.children)?void 0:n.call(e,{onTrigger:x,onKeyDown:P})}));return()=>c($(rx,{options:S.value,open:m.value,value:k.value,placement:a.value?"topRight":"topLeft",onDropdownVisibleChange:e=>{e||C()},popupClassName:HE(e.rootClassName,l.value,d.value,p,{[`${l.value}-block`]:e.block}),onChange:O,dropdownStyle:v.value},{default:()=>$("div",{ref:u,class:HE(l.value,s.value.className,e.rootClassName,e.className,`${l.value}-wrapper`,d.value,p),style:{...s.value.style,...e.style}},[I.value])}))}}),bj=Symbol("SenderHeaderContext"),wj=s(),xj=l({props:{value:xe()},setup:(e,{slots:t})=>((e=>{r(bj,e),i(e,(()=>{wj.value=a(e),u(wj)}),{immediate:!0,deep:!0})})(n((()=>e.value))),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})}),$j=Symbol("ActionButtonContext"),Cj=s(),Sj=()=>o($j,n((()=>Cj.value||{}))),Oj=l({props:{value:xe()},setup:(e,{slots:t})=>((e=>{r($j,e),i(e,(()=>{Cj.value=a(e),u(Cj)}),{immediate:!0,deep:!0})})(n((()=>e.value))),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})}),kj=l({name:"AXSenderActionButton",__name:"index",props:K({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null,action:null},{type:"text",disabled:void 0}),setup(e){const t=we(e,["action","type","disabled","onClick"]);E(e,"disabled");const o=_(),r=Sj(),l=n((()=>{var t;const n=r.value.disabled,o=null==(t=r.value)?void 0:t[`${e.action}Disabled`];return e.disabled??n??o})),i=n((()=>r.value.prefixCls));return()=>$(cg,W({type:e.type},t,{onClick:t=>{var n,o;l.value||(null==(o=null==(n=r.value)?void 0:n[e.action])||o.call(n),e.onClick&&!Array.isArray(e.onClick)&&e.onClick(t))},class:HE(i.value,{[`${i.value}-disabled`]:l.value})}),{icon:()=>o.default()})}}),Pj=l({name:"AXSenderClearButton",__name:"ClearButton",props:K({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{disabled:void 0}),setup(e){const t=we(e,["disabled"]);return()=>$(kj,W({disabled:e.disabled},t,{action:"onClear"}),{default:()=>[$(Ak,null,null)]})}}),Ij=l({name:"AXSenderStopLoading",__name:"StopLoading",props:{className:null},setup(e){const t=e;return()=>$("svg",{color:"currentColor",viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:t.className},[$("title",null,[z("Stop Loading")]),$("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"},null),$("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100",opacity:"0.45"},null),$("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100","stroke-dasharray":"600 9999999"},[$("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"},null)])])}}),Ej=l({name:"AXSenderLoadingButton",__name:"LoadingButton",props:K({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{type:"primary",shape:"circle",icon:void 0,disabled:void 0}),setup(e){const t=we(e,["type","shape","icon","disabled"]),n=Sj(),{token:o}=PP.useToken();return()=>$(kj,W({type:e.type,disabled:e.disabled,shape:e.shape,icon:e.icon},t,{style:{backgroundColor:"transparent",color:o.value.colorPrimary},class:HE(`${n.value.prefixCls}-loading-button`),action:"onCancel"}),{default:()=>[$(Ij,{className:`${n.value.prefixCls}-loading-icon`},null)]})}}),jj=l({name:"AXSenderLoadingButton",__name:"SendButton",props:K({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{type:"primary",shape:"circle",disabled:void 0}),setup(e){const t=we(e,["type","shape","disabled"]);return()=>$(kj,W({type:e.type,shape:e.shape,disabled:e.disabled},t,{action:"onSend"}),{default:()=>[$(bk,null,null)]})}}),Aj=140,Mj=250,Tj=l({name:"AXSenderRecordingIcon",__name:"RecordingIcon",props:{className:null,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},setup:e=>()=>$("svg",{color:"currentColor",viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:e.className},[$("title",null,[z("Speech Recording")]),Array.from({length:4}).map(((e,t)=>$("rect",{fill:"currentColor",rx:70,ry:70,height:Mj,width:Aj,x:t*(440/3+Aj),y:375,key:t},[$("animate",{attributeName:"height",values:"250; 500; 250",keyTimes:"0; 0.5; 1",dur:"0.8s",begin:.2*t+"s",repeatCount:"indefinite"},null),$("animate",{attributeName:"y",values:"375; 250; 375",keyTimes:"0; 0.5; 1",dur:"0.8s",begin:.2*t+"s",repeatCount:"indefinite"},null)])))])}),zj=l({name:"AXSenderSpeechButton",__name:"index",props:K({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{type:"text",disabled:void 0,audioIcon:()=>$(Pk,null,null),audioDisabledIcon:()=>$(Ck,null,null),audioRecordingIcon:void 0}),setup(e){const t=we(e,["type","disabled","audioIcon","audioDisabledIcon","audioRecordingIcon"]),o=Sj(),{token:r}=PP.useToken(),l=n((()=>o.value.speechRecording)),i=n((()=>o.value.prefixCls)),a=n((()=>{let t;return t=l.value?e.audioRecordingIcon?e.audioRecordingIcon:$(Tj,{className:`${i.value}-recording-icon`},null):o.value.onSpeechDisabled?e.audioDisabledIcon:e.audioIcon,t}));return()=>$(kj,W({type:e.type,disabled:e.disabled},t,{style:{display:"flex",justifyContent:"center",alignItems:"center",color:r.value.colorPrimary},action:"onSpeech"}),{default:()=>[a.value]})}}),Dj=l({name:"AXTransitionCollapse",__name:"TransitionCollapse",props:{prefixCls:{default:"ax"}},setup(e){const t=e,o=_(),r=n((()=>t.prefixCls+"-transition-collapse")),l={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.maxHeight="0",e.style.paddingTop="0",e.style.paddingBottom="0"},enter(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.maxHeight=`${e.scrollHeight}px`,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.maxHeight=`${e.dataset.oldMaxHeight||"999"}px`,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldMaxHeight=e.scrollHeight,e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.overflow="hidden",e.style.maxHeight=`${e.scrollHeight}px`},leave(e){0!==e.scrollHeight&&(e.style.maxHeight="0",e.style.paddingTop="0",e.style.paddingBottom="0")},afterLeave(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}};return()=>$(S,{name:r.value,onBeforeEnter:l.beforeEnter,onEnter:l.enter,onAfterEnter:l.afterEnter,onBeforeLeave:l.beforeLeave,onLeave:l.leave,onAfterLeave:l.afterLeave},{default:()=>{var e;return[null==(e=o.default)?void 0:e.call(o)]}})}}),Rj=e=>{const{componentCls:t}=e,n=`${t}-transition-collapse`;return{[t]:{[n]:{"&-enter-active":{transition:["max-height","padding-top","padding-bottom"].map((t=>`${t} ${e.motionDurationSlow} ${e.motionEaseInOut}`)).join(",")},"&-leave-active":{transition:["max-height","padding-top","padding-bottom"].map((t=>`${t} ${e.motionDurationSlow} ${e.motionEaseInOut}`)).join(",")}}}}};Dj.install=function(e){return e.component(Dj.name,Dj),e};const Bj=e=>{const{componentCls:t,calc:n}=e,o=`${t}-header`;return{[t]:{[o]:{borderBottomWidth:e.lineWidth,borderBottomStyle:"solid",borderBottomColor:e.colorBorder,"&-header":{background:e.colorFillAlter,fontSize:e.fontSize,lineHeight:e.lineHeight,paddingBlock:n(e.paddingSM).sub(e.lineWidthBold).equal(),paddingInlineStart:e.padding,paddingInlineEnd:e.paddingXS,display:"flex",borderRadius:{_skip_check_:!0,value:n(e.borderRadius).mul(2).equal()},borderBottomRightRadius:0,borderBottomLeftRadius:0,[`${o}-title`]:{flex:"auto"}},"&-content":{padding:e.padding},"&-motion":{transition:["height","border"].map((t=>`${t} ${e.motionDurationSlow}`)).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}}}}}},Nj=e=>{const{componentCls:t,padding:n,paddingSM:o,paddingXS:r,paddingXXS:l,lineWidth:i,lineWidthBold:a,calc:s}=e;return{[t]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${e.boxShadowTertiary}`,transition:`background ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:s(e.borderRadius).mul(2).equal()},borderColor:e.colorBorder,borderWidth:0,borderStyle:"solid","&:after":{content:'""',position:"absolute",inset:0,pointerEvents:"none",transition:`border-color ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:"inherit"},borderStyle:"inherit",borderColor:"inherit",borderWidth:i},"&:focus-within":{boxShadow:`${e.boxShadowSecondary}`,borderColor:e.colorPrimary,"&:after":{borderWidth:a}},"&-disabled":{background:e.colorBgContainerDisabled},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{display:"flex",gap:r,width:"100%",paddingBlock:o,paddingInlineStart:n,paddingInlineEnd:o,boxSizing:"border-box",alignItems:"flex-end"},[`${t}-prefix`]:{flex:"none"},[`${t}-input`]:{padding:0,borderRadius:0,flex:"auto",alignSelf:"center",minHeight:"auto"},[`${t}-actions-list`]:{flex:"none",display:"flex","&-presets":{gap:e.paddingXS}},[`${t}-actions-btn`]:{"&-disabled":{opacity:.45},"&-loading-button":{padding:0,border:0},"&-loading-icon":{height:e.controlHeight,width:e.controlHeight,verticalAlign:"top"},"&-recording-icon":{height:"1.2em",width:"1.2em",verticalAlign:"top"}},[`${t}-footer`]:{paddingInlineStart:n,paddingInlineEnd:o,paddingBlockEnd:o,paddingBlockStart:l,boxSizing:"border-box"}}}},Hj=SE("Sender",(e=>{const{paddingXS:t,calc:n}=e,o=fE(e,{SenderContentMaxWidth:`calc(100% - ${$I(n(t).add(32).equal())})`});return[Nj(o),Bj(o),Rj(o)]}),(()=>({})));let Fj;function Lj(e,t){const o=e,r=n((()=>{const e=X(t);return"object"==typeof e?{controlledRecording:e.recording,onControlledRecordingChange:e.onRecordingChange,speechInControlled:"boolean"==typeof e.recording}:{controlledRecording:void 0,onControlledRecordingChange:void 0,speechInControlled:!1}})),l=n((()=>r.value.controlledRecording)),i=r.value.onControlledRecordingChange,a=r.value.speechInControlled,s=b(null);w((()=>{if(typeof navigator<"u"&&"permissions"in navigator){let e=null;navigator.permissions.query({name:"microphone"}).then((t=>{s.value=t.state,t.onchange=function(){s.value=this.state},e=t})),V((()=>{e&&(e.onchange=null)}))}}));const u=n((()=>Fj&&"denied"!==s.value)),c=b(null),[d,p]=ZE(!1,{value:l}),f=b(!1);return{speechPermission:u,triggerSpeech:e=>{e&&!d.value||(f.value=e,a?null==i||i(!d.value):((()=>{if(u.value&&!c.value){const e=new Fj;e.onstart=()=>{p(!0)},e.onend=()=>{p(!1)},e.onresult=e=>{var t,n,r;if(!f.value){const l=null==(r=null==(n=null==(t=e.results)?void 0:t[0])?void 0:n[0])?void 0:r.transcript;o(l)}f.value=!1},c.value=e}})(),c.value&&(d.value?(c.value.stop(),null==i||i(!1)):(c.value.start(),null==i||i(!0)))))},recording:d}}!Fj&&typeof window<"u"&&(Fj=window.SpeechRecognition||window.webkitSpeechRecognition);const _j=l({name:"AXSender",__name:"Sender",props:K({onKeyPress:{type:Function},onFocus:null,onBlur:null,prefixCls:null,defaultValue:null,value:null,loading:{type:Boolean},placeholder:null,readOnly:{type:Boolean},submitType:{type:[String,Boolean]},disabled:{type:Boolean},onSubmit:{type:Function},onChange:{type:Function},onCancel:null,onKeyDown:{type:Function},onPaste:{type:Function},onPasteFile:{type:Function},components:null,styles:null,rootClassName:null,classNames:null,style:null,className:null,actions:{type:[Function,Boolean]},allowSpeech:null,prefix:{type:Function},footer:{type:Function},header:{type:Function},autoSize:null},{styles:()=>({}),classNames:()=>({}),submitType:"enter",actions:void 0,disabled:void 0,autoSize:()=>({maxRows:8})}),emits:["update:value"],setup(e,{expose:t,emit:o}){const r=we(e,["prefixCls","styles","classNames","className","rootClassName","style","defaultValue","value","placeholder","readOnly","submitType","onSubmit","loading","components","onCancel","onChange","actions","onKeyPress","onKeyDown","disabled","allowSpeech","prefix","footer","header","onPaste","onPasteFile","autoSize"]);E(e,"prefixCls");const l={SendButton:jj,ClearButton:Pj,LoadingButton:Ej,SpeechButton:zj},a=o,s=_(),{direction:u,getPrefixCls:c}=be(),d=n((()=>c("sender",e.prefixCls))),p=b(null),f=b(null),v=jP("sender"),m=n((()=>`${d.value}-input`)),[h,g,y]=Hj(d.value),w=n((()=>HE(d.value,v.value.className,e.className,e.rootClassName,g.value,y,{[`${d.value}-rtl`]:"rtl"===u.value,[`${d.value}-disabled`]:e.disabled}))),x=n((()=>`${d.value}-actions-btn`)),C=n((()=>`${d.value}-actions-list`)),S=b(e.value??e.defaultValue??""),O=e=>{S.value=e};i((()=>e.value),(()=>{O(e.value)}));const k=(t,n)=>{O(t),a("update:value",t),e.onChange&&e.onChange(t,n)},{speechPermission:P,triggerSpeech:I,recording:j}=Lj((e=>{k(`${S.value} ${e}`)}),(()=>e.allowSpeech)),A=(U=e.components,Y=["input"],Z=j$.TextArea,function(e,t){for(var n=e,o=0;o<t.length;o+=1){if(null==n)return;n=n[t[o]]}return n}(U,Y)||Z),M=n((()=>WE(r,{attr:!0,aria:!0,data:!0}))),T=n((()=>({...M.value,ref:f}))),z=()=>{S.value&&e.onSubmit&&!e.loading&&e.onSubmit(S.value)},D=()=>{k("")},R=b(!1),B=()=>{R.value=!0},N=()=>{R.value=!1},H=t=>{const n="Enter"===t.key&&!R.value;switch(e.submitType){case"enter":n&&!t.shiftKey&&(t.preventDefault(),z());break;case"shiftEnter":n&&t.shiftKey&&(t.preventDefault(),z())}e.onKeyPress&&e.onKeyPress(t)},F=t=>{var n,o;const r=null==(n=t.clipboardData)?void 0:n.files;null!=r&&r.length&&e.onPasteFile&&(e.onPasteFile(r[0],r),t.preventDefault()),null==(o=e.onPaste)||o.call(e,t)},L=e=>{var t,n;e.target!==(null==(t=p.value)?void 0:t.querySelector(`.${m.value}`))&&e.preventDefault(),null==(n=f.value)||n.focus()},V=n((()=>{let t=$($P,{class:`${C.value}-presets`},{default:()=>[e.allowSpeech&&$(zj,"object"==typeof e.allowSpeech?{audioIcon:e.allowSpeech.audioIcon,audioDisabledIcon:e.allowSpeech.audioDisabledIcon,audioRecordingIcon:e.allowSpeech.audioRecordingIcon}:{},null),e.loading?$(Ej,null,null):$(jj,null,null)]});const n={components:l};return s.actions?t=s.actions({ori:t,info:n}):"function"==typeof e.actions?t=e.actions(t,n):(e.actions||!1===e.actions)&&(t=e.actions),t})),X=n((()=>({prefixCls:x.value,onSend:z,onSendDisabled:!S.value,onClear:D,onClearDisabled:!S.value,onCancel:e.onCancel,onCancelDisabled:!e.loading,onSpeech:()=>I(!1),onSpeechDisabled:!P.value,speechRecording:j.value,disabled:e.disabled}))),K=n((()=>{let t=null;const n={components:l};return s.footer?t=s.footer({info:n}):"function"==typeof e.footer?t=e.footer({components:l}):e.footer&&(t=e.footer),t})),q=n((()=>s.header?s.header():"function"==typeof e.header?e.header():e.header)),G=n((()=>s.prefix?s.prefix():"function"==typeof e.prefix?e.prefix():e.prefix));var U,Y,Z;return t({nativeElement:p.value,focus:e=>{var t;return null==(t=f.value)?void 0:t.focus(e)},blur:()=>{var e;return null==(e=f.value)?void 0:e.blur()}}),()=>h($("div",{ref:p,class:w.value,style:{...v.value.style,...e.style}},[q.value&&$(xj,{value:{prefixCls:d.value}},{default:()=>[q.value]}),$(Oj,{value:X.value},{default:()=>[$("div",{class:`${d.value}-content`,onMousedown:L},[G.value&&$("div",{class:HE(`${d.value}-prefix`,v.value.classNames.prefix,e.classNames.prefix),style:{...v.value.styles.prefix,...e.styles.prefix}},[G.value]),$(A,W(T.value,{disabled:e.disabled,style:{...v.value.styles.input,...e.styles.input},class:HE(m.value,v.value.classNames.input,e.classNames.input),autoSize:e.autoSize,value:S.value,onChange:e=>{k(e.target.value,e),I(!0)},onPressEnter:H,onCompositionstart:B,onCompositionend:N,onKeydown:e.onKeyDown,placeholder:e.placeholder,onPaste:F,bordered:!1,readOnly:e.readOnly}),null),V.value&&$("div",{class:HE(C.value,v.value.classNames.actions,e.classNames.actions),style:{...v.value.styles.actions,...e.styles.actions}},[V.value])]),K.value&&$("div",{class:HE(`${d.value}-footer`,v.value.classNames.footer,e.classNames.footer),style:{...v.value.styles.footer,...e.styles.footer}},[K.value])]})]))}}),Wj=l({name:"AXSenderHeader",inheritAttrs:!1,__name:"SenderHeader",props:K({forceRender:{type:Boolean},open:{type:Boolean},onOpenChange:{type:Function},title:null,children:null,className:null,style:null,classNames:null,styles:null,closable:{type:Boolean}},{classNames:()=>({}),styles:()=>({})}),setup(e){E(e,"classNames");const t=_(),r=o(bj,n((()=>wj.value||{}))),l=n((()=>`${r.value.prefixCls}-header`)),i=q();return()=>$(Dj,{prefixCls:r.value.prefixCls},{default:()=>{var n;return[e.open||e.forceRender?O($("div",W(i,{class:HE(l.value,e.className),style:{...e.style}}),[(!1!==e.closable||e.title)&&$("div",{class:HE(`${l.value}-header`,e.classNames.header),style:{...e.styles.header}},[$("div",{class:`${l.value}-title`},[e.title]),!1!==e.closable&&$("div",{class:`${l.value}-close`},[$(cg,{type:"text",icon:$(Td,null,null),size:"small",onClick:()=>{var t;null==(t=e.onOpenChange)||t.call(e,!e.open)}},null)])]),t.default&&$("div",{class:HE(`${l.value}-content`,e.classNames.content),style:{...e.styles.content}},[null==(n=t.default)?void 0:n.call(t)])]),[[A,e.open]]):null]}})}}),Vj=Object.assign(_j,{Header:Wj});Vj.install=function(e){return e.component(Vj.name,Vj),e.component(Wj.name,Wj),e};const Xj=Symbol("AttachmentContext"),Kj=s(),qj=()=>o(Xj,n((()=>Kj.value||{}))),Gj=l({inheritAttrs:!1,props:{value:xe()},setup:(e,{slots:t})=>((e=>{r(Xj,e),i(e,(()=>{Kj.value=a(e),u(Kj)}),{immediate:!0,deep:!0})})(n((()=>e.value))),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})}),Uj=l({name:"AXAttachmentsPlaceholderUploader",__name:"PlaceholderUploader",props:K({prefixCls:null,placeholder:null,upload:null,className:null,style:null},{placeholder:()=>({})}),setup(e,{expose:t}){const o=`${e.prefixCls}-placeholder`,r=n((()=>e.placeholder||{})),l=Q("upload-dragger"),i=qj(),[a,s]=AP(!1),u=()=>{s(!0)},c=e=>{e.currentTarget.contains(e.relatedTarget)||s(!1)},p=()=>{s(!1)};t({nativeElement:n((()=>{var e;return null==(e=l.value)?void 0:e.$el}))});const f=n((()=>{return d(e.placeholder)||(t=e.placeholder,Array.isArray(t)&&t.every(d))?e.placeholder:$($P,{align:"center",justify:"center",vertical:!0,class:`${o}-inner`},{default:()=>[$(ZS.Text,{class:`${o}-icon`},{default:()=>[r.value.icon]}),$(ZS.Title,{class:`${o}-title`,level:5},{default:()=>[r.value.title]}),$(ZS.Text,{class:`${o}-description`,type:"secondary"},{default:()=>[r.value.description]})]});var t}));return()=>$("div",{class:HE(o,{[`${o}-drag-in`]:a.value,[`${o}-disabled`]:i.value.disabled},e.className),onDragenter:u,onDragleave:c,onDrop:p,"aria-hidden":i.value.disabled,style:e.style},[$(mk.Dragger,W({showUploadList:!1},e.upload,{ref:"upload-dragger",style:{padding:0,border:0,background:"transparent"}}),{default:()=>[f.value]})])}}),Yj=l({name:"AXAttachmentsDropArea",__name:"DropArea",props:{prefixCls:null,className:null,getDropContainer:{type:Function},children:null},setup(e){const t=qj(),[o,r]=AP(),[l,a]=AP(null);h((()=>{var t;r(null==(t=e.getDropContainer)?void 0:t.call(e))})),i((()=>X(e.getDropContainer)),(()=>{var t;const n=null==(t=e.getDropContainer)?void 0:t.call(e);o.value!==n&&r(n)})),i((()=>!!o.value),(()=>{if(o.value){const e=()=>{a(!0)},t=e=>{e.preventDefault()},n=e=>{e.relatedTarget||a(!1)},o=e=>{a(!1),e.preventDefault()};document.addEventListener("dragenter",e),document.addEventListener("dragover",t),document.addEventListener("dragleave",n),document.addEventListener("drop",o),V((()=>{document.removeEventListener("dragenter",e),document.removeEventListener("dragover",t),document.removeEventListener("dragleave",n),document.removeEventListener("drop",o)}))}}));const s=n((()=>e.getDropContainer&&o.value&&!t.value.disabled)),u=`${e.prefixCls}-drop-area`;return()=>s.value?$(T,{to:o.value},{default:()=>[$("div",{class:HE(u,e.className,{[`${u}-on-body`]:"BODY"===o.value.tagName}),style:{display:l.value?"block":"none"}},[e.children])]}):null}}),Zj=l({name:"AXAttachmentsSilentUploader",__name:"SilentUploader",props:{children:null,upload:null,rootClassName:null},setup(e,{expose:t}){const o=Q("upload");return t({nativeElement:n((()=>{var e;return null==(e=o.value)?void 0:e.$el}))}),()=>$(mk,W(e.upload,{showUploadList:!1,ref:"upload"}),{default:()=>[e.children]})}}),Qj=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n},Jj={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};const eA=Qj({},[["render",function(e,t){return ee(),J("svg",Jj,t[0]||(t[0]=[te("title",null,"audio",-1),te("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[te("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",fill:"currentColor"})],-1)]))}]]),tA={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};const nA=Qj({},[["render",function(e,t){return ee(),J("svg",tA,t[0]||(t[0]=[te("title",null,"video",-1),te("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[te("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",fill:"currentColor"})],-1)]))}]]),oA=200;const rA=Math.round;function lA(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=n.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)o[e]=t(o[e]||0,n[e]||"",e);return n[3]?o[3]=n[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const iA=(e,t,n)=>0===n?e:e/100;function aA(e,t){const n=t||255;return e>n?n:e<0?0:e}class sA{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(Ae(this,"isValid",!0),Ae(this,"r",0),Ae(this,"g",0),Ae(this,"b",0),Ae(this,"a",1),Ae(this,"_h",void 0),Ae(this,"_s",void 0),Ae(this,"_l",void 0),Ae(this,"_v",void 0),Ae(this,"_max",void 0),Ae(this,"_min",void 0),Ae(this,"_brightness",void 0),e)if("string"==typeof e){let t=function(e){return n.startsWith(e)};const n=e.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):t("rgb")?this.fromRgbString(n):t("hsl")?this.fromHslString(n):(t("hsv")||t("hsb"))&&this.fromHsvString(n)}else if(e instanceof sA)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=aA(e.r),this.g=aA(e.g),this.b=aA(e.b),this.a="number"==typeof e.a?aA(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();this._h=0===e?0:rA(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()-e/100;return o<0&&(o=0),this._c({h:t,s:n,l:o,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()+e/100;return o>1&&(o=1),this._c({h:t,s:n,l:o,a:this.a})}mix(e,t=50){const n=this._c(e),o=t/100,r=e=>(n[e]-this[e])*o+this[e],l={r:rA(r("r")),g:rA(r("g")),b:rA(r("b")),a:rA(100*r("a"))/100};return this._c(l)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),o=e=>rA((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const o=(this.b||0).toString(16);if(e+=2===o.length?o:"0"+o,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=rA(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=rA(100*this.getSaturation()),n=rA(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const o=this.clone();return o[e]=aA(t,n),o}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:o}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof o?o:1,t<=0){const e=rA(255*n);this.r=e,this.g=e,this.b=e}let r=0,l=0,i=0;const a=e/60,s=(1-Math.abs(2*n-1))*t,u=s*(1-Math.abs(a%2-1));a>=0&&a<1?(r=s,l=u):a>=1&&a<2?(r=u,l=s):a>=2&&a<3?(l=s,i=u):a>=3&&a<4?(l=u,i=s):a>=4&&a<5?(r=u,i=s):a>=5&&a<6&&(r=s,i=u);const c=n-s/2;this.r=rA(255*(r+c)),this.g=rA(255*(l+c)),this.b=rA(255*(i+c))}fromHsv({h:e,s:t,v:n,a:o}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof o?o:1;const r=rA(255*n);if(this.r=r,this.g=r,this.b=r,t<=0)return;const l=e/60,i=Math.floor(l),a=l-i,s=rA(n*(1-t)*255),u=rA(n*(1-t*a)*255),c=rA(n*(1-t*(1-a))*255);switch(i){case 0:this.g=c,this.b=s;break;case 1:this.r=u,this.b=s;break;case 2:this.r=s,this.b=c;break;case 3:this.r=s,this.g=u;break;case 4:this.r=c,this.g=s;break;default:this.g=s,this.b=u}}fromHsvString(e){const t=lA(e,iA);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=lA(e,iA);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=lA(e,((e,t)=>t.includes("%")?rA(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const uA=e=>{const{componentCls:t,antCls:n,calc:o}=e,r=`${t}-list-card`,l=o(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[r]:{borderRadius:e.borderRadius,position:"relative",background:e.colorFillContent,borderWidth:e.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${r}-name,${r}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${r}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${r}-ellipsis-suffix`]:{flex:"none"},"&-type-overview":{padding:o(e.paddingSM).sub(e.lineWidth).equal(),paddingInlineStart:o(e.padding).add(e.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:e.paddingXS,alignItems:"flex-start",width:236,[`${r}-icon`]:{fontSize:o(e.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:o(e.paddingXXS).mul(1.5).equal(),flex:"none"},[`${r}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${r}-desc`]:{color:e.colorTextTertiary}},"&-type-preview":{width:l,height:l,lineHeight:1,display:"flex",alignItems:"center",[`&:not(${r}-status-error)`]:{border:0},[`${n}-image`]:{width:"100%",height:"100%",borderRadius:"inherit",img:{height:"100%",objectFit:"cover",borderRadius:"inherit"}},[`${r}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${e.opacityLoading})`,borderRadius:"inherit"},[`&${r}-status-error`]:{[`img, ${r}-img-mask`]:{borderRadius:o(e.borderRadius).sub(e.lineWidth).equal()},[`${r}-desc`]:{paddingInline:e.paddingXXS}},[`${r}-progress`]:{}},[`${r}-remove`]:{position:"absolute",top:0,insetInlineEnd:0,border:0,padding:e.paddingXXS,background:"transparent",lineHeight:1,transform:"translate(50%, -50%)",fontSize:e.fontSize,cursor:"pointer",opacity:e.opacityLoading,display:"none","&:dir(rtl)":{transform:"translate(-50%, -50%)"},"&:hover":{opacity:1},"&:active":{opacity:e.opacityLoading}},[`&:hover ${r}-remove`]:{display:"block"},"&-status-error":{borderColor:e.colorError,[`${r}-desc`]:{color:e.colorError}},"&-motion":{overflow:"hidden",transition:["opacity","width","margin","padding"].map((t=>`${t} ${e.motionDurationSlow}`)).join(","),[`${r}-remove`]:{display:"none !important"},"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:o(e.paddingSM).mul(-1).equal()}}}}},cA={"&, *":{boxSizing:"border-box"}},dA=e=>{const{componentCls:t,calc:n,antCls:o}=e,r=`${t}-drop-area`,l=`${t}-placeholder`;return{[r]:{position:"absolute",inset:0,zIndex:e.zIndexPopupBase,...cA,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${l}-inner`]:{display:"none"}},[l]:{padding:0}},"&":{[l]:{height:"100%",borderRadius:e.borderRadius,borderWidth:e.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:e.padding,position:"relative",backdropFilter:"blur(10px)",...cA,[`${o}-upload-wrapper ${o}-upload${o}-upload-btn`]:{padding:0},[`&${l}-drag-in`]:{borderColor:e.colorPrimaryHover},[`&${l}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${l}-inner`]:{gap:n(e.paddingXXS).div(2).equal()},[`${l}-icon`]:{fontSize:e.fontSizeHeading2,lineHeight:1},[`${l}-title${l}-title`]:{margin:0,fontSize:e.fontSize,lineHeight:e.lineHeight},[`${l}-description`]:{}}}}},pA=e=>{const{componentCls:t,calc:n}=e,o=`${t}-list`,r=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[t]:{position:"relative",width:"100%",...cA,[o]:{display:"flex",flexWrap:"wrap",gap:e.paddingSM,fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.colorText,paddingBlock:e.paddingSM,paddingInline:e.padding,width:"100%",background:e.colorBgContainer,scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},"&-overflow-scrollX, &-overflow-scrollY":{"&:before, &:after":{content:'""',position:"absolute",opacity:0,transition:`opacity ${e.motionDurationSlow}`,zIndex:1}},"&-overflow-ping-start:before":{opacity:1},"&-overflow-ping-end:after":{opacity:1},"&-overflow-scrollX":{overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap","&:before, &:after":{insetBlock:0,width:8},"&:before":{insetInlineStart:0,background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetInlineEnd:0,background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:dir(rtl)":{"&:before":{background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"}}},"&-overflow-scrollY":{overflowX:"hidden",overflowY:"auto",maxHeight:n(r).mul(3).equal(),"&:before, &:after":{insetInline:0,height:8},"&:before":{insetBlockStart:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetBlockEnd:0,background:"linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"}},"&-upload-btn":{width:r,height:r,fontSize:e.fontSizeHeading2,color:"#999"},"&-prev-btn, &-next-btn":{position:"absolute",top:"50%",transform:"translateY(-50%)",boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none"},"&-prev-btn":{left:{_skip_check_:!0,value:e.padding}},"&-next-btn":{right:{_skip_check_:!0,value:e.padding}},"&:dir(ltr)":{[`&${o}-overflow-ping-start ${o}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${o}-overflow-ping-end ${o}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${o}-overflow-ping-end ${o}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${o}-overflow-ping-start ${o}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},fA=SE("Attachments",(e=>{const t=fE(e,{});return[dA(t),pA(t),uA(t)]}),(e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new sA(t).setA(.85).toRgbString()}})),vA="#8c8c8c",mA=l({name:"AXAttachmentsFileListCard",__name:"FileListCard",props:{prefixCls:null,item:null,onRemove:{type:Function},className:null,style:null,imageProps:null,icon:null,type:null},setup(e,{expose:t}){E(e,"prefixCls");const o=["png","jpg","jpeg","gif","bmp","webp","svg"],r=[{key:"default",icon:$(tP,null,null),color:vA,ext:[]},{key:"excel",icon:$(Dk,null,null),color:"#22b35e",ext:["xlsx","xls"]},{key:"image",icon:$(Hk,null,null),color:vA,ext:o},{key:"markdown",icon:$(Wk,null,null),color:vA,ext:["md","mdx"]},{key:"pdf",icon:$(qk,null,null),color:"#ff4d4f",ext:["pdf"]},{key:"ppt",icon:$(Zk,null,null),color:"#ff6e31",ext:["ppt","pptx"]},{key:"word",icon:$(lP,null,null),color:"#1677ff",ext:["doc","docx"]},{key:"zip",icon:$(uP,null,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{key:"video",icon:$(nA,null,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{key:"audio",icon:$(eA,null,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function l(e,t){return t.some((t=>e.toLowerCase()===`.${t}`))}const a=qj(),s=n((()=>a.value.disabled)),u=n((()=>e.item.name)),d=n((()=>e.item.size)),p=n((()=>e.item.percent)),f=n((()=>e.item.status||"done")),v=n((()=>e.item.description)),{getPrefixCls:m}=be(),h=n((()=>m("attachment",e.prefixCls))),g=`${h.value}-list-card`,[y,b,w]=fA(h),x=Q("file-list-card-container"),C=n((()=>{const e=u.value||"",t=e.match(/^(.*)\.[^.]+$/);return{namePrefix:t?t[1]:e,nameSuffix:t?e.slice(t[1].length):""}})),S=n((()=>l(C.value.nameSuffix,o))),O=n((()=>v.value?v.value:"uploading"===f.value?`${p.value||0}%`:"error"===f.value?e.item.response||" ":d.value?function(e){let t=e;const n=["B","KB","MB","GB","TB","PB","EB"];let o=0;for(;t>=1024&&o<n.length-1;)t/=1024,o++;return`${t.toFixed(0)} ${n[o]}`}(d.value):" ")),k=n((()=>{if(e.icon){if("string"!=typeof e.icon)return{icon:e.icon,color:void 0};{const t=r.find((t=>t.key===e.icon));if(t)return{icon:t.icon,color:t.color}}}for(const{ext:e,icon:t,color:n}of r)if(l(C.value.nameSuffix,e))return{icon:t,iconColor:n};return{icon:$(tP,{key:"defaultIcon"},null),iconColor:vA}})),[P,I]=AP();i((()=>e.item.originFileObj),(()=>{if(e.item.originFileObj){let t=!0;(function(e){return new Promise((t=>{if(!e||!e.type||!(e=>0===e.indexOf("image/"))(e.type))return void t("");const n=new Image;if(n.onload=()=>{const{width:e,height:o}=n,r=e/o,l=r>1?oA:oA*r,i=r>1?oA/r:oA,a=document.createElement("canvas");a.width=l,a.height=i,a.style.cssText=`position: fixed; left: 0; top: 0; width: ${l}px; height: ${i}px; z-index: 9999; display: none;`,document.body.appendChild(a),a.getContext("2d").drawImage(n,0,0,l,i);const s=a.toDataURL();document.body.removeChild(a),window.URL.revokeObjectURL(n.src),t(s)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(n.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)}))})(e.item.originFileObj).then((e=>{t&&I(e)})),V((()=>{t=!1}))}I(void 0)}),{immediate:!0});const j=n((()=>e.item.thumbUrl||e.item.url||P.value)),A=n((()=>"image"===e.type||"file"!==e.type&&S.value&&(e.item.originFileObj||j.value))),M=n((()=>A.value?$(c,null,[j.value&&$(rS,W(e.imageProps,{alt:"preview",src:j.value}),null),"done"!==f.value&&$("div",{class:`${g}-img-mask`},["uploading"===f.value&&void 0!==p.value&&$(AS,{percent:p.value,prefixCls:g},null),"error"===f.value&&$("div",{class:`${g}-desc`},[$("div",{class:`${g}-ellipsis-prefix`},[O.value])])])]):$(c,null,[$("div",{class:`${g}-icon`,style:{color:k.value.iconColor}},[k.value.icon]),$("div",{class:`${g}-content`},[$("div",{class:`${g}-name`},[$("div",{class:`${g}-ellipsis-prefix`},[C.value.namePrefix??" "]),$("div",{class:`${g}-ellipsis-suffix`},[C.value.nameSuffix])]),$("div",{class:`${g}-desc`},[$("div",{class:`${g}-ellipsis-prefix`},[O.value])])])])));return t({nativeElement:x}),()=>y($("div",{class:HE(g,{[`${g}-status-${f.value}`]:f.value,[`${g}-type-preview`]:A.value,[`${g}-type-overview`]:!A.value},e.className,b.value,w),style:e.style,ref:"file-list-card-container"},[M.value,!s.value&&e.onRemove&&$("button",{type:"button",class:`${g}-remove`,onClick:()=>{e.onRemove(e.item)}},[$(Bd,null,null)])]))}}),hA=l({name:"AXAttachmentsFileList",__name:"FileList",props:{prefixCls:null,items:null,onRemove:{type:Function},overflow:null,upload:null,imageProps:null,listClassName:null,listStyle:null,itemClassName:null,itemStyle:null},setup(e){const t=n((()=>`${e.prefixCls}-list`)),o=Q("file-list-container"),[r,l]=AP(!1),a=qj();w((()=>{l(!0),V((()=>{l(!1)}))}));const[s,u]=AP(!1),[d,p]=AP(!1),f=()=>{const t=o.value;t&&("scrollX"===e.overflow?(u(Math.abs(t.scrollLeft)>=1),p(t.scrollWidth-t.clientWidth-Math.abs(t.scrollLeft)>=1)):"scrollY"===e.overflow&&(u(0!==t.scrollTop),p(t.scrollHeight-t.clientHeight!==t.scrollTop)))};i([()=>e.overflow,()=>e.items.length],(()=>{I((()=>{f()}))}),{immediate:!0});const v=e=>{const t=o.value;t&&t.scrollTo({left:t.scrollLeft+e*t.clientWidth,behavior:"smooth"})},m=()=>{v(-1)},h=()=>{v(1)};return()=>$("div",{class:HE(t.value,{[`${t.value}-overflow-${e.overflow}`]:e.overflow,[`${t.value}-overflow-ping-start`]:s.value,[`${t.value}-overflow-ping-end`]:d.value},e.listClassName),ref:"file-list-container",onScroll:f,style:e.listStyle},[e.items.map((t=>$(mA,{key:t.uid,prefixCls:e.prefixCls,item:t,onRemove:e.onRemove,className:HE(e.itemClassName),imageProps:e.imageProps,style:{...e.itemStyle}},null))),!a.value.disabled&&$(Zj,{upload:e.upload,children:$(cg,{class:`${t.value}-upload-btn`,type:"dashed"},{default:()=>[$(Wy,{class:`${t.value}-upload-btn-icon`},null)]})},null),"scrollX"===e.overflow&&$(c,null,[$(cg,{size:"small",shape:"circle",class:`${t.value}-prev-btn`,icon:$(wb,null,null),onClick:m},null),$(cg,{size:"small",shape:"circle",class:`${t.value}-next-btn`,icon:$(kg,null,null),onClick:h},null)])])}}),gA=l({name:"AXAttachments",__name:"Attachments",props:K({capture:null,type:null,name:null,defaultFileList:null,action:null,directory:null,data:null,method:null,headers:null,showUploadList:null,multiple:null,accept:null,beforeUpload:null,onChange:{type:Function},"onUpdate:fileList":null,onDrop:null,listType:null,onPreview:null,onDownload:null,onReject:null,onRemove:null,remove:null,supportServerRender:null,disabled:{type:Boolean},prefixCls:null,customRequest:null,withCredentials:null,openFileDialogOnClick:null,locale:null,id:null,previewFile:null,transformFile:null,iconRender:null,isImageUrl:null,progress:null,itemRender:null,maxCount:null,height:null,removeIcon:null,downloadIcon:null,previewIcon:null,rootClassName:null,rootStyle:null,style:null,className:null,classNames:null,styles:null,children:null,placeholder:{type:Function},getDropContainer:{type:Function},items:null,overflow:null,imageProps:null},{items:()=>[],classNames:()=>({}),styles:()=>({})}),setup(e,{expose:t}){const o=we(e,["prefixCls","rootClassName","rootStyle","className","style","items","children","getDropContainer","placeholder","onChange","onRemove","overflow","imageProps","disabled","classNames","styles"]);E(e,"prefixCls");const r=_(),{getPrefixCls:l,direction:a}=be(),s=l("attachment",e.prefixCls),u=jP("attachments"),d=n((()=>u.value.classNames)),p=n((()=>u.value.styles)),f=Q("attachments-container"),v=Q("placeholder-uploader"),[m,h,g]=fA(s),y=n((()=>HE(h.value,g))),[b,w]=AP(e.items);i((()=>e.items),(()=>{w(e.items)}));const x=t=>{var n;w(t.fileList),null==(n=e.onChange)||n.call(e,t)},C=n((()=>({...o,fileList:b.value,onChange:x}))),S=t=>Promise.resolve("function"==typeof e.onRemove?e.onRemove(t):e.onRemove).then((e=>{if(!1===e)return;const n=b.value.filter((e=>e.uid!==t.uid));x({file:{...t,status:"removed"},fileList:n})})),O=(t,n)=>{const o=r.placeholder?r.placeholder({type:t}):"function"==typeof e.placeholder?e.placeholder(t):e.placeholder;return $(Uj,{placeholder:o,upload:C.value,prefixCls:s,className:HE(d.value.placeholder,e.classNames.placeholder),style:{...p.value.placeholder,...e.styles.placeholder,...null==n?void 0:n.style},ref:"inline"===t?"placeholder-uploader":void 0},null)},k=n((()=>b.value.length>0));return t({nativeElement:f.value,upload:e=>{var t,n,o;const r=null==(o=null==(t=v.value)?void 0:(n=t.nativeElement).querySelector)?void 0:o.call(n,'input[type="file"]');if(!r)return;const l=new DataTransfer;try{if("length"in e&&e.length>=1)for(let t=0;t<e.length;t++)l.items.add(e[t]);else l.items.add(e);r.files=l.files,r.dispatchEvent(new Event("change",{bubbles:!0}))}catch(e){console.error("upload failed",e)}}}),()=>m($(Gj,{value:{disabled:e.disabled}},{default:()=>[e.children?$(c,null,[$(Zj,{upload:C.value,rootClassName:e.rootClassName,ref:"attachments-upload",children:e.children},null),$(Yj,{getDropContainer:e.getDropContainer,prefixCls:s,className:HE(y.value,e.rootClassName),children:O("drop")},null)]):$("div",{class:HE(s,y.value,{[`${s}-rtl`]:"rtl"===a.value},e.className,e.rootClassName),style:{...e.rootStyle,...e.style},dir:a.value||"ltr",ref:"attachments-container"},[$(hA,{prefixCls:s,items:b.value,onRemove:S,overflow:e.overflow,upload:C.value,listClassName:HE(d.value.list,e.classNames.list),listStyle:{...p.value.list,...e.styles.list,...!k.value&&{display:"none"}},itemClassName:HE(d.value.item,e.classNames.item),itemStyle:{...p.value.item,...e.styles.item},imageProps:e.imageProps},null),O("inline",k.value?{style:{display:"none"}}:{}),$(Yj,{getDropContainer:e.getDropContainer||(()=>f.value),prefixCls:s,className:y.value,children:O("drop")},null)])]}))}}),yA=Object.assign(gA,{FileCard:mA});yA.install=function(e){return e.component(yA.name,yA),e.component(mA.name,mA),e};var bA=(e=>(e.PENDING="pending",e.SUCCESS="success",e.ERROR="error",e))(bA||{});const wA=e=>{const{componentCls:t}=e,n=`${t}-item`,o={[bA.PENDING]:e.colorPrimaryText,[bA.SUCCESS]:e.colorSuccessText,[bA.ERROR]:e.colorErrorText},r=Object.keys(o);return r.reduce(((e,t)=>{const l=o[t];return r.forEach((r=>{const i=t===r?{}:{backgroundColor:"none !important",backgroundImage:`linear-gradient(${l}, ${o[r]})`};e[`& ${n}-${t}-${r}`]={[`& ${n}-icon, & > *::before`]:{backgroundColor:`${l} !important`},"& > :last-child::before":i}})),e}),{})},xA=e=>{const{calc:t,componentCls:n}=e,o=`${n}-item`,r={content:'""',width:t(e.lineWidth).mul(2).equal(),display:"block",position:"absolute",insetInlineEnd:"none",backgroundColor:e.colorTextPlaceholder};return{"& > :last-child > :last-child":{"&::before":{display:"none !important"},[`&${o}-footer`]:{"&::before":{display:"block !important",bottom:0}}},[`& > ${o}`]:{[`& ${o}-header, & ${o}-content, & ${o}-footer`]:{position:"relative","&::before":{bottom:t(e.itemGap).mul(-1).equal()}},[`& ${o}-header, & ${o}-content`]:{marginInlineStart:t(e.itemSize).mul(-1).equal(),"&::before":{...r,insetInlineStart:t(e.itemSize).div(2).sub(e.lineWidth).equal()}},[`& ${o}-header::before`]:{top:e.itemSize,bottom:t(e.itemGap).mul(-2).equal()},[`& ${o}-content::before`]:{top:"100%"},[`& ${o}-footer::before`]:{...r,top:0,insetInlineStart:t(e.itemSize).div(-2).sub(e.lineWidth).equal()}}}},$A=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[n]:{display:"flex",flexDirection:"column",[`& ${n}-collapsible`]:{cursor:"pointer"},[`& ${n}-header`]:{display:"flex",marginBottom:e.itemGap,gap:e.itemGap,alignItems:"flex-start",[`& ${n}-icon`]:{height:e.itemSize,width:e.itemSize,fontSize:e.itemFontSize,display:"flex",justifyContent:"center",alignItems:"center"},[`& ${n}-extra`]:{height:e.itemSize,maxHeight:e.itemSize},[`& ${n}-header-box`]:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",[`& ${n}-title`]:{height:e.itemSize,lineHeight:`${$I(e.itemSize)}`,maxHeight:e.itemSize,fontSize:e.itemFontSize,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",[`& ${n}-collapse-icon`]:{marginInlineEnd:e.marginXS}},[`& ${n}-desc`]:{fontSize:e.itemFontSize,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},[`& ${n}-content`]:{[`& ${n}-content-hidden`]:{display:"none"},[`& ${n}-content-box`]:{padding:e.itemGap,display:"inline-block",maxWidth:`calc(100% - ${e.itemSize})`,borderRadius:e.borderRadiusLG,backgroundColor:e.colorBgContainer,border:`${$I(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}},[`& ${n}-footer`]:{marginTop:e.itemGap,display:"inline-flex"}}}},CA=(e,t="middle")=>{const{componentCls:n}=e,o={large:{itemSize:e.itemSizeLG,itemGap:e.itemGapLG,itemFontSize:e.itemFontSizeLG},middle:{itemSize:e.itemSize,itemGap:e.itemGap,itemFontSize:e.itemFontSize},small:{itemSize:e.itemSizeSM,itemGap:e.itemGapSM,itemFontSize:e.itemFontSizeSM}}[t];return{[`&${n}-${t}`]:{paddingInlineStart:o.itemSize,gap:o.itemGap,...$A({...e,...o}),...xA({...e,...o})}}},SA=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",...wA(e),...CA(e),...CA(e,"large"),...CA(e,"small"),[`&${t}-rtl`]:{direction:"rtl"}}}},OA=SE("ThoughtChain",(e=>{const t=fE(e,{itemFontSizeSM:e.fontSizeSM,itemSizeSM:e.calc(e.controlHeightXS).add(e.controlHeightSM).div(2).equal(),itemGapSM:e.marginSM,itemFontSize:e.fontSize,itemSize:e.calc(e.controlHeightSM).add(e.controlHeight).div(2).equal(),itemGap:e.margin,itemFontSizeLG:e.fontSizeLG,itemSizeLG:e.calc(e.controlHeight).add(e.controlHeightLG).div(2).equal(),itemGapLG:e.marginLG});return[SA(t),Rj(t)]})),kA=Symbol("ThoughtChainNodeContext"),PA=s(),IA=l({props:{value:xe()},setup:(e,{slots:t})=>((e=>{r(kA,e),i(e,(()=>{PA.value=a(e),u(PA)}),{immediate:!0,deep:!0})})(n((()=>e.value))),()=>{var e;return null==(e=t.default)?void 0:e.call(t)})}),EA=l({name:"AXThoughtChainNode",__name:"item",props:K({info:null,nextStatus:null,onClick:{type:Function}},{info:()=>({})}),setup(e){const t=we(e,["info","nextStatus","onClick"]),r=n((()=>WE(t,{attr:!0,aria:!0,data:!0}))),l=o(kA,n((()=>PA.value||{}))),i=n((()=>l.value.prefixCls)),a=n((()=>l.value.enableCollapse)),s=n((()=>l.value.expandedKeys)),u=n((()=>l.value.direction)),c=n((()=>l.value.classNames)),d=n((()=>l.value.styles)),p=ne(),f=n((()=>e.info.key??p)),v=n((()=>e.info.icon)),m=n((()=>e.info.title)),h=n((()=>e.info.extra)),g=n((()=>e.info.content)),y=n((()=>e.info.footer)),b=n((()=>e.info.status)),w=n((()=>e.info.description)),x=n((()=>{const t=e.info.tooltip??!0,n="rtl"===u.value?"topRight":"topLeft",o={title:m.value,placement:n},r={title:w.value,placement:n};return"boolean"==typeof t?{titleConfig:o,descriptionConfig:r}:{titleConfig:{...o,...t.titleConfig?t.titleConfig:{}},descriptionConfig:{...r,...t.descriptionConfig?t.descriptionConfig:{}}}})),C=n((()=>!e.info.tooltip)),S=n((()=>`${i.value}-item`)),k=()=>{var t;return null==(t=e.onClick)?void 0:t.call(e,f.value)},P=n((()=>{var e;return null==(e=s.value)?void 0:e.includes(f.value)})),I=n((()=>!a.value||P.value));return()=>$("div",W(r.value,{class:HE(S.value,{[`${S.value}-${b.value}${e.nextStatus?`-${e.nextStatus}`:""}`]:b.value},t.class),style:t.style}),[$("div",{class:HE(`${S.value}-header`,c.value.itemHeader),style:d.value.itemHeader,onClick:k},[$(Lm,{icon:v.value,class:`${S.value}-icon`},null),$("div",{class:HE(`${S.value}-header-box`,{[`${S.value}-collapsible`]:a.value&&g.value})},[$(ZS.Text,{strong:!0,class:`${S.value}-title`},{default:()=>[a.value&&g.value&&("rtl"===u.value?$(wb,{class:`${S.value}-collapse-icon`,rotate:P.value?-90:0},null):$(kg,{class:`${S.value}-collapse-icon`,rotate:P.value?90:0},null)),C.value?m.value:$(sh,x.value.titleConfig,{default:()=>[m.value]})]}),w.value&&$(ZS.Text,{class:`${S.value}-desc`,type:"secondary"},{default:()=>[C.value?w.value:$(sh,x.value.descriptionConfig,{default:()=>[w.value]})]})]),h.value&&$("div",{class:`${S.value}-extra`},[h.value])]),$(Dj,{prefixCls:i.value},{default:()=>[g.value&&O($("div",{class:HE(`${S.value}-content`)},[$("div",{class:HE(`${S.value}-content-box`,c.value.itemContent),style:d.value.itemContent},[g.value])]),[[A,I.value]])]}),y.value&&$("div",{class:HE(`${S.value}-footer`,c.value.itemFooter),style:d.value.itemFooter},[y.value])])}}),jA=l({name:"AXThoughtChain",__name:"ThoughtChain",props:K({items:null,collapsible:{type:Boolean},size:null,styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({}),size:"middle"}),setup(e){const t=we(e,["prefixCls","rootClassName","class","items","collapsible","styles","style","classNames","size"]);E(e,"class"),E(e,"prefixCls");const o=n((()=>WE(t,{attr:!0,aria:!0,data:!0}))),{getPrefixCls:r,direction:l}=be(),a=n((()=>r())),s=n((()=>r("thought-chain",e.prefixCls))),u=jP("thoughtChain"),[c,d,p]=(e=>{const t=n((()=>{const t=X(e);let n={expandedKeys:[],onExpand:()=>{}};return t?("object"==typeof t&&(n={...n,...t}),{enableCollapse:!0,customizeExpandedKeys:n.expandedKeys,customizeOnExpand:n.onExpand}):{enableCollapse:!1,customizeExpandedKeys:n.expandedKeys,customizeOnExpand:n.onExpand}})),[o,r]=AP(t.value.customizeExpandedKeys);return i(t,(e=>{r(e.customizeExpandedKeys)}),{deep:1}),[n((()=>t.value.enableCollapse)),o,n=>{var l,i;if(!t.value.enableCollapse)return;const a=o.value.includes(n)?o.value.filter((e=>e!==n)):[...o.value,n];null==(i=(l=t.value).customizeOnExpand)||i.call(l,a),"object"!=typeof X(e)&&r(a)}]})((()=>e.collapsible),s.value,a.value),[f,v,m]=OA(s),h=n((()=>HE(e.class,e.rootClassName,s.value,u.value.className,v.value,m,{[`${s.value}-rtl`]:"rtl"===l.value},`${s.value}-${e.size}`)));return()=>f($("div",W(o.value,{class:h.value,style:{..."object"==typeof u.value.style?u.value.style:{},..."object"==typeof e.style?e.style:{}}}),[$(IA,{value:{prefixCls:s.value,enableCollapse:c.value,expandedKeys:d.value,direction:l.value,classNames:{itemHeader:HE(u.value.classNames.itemHeader,e.classNames.itemHeader),itemContent:HE(u.value.classNames.itemContent,e.classNames.itemContent),itemFooter:HE(u.value.classNames.itemFooter,e.classNames.itemFooter)},styles:{itemHeader:{...u.value.styles.itemHeader,...e.styles.itemHeader},itemContent:{...u.value.styles.itemContent,...e.styles.itemContent},itemFooter:{...u.value.styles.itemFooter,...e.styles.itemFooter}}}},{default:()=>{var t;return[null==(t=e.items)?void 0:t.map(((t,n)=>{var o;return $(EA,{key:t.key||`key_${n}`,class:HE(u.value.classNames.item,e.classNames.item),style:{...u.value.styles.item,...e.styles.item},info:{...t,icon:t.icon||n+1},onClick:p,nextStatus:(null==(o=e.items[n+1])?void 0:o.status)||t.status},null)}))]}})]))}}),AA=Object.freeze(Object.defineProperty({__proto__:null,Attachments:yA,Bubble:XE,BubbleList:VE,Conversations:ej,Prompts:sj,Sender:Vj,Suggestion:yj,ThoughtChain:jA,Welcome:rj,XProvider:IP,defaultPrefixCls:"ant",useXProviderContext:be},Symbol.toStringTag,{value:"Module"})),MA=e=>""!==(e??"").trim();function TA(e){const{readableStream:t,transformStream:n}=e;if(!(t instanceof ReadableStream))throw new Error("The options.readableStream must be an instance of ReadableStream.");const o=new TextDecoderStream,r=n?t.pipeThrough(o).pipeThrough(n):t.pipeThrough(o).pipeThrough(function(){let e="";return new TransformStream({transform(t,n){e+=t;const o=e.split("\n\n");o.slice(0,-1).forEach((e=>{MA(e)&&n.enqueue(e)})),e=o[o.length-1]},flush(t){MA(e)&&t.enqueue(e)}})}()).pipeThrough(new TransformStream({transform(e,t){const n=e.split("\n").reduce(((e,t)=>{const n=t.indexOf(":");if(-1===n)throw new Error('The key-value separator ":" is not found in the sse line chunk!');const o=t.slice(0,n);if(!MA(o))return e;const r=t.slice(n+1);return{...e,[o]:r}}),{});0!==Object.keys(n).length&&t.enqueue(n)}}));return r[Symbol.asyncIterator]=async function*(){const e=this.getReader();for(;;){const{done:t,value:n}=await e.read();if(t)break;n&&(yield n)}},r}const zA=async(e,t={})=>{const{fetch:n=globalThis.fetch,middlewares:o={},...r}=t;if("function"!=typeof n)throw new Error("The options.fetch must be a typeof fetch function!");let l=[e,r];"function"==typeof o.onRequest&&(l=await o.onRequest(...l));let i=await n(...l);if("function"==typeof o.onResponse){const e=await o.onResponse(i);if(!(e instanceof Response))throw new Error("The options.onResponse must return a Response instance!");i=e}if(!i.ok)throw new Error(`Fetch failed with status ${i.status}`);if(!i.body)throw new Error("The response body is empty.");return i};class DA{constructor(e){this.create=async(e,t,n)=>{var o,r;const l=new AbortController,i={method:"POST",body:JSON.stringify({model:this.model,...e}),headers:this.defaultHeaders,signal:l.signal};null==(o=null==t?void 0:t.onStream)||o.call(t,l);try{const e=await zA(this.baseURL,{fetch:this.customOptions.fetch,...i});if(n)return void await this.customResponseHandler(e,t,n);const o=e.headers.get("content-type")||"";switch(o.split(";")[0].trim()){case"text/event-stream":await this.sseResponseHandler(e,t);break;case"application/json":await this.jsonResponseHandler(e,t);break;default:throw new Error(`The response content-type: ${o} is not support!`)}}catch(e){const n=e instanceof Error?e:new Error("Unknown error!");throw null==(r=null==t?void 0:t.onError)||r.call(t,n),n}},this.customResponseHandler=async(e,t,n)=>{var o,r;const l=[];for await(const r of TA({readableStream:e.body,transformStream:n}))l.push(r),null==(o=null==t?void 0:t.onUpdate)||o.call(t,r);null==(r=null==t?void 0:t.onSuccess)||r.call(t,l)},this.sseResponseHandler=async(e,t)=>{var n,o;const r=[];for await(const o of TA({readableStream:e.body}))r.push(o),null==(n=null==t?void 0:t.onUpdate)||n.call(t,o);null==(o=null==t?void 0:t.onSuccess)||o.call(t,r)},this.jsonResponseHandler=async(e,t)=>{var n,o;const r=await e.json();null==(n=null==t?void 0:t.onUpdate)||n.call(t,r),null==(o=null==t?void 0:t.onSuccess)||o.call(t,[r])};const{baseURL:t,model:n,dangerouslyApiKey:o,...r}=e;this.baseURL=e.baseURL,this.model=e.model,this.defaultHeaders={"Content-Type":"application/json",...e.dangerouslyApiKey&&{Authorization:e.dangerouslyApiKey}},this.customOptions=r}static init(e){if(!e.baseURL||"string"!=typeof e.baseURL)throw new Error("The baseURL is not valid!");return new DA(e)}}const RA=e=>n((()=>DA.init(X(e))));let BA=0;class NA{constructor(e){this.requestingMap=b({}),this.request=(e,t,n)=>{const{request:o}=this.config,{onUpdate:r,onSuccess:l,onError:i,onStream:a}=t,s=BA;BA+=1,this.requestingMap.value[s]=!0,null==o||o(e,{onStream:e=>{this.requestingMap.value[s]&&(null==a||a(e))},onUpdate:e=>{this.requestingMap.value[s]&&r(e)},onSuccess:e=>{this.requestingMap.value[s]&&(l(e),this.finishRequest(s))},onError:e=>{this.requestingMap.value[s]&&(i(e),this.finishRequest(s))}},n)},this.config=e}finishRequest(e){delete this.requestingMap.value[e]}isRequesting(){return Object.keys(this.requestingMap.value).length>0}}function HA(e){return[n((()=>{const{request:t,...n}=X(e);return new NA({request:t||RA({baseURL:n.baseURL,model:n.model,dangerouslyApiKey:n.dangerouslyApiKey}).value.create,...n})}))]}function FA(e){const{defaultMessages:t,agent:o,requestFallback:r,requestPlaceholder:l,parser:i,transformMessage:a,transformStream:s,resolveAbortController:u}=e,c=b(0),d=n((()=>(t||[]).map(((e,t)=>({id:`default_${t}`,status:"local",...e}))))),[p,f]=function(e,t){const n=b(e);return[n,function(e){const o="function"==typeof e?e(n.value):e;o!==n.value&&t(o,n.value),n.value=o}]}(d.value,(()=>{})),v=(e,t)=>{const n={id:`msg_${c.value}`,message:e,status:t};return c.value+=1,n},m=n((()=>{const e=[];return p.value.forEach((t=>{const n=function(e){return Array.isArray(e)?e:[e]}(i?i(t.message):t.message);n.forEach(((o,r)=>{let l=t.id;n.length>1&&(l=`${l}_${r}`),e.push({id:l,message:o,status:t.status})}))})),e})),h=e=>e.filter((e=>"loading"!==e.status&&"error"!==e.status)).map((e=>e.message)),g=()=>h(p.value),y=e=>{const{chunk:t,chunks:n,originMessage:o}=e;if("function"==typeof a)return a(e);if(t)return t;if(Array.isArray(n)){const e=(null==n?void 0:n.length)>0?null==n?void 0:n[(null==n?void 0:n.length)-1]:void 0;return o||e}return n};return{onRequest:FE((e=>{if(!o)throw new Error("The agent parameter is required when using the onRequest method in an agent generated by useXAgent.");let t,n=null,i={};if(e&&"object"==typeof e&&"message"in e){const{message:n,...o}=e;t=n,i=o}else t=e;f((e=>{let o=[...e,v(t,"local")];if(l){let e;e="function"==typeof l?l(t,{messages:h(o)}):l;const r=v(e,"loading");n=r.id,o=[...o,r]}return o}));let a=null;const c=(e,t,o)=>{let r=p.value.find((e=>e.id===a));if(r)f((n=>n.map((n=>{if(n.id===a){const r=y({originMessage:n.message,chunk:t,chunks:o,status:e});return{...n,message:r,status:e}}return n}))));else{const l=y({chunk:t,status:e,chunks:o});r=v(l,e),f((e=>[...e.filter((e=>e.id!==n)),r])),a=r.id}return r};o.request({message:t,messages:g(),...i},{onUpdate:e=>{c("loading",e,[])},onSuccess:e=>{c("success",void 0,e)},onError:async e=>{if(r){let o;o="function"==typeof r?await r(t,{error:e,messages:g()}):r,f((e=>[...e.filter((e=>e.id!==n&&e.id!==a)),v(o,"error")]))}else f((e=>e.filter((e=>e.id!==n&&e.id!==a))))},onStream:e=>{null==u||u(e)}},s)})),messages:p,parsedMessages:m,setMessages:f}}const LA=function(e){return Object.keys(AA).forEach((t=>{const n=AA[t];n.install&&e.use(n)})),e.use(tE.StyleProvider),e},_A={install:LA};export{yA as Attachments,XE as Bubble,VE as BubbleList,ej as Conversations,GI as Keyframes,sj as Prompts,Vj as Sender,WP as StyleProvider,yj as Suggestion,cI as Theme,jA as ThoughtChain,rj as Welcome,NA as XAgent,zA as XFetch,IP as XProvider,RA as XRequest,TA as XStream,nE as _experimental,NP as createCache,pI as createTheme,_A as default,ye as defaultPrefixCls,KI as extractStyle,LA as install,QI as legacyLogicalPropertiesTransformer,MI as legacyNotSelectorLinter,TI as logicalPropertiesLinter,zI as parentSelectorLinter,eE as px2remTransformer,PP as theme,CI as token2CSSVar,$I as unit,qI as useCSSVarRegister,II as useCacheToken,LP as useStyleInject,_P as useStyleProvider,XI as useStyleRegister,HA as useXAgent,FA as useXChat,be as useXProviderContext};
|