import{F as dt,b as br,C as LB,T as Qp,d as he,r as _t,g as Kn,o as Qe,e as Sr,f as Cr,w as Ne,c as z,i as lt,p as it,a as be,u as xn,s as pe,j as Je,k as st,l as ji,m as C,h as Cg,n as ht,q as vn,t as kB,v as _n,x as ha,y as Ye,z as ur,A as aS,B as Ry,D as zy,E as sr,G as Xr,H as un,I as os,J as HB,K as Ly,L as CT,M as $T,N as em,O as tm,P as ky,Q as jB,R as ET,S as DT,U as Bf,V as Hy,W as iS,X as VB,Y as WB,Z as UB,_ as KB}from"./vue-7f5e2b1b.js";import{c as qB,a as GB,u as XB}from"./vue-router-e2815956.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();function Nu(e){return Nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(e)}function YB(e,t){if(Nu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Nu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZB(e){var t=YB(e,"string");return Nu(t)==="symbol"?t:String(t)}function In(e,t,n){return t=ZB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function j(e){for(var t=1;ttypeof e=="function",QB=Array.isArray,eF=e=>typeof e=="string",tF=e=>e!==null&&typeof e=="object",nF=/^on[^a-z]/,rF=e=>nF.test(e),jy=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},oF=/-(\w)/g,Yi=jy(e=>e.replace(oF,(t,n)=>n?n.toUpperCase():"")),aF=/\B([A-Z])/g,iF=jy(e=>e.replace(aF,"-$1").toLowerCase()),lF=jy(e=>e.charAt(0).toUpperCase()+e.slice(1)),sF=Object.prototype.hasOwnProperty,sS=(e,t)=>sF.call(e,t);function uF(e,t,n,r){const o=e[n];if(o!=null){const a=sS(o,"default");if(a&&r===void 0){const i=o.default;r=o.type!==Function&&JB(i)?i():i}o.type===Boolean&&(!sS(t,n)&&!a?r=!1:r===""&&(r=!0))}return r}function cF(e){return Object.keys(e).reduce((t,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]),t),{})}function Ei(e){return typeof e=="number"?`${e}px`:e}function _l(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof e=="function"?e(t):e??n}function dF(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}function ge(){const e=[];for(let t=0;t0},e.prototype.connect_=function(){!$g||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),gF?(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(){!$g||!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(t){var n=t.propertyName,r=n===void 0?"":n,o=hF.some(function(a){return!!~r.indexOf(a)});o&&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,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof as(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new DF(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof as(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new AF(r.target,r.broadcastRect())});this.callback_.call(t,n,t),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 AT,NT=function(){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=yF.getInstance(),r=new OF(t,n,this);MT.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){NT.prototype[e]=function(){var t;return(t=MT.get(this))[e].apply(t,arguments)}});var TF=function(){return typeof Ff.ResizeObserver<"u"?Ff.ResizeObserver:NT}();const Vy=TF;var MF=typeof global=="object"&&global&&global.Object===Object&&global;const PT=MF;var NF=typeof self=="object"&&self&&self.Object===Object&&self,PF=PT||NF||Function("return this")();const So=PF;var IF=So.Symbol;const Jr=IF;var IT=Object.prototype,_F=IT.hasOwnProperty,BF=IT.toString,qs=Jr?Jr.toStringTag:void 0;function FF(e){var t=_F.call(e,qs),n=e[qs];try{e[qs]=void 0;var r=!0}catch{}var o=BF.call(e);return r&&(t?e[qs]=n:delete e[qs]),o}var RF=Object.prototype,zF=RF.toString;function LF(e){return zF.call(e)}var kF="[object Null]",HF="[object Undefined]",cS=Jr?Jr.toStringTag:void 0;function ui(e){return e==null?e===void 0?HF:kF:cS&&cS in Object(e)?FF(e):LF(e)}function _T(e,t){return function(n){return e(t(n))}}var jF=_T(Object.getPrototypeOf,Object);const Wy=jF;function go(e){return e!=null&&typeof e=="object"}var VF="[object Object]",WF=Function.prototype,UF=Object.prototype,BT=WF.toString,KF=UF.hasOwnProperty,qF=BT.call(Object);function Uy(e){if(!go(e)||ui(e)!=VF)return!1;var t=Wy(e);if(t===null)return!0;var n=KF.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&BT.call(n)==qF}const GF=e=>e!=null&&e!=="",Eg=GF,XF=(e,t)=>{const n=E({},e);return Object.keys(t).forEach(r=>{const o=n[r];if(o)o.type||o.default?o.default=t[r]:o.def?o.def(t[r]):n[r]={type:o,default:t[r]};else throw new Error(`not have ${r} prop`)}),n},at=XF,Ky=e=>{const t=Object.keys(e),n={},r={},o={};for(let a=0,i=t.length;a0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;const n={},r=/;(?![^(]*\))/g,o=/:(.+)/;return typeof e=="object"?e:(e.split(r).forEach(function(a){if(a){const i=a.split(o);if(i.length>1){const l=t?Yi(i[0].trim()):i[0].trim();n[l]=i[1].trim()}}}),n)},aa=(e,t)=>e[t]!==void 0,FT=Symbol("skipFlatten"),Lt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=Array.isArray(e)?e:[e],r=[];return n.forEach(o=>{Array.isArray(o)?r.push(...Lt(o,t)):o&&o.type===dt?o.key===FT?r.push(o):r.push(...Lt(o.children,t)):o&&br(o)?t&&!uc(o)?r.push(o):t||r.push(o):Eg(o)&&r.push(o)}),r},rm=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(br(e))return e.type===dt?t==="default"?Lt(e.children):[]:e.children&&e.children[t]?Lt(e.children[t](n)):[];{let r=e.$slots[t]&&e.$slots[t](n);return Lt(r)}},yr=e=>{var t;let n=((t=e==null?void 0:e.vnode)===null||t===void 0?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n},RT=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach(r=>{const o=e.$props[r],a=iF(r);(o!==void 0||a in n)&&(t[r]=o)})}else if(br(e)&&typeof e.type=="object"){const n=e.props||{},r={};Object.keys(n).forEach(a=>{r[Yi(a)]=n[a]});const o=e.type.props||{};Object.keys(o).forEach(a=>{const i=uF(o,r,a,r[a]);(i!==void 0||a in r)&&(t[a]=i)})}return t},zT=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o;if(e.$){const a=e[t];if(a!==void 0)return typeof a=="function"&&r?a(n):a;o=e.$slots[t],o=r&&o?o(n):o}else if(br(e)){const a=e.props&&e.props[t];if(a!==void 0&&e.props!==null)return typeof a=="function"&&r?a(n):a;e.type===dt?o=e.children:e.children&&e.children[t]&&(o=e.children[t],o=r&&o?o(n):o)}return Array.isArray(o)&&(o=Lt(o),o=o.length===1?o[0]:o,o=o.length===0?void 0:o),o};function dS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return e.$?n=E(E({},n),e.$attrs):n=E(E({},n),e.props),Ky(n)[t?"onEvents":"events"]}function ZF(e){let n=((br(e)?e.props:e.$attrs)||{}).class||{},r={};return typeof n=="string"?n.split(" ").forEach(o=>{r[o.trim()]=!0}):Array.isArray(n)?ge(n).split(" ").forEach(o=>{r[o.trim()]=!0}):r=E(E({},r),n),r}function LT(e,t){let r=((br(e)?e.props:e.$attrs)||{}).style||{};if(typeof r=="string")r=YF(r,t);else if(t&&r){const o={};return Object.keys(r).forEach(a=>o[Yi(a)]=r[a]),o}return r}function JF(e){return e.length===1&&e[0].type===dt}function QF(e){return e==null||e===""||Array.isArray(e)&&e.length===0}function uc(e){return e&&(e.type===LB||e.type===dt&&e.children.length===0||e.type===Qp&&e.children.trim()==="")}function eR(e){return e&&e.type===Qp}function nn(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=[];return e.forEach(n=>{Array.isArray(n)?t.push(...n):(n==null?void 0:n.type)===dt?t.push(...nn(n.children)):t.push(n)}),t.filter(n=>!uc(n))}function Gs(e){if(e){const t=nn(e);return t.length?t:void 0}else return e}function hn(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&typeof e.type!="symbol"}function wn(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";var r,o;return(r=t[n])!==null&&r!==void 0?r:(o=e[n])===null||o===void 0?void 0:o.call(e)}const Qr=he({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const r=_t({width:0,height:0,offsetHeight:0,offsetWidth:0});let o=null,a=null;const i=()=>{a&&(a.disconnect(),a=null)},l=c=>{const{onResize:d}=e,f=c[0].target,{width:p,height:v}=f.getBoundingClientRect(),{offsetWidth:m,offsetHeight:h}=f,g=Math.floor(p),x=Math.floor(v);if(r.width!==g||r.height!==x||r.offsetWidth!==m||r.offsetHeight!==h){const y={width:g,height:x,offsetWidth:m,offsetHeight:h};E(r,y),d&&Promise.resolve().then(()=>{d(E(E({},y),{offsetWidth:m,offsetHeight:h}),f)})}},s=Kn(),u=()=>{const{disabled:c}=e;if(c){i();return}const d=yr(s);d!==o&&(i(),o=d),!a&&d&&(a=new Vy(l),a.observe(d))};return Qe(()=>{u()}),Sr(()=>{u()}),Cr(()=>{i()}),Ne(()=>e.disabled,()=>{u()},{flush:"post"}),()=>{var c;return(c=n.default)===null||c===void 0?void 0:c.call(n)[0]}}});let kT=e=>setTimeout(e,16),HT=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(kT=e=>window.requestAnimationFrame(e),HT=e=>window.cancelAnimationFrame(e));let fS=0;const qy=new Map;function jT(e){qy.delete(e)}function tt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;fS+=1;const n=fS;function r(o){if(o===0)jT(n),e();else{const a=kT(()=>{r(o-1)});qy.set(n,a)}}return r(t),n}tt.cancel=e=>{const t=qy.get(e);return jT(t),HT(t)};function Dg(e){let t;const n=o=>()=>{t=null,e(...o)},r=function(){if(t==null){for(var o=arguments.length,a=new Array(o),i=0;i{tt.cancel(t),t=null},r}const Un=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function Vi(){return{type:[Function,Array]}}function We(e){return{type:Object,default:e}}function Pe(e){return{type:Boolean,default:e}}function Oe(e){return{type:Function,default:e}}function jt(e,t){const n={validator:()=>!0,default:e};return n}function Zn(){return{validator:()=>!0}}function bt(e){return{type:Array,default:e}}function Ue(e){return{type:String,default:e}}function Xe(e,t){return e?{type:e,default:t}:jt(t)}let VT=!1;try{let e=Object.defineProperty({},"passive",{get(){VT=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}const Dn=VT;function en(e,t,n,r){if(e&&e.addEventListener){let o=r;o===void 0&&Dn&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(o={passive:!1}),e.addEventListener(t,n,o)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}function Lc(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function pS(e,t,n){if(n!==void 0&&t.top>e.top-n)return`${n+t.top}px`}function mS(e,t,n){if(n!==void 0&&t.bottomr.target===e);n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},du.push(n),WT.forEach(r=>{n.eventHandlers[r]=en(e,r,()=>{n.affixList.forEach(o=>{const{lazyUpdatePosition:a}=o.exposed;a()},(r==="touchstart"||r==="touchmove")&&Dn?{passive:!0}:!1)})}))}function hS(e){const t=du.find(n=>{const r=n.affixList.some(o=>o===e);return r&&(n.affixList=n.affixList.filter(o=>o!==e)),r});t&&t.affixList.length===0&&(du=du.filter(n=>n!==t),WT.forEach(n=>{const r=t.eventHandlers[n];r&&r.remove&&r.remove()}))}const Gy="anticon",UT=Symbol("GlobalFormContextKey"),nR=e=>{it(UT,e)},rR=()=>lt(UT,{validateMessages:z(()=>{})}),oR=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:We(),input:We(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:We(),pageHeader:We(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String},space:We(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:We(),pagination:We(),theme:We(),select:We()}),Xy=Symbol("configProvider"),KT={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:z(()=>Gy),getPopupContainer:z(()=>()=>document.body)},om=()=>lt(Xy,KT),aR=e=>it(Xy,e),qT=Symbol("DisabledContextKey"),Fr=()=>lt(qT,be(void 0)),GT=e=>{const t=Fr();return it(qT,z(()=>{var n;return(n=e.value)!==null&&n!==void 0?n:t.value})),e},XT={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"},iR={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"},lR=iR,sR={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},YT=sR,uR={lang:E({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"]},lR),timePickerLocale:E({},YT)},Pu=uR,Ar="${label} is not a valid ${type}",cR={locale:"en",Pagination:XT,DatePicker:Pu,TimePicker:YT,Calendar:Pu,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:Ar,method:Ar,array:Ar,object:Ar,number:Ar,date:Ar,boolean:Ar,integer:Ar,float:Ar,regexp:Ar,email:Ar,url:Ar,hex:Ar},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"}},cr=cR,Zi=he({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:n}=t;const r=lt("localeData",{}),o=z(()=>{const{componentName:i="global",defaultLocale:l}=e,s=l||cr[i||"global"],{antLocale:u}=r,c=i&&u?u[i]:{};return E(E({},typeof s=="function"?s():s),c||{})}),a=z(()=>{const{antLocale:i}=r,l=i&&i.locale;return i&&i.exist&&!l?cr.locale:l});return()=>{const i=e.children||n.default,{antLocale:l}=r;return i==null?void 0:i(o.value,a.value,l)}}});function ro(e,t,n){const r=lt("localeData",{});return[z(()=>{const{antLocale:a}=r,i=xn(t)||cr[e||"global"],l=e&&a?a[e]:{};return E(E(E({},typeof i=="function"?i():i),l||{}),xn(n)||{})})]}function Yy(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}class dR{constructor(){this.cache=new Map}get(t){return this.cache.get(Array.isArray(t)?t.join("%"):t)||null}update(t,n){const r=Array.isArray(t)?t.join("%"):t,o=this.cache.get(r),a=n(o);a===null?this.cache.delete(r):this.cache.set(r,a)}}const fR=dR,Zy="data-token-hash",_i="data-css-hash",fu="__cssinjs_instance__",zf=Math.random().toString(12).slice(2);function Jy(){if(typeof document<"u"&&document.head&&document.body){const e=document.body.querySelectorAll(`style[${_i}]`)||[],{firstChild:t}=document.head;Array.from(e).forEach(r=>{r[fu]=r[fu]||zf,document.head.insertBefore(r,t)});const n={};Array.from(document.querySelectorAll(`style[${_i}]`)).forEach(r=>{var o;const a=r.getAttribute(_i);n[a]?r[fu]===zf&&((o=r.parentNode)===null||o===void 0||o.removeChild(r)):n[a]=!0})}return new fR}const ZT=Symbol("StyleContextKey"),Qy={cache:Jy(),defaultCache:!0,hashPriority:"low"},am=()=>lt(ZT,pe(E({},Qy))),JT=e=>{const t=am(),n=pe(E({},Qy));return Ne([e,t],()=>{const r=E({},t.value),o=xn(e);Object.keys(o).forEach(i=>{const l=o[i];o[i]!==void 0&&(r[i]=l)});const{cache:a}=o;r.cache=r.cache||Jy(),r.defaultCache=!a&&t.value.defaultCache,n.value=r},{immediate:!0}),it(ZT,n),n},pR=()=>({autoClear:Pe(),mock:Ue(),cache:We(),defaultCache:Pe(),hashPriority:Ue(),container:Xe(),ssrInline:Pe(),transformers:bt(),linters:bt()}),mR=rn(he({name:"AStyleProvider",inheritAttrs:!1,props:at(pR(),Qy),setup(e,t){let{slots:n}=t;return JT(e),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}));function QT(e,t,n,r){const o=am(),a=pe(""),i=pe();Je(()=>{a.value=[e,...t.value].join("%")});const l=s=>{o.value.cache.update(s,u=>{const[c=0,d]=u||[];return c-1===0?(r==null||r(d,!1),null):[c-1,d]})};return Ne(a,(s,u)=>{u&&l(u),o.value.cache.update(s,c=>{const[d=0,f]=c||[],v=f||n();return[d+1,v]}),i.value=o.value.cache.get(a.value)[1]},{immediate:!0}),st(()=>{l(a.value)}),i}function Co(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ua(e,t){return e&&e.contains?e.contains(t):!1}const gS="data-vc-order",vR="vc-util-key",Ag=new Map;function eM(){let{mark:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:vR}function im(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function hR(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function tM(e){return Array.from((Ag.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function nM(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Co())return null;const{csp:n,prepend:r}=t,o=document.createElement("style");o.setAttribute(gS,hR(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;const a=im(t),{firstChild:i}=a;if(r){if(r==="queue"){const l=tM(a).filter(s=>["prepend","prependQueue"].includes(s.getAttribute(gS)));if(l.length)return a.insertBefore(o,l[l.length-1].nextSibling),o}a.insertBefore(o,i)}else a.appendChild(o);return o}function rM(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=im(t);return tM(n).find(r=>r.getAttribute(eM(t))===e)}function Lf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=rM(e,t);n&&im(t).removeChild(n)}function gR(e,t){const n=Ag.get(e);if(!n||!Ua(document,n)){const r=nM("",t),{parentNode:o}=r;Ag.set(e,o),e.removeChild(r)}}function Iu(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var r,o,a;const i=im(n);gR(i,n);const l=rM(t,n);if(l)return!((r=n.csp)===null||r===void 0)&&r.nonce&&l.nonce!==((o=n.csp)===null||o===void 0?void 0:o.nonce)&&(l.nonce=(a=n.csp)===null||a===void 0?void 0:a.nonce),l.innerHTML!==e&&(l.innerHTML=e),l;const s=nM(e,n);return s.setAttribute(eM(n),t),s}function kf(e){let t="";return Object.keys(e).forEach(n=>{const r=e[n];t+=n,r&&typeof r=="object"?t+=kf(r):t+=r}),t}function yR(e,t){return Yy(`${t}_${kf(e)}`)}const pu=`layer-${Date.now()}-${Math.random()}`.replace(/\./g,""),oM="903px";function bR(e,t){var n;if(Co()){Iu(e,pu);const r=document.createElement("div");r.style.position="fixed",r.style.left="0",r.style.top="0",t==null||t(r),document.body.appendChild(r);const o=getComputedStyle(r).width===oM;return(n=r.parentNode)===null||n===void 0||n.removeChild(r),Lf(pu),o}return!1}let Gv;function xR(){return Gv===void 0&&(Gv=bR(`@layer ${pu} { .${pu} { width: ${oM}!important; } }`,e=>{e.className=pu})),Gv}const yS={},wR="css",Di=new Map;function SR(e){Di.set(e,(Di.get(e)||0)+1)}function CR(e){typeof document<"u"&&document.querySelectorAll(`style[${Zy}="${e}"]`).forEach(n=>{var r;n[fu]===zf&&((r=n.parentNode)===null||r===void 0||r.removeChild(n))})}function $R(e){Di.set(e,(Di.get(e)||0)-1);const t=Array.from(Di.keys()),n=t.filter(r=>(Di.get(r)||0)<=0);n.length{CR(r),Di.delete(r)})}function aM(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:be({});const r=z(()=>E({},...t.value)),o=z(()=>kf(r.value)),a=z(()=>kf(n.value.override||yS));return QT("token",z(()=>[n.value.salt||"",e.value.id,o.value,a.value]),()=>{const{salt:l="",override:s=yS,formatToken:u}=n.value,c=e.value.getDerivativeToken(r.value);let d=E(E({},c),s);u&&(d=u(d));const f=yR(d,l);d._tokenKey=f,SR(f);const p=`${wR}-${Yy(f)}`;return d._hashId=p,[d,p]},l=>{$R(l[0]._tokenKey)})}var ER={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},iM="comm",lM="rule",sM="decl",DR="@import",AR="@keyframes",OR="@layer",TR=Math.abs,eb=String.fromCharCode;function uM(e){return e.trim()}function kd(e,t,n){return e.replace(t,n)}function MR(e,t){return e.indexOf(t)}function _u(e,t){return e.charCodeAt(t)|0}function Bu(e,t,n){return e.slice(t,n)}function oa(e){return e.length}function NR(e){return e.length}function kc(e,t){return t.push(e),e}var lm=1,is=1,cM=0,eo=0,An=0,Cs="";function tb(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:lm,column:is,length:i,return:"",siblings:l}}function PR(){return An}function IR(){return An=eo>0?_u(Cs,--eo):0,is--,An===10&&(is=1,lm--),An}function mo(){return An=eo2||Og(An)>3?"":" "}function RR(e,t){for(;--t&&mo()&&!(An<48||An>102||An>57&&An<65||An>70&&An<97););return sm(e,Hd()+(t<6&&Bi()==32&&mo()==32))}function Tg(e){for(;mo();)switch(An){case e:return eo;case 34:case 39:e!==34&&e!==39&&Tg(An);break;case 40:e===41&&Tg(e);break;case 92:mo();break}return eo}function zR(e,t){for(;mo()&&e+An!==47+10;)if(e+An===42+42&&Bi()===47)break;return"/*"+sm(t,eo-1)+"*"+eb(e===47?e:mo())}function LR(e){for(;!Og(Bi());)mo();return sm(e,eo)}function kR(e){return BR(jd("",null,null,null,[""],e=_R(e),0,[0],e))}function jd(e,t,n,r,o,a,i,l,s){for(var u=0,c=0,d=i,f=0,p=0,v=0,m=1,h=1,g=1,x=0,y="",w=o,b=a,S=r,$=y;h;)switch(v=x,x=mo()){case 40:if(v!=108&&_u($,d-1)==58){MR($+=kd(Xv(x),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:$+=Xv(x);break;case 9:case 10:case 13:case 32:$+=FR(v);break;case 92:$+=RR(Hd()-1,7);continue;case 47:switch(Bi()){case 42:case 47:kc(HR(zR(mo(),Hd()),t,n,s),s);break;default:$+="/"}break;case 123*m:l[u++]=oa($)*g;case 125*m:case 59:case 0:switch(x){case 0:case 125:h=0;case 59+c:g==-1&&($=kd($,/\f/g,"")),p>0&&oa($)-d&&kc(p>32?xS($+";",r,n,d-1,s):xS(kd($," ","")+";",r,n,d-2,s),s);break;case 59:$+=";";default:if(kc(S=bS($,t,n,u,c,o,l,y,w=[],b=[],d,a),a),x===123)if(c===0)jd($,t,S,S,w,a,d,l,b);else switch(f===99&&_u($,3)===110?100:f){case 100:case 108:case 109:case 115:jd(e,S,S,r&&kc(bS(e,S,S,0,0,o,l,y,o,w=[],d,b),b),o,b,d,l,r?w:b);break;default:jd($,S,S,S,[""],b,0,l,b)}}u=c=p=0,m=g=1,y=$="",d=i;break;case 58:d=1+oa($),p=v;default:if(m<1){if(x==123)--m;else if(x==125&&m++==0&&IR()==125)continue}switch($+=eb(x),x*m){case 38:g=c>0?1:($+="\f",-1);break;case 44:l[u++]=(oa($)-1)*g,g=1;break;case 64:Bi()===45&&($+=Xv(mo())),f=Bi(),c=d=oa(y=$+=LR(Hd())),x++;break;case 45:v===45&&oa($)==2&&(m=0)}}return a}function bS(e,t,n,r,o,a,i,l,s,u,c,d){for(var f=o-1,p=o===0?a:[""],v=NR(p),m=0,h=0,g=0;m0?p[x]+" "+y:kd(y,/&\f/g,p[x])))&&(s[g++]=w);return tb(e,t,n,o===0?lM:l,s,u,c,d)}function HR(e,t,n,r){return tb(e,t,n,iM,eb(PR()),Bu(e,2,-2),0,r)}function xS(e,t,n,r,o){return tb(e,t,n,sM,Bu(e,0,r),Bu(e,r+1,-1),r,o)}function Mg(e,t){for(var n="",r=0;r ")}`:""}`)}function KR(e){var t;return(((t=e.match(/:not\(([^)]*)\)/))===null||t===void 0?void 0:t[1])||"").split(/(\[[^[]*])|(?=[.#])/).filter(o=>o).length>1}function qR(e){return e.parentSelectors.reduce((t,n)=>t?n.includes("&")?n.replace(/&/g,t):`${t} ${n}`:n,"")}const GR=(e,t,n)=>{const o=qR(n).match(/:not\([^)]*\)/g)||[];o.length>0&&o.some(KR)&&ru("Concat ':not' selector not support in legacy browsers.",n)},XR=GR,YR=(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":ru(`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);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof t=="string"){const r=t.split(" ").map(o=>o.trim());r.length===4&&r[1]!==r[3]&&ru(`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":(t==="left"||t==="right")&&ru(`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);return;case"borderRadius":typeof t=="string"&&t.split("/").map(a=>a.trim()).reduce((a,i)=>{if(a)return a;const l=i.split(" ").map(s=>s.trim());return l.length>=2&&l[0]!==l[1]||l.length===3&&l[1]!==l[2]||l.length===4&&l[2]!==l[3]?!0:a},!1)&&ru(`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);return}},ZR=YR,SS=Co(),JR="_skip_check_";function CS(e){return Mg(kR(e),jR).replace(/\{%%%\:[^;];}/g,";")}function QR(e){return typeof e=="object"&&e&&JR in e}function e9(e,t,n){if(!t)return e;const r=`.${t}`,o=n==="low"?`:where(${r})`:r;return e.split(",").map(i=>{var l;const s=i.trim().split(/\s+/);let u=s[0]||"";const c=((l=u.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return u=`${c}${o}${u.slice(c.length)}`,[u,...s.slice(1)].join(" ")}).join(",")}const $S=new Set,Ng=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:n,injectHash:r,parentSelectors:o}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:a,layer:i,path:l,hashPriority:s,transformers:u=[],linters:c=[]}=t;let d="",f={};function p(h){const g=h.getName(a);if(!f[g]){const[x]=Ng(h.style,t,{root:!1,parentSelectors:o});f[g]=`@keyframes ${h.getName(a)}${x}`}}function v(h){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return h.forEach(x=>{Array.isArray(x)?v(x,g):x&&g.push(x)}),g}if(v(Array.isArray(e)?e:[e]).forEach(h=>{const g=typeof h=="string"&&!n?{}:h;if(typeof g=="string")d+=`${g} `;else if(g._keyframe)p(g);else{const x=u.reduce((y,w)=>{var b;return((b=w==null?void 0:w.visit)===null||b===void 0?void 0:b.call(w,y))||y},g);Object.keys(x).forEach(y=>{var w;const b=x[y];if(typeof b=="object"&&b&&(y!=="animationName"||!b._keyframe)&&!QR(b)){let S=!1,$=y.trim(),D=!1;(n||r)&&a?$.startsWith("@")?S=!0:$=e9(y,a,s):n&&!a&&($==="&"||$==="")&&($="",D=!0);const[O,A]=Ng(b,t,{root:D,injectHash:S,parentSelectors:[...o,$]});f=E(E({},f),A),d+=`${$}${O}`}else{const S=(w=b==null?void 0:b.value)!==null&&w!==void 0?w:b,$=y.replace(/[A-Z]/g,O=>`-${O.toLowerCase()}`);let D=S;!ER[y]&&typeof D=="number"&&D!==0&&(D=`${D}px`),y==="animationName"&&(b!=null&&b._keyframe)&&(p(b),D=b.getName(a)),d+=`${$}:${D};`}})}}),!n)d=`{${d}}`;else if(i&&xR()){const h=i.split(",");d=`@layer ${h[h.length-1].trim()} {${d}}`,h.length>1&&(d=`@layer ${i}{%%%:%}${d}`)}return[d,f]};function t9(e,t){return Yy(`${e.join("%")}${t}`)}function Hf(e,t){const n=am(),r=z(()=>e.value.token._tokenKey),o=z(()=>[r.value,...e.value.path]);let a=SS;return QT("style",o,()=>{const i=t(),{hashPriority:l,container:s,transformers:u,linters:c}=n.value,{path:d,hashId:f,layer:p}=e.value,[v,m]=Ng(i,{hashId:f,hashPriority:l,layer:p,path:d.join("-"),transformers:u,linters:c}),h=CS(v),g=t9(o.value,h);if(a){const x=Iu(h,g,{mark:_i,prepend:"queue",attachTo:s});x[fu]=zf,x.setAttribute(Zy,r.value),Object.keys(m).forEach(y=>{$S.has(y)||($S.add(y),Iu(CS(m[y]),`_effect-${y}`,{mark:_i,prepend:"queue",attachTo:s}))})}return[h,r.value,g]},(i,l)=>{let[,,s]=i;(l||n.value.autoClear)&&SS&&Lf(s,{mark:_i})}),i=>i}function n9(e){const t=Array.from(e.cache.keys()).filter(r=>r.startsWith("style%"));let n="";return t.forEach(r=>{const[o,a,i]=e.cache.get(r)[1];n+=``}),n}class r9{constructor(t,n){this._keyframe=!0,this.name=t,this.style=n}getName(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?`${t}-${this.name}`:this.name}}const ft=r9;function o9(e,t){if(e.length!==t.length)return!1;for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,r={map:this.cache};return t.forEach(o=>{var a;r?r=(a=r==null?void 0:r.map)===null||a===void 0?void 0:a.get(o):r=void 0}),r!=null&&r.value&&n&&(r.value[1]=this.cacheCallTimes++),r==null?void 0:r.value}get(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>ls.MAX_CACHE_SIZE+ls.MAX_CACHE_OFFSET){const[o]=this.keys.reduce((a,i)=>{const[,l]=a;return this.internalGet(i)[1]{if(a===t.length-1)r.set(o,{value:[n,this.cacheCallTimes++]});else{const i=r.get(o);i?i.map||(i.map=new Map):r.set(o,{map:new Map}),r=r.get(o).map}})}deleteByPath(t,n){var r;const o=t.get(n[0]);if(n.length===1)return o.map?t.set(n[0],{map:o.map}):t.delete(n[0]),(r=o.value)===null||r===void 0?void 0:r[0];const a=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&t.delete(n[0]),a}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!o9(n,t)),this.deleteByPath(this.cache,t)}}ls.MAX_CACHE_SIZE=20;ls.MAX_CACHE_OFFSET=5;function a9(){}let i9=a9;const Jt=i9;let ES=0;class fM{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=ES,t.length===0&&Jt(t.length>0),ES+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const Yv=new ls;function nb(e){const t=Array.isArray(e)?e:[e];return Yv.has(t)||Yv.set(t,new fM(t)),Yv.get(t)}function l9(e){if(typeof e=="number")return[e];const t=String(e).split(/\s+/);let n="",r=0;return t.reduce((o,a)=>(a.includes("(")?(n+=a,r+=a.split("(").length-1):a.includes(")")?(n+=` ${a}`,r-=a.split(")").length-1,r===0&&(o.push(n),n="")):r>0?n+=` ${a}`:o.push(a),o),[])}function hl(e){return e.notSplit=!0,e}const s9={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:hl(["borderTop","borderBottom"]),borderBlockStart:hl(["borderTop"]),borderBlockEnd:hl(["borderBottom"]),borderInline:hl(["borderLeft","borderRight"]),borderInlineStart:hl(["borderLeft"]),borderInlineEnd:hl(["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 Hc(e){return{_skip_check_:!0,value:e}}const u9={visit:e=>{const t={};return Object.keys(e).forEach(n=>{const r=e[n],o=s9[n];if(o&&(typeof r=="number"||typeof r=="string")){const a=l9(r);o.length&&o.notSplit?o.forEach(i=>{t[i]=Hc(r)}):o.length===1?t[o[0]]=Hc(r):o.length===2?o.forEach((i,l)=>{var s;t[i]=Hc((s=a[l])!==null&&s!==void 0?s:a[0])}):o.length===4?o.forEach((i,l)=>{var s,u;t[i]=Hc((u=(s=a[l])!==null&&s!==void 0?s:a[l-2])!==null&&u!==void 0?u:a[0])}):t[n]=r}else t[n]=r}),t}},c9=u9,d9={Theme:fM,createTheme:nb,useStyleRegister:Hf,useCacheToken:aM,createCache:Jy,useStyleInject:am,useStyleProvider:JT,Keyframes:ft,extractStyle:n9,legacyLogicalPropertiesTransformer:c9,logicalPropertiesLinter:ZR,legacyNotSelectorLinter:XR,StyleProvider:mR},f9=d9,pM="4.0.0",Fu=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Wn(e,t){p9(e)&&(e="100%");var n=m9(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function jc(e){return Math.min(1,Math.max(0,e))}function p9(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function m9(e){return typeof e=="string"&&e.indexOf("%")!==-1}function mM(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Vc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ni(e){return e.length===1?"0"+e:String(e)}function v9(e,t,n){return{r:Wn(e,255)*255,g:Wn(t,255)*255,b:Wn(n,255)*255}}function DS(e,t,n){e=Wn(e,255),t=Wn(t,255),n=Wn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,l=(r+o)/2;if(r===o)i=0,a=0;else{var s=r-o;switch(i=l>.5?s/(2-r-o):s/(r+o),r){case e:a=(t-n)/s+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function h9(e,t,n){var r,o,a;if(e=Wn(e,360),t=Wn(t,100),n=Wn(n,100),t===0)o=n,a=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=Zv(l,i,e+1/3),o=Zv(l,i,e),a=Zv(l,i,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function Pg(e,t,n){e=Wn(e,255),t=Wn(t,255),n=Wn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,l=r-o,s=r===0?0:l/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var _g={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 Ml(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,l=!1;return typeof e=="string"&&(e=C9(e)),typeof e=="object"&&(Yo(e.r)&&Yo(e.g)&&Yo(e.b)?(t=v9(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Yo(e.h)&&Yo(e.s)&&Yo(e.v)?(r=Vc(e.s),o=Vc(e.v),t=g9(e.h,r,o),i=!0,l="hsv"):Yo(e.h)&&Yo(e.s)&&Yo(e.l)&&(r=Vc(e.s),a=Vc(e.l),t=h9(e.h,r,a),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=mM(n),{ok:i,format:e.format||l,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 w9="[-\\+]?\\d+%?",S9="[-\\+]?\\d*\\.\\d+%?",Ga="(?:".concat(S9,")|(?:").concat(w9,")"),Jv="[\\s|\\(]+(".concat(Ga,")[,|\\s]+(").concat(Ga,")[,|\\s]+(").concat(Ga,")\\s*\\)?"),Qv="[\\s|\\(]+(".concat(Ga,")[,|\\s]+(").concat(Ga,")[,|\\s]+(").concat(Ga,")[,|\\s]+(").concat(Ga,")\\s*\\)?"),so={CSS_UNIT:new RegExp(Ga),rgb:new RegExp("rgb"+Jv),rgba:new RegExp("rgba"+Qv),hsl:new RegExp("hsl"+Jv),hsla:new RegExp("hsla"+Qv),hsv:new RegExp("hsv"+Jv),hsva:new RegExp("hsva"+Qv),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 C9(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(_g[e])e=_g[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=so.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=so.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=so.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=so.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=so.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=so.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=so.hex8.exec(e),n?{r:Nr(n[1]),g:Nr(n[2]),b:Nr(n[3]),a:AS(n[4]),format:t?"name":"hex8"}:(n=so.hex6.exec(e),n?{r:Nr(n[1]),g:Nr(n[2]),b:Nr(n[3]),format:t?"name":"hex"}:(n=so.hex4.exec(e),n?{r:Nr(n[1]+n[1]),g:Nr(n[2]+n[2]),b:Nr(n[3]+n[3]),a:AS(n[4]+n[4]),format:t?"name":"hex8"}:(n=so.hex3.exec(e),n?{r:Nr(n[1]+n[1]),g:Nr(n[2]+n[2]),b:Nr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Yo(e){return Boolean(so.CSS_UNIT.exec(String(e)))}var $t=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=x9(t)),this.originalInput=t;var o=Ml(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.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=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,a=t.r/255,i=t.g/255,l=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=mM(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Pg(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Pg(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=DS(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=DS(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Ig(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),y9(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},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 t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Wn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Wn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Ig(this.r,this.g,this.b,!1),n=0,r=Object.entries(_g);n=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||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){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=jc(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=jc(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=jc(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=jc(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+l)%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(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},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(),r=n.h,o=[this],a=360/t,i=1;i=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Wc*t:Math.round(e.h)+Wc*t:r=n?Math.round(e.h)+Wc*t:Math.round(e.h)-Wc*t,r<0?r+=360:r>=360&&(r-=360),r}function NS(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-OS*t:t===hM?r=e.s+OS:r=e.s+$9*t,r>1&&(r=1),n&&t===vM&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function PS(e,t,n){var r;return n?r=e.v+E9*t:r=e.v-D9*t,r>1&&(r=1),Number(r.toFixed(2))}function ga(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Ml(e),o=vM;o>0;o-=1){var a=TS(r),i=Uc(Ml({h:MS(a,o,!0),s:NS(a,o,!0),v:PS(a,o,!0)}));n.push(i)}n.push(Uc(r));for(var l=1;l<=hM;l+=1){var s=TS(r),u=Uc(Ml({h:MS(s,l),s:NS(s,l),v:PS(s,l)}));n.push(u)}return t.theme==="dark"?A9.map(function(c){var d=c.index,f=c.opacity,p=Uc(O9(Ml(t.backgroundColor||"#141414"),Ml(n[d]),f*100));return p}):n}var Vl={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"},Vd={},eh={};Object.keys(Vl).forEach(function(e){Vd[e]=ga(Vl[e]),Vd[e].primary=Vd[e][5],eh[e]=ga(Vl[e],{theme:"dark",backgroundColor:"#141414"}),eh[e].primary=eh[e][5]});var T9=Vd.gold;const M9=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},gM=M9;function N9(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)}}const rb={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"},P9=E(E({},rb),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', '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}),cm=P9;function yM(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:l,colorPrimary:s,colorBgBase:u,colorTextBase:c}=e,d=n(s),f=n(o),p=n(a),v=n(i),m=n(l),h=r(u,c);return E(E({},h),{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:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[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:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[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 $t("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const I9=e=>{let t=e,n=e,r=e,o=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?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},_9=I9;function B9(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return E({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},_9(r))}const Zo=(e,t)=>new $t(e).setAlpha(t).toRgbString(),Xs=(e,t)=>new $t(e).darken(t).toHexString(),F9=e=>{const t=ga(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]}},R9=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Zo(r,.88),colorTextSecondary:Zo(r,.65),colorTextTertiary:Zo(r,.45),colorTextQuaternary:Zo(r,.25),colorFill:Zo(r,.15),colorFillSecondary:Zo(r,.06),colorFillTertiary:Zo(r,.04),colorFillQuaternary:Zo(r,.02),colorBgLayout:Xs(n,4),colorBgContainer:Xs(n,0),colorBgElevated:Xs(n,0),colorBgSpotlight:Zo(r,.85),colorBorder:Xs(n,15),colorBorderSecondary:Xs(n,6)}};function z9(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,a=e*Math.pow(2.71828,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const L9=e=>{const t=z9(e),n=t.map(o=>o.size),r=t.map(o=>o.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:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},bM=L9;function dm(e){const t=Object.keys(rb).map(n=>{const r=ga(e[n]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=E(E({},n),r),n),{});return E(E(E(E(E(E(E({},e),t),yM(e,{generateColorPalettes:F9,generateNeutralColorPalettes:R9})),bM(e.fontSize)),N9(e)),gM(e)),B9(e))}function th(e){return e>=0&&e<=255}function Kc(e,t){const{r:n,g:r,b:o,a}=new $t(e).toRgb();if(a<1)return e;const{r:i,g:l,b:s}=new $t(t).toRgb();for(let u=.01;u<=1;u+=.01){const c=Math.round((n-i*(1-u))/u),d=Math.round((r-l*(1-u))/u),f=Math.round((o-s*(1-u))/u);if(th(c)&&th(d)&&th(f))return new $t({r:c,g:d,b:f,a:Math.round(u*100)/100}).toRgbString()}return new $t({r:n,g:r,b:o,a:1}).toRgbString()}var k9=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{delete r[p]});const o=E(E({},n),r),a=480,i=576,l=768,s=992,u=1200,c=1600,d=2e3;return E(E(E({},o),{colorLink:o.colorInfoText,colorLinkHover:o.colorInfoHover,colorLinkActive:o.colorInfoActive,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Kc(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Kc(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Kc(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Kc(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:` 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,boxShadowSecondary:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTertiary:` 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,screenXXLMax:d-1,screenXXXL:d,screenXXXLMin:d,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:` 0 1px 2px -2px ${new $t("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new $t("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new $t("rgba(0, 0, 0, 0.09)").toRgbString()} `,boxShadowDrawerRight:` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerLeft:` 6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerUp:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerDown:` 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) `,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)"}),r)}const fm=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),ob=(e,t,n,r,o)=>{const a=e/2,i=a-n*(Math.sqrt(2)-1),l=a,s=a+n*(1-1/Math.sqrt(2)),u=a-n*(1-1/Math.sqrt(2)),c=2*a-t*(1/Math.sqrt(2)),d=t*(1/Math.sqrt(2)),f=4*a-c,p=d,v=4*a-s,m=u,h=4*a-i,g=l;return{borderRadius:{_skip_check_:!0,value:`0 0 ${t}px`},pointerEvents:"none",width:e*2,height:e*2,overflow:"hidden","&::after":{content:'""',position:"absolute",width:e/Math.sqrt(2),height:e/Math.sqrt(2),bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e*2,height:e/2,background:r,clipPath:`path('M ${i} ${l} A ${n} ${n} 0 0 0 ${s} ${u} L ${c} ${d} A ${t} ${t} 0 0 1 ${f} ${p} L ${v} ${m} A ${n} ${n} 0 0 0 ${h} ${g} Z')`,content:'""'}}};function jf(e,t){return Fu.reduce((n,r)=>{const o=e[`${r}-1`],a=e[`${r}-3`],i=e[`${r}-6`],l=e[`${r}-7`];return E(E({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l}))},{})}const gn={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},rt=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),Ji=()=>({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"}}),yo=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),j9=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, &:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),V9=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},ya=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ba=e=>({"&:focus-visible":E({},ya(e))});function nt(e,t,n){return r=>{const o=z(()=>r==null?void 0:r.value),[a,i,l]=$a(),{getPrefixCls:s,iconPrefixCls:u}=om(),c=z(()=>s()),d=z(()=>({theme:a.value,token:i.value,hashId:l.value,path:["Shared",c.value]}));Hf(d,()=>[{"&":j9(i.value)}]);const f=z(()=>({theme:a.value,token:i.value,hashId:l.value,path:[e,o.value,u.value]}));return[Hf(f,()=>{const{token:p,flush:v}=U9(i.value),m=typeof n=="function"?n(p):n,h=E(E({},m),i.value[e]),g=`.${o.value}`,x=qe(p,{componentCls:g,prefixCls:o.value,iconCls:`.${u.value}`,antCls:`.${c.value}`},h),y=t(x,{hashId:l.value,prefixCls:o.value,rootPrefixCls:c.value,iconPrefixCls:u.value,overrideComponentToken:i.value[e]});return v(e,h),[V9(i.value,o.value),y]}),l]}}const xM=typeof CSSINJS_STATISTIC<"u";let Bg=!0;function qe(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]})})}),Bg=!0,r}function W9(){}function U9(e){let t,n=e,r=W9;return xM&&(t=new Set,n=new Proxy(e,{get(o,a){return Bg&&t.add(a),o[a]}}),r=(o,a)=>{Array.from(t)}),{token:n,keys:t,flush:r}}function Ru(e){if(!ji(e))return _t(e);const t=new Proxy({},{get(n,r,o){return Reflect.get(e.value,r,o)},set(n,r,o){return e.value[r]=o,!0},deleteProperty(n,r){return Reflect.deleteProperty(e.value,r)},has(n,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return _t(t)}const K9=nb(dm),Vf={token:cm,hashed:!0},wM=Symbol("DesignTokenContext"),SM=be(),q9=e=>{it(wM,e),Je(()=>{SM.value=e})},G9=he({props:{value:We()},setup(e,t){let{slots:n}=t;return q9(Ru(z(()=>e.value))),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function $a(){const e=lt(wM,SM.value||Vf),t=z(()=>`${pM}-${e.hashed||""}`),n=z(()=>e.theme||K9),r=aM(n,z(()=>[cm,e.token]),z(()=>({salt:t.value,override:E({override:e.token},e.components),formatToken:H9})));return[n,z(()=>r.value[0]),z(()=>e.hashed?r.value[1]:"")]}const CM=he({compatConfig:{MODE:3},setup(){const[,e]=$a(),t=z(()=>new $t(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>C("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[C("g",{fill:"none","fill-rule":"evenodd"},[C("g",{transform:"translate(24 31.67)"},[C("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),C("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),C("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),C("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),C("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)]),C("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),C("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[C("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),C("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});CM.PRESENTED_IMAGE_DEFAULT=!0;const X9=CM,$M=he({compatConfig:{MODE:3},setup(){const[,e]=$a(),t=z(()=>{const{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:a}=e.value;return{borderColor:new $t(n).onBackground(a).toHexString(),shadowColor:new $t(r).onBackground(a).toHexString(),contentColor:new $t(o).onBackground(a).toHexString()}});return()=>C("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[C("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[C("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),C("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[C("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),C("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)])])])}});$M.PRESENTED_IMAGE_SIMPLE=!0;const Y9=$M,Z9=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},J9=nt("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=qe(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[Z9(r)]});var Q9=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o({prefixCls:String,imageStyle:We(),image:jt(),description:jt()}),ab=he({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:ez(),setup(e,t){let{slots:n={},attrs:r}=t;const{direction:o,prefixCls:a}=He("empty",e),[i,l]=J9(a);return()=>{var s,u;const c=a.value,d=E(E({},e),r),{image:f=((s=n.image)===null||s===void 0?void 0:s.call(n))||EM,description:p=((u=n.description)===null||u===void 0?void 0:u.call(n))||void 0,imageStyle:v,class:m=""}=d,h=Q9(d,["image","description","imageStyle","class"]);return i(C(Zi,{componentName:"Empty",children:g=>{const x=typeof p<"u"?p:g.description,y=typeof x=="string"?x:"empty";let w=null;return typeof f=="string"?w=C("img",{alt:y,src:f},null):w=f,C("div",j({class:ge(c,m,l.value,{[`${c}-normal`]:f===DM,[`${c}-rtl`]:o.value==="rtl"})},h),[C("div",{class:`${c}-image`,style:v},[w]),x&&C("p",{class:`${c}-description`},[x]),n.default&&C("div",{class:`${c}-footer`},[nn(n.default())])])}},null))}}});ab.PRESENTED_IMAGE_DEFAULT=EM;ab.PRESENTED_IMAGE_SIMPLE=DM;const Ka=rn(ab),ib=e=>{const{prefixCls:t}=He("empty",e);return(r=>{switch(r){case"Table":case"List":return C(Ka,{image:Ka.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return C(Ka,{image:Ka.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return C(Ka,null,null)}})(e.componentName)};function tz(e){return C(ib,{componentName:e},null)}const AM=Symbol("SizeContextKey"),OM=()=>lt(AM,be(void 0)),TM=e=>{const t=OM();return it(AM,z(()=>e.value||t.value)),e},He=(e,t)=>{const n=OM(),r=Fr(),o=lt(Xy,E(E({},KT),{renderEmpty:S=>Cg(ib,{componentName:S})})),a=z(()=>o.getPrefixCls(e,t.prefixCls)),i=z(()=>{var S,$;return(S=t.direction)!==null&&S!==void 0?S:($=o.direction)===null||$===void 0?void 0:$.value}),l=z(()=>{var S;return(S=t.iconPrefixCls)!==null&&S!==void 0?S:o.iconPrefixCls.value}),s=z(()=>o.getPrefixCls()),u=z(()=>{var S;return(S=o.autoInsertSpaceInButton)===null||S===void 0?void 0:S.value}),c=o.renderEmpty,d=o.space,f=o.pageHeader,p=o.form,v=z(()=>{var S,$;return(S=t.getTargetContainer)!==null&&S!==void 0?S:($=o.getTargetContainer)===null||$===void 0?void 0:$.value}),m=z(()=>{var S,$;return(S=t.getPopupContainer)!==null&&S!==void 0?S:($=o.getPopupContainer)===null||$===void 0?void 0:$.value}),h=z(()=>{var S,$;return(S=t.dropdownMatchSelectWidth)!==null&&S!==void 0?S:($=o.dropdownMatchSelectWidth)===null||$===void 0?void 0:$.value}),g=z(()=>{var S;return(t.virtual===void 0?((S=o.virtual)===null||S===void 0?void 0:S.value)!==!1:t.virtual!==!1)&&h.value!==!1}),x=z(()=>t.size||n.value),y=z(()=>{var S,$,D;return(S=t.autocomplete)!==null&&S!==void 0?S:(D=($=o.input)===null||$===void 0?void 0:$.value)===null||D===void 0?void 0:D.autocomplete}),w=z(()=>{var S;return(S=t.disabled)!==null&&S!==void 0?S:r.value}),b=z(()=>{var S;return(S=t.csp)!==null&&S!==void 0?S:o.csp});return{configProvider:o,prefixCls:a,direction:i,size:x,getTargetContainer:v,getPopupContainer:m,space:d,pageHeader:f,form:p,autoInsertSpaceInButton:u,renderEmpty:c,virtual:g,dropdownMatchSelectWidth:h,rootPrefixCls:s,getPrefixCls:o.getPrefixCls,autocomplete:y,csp:b,iconPrefixCls:l,disabled:w,select:o.select}};function pt(e,t){const n=E({},e);for(let r=0;r{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},rz=nt("Affix",e=>{const t=qe(e,{zIndexPopup:e.zIndexBase+10});return[nz(t)]});function oz(){return typeof window<"u"?window:null}var Bl;(function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"})(Bl||(Bl={}));const az=()=>({offsetTop:Number,offsetBottom:Number,target:{type:Function,default:oz},prefixCls:String,onChange:Function,onTestUpdatePosition:Function}),iz=he({compatConfig:{MODE:3},name:"AAffix",inheritAttrs:!1,props:az(),setup(e,t){let{slots:n,emit:r,expose:o,attrs:a}=t;const i=pe(),l=pe(),s=_t({affixStyle:void 0,placeholderStyle:void 0,status:Bl.None,lastAffix:!1,prevTarget:null,timeout:null}),u=Kn(),c=z(()=>e.offsetBottom===void 0&&e.offsetTop===void 0?0:e.offsetTop),d=z(()=>e.offsetBottom),f=()=>{const{status:y,lastAffix:w}=s,{target:b}=e;if(y!==Bl.Prepare||!l.value||!i.value||!b)return;const S=b();if(!S)return;const $={status:Bl.None},D=Lc(i.value);if(D.top===0&&D.left===0&&D.width===0&&D.height===0)return;const O=Lc(S),A=pS(D,O,c.value),T=mS(D,O,d.value);if(!(D.top===0&&D.left===0&&D.width===0&&D.height===0)){if(A!==void 0){const M=`${D.width}px`,B=`${D.height}px`;$.affixStyle={position:"fixed",top:A,width:M,height:B},$.placeholderStyle={width:M,height:B}}else if(T!==void 0){const M=`${D.width}px`,B=`${D.height}px`;$.affixStyle={position:"fixed",bottom:T,width:M,height:B},$.placeholderStyle={width:M,height:B}}$.lastAffix=!!$.affixStyle,w!==$.lastAffix&&r("change",$.lastAffix),E(s,$)}},p=()=>{E(s,{status:Bl.Prepare,affixStyle:void 0,placeholderStyle:void 0}),u.update()},v=Dg(()=>{p()}),m=Dg(()=>{const{target:y}=e,{affixStyle:w}=s;if(y&&w){const b=y();if(b&&i.value){const S=Lc(b),$=Lc(i.value),D=pS($,S,c.value),O=mS($,S,d.value);if(D!==void 0&&w.top===D||O!==void 0&&w.bottom===O)return}}p()});o({updatePosition:v,lazyUpdatePosition:m}),Ne(()=>e.target,y=>{const w=(y==null?void 0:y())||null;s.prevTarget!==w&&(hS(u),w&&(vS(w,u),v()),s.prevTarget=w)}),Ne(()=>[e.offsetTop,e.offsetBottom],v),Qe(()=>{const{target:y}=e;y&&(s.timeout=setTimeout(()=>{vS(y(),u),v()}))}),Sr(()=>{f()}),Cr(()=>{clearTimeout(s.timeout),hS(u),v.cancel(),m.cancel()});const{prefixCls:h}=He("affix",e),[g,x]=rz(h);return()=>{var y;const{affixStyle:w,placeholderStyle:b}=s,S=ge({[h.value]:w,[x.value]:!0}),$=pt(e,["prefixCls","offsetTop","offsetBottom","target","onChange","onTestUpdatePosition"]);return g(C(Qr,{onResize:v},{default:()=>[C("div",j(j(j({},$),a),{},{ref:i}),[w&&C("div",{style:b,"aria-hidden":"true"},null),C("div",{class:S,ref:l,style:w},[(y=n.default)===null||y===void 0?void 0:y.call(n)])])]}))}}}),MM=rn(iz);function IS(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function _S(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function nh(e,t){if(e.clientHeightt||a>e&&i=t&&l>=n?a-e-r:i>t&&ln?i-t+o:0}var BS=function(e,t){var n=window,r=t.scrollMode,o=t.block,a=t.inline,i=t.boundary,l=t.skipOverflowHiddenElements,s=typeof i=="function"?i:function(Se){return Se!==i};if(!IS(e))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],p=e;IS(p)&&s(p);){if((p=(c=(u=p).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(p);break}p!=null&&p===document.body&&nh(p)&&!nh(document.documentElement)||p!=null&&nh(p,l)&&f.push(p)}for(var v=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,x=e.getBoundingClientRect(),y=x.height,w=x.width,b=x.top,S=x.right,$=x.bottom,D=x.left,O=o==="start"||o==="nearest"?b:o==="end"?$:b+y/2,A=a==="center"?D+w/2:a==="end"?S:D,T=[],M=0;M=0&&D>=0&&$<=m&&S<=v&&b>=N&&$<=_&&D>=L&&S<=R)return T;var k=getComputedStyle(B),H=parseInt(k.borderLeftWidth,10),V=parseInt(k.borderTopWidth,10),U=parseInt(k.borderRightWidth,10),q=parseInt(k.borderBottomWidth,10),K=0,X=0,re="offsetWidth"in B?B.offsetWidth-B.clientWidth-H-U:0,ee="offsetHeight"in B?B.offsetHeight-B.clientHeight-V-q:0,G="offsetWidth"in B?B.offsetWidth===0?0:I/B.offsetWidth:0,le="offsetHeight"in B?B.offsetHeight===0?0:P/B.offsetHeight:0;if(d===B)K=o==="start"?O:o==="end"?O-m:o==="nearest"?qc(g,g+m,m,V,q,g+O,g+O+y,y):O-m/2,X=a==="start"?A:a==="center"?A-v/2:a==="end"?A-v:qc(h,h+v,v,H,U,h+A,h+A+w,w),K=Math.max(0,K+g),X=Math.max(0,X+h);else{K=o==="start"?O-N-V:o==="end"?O-_+q+ee:o==="nearest"?qc(N,_,P,V,q+ee,O,O+y,y):O-(N+P/2)+ee/2,X=a==="start"?A-L-H:a==="center"?A-(L+I/2)+re/2:a==="end"?A-R+U+re:qc(L,R,I,H,U+re,A,A+w,w);var ue=B.scrollLeft,me=B.scrollTop;O+=me-(K=Math.max(0,Math.min(me+K/le,B.scrollHeight-P/le+ee))),A+=ue-(X=Math.max(0,Math.min(ue+X/G,B.scrollWidth-I/G+re)))}T.push({el:B,top:K,left:X})}return T};function NM(e){return e===Object(e)&&Object.keys(e).length!==0}function lz(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(r){var o=r.el,a=r.top,i=r.left;o.scroll&&n?o.scroll({top:a,left:i,behavior:t}):(o.scrollTop=a,o.scrollLeft=i)})}function sz(e){return e===!1?{block:"end",inline:"nearest"}:NM(e)?e:{block:"start",inline:"nearest"}}function PM(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(NM(t)&&typeof t.behavior=="function")return t.behavior(n?BS(e,t):[]);if(n){var r=sz(t);return lz(BS(e,r),r.behavior)}}function uz(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function Fg(e){return e!=null&&e===e.window}function lb(e,t){var n,r;if(typeof window>"u")return 0;const o=t?"scrollTop":"scrollLeft";let a=0;return Fg(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[o]:(e instanceof HTMLElement||e)&&(a=e[o]),e&&!Fg(e)&&typeof a!="number"&&(a=(r=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||r===void 0?void 0:r[o]),a}function sb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,a=n(),i=lb(a,!0),l=Date.now(),s=()=>{const c=Date.now()-l,d=uz(c>o?o:c,i,e,o);Fg(a)?a.scrollTo(window.pageXOffset,d):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=d:a.scrollTop=d,c{it(IM,e)},dz=()=>lt(IM,{registerLink:Gc,unregisterLink:Gc,scrollTo:Gc,activeLink:z(()=>""),handleClick:Gc,direction:z(()=>"vertical")}),fz=cz,pz=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:r,lineWidthBold:o,colorPrimary:a,lineType:i,colorSplit:l}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,backgroundColor:"transparent",[t]:E(E({},rt(e)),{position:"relative",paddingInlineStart:o,[`${t}-link`]:{paddingBlock:e.anchorPaddingBlock,paddingInline:`${e.anchorPaddingInline}px 0`,"&-title":E(E({},gn),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",left:{_skip_check_:!0,value:0},top:0,height:"100%",borderInlineStart:`${o}px ${i} ${l}`,content:'" "'},[`${t}-ink`]:{position:"absolute",left:{_skip_check_:!0,value:0},display:"none",transform:"translateY(-50%)",transition:`top ${r} ease-in-out`,width:o,backgroundColor:a,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},mz=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:r,colorPrimary:o}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:r,backgroundColor:o}}}}},vz=nt("Anchor",e=>{const{fontSize:t,fontSizeLG:n,padding:r,paddingXXS:o}=e,a=qe(e,{holderOffsetBlock:o,anchorPaddingBlock:o,anchorPaddingBlockSecondary:o/2,anchorPaddingInline:r,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[pz(a),mz(a)]}),hz=()=>({prefixCls:String,href:String,title:jt(),target:String,customTitleProps:We()}),ub=he({compatConfig:{MODE:3},name:"AAnchorLink",inheritAttrs:!1,props:at(hz(),{href:"#"}),slots:Object,setup(e,t){let{slots:n,attrs:r}=t,o=null;const{handleClick:a,scrollTo:i,unregisterLink:l,registerLink:s,activeLink:u}=dz(),{prefixCls:c}=He("anchor",e),d=f=>{const{href:p}=e;a(f,{title:o,href:p}),i(p)};return Ne(()=>e.href,(f,p)=>{ht(()=>{l(p),s(f)})}),Qe(()=>{s(e.href)}),st(()=>{l(e.href)}),()=>{var f;const{href:p,target:v,title:m=n.title,customTitleProps:h={}}=e,g=c.value;o=typeof m=="function"?m(h):m;const x=u.value===p,y=ge(`${g}-link`,{[`${g}-link-active`]:x},r.class),w=ge(`${g}-link-title`,{[`${g}-link-title-active`]:x});return C("div",j(j({},r),{},{class:y}),[C("a",{class:w,href:p,title:typeof o=="string"?o:"",target:v,onClick:d},[n.customTitle?n.customTitle(h):o]),(f=n.default)===null||f===void 0?void 0:f.call(n)])}}});function FS(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}function RS(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var RM=Object.prototype,zM=RM.toString,gz=RM.hasOwnProperty,LM=/^\s*function (\w+)/;function zS(e){var t,n=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(n){var r=n.toString().match(LM);return r?r[1]:""}return""}var Wi=function(e){var t,n;return RS(e)!==!1&&typeof(t=e.constructor)=="function"&&RS(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},yz=function(e){return e},ir=yz,zu=function(e,t){return gz.call(e,t)},bz=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},ss=Array.isArray||function(e){return zM.call(e)==="[object Array]"},us=function(e){return zM.call(e)==="[object Function]"},Wf=function(e){return Wi(e)&&zu(e,"_vueTypes_name")},kM=function(e){return Wi(e)&&(zu(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return zu(e,t)}))};function cb(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function Qi(e,t,n){var r;n===void 0&&(n=!1);var o=!0,a="";r=Wi(e)?e:{type:e};var i=Wf(r)?r._vueTypes_name+" - ":"";if(kM(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&t===void 0)return o;ss(r.type)?(o=r.type.some(function(d){return Qi(d,t,!0)===!0}),a=r.type.map(function(d){return zS(d)}).join(" or ")):o=(a=zS(r))==="Array"?ss(t):a==="Object"?Wi(t):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?function(d){if(d==null)return"";var f=d.constructor.toString().match(LM);return f?f[1]:""}(t)===a:t instanceof r.type}if(!o){var l=i+'value "'+t+'" should be of type "'+a+'"';return n===!1?(ir(l),!1):l}if(zu(r,"validator")&&us(r.validator)){var s=ir,u=[];if(ir=function(d){u.push(d)},o=r.validator(t),ir=s,!o){var c=(u.length>1?"* ":"")+u.join(` * `);return u.length=0,n===!1?(ir(c),o):c}}return o}function Rr(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(o){return o!==void 0||this.default?us(o)||Qi(this,o,!0)===!0?(this.default=ss(o)?function(){return[].concat(o)}:Wi(o)?function(){return Object.assign({},o)}:o,this):(ir(this._vueTypes_name+' - invalid default value: "'+o+'"'),this):this}}}),r=n.validator;return us(r)&&(n.validator=cb(r,n)),n}function ko(e,t){var n=Rr(e,t);return Object.defineProperty(n,"validate",{value:function(r){return us(this.validator)&&ir(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info: `+JSON.stringify(this)),this.validator=cb(r,this),this}})}function LS(e,t,n){var r,o,a=(r=t,o={},Object.getOwnPropertyNames(r).forEach(function(d){o[d]=Object.getOwnPropertyDescriptor(r,d)}),Object.defineProperties({},o));if(a._vueTypes_name=e,!Wi(n))return a;var i,l,s=n.validator,u=FM(n,["validator"]);if(us(s)){var c=a.validator;c&&(c=(l=(i=c).__original)!==null&&l!==void 0?l:i),a.validator=cb(c?function(d){return c.call(this,d)&&s.call(this,d)}:s,a)}return Object.assign(a,u)}function pm(e){return e.replace(/^(?!\s*$)/gm," ")}var xz=function(){return ko("any",{})},wz=function(){return ko("function",{type:Function})},Sz=function(){return ko("boolean",{type:Boolean})},Cz=function(){return ko("string",{type:String})},$z=function(){return ko("number",{type:Number})},Ez=function(){return ko("array",{type:Array})},Dz=function(){return ko("object",{type:Object})},Az=function(){return Rr("integer",{type:Number,validator:function(e){return bz(e)}})},Oz=function(){return Rr("symbol",{validator:function(e){return typeof e=="symbol"}})};function Tz(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return Rr(e.name||"<>",{validator:function(n){var r=e(n);return r||ir(this._vueTypes_name+" - "+t),r}})}function Mz(e){if(!ss(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(r,o){if(o!=null){var a=o.constructor;r.indexOf(a)===-1&&r.push(a)}return r},[]);return Rr("oneOf",{type:n.length>0?n:void 0,validator:function(r){var o=e.indexOf(r)!==-1;return o||ir(t),o}})}function Nz(e){if(!ss(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],r=0;r0&&n.some(function(s){return i.indexOf(s)===-1})){var l=n.filter(function(s){return i.indexOf(s)===-1});return ir(l.length===1?'shape - required property "'+l[0]+'" is not defined.':'shape - required properties "'+l.join('", "')+'" are not defined.'),!1}return i.every(function(s){if(t.indexOf(s)===-1)return a._vueTypes_isLoose===!0||(ir('shape - shape definition does not include a "'+s+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var u=Qi(e[s],o[s],!0);return typeof u=="string"&&ir('shape - "'+s+`" property validation error: `+pm(u)),u===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var Mo=function(){function e(){}return e.extend=function(t){var n=this;if(ss(t))return t.forEach(function(d){return n.extend(d)}),this;var r=t.name,o=t.validate,a=o!==void 0&&o,i=t.getter,l=i!==void 0&&i,s=FM(t,["name","validate","getter"]);if(zu(this,r))throw new TypeError('[VueTypes error]: Type "'+r+'" already defined');var u,c=s.type;return Wf(c)?(delete s.type,Object.defineProperty(this,r,l?{get:function(){return LS(r,c,s)}}:{value:function(){var d,f=LS(r,c,s);return f.validator&&(f.validator=(d=f.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f}})):(u=l?{get:function(){var d=Object.assign({},s);return a?ko(r,d):Rr(r,d)},enumerable:!0}:{value:function(){var d,f,p=Object.assign({},s);return d=a?ko(r,p):Rr(r,p),p.validator&&(d.validator=(f=p.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d},enumerable:!0},Object.defineProperty(this,r,u))},_M(e,null,[{key:"any",get:function(){return xz()}},{key:"func",get:function(){return wz().def(this.defaults.func)}},{key:"bool",get:function(){return Sz().def(this.defaults.bool)}},{key:"string",get:function(){return Cz().def(this.defaults.string)}},{key:"number",get:function(){return $z().def(this.defaults.number)}},{key:"array",get:function(){return Ez().def(this.defaults.array)}},{key:"object",get:function(){return Dz().def(this.defaults.object)}},{key:"integer",get:function(){return Az().def(this.defaults.integer)}},{key:"symbol",get:function(){return Oz()}}]),e}();function HM(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(n){function r(){return n.apply(this,arguments)||this}return BM(r,n),_M(r,null,[{key:"sensibleDefaults",get:function(){return Wd({},this.defaults)},set:function(o){this.defaults=o!==!1?Wd({},o!==!0?o:e):{}}}]),r}(Mo)).defaults=Wd({},e),t}Mo.defaults={},Mo.custom=Tz,Mo.oneOf=Mz,Mo.instanceOf=Iz,Mo.oneOfType=Nz,Mo.arrayOf=Pz,Mo.objectOf=_z,Mo.shape=Bz,Mo.utils={validate:function(e,t){return Qi(t,e,!0)===!0},toType:function(e,t,n){return n===void 0&&(n=!1),n?ko(e,t):Rr(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}return BM(t,e),t})(HM());const jM=HM({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});jM.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}]);function VM(e){return e.default=void 0,e}const Z=jM,qt=(e,t,n)=>{um(e,`[ant-design-vue: ${t}] ${n}`)};function Fz(){return window}function kS(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const HS=/#([\S ]+)$/,Rz=()=>({prefixCls:String,offsetTop:Number,bounds:Number,affix:{type:Boolean,default:!0},showInkInFixed:{type:Boolean,default:!1},getContainer:Function,wrapperClass:String,wrapperStyle:{type:Object,default:void 0},getCurrentAnchor:Function,targetOffset:Number,items:bt(),direction:Z.oneOf(["vertical","horizontal"]).def("vertical"),onChange:Function,onClick:Function}),Ai=he({compatConfig:{MODE:3},name:"AAnchor",inheritAttrs:!1,props:Rz(),setup(e,t){let{emit:n,attrs:r,slots:o,expose:a}=t;const{prefixCls:i,getTargetContainer:l,direction:s}=He("anchor",e),u=z(()=>{var $;return($=e.direction)!==null&&$!==void 0?$:"vertical"}),c=be(null),d=be(),f=_t({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),p=be(null),v=z(()=>{const{getContainer:$}=e;return $||(l==null?void 0:l.value)||Fz}),m=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;const O=[],A=v.value();return f.links.forEach(T=>{const M=HS.exec(T.toString());if(!M)return;const B=document.getElementById(M[1]);if(B){const F=kS(B,A);F<$+D&&O.push({link:T,top:F})}}),O.length?O.reduce((M,B)=>B.top>M.top?B:M).link:""},h=$=>{const{getCurrentAnchor:D}=e;p.value!==$&&(p.value=typeof D=="function"?D($):$,n("change",$))},g=$=>{const{offsetTop:D,targetOffset:O}=e;h($);const A=HS.exec($);if(!A)return;const T=document.getElementById(A[1]);if(!T)return;const M=v.value(),B=lb(M,!0),F=kS(T,M);let P=B+F;P-=O!==void 0?O:D||0,f.animating=!0,sb(P,{callback:()=>{f.animating=!1},getContainer:v.value})};a({scrollTo:g});const x=()=>{if(f.animating)return;const{offsetTop:$,bounds:D,targetOffset:O}=e,A=m(O!==void 0?O:$||0,D);h(A)},y=()=>{const $=d.value.querySelector(`.${i.value}-link-title-active`);if($&&c.value){const D=u.value==="horizontal";c.value.style.top=D?"":`${$.offsetTop+$.clientHeight/2}px`,c.value.style.height=D?"":`${$.clientHeight}px`,c.value.style.left=D?`${$.offsetLeft}px`:"",c.value.style.width=D?`${$.clientWidth}px`:"",D&&PM($,{scrollMode:"if-needed",block:"nearest"})}};fz({registerLink:$=>{f.links.includes($)||f.links.push($)},unregisterLink:$=>{const D=f.links.indexOf($);D!==-1&&f.links.splice(D,1)},activeLink:p,scrollTo:g,handleClick:($,D)=>{n("click",$,D)},direction:u}),Qe(()=>{ht(()=>{const $=v.value();f.scrollContainer=$,f.scrollEvent=en(f.scrollContainer,"scroll",x),x()})}),st(()=>{f.scrollEvent&&f.scrollEvent.remove()}),Sr(()=>{if(f.scrollEvent){const $=v.value();f.scrollContainer!==$&&(f.scrollContainer=$,f.scrollEvent.remove(),f.scrollEvent=en(f.scrollContainer,"scroll",x),x())}y()});const w=$=>Array.isArray($)?$.map(D=>{const{children:O,key:A,href:T,target:M,class:B,style:F,title:P}=D;return C(ub,{key:A,href:T,target:M,class:B,style:F,title:P,customTitleProps:D},{default:()=>[u.value==="vertical"?w(O):null],customTitle:o.customTitle})}):null,[b,S]=vz(i);return()=>{var $;const{offsetTop:D,affix:O,showInkInFixed:A}=e,T=i.value,M=ge(`${T}-ink`,{[`${T}-ink-visible`]:p.value}),B=ge(S.value,e.wrapperClass,`${T}-wrapper`,{[`${T}-wrapper-horizontal`]:u.value==="horizontal",[`${T}-rtl`]:s.value==="rtl"}),F=ge(T,{[`${T}-fixed`]:!O&&!A}),P=E({maxHeight:D?`calc(100vh - ${D}px)`:"100vh"},e.wrapperStyle),I=C("div",{class:B,style:P,ref:d},[C("div",{class:F},[C("span",{class:M,ref:c},null),Array.isArray(e.items)?w(e.items):($=o.default)===null||$===void 0?void 0:$.call(o)])]);return b(O?C(MM,j(j({},r),{},{offsetTop:D,target:v.value}),{default:()=>[I]}):I)}}});Ai.Link=ub;Ai.install=function(e){return e.component(Ai.name,Ai),e.component(Ai.Link.name,Ai.Link),e};function jS(e,t){const{key:n}=e;let r;return"value"in e&&({value:r}=e),n??(r!==void 0?r:`rc-index-key-${t}`)}function WM(e,t){const{label:n,value:r,options:o}=e||{};return{label:n||(t?"children":"label"),value:r||"value",options:o||"options"}}function zz(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=[],{label:o,value:a,options:i}=WM(t,!1);function l(s,u){s.forEach(c=>{const d=c[o];if(u||!(i in c)){const f=c[a];r.push({key:jS(c,r.length),groupOption:u,data:c,label:d,value:f})}else{let f=d;f===void 0&&n&&(f=c.label),r.push({key:jS(c,r.length),group:!0,data:c,label:f}),l(c[i],!0)}})}return l(e,!1),r}function Rg(e){const t=E({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function Lz(e,t){if(!t||!t.length)return null;let n=!1;function r(a,i){let[l,...s]=i;if(!l)return[a];const u=a.split(l);return n=n||u.length>1,u.reduce((c,d)=>[...c,...r(d,s)],[]).filter(c=>c)}const o=r(e,t);return n?o:null}function kz(){return""}function Hz(e){return e?e.ownerDocument:window.document}function UM(){}const KM=()=>({action:Z.oneOfType([Z.string,Z.arrayOf(Z.string)]).def([]),showAction:Z.any.def([]),hideAction:Z.any.def([]),getPopupClassNameFromAlign:Z.any.def(kz),onPopupVisibleChange:Function,afterPopupVisibleChange:Z.func.def(UM),popup:Z.any,popupStyle:{type:Object,default:void 0},prefixCls:Z.string.def("rc-trigger-popup"),popupClassName:Z.string.def(""),popupPlacement:String,builtinPlacements:Z.object,popupTransitionName:String,popupAnimation:Z.any,mouseEnterDelay:Z.number.def(0),mouseLeaveDelay:Z.number.def(.1),zIndex:Number,focusDelay:Z.number.def(0),blurDelay:Z.number.def(.15),getPopupContainer:Function,getDocument:Z.func.def(Hz),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:Z.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}),db={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},jz=E(E({},db),{mobile:{type:Object}}),Vz=E(E({},db),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function fb(e){let{prefixCls:t,animation:n,transitionName:r}=e;return n?{name:`${t}-${n}`}:r?{name:r}:{}}function qM(e){const{prefixCls:t,visible:n,zIndex:r,mask:o,maskAnimation:a,maskTransitionName:i}=e;if(!o)return null;let l={};return(i||a)&&(l=fb({prefixCls:t,transitionName:i,animation:a})),C(_n,j({appear:!0},l),{default:()=>[vn(C("div",{style:{zIndex:r},class:`${t}-mask`},null),[[kB("if"),n]])]})}qM.displayName="Mask";const Wz=he({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:jz,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,slots:r}=t;const o=be();return n({forceAlign:()=>{},getElement:()=>o.value}),()=>{var a;const{zIndex:i,visible:l,prefixCls:s,mobile:{popupClassName:u,popupStyle:c,popupMotion:d={},popupRender:f}={}}=e,p=E({zIndex:i},c);let v=Lt((a=r.default)===null||a===void 0?void 0:a.call(r));v.length>1&&(v=C("div",{class:`${s}-content`},[v])),f&&(v=f(v));const m=ge(s,u);return C(_n,j({ref:o},d),{default:()=>[l?C("div",{class:m,style:p},[v]):null]})}}});var Uz=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function l(c){try{u(r.next(c))}catch(d){i(d)}}function s(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?a(c.value):o(c.value).then(l,s)}u((r=r.apply(e,t||[])).next())})};const VS=["measure","align",null,"motion"],Kz=(e,t)=>{const n=pe(null),r=pe(),o=pe(!1);function a(s){o.value||(n.value=s)}function i(){tt.cancel(r.value)}function l(s){i(),r.value=tt(()=>{let u=n.value;switch(n.value){case"align":u="motion";break;case"motion":u="stable";break}a(u),s==null||s()})}return Ne(e,()=>{a("measure")},{immediate:!0,flush:"post"}),Qe(()=>{Ne(n,()=>{switch(n.value){case"measure":t();break}n.value&&(r.value=tt(()=>Uz(void 0,void 0,void 0,function*(){const s=VS.indexOf(n.value),u=VS[s+1];u&&s!==-1&&a(u)})))},{immediate:!0,flush:"post"})}),st(()=>{o.value=!0,i()}),[n,l]},qz=e=>{const t=pe({width:0,height:0});function n(o){t.value={width:o.offsetWidth,height:o.offsetHeight}}return[z(()=>{const o={};if(e.value){const{width:a,height:i}=t.value;e.value.indexOf("height")!==-1&&i?o.height=`${i}px`:e.value.indexOf("minHeight")!==-1&&i&&(o.minHeight=`${i}px`),e.value.indexOf("width")!==-1&&a?o.width=`${a}px`:e.value.indexOf("minWidth")!==-1&&a&&(o.minWidth=`${a}px`)}return o}),n]};function WS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function US(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function hL(e,t,n,r){var o=St.clone(e),a={width:t.width,height:t.height};return r.adjustX&&o.left=n.left&&o.left+a.width>n.right&&(a.width-=o.left+a.width-n.right),r.adjustX&&o.left+a.width>n.right&&(o.left=Math.max(n.right-a.width,n.left)),r.adjustY&&o.top=n.top&&o.top+a.height>n.bottom&&(a.height-=o.top+a.height-n.bottom),r.adjustY&&o.top+a.height>n.bottom&&(o.top=Math.max(n.bottom-a.height,n.top)),St.mix(o,a)}function hb(e){var t,n,r;if(!St.isWindow(e)&&e.nodeType!==9)t=St.offset(e),n=St.outerWidth(e),r=St.outerHeight(e);else{var o=St.getWindow(e);t={left:St.getWindowScrollLeft(o),top:St.getWindowScrollTop(o)},n=St.viewportWidth(o),r=St.viewportHeight(o)}return t.width=n,t.height=r,t}function QS(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,a=e.height,i=e.left,l=e.top;return n==="c"?l+=a/2:n==="b"&&(l+=a),r==="c"?i+=o/2:r==="r"&&(i+=o),{left:i,top:l}}function Yc(e,t,n,r,o){var a=QS(t,n[1]),i=QS(e,n[0]),l=[i.left-a.left,i.top-a.top];return{left:Math.round(e.left-l[0]+r[0]-o[0]),top:Math.round(e.top-l[1]+r[1]-o[1])}}function eC(e,t,n){return e.leftn.right}function tC(e,t,n){return e.topn.bottom}function gL(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||r.top>=n.bottom}function gb(e,t,n){var r=n.target||t,o=hb(r),a=!bL(r,n.overflow&&n.overflow.alwaysByViewport);return tN(e,o,n,a)}gb.__getOffsetParent=Hg;gb.__getVisibleRectForElement=vb;function xL(e,t,n){var r,o,a=St.getDocument(e),i=a.defaultView||a.parentWindow,l=St.getWindowScrollLeft(i),s=St.getWindowScrollTop(i),u=St.viewportWidth(i),c=St.viewportHeight(i);"pageX"in t?r=t.pageX:r=l+t.clientX,"pageY"in t?o=t.pageY:o=s+t.clientY;var d={left:r,top:o,width:0,height:0},f=r>=0&&r<=l+u&&o>=0&&o<=s+c,p=[n.points[0],"cc"];return tN(e,d,US(US({},n),{},{points:p}),f)}function At(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=e;if(Array.isArray(e)&&(o=nn(e)[0]),!o)return null;const a=ha(o,t,r);return a.props=n?E(E({},a.props),t):a.props,Jt(typeof a.props.class!="object"),a}function wL(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e.map(r=>At(r,t,n))}function mu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Array.isArray(e))return e.map(o=>mu(o,t,n,r));{const o=At(e,t,n,r);return Array.isArray(o.children)&&(o.children=mu(o.children)),o}}const vm=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 SL(e,t){return e===t?!0:!e||!t?!1:"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:!1}function CL(e,t){e!==document.activeElement&&Ua(t,e)&&typeof e.focus=="function"&&e.focus()}function oC(e,t){let n=null,r=null;function o(i){let[{target:l}]=i;if(!document.documentElement.contains(l))return;const{width:s,height:u}=l.getBoundingClientRect(),c=Math.floor(s),d=Math.floor(u);(n!==c||r!==d)&&Promise.resolve().then(()=>{t({width:c,height:d})}),n=c,r=d}const a=new Vy(o);return e&&a.observe(e),()=>{a.disconnect()}}const $L=(e,t)=>{let n=!1,r=null;function o(){clearTimeout(r)}function a(i){if(!n||i===!0){if(e()===!1)return;n=!0,o(),r=setTimeout(()=>{n=!1},t.value)}else o(),r=setTimeout(()=>{n=!1,a()},t.value)}return[a,()=>{n=!1,o()}]};function EL(){this.__data__=[],this.size=0}function yb(e,t){return e===t||e!==e&&t!==t}function hm(e,t){for(var n=e.length;n--;)if(yb(e[n][0],t))return n;return-1}var DL=Array.prototype,AL=DL.splice;function OL(e){var t=this.__data__,n=hm(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():AL.call(t,n,1),--this.size,!0}function TL(e){var t=this.__data__,n=hm(t,e);return n<0?void 0:t[n][1]}function ML(e){return hm(this.__data__,e)>-1}function NL(e,t){var n=this.__data__,r=hm(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ea(e){var t=-1,n=e==null?0:e.length;for(this.clear();++tl))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=n&Ek?new cs:void 0;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=oH}var aH="[object Arguments]",iH="[object Array]",lH="[object Boolean]",sH="[object Date]",uH="[object Error]",cH="[object Function]",dH="[object Map]",fH="[object Number]",pH="[object Object]",mH="[object RegExp]",vH="[object Set]",hH="[object String]",gH="[object WeakMap]",yH="[object ArrayBuffer]",bH="[object DataView]",xH="[object Float32Array]",wH="[object Float64Array]",SH="[object Int8Array]",CH="[object Int16Array]",$H="[object Int32Array]",EH="[object Uint8Array]",DH="[object Uint8ClampedArray]",AH="[object Uint16Array]",OH="[object Uint32Array]",sn={};sn[xH]=sn[wH]=sn[SH]=sn[CH]=sn[$H]=sn[EH]=sn[DH]=sn[AH]=sn[OH]=!0;sn[aH]=sn[iH]=sn[yH]=sn[lH]=sn[bH]=sn[sH]=sn[uH]=sn[cH]=sn[dH]=sn[fH]=sn[pH]=sn[mH]=sn[vH]=sn[hH]=sn[gH]=!1;function TH(e){return go(e)&&Cb(e.length)&&!!sn[ui(e)]}function bm(e){return function(t){return e(t)}}var sN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,vu=sN&&typeof module=="object"&&module&&!module.nodeType&&module,MH=vu&&vu.exports===sN,uh=MH&&PT.process,NH=function(){try{var e=vu&&vu.require&&vu.require("util").types;return e||uh&&uh.binding&&uh.binding("util")}catch{}}();const ds=NH;var dC=ds&&ds.isTypedArray,PH=dC?bm(dC):TH;const $b=PH;var IH=Object.prototype,_H=IH.hasOwnProperty;function uN(e,t){var n=zr(e),r=!n&&ym(e),o=!n&&!r&&ju(e),a=!n&&!r&&!o&&$b(e),i=n||r||o||a,l=i?qk(e.length,String):[],s=l.length;for(var u in e)(t||_H.call(e,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Sb(u,s)))&&l.push(u);return l}var BH=Object.prototype;function xm(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||BH;return e===n}var FH=_T(Object.keys,Object);const RH=FH;var zH=Object.prototype,LH=zH.hasOwnProperty;function cN(e){if(!xm(e))return RH(e);var t=[];for(var n in Object(e))LH.call(e,n)&&n!="constructor"&&t.push(n);return t}function $s(e){return e!=null&&Cb(e.length)&&!nN(e)}function Es(e){return $s(e)?uN(e):cN(e)}function jg(e){return oN(e,Es,wb)}var kH=1,HH=Object.prototype,jH=HH.hasOwnProperty;function VH(e,t,n,r,o,a){var i=n&kH,l=jg(e),s=l.length,u=jg(t),c=u.length;if(s!=c&&!i)return!1;for(var d=s;d--;){var f=l[d];if(!(i?f in t:jH.call(t,f)))return!1}var p=a.get(e),v=a.get(t);if(p&&v)return p==t&&v==e;var m=!0;a.set(e,t),a.set(t,e);for(var h=i;++d{const{disabled:f,target:p,align:v,onAlign:m}=e;if(!f&&p&&a.value){const h=a.value;let g;const x=xC(p),y=wC(p);o.value.element=x,o.value.point=y,o.value.align=v;const{activeElement:w}=document;return x&&vm(x)?g=gb(h,x,v):y&&(g=xL(h,y,v)),CL(w,h),m&&g&&m(h,g),!0}return!1},z(()=>e.monitorBufferTime)),s=be({cancel:()=>{}}),u=be({cancel:()=>{}}),c=()=>{const f=e.target,p=xC(f),v=wC(f);a.value!==u.value.element&&(u.value.cancel(),u.value.element=a.value,u.value.cancel=oC(a.value,i)),(o.value.element!==p||!SL(o.value.point,v)||!Eb(o.value.align,e.align))&&(i(),s.value.element!==p&&(s.value.cancel(),s.value.element=p,s.value.cancel=oC(p,i)))};Qe(()=>{ht(()=>{c()})}),Sr(()=>{ht(()=>{c()})}),Ne(()=>e.disabled,f=>{f?l():i()},{immediate:!0,flush:"post"});const d=be(null);return Ne(()=>e.monitorWindowResize,f=>{f?d.value||(d.value=en(window,"resize",i)):d.value&&(d.value.remove(),d.value=null)},{flush:"post"}),Cr(()=>{s.value.cancel(),u.value.cancel(),d.value&&d.value.remove(),l()}),n({forceAlign:()=>i(!0)}),()=>{const f=r==null?void 0:r.default();return f?At(f[0],{ref:a},!0,!0):null}}});Un("bottomLeft","bottomRight","topLeft","topRight");const Db=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",to=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E(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},t)},Sm=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E(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},t)},xr=(e,t,n)=>n!==void 0?n:`${e}-${t}`,aj=he({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:db,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,attrs:r,slots:o}=t;const a=pe(),i=pe(),l=pe(),[s,u]=qz(Ye(e,"stretch")),c=()=>{e.stretch&&u(e.getRootDomNode())},d=pe(!1);let f;Ne(()=>e.visible,S=>{clearTimeout(f),S?f=setTimeout(()=>{d.value=e.visible}):d.value=!1},{immediate:!0});const[p,v]=Kz(d,c),m=pe(),h=()=>e.point?e.point:e.getRootDomNode,g=()=>{var S;(S=a.value)===null||S===void 0||S.forceAlign()},x=(S,$)=>{var D;const O=e.getClassNameFromAlign($),A=l.value;l.value!==O&&(l.value=O),p.value==="align"&&(A!==O?Promise.resolve().then(()=>{g()}):v(()=>{var T;(T=m.value)===null||T===void 0||T.call(m)}),(D=e.onAlign)===null||D===void 0||D.call(e,S,$))},y=z(()=>{const S=typeof e.animation=="object"?e.animation:fb(e);return["onAfterEnter","onAfterLeave"].forEach($=>{const D=S[$];S[$]=O=>{v(),p.value="stable",D==null||D(O)}}),S}),w=()=>new Promise(S=>{m.value=S});Ne([y,p],()=>{!y.value&&p.value==="motion"&&v()},{immediate:!0}),n({forceAlign:g,getElement:()=>i.value.$el||i.value});const b=z(()=>{var S;return!(!((S=e.align)===null||S===void 0)&&S.points&&(p.value==="align"||p.value==="stable"))});return()=>{var S;const{zIndex:$,align:D,prefixCls:O,destroyPopupOnHide:A,onMouseenter:T,onMouseleave:M,onTouchstart:B=()=>{},onMousedown:F}=e,P=p.value,I=[E(E({},s.value),{zIndex:$,opacity:P==="motion"||P==="stable"||!d.value?null:0,pointerEvents:!d.value&&P!=="stable"?"none":null}),r.style];let N=Lt((S=o.default)===null||S===void 0?void 0:S.call(o,{visible:e.visible}));N.length>1&&(N=C("div",{class:`${O}-content`},[N]));const R=ge(O,r.class,l.value),L=d.value||!e.visible?to(y.value.name,y.value):{};return C(_n,j(j({ref:i},L),{},{onBeforeEnter:w}),{default:()=>!A||e.visible?vn(C(oj,{target:h(),key:"popup",ref:a,monitorWindowResize:!0,disabled:b.value,align:D,onAlign:x},{default:()=>C("div",{class:R,onMouseenter:T,onMouseleave:M,onMousedown:aS(F,["capture"]),[Dn?"onTouchstartPassive":"onTouchstart"]:aS(B,["capture"]),style:I},[N])}),[[ur,d.value]]):null})}}}),ij=he({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:Vz,setup(e,t){let{attrs:n,slots:r,expose:o}=t;const a=pe(!1),i=pe(!1),l=pe(),s=pe();return Ne([()=>e.visible,()=>e.mobile],()=>{a.value=e.visible,e.visible&&e.mobile&&(i.value=!0)},{immediate:!0,flush:"post"}),o({forceAlign:()=>{var u;(u=l.value)===null||u===void 0||u.forceAlign()},getElement:()=>{var u;return(u=l.value)===null||u===void 0?void 0:u.getElement()}}),()=>{const u=E(E(E({},e),n),{visible:a.value}),c=i.value?C(Wz,j(j({},u),{},{mobile:e.mobile,ref:l}),{default:r.default}):C(aj,j(j({},u),{},{ref:l}),{default:r.default});return C("div",{ref:s},[C(qM,u,null),c])}}});function lj(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function SC(e,t,n){const r=e[t]||{};return E(E({},r),n)}function sj(e,t,n,r){const{points:o}=n,a=Object.keys(e);for(let i=0;i0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){const r=this.getDerivedStateFromProps(RT(this),E(E({},this.$data),n));if(r===null)return;n=E(E({},n),r||{})}E(this.$data,n),this._.isMounted&&this.$forceUpdate(),ht(()=>{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 r=0,o=n.length;r1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};it(dN,{inTriggerContext:t.inTriggerContext,shouldRender:z(()=>{const{sPopupVisible:n,popupRef:r,forceRender:o,autoDestroy:a}=e||{};let i=!1;return(n||r||o)&&(i=!0),!n&&a&&(i=!1),i})})},uj=()=>{Ab({},{inTriggerContext:!1});const e=lt(dN,{shouldRender:z(()=>!1),inTriggerContext:!1});return{shouldRender:z(()=>e.shouldRender.value||e.inTriggerContext===!1)}},fN=he({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:Z.func.isRequired,didUpdate:Function},setup(e,t){let{slots:n}=t,r=!0,o;const{shouldRender:a}=uj();Ry(()=>{r=!1,a.value&&(o=e.getContainer())});const i=Ne(a,()=>{a.value&&!o&&(o=e.getContainer()),o&&i()});return Sr(()=>{ht(()=>{var l;a.value&&((l=e.didUpdate)===null||l===void 0||l.call(e,e))})}),st(()=>{o&&o.parentNode&&o.parentNode.removeChild(o)}),()=>{var l;return a.value?r?(l=n.default)===null||l===void 0?void 0:l.call(n):o?C(zy,{to:o},n):null:null}}});let ch;function Gf(e){if(typeof document>"u")return 0;if(e||ch===void 0){const t=document.createElement("div");t.style.width="100%",t.style.height="200px";const n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);const o=t.offsetWidth;n.style.overflow="scroll";let a=t.offsetWidth;o===a&&(a=n.clientWidth),document.body.removeChild(n),ch=o-a}return ch}function CC(e){const t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?Gf():n}function cj(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};const{width:t,height:n}=getComputedStyle(e,"::-webkit-scrollbar");return{width:CC(t),height:CC(n)}}const dj=`vc-util-locker-${Date.now()}`;let $C=0;function fj(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function pj(e){const t=z(()=>!!e&&!!e.value);$C+=1;const n=`${dj}_${$C}`;Je(r=>{if(t.value){const o=Gf(),a=fj();Iu(` html body { overflow-y: hidden; ${a?`width: calc(100% - ${o}px);`:""} }`,n)}else Lf(n);r(()=>{Lf(n)})},{flush:"post"})}let yi=0;const Ud=Co(),EC=e=>{if(!Ud)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(typeof e=="object"&&e instanceof window.HTMLElement)return e}return document.body},dc=he({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:Z.any,visible:{type:Boolean,default:void 0},autoLock:Pe(),didUpdate:Function},setup(e,t){let{slots:n}=t;const r=pe(),o=pe(),a=pe(),i=()=>{var p,v;(v=(p=r.value)===null||p===void 0?void 0:p.parentNode)===null||v===void 0||v.removeChild(r.value),r.value=null};let l=null;const s=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)||r.value&&!r.value.parentNode?(l=EC(e.getContainer),l?(l.appendChild(r.value),!0):!1):!0},u=document.createElement("div"),c=()=>Ud?(r.value||(r.value=u,s(!0)),d(),r.value):null,d=()=>{const{wrapperClassName:p}=e;r.value&&p&&p!==r.value.className&&(r.value.className=p)};Sr(()=>{d(),s()});const f=Kn();return pj(z(()=>e.autoLock&&e.visible&&Co()&&(r.value===document.body||r.value===u))),Qe(()=>{let p=!1;Ne([()=>e.visible,()=>e.getContainer],(v,m)=>{let[h,g]=v,[x,y]=m;Ud&&(l=EC(e.getContainer),l===document.body&&(h&&!x?yi+=1:p&&(yi-=1))),p&&(typeof g=="function"&&typeof y=="function"?g.toString()!==y.toString():g!==y)&&i(),p=!0},{immediate:!0,flush:"post"}),ht(()=>{s()||(a.value=tt(()=>{f.update()}))})}),st(()=>{const{visible:p}=e;Ud&&l===document.body&&(yi=p&&yi?yi-1:yi),i(),tt.cancel(a.value)}),()=>{const{forceRender:p,visible:v}=e;let m=null;const h={getOpenCount:()=>yi,getContainer:c};return(p||v||o.value)&&(m=C(fN,{getContainer:c,ref:o,didUpdate:e.didUpdate},{default:()=>{var g;return(g=n.default)===null||g===void 0?void 0:g.call(n,h)}})),m}}}),mj=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],rl=he({compatConfig:{MODE:3},name:"Trigger",mixins:[nl],inheritAttrs:!1,props:KM(),setup(e){const t=z(()=>{const{popupPlacement:o,popupAlign:a,builtinPlacements:i}=e;return o&&i?SC(i,o,a):a}),n=pe(null),r=o=>{n.value=o};return{vcTriggerContext:lt("vcTriggerContext",{}),popupRef:n,setPopupRef:r,triggerRef:pe(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 this.popupVisible!==void 0?t=!!e.popupVisible:t=!!e.defaultPopupVisible,mj.forEach(n=>{this[`fire${n}`]=r=>{this.fireEvents(n,r)}}),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created(){it("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),Ab(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),tt.cancel(this.attachId)},methods:{updatedCal(){const e=this.$props;if(this.$data.sPopupVisible){let n;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(n=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=en(n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(n=n||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=en(n,"touchstart",this.onDocumentClick,Dn?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(n=n||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=en(n,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=en(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&&Ua((t=this.popupRef)===null||t===void 0?void 0:t.getElement(),e.relatedTarget))return;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){Ua(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 n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-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(),r=this.getPopupDomNode();(!Ua(n,t)||this.isContextMenuOnly())&&!Ua(r,t)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode(){var e,t,n,r;const{getTriggerDOMNode:o}=this.$props;if(o){const a=((t=(e=this.triggerRef)===null||e===void 0?void 0:e.$el)===null||t===void 0?void 0:t.nodeName)==="#comment"?null:yr(this.triggerRef);return yr(o(a))}try{const a=((r=(n=this.triggerRef)===null||n===void 0?void 0:n.$el)===null||r===void 0?void 0:r.nodeName)==="#comment"?null:yr(this.triggerRef);if(a)return a}catch{}return yr(this)},handleGetPopupClassFromAlign(e){const t=[],n=this.$props,{popupPlacement:r,builtinPlacements:o,prefixCls:a,alignPoint:i,getPopupClassNameFromAlign:l}=n;return r&&o&&t.push(sj(o,a,e,i)),l&&t.push(l(e)),t.join(" ")},getPopupAlign(){const e=this.$props,{popupPlacement:t,popupAlign:n,builtinPlacements:r}=e;return t&&r?SC(r,t,n):n},getComponent(){const e={};this.isMouseEnterToShow()&&(e.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(e.onMouseleave=this.onPopupMouseleave),e.onMousedown=this.onPopupMouseDown,e[Dn?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:t,getRootDomNode:n,$attrs:r}=this,{prefixCls:o,destroyPopupOnHide:a,popupClassName:i,popupAnimation:l,popupTransitionName:s,popupStyle:u,mask:c,maskAnimation:d,maskTransitionName:f,zIndex:p,stretch:v,alignPoint:m,mobile:h,forceRender:g}=this.$props,{sPopupVisible:x,point:y}=this.$data,w=E(E({prefixCls:o,destroyPopupOnHide:a,visible:x,point:m?y:null,align:this.align,animation:l,getClassNameFromAlign:t,stretch:v,getRootDomNode:n,mask:c,zIndex:p,transitionName:s,maskAnimation:d,maskTransitionName:f,class:i,style:u,onAlign:r.onPopupAlign||UM},e),{ref:this.setPopupRef,mobile:h,forceRender:g});return C(ij,w,{default:this.$slots.popup||(()=>zT(this,"popup"))})},attachParent(e){tt.cancel(this.attachId);const{getPopupContainer:t,getDocument:n}=this.$props,r=this.getRootDomNode();let o;t?(r||t.length===0)&&(o=t(r)):o=n(this.getRootDomNode()).body,o?o.appendChild(e):this.attachId=tt(()=>{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:r,onPopupVisibleChange:o}=this;this.clearDelayTimer(),r!==e&&(aa(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:r}),o&&o(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 r=t*1e3;if(this.clearDelayTimer(),r){const o=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(e,o),this.clearDelayTimer()},r)}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=dS(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 e.indexOf("click")!==-1||t.indexOf("click")!==-1},isContextMenuOnly(){const{action:e}=this.$props;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("contextmenu")!==-1||t.indexOf("contextmenu")!==-1},isClickToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isMouseEnterToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseenter")!==-1},isMouseLeaveToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseleave")!==-1},isFocusToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("focus")!==-1},isBlurToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("blur")!==-1},forcePopupAlign(){var e;this.$data.sPopupVisible&&((e=this.popupRef)===null||e===void 0||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=nn(rm(this)),{alignPoint:n,getPopupContainer:r}=this.$props,o=t[0];this.childOriginEvents=dS(o);const a={key:"trigger"};this.isContextmenuToShow()?a.onContextmenu=this.onContextmenu:a.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(a.onClick=this.onClick,a.onMousedown=this.onMousedown,a[Dn?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(a.onClick=this.createTwoChains("onClick"),a.onMousedown=this.createTwoChains("onMousedown"),a[Dn?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(a.onMouseenter=this.onMouseenter,n&&(a.onMousemove=this.onMouseMove)):a.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?a.onMouseleave=this.onMouseleave:a.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(a.onFocus=this.onFocus,a.onBlur=this.onBlur):(a.onFocus=this.createTwoChains("onFocus"),a.onBlur=u=>{u&&(!u.relatedTarget||!Ua(u.target,u.relatedTarget))&&this.createTwoChains("onBlur")(u)});const i=ge(o&&o.props&&o.props.class,e.class);i&&(a.class=i);const l=At(o,E(E({},a),{ref:"triggerRef"}),!0,!0),s=C(dc,{key:"portal",getContainer:r&&(()=>r(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return C(dt,null,[l,s])}});var vj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const t=e===!0?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}}}},gj=he({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:Z.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:Z.oneOfType([Number,Boolean]).def(!0),popupElement:Z.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function},setup(e,t){let{slots:n,attrs:r,expose:o}=t;const a=z(()=>{const{dropdownMatchSelectWidth:l}=e;return hj(l)}),i=be();return o({getPopupElement:()=>i.value}),()=>{const l=E(E({},e),r),{empty:s=!1}=l,u=vj(l,["empty"]),{visible:c,dropdownAlign:d,prefixCls:f,popupElement:p,dropdownClassName:v,dropdownStyle:m,direction:h="ltr",placement:g,dropdownMatchSelectWidth:x,containerWidth:y,dropdownRender:w,animation:b,transitionName:S,getPopupContainer:$,getTriggerDOMNode:D,onPopupVisibleChange:O,onPopupMouseEnter:A}=u,T=`${f}-dropdown`;let M=p;w&&(M=w({menuNode:p,props:e}));const B=b?`${T}-${b}`:S,F=E({minWidth:`${y}px`},m);return typeof x=="number"?F.width=`${x}px`:x&&(F.width=`${y}px`),C(rl,j(j({},e),{},{showAction:O?["click"]:[],hideAction:O?["click"]:[],popupPlacement:g||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:a.value,prefixCls:T,popupTransitionName:B,popupAlign:d,popupVisible:c,getPopupContainer:$,popupClassName:ge(v,{[`${T}-empty`]:s}),popupStyle:F,getTriggerDOMNode:D,onPopupVisibleChange:O}),{default:n.default,popup:()=>C("div",{ref:i,onMouseenter:A},[M])})}}}),yj=gj,yt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){const{keyCode:n}=t;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=yt.F1&&n<=yt.F12)return!1;switch(n){case yt.ALT:case yt.CAPS_LOCK:case yt.CONTEXT_MENU:case yt.CTRL:case yt.DOWN:case yt.END:case yt.ESC:case yt.HOME:case yt.INSERT:case yt.LEFT:case yt.MAC_FF_META:case yt.META:case yt.NUMLOCK:case yt.NUM_CENTER:case yt.PAGE_DOWN:case yt.PAGE_UP:case yt.PAUSE:case yt.PRINT_SCREEN:case yt.RIGHT:case yt.SHIFT:case yt.UP:case yt.WIN_KEY:case yt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=yt.ZERO&&t<=yt.NINE||t>=yt.NUM_ZERO&&t<=yt.NUM_MULTIPLY||t>=yt.A&&t<=yt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case yt.SPACE:case yt.QUESTION_MARK:case yt.NUM_PLUS:case yt.NUM_MINUS:case yt.NUM_PERIOD:case yt.NUM_DIVISION:case yt.SEMICOLON:case yt.DASH:case yt.EQUALS:case yt.COMMA:case yt.PERIOD:case yt.SLASH:case yt.APOSTROPHE:case yt.SINGLE_QUOTE:case yt.OPEN_SQUARE_BRACKET:case yt.BACKSLASH:case yt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},_e=yt,Cm=(e,t)=>{let{slots:n}=t;var r;const{class:o,customizeIcon:a,customizeIconProps:i,onMousedown:l,onClick:s}=e;let u;return typeof a=="function"?u=a(i):u=a,C("span",{class:o,onMousedown:c=>{c.preventDefault(),l&&l(c)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},[u!==void 0?u:C("span",{class:o.split(/\s+/).map(c=>`${c}-icon`)},[(r=n.default)===null||r===void 0?void 0:r.call(n)])])};Cm.inheritAttrs=!1;Cm.displayName="TransBtn";Cm.props={class:String,customizeIcon:Z.any,customizeIconProps:Z.any,onMousedown:Function,onClick:Function};const Xf=Cm;function bj(e){e.target.composing=!0}function DC(e){e.target.composing&&(e.target.composing=!1,xj(e.target,"input"))}function xj(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function dh(e,t,n,r){e.addEventListener(t,n,r)}const wj={created(e,t){(!t.modifiers||!t.modifiers.lazy)&&(dh(e,"compositionstart",bj),dh(e,"compositionend",DC),dh(e,"change",DC))}},Ds=wj,Sj={inputRef:Z.any,prefixCls:String,id:String,inputElement:Z.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:Z.oneOfType([Z.number,Z.string]),attrs:Z.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}},Cj=he({compatConfig:{MODE:3},name:"Input",inheritAttrs:!1,props:Sj,setup(e){let t=null;const n=lt("VCSelectContainerEvent");return()=>{var r;const{prefixCls:o,id:a,inputElement:i,disabled:l,tabindex:s,autofocus:u,autocomplete:c,editable:d,activeDescendantId:f,value:p,onKeydown:v,onMousedown:m,onChange:h,onPaste:g,onCompositionstart:x,onCompositionend:y,onFocus:w,onBlur:b,open:S,inputRef:$,attrs:D}=e;let O=i||vn(C("input",null,null),[[Ds]]);const A=O.props||{},{onKeydown:T,onInput:M,onFocus:B,onBlur:F,onMousedown:P,onCompositionstart:I,onCompositionend:N,style:R}=A;return O=At(O,E(E(E(E(E({type:"search"},A),{id:a,ref:$,disabled:l,tabindex:s,autocomplete:c||"off",autofocus:u,class:ge(`${o}-selection-search-input`,(r=O==null?void 0:O.props)===null||r===void 0?void 0:r.class),role:"combobox","aria-expanded":S,"aria-haspopup":"listbox","aria-owns":`${a}_list`,"aria-autocomplete":"list","aria-controls":`${a}_list`,"aria-activedescendant":f}),D),{value:d?p:"",readonly:!d,unselectable:d?null:"on",style:E(E({},R),{opacity:d?null:0}),onKeydown:_=>{v(_),T&&T(_)},onMousedown:_=>{m(_),P&&P(_)},onInput:_=>{h(_),M&&M(_)},onCompositionstart(_){x(_),I&&I(_)},onCompositionend(_){y(_),N&&N(_)},onPaste:g,onFocus:function(){clearTimeout(t),B&&B(arguments.length<=0?void 0:arguments[0]),w&&w(arguments.length<=0?void 0:arguments[0]),n==null||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var _=arguments.length,L=new Array(_),k=0;k<_;k++)L[k]=arguments[k];t=setTimeout(()=>{F&&F(L[0]),b&&b(L[0]),n==null||n.blur(L[0])},100)}}),O.type==="textarea"?{}:{type:"search"}),!0,!0),O}}}),pN=Cj,$j=`accept acceptcharset accesskey action allowfullscreen allowtransparency alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge charset checked classid classname colspan cols content contenteditable contextmenu controls coords crossorigin data datetime default defer dir disabled download draggable enctype form formaction formenctype formmethod formnovalidate formtarget frameborder headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media mediagroup method min minlength multiple muted name novalidate nonce open optimum pattern placeholder poster preload radiogroup readonly rel required reversed role rowspan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellcheck src srcdoc srclang srcset start step style summary tabindex target title type usemap value width wmode wrap`,Ej=`onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,AC=`${$j} ${Ej}`.split(/[\s\n]+/),Dj="aria-",Aj="data-";function OC(e,t){return e.indexOf(t)===0}function ci(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=E({},t);const r={};return Object.keys(e).forEach(o=>{(n.aria&&(o==="role"||OC(o,Dj))||n.data&&OC(o,Aj)||n.attr&&(AC.includes(o)||AC.includes(o.toLowerCase())))&&(r[o]=e[o])}),r}const mN=Symbol("OverflowContextProviderKey"),Kg=he({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return it(mN,z(()=>e.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),Oj=()=>lt(mN,z(()=>null));var Tj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe.responsive&&!e.display),a=be();r({itemNodeRef:a});function i(l){e.registerSize(e.itemKey,l)}return Cr(()=>{i(null)}),()=>{var l;const{prefixCls:s,invalidate:u,item:c,renderItem:d,responsive:f,registerSize:p,itemKey:v,display:m,order:h,component:g="div"}=e,x=Tj(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),y=(l=n.default)===null||l===void 0?void 0:l.call(n),w=d&&c!==gl?d(c):y;let b;u||(b={opacity:o.value?0:1,height:o.value?0:gl,overflowY:o.value?"hidden":gl,order:f?h:gl,pointerEvents:o.value?"none":gl,position:o.value?"absolute":gl});const S={};return o.value&&(S["aria-hidden"]=!0),C(Qr,{disabled:!f,onResize:$=>{let{offsetWidth:D}=$;i(D)}},{default:()=>C(g,j(j(j({class:ge(!u&&s),style:b},S),x),{},{ref:a}),{default:()=>[w]})})}}});var fh=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var a;if(!o.value){const{component:d="div"}=e,f=fh(e,["component"]);return C(d,j(j({},f),r),{default:()=>[(a=n.default)===null||a===void 0?void 0:a.call(n)]})}const i=o.value,{className:l}=i,s=fh(i,["className"]),{class:u}=r,c=fh(r,["class"]);return C(Kg,{value:null},{default:()=>[C(Kd,j(j(j({class:ge(l,u)},s),c),e),n)]})}}});var Nj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o({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:Z.any,component:String,itemComponent:Z.any,onVisibleChange:Function,ssr:String,onMousedown:Function}),$m=he({name:"Overflow",inheritAttrs:!1,props:Ij(),emits:["visibleChange"],setup(e,t){let{attrs:n,emit:r,slots:o}=t;const a=z(()=>e.ssr==="full"),i=pe(null),l=z(()=>i.value||0),s=pe(new Map),u=pe(0),c=pe(0),d=pe(0),f=pe(null),p=pe(null),v=z(()=>p.value===null&&a.value?Number.MAX_SAFE_INTEGER:p.value||0),m=pe(!1),h=z(()=>`${e.prefixCls}-item`),g=z(()=>Math.max(u.value,c.value)),x=z(()=>!!(e.data.length&&e.maxCount===vN)),y=z(()=>e.maxCount===hN),w=z(()=>x.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount),b=z(()=>{let P=e.data;return x.value?i.value===null&&a.value?P=e.data:P=e.data.slice(0,Math.min(e.data.length,l.value/e.itemWidth)):typeof e.maxCount=="number"&&(P=e.data.slice(0,e.maxCount)),P}),S=z(()=>x.value?e.data.slice(v.value+1):e.data.slice(b.value.length)),$=(P,I)=>{var N;return typeof e.itemKey=="function"?e.itemKey(P):(N=e.itemKey&&(P==null?void 0:P[e.itemKey]))!==null&&N!==void 0?N:I},D=z(()=>e.renderItem||(P=>P)),O=(P,I)=>{p.value=P,I||(m.value=P{i.value=I.clientWidth},T=(P,I)=>{const N=new Map(s.value);I===null?N.delete(P):N.set(P,I),s.value=N},M=(P,I)=>{u.value=c.value,c.value=I},B=(P,I)=>{d.value=I},F=P=>s.value.get($(b.value[P],P));return Ne([l,s,c,d,()=>e.itemKey,b],()=>{if(l.value&&g.value&&b.value){let P=d.value;const I=b.value.length,N=I-1;if(!I){O(0),f.value=null;return}for(let R=0;Rl.value){O(R-1),f.value=P-_-d.value+c.value;break}}e.suffix&&F(0)+d.value>l.value&&(f.value=null)}}),()=>{const P=m.value&&!!S.value.length,{itemComponent:I,renderRawItem:N,renderRawRest:R,renderRest:_,prefixCls:L="rc-overflow",suffix:k,component:H="div",id:V,onMousedown:U}=e,{class:q,style:K}=n,X=Nj(n,["class","style"]);let re={};f.value!==null&&x.value&&(re={position:"absolute",left:`${f.value}px`,top:0});const ee={prefixCls:h.value,responsive:x.value,component:I,invalidate:y.value},G=N?(Se,Q)=>{const te=$(Se,Q);return C(Kg,{key:te,value:E(E({},ee),{order:Q,item:Se,itemKey:te,registerSize:T,display:Q<=v.value})},{default:()=>[N(Se,Q)]})}:(Se,Q)=>{const te=$(Se,Q);return C(Kd,j(j({},ee),{},{order:Q,key:te,item:Se,renderItem:D.value,itemKey:te,registerSize:T,display:Q<=v.value}),null)};let le=()=>null;const ue={order:P?v.value:Number.MAX_SAFE_INTEGER,className:`${h.value} ${h.value}-rest`,registerSize:M,display:P};if(R)R&&(le=()=>C(Kg,{value:E(E({},ee),ue)},{default:()=>[R(S.value)]}));else{const Se=_||Pj;le=()=>C(Kd,j(j({},ee),ue),{default:()=>typeof Se=="function"?Se(S.value):Se})}const me=()=>{var Se;return C(H,j({id:V,class:ge(!y.value&&L,q),style:K,onMousedown:U},X),{default:()=>[b.value.map(G),w.value?le():null,k&&C(Kd,j(j({},ee),{},{order:v.value,class:`${h.value}-suffix`,registerSize:B,display:!0,style:re}),{default:()=>k}),(Se=o.default)===null||Se===void 0?void 0:Se.call(o)]})};return C(Qr,{disabled:!x.value,onResize:A},{default:me})}}});$m.Item=Mj;$m.RESPONSIVE=vN;$m.INVALIDATE=hN;const Kl=$m,gN=Symbol("TreeSelectLegacyContextPropsKey");function _j(e){return it(gN,e)}function Em(){return lt(gN,{})}const Bj={id:String,prefixCls:String,values:Z.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:Z.any,placeholder:Z.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:Z.oneOfType([Z.number,Z.string]),removeIcon:Z.any,choiceTransitionName:String,maxTagCount:Z.oneOfType([Z.number,Z.string]),maxTagTextLength:Number,maxTagPlaceholder:Z.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},TC=e=>{e.preventDefault(),e.stopPropagation()},Fj=he({name:"MultipleSelectSelector",inheritAttrs:!1,props:Bj,setup(e){const t=pe(),n=pe(0),r=pe(!1),o=Em(),a=z(()=>`${e.prefixCls}-selection`),i=z(()=>e.open||e.mode==="tags"?e.searchValue:""),l=z(()=>e.mode==="tags"||e.showSearch&&(e.open||r.value));Qe(()=>{Ne(i,()=>{n.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function s(f,p,v,m,h){return C("span",{class:ge(`${a.value}-item`,{[`${a.value}-item-disabled`]:v}),title:typeof f=="string"||typeof f=="number"?f.toString():void 0},[C("span",{class:`${a.value}-item-content`},[p]),m&&C(Xf,{class:`${a.value}-item-remove`,onMousedown:TC,onClick:h,customizeIcon:e.removeIcon},{default:()=>[sr("×")]})])}function u(f,p,v,m,h,g){var x;const y=b=>{TC(b),e.onToggleOpen(!open)};let w=g;return o.keyEntities&&(w=((x=o.keyEntities[f])===null||x===void 0?void 0:x.node)||{}),C("span",{key:f,onMousedown:y},[e.tagRender({label:p,value:f,disabled:v,closable:m,onClose:h,option:w})])}function c(f){const{disabled:p,label:v,value:m,option:h}=f,g=!e.disabled&&!p;let x=v;if(typeof e.maxTagTextLength=="number"&&(typeof v=="string"||typeof v=="number")){const w=String(x);w.length>e.maxTagTextLength&&(x=`${w.slice(0,e.maxTagTextLength)}...`)}const y=w=>{var b;w&&w.stopPropagation(),(b=e.onRemove)===null||b===void 0||b.call(e,f)};return typeof e.tagRender=="function"?u(m,x,p,g,y,h):s(v,x,p,g,y)}function d(f){const{maxTagPlaceholder:p=m=>`+ ${m.length} ...`}=e,v=typeof p=="function"?p(f):p;return s(v,v,!1)}return()=>{const{id:f,prefixCls:p,values:v,open:m,inputRef:h,placeholder:g,disabled:x,autofocus:y,autocomplete:w,activeDescendantId:b,tabindex:S,onInputChange:$,onInputPaste:D,onInputKeyDown:O,onInputMouseDown:A,onInputCompositionStart:T,onInputCompositionEnd:M}=e,B=C("div",{class:`${a.value}-search`,style:{width:n.value+"px"},key:"input"},[C(pN,{inputRef:h,open:m,prefixCls:p,id:f,inputElement:null,disabled:x,autofocus:y,autocomplete:w,editable:l.value,activeDescendantId:b,value:i.value,onKeydown:O,onMousedown:A,onChange:$,onPaste:D,onCompositionstart:T,onCompositionend:M,tabindex:S,attrs:ci(e,!0),onFocus:()=>r.value=!0,onBlur:()=>r.value=!1},null),C("span",{ref:t,class:`${a.value}-search-mirror`,"aria-hidden":!0},[i.value,sr(" ")])]),F=C(Kl,{prefixCls:`${a.value}-overflow`,data:v,renderItem:c,renderRest:d,suffix:B,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return C(dt,null,[F,!v.length&&!i.value&&C("span",{class:`${a.value}-placeholder`},[g])])}}}),Rj=Fj,zj={inputElement:Z.any,id:String,prefixCls:String,values:Z.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:Z.any,placeholder:Z.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:Z.oneOfType([Z.number,Z.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},Ob=he({name:"SingleSelector",setup(e){const t=pe(!1),n=z(()=>e.mode==="combobox"),r=z(()=>n.value||e.showSearch),o=z(()=>{let u=e.searchValue||"";return n.value&&e.activeValue&&!t.value&&(u=e.activeValue),u}),a=Em();Ne([n,()=>e.activeValue],()=>{n.value&&(t.value=!1)},{immediate:!0});const i=z(()=>e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!o.value),l=z(()=>{const u=e.values[0];return u&&(typeof u.label=="string"||typeof u.label=="number")?u.label.toString():void 0}),s=()=>{if(e.values[0])return null;const u=i.value?{visibility:"hidden"}:void 0;return C("span",{class:`${e.prefixCls}-selection-placeholder`,style:u},[e.placeholder])};return()=>{var u,c,d,f;const{inputElement:p,prefixCls:v,id:m,values:h,inputRef:g,disabled:x,autofocus:y,autocomplete:w,activeDescendantId:b,open:S,tabindex:$,optionLabelRender:D,onInputKeyDown:O,onInputMouseDown:A,onInputChange:T,onInputPaste:M,onInputCompositionStart:B,onInputCompositionEnd:F}=e,P=h[0];let I=null;if(P&&a.customSlots){const N=(u=P.key)!==null&&u!==void 0?u:P.value,R=((c=a.keyEntities[N])===null||c===void 0?void 0:c.node)||{};I=a.customSlots[(d=R.slots)===null||d===void 0?void 0:d.title]||a.customSlots.title||P.label,typeof I=="function"&&(I=I(R))}else I=D&&P?D(P.option):P==null?void 0:P.label;return C(dt,null,[C("span",{class:`${v}-selection-search`},[C(pN,{inputRef:g,prefixCls:v,id:m,open:S,inputElement:p,disabled:x,autofocus:y,autocomplete:w,editable:r.value,activeDescendantId:b,value:o.value,onKeydown:O,onMousedown:A,onChange:N=>{t.value=!0,T(N)},onPaste:M,onCompositionstart:B,onCompositionend:F,tabindex:$,attrs:ci(e,!0)},null)]),!n.value&&P&&!i.value&&C("span",{class:`${v}-selection-item`,title:l.value},[C(dt,{key:(f=P.key)!==null&&f!==void 0?f:P.value},[I])]),s()])}}});Ob.props=zj;Ob.inheritAttrs=!1;const Lj=Ob;function kj(e){return![_e.ESC,_e.SHIFT,_e.BACKSPACE,_e.TAB,_e.WIN_KEY,_e.ALT,_e.META,_e.WIN_KEY_RIGHT,_e.CTRL,_e.SEMICOLON,_e.EQUALS,_e.CAPS_LOCK,_e.CONTEXT_MENU,_e.F1,_e.F2,_e.F3,_e.F4,_e.F5,_e.F6,_e.F7,_e.F8,_e.F9,_e.F10,_e.F11,_e.F12].includes(e)}function yN(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,n;st(()=>{clearTimeout(n)});function r(o){(o||t===null)&&(t=o),clearTimeout(n),n=setTimeout(()=>{t=null},e)}return[()=>t,r]}function Vu(){const e=t=>{e.current=t};return e}const Hj=he({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:Z.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:Z.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:Z.oneOfType([Z.number,Z.string]),disabled:{type:Boolean,default:void 0},placeholder:Z.any,removeIcon:Z.any,maxTagCount:Z.oneOfType([Z.number,Z.string]),maxTagTextLength:Number,maxTagPlaceholder:Z.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 r=Vu();let o=!1;const[a,i]=yN(0),l=g=>{const{which:x}=g;(x===_e.UP||x===_e.DOWN)&&g.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(g),x===_e.ENTER&&e.mode==="tags"&&!o&&!e.open&&e.onSearchSubmit(g.target.value),kj(x)&&e.onToggleOpen(!0)},s=()=>{i(!0)};let u=null;const c=g=>{e.onSearch(g,!0,o)!==!1&&e.onToggleOpen(!0)},d=()=>{o=!0},f=g=>{o=!1,e.mode!=="combobox"&&c(g.target.value)},p=g=>{let{target:{value:x}}=g;if(e.tokenWithEnter&&u&&/[\r\n]/.test(u)){const y=u.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");x=x.replace(y,u)}u=null,c(x)},v=g=>{const{clipboardData:x}=g;u=x.getData("text")},m=g=>{let{target:x}=g;x!==r.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{r.current.focus()}):r.current.focus())},h=g=>{const x=a();g.target!==r.current&&!x&&g.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!x)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{r.current.focus()},blur:()=>{r.current.blur()}}),()=>{const{prefixCls:g,domRef:x,mode:y}=e,w={inputRef:r,onInputKeyDown:l,onInputMouseDown:s,onInputChange:p,onInputPaste:v,onInputCompositionStart:d,onInputCompositionEnd:f},b=y==="multiple"||y==="tags"?C(Rj,j(j({},e),w),null):C(Lj,j(j({},e),w),null);return C("div",{ref:x,class:`${g}-selector`,onClick:m,onMousedown:h},[b])}}}),jj=Hj;function Vj(e,t,n){function r(o){var a,i,l;let s=o.target;s.shadowRoot&&o.composed&&(s=o.composedPath()[0]||s);const u=[(a=e[0])===null||a===void 0?void 0:a.value,(l=(i=e[1])===null||i===void 0?void 0:i.value)===null||l===void 0?void 0:l.getPopupElement()];t.value&&u.every(c=>c&&!c.contains(s)&&c!==s)&&n(!1)}Qe(()=>{window.addEventListener("mousedown",r)}),st(()=>{window.removeEventListener("mousedown",r)})}function Wj(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const t=pe(!1);let n;const r=()=>{clearTimeout(n)};return Qe(()=>{r()}),[t,(a,i)=>{r(),n=setTimeout(()=>{t.value=a,i&&i()},e)},r]}const bN=Symbol("BaseSelectContextKey");function Uj(e){return it(bN,e)}function fc(){return lt(bN,{})}const Tb=()=>{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(e==null?void 0:e.substr(0,4))};var Kj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o({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:Z.any,emptyOptions:Boolean}),Dm=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:Z.any,placeholder:Z.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:Z.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:Z.any,clearIcon:Z.any,removeIcon:Z.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}),Xj=()=>E(E({},Gj()),Dm());function xN(e){return e==="tags"||e==="multiple"}const Mb=he({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:at(Xj(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:n,expose:r,slots:o}=t;const a=z(()=>xN(e.mode)),i=z(()=>e.showSearch!==void 0?e.showSearch:a.value||e.mode==="combobox"),l=pe(!1);Qe(()=>{l.value=Tb()});const s=Em(),u=pe(null),c=Vu(),d=pe(null),f=pe(null),p=pe(null),[v,m,h]=Wj();r({focus:()=>{var X;(X=f.value)===null||X===void 0||X.focus()},blur:()=>{var X;(X=f.value)===null||X===void 0||X.blur()},scrollTo:X=>{var re;return(re=p.value)===null||re===void 0?void 0:re.scrollTo(X)}});const y=z(()=>{var X;if(e.mode!=="combobox")return e.searchValue;const re=(X=e.displayValues[0])===null||X===void 0?void 0:X.value;return typeof re=="string"||typeof re=="number"?String(re):""}),w=e.open!==void 0?e.open:e.defaultOpen,b=pe(w),S=pe(w),$=X=>{b.value=e.open!==void 0?e.open:X,S.value=b.value};Ne(()=>e.open,()=>{$(e.open)});const D=z(()=>!e.notFoundContent&&e.emptyOptions);Je(()=>{S.value=b.value,(e.disabled||D.value&&S.value&&e.mode==="combobox")&&(S.value=!1)});const O=z(()=>D.value?!1:S.value),A=X=>{const re=X!==void 0?X:!S.value;b.value!==re&&!e.disabled&&($(re),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(re))},T=z(()=>(e.tokenSeparators||[]).some(X=>[` `,`\r `].includes(X))),M=(X,re,ee)=>{var G,le;let ue=!0,me=X;(G=e.onActiveValueChange)===null||G===void 0||G.call(e,null);const Se=ee?null:Lz(X,e.tokenSeparators);return e.mode!=="combobox"&&Se&&(me="",(le=e.onSearchSplit)===null||le===void 0||le.call(e,Se),A(!1),ue=!1),e.onSearch&&y.value!==me&&e.onSearch(me,{source:re?"typing":"effect"}),ue},B=X=>{var re;!X||!X.trim()||(re=e.onSearch)===null||re===void 0||re.call(e,X,{source:"submit"})};Ne(S,()=>{!S.value&&!a.value&&e.mode!=="combobox"&&M("",!1,!1)},{immediate:!0,flush:"post"}),Ne(()=>e.disabled,()=>{b.value&&e.disabled&&$(!1)},{immediate:!0});const[F,P]=yN(),I=function(X){var re;const ee=F(),{which:G}=X;if(G===_e.ENTER&&(e.mode!=="combobox"&&X.preventDefault(),S.value||A(!0)),P(!!y.value),G===_e.BACKSPACE&&!ee&&a.value&&!y.value&&e.displayValues.length){const Se=[...e.displayValues];let Q=null;for(let te=Se.length-1;te>=0;te-=1){const de=Se[te];if(!de.disabled){Se.splice(te,1),Q=de;break}}Q&&e.onDisplayValuesChange(Se,{type:"remove",values:[Q]})}for(var le=arguments.length,ue=new Array(le>1?le-1:0),me=1;me1?re-1:0),G=1;G{const re=e.displayValues.filter(ee=>ee!==X);e.onDisplayValuesChange(re,{type:"remove",values:[X]})},_=pe(!1);it("VCSelectContainerEvent",{focus:function(){m(!0),e.disabled||(e.onFocus&&!_.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&A(!0)),_.value=!0},blur:function(){if(m(!1,()=>{_.value=!1,A(!1)}),e.disabled)return;const X=y.value;X&&(e.mode==="tags"?e.onSearch(X,{source:"submit"}):e.mode==="multiple"&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)}});const H=[];Qe(()=>{H.forEach(X=>clearTimeout(X)),H.splice(0,H.length)}),st(()=>{H.forEach(X=>clearTimeout(X)),H.splice(0,H.length)});const V=function(X){var re,ee;const{target:G}=X,le=(re=d.value)===null||re===void 0?void 0:re.getPopupElement();if(le&&le.contains(G)){const Q=setTimeout(()=>{var te;const de=H.indexOf(Q);de!==-1&&H.splice(de,1),h(),!l.value&&!le.contains(document.activeElement)&&((te=f.value)===null||te===void 0||te.focus())});H.push(Q)}for(var ue=arguments.length,me=new Array(ue>1?ue-1:0),Se=1;Se{q.update()};return Qe(()=>{Ne(O,()=>{var X;if(O.value){const re=Math.ceil((X=u.value)===null||X===void 0?void 0:X.offsetWidth);U.value!==re&&!Number.isNaN(re)&&(U.value=re)}},{immediate:!0,flush:"post"})}),Vj([u,d],O,A),Uj(Ru(E(E({},Xr(e)),{open:S,triggerOpen:O,showSearch:i,multiple:a,toggleOpen:A}))),()=>{const X=E(E({},e),n),{prefixCls:re,id:ee,open:G,defaultOpen:le,mode:ue,showSearch:me,searchValue:Se,onSearch:Q,allowClear:te,clearIcon:de,showArrow:Y,inputIcon:ae,disabled:ce,loading:Ce,getInputElement:ye,getPopupContainer:J,placement:ne,animation:oe,transitionName:ie,dropdownStyle:ve,dropdownClassName:we,dropdownMatchSelectWidth:$e,dropdownRender:Ae,dropdownAlign:xe,showAction:Ee,direction:Te,tokenSeparators:Me,tagRender:Re,optionLabelRender:Be,onPopupScroll:je,onDropdownVisibleChange:W,onFocus:fe,onBlur:De,onKeyup:Ie,onKeydown:Ve,onMousedown:Ge,onClear:Ct,omitDomProps:Nt,getRawInputElement:Wt,displayValues:fn,onDisplayValuesChange:Ln,emptyOptions:Er,activeDescendantId:Oo,activeValue:Gn,OptionList:Go}=X,Le=Kj(X,["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"]),et=ue==="combobox"&&ye&&ye()||null,Ze=typeof Wt=="function"&&Wt(),Bt=E({},Le);let pn;Ze&&(pn=Cn=>{A(Cn)}),qj.forEach(Cn=>{delete Bt[Cn]}),Nt==null||Nt.forEach(Cn=>{delete Bt[Cn]});const ln=Y!==void 0?Y:Ce||!a.value&&ue!=="combobox";let rr;ln&&(rr=C(Xf,{class:ge(`${re}-arrow`,{[`${re}-arrow-loading`]:Ce}),customizeIcon:ae,customizeIconProps:{loading:Ce,searchValue:y.value,open:S.value,focused:v.value,showSearch:i.value}},null));let On;const ao=()=>{Ct==null||Ct(),Ln([],{type:"clear",values:fn}),M("",!1,!1)};!ce&&te&&(fn.length||y.value)&&(On=C(Xf,{class:`${re}-clear`,onMousedown:ao,customizeIcon:de},{default:()=>[sr("×")]}));const mr=C(Go,{ref:p},E(E({},s.customSlots),{option:o.option})),Dr=ge(re,n.class,{[`${re}-focused`]:v.value,[`${re}-multiple`]:a.value,[`${re}-single`]:!a.value,[`${re}-allow-clear`]:te,[`${re}-show-arrow`]:ln,[`${re}-disabled`]:ce,[`${re}-loading`]:Ce,[`${re}-open`]:S.value,[`${re}-customize-input`]:et,[`${re}-show-search`]:i.value}),Gt=C(yj,{ref:d,disabled:ce,prefixCls:re,visible:O.value,popupElement:mr,containerWidth:U.value,animation:oe,transitionName:ie,dropdownStyle:ve,dropdownClassName:we,direction:Te,dropdownMatchSelectWidth:$e,dropdownRender:Ae,dropdownAlign:xe,placement:ne,getPopupContainer:J,empty:Er,getTriggerDOMNode:()=>c.current,onPopupVisibleChange:pn,onPopupMouseEnter:K},{default:()=>Ze?hn(Ze)&&At(Ze,{ref:c},!1,!0):C(jj,j(j({},e),{},{domRef:c,prefixCls:re,inputElement:et,ref:f,id:ee,showSearch:i.value,mode:ue,activeDescendantId:Oo,tagRender:Re,optionLabelRender:Be,values:fn,open:S.value,onToggleOpen:A,activeValue:Gn,searchValue:y.value,onSearch:M,onSearchSubmit:B,onRemove:R,tokenWithEnter:T.value}),null)});let or;return Ze?or=Gt:or=C("div",j(j({},Bt),{},{class:Dr,ref:u,onMousedown:V,onKeydown:I,onKeyup:N}),[v.value&&!S.value&&C("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${fn.map(Cn=>{let{label:To,value:Pa}=Cn;return["number","string"].includes(typeof To)?To:Pa}).join(", ")}`]),Gt,rr,On]),or}}}),Am=(e,t)=>{let{height:n,offset:r,prefixCls:o,onInnerResize:a}=e,{slots:i}=t;var l;let s={},u={display:"flex",flexDirection:"column"};return r!==void 0&&(s={height:`${n}px`,position:"relative",overflow:"hidden"},u=E(E({},u),{transform:`translateY(${r}px)`,position:"absolute",left:0,right:0,top:0})),C("div",{style:s},[C(Qr,{onResize:c=>{let{offsetHeight:d}=c;d&&a&&a()}},{default:()=>[C("div",{style:u,class:ge({[`${o}-holder-inner`]:o})},[(l=i.default)===null||l===void 0?void 0:l.call(i)])]})])};Am.displayName="Filter";Am.inheritAttrs=!1;Am.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const Yj=Am,wN=(e,t)=>{let{setRef:n}=e,{slots:r}=t;var o;const a=Lt((o=r.default)===null||o===void 0?void 0:o.call(r));return a&&a.length?ha(a[0],{ref:n}):a};wN.props={setRef:{type:Function,default:()=>{}}};const Zj=wN,Jj=20;function MC(e){return"touches"in e?e.touches[0].pageY:e.pageY}const Qj=he({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(){return{moveRaf:null,scrollbarRef:Vu(),thumbRef:Vu(),visibleTimeout:null,state:_t({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;(e=this.scrollbarRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onScrollbarTouchStart,Dn?{passive:!1}:!1),(t=this.thumbRef.current)===null||t===void 0||t.addEventListener("touchstart",this.onMouseDown,Dn?{passive:!1}:!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,Dn?{passive:!1}:!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,Dn?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,Dn?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,Dn?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),tt.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;E(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:r}=this.state,{onScroll:o}=this.$props;if(tt.cancel(this.moveRaf),t){const a=MC(e)-n,i=r+a,l=this.getEnableScrollRange(),s=this.getEnableHeightRange(),u=s?i/s:0,c=Math.ceil(u*l);this.moveRaf=tt(()=>{o(c)})}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,count:t}=this.$props;let n=e/t*10;return n=Math.max(n,Jj),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,t=this.getSpinHeight();return e-t||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();return e===0||t===0?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,r=this.getSpinHeight()+"px",o=this.getTop()+"px",a=this.showScroll(),i=a&&t;return C("div",{ref:this.scrollbarRef,class:ge(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:a}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:i?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[C("div",{ref:this.thumbRef,class:ge(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:r,top:o,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function eV(e,t,n,r){const o=new Map,a=new Map,i=be(Symbol("update"));Ne(e,()=>{i.value=Symbol("update")});let l;function s(){tt.cancel(l)}function u(){s(),l=tt(()=>{o.forEach((d,f)=>{if(d&&d.offsetParent){const{offsetHeight:p}=d;a.get(f)!==p&&(i.value=Symbol("update"),a.set(f,d.offsetHeight))}})})}function c(d,f){const p=t(d),v=o.get(p);f?(o.set(p,f.$el||f),u()):o.delete(p),!v!=!f&&(f?n==null||n(d):r==null||r(d))}return Cr(()=>{s()}),[c,u,a,i]}function tV(e,t,n,r,o,a,i,l){let s;return u=>{if(u==null){l();return}tt.cancel(s);const c=t.value,d=r.itemHeight;if(typeof u=="number")i(u);else if(u&&typeof u=="object"){let f;const{align:p}=u;"index"in u?{index:f}=u:f=c.findIndex(h=>o(h)===u.key);const{offset:v=0}=u,m=(h,g)=>{if(h<0||!e.value)return;const x=e.value.clientHeight;let y=!1,w=g;if(x){const b=g||p;let S=0,$=0,D=0;const O=Math.min(c.length,f);for(let M=0;M<=O;M+=1){const B=o(c[M]);$=S;const F=n.get(B);D=$+(F===void 0?d:F),S=D,M===f&&F===void 0&&(y=!0)}const A=e.value.scrollTop;let T=null;switch(b){case"top":T=$-v;break;case"bottom":T=D-x+v;break;default:{const M=A+x;$M&&(w="bottom")}}T!==null&&T!==A&&i(T)}s=tt(()=>{y&&a(),m(h-1,w)},2)};m(5)}}}const nV=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),rV=nV,SN=(e,t)=>{let n=!1,r=null;function o(){clearTimeout(r),n=!0,r=setTimeout(()=>{n=!1},50)}return function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const l=a<0&&e.value||a>0&&t.value;return i&&l?(clearTimeout(r),n=!1):(!l||n)&&o(),!n&&l}};function oV(e,t,n,r){let o=0,a=null,i=null,l=!1;const s=SN(t,n);function u(d){if(!e.value)return;tt.cancel(a);const{deltaY:f}=d;o+=f,i=f,!s(f)&&(rV||d.preventDefault(),a=tt(()=>{r(o*(l?10:1)),o=0}))}function c(d){e.value&&(l=d.detail===i)}return[u,c]}const aV=14/15;function iV(e,t,n){let r=!1,o=0,a=null,i=null;const l=()=>{a&&(a.removeEventListener("touchmove",s),a.removeEventListener("touchend",u))},s=f=>{if(r){const p=Math.ceil(f.touches[0].pageY);let v=o-p;o=p,n(v)&&f.preventDefault(),clearInterval(i),i=setInterval(()=>{v*=aV,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(i)},16)}},u=()=>{r=!1,l()},c=f=>{l(),f.touches.length===1&&!r&&(r=!0,o=Math.ceil(f.touches[0].pageY),a=f.target,a.addEventListener("touchmove",s,{passive:!1}),a.addEventListener("touchend",u))},d=()=>{};Qe(()=>{document.addEventListener("touchmove",d,{passive:!1}),Ne(e,f=>{t.value.removeEventListener("touchstart",c),l(),clearInterval(i),f&&t.value.addEventListener("touchstart",c,{passive:!1})},{immediate:!0})}),st(()=>{document.removeEventListener("touchmove",d)})}var lV=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const u=t+s,c=o(l,u,{}),d=i(l);return C(Zj,{key:d,setRef:f=>r(l,f)},{default:()=>[c]})})}const dV=he({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:Z.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:n}=t;const r=z(()=>{const{height:R,itemHeight:_,virtual:L}=e;return!!(L!==!1&&R&&_)}),o=z(()=>{const{height:R,itemHeight:_,data:L}=e;return r.value&&L&&_*L.length>R}),a=_t({scrollTop:0,scrollMoving:!1}),i=z(()=>e.data||sV),l=pe([]);Ne(i,()=>{l.value=un(i.value).slice()},{immediate:!0});const s=pe(R=>{});Ne(()=>e.itemKey,R=>{typeof R=="function"?s.value=R:s.value=_=>_==null?void 0:_[R]},{immediate:!0});const u=pe(),c=pe(),d=pe(),f=R=>s.value(R),p={getKey:f};function v(R){let _;typeof R=="function"?_=R(a.scrollTop):_=R;const L=S(_);u.value&&(u.value.scrollTop=L),a.scrollTop=L}const[m,h,g,x]=eV(l,f,null,null),y=_t({scrollHeight:void 0,start:0,end:0,offset:void 0}),w=pe(0);Qe(()=>{ht(()=>{var R;w.value=((R=c.value)===null||R===void 0?void 0:R.offsetHeight)||0})}),Sr(()=>{ht(()=>{var R;w.value=((R=c.value)===null||R===void 0?void 0:R.offsetHeight)||0})}),Ne([r,l],()=>{r.value||E(y,{scrollHeight:void 0,start:0,end:l.value.length-1,offset:void 0})},{immediate:!0}),Ne([r,l,w,o],()=>{r.value&&!o.value&&E(y,{scrollHeight:w.value,start:0,end:l.value.length-1,offset:void 0}),u.value&&(a.scrollTop=u.value.scrollTop)},{immediate:!0}),Ne([o,r,()=>a.scrollTop,l,x,()=>e.height,w],()=>{if(!r.value||!o.value)return;let R=0,_,L,k;const H=l.value.length,V=l.value,U=a.scrollTop,{itemHeight:q,height:K}=e,X=U+K;for(let re=0;re=U&&(_=re,L=R),k===void 0&&ue>X&&(k=re),R=ue}_===void 0&&(_=0,L=0,k=Math.ceil(K/q)),k===void 0&&(k=H-1),k=Math.min(k+1,H),E(y,{scrollHeight:R,start:_,end:k,offset:L})},{immediate:!0});const b=z(()=>y.scrollHeight-e.height);function S(R){let _=R;return Number.isNaN(b.value)||(_=Math.min(_,b.value)),_=Math.max(_,0),_}const $=z(()=>a.scrollTop<=0),D=z(()=>a.scrollTop>=b.value),O=SN($,D);function A(R){v(R)}function T(R){var _;const{scrollTop:L}=R.currentTarget;L!==a.scrollTop&&v(L),(_=e.onScroll)===null||_===void 0||_.call(e,R)}const[M,B]=oV(r,$,D,R=>{v(_=>_+R)});iV(r,u,(R,_)=>O(R,_)?!1:(M({preventDefault(){},deltaY:R}),!0));function F(R){r.value&&R.preventDefault()}const P=()=>{u.value&&(u.value.removeEventListener("wheel",M,Dn?{passive:!1}:!1),u.value.removeEventListener("DOMMouseScroll",B),u.value.removeEventListener("MozMousePixelScroll",F))};Je(()=>{ht(()=>{u.value&&(P(),u.value.addEventListener("wheel",M,Dn?{passive:!1}:!1),u.value.addEventListener("DOMMouseScroll",B),u.value.addEventListener("MozMousePixelScroll",F))})}),st(()=>{P()});const I=tV(u,l,g,e,f,h,v,()=>{var R;(R=d.value)===null||R===void 0||R.delayHidden()});n({scrollTo:I});const N=z(()=>{let R=null;return e.height&&(R=E({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},uV),r.value&&(R.overflowY="hidden",a.scrollMoving&&(R.pointerEvents="none"))),R});return Ne([()=>y.start,()=>y.end,l],()=>{if(e.onVisibleChange){const R=l.value.slice(y.start,y.end+1);e.onVisibleChange(R,l.value)}},{flush:"post"}),{state:a,mergedData:l,componentStyle:N,onFallbackScroll:T,onScrollBar:A,componentRef:u,useVirtual:r,calRes:y,collectHeight:h,setInstance:m,sharedConfig:p,scrollBarRef:d,fillerInnerRef:c}},render(){const e=E(E({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:n,itemHeight:r,fullHeight:o,data:a,itemKey:i,virtual:l,component:s="div",onScroll:u,children:c=this.$slots.default,style:d,class:f}=e,p=lV(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),v=ge(t,f),{scrollTop:m}=this.state,{scrollHeight:h,offset:g,start:x,end:y}=this.calRes,{componentStyle:w,onFallbackScroll:b,onScrollBar:S,useVirtual:$,collectHeight:D,sharedConfig:O,setInstance:A,mergedData:T}=this;return C("div",j({style:E(E({},d),{position:"relative"}),class:v},p),[C(s,{class:`${t}-holder`,style:w,ref:"componentRef",onScroll:b},{default:()=>[C(Yj,{prefixCls:t,height:h,offset:g,onInnerResize:D,ref:"fillerInnerRef"},{default:()=>cV(T,x,y,A,c,O)})]}),$&&C(Qj,{ref:"scrollBarRef",prefixCls:t,scrollTop:m,height:n,scrollHeight:h,count:T.length,onScroll:S,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}}),CN=dV;function Nb(e,t,n){const r=be(e());return Ne(t,(o,a)=>{n?n(o,a)&&(r.value=e()):r.value=e()}),r}function fV(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const $N=Symbol("SelectContextKey");function pV(e){return it($N,e)}function mV(){return lt($N,{})}var vV=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o`${o.prefixCls}-item`),l=Nb(()=>a.flattenOptions,[()=>o.open,()=>a.flattenOptions],b=>b[0]),s=Vu(),u=b=>{b.preventDefault()},c=b=>{s.current&&s.current.scrollTo(typeof b=="number"?{index:b}:b)},d=function(b){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const $=l.value.length;for(let D=0;D<$;D+=1){const O=(b+D*S+$)%$,{group:A,data:T}=l.value[O];if(!A&&!T.disabled)return O}return-1},f=_t({activeIndex:d(0)}),p=function(b){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;f.activeIndex=b;const $={source:S?"keyboard":"mouse"},D=l.value[b];if(!D){a.onActiveValue(null,-1,$);return}a.onActiveValue(D.value,b,$)};Ne([()=>l.value.length,()=>o.searchValue],()=>{p(a.defaultActiveFirstOption!==!1?d(0):-1)},{immediate:!0});const v=b=>a.rawValues.has(b)&&o.mode!=="combobox";Ne([()=>o.open,()=>o.searchValue],()=>{if(!o.multiple&&o.open&&a.rawValues.size===1){const b=Array.from(a.rawValues)[0],S=un(l.value).findIndex($=>{let{data:D}=$;return D[a.fieldNames.value]===b});S!==-1&&(p(S),ht(()=>{c(S)}))}o.open&&ht(()=>{var b;(b=s.current)===null||b===void 0||b.scrollTo(void 0)})},{immediate:!0,flush:"post"});const m=b=>{b!==void 0&&a.onSelect(b,{selected:!a.rawValues.has(b)}),o.multiple||o.toggleOpen(!1)},h=b=>typeof b.label=="function"?b.label():b.label;function g(b){const S=l.value[b];if(!S)return null;const $=S.data||{},{value:D}=$,{group:O}=S,A=ci($,!0),T=h(S);return S?C("div",j(j({"aria-label":typeof T=="string"&&!O?T:null},A),{},{key:b,role:O?"presentation":"option",id:`${o.id}_list_${b}`,"aria-selected":v(D)}),[D]):null}return n({onKeydown:b=>{const{which:S,ctrlKey:$}=b;switch(S){case _e.N:case _e.P:case _e.UP:case _e.DOWN:{let D=0;if(S===_e.UP?D=-1:S===_e.DOWN?D=1:fV()&&$&&(S===_e.N?D=1:S===_e.P&&(D=-1)),D!==0){const O=d(f.activeIndex+D,D);c(O),p(O,!0)}break}case _e.ENTER:{const D=l.value[f.activeIndex];D&&!D.data.disabled?m(D.value):m(void 0),o.open&&b.preventDefault();break}case _e.ESC:o.toggleOpen(!1),o.open&&b.stopPropagation()}},onKeyup:()=>{},scrollTo:b=>{c(b)}}),()=>{const{id:b,notFoundContent:S,onPopupScroll:$}=o,{menuItemSelectedIcon:D,fieldNames:O,virtual:A,listHeight:T,listItemHeight:M}=a,B=r.option,{activeIndex:F}=f,P=Object.keys(O).map(I=>O[I]);return l.value.length===0?C("div",{role:"listbox",id:`${b}_list`,class:`${i.value}-empty`,onMousedown:u},[S]):C(dt,null,[C("div",{role:"listbox",id:`${b}_list`,style:{height:0,width:0,overflow:"hidden"}},[g(F-1),g(F),g(F+1)]),C(CN,{itemKey:"key",ref:s,data:l.value,height:T,itemHeight:M,fullHeight:!1,onMousedown:u,onScroll:$,virtual:A},{default:(I,N)=>{var R;const{group:_,groupOption:L,data:k,value:H}=I,{key:V}=k,U=typeof I.label=="function"?I.label():I.label;if(_){const ce=(R=k.title)!==null&&R!==void 0?R:NC(U)&&U;return C("div",{class:ge(i.value,`${i.value}-group`),title:ce},[B?B(k):U!==void 0?U:V])}const{disabled:q,title:K,children:X,style:re,class:ee,className:G}=k,le=vV(k,["disabled","title","children","style","class","className"]),ue=pt(le,P),me=v(H),Se=`${i.value}-option`,Q=ge(i.value,Se,ee,G,{[`${Se}-grouped`]:L,[`${Se}-active`]:F===N&&!q,[`${Se}-disabled`]:q,[`${Se}-selected`]:me}),te=h(I),de=!D||typeof D=="function"||me,Y=typeof te=="number"?te:te||H;let ae=NC(Y)?Y.toString():void 0;return K!==void 0&&(ae=K),C("div",j(j({},ue),{},{"aria-selected":me,class:Q,title:ae,onMousemove:ce=>{le.onMousemove&&le.onMousemove(ce),!(F===N||q)&&p(N)},onClick:ce=>{q||m(H),le.onClick&&le.onClick(ce)},style:re}),[C("div",{class:`${Se}-content`},[B?B(k):Y]),hn(D)||me,de&&C(Xf,{class:`${i.value}-option-state`,customizeIcon:D,customizeIconProps:{isSelected:me}},{default:()=>[me?"✓":null]})])}})])}}}),gV=hV;var yV=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o1&&arguments[1]!==void 0?arguments[1]:!1;return Lt(e).map((r,o)=>{var a;if(!hn(r)||!r.type)return null;const{type:{isSelectOptGroup:i},key:l,children:s,props:u}=r;if(t||!i)return bV(r);const c=s&&s.default?s.default():void 0,d=(u==null?void 0:u.label)||((a=s.label)===null||a===void 0?void 0:a.call(s))||l;return E(E({key:`__RC_SELECT_GRP__${l===null?o:String(l)}__`},u),{label:d,options:EN(c||[])})}).filter(r=>r)}function xV(e,t,n){const r=pe(),o=pe(),a=pe(),i=pe([]);return Ne([e,t],()=>{e.value?i.value=un(e.value).slice():i.value=EN(t.value)},{immediate:!0,deep:!0}),Je(()=>{const l=i.value,s=new Map,u=new Map,c=n.value;function d(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let v=0;v0&&arguments[0]!==void 0?arguments[0]:be("");const t=`rc_select_${SV()}`;return e.value||t}function DN(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function ph(e,t){return DN(e).join("").toUpperCase().includes(t)}const CV=(e,t,n,r,o)=>z(()=>{const a=n.value,i=o==null?void 0:o.value,l=r==null?void 0:r.value;if(!a||l===!1)return e.value;const{options:s,label:u,value:c}=t.value,d=[],f=typeof l=="function",p=a.toUpperCase(),v=f?l:(h,g)=>i?ph(g[i],p):g[s]?ph(g[u!=="children"?u:"label"],p):ph(g[c],p),m=f?h=>Rg(h):h=>h;return e.value.forEach(h=>{if(h[s]){if(v(a,m(h)))d.push(h);else{const x=h[s].filter(y=>v(a,m(y)));x.length&&d.push(E(E({},h),{[s]:x}))}return}v(a,m(h))&&d.push(h)}),d}),$V=(e,t)=>{const n=pe({values:new Map,options:new Map});return[z(()=>{const{values:a,options:i}=n.value,l=e.value.map(c=>{var d;return c.label===void 0?E(E({},c),{label:(d=a.get(c.value))===null||d===void 0?void 0:d.label}):c}),s=new Map,u=new Map;return l.forEach(c=>{s.set(c.value,c),u.set(c.value,t.value.get(c.value)||i.get(c.value))}),n.value.values=s,n.value.options=u,l}),a=>t.value.get(a)||n.value.options.get(a)]};function Zt(e,t){const{defaultValue:n,value:r=be()}=t||{};let o=typeof e=="function"?e():e;r.value!==void 0&&(o=xn(r)),n!==void 0&&(o=typeof n=="function"?n():n);const a=be(o),i=be(o);Je(()=>{let s=r.value!==void 0?r.value:a.value;t.postState&&(s=t.postState(s)),i.value=s});function l(s){const u=i.value;a.value=s,un(i.value)!==s&&t.onChange&&t.onChange(s,u)}return Ne(r,()=>{a.value=r.value}),[i,l]}function It(e){const t=typeof e=="function"?e():e,n=be(t);function r(o){n.value=o}return[n,r]}const EV=["inputValue"];function AN(){return E(E({},Dm()),{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:Z.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:Z.any,defaultValue:Z.any,onChange:Function,children:Array})}function DV(e){return!e||typeof e!="object"}const AV=he({compatConfig:{MODE:3},name:"Select",inheritAttrs:!1,props:at(AN(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:n,attrs:r,slots:o}=t;const a=Pb(Ye(e,"id")),i=z(()=>xN(e.mode)),l=z(()=>!!(!e.options&&e.children)),s=z(()=>e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption),u=z(()=>WM(e.fieldNames,l.value)),[c,d]=Zt("",{value:z(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:ee=>ee||""}),f=xV(Ye(e,"options"),Ye(e,"children"),u),{valueOptions:p,labelOptions:v,options:m}=f,h=ee=>DN(ee).map(le=>{var ue,me;let Se,Q,te,de;DV(le)?Se=le:(te=le.key,Q=le.label,Se=(ue=le.value)!==null&&ue!==void 0?ue:te);const Y=p.value.get(Se);return Y&&(Q===void 0&&(Q=Y==null?void 0:Y[e.optionLabelProp||u.value.label]),te===void 0&&(te=(me=Y==null?void 0:Y.key)!==null&&me!==void 0?me:Se),de=Y==null?void 0:Y.disabled),{label:Q,value:Se,key:te,disabled:de,option:Y}}),[g,x]=Zt(e.defaultValue,{value:Ye(e,"value")}),y=z(()=>{var ee;const G=h(g.value);return e.mode==="combobox"&&!(!((ee=G[0])===null||ee===void 0)&&ee.value)?[]:G}),[w,b]=$V(y,p),S=z(()=>{if(!e.mode&&w.value.length===1){const ee=w.value[0];if(ee.value===null&&(ee.label===null||ee.label===void 0))return[]}return w.value.map(ee=>{var G;return E(E({},ee),{label:(G=typeof ee.label=="function"?ee.label():ee.label)!==null&&G!==void 0?G:ee.value})})}),$=z(()=>new Set(w.value.map(ee=>ee.value)));Je(()=>{var ee;if(e.mode==="combobox"){const G=(ee=w.value[0])===null||ee===void 0?void 0:ee.value;G!=null&&d(String(G))}},{flush:"post"});const D=(ee,G)=>{const le=G??ee;return{[u.value.value]:ee,[u.value.label]:le}},O=pe();Je(()=>{if(e.mode!=="tags"){O.value=m.value;return}const ee=m.value.slice(),G=le=>p.value.has(le);[...w.value].sort((le,ue)=>le.value{const ue=le.value;G(ue)||ee.push(D(ue,le.label))}),O.value=ee});const A=CV(O,u,c,s,Ye(e,"optionFilterProp")),T=z(()=>e.mode!=="tags"||!c.value||A.value.some(ee=>ee[e.optionFilterProp||"value"]===c.value)?A.value:[D(c.value),...A.value]),M=z(()=>e.filterSort?[...T.value].sort((ee,G)=>e.filterSort(ee,G)):T.value),B=z(()=>zz(M.value,{fieldNames:u.value,childrenAsData:l.value})),F=ee=>{const G=h(ee);if(x(G),e.onChange&&(G.length!==w.value.length||G.some((le,ue)=>{var me;return((me=w.value[ue])===null||me===void 0?void 0:me.value)!==(le==null?void 0:le.value)}))){const le=e.labelInValue?G.map(me=>E(E({},me),{originLabel:me.label,label:typeof me.label=="function"?me.label():me.label})):G.map(me=>me.value),ue=G.map(me=>Rg(b(me.value)));e.onChange(i.value?le:le[0],i.value?ue:ue[0])}},[P,I]=It(null),[N,R]=It(0),_=z(()=>e.defaultActiveFirstOption!==void 0?e.defaultActiveFirstOption:e.mode!=="combobox"),L=function(ee,G){let{source:le="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};R(G),e.backfill&&e.mode==="combobox"&&ee!==null&&le==="keyboard"&&I(String(ee))},k=(ee,G)=>{const le=()=>{var ue;const me=b(ee),Se=me==null?void 0:me[u.value.label];return[e.labelInValue?{label:typeof Se=="function"?Se():Se,originLabel:Se,value:ee,key:(ue=me==null?void 0:me.key)!==null&&ue!==void 0?ue:ee}:ee,Rg(me)]};if(G&&e.onSelect){const[ue,me]=le();e.onSelect(ue,me)}else if(!G&&e.onDeselect){const[ue,me]=le();e.onDeselect(ue,me)}},H=(ee,G)=>{let le;const ue=i.value?G.selected:!0;ue?le=i.value?[...w.value,ee]:[ee]:le=w.value.filter(me=>me.value!==ee),F(le),k(ee,ue),e.mode==="combobox"?I(""):(!i.value||e.autoClearSearchValue)&&(d(""),I(""))},V=(ee,G)=>{F(ee),(G.type==="remove"||G.type==="clear")&&G.values.forEach(le=>{k(le.value,!1)})},U=(ee,G)=>{var le;if(d(ee),I(null),G.source==="submit"){const ue=(ee||"").trim();if(ue){const me=Array.from(new Set([...$.value,ue]));F(me),k(ue,!0),d("")}return}G.source!=="blur"&&(e.mode==="combobox"&&F(ee),(le=e.onSearch)===null||le===void 0||le.call(e,ee))},q=ee=>{let G=ee;e.mode!=="tags"&&(G=ee.map(ue=>{const me=v.value.get(ue);return me==null?void 0:me.value}).filter(ue=>ue!==void 0));const le=Array.from(new Set([...$.value,...G]));F(le),le.forEach(ue=>{k(ue,!0)})},K=z(()=>e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1);pV(Ru(E(E({},f),{flattenOptions:B,onActiveValue:L,defaultActiveFirstOption:_,onSelect:H,menuItemSelectedIcon:Ye(e,"menuItemSelectedIcon"),rawValues:$,fieldNames:u,virtual:K,listHeight:Ye(e,"listHeight"),listItemHeight:Ye(e,"listItemHeight"),childrenAsData:l})));const X=be();n({focus(){var ee;(ee=X.value)===null||ee===void 0||ee.focus()},blur(){var ee;(ee=X.value)===null||ee===void 0||ee.blur()},scrollTo(ee){var G;(G=X.value)===null||G===void 0||G.scrollTo(ee)}});const re=z(()=>pt(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()=>C(Mb,j(j(j({},re.value),r),{},{id:a,prefixCls:e.prefixCls,ref:X,omitDomProps:EV,mode:e.mode,displayValues:S.value,onDisplayValuesChange:V,searchValue:c.value,onSearch:U,onSearchSplit:q,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:gV,emptyOptions:!B.value.length,activeValue:P.value,activeDescendantId:`${a}_list_${N.value}`}),o)}}),Ib=()=>null;Ib.isSelectOption=!0;Ib.displayName="ASelectOption";const OV=Ib,_b=()=>null;_b.isSelectOptGroup=!0;_b.displayName="ASelectOptGroup";const TV=_b;var MV={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"};const NV=MV;var IC=[],Zs=[],PV="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function IV(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function _V(e,t){if(t=t||{},e===void 0)throw new Error(PV);var n=t.prepend===!0?"prepend":"append",r=t.container!==void 0?t.container:document.querySelector("head"),o=IC.indexOf(r);o===-1&&(o=IC.push(r)-1,Zs[o]={});var a;return Zs[o]!==void 0&&Zs[o][n]!==void 0?a=Zs[o][n]:(a=Zs[o][n]=IV(),n==="prepend"?r.insertBefore(a,r.childNodes[0]):r.appendChild(a)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),a.styleSheet?a.styleSheet.cssText+=e:a.textContent+=e,a}function _C(e){for(var t=1;t * { line-height: 1; } .anticon svg { display: inline-block; } .anticon::before { display: none; } .anticon .anticon-icon { display: block; } .anticon[tabindex] { cursor: pointer; } .anticon-spin::before, .anticon-spin { display: inline-block; -webkit-animation: loadingCircle 1s infinite linear; animation: loadingCircle 1s infinite linear; } @-webkit-keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } `,FC=!1,MN=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:RV;ht(function(){FC||(typeof window<"u"&&window.document&&window.document.documentElement&&_V(t,{prepend:!0}),FC=!0)})},zV=["icon","primaryColor","secondaryColor"];function LV(e,t){if(e==null)return{};var n=kV(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kV(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function qd(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rW(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}NN("#1890ff");var Os=function(t,n){var r,o=LC({},t,n.attrs),a=o.class,i=o.icon,l=o.spin,s=o.rotate,u=o.tabindex,c=o.twoToneColor,d=o.onClick,f=nW(o,YV),p=(r={anticon:!0},Gg(r,"anticon-".concat(i.name),Boolean(i.name)),Gg(r,a,a),r),v=l===""||l||i.name==="loading"?"anticon-spin":"",m=u;m===void 0&&d&&(m=-1,f.tabindex=m);var h=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,g=TN(c),x=ZV(g,2),y=x[0],w=x[1];return C("span",LC({role:"img","aria-label":i.name},f,{onClick:d,class:p}),[C(Bb,{class:v,icon:i,primaryColor:y,secondaryColor:w,style:h},null)])};Os.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String};Os.displayName="AntdIcon";Os.inheritAttrs=!1;Os.getTwoToneColor=XV;Os.setTwoToneColor=NN;const vt=Os;function kC(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};const{loading:n,multiple:r,prefixCls:o,hasFeedback:a,feedbackIcon:i,showArrow:l}=e,s=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),u=e.clearIcon||t.clearIcon&&t.clearIcon(),c=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),d=e.removeIcon||t.removeIcon&&t.removeIcon(),f=u??C($r,null,null),p=g=>C(dt,null,[l!==!1&&g,a&&i]);let v=null;if(s!==void 0)v=p(s);else if(n)v=p(C(Lr,{spin:!0},null));else{const g=`${o}-suffix`;v=x=>{let{open:y,showSearch:w}=x;return p(y&&w?C(Tm,{class:g},null):C(pc,{class:g},null))}}let m=null;c!==void 0?m=c:r?m=C(Om,null,null):m=null;let h=null;return d!==void 0?h=d:h=C(Hr,null,null),{clearIcon:f,suffixIcon:v,itemIcon:m,removeIcon:h}}function Vb(e){const t=Symbol("contextKey");return{useProvide:(o,a)=>{const i=_t({});return it(t,i),Je(()=>{E(i,o,a||{})}),i},useInject:()=>lt(t,e)||{}}}const Yf=Symbol("ContextProps"),Zf=Symbol("InternalContextProps"),xW=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:z(()=>!0);const n=be(new Map),r=(a,i)=>{n.value.set(a,i),n.value=new Map(n.value)},o=a=>{n.value.delete(a),n.value=new Map(n.value)};Kn(),Ne([t,n],()=>{}),it(Yf,e),it(Zf,{addFormItemField:r,removeFormItemField:o})},Xg={id:z(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},Yg={addFormItemField:()=>{},removeFormItemField:()=>{}},Sn=()=>{const e=lt(Zf,Yg),t=Symbol("FormItemFieldKey"),n=Kn();return e.addFormItemField(t,n.type),st(()=>{e.removeFormItemField(t)}),it(Zf,Yg),it(Yf,Xg),lt(Yf,Xg)},Jf=he({compatConfig:{MODE:3},name:"AFormItemRest",setup(e,t){let{slots:n}=t;return it(Zf,Yg),it(Yf,Xg),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),Bn=Vb({}),Qf=he({name:"NoFormStatus",setup(e,t){let{slots:n}=t;return Bn.useProvide({}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function Qn(e,t,n){return ge({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const $o=(e,t)=>t||e,wW=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},SW=wW,CW=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}-space-item`]:{"&:empty":{display:"none"}}}}},PN=nt("Space",e=>[CW(e),SW(e)]);var $W="[object Symbol]";function Mm(e){return typeof e=="symbol"||go(e)&&ui(e)==$W}function Nm(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=jW)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function KW(e){return function(){return e}}var qW=function(){try{var e=tl(Object,"defineProperty");return e({},"",{}),e}catch{}}();const ep=qW;var GW=ep?function(e,t){return ep(e,"toString",{configurable:!0,enumerable:!1,value:KW(t),writable:!0})}:Wb;const XW=GW;var YW=UW(XW);const _N=YW;function ZW(e,t){for(var n=-1,r=e==null?0:e.length;++n-1}function RN(e,t,n){t=="__proto__"&&ep?ep(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var tU=Object.prototype,nU=tU.hasOwnProperty;function Ub(e,t,n){var r=e[t];(!(nU.call(e,t)&&yb(r,n))||n===void 0&&!(t in e))&&RN(e,t,n)}function mc(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a0&&n(l)?t>1?LN(l,t-1,n,r,o):xb(o,l):r||(o[o.length]=l)}return o}function wU(e){var t=e==null?0:e.length;return t?LN(e,1):[]}function kN(e){return _N(zN(e,void 0,wU),e+"")}function SU(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r=t||$<0||d&&D>=a}function g(){var S=mh();if(h(S))return x(S);l=setTimeout(g,m(S))}function x(S){return l=void 0,f&&r?p(S):(r=o=void 0,i)}function y(){l!==void 0&&clearTimeout(l),u=0,r=s=o=l=void 0}function w(){return l===void 0?i:x(mh())}function b(){var S=mh(),$=h(S);if(r=arguments,o=this,s=S,$){if(l===void 0)return v(s);if(d)return clearTimeout(l),l=setTimeout(g,t),p(s)}return l===void 0&&(l=setTimeout(g,t)),i}return b.cancel=y,b.flush=w,b}function vq(e){return go(e)&&$s(e)}function YN(e,t,n){for(var r=-1,o=e==null?0:e.length;++r-1?o[a?t[i]:i]:void 0}}var yq=Math.max;function bq(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:FW(n);return o<0&&(o=yq(r+o,0)),BN(e,Yb(t),o)}var xq=gq(bq);const wq=xq;function Sq(e){for(var t=-1,n=e==null?0:e.length,r={};++t=120&&c.length>=120)?new cs(i&&c):void 0}c=e[0];var d=-1,f=l[0];e:for(;++d1),a}),mc(e,VN(e),n),r&&(n=gu(n,Rq|zq|Lq,Fq));for(var o=t.length;o--;)Bq(n,t[o]);return n});const Hq=kq;function jq(e,t,n,r){if(!bo(e))return e;t=Ts(t,e);for(var o=-1,a=t.length,i=a-1,l=e;l!=null&&++o=Zq){var u=t?null:Yq(e);if(u)return bb(u);i=!1,o=Kf,s=new cs}else s=t?[]:l;e:for(;++r({compactSize:String,compactDirection:Z.oneOf(Un("horizontal","vertical")).def("horizontal"),isFirstItem:Pe(),isLastItem:Pe()}),Im=Vb(null),di=(e,t)=>{const n=Im.useInject(),r=z(()=>{if(!n||ZN(n))return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,l=o==="vertical"?"-vertical-":"-";return ge({[`${e.value}-compact${l}item`]:!0,[`${e.value}-compact${l}first-item`]:a,[`${e.value}-compact${l}last-item`]:i,[`${e.value}-compact${l}item-rtl`]:t.value==="rtl"})});return{compactSize:z(()=>n==null?void 0:n.compactSize),compactDirection:z(()=>n==null?void 0:n.compactDirection),compactItemClassnames:r}},Wu=he({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return Im.useProvide(null),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),eG=()=>({prefixCls:String,size:{type:String},direction:Z.oneOf(Un("horizontal","vertical")).def("horizontal"),align:Z.oneOf(Un("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),tG=he({name:"CompactItem",props:Qq(),setup(e,t){let{slots:n}=t;return Im.useProvide(e),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),nG=he({name:"ASpaceCompact",inheritAttrs:!1,props:eG(),setup(e,t){let{attrs:n,slots:r}=t;const{prefixCls:o,direction:a}=He("space-compact",e),i=Im.useInject(),[l,s]=PN(o),u=z(()=>ge(o.value,s.value,{[`${o.value}-rtl`]:a.value==="rtl",[`${o.value}-block`]:e.block,[`${o.value}-vertical`]:e.direction==="vertical"}));return()=>{var c;const d=Lt(((c=r.default)===null||c===void 0?void 0:c.call(r))||[]);return d.length===0?null:l(C("div",j(j({},n),{},{class:[u.value,n.class]}),[d.map((f,p)=>{var v;const m=f&&f.key||`${o.value}-item-${p}`,h=!i||ZN(i);return C(tG,{key:m,compactSize:(v=e.size)!==null&&v!==void 0?v:"middle",compactDirection:e.direction,isFirstItem:p===0&&(h||(i==null?void 0:i.isFirstItem)),isLastItem:p===d.length-1&&(h||(i==null?void 0:i.isLastItem))},{default:()=>[f]})})]))}}}),tp=nG,rG=e=>({animationDuration:e,animationFillMode:"both"}),oG=e=>({animationDuration:e,animationFillMode:"both"}),vc=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${a}${e}-enter, ${a}${e}-appear `]:E(E({},rG(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:E(E({},oG(r)),{animationPlayState:"paused"}),[` ${a}${e}-enter${e}-enter-active, ${a}${e}-appear${e}-appear-active `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},aG=new ft("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),iG=new ft("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Jb=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[vc(r,aG,iG,e.motionDurationMid,t),{[` ${o}${r}-enter, ${o}${r}-appear `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},lG=new ft("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),sG=new ft("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),uG=new ft("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),cG=new ft("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),dG=new ft("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fG=new ft("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pG=new ft("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),mG=new ft("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),vG={"move-up":{inKeyframes:pG,outKeyframes:mG},"move-down":{inKeyframes:lG,outKeyframes:sG},"move-left":{inKeyframes:uG,outKeyframes:cG},"move-right":{inKeyframes:dG,outKeyframes:fG}},ps=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=vG[t];return[vc(r,o,a,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},_m=new ft("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Bm=new ft("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Fm=new ft("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Rm=new ft("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),hG=new ft("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),gG=new ft("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),yG=new ft("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),bG=new ft("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),xG={"slide-up":{inKeyframes:_m,outKeyframes:Bm},"slide-down":{inKeyframes:Fm,outKeyframes:Rm},"slide-left":{inKeyframes:hG,outKeyframes:gG},"slide-right":{inKeyframes:yG,outKeyframes:bG}},Ho=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=xG[t];return[vc(r,o,a,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Qb=new ft("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),wG=new ft("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),i$=new ft("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),l$=new ft("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),SG=new ft("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),CG=new ft("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),$G=new ft("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),EG=new ft("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),DG=new ft("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),AG=new ft("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),OG=new ft("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),TG=new ft("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),MG={zoom:{inKeyframes:Qb,outKeyframes:wG},"zoom-big":{inKeyframes:i$,outKeyframes:l$},"zoom-big-fast":{inKeyframes:i$,outKeyframes:l$},"zoom-left":{inKeyframes:$G,outKeyframes:EG},"zoom-right":{inKeyframes:DG,outKeyframes:AG},"zoom-up":{inKeyframes:SG,outKeyframes:CG},"zoom-down":{inKeyframes:OG,outKeyframes:TG}},Ns=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=MG[t];return[vc(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},NG=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),hc=NG,s$=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"}},PG=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return[{[`${n}-dropdown`]:E(E({},rt(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,[` &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft `]:{animationName:_m},[` &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft `]:{animationName:Fm},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:Bm},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Rm},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${r}-empty`]:E(E({},s$(e)),{color:e.colorTextDisabled}),[`${r}`]:E(E({},s$(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":E({flex:"auto"},gn),"&-state":{flex:"none"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},Ho(e,"slide-up"),Ho(e,"slide-down"),ps(e,"move-up"),ps(e,"move-down")]},IG=PG,yl=2;function QN(e){let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,a=Math.ceil(o/2);return[o,a]}function hh(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.controlHeightSM,[i]=QN(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{fontSize:e.fontSize,[o]:{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-yl}px ${yl*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${yl}px 0`,lineHeight:`${a}px`,content:'"\\a0"'}},[` &${n}-show-arrow ${n}-selector, &${n}-allow-clear ${n}-selector `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:yl,marginBottom:yl,lineHeight:`${a-e.lineWidth*2}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:yl*2,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":E(E({},Ji()),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,[` &-input, &-mirror `]:{height:a,fontFamily:e.fontFamily,lineHeight:`${a}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 _G(e){const{componentCls:t}=e,n=qe(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,r]=QN(e);return[hh(e),hh(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"},[`${t}-selection-search`]:{marginInlineStart:r}}},hh(qe(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function gh(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.controlHeight-e.lineWidth*2,i=Math.ceil(e.fontSize*1.25),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,[`${n}-selector`]:E(E({},rt(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[` ${n}-selection-item, ${n}-selection-placeholder `]:{padding:0,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${a}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}-show-arrow ${n}-selection-item, &${n}-show-arrow ${n}-selection-placeholder `]:{paddingInlineEnd:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}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 ${r}px`,"&:after":{display:"none"}}}}}}}function BG(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[gh(e),gh(qe(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+e.fontSize*1.5},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder `]:{paddingInlineEnd:e.fontSize*1.5}}}},gh(qe(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function FG(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":E(E({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function RG(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Ps(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:E(E({},FG(e,r,t)),RG(n,r,t))}}const zG=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"}}}},yh=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,outlineColor:a,antCls:i}=t,l=n?{[`${r}-selector`]:{borderColor:o}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${i}-pagination-size-changer)`]:E(E({},l),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${a}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},LG=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"}}}},kG=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:E(E({},rt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:E(E({},zG(e)),LG(e)),[`${t}-selection-item`]:E({flex:1,fontWeight:"normal"},gn),[`${t}-selection-placeholder`]:E(E({},gn),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:E(E({},Ji()),{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",[r]:{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}}}},HG=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%"}}},kG(e),BG(e),_G(e),IG(e),{[`${t}-rtl`]:{direction:"rtl"}},yh(t,qe(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),yh(`${t}-status-error`,qe(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),yh(`${t}-status-warning`,qe(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Ps(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},e1=nt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=qe(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[HG(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),zm=()=>E(E({},pt(AN(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:Xe([Array,Object,String,Number]),defaultValue:Xe([Array,Object,String,Number]),notFoundContent:Z.any,suffixIcon:Z.any,itemIcon:Z.any,size:Ue(),mode:Ue(),bordered:Pe(!0),transitionName:String,choiceTransitionName:Ue(""),popupClassName:String,dropdownClassName:String,placement:Ue(),status:Ue(),"onUpdate:value":Oe()}),u$="SECRET_COMBOBOX_MODE_DO_NOT_USE",Io=he({compatConfig:{MODE:3},name:"ASelect",Option:OV,OptGroup:TV,inheritAttrs:!1,props:at(zm(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:u$,slots:Object,setup(e,t){let{attrs:n,emit:r,slots:o,expose:a}=t;const i=be(),l=Sn(),s=Bn.useInject(),u=z(()=>$o(s.status,e.status)),c=()=>{var H;(H=i.value)===null||H===void 0||H.focus()},d=()=>{var H;(H=i.value)===null||H===void 0||H.blur()},f=H=>{var V;(V=i.value)===null||V===void 0||V.scrollTo(H)},p=z(()=>{const{mode:H}=e;if(H!=="combobox")return H===u$?"combobox":H}),{prefixCls:v,direction:m,configProvider:h,renderEmpty:g,size:x,getPrefixCls:y,getPopupContainer:w,disabled:b,select:S}=He("select",e),{compactSize:$,compactItemClassnames:D}=di(v,m),O=z(()=>$.value||x.value),A=Fr(),T=z(()=>{var H;return(H=b.value)!==null&&H!==void 0?H:A.value}),[M,B]=e1(v),F=z(()=>y()),P=z(()=>e.placement!==void 0?e.placement:m.value==="rtl"?"bottomRight":"bottomLeft"),I=z(()=>xr(F.value,Db(P.value),e.transitionName)),N=z(()=>ge({[`${v.value}-lg`]:O.value==="large",[`${v.value}-sm`]:O.value==="small",[`${v.value}-rtl`]:m.value==="rtl",[`${v.value}-borderless`]:!e.bordered,[`${v.value}-in-form-item`]:s.isFormItemInput},Qn(v.value,u.value,s.hasFeedback),D.value,B.value)),R=function(){for(var H=arguments.length,V=new Array(H),U=0;U{r("blur",H),l.onFieldBlur()};a({blur:d,focus:c,scrollTo:f});const L=z(()=>p.value==="multiple"||p.value==="tags"),k=z(()=>e.showArrow!==void 0?e.showArrow:e.loading||!(L.value||p.value==="combobox"));return()=>{var H,V,U,q;const{notFoundContent:K,listHeight:X=256,listItemHeight:re=24,popupClassName:ee,dropdownClassName:G,virtual:le,dropdownMatchSelectWidth:ue,id:me=l.id.value,placeholder:Se=(H=o.placeholder)===null||H===void 0?void 0:H.call(o),showArrow:Q}=e,{hasFeedback:te,feedbackIcon:de}=s;let Y;K!==void 0?Y=K:o.notFoundContent?Y=o.notFoundContent():p.value==="combobox"?Y=null:Y=(g==null?void 0:g("Select"))||C(ib,{componentName:"Select"},null);const{suffixIcon:ae,itemIcon:ce,removeIcon:Ce,clearIcon:ye}=jb(E(E({},e),{multiple:L.value,prefixCls:v.value,hasFeedback:te,feedbackIcon:de,showArrow:k.value}),o),J=pt(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),ne=ge(ee||G,{[`${v.value}-dropdown-${m.value}`]:m.value==="rtl"},B.value);return M(C(AV,j(j(j({ref:i,virtual:le,dropdownMatchSelectWidth:ue},J),n),{},{showSearch:(V=e.showSearch)!==null&&V!==void 0?V:(U=S==null?void 0:S.value)===null||U===void 0?void 0:U.showSearch,placeholder:Se,listHeight:X,listItemHeight:re,mode:p.value,prefixCls:v.value,direction:m.value,inputIcon:ae,menuItemSelectedIcon:ce,removeIcon:Ce,clearIcon:ye,notFoundContent:Y,class:[N.value,n.class],getPopupContainer:w==null?void 0:w.value,dropdownClassName:ne,onChange:R,onBlur:_,id:me,dropdownRender:J.dropdownRender||o.dropdownRender,transitionName:I.value,children:(q=o.default)===null||q===void 0?void 0:q.call(o),tagRender:e.tagRender||o.tagRender,optionLabelRender:o.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||o.maxTagPlaceholder,showArrow:te||Q,disabled:T.value}),{option:o.option}))}}});Io.install=function(e){return e.component(Io.name,Io),e.component(Io.Option.displayName,Io.Option),e.component(Io.OptGroup.displayName,Io.OptGroup),e};const jG=Io.Option,VG=Io.OptGroup,xa=Io,t1=()=>null;t1.isSelectOption=!0;t1.displayName="AAutoCompleteOption";const ql=t1,n1=()=>null;n1.isSelectOptGroup=!0;n1.displayName="AAutoCompleteOptGroup";const Xd=n1;function WG(e){var t,n;return((t=e==null?void 0:e.type)===null||t===void 0?void 0:t.isSelectOption)||((n=e==null?void 0:e.type)===null||n===void 0?void 0:n.isSelectOptGroup)}const UG=()=>E(E({},pt(zm(),["loading","mode","optionLabelProp","labelInValue"])),{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0},status:String}),KG=ql,qG=Xd,bh=he({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:UG(),slots:Object,setup(e,t){let{slots:n,attrs:r,expose:o}=t;Jt(),Jt(),Jt(!e.dropdownClassName);const a=be(),i=()=>{var c;const d=Lt((c=n.default)===null||c===void 0?void 0:c.call(n));return d.length?d[0]:void 0};o({focus:()=>{var c;(c=a.value)===null||c===void 0||c.focus()},blur:()=>{var c;(c=a.value)===null||c===void 0||c.blur()}});const{prefixCls:u}=He("select",e);return()=>{var c,d,f;const{size:p,dataSource:v,notFoundContent:m=(c=n.notFoundContent)===null||c===void 0?void 0:c.call(n)}=e;let h;const{class:g}=r,x={[g]:!!g,[`${u.value}-lg`]:p==="large",[`${u.value}-sm`]:p==="small",[`${u.value}-show-search`]:!0,[`${u.value}-auto-complete`]:!0};if(e.options===void 0){const w=((d=n.dataSource)===null||d===void 0?void 0:d.call(n))||((f=n.options)===null||f===void 0?void 0:f.call(n))||[];w.length&&WG(w[0])?h=w:h=v?v.map(b=>{if(hn(b))return b;switch(typeof b){case"string":return C(ql,{key:b,value:b},{default:()=>[b]});case"object":return C(ql,{key:b.value,value:b.value},{default:()=>[b.text]});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[]}const y=pt(E(E(E({},e),r),{mode:xa.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:i,notFoundContent:m,class:x,popupClassName:e.popupClassName||e.dropdownClassName,ref:a}),["dataSource","loading"]);return C(xa,y,j({default:()=>[h]},pt(n,["default","dataSource","options"])))}}}),GG=E(bh,{Option:ql,OptGroup:Xd,install(e){return e.component(bh.name,bh),e.component(ql.displayName,ql),e.component(Xd.displayName,Xd),e}});var XG={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"};const YG=XG;function c$(e){for(var t=1;t({backgroundColor:e,border:`${r.lineWidth}px ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),hX=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:a,fontSizeLG:i,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:u,alertIconSizeLG:c,colorText:d,paddingContentVerticalSM:f,alertPaddingHorizontal:p,paddingMD:v,paddingContentHorizontalLG:m}=e;return{[t]:E(E({},rt(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${f}px ${p}px`,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},["&-description"]:{display:"none",fontSize:a,lineHeight:l},"&-message":{color:d},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u}, padding-top ${n} ${u}, padding-bottom ${n} ${u}, margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",paddingInline:m,paddingBlock:v,[`${t}-icon`]:{marginInlineEnd:o,fontSize:c,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:d,fontSize:i},[`${t}-description`]:{display:"block"}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},gX=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:a,colorWarningBorder:i,colorWarningBg:l,colorError:s,colorErrorBorder:u,colorErrorBg:c,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":ed(o,r,n,e,t),"&-info":ed(p,f,d,e,t),"&-warning":ed(l,i,a,e,t),"&-error":E(E({},ed(c,u,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},yX=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:a,colorIcon:i,colorIconHover:l}=e;return{[t]:{["&-action"]:{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:a,lineHeight:`${a}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:i,transition:`color ${r}`,"&:hover":{color:l}}}}},bX=e=>[hX(e),gX(e),yX(e)],xX=nt("Alert",e=>{const{fontSizeHeading3:t}=e,n=qe(e,{alertIconSizeLG:t,alertPaddingHorizontal:12});return[bX(n)]}),wX={success:Aa,info:Is,error:$r,warning:Oa},SX={success:eP,info:nP,error:rP,warning:tP},CX=Un("success","info","warning","error"),$X=()=>({type:Z.oneOf(CX),closable:{type:Boolean,default:void 0},closeText:Z.any,message:Z.any,description:Z.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:Z.any,closeIcon:Z.any,onClose:Function}),EX=he({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:$X(),setup(e,t){let{slots:n,emit:r,attrs:o,expose:a}=t;const{prefixCls:i,direction:l}=He("alert",e),[s,u]=xX(i),c=pe(!1),d=pe(!1),f=pe(),p=g=>{g.preventDefault();const x=f.value;x.style.height=`${x.offsetHeight}px`,x.style.height=`${x.offsetHeight}px`,c.value=!0,r("close",g)},v=()=>{var g;c.value=!1,d.value=!0,(g=e.afterClose)===null||g===void 0||g.call(e)},m=z(()=>{const{type:g}=e;return g!==void 0?g:e.banner?"warning":"info"});a({animationEnd:v});const h=pe({});return()=>{var g,x,y,w,b,S,$,D,O,A;const{banner:T,closeIcon:M=(g=n.closeIcon)===null||g===void 0?void 0:g.call(n)}=e;let{closable:B,showIcon:F}=e;const P=(x=e.closeText)!==null&&x!==void 0?x:(y=n.closeText)===null||y===void 0?void 0:y.call(n),I=(w=e.description)!==null&&w!==void 0?w:(b=n.description)===null||b===void 0?void 0:b.call(n),N=(S=e.message)!==null&&S!==void 0?S:($=n.message)===null||$===void 0?void 0:$.call(n),R=(D=e.icon)!==null&&D!==void 0?D:(O=n.icon)===null||O===void 0?void 0:O.call(n),_=(A=n.action)===null||A===void 0?void 0:A.call(n);F=T&&F===void 0?!0:F;const L=(I?SX:wX)[m.value]||null;P&&(B=!0);const k=i.value,H=ge(k,{[`${k}-${m.value}`]:!0,[`${k}-closing`]:c.value,[`${k}-with-description`]:!!I,[`${k}-no-icon`]:!F,[`${k}-banner`]:!!T,[`${k}-closable`]:B,[`${k}-rtl`]:l.value==="rtl",[u.value]:!0}),V=B?C("button",{type:"button",onClick:p,class:`${k}-close-icon`,tabindex:0},[P?C("span",{class:`${k}-close-text`},[P]):M===void 0?C(Hr,null,null):M]):null,U=R&&(hn(R)?At(R,{class:`${k}-icon`}):C("span",{class:`${k}-icon`},[R]))||C(L,{class:`${k}-icon`},null),q=to(`${k}-motion`,{appear:!1,css:!0,onAfterLeave:v,onBeforeLeave:K=>{K.style.maxHeight=`${K.offsetHeight}px`},onLeave:K=>{K.style.maxHeight="0px"}});return s(d.value?null:C(_n,q,{default:()=>[vn(C("div",j(j({role:"alert"},o),{},{style:[o.style,h.value],class:[o.class,H],"data-show":!c.value,ref:f}),[F?U:null,C("div",{class:`${k}-content`},[N?C("div",{class:`${k}-message`},[N]):null,I?C("div",{class:`${k}-description`},[I]):null]),_?C("div",{class:`${k}-action`},[_]):null,V]),[[ur,!c.value]])]}))}}}),DX=rn(EX),sa=["xxxl","xxl","xl","lg","md","sm","xs"],AX=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}`});function c1(){const[,e]=$a();return z(()=>{const t=AX(e.value),n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const i=t[a],l=this.matchHandlers[i];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const i=t[a],l=u=>{let{matches:c}=u;this.dispatch(E(E({},o),{[a]:c}))},s=window.matchMedia(i);s.addListener(l),this.matchHandlers[i]={mql:s,listener:l},l(s)})},responsiveMap:t}})}function _s(){const e=pe({});let t=null;const n=c1();return Qe(()=>{t=n.value.subscribe(r=>{e.value=r})}),Cr(()=>{n.value.unsubscribe(t)}),e}function Pr(e){const t=pe();return Je(()=>{t.value=e()},{flush:"sync"}),t}const OX=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:a,avatarSizeBase:i,avatarSizeLG:l,avatarSizeSM:s,avatarFontSizeBase:u,avatarFontSizeLG:c,avatarFontSizeSM:d,borderRadius:f,borderRadiusLG:p,borderRadiusSM:v,lineWidth:m,lineType:h}=e,g=(x,y,w)=>({width:x,height:x,lineHeight:`${x-m*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:w},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:y,[`> ${r}`]:{margin:0}}});return{[n]:E(E(E(E({},rt(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${m}px ${h} transparent`,["&-image"]:{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),g(i,u,f)),{["&-lg"]:E({},g(l,c,p)),["&-sm"]:E({},g(s,d,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},TX=e=>{const{componentCls:t,avatarGroupBorderColor:n,avatarGroupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},["> *:not(:first-child)"]:{marginInlineStart:r}}}},oP=nt("Avatar",e=>{const{colorTextLightSolid:t,controlHeight:n,controlHeightLG:r,controlHeightSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:l,fontSizeHeading3:s,marginXS:u,colorBorderBg:c,colorTextPlaceholder:d}=e,f=qe(e,{avatarBg:d,avatarColor:t,avatarSizeBase:n,avatarSizeLG:r,avatarSizeSM:o,avatarFontSizeBase:Math.round((i+l)/2),avatarFontSizeLG:s,avatarFontSizeSM:a,avatarGroupSpace:-u,avatarGroupBorderColor:c});return[OX(f),TX(f)]}),aP=Symbol("SizeContextKey"),iP=()=>lt(aP,be("default")),MX=e=>{const t=iP();return it(aP,z(()=>e.value||t.value)),e},NX=()=>({prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:Z.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}),PX=he({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:NX(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const o=pe(!0),a=pe(!1),i=pe(1),l=pe(null),s=pe(null),{prefixCls:u}=He("avatar",e),[c,d]=oP(u),f=iP(),p=z(()=>e.size==="default"?f.value:e.size),v=_s(),m=Pr(()=>{if(typeof e.size!="object")return;const y=sa.find(b=>v.value[b]);return e.size[y]}),h=y=>m.value?{width:`${m.value}px`,height:`${m.value}px`,lineHeight:`${m.value}px`,fontSize:`${y?m.value/2:18}px`}:{},g=()=>{if(!l.value||!s.value)return;const y=l.value.offsetWidth,w=s.value.offsetWidth;if(y!==0&&w!==0){const{gap:b=4}=e;b*2{const{loadError:y}=e;(y==null?void 0:y())!==!1&&(o.value=!1)};return Ne(()=>e.src,()=>{ht(()=>{o.value=!0,i.value=1})}),Ne(()=>e.gap,()=>{ht(()=>{g()})}),Qe(()=>{ht(()=>{g(),a.value=!0})}),()=>{var y;const{shape:w,src:b,alt:S,srcset:$,draggable:D,crossOrigin:O}=e,A=wn(n,e,"icon"),T=u.value,M={[`${r.class}`]:!!r.class,[T]:!0,[`${T}-lg`]:p.value==="large",[`${T}-sm`]:p.value==="small",[`${T}-${w}`]:w,[`${T}-image`]:b&&o.value,[`${T}-icon`]:A,[d.value]:!0},B=typeof p.value=="number"?{width:`${p.value}px`,height:`${p.value}px`,lineHeight:`${p.value}px`,fontSize:A?`${p.value/2}px`:"18px"}:{},F=(y=n.default)===null||y===void 0?void 0:y.call(n);let P;if(b&&o.value)P=C("img",{draggable:D,src:b,srcset:$,onError:x,alt:S,crossorigin:O},null);else if(A)P=A;else if(a.value||i.value!==1){const I=`scale(${i.value}) translateX(-50%)`,N={msTransform:I,WebkitTransform:I,transform:I},R=typeof p.value=="number"?{lineHeight:`${p.value}px`}:{};P=C(Qr,{onResize:g},{default:()=>[C("span",{class:`${T}-string`,ref:l,style:E(E({},R),N)},[F])]})}else P=C("span",{class:`${T}-string`,ref:l,style:{opacity:0}},[F]);return c(C("span",j(j({},r),{},{ref:s,class:M,style:[B,h(!!A),r.style]}),[P]))}}}),Fi=PX,Vr={adjustX:1,adjustY:1},Wr=[0,0],lP={left:{points:["cr","cl"],overflow:Vr,offset:[-4,0],targetOffset:Wr},right:{points:["cl","cr"],overflow:Vr,offset:[4,0],targetOffset:Wr},top:{points:["bc","tc"],overflow:Vr,offset:[0,-4],targetOffset:Wr},bottom:{points:["tc","bc"],overflow:Vr,offset:[0,4],targetOffset:Wr},topLeft:{points:["bl","tl"],overflow:Vr,offset:[0,-4],targetOffset:Wr},leftTop:{points:["tr","tl"],overflow:Vr,offset:[-4,0],targetOffset:Wr},topRight:{points:["br","tr"],overflow:Vr,offset:[0,-4],targetOffset:Wr},rightTop:{points:["tl","tr"],overflow:Vr,offset:[4,0],targetOffset:Wr},bottomRight:{points:["tr","br"],overflow:Vr,offset:[0,4],targetOffset:Wr},rightBottom:{points:["bl","br"],overflow:Vr,offset:[4,0],targetOffset:Wr},bottomLeft:{points:["tl","bl"],overflow:Vr,offset:[0,4],targetOffset:Wr},leftBottom:{points:["br","bl"],overflow:Vr,offset:[-4,0],targetOffset:Wr}},IX={prefixCls:String,id:String,overlayInnerStyle:Z.any},_X=he({compatConfig:{MODE:3},name:"Content",props:IX,setup(e,t){let{slots:n}=t;return()=>{var r;return C("div",{class:`${e.prefixCls}-inner`,id:e.id,role:"tooltip",style:e.overlayInnerStyle},[(r=n.overlay)===null||r===void 0?void 0:r.call(n)])}}});var BX=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:Z.string.def("rc-tooltip"),mouseEnterDelay:Z.number.def(.1),mouseLeaveDelay:Z.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:Z.object.def(()=>({})),arrowContent:Z.any.def(null),tipId:String,builtinPlacements:Z.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},setup(e,t){let{slots:n,attrs:r,expose:o}=t;const a=pe(),i=()=>{const{prefixCls:c,tipId:d,overlayInnerStyle:f}=e;return[C("div",{class:`${c}-arrow`,key:"arrow"},[wn(n,e,"arrowContent")]),C(_X,{key:"content",prefixCls:c,id:d,overlayInnerStyle:f},{overlay:n.overlay})]};o({getPopupDomNode:()=>a.value.getPopupDomNode(),triggerDOM:a,forcePopupAlign:()=>{var c;return(c=a.value)===null||c===void 0?void 0:c.forcePopupAlign()}});const s=pe(!1),u=pe(!1);return Je(()=>{const{destroyTooltipOnHide:c}=e;if(typeof c=="boolean")s.value=c;else if(c&&typeof c=="object"){const{keepParent:d}=c;s.value=d===!0,u.value=d===!1}}),()=>{const{overlayClassName:c,trigger:d,mouseEnterDelay:f,mouseLeaveDelay:p,overlayStyle:v,prefixCls:m,afterVisibleChange:h,transitionName:g,animation:x,placement:y,align:w,destroyTooltipOnHide:b,defaultVisible:S}=e,$=BX(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),D=E({},$);e.visible!==void 0&&(D.popupVisible=e.visible);const O=E(E(E({popupClassName:c,prefixCls:m,action:d,builtinPlacements:lP,popupPlacement:y,popupAlign:w,afterPopupVisibleChange:h,popupTransitionName:g,popupAnimation:x,defaultPopupVisible:S,destroyPopupOnHide:s.value,autoDestroy:u.value,mouseLeaveDelay:p,popupStyle:v,mouseEnterDelay:f},D),r),{onPopupVisibleChange:e.onVisibleChange||g$,onPopupAlign:e.onPopupAlign||g$,ref:a,popup:i()});return C(rl,O,{default:n.default})}}}),d1=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:We(),overlayInnerStyle:We(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:We(),builtinPlacements:We(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),RX={adjustX:1,adjustY:1},y$={adjustX:0,adjustY:0},zX=[0,0];function b$(e){return typeof e=="boolean"?e?RX:y$:E(E({},y$),e)}function f1(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:r=8,autoAdjustOverflow:o,arrowPointAtCenter:a}=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,-(r+t)]},topRight:{points:["br","tc"],offset:[n+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(r+t)]},bottomRight:{points:["tr","bc"],offset:[n+t,4]},rightBottom:{points:["bl","cr"],offset:[4,r+t]},bottomLeft:{points:["tl","bc"],offset:[-(n+t),4]},leftBottom:{points:["br","cl"],offset:[-4,r+t]}};return Object.keys(i).forEach(l=>{i[l]=a?E(E({},i[l]),{overflow:b$(o),targetOffset:zX}):E(E({},lP[l]),{overflow:b$(o)}),i[l].ignoreShake=!0}),i}function np(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let t=0,n=e.length;t`${e}-inverse`),kX=["success","processing","error","default","warning"];function Lm(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...LX,...Fu].includes(e):Fu.includes(e)}function HX(e){return kX.includes(e)}function jX(e,t){const n=Lm(t),r=ge({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}function td(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return e.map(n=>`${t}${n}`).join(",")}const p1=8;function sP(e){const t=p1,{sizePopupArrow:n,contentRadius:r,borderRadiusOuter:o,limitVerticalRadius:a}=e,i=n/2-Math.ceil(o*(Math.sqrt(2)-1)),l=(r>12?r+2:12)-i,s=a?t-i:l;return{dropdownArrowOffset:l,dropdownArrowOffsetVertical:s}}function m1(e,t){const{componentCls:n,sizePopupArrow:r,marginXXS:o,borderRadiusXS:a,borderRadiusOuter:i,boxShadowPopoverArrow:l}=e,{colorBg:s,showArrowCls:u,contentRadius:c=e.borderRadiusLG,limitVerticalRadius:d}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:p}=sP({sizePopupArrow:r,contentRadius:c,borderRadiusOuter:i,limitVerticalRadius:d}),v=r/2+o;return{[n]:{[`${n}-arrow`]:[E(E({position:"absolute",zIndex:1,display:"block"},ob(r,a,i,s,l)),{"&: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:p}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}},[[`&-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:p}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}},[[`&-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:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f},[[`&-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:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f},[td(["&-placement-topLeft","&-placement-top","&-placement-topRight"],u)]:{paddingBottom:v},[td(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"],u)]:{paddingTop:v},[td(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"],u)]:{paddingRight:{_skip_check_:!0,value:v}},[td(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"],u)]:{paddingLeft:{_skip_check_:!0,value:v}}}}}const VX=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:l,boxShadowSecondary:s,paddingSM:u,paddingXS:c,tooltipRadiusOuter:d}=e;return[{[t]:E(E(E(E({},rt(e)),{position:"absolute",zIndex:i,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${u/2}px ${c}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:s},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,p1)}},[`${t}-content`]:{position:"relative"}}),jf(e,(f,p)=>{let{darkColor:v}=p;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},m1(qe(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]},WX=(e,t)=>nt("Tooltip",r=>{if((t==null?void 0:t.value)===!1)return[];const{borderRadius:o,colorTextLightSolid:a,colorBgDefault:i,borderRadiusOuter:l}=r,s=qe(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i,tooltipRadiusOuter:l>4?4:l});return[VX(s),Ns(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:a}=r;return{zIndexPopup:o+70,colorBgDefault:a}})(e),UX=(e,t)=>{const n={},r=E({},e);return t.forEach(o=>{e&&o in e&&(n[o]=e[o],delete r[o])}),{picked:n,omitted:r}},uP=()=>E(E({},d1()),{title:Z.any}),cP=()=>({trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),KX=he({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:at(uP(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:o,expose:a}=t;const{prefixCls:i,getPopupContainer:l,direction:s,rootPrefixCls:u}=He("tooltip",e),c=z(()=>{var A;return(A=e.open)!==null&&A!==void 0?A:e.visible}),d=be(np([e.open,e.visible])),f=be();let p;Ne(c,A=>{tt.cancel(p),p=tt(()=>{d.value=!!A})});const v=()=>{var A;const T=(A=e.title)!==null&&A!==void 0?A:n.title;return!T&&T!==0},m=A=>{const T=v();c.value===void 0&&(d.value=T?!1:A),T||(r("update:visible",A),r("visibleChange",A),r("update:open",A),r("openChange",A))};a({getPopupDomNode:()=>f.value.getPopupDomNode(),open:d,forcePopupAlign:()=>{var A;return(A=f.value)===null||A===void 0?void 0:A.forcePopupAlign()}});const g=z(()=>{const{builtinPlacements:A,arrowPointAtCenter:T,autoAdjustOverflow:M}=e;return A||f1({arrowPointAtCenter:T,autoAdjustOverflow:M})}),x=A=>A||A==="",y=A=>{const T=A.type;if(typeof T=="object"&&A.props&&((T.__ANT_BUTTON===!0||T==="button")&&x(A.props.disabled)||T.__ANT_SWITCH===!0&&(x(A.props.disabled)||x(A.props.loading))||T.__ANT_RADIO===!0&&x(A.props.disabled))){const{picked:M,omitted:B}=UX(LT(A),["position","left","right","top","bottom","float","display","zIndex"]),F=E(E({display:"inline-block"},M),{cursor:"not-allowed",lineHeight:1,width:A.props&&A.props.block?"100%":void 0}),P=E(E({},B),{pointerEvents:"none"}),I=At(A,{style:P},!0);return C("span",{style:F,class:`${i.value}-disabled-compatible-wrapper`},[I])}return A},w=()=>{var A,T;return(A=e.title)!==null&&A!==void 0?A:(T=n.title)===null||T===void 0?void 0:T.call(n)},b=(A,T)=>{const M=g.value,B=Object.keys(M).find(F=>{var P,I;return M[F].points[0]===((P=T.points)===null||P===void 0?void 0:P[0])&&M[F].points[1]===((I=T.points)===null||I===void 0?void 0:I[1])});if(B){const F=A.getBoundingClientRect(),P={top:"50%",left:"50%"};B.indexOf("top")>=0||B.indexOf("Bottom")>=0?P.top=`${F.height-T.offset[1]}px`:(B.indexOf("Top")>=0||B.indexOf("bottom")>=0)&&(P.top=`${-T.offset[1]}px`),B.indexOf("left")>=0||B.indexOf("Right")>=0?P.left=`${F.width-T.offset[0]}px`:(B.indexOf("right")>=0||B.indexOf("Left")>=0)&&(P.left=`${-T.offset[0]}px`),A.style.transformOrigin=`${P.left} ${P.top}`}},S=z(()=>jX(i.value,e.color)),$=z(()=>o["data-popover-inject"]),[D,O]=WX(i,z(()=>!$.value));return()=>{var A,T;const{openClassName:M,overlayClassName:B,overlayStyle:F,overlayInnerStyle:P}=e;let I=(T=nn((A=n.default)===null||A===void 0?void 0:A.call(n)))!==null&&T!==void 0?T:null;I=I.length===1?I[0]:I;let N=d.value;if(c.value===void 0&&v()&&(N=!1),!I)return null;const R=y(hn(I)&&!JF(I)?I:C("span",null,[I])),_=ge({[M||`${i.value}-open`]:!0,[R.props&&R.props.class]:R.props&&R.props.class}),L=ge(B,{[`${i.value}-rtl`]:s.value==="rtl"},S.value.className,O.value),k=E(E({},S.value.overlayStyle),P),H=S.value.arrowStyle,V=E(E(E({},o),e),{prefixCls:i.value,getPopupContainer:l==null?void 0:l.value,builtinPlacements:g.value,visible:N,ref:f,overlayClassName:L,overlayStyle:E(E({},H),F),overlayInnerStyle:k,onVisibleChange:m,onPopupAlign:b,transitionName:xr(u.value,"zoom-big-fast",e.transitionName)});return D(C(FX,V,{default:()=>[d.value?At(R,{class:_}):R],arrowContent:()=>C("span",{class:`${i.value}-arrow-content`},null),overlay:w}))}}}),Br=rn(KX),qX=e=>{const{componentCls:t,popoverBg:n,popoverColor:r,width:o,fontWeightStrong:a,popoverPadding:i,boxShadowSecondary:l,colorTextHeading:s,borderRadiusLG:u,zIndexPopup:c,marginXS:d,colorBgElevated:f}=e;return[{[t]:E(E({},rt(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":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:u,boxShadow:l,padding:i},[`${t}-title`]:{minWidth:o,marginBottom:d,color:s,fontWeight:a},[`${t}-inner-content`]:{color:r}})},m1(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",[`${t}-content`]:{display:"inline-block"}}}]},GX=e=>{const{componentCls:t}=e;return{[t]:Fu.map(n=>{const r=e[`${n}-6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},XX=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:a,controlHeight:i,fontSize:l,lineHeight:s,padding:u}=e,c=i-Math.round(l*s),d=c/2,f=c/2-n,p=u;return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${p}px ${f}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${a}px ${p}px`}}}},YX=nt("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=qe(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[qX(o),GX(o),r&&XX(o),Ns(o,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}}),ZX=()=>E(E({},d1()),{content:jt(),title:jt()}),JX=he({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:at(ZX(),E(E({},cP()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(e,t){let{expose:n,slots:r,attrs:o}=t;const a=be();Jt(e.visible===void 0),n({getPopupDomNode:()=>{var f,p;return(p=(f=a.value)===null||f===void 0?void 0:f.getPopupDomNode)===null||p===void 0?void 0:p.call(f)}});const{prefixCls:i,configProvider:l}=He("popover",e),[s,u]=YX(i),c=z(()=>l.getPrefixCls()),d=()=>{var f,p;const{title:v=nn((f=r.title)===null||f===void 0?void 0:f.call(r)),content:m=nn((p=r.content)===null||p===void 0?void 0:p.call(r))}=e,h=!!(Array.isArray(v)?v.length:v),g=!!(Array.isArray(m)?m.length:v);return!h&&!g?null:C(dt,null,[h&&C("div",{class:`${i.value}-title`},[v]),C("div",{class:`${i.value}-inner-content`},[m])])};return()=>{const f=ge(e.overlayClassName,u.value);return s(C(Br,j(j(j({},pt(e,["title","content"])),o),{},{prefixCls:i.value,ref:a,overlayClassName:f,transitionName:xr(c.value,"zoom-big",e.transitionName),"data-popover-inject":!0}),{title:d,default:r.default}))}}}),v1=rn(JX),QX=()=>({prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"}}),eY=he({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:QX(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("avatar",e),i=z(()=>`${o.value}-group`),[l,s]=oP(o);return MX(z(()=>e.size)),()=>{const{maxPopoverPlacement:u="top",maxCount:c,maxStyle:d,maxPopoverTrigger:f="hover"}=e,p={[i.value]:!0,[`${i.value}-rtl`]:a.value==="rtl",[`${r.class}`]:!!r.class,[s.value]:!0},v=wn(n,e),m=Lt(v).map((g,x)=>At(g,{key:`avatar-key-${x}`})),h=m.length;if(c&&c[C(Fi,{style:d},{default:()=>[`+${h-c}`]})]})),l(C("div",j(j({},r),{},{class:p,style:r.style}),[g]))}return l(C("div",j(j({},r),{},{class:p,style:r.style}),[m]))}}}),rp=eY;Fi.Group=rp;Fi.install=function(e){return e.component(Fi.name,Fi),e.component(rp.name,rp),e};function x$(e){let{prefixCls:t,value:n,current:r,offset:o=0}=e,a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),C("p",{style:a,class:ge(`${t}-only-unit`,{current:r})},[n])}function tY(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const nY=he({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(e){const t=z(()=>Number(e.value)),n=z(()=>Math.abs(e.count)),r=_t({prevValue:t.value,prevCount:n.value}),o=()=>{r.prevValue=t.value,r.prevCount=n.value},a=be();return Ne(t,()=>{clearTimeout(a.value),a.value=setTimeout(()=>{o()},1e3)},{flush:"post"}),Cr(()=>{clearTimeout(a.value)}),()=>{let i,l={};const s=t.value;if(r.prevValue===s||Number.isNaN(s)||Number.isNaN(r.prevValue))i=[x$(E(E({},e),{current:!0}))],l={transition:"none"};else{i=[];const u=s+10,c=[];for(let p=s;p<=u;p+=1)c.push(p);const d=c.findIndex(p=>p%10===r.prevValue);i=c.map((p,v)=>{const m=p%10;return x$(E(E({},e),{value:m,offset:v-d,current:v===d}))});const f=r.prevCounto()},[i])}}});var rY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var a;const i=E(E({},e),n),{prefixCls:l,count:s,title:u,show:c,component:d="sup",class:f,style:p}=i,v=rY(i,["prefixCls","count","title","show","component","class","style"]),m=E(E({},v),{style:p,"data-show":e.show,class:ge(o.value,f),title:u});let h=s;if(s&&Number(s)%1===0){const x=String(s).split("");h=x.map((y,w)=>C(nY,{prefixCls:o.value,count:Number(s),value:y,key:x.length-w},null))}p&&p.borderColor&&(m.style=E(E({},p),{boxShadow:`0 0 0 1px ${p.borderColor} inset`}));const g=nn((a=r.default)===null||a===void 0?void 0:a.call(r));return g&&g.length?At(g,{class:ge(`${o.value}-custom-component`)},!1):C(d,m,{default:()=>[h]})}}}),iY=new ft("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),lY=new ft("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),sY=new ft("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),uY=new ft("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),cY=new ft("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),dY=new ft("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),fY=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeFontHeight:o,badgeShadowSize:a,badgeHeightSm:i,motionDurationSlow:l,badgeStatusSize:s,marginXS:u,badgeRibbonOffset:c}=e,d=`${r}-scroll-number`,f=`${r}-ribbon`,p=`${r}-ribbon-wrapper`,v=jf(e,(h,g)=>{let{darkColor:x}=g;return{[`${t}-status-${h}`]:{background:x}}}),m=jf(e,(h,g)=>{let{darkColor:x}=g;return{[`&${f}-color-${h}`]:{background:x,color:x}}});return{[t]:E(E({},rt(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${a}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:i,height:i,fontSize:e.badgeFontSizeSm,lineHeight:`${i}px`,borderRadius:i/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`},[`${t}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${a}px ${e.badgeShadowColor}`},[`${t}-dot${d}`]:{transition:`background ${l}`},[`${t}-count, ${t}-dot, ${d}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`${n}-spin`]:{animationName:dY,animationDuration:e.motionDurationMid,animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:E(E({lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{position:"relative",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:a,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:iY,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning}},v),{[`${t}-status-text`]:{marginInlineStart:u,color:e.colorText,fontSize:e.fontSize}}),[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:lY,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:sY,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:uY,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:cY,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${d}-custom-component, ${t}-count`]:{transform:"none"},[`${d}-custom-component, ${d}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${d}`]:{overflow:"hidden",[`${d}-only`]:{position:"relative",display:"inline-block",height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${d}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${d}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${d}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${p}`]:{position:"relative"},[`${f}`]:E(E(E(E({},rt(e)),{position:"absolute",top:u,height:o,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${o}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${f}-text`]:{color:e.colorTextLightSolid},[`${f}-corner`]:{position:"absolute",top:"100%",width:c,height:c,color:"currentcolor",border:`${c/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),m),{[`&${f}-placement-end`]:{insetInlineEnd:-c,borderEndEndRadius:0,[`${f}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${f}-placement-start`]:{insetInlineStart:-c,borderEndStartRadius:0,[`${f}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},dP=nt("Badge",e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o,marginXS:a,colorBorderBg:i}=e,l=Math.round(t*n),s=o,u="auto",c=l-2*s,d=e.colorBgContainer,f="normal",p=r,v=e.colorError,m=e.colorErrorHover,h=t,g=r/2,x=r,y=r/2,w=qe(e,{badgeFontHeight:l,badgeShadowSize:s,badgeZIndex:u,badgeHeight:c,badgeTextColor:d,badgeFontWeight:f,badgeFontSize:p,badgeColor:v,badgeColorHover:m,badgeShadowColor:i,badgeHeightSm:h,badgeDotSize:g,badgeFontSizeSm:x,badgeStatusSize:y,badgeProcessingDuration:"1.2s",badgeRibbonOffset:a,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[fY(w)]});var pY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o({prefix:String,color:{type:String},text:Z.any,placement:{type:String,default:"end"}}),op=he({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:mY(),slots:Object,setup(e,t){let{attrs:n,slots:r}=t;const{prefixCls:o,direction:a}=He("ribbon",e),[i,l]=dP(o),s=z(()=>Lm(e.color,!1)),u=z(()=>[o.value,`${o.value}-placement-${e.placement}`,{[`${o.value}-rtl`]:a.value==="rtl",[`${o.value}-color-${e.color}`]:s.value}]);return()=>{var c,d;const{class:f,style:p}=n,v=pY(n,["class","style"]),m={},h={};return e.color&&!s.value&&(m.background=e.color,h.color=e.color),i(C("div",j({class:`${o.value}-wrapper ${l.value}`},v),[(c=r.default)===null||c===void 0?void 0:c.call(r),C("div",{class:[u.value,f,l.value],style:E(E({},m),p)},[C("span",{class:`${o.value}-text`},[e.text||((d=r.text)===null||d===void 0?void 0:d.call(r))]),C("div",{class:`${o.value}-corner`,style:h},null)])]))}}}),vY=e=>!isNaN(parseFloat(e))&&isFinite(e),ap=vY,hY=()=>({count:Z.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:Z.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}),Yd=he({compatConfig:{MODE:3},name:"ABadge",Ribbon:op,inheritAttrs:!1,props:hY(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("badge",e),[i,l]=dP(o),s=z(()=>e.count>e.overflowCount?`${e.overflowCount}+`:e.count),u=z(()=>s.value==="0"||s.value===0),c=z(()=>e.count===null||u.value&&!e.showZero),d=z(()=>(e.status!==null&&e.status!==void 0||e.color!==null&&e.color!==void 0)&&c.value),f=z(()=>e.dot&&!u.value),p=z(()=>f.value?"":s.value),v=z(()=>(p.value===null||p.value===void 0||p.value===""||u.value&&!e.showZero)&&!f.value),m=be(e.count),h=be(p.value),g=be(f.value);Ne([()=>e.count,p,f],()=>{v.value||(m.value=e.count,h.value=p.value,g.value=f.value)},{immediate:!0});const x=z(()=>Lm(e.color,!1)),y=z(()=>({[`${o.value}-status-dot`]:d.value,[`${o.value}-status-${e.status}`]:!!e.status,[`${o.value}-status-${e.color}`]:x.value})),w=z(()=>e.color&&!x.value?{background:e.color,color:e.color}:{}),b=z(()=>({[`${o.value}-dot`]:g.value,[`${o.value}-count`]:!g.value,[`${o.value}-count-sm`]:e.size==="small",[`${o.value}-multiple-words`]:!g.value&&h.value&&h.value.toString().length>1,[`${o.value}-status-${e.status}`]:!!e.status,[`${o.value}-status-${e.color}`]:x.value}));return()=>{var S,$;const{offset:D,title:O,color:A}=e,T=r.style,M=wn(n,e,"text"),B=o.value,F=m.value;let P=Lt((S=n.default)===null||S===void 0?void 0:S.call(n));P=P.length?P:null;const I=!!(!v.value||n.count),N=(()=>{if(!D)return E({},T);const U={marginTop:ap(D[1])?`${D[1]}px`:D[1]};return a.value==="rtl"?U.left=`${parseInt(D[0],10)}px`:U.right=`${-parseInt(D[0],10)}px`,E(E({},U),T)})(),R=O??(typeof F=="string"||typeof F=="number"?F:void 0),_=I||!M?null:C("span",{class:`${B}-status-text`},[M]),L=typeof F=="object"||F===void 0&&n.count?At(F??(($=n.count)===null||$===void 0?void 0:$.call(n)),{style:N},!1):null,k=ge(B,{[`${B}-status`]:d.value,[`${B}-not-a-wrapper`]:!P,[`${B}-rtl`]:a.value==="rtl"},r.class,l.value);if(!P&&d.value){const U=N.color;return i(C("span",j(j({},r),{},{class:k,style:N}),[C("span",{class:y.value,style:w.value},null),C("span",{style:{color:U},class:`${B}-status-text`},[M])]))}const H=to(P?`${B}-zoom`:"",{appear:!1});let V=E(E({},N),e.numberStyle);return A&&!x.value&&(V=V||{},V.background=A),i(C("span",j(j({},r),{},{class:k}),[P,C(_n,H,{default:()=>[vn(C(aY,{prefixCls:e.scrollNumberPrefixCls,show:I,class:b.value,count:h.value,title:R,style:V,key:"scrollNumber"},{default:()=>[L]}),[[ur,I]])]}),_]))}}});Yd.install=function(e){return e.component(Yd.name,Yd),e.component(op.name,op),e};const bl={adjustX:1,adjustY:1},xl=[0,0],gY={topLeft:{points:["bl","tl"],overflow:bl,offset:[0,-4],targetOffset:xl},topCenter:{points:["bc","tc"],overflow:bl,offset:[0,-4],targetOffset:xl},topRight:{points:["br","tr"],overflow:bl,offset:[0,-4],targetOffset:xl},bottomLeft:{points:["tl","bl"],overflow:bl,offset:[0,4],targetOffset:xl},bottomCenter:{points:["tc","bc"],overflow:bl,offset:[0,4],targetOffset:xl},bottomRight:{points:["tr","br"],overflow:bl,offset:[0,4],targetOffset:xl}},yY=gY;var bY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe.visible,p=>{p!==void 0&&(a.value=p)});const i=be();o({triggerRef:i});const l=p=>{e.visible===void 0&&(a.value=!1),r("overlayClick",p)},s=p=>{e.visible===void 0&&(a.value=p),r("visibleChange",p)},u=()=>{var p;const v=(p=n.overlay)===null||p===void 0?void 0:p.call(n),m={prefixCls:`${e.prefixCls}-menu`,onClick:l};return C(dt,{key:FT},[e.arrow&&C("div",{class:`${e.prefixCls}-arrow`},null),At(v,m,!1)])},c=z(()=>{const{minOverlayWidthMatchTrigger:p=!e.alignPoint}=e;return p}),d=()=>{var p;const v=(p=n.default)===null||p===void 0?void 0:p.call(n);return a.value&&v?At(v[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):v},f=z(()=>!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction);return()=>{const{prefixCls:p,arrow:v,showAction:m,overlayStyle:h,trigger:g,placement:x,align:y,getPopupContainer:w,transitionName:b,animation:S,overlayClassName:$}=e,D=bY(e,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return C(rl,j(j({},D),{},{prefixCls:p,ref:i,popupClassName:ge($,{[`${p}-show-arrow`]:v}),popupStyle:h,builtinPlacements:yY,action:g,showAction:m,hideAction:f.value||[],popupPlacement:x,popupAlign:y,popupTransitionName:b,popupAnimation:S,popupVisible:a.value,stretch:c.value?"minWidth":"",onPopupVisibleChange:s,getPopupContainer:w}),{popup:u,default:d})}}}),xY=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}}}}},wY=nt("Wave",e=>[xY(e)]);function SY(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]):!0}function xh(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&SY(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function CY(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return xh(t)?t:xh(n)?n:xh(r)?r:null}function wh(e){return Number.isNaN(e)?0:e}const $Y=he({props:{target:We(),className:String},setup(e){const t=pe(null),[n,r]=It(null),[o,a]=It([]),[i,l]=It(0),[s,u]=It(0),[c,d]=It(0),[f,p]=It(0),[v,m]=It(!1);function h(){const{target:$}=e,D=getComputedStyle($);r(CY($));const O=D.position==="static",{borderLeftWidth:A,borderTopWidth:T}=D;l(O?$.offsetLeft:wh(-parseFloat(A))),u(O?$.offsetTop:wh(-parseFloat(T))),d($.offsetWidth),p($.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:B,borderBottomLeftRadius:F,borderBottomRightRadius:P}=D;a([M,B,P,F].map(I=>wh(parseFloat(I))))}let g,x,y;const w=()=>{clearTimeout(y),tt.cancel(x),g==null||g.disconnect()},b=()=>{var $;const D=($=t.value)===null||$===void 0?void 0:$.parentElement;D&&(os(null,D),D.parentElement&&D.parentElement.removeChild(D))};Qe(()=>{w(),y=setTimeout(()=>{b()},5e3);const{target:$}=e;$&&(x=tt(()=>{h(),m(!0)}),typeof ResizeObserver<"u"&&(g=new ResizeObserver(h),g.observe($)))}),st(()=>{w()});const S=$=>{$.propertyName==="opacity"&&b()};return()=>{if(!v.value)return null;const $={left:`${i.value}px`,top:`${s.value}px`,width:`${c.value}px`,height:`${f.value}px`,borderRadius:o.value.map(D=>`${D}px`).join(" ")};return n&&($["--wave-color"]=n.value),C(_n,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[C("div",{ref:t,class:e.className,style:$,onTransitionend:S},null)]})}}});function EY(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),os(C($Y,{target:e,className:t},null),n)}function DY(e,t){function n(){const r=yr(e);EY(r,t.value)}return n}const h1=he({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:n}=t;const r=Kn(),{prefixCls:o}=He("wave",e),[,a]=wY(o),i=DY(r,z(()=>ge(o.value,a.value)));let l;const s=()=>{yr(r).removeEventListener("click",l,!0)};return Qe(()=>{Ne(()=>e.disabled,()=>{s(),ht(()=>{const u=yr(r);if(!u||u.nodeType!==1||e.disabled)return;const c=d=>{d.target.tagName==="INPUT"||!vm(d.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||i()};u.addEventListener("click",c,!0)})},{immediate:!0,flush:"post"})}),st(()=>{s()}),()=>{var u;return(u=n.default)===null||u===void 0?void 0:u.call(n)[0]}}});function ip(e){return e==="danger"?{danger:!0}:{type:e}}const AY=()=>({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:Z.any,href:String,target:String,title:String,onClick:Vi(),onMousedown:Vi()}),pP=AY,w$=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},S$=e=>{ht(()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")})},C$=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},OY=he({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(e){return()=>{const{existIcon:t,prefixCls:n,loading:r}=e;if(t)return C("span",{class:`${n}-loading-icon`},[C(Lr,null,null)]);const o=!!r;return C(_n,{name:`${n}-loading-icon-motion`,onBeforeEnter:w$,onEnter:S$,onAfterEnter:C$,onBeforeLeave:S$,onLeave:a=>{setTimeout(()=>{w$(a)})},onAfterLeave:C$},{default:()=>[o?C("span",{class:`${n}-loading-icon`},[C(Lr,null,null)]):null]})}}}),$$=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),TY=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,[`&:hover, &:focus, &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},$$(`${t}-primary`,o),$$(`${t}-danger`,a)]}},MY=TY;function NY(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function PY(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 IY(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:E(E({},NY(e,t)),PY(e.componentCls,t))}}const _Y=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)":E({},ba(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% + ${e.lineWidth*2}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% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},wa=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),BY=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),FY=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),Jg=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),lp=(e,t,n,r,o,a,i)=>({[`&${e}-background-ghost`]:E(E({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},wa(E({backgroundColor:"transparent"},a),E({backgroundColor:"transparent"},i))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),g1=e=>({"&:disabled":E({},Jg(e))}),mP=e=>E({},g1(e)),sp=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),vP=e=>E(E(E(E(E({},mP(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),wa({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),lp(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:E(E(E({color:e.colorError,borderColor:e.colorError},wa({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),lp(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),g1(e))}),RY=e=>E(E(E(E(E({},mP(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),wa({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),lp(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`]:E(E(E({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},wa({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),lp(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),g1(e))}),zY=e=>E(E({},vP(e)),{borderStyle:"dashed"}),LY=e=>E(E(E({color:e.colorLink},wa({color:e.colorLinkHover},{color:e.colorLinkActive})),sp(e)),{[`&${e.componentCls}-dangerous`]:E(E({color:e.colorError},wa({color:e.colorErrorHover},{color:e.colorErrorActive})),sp(e))}),kY=e=>E(E(E({},wa({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),sp(e)),{[`&${e.componentCls}-dangerous`]:E(E({color:e.colorError},sp(e)),wa({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),HY=e=>E(E({},Jg(e)),{[`&${e.componentCls}:hover`]:E({},Jg(e))}),jY=e=>{const{componentCls:t}=e;return{[`${t}-default`]:vP(e),[`${t}-primary`]:RY(e),[`${t}-dashed`]:zY(e),[`${t}-link`]:LY(e),[`${t}-text`]:kY(e),[`${t}-disabled`]:HY(e)}},y1=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:r,controlHeight:o,fontSize:a,lineHeight:i,lineWidth:l,borderRadius:s,buttonPaddingHorizontal:u}=e,c=Math.max(0,(o-a*i)/2-l),d=u-l,f=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:a,height:o,padding:`${c}px ${d}px`,borderRadius:s,[`&${f}`]:{width:o,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(${f}) ${n}-loading-icon > ${r}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:BY(e)},{[`${n}${n}-round${t}`]:FY(e)}]},VY=e=>y1(e),WY=e=>{const t=qe(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return y1(t,`${e.componentCls}-sm`)},UY=e=>{const t=qe(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return y1(t,`${e.componentCls}-lg`)},KY=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},qY=nt("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=qe(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[_Y(r),WY(r),VY(r),UY(r),KY(r),jY(r),MY(r),Ps(e,{focus:!1}),IY(e)]}),GY=()=>({prefixCls:String,size:{type:String}}),hP=Vb(),up=he({compatConfig:{MODE:3},name:"AButtonGroup",props:GY(),setup(e,t){let{slots:n}=t;const{prefixCls:r,direction:o}=He("btn-group",e),[,,a]=$a();hP.useProvide(_t({size:z(()=>e.size)}));const i=z(()=>{const{size:l}=e;let s="";switch(l){case"large":s="lg";break;case"small":s="sm";break;case"middle":case void 0:break;default:qt(!l,"Button.Group","Invalid prop `size`.")}return{[`${r.value}`]:!0,[`${r.value}-${s}`]:s,[`${r.value}-rtl`]:o.value==="rtl",[a.value]:!0}});return()=>{var l;return C("div",{class:i.value},[Lt((l=n.default)===null||l===void 0?void 0:l.call(n))])}}}),E$=/^[\u4e00-\u9fa5]{2}$/,D$=E$.test.bind(E$);function nd(e){return e==="text"||e==="link"}const dn=he({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:at(pP(),{type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:r,emit:o,expose:a}=t;const{prefixCls:i,autoInsertSpaceInButton:l,direction:s,size:u}=He("btn",e),[c,d]=qY(i),f=hP.useInject(),p=Fr(),v=z(()=>{var P;return(P=e.disabled)!==null&&P!==void 0?P:p.value}),m=pe(null),h=pe(void 0);let g=!1;const x=pe(!1),y=pe(!1),w=z(()=>l.value!==!1),{compactSize:b,compactItemClassnames:S}=di(i,s),$=z(()=>typeof e.loading=="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading);Ne($,P=>{clearTimeout(h.value),typeof $.value=="number"?h.value=setTimeout(()=>{x.value=P},$.value):x.value=P},{immediate:!0});const D=z(()=>{const{type:P,shape:I="default",ghost:N,block:R,danger:_}=e,L=i.value,k={large:"lg",small:"sm",middle:void 0},H=b.value||(f==null?void 0:f.size)||u.value,V=H&&k[H]||"";return[S.value,{[d.value]:!0,[`${L}`]:!0,[`${L}-${I}`]:I!=="default"&&I,[`${L}-${P}`]:P,[`${L}-${V}`]:V,[`${L}-loading`]:x.value,[`${L}-background-ghost`]:N&&!nd(P),[`${L}-two-chinese-chars`]:y.value&&w.value,[`${L}-block`]:R,[`${L}-dangerous`]:!!_,[`${L}-rtl`]:s.value==="rtl"}]}),O=()=>{const P=m.value;if(!P||l.value===!1)return;const I=P.textContent;g&&D$(I)?y.value||(y.value=!0):y.value&&(y.value=!1)},A=P=>{if(x.value||v.value){P.preventDefault();return}o("click",P)},T=P=>{o("mousedown",P)},M=(P,I)=>{const N=I?" ":"";if(P.type===Qp){let R=P.children.trim();return D$(R)&&(R=R.split("").join(N)),C("span",null,[R])}return P};return Je(()=>{qt(!(e.ghost&&nd(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),Qe(O),Sr(O),st(()=>{h.value&&clearTimeout(h.value)}),a({focus:()=>{var P;(P=m.value)===null||P===void 0||P.focus()},blur:()=>{var P;(P=m.value)===null||P===void 0||P.blur()}}),()=>{var P,I;const{icon:N=(P=n.icon)===null||P===void 0?void 0:P.call(n)}=e,R=Lt((I=n.default)===null||I===void 0?void 0:I.call(n));g=R.length===1&&!N&&!nd(e.type);const{type:_,htmlType:L,href:k,title:H,target:V}=e,U=x.value?"loading":N,q=E(E({},r),{title:H,disabled:v.value,class:[D.value,r.class,{[`${i.value}-icon-only`]:R.length===0&&!!U}],onClick:A,onMousedown:T});v.value||delete q.disabled;const K=N&&!x.value?N:C(OY,{existIcon:!!N,prefixCls:i.value,loading:!!x.value},null),X=R.map(ee=>M(ee,g&&w.value));if(k!==void 0)return c(C("a",j(j({},q),{},{href:k,target:V,ref:m}),[K,X]));let re=C("button",j(j({},q),{},{ref:m,type:L}),[K,X]);if(!nd(_)){const ee=function(){return re}();re=C(h1,{ref:"wave",disabled:!!x.value},{default:()=>[ee]})}return c(re)}}});dn.Group=up;dn.install=function(e){return e.component(dn.name,dn),e.component(up.name,up),e};const gP=()=>({arrow:Xe([Boolean,Object]),trigger:{type:[Array,String]},menu:We(),overlay:Z.any,visible:Pe(),open:Pe(),disabled:Pe(),danger:Pe(),autofocus:Pe(),align:We(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:We(),forceRender:Pe(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:Pe(),destroyPopupOnHide:Pe(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),Sh=pP(),XY=()=>E(E({},gP()),{type:Sh.type,size:String,htmlType:Sh.htmlType,href:String,disabled:Pe(),prefixCls:String,icon:Z.any,title:String,loading:Sh.loading,onClick:Vi()});var YY={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"};const ZY=YY;function A$(e){for(var t=1;t{const{componentCls:t,antCls:n,paddingXS:r,opacityLoading:o}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:o},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:r}}}}},eZ=QY,tZ=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},nZ=tZ,rZ=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,dropdownArrowOffset:a,sizePopupArrow:i,antCls:l,iconCls:s,motionDurationMid:u,dropdownPaddingVertical:c,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:p,fontSizeIcon:v,controlPaddingHorizontal:m,colorBgElevated:h,boxShadowPopoverArrow:g}=e;return[{[t]:E(E({},rt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:-o+i/2,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${l}-btn > ${s}-down`]:{fontSize:v},[`${s}-down::before`]:{transition:`transform ${u}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},[` &-hidden, &-menu-hidden, &-menu-submenu-hidden `]:{display:"none"},[` &-show-arrow${t}-placement-topLeft, &-show-arrow${t}-placement-top, &-show-arrow${t}-placement-topRight `]:{paddingBottom:o},[` &-show-arrow${t}-placement-bottomLeft, &-show-arrow${t}-placement-bottom, &-show-arrow${t}-placement-bottomRight `]:{paddingTop:o},[`${t}-arrow`]:E({position:"absolute",zIndex:1,display:"block"},ob(i,e.borderRadiusXS,e.borderRadiusOuter,h,g)),[` &-placement-top > ${t}-arrow, &-placement-topLeft > ${t}-arrow, &-placement-topRight > ${t}-arrow `]:{bottom:o,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:a}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:a}},[` &-placement-bottom > ${t}-arrow, &-placement-bottomLeft > ${t}-arrow, &-placement-bottomRight > ${t}-arrow `]:{top:o,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:a}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:a}},[`&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomLeft, &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomLeft, &${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottom, &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottom, &${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomRight, &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:_m},[`&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topLeft, &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topLeft, &${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-top, &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-top, &${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topRight, &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Fm},[`&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomLeft, &${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottom, &${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Bm},[`&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topLeft, &${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-top, &${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Rm}})},{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}},[`${t}, ${t}-menu-submenu`]:{[n]:E(E({padding:f,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},ba(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`]:E(E({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}},ba(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,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:p,backgroundColor:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Ho(e,"slide-up"),Ho(e,"slide-down"),ps(e,"move-up"),ps(e,"move-down"),Ns(e,"zoom-big")]]},yP=nt("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:a,fontSize:i,lineHeight:l,paddingXXS:s,componentCls:u,borderRadiusOuter:c,borderRadiusLG:d}=e,f=(a-i*l)/2,{dropdownArrowOffset:p}=sP({sizePopupArrow:o,contentRadius:d,borderRadiusOuter:c}),v=qe(e,{menuCls:`${u}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:p,dropdownPaddingVertical:f,dropdownEdgeChildPadding:s});return[rZ(v),eZ(v),nZ(v)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var oZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{o("update:visible",f),o("visibleChange",f),o("update:open",f),o("openChange",f)},{prefixCls:i,direction:l,getPopupContainer:s}=He("dropdown",e),u=z(()=>`${i.value}-button`),[c,d]=yP(i);return()=>{var f,p;const v=E(E({},e),r),{type:m="default",disabled:h,danger:g,loading:x,htmlType:y,class:w="",overlay:b=(f=n.overlay)===null||f===void 0?void 0:f.call(n),trigger:S,align:$,open:D,visible:O,onVisibleChange:A,placement:T=l.value==="rtl"?"bottomLeft":"bottomRight",href:M,title:B,icon:F=((p=n.icon)===null||p===void 0?void 0:p.call(n))||C(x1,null,null),mouseEnterDelay:P,mouseLeaveDelay:I,overlayClassName:N,overlayStyle:R,destroyPopupOnHide:_,onClick:L,"onUpdate:open":k}=v,H=oZ(v,["type","disabled","danger","loading","htmlType","class","overlay","trigger","align","open","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:open"]),V={align:$,disabled:h,trigger:h?[]:S,placement:T,getPopupContainer:s==null?void 0:s.value,onOpenChange:a,mouseEnterDelay:P,mouseLeaveDelay:I,open:D??O,overlayClassName:N,overlayStyle:R,destroyPopupOnHide:_},U=C(dn,{danger:g,type:m,disabled:h,loading:x,onClick:L,htmlType:y,href:M,title:B},{default:n.default}),q=C(dn,{danger:g,type:m,icon:F},null);return c(C(aZ,j(j({},H),{},{class:ge(u.value,w,d.value)}),{default:()=>[n.leftButton?n.leftButton({button:U}):U,C(Ro,V,{default:()=>[n.rightButton?n.rightButton({button:q}):q],overlay:()=>b})]}))}}});var iZ={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"};const lZ=iZ;function O$(e){for(var t=1;tlt(bP,void 0),S1=e=>{var t,n,r;const{prefixCls:o,mode:a,selectable:i,validator:l,onClick:s,expandIcon:u}=xP()||{};it(bP,{prefixCls:z(()=>{var c,d;return(d=(c=e.prefixCls)===null||c===void 0?void 0:c.value)!==null&&d!==void 0?d:o==null?void 0:o.value}),mode:z(()=>{var c,d;return(d=(c=e.mode)===null||c===void 0?void 0:c.value)!==null&&d!==void 0?d:a==null?void 0:a.value}),selectable:z(()=>{var c,d;return(d=(c=e.selectable)===null||c===void 0?void 0:c.value)!==null&&d!==void 0?d:i==null?void 0:i.value}),validator:(t=e.validator)!==null&&t!==void 0?t:l,onClick:(n=e.onClick)!==null&&n!==void 0?n:s,expandIcon:(r=e.expandIcon)!==null&&r!==void 0?r:u==null?void 0:u.value})},wP=he({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:at(gP(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:n,attrs:r,emit:o}=t;const{prefixCls:a,rootPrefixCls:i,direction:l,getPopupContainer:s}=He("dropdown",e),[u,c]=yP(a),d=z(()=>{const{placement:h="",transitionName:g}=e;return g!==void 0?g:h.includes("top")?`${i.value}-slide-down`:`${i.value}-slide-up`});S1({prefixCls:z(()=>`${a.value}-menu`),expandIcon:z(()=>C("span",{class:`${a.value}-menu-submenu-arrow`},[C(xo,{class:`${a.value}-menu-submenu-arrow-icon`},null)])),mode:z(()=>"vertical"),selectable:z(()=>!1),onClick:()=>{},validator:h=>{Jt()}});const f=()=>{var h,g,x;const y=e.overlay||((h=n.overlay)===null||h===void 0?void 0:h.call(n)),w=Array.isArray(y)?y[0]:y;if(!w)return null;const b=w.props||{};qt(!b.mode||b.mode==="vertical","Dropdown",`mode="${b.mode}" is not supported for Dropdown's Menu.`);const{selectable:S=!1,expandIcon:$=(x=(g=w.children)===null||g===void 0?void 0:g.expandIcon)===null||x===void 0?void 0:x.call(g)}=b,D=typeof $<"u"&&hn($)?$:C("span",{class:`${a.value}-menu-submenu-arrow`},[C(xo,{class:`${a.value}-menu-submenu-arrow-icon`},null)]);return hn(w)?At(w,{mode:"vertical",selectable:S,expandIcon:()=>D}):w},p=z(()=>{const h=e.placement;if(!h)return l.value==="rtl"?"bottomRight":"bottomLeft";if(h.includes("Center")){const g=h.slice(0,h.indexOf("Center"));return qt(!h.includes("Center"),"Dropdown",`You are using '${h}' placement in Dropdown, which is deprecated. Try to use '${g}' instead.`),g}return h}),v=z(()=>typeof e.visible=="boolean"?e.visible:e.open),m=h=>{o("update:visible",h),o("visibleChange",h),o("update:open",h),o("openChange",h)};return()=>{var h,g;const{arrow:x,trigger:y,disabled:w,overlayClassName:b}=e,S=(h=n.default)===null||h===void 0?void 0:h.call(n)[0],$=At(S,E({class:ge((g=S==null?void 0:S.props)===null||g===void 0?void 0:g.class,{[`${a.value}-rtl`]:l.value==="rtl"},`${a.value}-trigger`)},w?{disabled:w}:{})),D=ge(b,c.value,{[`${a.value}-rtl`]:l.value==="rtl"}),O=w?[]:y;let A;O&&O.includes("contextmenu")&&(A=!0);const T=f1({arrowPointAtCenter:typeof x=="object"&&x.pointAtCenter,autoAdjustOverflow:!0}),M=pt(E(E(E({},e),r),{visible:v.value,builtinPlacements:T,overlayClassName:D,arrow:!!x,alignPoint:A,prefixCls:a.value,getPopupContainer:s==null?void 0:s.value,transitionName:d.value,trigger:O,onVisibleChange:m,placement:p.value}),["overlay","onUpdate:visible"]);return u(C(fP,M,{default:()=>[$],overlay:f}))}}});wP.Button=Uu;const Ro=wP;var uZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o({prefixCls:String,href:String,separator:Z.any,dropdownProps:We(),overlay:Z.any,onClick:Vi()}),Ku=he({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:cZ(),slots:Object,setup(e,t){let{slots:n,attrs:r,emit:o}=t;const{prefixCls:a}=He("breadcrumb",e),i=(s,u)=>{const c=wn(n,e,"overlay");return c?C(Ro,j(j({},e.dropdownProps),{},{overlay:c,placement:"bottom"}),{default:()=>[C("span",{class:`${u}-overlay-link`},[s,C(pc,null,null)])]}):s},l=s=>{o("click",s)};return()=>{var s;const u=(s=wn(n,e,"separator"))!==null&&s!==void 0?s:"/",c=wn(n,e),{class:d,style:f}=r,p=uZ(r,["class","style"]);let v;return e.href!==void 0?v=C("a",j({class:`${a.value}-link`,onClick:l},p),[c]):v=C("span",j({class:`${a.value}-link`,onClick:l},p),[c]),v=i(v,a.value),c!=null?C("li",{class:d,style:f},[v,u&&C("span",{class:`${a.value}-separator`},[u])]):null}}});function dZ(e,t,n,r){let o=n?n.call(r,e,t):void 0;if(o!==void 0)return!!o;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;const l=Object.prototype.hasOwnProperty.bind(t);for(let s=0;s{it(SP,e)},Ta=()=>lt(SP),$P=Symbol("ForceRenderKey"),fZ=e=>{it($P,e)},EP=()=>lt($P,!1),DP=Symbol("menuFirstLevelContextKey"),AP=e=>{it(DP,e)},pZ=()=>lt(DP,!0),cp=he({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 r=Ta(),o=E({},r);return e.mode!==void 0&&(o.mode=Ye(e,"mode")),e.overflowDisabled!==void 0&&(o.overflowDisabled=Ye(e,"overflowDisabled")),CP(o),()=>{var a;return(a=n.default)===null||a===void 0?void 0:a.call(n)}}}),mZ=CP,OP=Symbol("siderCollapsed"),TP=Symbol("siderHookProvider"),rd="$$__vc-menu-more__key",MP=Symbol("KeyPathContext"),C1=()=>lt(MP,{parentEventKeys:z(()=>[]),parentKeys:z(()=>[]),parentInfo:{}}),vZ=(e,t,n)=>{const{parentEventKeys:r,parentKeys:o}=C1(),a=z(()=>[...r.value,e]),i=z(()=>[...o.value,t]);return it(MP,{parentEventKeys:a,parentKeys:i,parentInfo:n}),i},NP=Symbol("measure"),T$=he({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return it(NP,!0),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),$1=()=>lt(NP,!1),hZ=vZ;function PP(e){const{mode:t,rtl:n,inlineIndent:r}=Ta();return z(()=>t.value!=="inline"?null:n.value?{paddingRight:`${e.value*r.value}px`}:{paddingLeft:`${e.value*r.value}px`})}let gZ=0;const yZ=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:Z.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:We()}),zo=he({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:yZ(),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:o}=t;const a=Kn(),i=$1(),l=typeof a.vnode.key=="symbol"?String(a.vnode.key):a.vnode.key;qt(typeof a.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(l)}"\` not support Symbol type`);const s=`menu_item_${++gZ}_$$_${l}`,{parentEventKeys:u,parentKeys:c}=C1(),{prefixCls:d,activeKeys:f,disabled:p,changeActiveKeys:v,rtl:m,inlineCollapsed:h,siderCollapsed:g,onItemClick:x,selectedKeys:y,registerMenuInfo:w,unRegisterMenuInfo:b}=Ta(),S=pZ(),$=pe(!1),D=z(()=>[...c.value,l]);w(s,{eventKey:s,key:l,parentEventKeys:u,parentKeys:c,isLeaf:!0}),st(()=>{b(s)}),Ne(f,()=>{$.value=!!f.value.find(k=>k===l)},{immediate:!0});const A=z(()=>p.value||e.disabled),T=z(()=>y.value.includes(l)),M=z(()=>{const k=`${d.value}-item`;return{[`${k}`]:!0,[`${k}-danger`]:e.danger,[`${k}-active`]:$.value,[`${k}-selected`]:T.value,[`${k}-disabled`]:A.value}}),B=k=>({key:l,eventKey:s,keyPath:D.value,eventKeyPath:[...u.value,s],domEvent:k,item:E(E({},e),o)}),F=k=>{if(A.value)return;const H=B(k);r("click",k),x(H)},P=k=>{A.value||(v(D.value),r("mouseenter",k))},I=k=>{A.value||(v([]),r("mouseleave",k))},N=k=>{if(r("keydown",k),k.which===_e.ENTER){const H=B(k);r("click",k),x(H)}},R=k=>{v(D.value),r("focus",k)},_=(k,H)=>{const V=C("span",{class:`${d.value}-title-content`},[H]);return(!k||hn(H)&&H.type==="span")&&H&&h.value&&S&&typeof H=="string"?C("div",{class:`${d.value}-inline-collapsed-noicon`},[H.charAt(0)]):V},L=PP(z(()=>D.value.length));return()=>{var k,H,V,U,q;if(i)return null;const K=(k=e.title)!==null&&k!==void 0?k:(H=n.title)===null||H===void 0?void 0:H.call(n),X=Lt((V=n.default)===null||V===void 0?void 0:V.call(n)),re=X.length;let ee=K;typeof K>"u"?ee=S&&re?X:"":K===!1&&(ee="");const G={title:ee};!g.value&&!h.value&&(G.title=null,G.open=!1);const le={};e.role==="option"&&(le["aria-selected"]=T.value);const ue=(U=e.icon)!==null&&U!==void 0?U:(q=n.icon)===null||q===void 0?void 0:q.call(n,e);return C(Br,j(j({},G),{},{placement:m.value?"left":"right",overlayClassName:`${d.value}-inline-collapsed-tooltip`}),{default:()=>[C(Kl.Item,j(j(j({component:"li"},o),{},{id:e.id,style:E(E({},o.style||{}),L.value),class:[M.value,{[`${o.class}`]:!!o.class,[`${d.value}-item-only-child`]:(ue?re+1:re)===1}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":l,"aria-disabled":e.disabled},le),{},{onMouseenter:P,onMouseleave:I,onClick:F,onKeydown:N,onFocus:R,title:typeof K=="string"?K:void 0}),{default:()=>[At(typeof ue=="function"?ue(e.originItemValue):ue,{class:`${d.value}-item-icon`},!1),_(ue,X)]})]})}}}),Xa={adjustX:1,adjustY:1},bZ={topLeft:{points:["bl","tl"],overflow:Xa,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Xa,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Xa,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Xa,offset:[4,0]}},xZ={topLeft:{points:["bl","tl"],overflow:Xa,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Xa,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Xa,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Xa,offset:[4,0]}},wZ={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},M$=he({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:n,emit:r}=t;const o=pe(!1),{getPopupContainer:a,rtl:i,subMenuOpenDelay:l,subMenuCloseDelay:s,builtinPlacements:u,triggerSubMenuAction:c,forceSubMenuRender:d,motion:f,defaultMotions:p,rootClassName:v}=Ta(),m=EP(),h=z(()=>i.value?E(E({},xZ),u.value):E(E({},bZ),u.value)),g=z(()=>wZ[e.mode]),x=pe();Ne(()=>e.visible,b=>{tt.cancel(x.value),x.value=tt(()=>{o.value=b})},{immediate:!0}),st(()=>{tt.cancel(x.value)});const y=b=>{r("visibleChange",b)},w=z(()=>{var b,S;const $=f.value||((b=p.value)===null||b===void 0?void 0:b[e.mode])||((S=p.value)===null||S===void 0?void 0:S.other),D=typeof $=="function"?$():$;return D?to(D.name,{css:!0}):void 0});return()=>{const{prefixCls:b,popupClassName:S,mode:$,popupOffset:D,disabled:O}=e;return C(rl,{prefixCls:b,popupClassName:ge(`${b}-popup`,{[`${b}-rtl`]:i.value},S,v.value),stretch:$==="horizontal"?"minWidth":null,getPopupContainer:a.value,builtinPlacements:h.value,popupPlacement:g.value,popupVisible:o.value,popupAlign:D&&{offset:D},action:O?[]:[c.value],mouseEnterDelay:l.value,mouseLeaveDelay:s.value,onPopupVisibleChange:y,forceRender:m||d.value,popupAnimation:w.value},{popup:n.popup,default:n.default})}}}),IP=(e,t)=>{let{slots:n,attrs:r}=t;var o;const{prefixCls:a,mode:i}=Ta();return C("ul",j(j({},r),{},{class:ge(a.value,`${a.value}-sub`,`${a.value}-${i.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(o=n.default)===null||o===void 0?void 0:o.call(n)])};IP.displayName="SubMenuList";const _P=IP,SZ=he({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t;const r=z(()=>"inline"),{motion:o,mode:a,defaultMotions:i}=Ta(),l=z(()=>a.value===r.value),s=be(!l.value),u=z(()=>l.value?e.open:!1);Ne(a,()=>{l.value&&(s.value=!1)},{flush:"post"});const c=z(()=>{var d,f;const p=o.value||((d=i.value)===null||d===void 0?void 0:d[r.value])||((f=i.value)===null||f===void 0?void 0:f.other),v=typeof p=="function"?p():p;return E(E({},v),{appear:e.keyPath.length<=1})});return()=>{var d;return s.value?null:C(cp,{mode:r.value},{default:()=>[C(_n,c.value,{default:()=>[vn(C(_P,{id:e.id},{default:()=>[(d=n.default)===null||d===void 0?void 0:d.call(n)]}),[[ur,u.value]])]})]})}}});let N$=0;const CZ=()=>({icon:Z.any,title:Z.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:We()}),Ki=he({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:CZ(),slots:Object,setup(e,t){let{slots:n,attrs:r,emit:o}=t;var a,i;AP(!1);const l=$1(),s=Kn(),u=typeof s.vnode.key=="symbol"?String(s.vnode.key):s.vnode.key;qt(typeof s.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(u)}"\` not support Symbol type`);const c=Eg(u)?u:`sub_menu_${++N$}_$$_not_set_key`,d=(a=e.eventKey)!==null&&a!==void 0?a:Eg(u)?`sub_menu_${++N$}_$$_${u}`:c,{parentEventKeys:f,parentInfo:p,parentKeys:v}=C1(),m=z(()=>[...v.value,c]),h=pe([]),g={eventKey:d,key:c,parentEventKeys:f,childrenEventKeys:h,parentKeys:v};(i=p.childrenEventKeys)===null||i===void 0||i.value.push(d),st(()=>{var ae;p.childrenEventKeys&&(p.childrenEventKeys.value=(ae=p.childrenEventKeys)===null||ae===void 0?void 0:ae.value.filter(ce=>ce!=d))}),hZ(d,c,g);const{prefixCls:x,activeKeys:y,disabled:w,changeActiveKeys:b,mode:S,inlineCollapsed:$,openKeys:D,overflowDisabled:O,onOpenChange:A,registerMenuInfo:T,unRegisterMenuInfo:M,selectedSubMenuKeys:B,expandIcon:F,theme:P}=Ta(),I=u!=null,N=!l&&(EP()||!I);fZ(N),(l&&I||!l&&!I||N)&&(T(d,g),st(()=>{M(d)}));const R=z(()=>`${x.value}-submenu`),_=z(()=>w.value||e.disabled),L=pe(),k=pe(),H=z(()=>D.value.includes(c)),V=z(()=>!O.value&&H.value),U=z(()=>B.value.includes(c)),q=pe(!1);Ne(y,()=>{q.value=!!y.value.find(ae=>ae===c)},{immediate:!0});const K=ae=>{_.value||(o("titleClick",ae,c),S.value==="inline"&&A(c,!H.value))},X=ae=>{_.value||(b(m.value),o("mouseenter",ae))},re=ae=>{_.value||(b([]),o("mouseleave",ae))},ee=PP(z(()=>m.value.length)),G=ae=>{S.value!=="inline"&&A(c,ae)},le=()=>{b(m.value)},ue=d&&`${d}-popup`,me=z(()=>ge(x.value,`${x.value}-${e.theme||P.value}`,e.popupClassName)),Se=(ae,ce)=>{if(!ce)return $.value&&!v.value.length&&ae&&typeof ae=="string"?C("div",{class:`${x.value}-inline-collapsed-noicon`},[ae.charAt(0)]):C("span",{class:`${x.value}-title-content`},[ae]);const Ce=hn(ae)&&ae.type==="span";return C(dt,null,[At(typeof ce=="function"?ce(e.originItemValue):ce,{class:`${x.value}-item-icon`},!1),Ce?ae:C("span",{class:`${x.value}-title-content`},[ae])])},Q=z(()=>S.value!=="inline"&&m.value.length>1?"vertical":S.value),te=z(()=>S.value==="horizontal"?"vertical":S.value),de=z(()=>Q.value==="horizontal"?"vertical":Q.value),Y=()=>{var ae,ce;const Ce=R.value,ye=(ae=e.icon)!==null&&ae!==void 0?ae:(ce=n.icon)===null||ce===void 0?void 0:ce.call(n,e),J=e.expandIcon||n.expandIcon||F.value,ne=Se(wn(n,e,"title"),ye);return C("div",{style:ee.value,class:`${Ce}-title`,tabindex:_.value?null:-1,ref:L,title:typeof ne=="string"?ne:null,"data-menu-id":c,"aria-expanded":V.value,"aria-haspopup":!0,"aria-controls":ue,"aria-disabled":_.value,onClick:K,onFocus:le},[ne,S.value!=="horizontal"&&J?J(E(E({},e),{isOpen:V.value})):C("i",{class:`${Ce}-arrow`},null)])};return()=>{var ae;if(l)return I?(ae=n.default)===null||ae===void 0?void 0:ae.call(n):null;const ce=R.value;let Ce=()=>null;if(!O.value&&S.value!=="inline"){const ye=S.value==="horizontal"?[0,8]:[10,0];Ce=()=>C(M$,{mode:Q.value,prefixCls:ce,visible:!e.internalPopupClose&&V.value,popupClassName:me.value,popupOffset:e.popupOffset||ye,disabled:_.value,onVisibleChange:G},{default:()=>[Y()],popup:()=>C(cp,{mode:de.value},{default:()=>[C(_P,{id:ue,ref:k},{default:n.default})]})})}else Ce=()=>C(M$,null,{default:Y});return C(cp,{mode:te.value},{default:()=>[C(Kl.Item,j(j({component:"li"},r),{},{role:"none",class:ge(ce,`${ce}-${S.value}`,r.class,{[`${ce}-open`]:V.value,[`${ce}-active`]:q.value,[`${ce}-selected`]:U.value,[`${ce}-disabled`]:_.value}),onMouseenter:X,onMouseleave:re,"data-submenu-id":c}),{default:()=>C(dt,null,[Ce(),!O.value&&C(SZ,{id:ue,open:V.value,keyPath:m.value},{default:n.default})])})]})}}});function BP(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function Qg(e,t){e.classList?e.classList.add(t):BP(e,t)||(e.className=`${e.className} ${t}`)}function e0(e,t){if(e.classList)e.classList.remove(t);else if(BP(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}const $Z=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:t,css:!0,onBeforeEnter:n=>{n.style.height="0px",n.style.opacity="0",Qg(n,e)},onEnter:n=>{ht(()=>{n.style.height=`${n.scrollHeight}px`,n.style.opacity="1"})},onAfterEnter:n=>{n&&(e0(n,e),n.style.height=null,n.style.opacity=null)},onBeforeLeave:n=>{Qg(n,e),n.style.height=`${n.offsetHeight}px`,n.style.opacity=null},onLeave:n=>{setTimeout(()=>{n.style.height="0px",n.style.opacity="0"})},onAfterLeave:n=>{n&&(e0(n,e),n.style&&(n.style.height=null,n.style.opacity=null))}}},gc=$Z,EZ=()=>({title:Z.any,originItemValue:We()}),qu=he({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:EZ(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o}=Ta(),a=z(()=>`${o.value}-item-group`),i=$1();return()=>{var l,s;return i?(l=n.default)===null||l===void 0?void 0:l.call(n):C("li",j(j({},r),{},{onClick:u=>u.stopPropagation(),class:a.value}),[C("div",{title:typeof e.title=="string"?e.title:void 0,class:`${a.value}-title`},[wn(n,e,"title")]),C("ul",{class:`${a.value}-list`},[(s=n.default)===null||s===void 0?void 0:s.call(n)])])}}}),DZ=()=>({prefixCls:String,dashed:Boolean}),Gu=he({compatConfig:{MODE:3},name:"AMenuDivider",props:DZ(),setup(e){const{prefixCls:t}=Ta(),n=z(()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed}));return()=>C("li",{class:n.value},null)}});var AZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(r&&typeof r=="object"){const a=r,{label:i,children:l,key:s,type:u}=a,c=AZ(a,["label","children","key","type"]),d=s??`tmp-${o}`,f=n?n.parentKeys.slice():[],p=[],v={eventKey:d,key:d,parentEventKeys:be(f),parentKeys:be(f),childrenEventKeys:be(p),isLeaf:!1};if(l||u==="group"){if(u==="group"){const h=t0(l,t,n);return C(qu,j(j({key:d},c),{},{title:i,originItemValue:r}),{default:()=>[h]})}t.set(d,v),n&&n.childrenEventKeys.push(d);const m=t0(l,t,{childrenEventKeys:p,parentKeys:[].concat(f,d)});return C(Ki,j(j({key:d},c),{},{title:i,originItemValue:r}),{default:()=>[m]})}return u==="divider"?C(Gu,j({key:d},c),null):(v.isLeaf=!0,t.set(d,v),C(zo,j(j({key:d},c),{},{originItemValue:r}),{default:()=>[i]}))}return null}).filter(r=>r)}function OZ(e){const t=pe([]),n=pe(!1),r=pe(new Map);return Ne(()=>e.items,()=>{const o=new Map;n.value=!1,e.items?(n.value=!0,t.value=t0(e.items,o)):t.value=void 0,r.value=o},{immediate:!0,deep:!0}),{itemsNodes:t,store:r,hasItmes:n}}const TZ=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:o,lineWidth:a,lineType:i,menuItemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${a}px ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover, > ${t}-item-active, > ${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"}}}},MZ=TZ,NZ=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},PZ=NZ,P$=e=>E({},ya(e)),IZ=(e,t)=>{const{componentCls:n,colorItemText:r,colorItemTextSelected:o,colorGroupTitle:a,colorItemBg:i,colorSubItemBg:l,colorItemBgSelected:s,colorActiveBarHeight:u,colorActiveBarWidth:c,colorActiveBarBorderSize:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:v,menuItemPaddingInline:m,motionDurationMid:h,colorItemTextHover:g,lineType:x,colorSplit:y,colorItemTextDisabled:w,colorDangerItemText:b,colorDangerItemTextHover:S,colorDangerItemTextSelected:$,colorDangerItemBgActive:D,colorDangerItemBgSelected:O,colorItemBgHover:A,menuSubMenuBg:T,colorItemTextSelectedHorizontal:M,colorItemBgSelectedHorizontal:B}=e;return{[`${n}-${t}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:E({},P$(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${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:A},"&:active":{backgroundColor:s}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:s}}},[`${n}-item-danger`]:{color:b,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:D}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:$},["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`]:E({},P$(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:T},[`&${n}-popup > ${n}`]:{backgroundColor:i},[`&${n}-horizontal`]:E(E({},t==="dark"?{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 ${f} ${p}`,content:'""'},["&:hover, &-active, &-open"]:{"&::after":{borderBottomWidth:u,borderBottomColor:M}},["&-selected"]:{color:M,backgroundColor:B,"&::after":{borderBottomWidth:u,borderBottomColor:M}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${x} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${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 ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${v}`,`opacity ${h} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:$}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${p}`,`opacity ${h} ${p}`].join(",")}}}}}},I$=IZ,_$=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,marginXXS:l}=e,s=o+a+i;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:`calc(100% - ${r*2}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title, ${t}-submenu-title`]:{paddingInlineEnd:s}}},_Z=e=>{const{componentCls:t,iconCls:n,menuItemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:l,motionEaseOut:s,paddingXL:u,fontSizeSM:c,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:v}=e,m={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{["&-inline, &-vertical"]:E({[`&${t}-root`]:{boxShadow:"none"}},_$(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:E(E({},_$(e)),{boxShadow:v})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${i*2.5}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 ${f}`,`background ${f}`,`padding ${l} ${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:r*2,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${c}px)`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:d,lineHeight:`${r}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:o}},[`${t}-item-group-title`]:E(E({},gn),{paddingInline:p})}}]},BZ=_Z,B$=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:r,motionDurationMid:o,motionEaseInOut:a,motionEaseOut:i,iconCls:l,controlHeightSM:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding ${r} ${a}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:n,fontSize:n,transition:[`font-size ${o} ${i}`,`margin ${r} ${a}`,`color ${r}`].join(","),"+ span":{marginInlineStart:s-n,opacity:1,transition:[`opacity ${r} ${a}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:E({},Ji()),[`&${t}-item-only-child`]:{[`> ${l}, > ${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"}}}},F$=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{["&-expand-icon, &-arrow"]:{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:a*.6,height:a*.15,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${i})`},"&::after":{transform:`rotate(-45deg) translateY(${i})`}}}}},FZ=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,lineHeight:l,paddingXS:s,padding:u,colorSplit:c,lineWidth:d,zIndexPopup:f,borderRadiusLG:p,radiusSubMenuItem:v,menuArrowSize:m,menuArrowOffset:h,lineType:g,menuPanelMaskInset:x}=e;return[{"":{[`${n}`]:E(E({},yo()),{["&-hidden"]:{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:E(E(E(E(E(E(E({},rt(e)),yo()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} 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:r,lineHeight:l,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${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"}}}),B$(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${u}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,background:"transparent",borderRadius:p,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${x}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:x},[`> ${n}`]:E(E(E({borderRadius:p},B$(e)),F$(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})}}),F$(e)),{[`&-inline-collapsed ${n}-submenu-arrow, &-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(-${m*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${h})`},"&::before":{transform:`rotate(45deg) translateX(${h})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},RZ=(e,t)=>nt("Menu",(r,o)=>{let{overrideComponentToken:a}=o;if((t==null?void 0:t.value)===!1)return[];const{colorBgElevated:i,colorPrimary:l,colorError:s,colorErrorHover:u,colorTextLightSolid:c}=r,{controlHeightLG:d,fontSize:f}=r,p=f/7*5,v=qe(r,{menuItemHeight:d,menuItemPaddingInline:r.margin,menuArrowSize:p,menuHorizontalHeight:d*1.15,menuArrowOffset:`${p*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:i}),m=new $t(c).setAlpha(.65).toRgbString(),h=qe(v,{colorItemText:m,colorItemTextHover:c,colorGroupTitle:m,colorItemTextSelected:c,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:l,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new $t(c).setAlpha(.25).toRgbString(),colorDangerItemText:s,colorDangerItemTextHover:u,colorDangerItemTextSelected:c,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:c,colorItemBgSelectedHorizontal:l},E({},a));return[FZ(v),MZ(v),BZ(v),I$(v,"light"),I$(h,"dark"),PZ(v),hc(v),Ho(v,"slide-up"),Ho(v,"slide-down"),Ns(v,"zoom-big")]},r=>{const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:l,colorText:s,colorTextDescription:u,colorBgContainer:c,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:v,controlItemBgActive:m,colorBgTextHover:h}=r;return{dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,colorItemText:s,colorItemTextHover:s,colorItemTextHoverHorizontal:o,colorGroupTitle:u,colorItemTextSelected:o,colorItemTextSelectedHorizontal:o,colorItemBg:c,colorItemBgHover:h,colorItemBgActive:f,colorSubItemBg:d,colorItemBgSelected:m,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:v,colorActiveBarBorderSize:p,colorItemTextDisabled:i,colorDangerItemText:a,colorDangerItemTextHover:a,colorDangerItemTextSelected:a,colorDangerItemBgActive:l,colorDangerItemBgSelected:l,itemMarginInline:r.marginXXS}})(e),zZ=()=>({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}),R$=[],mn=he({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:zZ(),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:o}=t;const{direction:a,getPrefixCls:i}=He("menu",e),l=xP(),s=z(()=>{var K;return i("menu",e.prefixCls||((K=l==null?void 0:l.prefixCls)===null||K===void 0?void 0:K.value))}),[u,c]=RZ(s,z(()=>!l)),d=pe(new Map),f=lt(OP,be(void 0)),p=z(()=>f.value!==void 0?f.value:e.inlineCollapsed),{itemsNodes:v}=OZ(e),m=pe(!1);Qe(()=>{m.value=!0}),Je(()=>{qt(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),qt(!(f.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});const h=be([]),g=be([]),x=be({});Ne(d,()=>{const K={};for(const X of d.value.values())K[X.key]=X;x.value=K},{flush:"post"}),Je(()=>{if(e.activeKey!==void 0){let K=[];const X=e.activeKey?x.value[e.activeKey]:void 0;X&&e.activeKey!==void 0?K=vh([].concat(xn(X.parentKeys),e.activeKey)):K=[],Nl(h.value,K)||(h.value=K)}}),Ne(()=>e.selectedKeys,K=>{K&&(g.value=K.slice())},{immediate:!0,deep:!0});const y=be([]);Ne([x,g],()=>{let K=[];g.value.forEach(X=>{const re=x.value[X];re&&(K=K.concat(xn(re.parentKeys)))}),K=vh(K),Nl(y.value,K)||(y.value=K)},{immediate:!0});const w=K=>{if(e.selectable){const{key:X}=K,re=g.value.includes(X);let ee;e.multiple?re?ee=g.value.filter(le=>le!==X):ee=[...g.value,X]:ee=[X];const G=E(E({},K),{selectedKeys:ee});Nl(ee,g.value)||(e.selectedKeys===void 0&&(g.value=ee),r("update:selectedKeys",ee),re&&e.multiple?r("deselect",G):r("select",G))}A.value!=="inline"&&!e.multiple&&b.value.length&&B(R$)},b=be([]);Ne(()=>e.openKeys,function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b.value;Nl(b.value,K)||(b.value=K.slice())},{immediate:!0,deep:!0});let S;const $=K=>{clearTimeout(S),S=setTimeout(()=>{e.activeKey===void 0&&(h.value=K),r("update:activeKey",K[K.length-1])})},D=z(()=>!!e.disabled),O=z(()=>a.value==="rtl"),A=be("vertical"),T=pe(!1);Je(()=>{var K;(e.mode==="inline"||e.mode==="vertical")&&p.value?(A.value="vertical",T.value=p.value):(A.value=e.mode,T.value=!1),!((K=l==null?void 0:l.mode)===null||K===void 0)&&K.value&&(A.value=l.mode.value)});const M=z(()=>A.value==="inline"),B=K=>{b.value=K,r("update:openKeys",K),r("openChange",K)},F=be(b.value),P=pe(!1);Ne(b,()=>{M.value&&(F.value=b.value)},{immediate:!0}),Ne(M,()=>{if(!P.value){P.value=!0;return}M.value?b.value=F.value:B(R$)},{immediate:!0});const I=z(()=>({[`${s.value}`]:!0,[`${s.value}-root`]:!0,[`${s.value}-${A.value}`]:!0,[`${s.value}-inline-collapsed`]:T.value,[`${s.value}-rtl`]:O.value,[`${s.value}-${e.theme}`]:!0})),N=z(()=>i()),R=z(()=>({horizontal:{name:`${N.value}-slide-up`},inline:gc,other:{name:`${N.value}-zoom-big`}}));AP(!0);const _=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const X=[],re=d.value;return K.forEach(ee=>{const{key:G,childrenEventKeys:le}=re.get(ee);X.push(G,..._(xn(le)))}),X},L=K=>{var X;r("click",K),w(K),(X=l==null?void 0:l.onClick)===null||X===void 0||X.call(l)},k=(K,X)=>{var re;const ee=((re=x.value[K])===null||re===void 0?void 0:re.childrenEventKeys)||[];let G=b.value.filter(le=>le!==K);if(X)G.push(K);else if(A.value!=="inline"){const le=_(xn(ee));G=vh(G.filter(ue=>!le.includes(ue)))}Nl(b,G)||B(G)},H=(K,X)=>{d.value.set(K,X),d.value=new Map(d.value)},V=K=>{d.value.delete(K),d.value=new Map(d.value)},U=be(0),q=z(()=>{var K;return e.expandIcon||n.expandIcon||!((K=l==null?void 0:l.expandIcon)===null||K===void 0)&&K.value?X=>{let re=e.expandIcon||n.expandIcon;return re=typeof re=="function"?re(X):re,At(re,{class:`${s.value}-submenu-expand-icon`},!1)}:null});return mZ({prefixCls:s,activeKeys:h,openKeys:b,selectedKeys:g,changeActiveKeys:$,disabled:D,rtl:O,mode:A,inlineIndent:z(()=>e.inlineIndent),subMenuCloseDelay:z(()=>e.subMenuCloseDelay),subMenuOpenDelay:z(()=>e.subMenuOpenDelay),builtinPlacements:z(()=>e.builtinPlacements),triggerSubMenuAction:z(()=>e.triggerSubMenuAction),getPopupContainer:z(()=>e.getPopupContainer),inlineCollapsed:T,theme:z(()=>e.theme),siderCollapsed:f,defaultMotions:z(()=>m.value?R.value:null),motion:z(()=>m.value?e.motion:null),overflowDisabled:pe(void 0),onOpenChange:k,onItemClick:L,registerMenuInfo:H,unRegisterMenuInfo:V,selectedSubMenuKeys:y,expandIcon:q,forceSubMenuRender:z(()=>e.forceSubMenuRender),rootClassName:c}),()=>{var K,X;const re=v.value||Lt((K=n.default)===null||K===void 0?void 0:K.call(n)),ee=U.value>=re.length-1||A.value!=="horizontal"||e.disabledOverflow,G=A.value!=="horizontal"||e.disabledOverflow?re:re.map((ue,me)=>C(cp,{key:ue.key,overflowDisabled:me>U.value},{default:()=>ue})),le=((X=n.overflowedIndicator)===null||X===void 0?void 0:X.call(n))||C(x1,null,null);return u(C(Kl,j(j({},o),{},{onMousedown:e.onMousedown,prefixCls:`${s.value}-overflow`,component:"ul",itemComponent:zo,class:[I.value,o.class,c.value],role:"menu",id:e.id,data:G,renderRawItem:ue=>ue,renderRawRest:ue=>{const me=ue.length,Se=me?re.slice(-me):null;return C(dt,null,[C(Ki,{eventKey:rd,key:rd,title:le,disabled:ee,internalPopupClose:me===0},{default:()=>Se}),C(T$,null,{default:()=>[C(Ki,{eventKey:rd,key:rd,title:le,disabled:ee,internalPopupClose:me===0},{default:()=>Se})]})])},maxCount:A.value!=="horizontal"||e.disabledOverflow?Kl.INVALIDATE:Kl.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:ue=>{U.value=ue}}),{default:()=>[C(zy,{to:"body"},{default:()=>[C("div",{style:{display:"none"},"aria-hidden":!0},[C(T$,null,{default:()=>[G]})])]})]}))}}});mn.install=function(e){return e.component(mn.name,mn),e.component(zo.name,zo),e.component(Ki.name,Ki),e.component(Gu.name,Gu),e.component(qu.name,qu),e};mn.Item=zo;mn.Divider=Gu;mn.SubMenu=Ki;mn.ItemGroup=qu;const LZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:E(E({},rt(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[n]:{fontSize:e.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:E({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},ba(e)),["li:last-child"]:{color:e.breadcrumbLastItemColor,[`& > ${t}-separator`]:{display:"none"}},[`${t}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${t}-link`]:{[` > ${n} + span, > ${n} + a `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover,a:{color:e.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},kZ=nt("Breadcrumb",e=>{const t=qe(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription});return[LZ(t)]}),HZ=()=>({prefixCls:String,routes:{type:Array},params:Z.any,separator:Z.any,itemRender:{type:Function}});function jZ(e,t){if(!e.breadcrumbName)return null;const n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(`:(${n})`,"g"),(o,a)=>t[a]||o)}function z$(e){const{route:t,params:n,routes:r,paths:o}=e,a=r.indexOf(t)===r.length-1,i=jZ(t,n);return a?C("span",null,[i]):C("a",{href:`#/${o.join("/")}`},[i])}const Ri=he({compatConfig:{MODE:3},name:"ABreadcrumb",inheritAttrs:!1,props:HZ(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("breadcrumb",e),[i,l]=kZ(o),s=(d,f)=>(d=(d||"").replace(/^\//,""),Object.keys(f).forEach(p=>{d=d.replace(`:${p}`,f[p])}),d),u=(d,f,p)=>{const v=[...d],m=s(f||"",p);return m&&v.push(m),v},c=d=>{let{routes:f=[],params:p={},separator:v,itemRender:m=z$}=d;const h=[];return f.map(g=>{const x=s(g.path,p);x&&h.push(x);const y=[...h];let w=null;g.children&&g.children.length&&(w=C(mn,{items:g.children.map(S=>({key:S.path||S.breadcrumbName,label:m({route:S,params:p,routes:f,paths:u(y,S.path,p)})}))},null));const b={separator:v};return w&&(b.overlay=w),C(Ku,j(j({},b),{},{key:x||g.breadcrumbName}),{default:()=>[m({route:g,params:p,routes:f,paths:y})]})})};return()=>{var d;let f;const{routes:p,params:v={}}=e,m=Lt(wn(n,e)),h=(d=wn(n,e,"separator"))!==null&&d!==void 0?d:"/",g=e.itemRender||n.itemRender||z$;p&&p.length>0?f=c({routes:p,params:v,separator:h,itemRender:g}):m.length&&(f=m.map((y,w)=>(Jt(typeof y.type=="object"&&(y.type.__ANT_BREADCRUMB_ITEM||y.type.__ANT_BREADCRUMB_SEPARATOR)),ha(y,{separator:h,key:w}))));const x={[o.value]:!0,[`${o.value}-rtl`]:a.value==="rtl",[`${r.class}`]:!!r.class,[l.value]:!0};return i(C("nav",j(j({},r),{},{class:x}),[C("ol",null,[f])]))}}});var VZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o({prefixCls:String}),dp=he({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:WZ(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o}=He("breadcrumb",e);return()=>{var a;const{separator:i,class:l}=r,s=VZ(r,["separator","class"]),u=Lt((a=n.default)===null||a===void 0?void 0:a.call(n));return C("span",j({class:[`${o.value}-separator`,l]},s),[u.length>0?u:"/"])}}});Ri.Item=Ku;Ri.Separator=dp;Ri.install=function(e){return e.component(Ri.name,Ri),e.component(Ku.name,Ku),e.component(dp.name,dp),e};var tr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function FP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function UZ(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var a=Function.bind.apply(t,o);return new a}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var fp={},KZ={get exports(){return fp},set exports(e){fp=e}};(function(e,t){(function(n,r){e.exports=r()})(tr,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",l="minute",s="hour",u="day",c="week",d="month",f="quarter",p="year",v="date",m="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var F=["th","st","nd","rd"],P=B%100;return"["+B+(F[(P-20)%10]||F[P]||F[0])+"]"}},y=function(B,F,P){var I=String(B);return!I||I.length>=F?B:""+Array(F+1-I.length).join(P)+B},w={s:y,z:function(B){var F=-B.utcOffset(),P=Math.abs(F),I=Math.floor(P/60),N=P%60;return(F<=0?"+":"-")+y(I,2,"0")+":"+y(N,2,"0")},m:function B(F,P){if(F.date()1)return B(_[0])}else{var L=F.name;S[L]=F,N=L}return!I&&N&&(b=N),N||!I&&b},O=function(B,F){if($(B))return B.clone();var P=typeof F=="object"?F:{};return P.date=B,P.args=arguments,new T(P)},A=w;A.l=D,A.i=$,A.w=function(B,F){return O(B,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var T=function(){function B(P){this.$L=D(P.locale,null,!0),this.parse(P)}var F=B.prototype;return F.parse=function(P){this.$d=function(I){var N=I.date,R=I.utc;if(N===null)return new Date(NaN);if(A.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var _=N.match(h);if(_){var L=_[2]-1||0,k=(_[7]||"0").substring(0,3);return R?new Date(Date.UTC(_[1],L,_[3]||1,_[4]||0,_[5]||0,_[6]||0,k)):new Date(_[1],L,_[3]||1,_[4]||0,_[5]||0,_[6]||0,k)}}return new Date(N)}(P),this.$x=P.x||{},this.init()},F.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},F.$utils=function(){return A},F.isValid=function(){return this.$d.toString()!==m},F.isSame=function(P,I){var N=O(P);return this.startOf(I)<=N&&N<=this.endOf(I)},F.isAfter=function(P,I){return O(P)25){var c=i(this).startOf(r).add(1,r).date(u),d=i(this).endOf(n);if(c.isBefore(d))return 1}var f=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),p=this.diff(f,n,!0);return p<0?i(this).startOf("week").week():Math.ceil(p)},l.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(ZZ);const JZ=o0;var a0={},QZ={get exports(){return a0},set exports(e){a0=e}};(function(e,t){(function(n,r){e.exports=r()})(tr,function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),a=this.week(),i=this.year();return a===1&&o===11?i+1:o===0&&a>=52?i-1:i}}})})(QZ);const eJ=a0;var i0={},tJ={get exports(){return i0},set exports(e){i0=e}};(function(e,t){(function(n,r){e.exports=r()})(tr,function(){var n="month",r="quarter";return function(o,a){var i=a.prototype;i.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=i.add;i.add=function(u,c){return u=Number(u),this.$utils().p(c)===r?this.add(3*u,n):l.bind(this)(u,c)};var s=i.startOf;i.startOf=function(u,c){var d=this.$utils(),f=!!d.u(c)||c;if(d.p(u)===r){var p=this.quarter()-1;return f?this.month(3*p).startOf(n).startOf("day"):this.month(3*p+2).endOf(n).endOf("day")}return s.bind(this)(u,c)}}})})(tJ);const nJ=i0;var l0={},rJ={get exports(){return l0},set exports(e){l0=e}};(function(e,t){(function(n,r){e.exports=r()})(tr,function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(i){var l=this,s=this.$locale();if(!this.isValid())return a.bind(this)(i);var u=this.$utils(),c=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return s.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return s.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),d==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),d==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return d}});return a.bind(this)(c)}}})})(rJ);const oJ=l0;var s0={},aJ={get exports(){return s0},set exports(e){s0=e}};(function(e,t){(function(n,r){e.exports=r()})(tr,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,l={},s=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(h){this[m]=+h}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var g=h.match(/([+-]|\d\d)/g),x=60*g[1]+(+g[2]||0);return x===0?0:g[0]==="+"?-x:x}(m)}],d=function(m){var h=l[m];return h&&(h.indexOf?h:h.s.concat(h.f))},f=function(m,h){var g,x=l.meridiem;if(x){for(var y=1;y<=24;y+=1)if(m.indexOf(x(y,0,h))>-1){g=y>12;break}}else g=m===(h?"pm":"PM");return g},p={A:[i,function(m){this.afternoon=f(m,!1)}],a:[i,function(m){this.afternoon=f(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[o,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[o,u("day")],Do:[i,function(m){var h=l.ordinal,g=m.match(/\d+/);if(this.day=g[0],h)for(var x=1;x<=31;x+=1)h(x).replace(/\[|\]/g,"")===m&&(this.day=x)}],M:[a,u("month")],MM:[o,u("month")],MMM:[i,function(m){var h=d("months"),g=(d("monthsShort")||h.map(function(x){return x.slice(0,3)})).indexOf(m)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(m){var h=d("months").indexOf(m)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(m){this.year=s(m)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function v(m){var h,g;h=m,g=l&&l.formats;for(var x=(m=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,A,T){var M=T&&T.toUpperCase();return A||g[T]||n[T]||g[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(B,F,P){return F||P.slice(1)})})).match(r),y=x.length,w=0;w-1)return new Date((N==="X"?1e3:1)*I);var _=v(N)(I),L=_.year,k=_.month,H=_.day,V=_.hours,U=_.minutes,q=_.seconds,K=_.milliseconds,X=_.zone,re=new Date,ee=H||(L||k?1:re.getDate()),G=L||re.getFullYear(),le=0;L&&!k||(le=k>0?k-1:re.getMonth());var ue=V||0,me=U||0,Se=q||0,Q=K||0;return X?new Date(Date.UTC(G,le,ee,ue,me,Se,Q+60*X.offset*1e3)):R?new Date(Date.UTC(G,le,ee,ue,me,Se,Q)):new Date(G,le,ee,ue,me,Se,Q)}catch{return new Date("")}}(b,D,S),this.init(),M&&M!==!0&&(this.$L=this.locale(M).$L),T&&b!=this.format(D)&&(this.$d=new Date("")),l={}}else if(D instanceof Array)for(var B=D.length,F=1;F<=B;F+=1){$[1]=D[F-1];var P=g.apply(this,$);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}F===B&&(this.$d=new Date(""))}else y.call(this,w)}}})})(aJ);const iJ=s0;En.extend(iJ);En.extend(oJ);En.extend(GZ);En.extend(YZ);En.extend(JZ);En.extend(eJ);En.extend(nJ);En.extend((e,t)=>{const n=t.prototype,r=n.format;n.format=function(a){const i=(a||"").replace("Wo","wo");return r.bind(this)(i)}});const lJ={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},bi=e=>lJ[e]||e.split("_")[0],L$=()=>{UR(!1,"Not match any format. Please help to fire a issue about this.")},sJ=/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|k{1,2}|S/g;function k$(e,t,n){const r=[...new Set(e.split(n))];let o=0;for(let a=0;at)return i;o+=n.length}}const H$=(e,t)=>{if(!e)return null;if(En.isDayjs(e))return e;const n=t.matchAll(sJ);let r=En(e,t);if(n===null)return r;for(const o of n){const a=o[0],i=o.index;if(a==="Q"){const l=e.slice(i-1,i),s=k$(e,i,l).match(/\d+/)[0];r=r.quarter(parseInt(s))}if(a.toLowerCase()==="wo"){const l=e.slice(i-1,i),s=k$(e,i,l).match(/\d+/)[0];r=r.week(parseInt(s))}a.toLowerCase()==="ww"&&(r=r.week(parseInt(e.slice(i,i+a.length)))),a.toLowerCase()==="w"&&(r=r.week(parseInt(e.slice(i,i+a.length+1))))}return r},uJ={getNow:()=>En(),getFixedDate:e=>En(e,["YYYY-M-DD","YYYY-MM-DD"]),getEndDate:e=>e.endOf("month"),getWeekDay:e=>{const t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>e.year(),getMonth:e=>e.month(),getDate:e=>e.date(),getHour:e=>e.hour(),getMinute:e=>e.minute(),getSecond:e=>e.second(),addYear:(e,t)=>e.add(t,"year"),addMonth:(e,t)=>e.add(t,"month"),addDate:(e,t)=>e.add(t,"day"),setYear:(e,t)=>e.year(t),setMonth:(e,t)=>e.month(t),setDate:(e,t)=>e.date(t),setHour:(e,t)=>e.hour(t),setMinute:(e,t)=>e.minute(t),setSecond:(e,t)=>e.second(t),isAfter:(e,t)=>e.isAfter(t),isValidate:e=>e.isValid(),locale:{getWeekFirstDay:e=>En().locale(bi(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>t.locale(bi(e)).weekday(0),getWeek:(e,t)=>t.locale(bi(e)).week(),getShortWeekDays:e=>En().locale(bi(e)).localeData().weekdaysMin(),getShortMonths:e=>En().locale(bi(e)).localeData().monthsShort(),format:(e,t,n)=>t.locale(bi(e)).format(n),parse:(e,t,n)=>{const r=bi(e);for(let o=0;oArray.isArray(e)?e.map(n=>H$(n,t)):H$(e,t),toString:(e,t)=>Array.isArray(e)?e.map(n=>En.isDayjs(n)?n.format(t):n):En.isDayjs(e)?e.format(t):e},E1=uJ;function yn(e){const t=HB();return E(E({},e),t)}const RP=Symbol("PanelContextProps"),D1=e=>{it(RP,e)},Uo=()=>lt(RP,{}),od={visibility:"hidden"};function fi(e,t){let{slots:n}=t;var r;const o=yn(e),{prefixCls:a,prevIcon:i="‹",nextIcon:l="›",superPrevIcon:s="«",superNextIcon:u="»",onSuperPrev:c,onSuperNext:d,onPrev:f,onNext:p}=o,{hideNextBtn:v,hidePrevBtn:m}=Uo();return C("div",{class:a},[c&&C("button",{type:"button",onClick:c,tabindex:-1,class:`${a}-super-prev-btn`,style:m.value?od:{}},[s]),f&&C("button",{type:"button",onClick:f,tabindex:-1,class:`${a}-prev-btn`,style:m.value?od:{}},[i]),C("div",{class:`${a}-view`},[(r=n.default)===null||r===void 0?void 0:r.call(n)]),p&&C("button",{type:"button",onClick:p,tabindex:-1,class:`${a}-next-btn`,style:v.value?od:{}},[l]),d&&C("button",{type:"button",onClick:d,tabindex:-1,class:`${a}-super-next-btn`,style:v.value?od:{}},[u])])}fi.displayName="Header";fi.inheritAttrs=!1;function A1(e){const t=yn(e),{prefixCls:n,generateConfig:r,viewDate:o,onPrevDecades:a,onNextDecades:i}=t,{hideHeader:l}=Uo();if(l)return null;const s=`${n}-header`,u=r.getYear(o),c=Math.floor(u/ua)*ua,d=c+ua-1;return C(fi,j(j({},t),{},{prefixCls:s,onSuperPrev:a,onSuperNext:i}),{default:()=>[c,sr("-"),d]})}A1.displayName="DecadeHeader";A1.inheritAttrs=!1;function zP(e,t,n,r,o){let a=e.setHour(t,n);return a=e.setMinute(a,r),a=e.setSecond(a,o),a}function Zd(e,t,n){if(!n)return t;let r=t;return r=e.setHour(r,e.getHour(n)),r=e.setMinute(r,e.getMinute(n)),r=e.setSecond(r,e.getSecond(n)),r}function cJ(e,t,n,r,o,a){const i=Math.floor(e/r)*r;if(i{M||r(T)},onMouseenter:()=>{!M&&g&&g(T)},onMouseleave:()=>{!M&&x&&x(T)}},[f?f(T):C("div",{class:`${w}-inner`},[d(T)])]))}b.push(C("tr",{key:S,class:s&&s(D)},[$]))}return C("div",{class:`${t}-body`},[C("table",{class:`${t}-content`},[h&&C("thead",null,[C("tr",null,[h])]),C("tbody",null,[b])])])}ol.displayName="PanelBody";ol.inheritAttrs=!1;const u0=3,j$=4;function O1(e){const t=yn(e),n=fo-1,{prefixCls:r,viewDate:o,generateConfig:a}=t,i=`${r}-cell`,l=a.getYear(o),s=Math.floor(l/fo)*fo,u=Math.floor(l/ua)*ua,c=u+ua-1,d=a.setYear(o,u-Math.ceil((u0*j$*fo-ua)/2)),f=p=>{const v=a.getYear(p),m=v+n;return{[`${i}-in-view`]:u<=v&&m<=c,[`${i}-selected`]:v===s}};return C(ol,j(j({},t),{},{rowNum:j$,colNum:u0,baseDate:d,getCellText:p=>{const v=a.getYear(p);return`${v}-${v+n}`},getCellClassName:f,getCellDate:(p,v)=>a.addYear(p,v*fo)}),null)}O1.displayName="DecadeBody";O1.inheritAttrs=!1;const ad=new Map;function fJ(e,t){let n;function r(){vm(e)?t():n=tt(()=>{r()})}return r(),()=>{tt.cancel(n)}}function c0(e,t,n){if(ad.get(e)&&tt.cancel(ad.get(e)),n<=0){ad.set(e,tt(()=>{e.scrollTop=t}));return}const o=(t-e.scrollTop)/n*10;ad.set(e,tt(()=>{e.scrollTop+=o,e.scrollTop!==t&&c0(e,t,n-10)}))}function Bs(e,t){let{onLeftRight:n,onCtrlLeftRight:r,onUpDown:o,onPageUpDown:a,onEnter:i}=t;const{which:l,ctrlKey:s,metaKey:u}=e;switch(l){case _e.LEFT:if(s||u){if(r)return r(-1),!0}else if(n)return n(-1),!0;break;case _e.RIGHT:if(s||u){if(r)return r(1),!0}else if(n)return n(1),!0;break;case _e.UP:if(o)return o(-1),!0;break;case _e.DOWN:if(o)return o(1),!0;break;case _e.PAGE_UP:if(a)return a(-1),!0;break;case _e.PAGE_DOWN:if(a)return a(1),!0;break;case _e.ENTER:if(i)return i(),!0;break}return!1}function LP(e,t,n,r){let o=e;if(!o)switch(t){case"time":o=r?"hh:mm:ss a":"HH:mm:ss";break;case"week":o="gggg-wo";break;case"month":o="YYYY-MM";break;case"quarter":o="YYYY-[Q]Q";break;case"year":o="YYYY";break;default:o=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return o}function kP(e,t,n){const r=e==="time"?8:10,o=typeof t=="function"?t(n.getNow()).length:t.length;return Math.max(r,o)+2}let Js=null;const id=new Set;function pJ(e){return!Js&&typeof window<"u"&&window.addEventListener&&(Js=t=>{[...id].forEach(n=>{n(t)})},window.addEventListener("mousedown",Js)),id.add(e),()=>{id.delete(e),id.size===0&&(window.removeEventListener("mousedown",Js),Js=null)}}function mJ(e){var t;const n=e.target;return e.composed&&n.shadowRoot&&((t=e.composedPath)===null||t===void 0?void 0:t.call(e)[0])||n}const vJ=e=>e==="month"||e==="date"?"year":e,hJ=e=>e==="date"?"month":e,gJ=e=>e==="month"||e==="date"?"quarter":e,yJ=e=>e==="date"?"week":e,bJ={year:vJ,month:hJ,quarter:gJ,week:yJ,time:null,date:null};function HP(e,t){return e.some(n=>n&&n.contains(t))}const fo=10,ua=fo*10;function T1(e){const t=yn(e),{prefixCls:n,onViewDateChange:r,generateConfig:o,viewDate:a,operationRef:i,onSelect:l,onPanelChange:s}=t,u=`${n}-decade-panel`;i.value={onKeydown:f=>Bs(f,{onLeftRight:p=>{l(o.addYear(a,p*fo),"key")},onCtrlLeftRight:p=>{l(o.addYear(a,p*ua),"key")},onUpDown:p=>{l(o.addYear(a,p*fo*u0),"key")},onEnter:()=>{s("year",a)}})};const c=f=>{const p=o.addYear(a,f*ua);r(p),s(null,p)},d=f=>{l(f,"mouse"),s("year",f)};return C("div",{class:u},[C(A1,j(j({},t),{},{prefixCls:n,onPrevDecades:()=>{c(-1)},onNextDecades:()=>{c(1)}}),null),C(O1,j(j({},t),{},{prefixCls:n,onSelect:d}),null)])}T1.displayName="DecadePanel";T1.inheritAttrs=!1;const Jd=7;function al(e,t){if(!e&&!t)return!0;if(!e||!t)return!1}function xJ(e,t,n){const r=al(t,n);if(typeof r=="boolean")return r;const o=Math.floor(e.getYear(t)/10),a=Math.floor(e.getYear(n)/10);return o===a}function km(e,t,n){const r=al(t,n);return typeof r=="boolean"?r:e.getYear(t)===e.getYear(n)}function d0(e,t){return Math.floor(e.getMonth(t)/3)+1}function jP(e,t,n){const r=al(t,n);return typeof r=="boolean"?r:km(e,t,n)&&d0(e,t)===d0(e,n)}function M1(e,t,n){const r=al(t,n);return typeof r=="boolean"?r:km(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function ca(e,t,n){const r=al(t,n);return typeof r=="boolean"?r:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function wJ(e,t,n){const r=al(t,n);return typeof r=="boolean"?r:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}function VP(e,t,n,r){const o=al(n,r);return typeof o=="boolean"?o:e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}function Gl(e,t,n){return ca(e,t,n)&&wJ(e,t,n)}function ld(e,t,n,r){return!t||!n||!r?!1:!ca(e,t,r)&&!ca(e,n,r)&&e.isAfter(r,t)&&e.isAfter(n,r)}function SJ(e,t,n){const r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),a=t.getWeekDay(o);let i=t.addDate(o,r-a);return t.getMonth(i)===t.getMonth(n)&&t.getDate(i)>1&&(i=t.addDate(i,-7)),i}function yu(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case"year":return n.addYear(e,r*10);case"quarter":case"month":return n.addYear(e,r);default:return n.addMonth(e,r)}}function jn(e,t){let{generateConfig:n,locale:r,format:o}=t;return typeof o=="function"?o(e):n.locale.format(r.locale,e,o)}function WP(e,t){let{generateConfig:n,locale:r,formatList:o}=t;return!e||typeof o[0]=="function"?null:n.locale.parse(r.locale,e,o)}function f0(e){let{cellDate:t,mode:n,disabledDate:r,generateConfig:o}=e;if(!r)return!1;const a=(i,l,s)=>{let u=l;for(;u<=s;){let c;switch(i){case"date":{if(c=o.setDate(t,u),!r(c))return!1;break}case"month":{if(c=o.setMonth(t,u),!f0({cellDate:c,mode:"month",generateConfig:o,disabledDate:r}))return!1;break}case"year":{if(c=o.setYear(t,u),!f0({cellDate:c,mode:"year",generateConfig:o,disabledDate:r}))return!1;break}}u+=1}return!0};switch(n){case"date":case"week":return r(t);case"month":{const l=o.getDate(o.getEndDate(t));return a("date",1,l)}case"quarter":{const i=Math.floor(o.getMonth(t)/3)*3,l=i+2;return a("month",i,l)}case"year":return a("month",0,11);case"decade":{const i=o.getYear(t),l=Math.floor(i/fo)*fo,s=l+fo-1;return a("year",l,s)}}}function N1(e){const t=yn(e),{hideHeader:n}=Uo();if(n.value)return null;const{prefixCls:r,generateConfig:o,locale:a,value:i,format:l}=t,s=`${r}-header`;return C(fi,{prefixCls:s},{default:()=>[i?jn(i,{locale:a,format:l,generateConfig:o}):" "]})}N1.displayName="TimeHeader";N1.inheritAttrs=!1;const sd=he({name:"TimeUnitColumn",props:["prefixCls","units","onSelect","value","active","hideDisabledOptions"],setup(e){const{open:t}=Uo(),n=be(null),r=be(new Map),o=be();return Ne(()=>e.value,()=>{const a=r.value.get(e.value);a&&t.value!==!1&&c0(n.value,a.offsetTop,120)}),st(()=>{var a;(a=o.value)===null||a===void 0||a.call(o)}),Ne(t,()=>{var a;(a=o.value)===null||a===void 0||a.call(o),ht(()=>{if(t.value){const i=r.value.get(e.value);i&&(o.value=fJ(i,()=>{c0(n.value,i.offsetTop,0)}))}})},{immediate:!0,flush:"post"}),()=>{const{prefixCls:a,units:i,onSelect:l,value:s,active:u,hideDisabledOptions:c}=e,d=`${a}-cell`;return C("ul",{class:ge(`${a}-column`,{[`${a}-column-active`]:u}),ref:n,style:{position:"relative"}},[i.map(f=>c&&f.disabled?null:C("li",{key:f.value,ref:p=>{r.value.set(f.value,p)},class:ge(d,{[`${d}-disabled`]:f.disabled,[`${d}-selected`]:s===f.value}),onClick:()=>{f.disabled||l(f.value)}},[C("div",{class:`${d}-inner`},[f.label])]))])}}});function UP(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);for(;r.length{(n.startsWith("data-")||n.startsWith("aria-")||n==="role"||n==="name")&&!n.startsWith("data-__")&&(t[n]=e[n])}),t}function Ft(e,t){return e?e[t]:null}function qr(e,t,n){const r=[Ft(e,0),Ft(e,1)];return r[n]=typeof t=="function"?t(r[n]):t,!r[0]&&!r[1]?null:r}function Ch(e,t,n,r){const o=[];for(let a=e;a<=t;a+=n)o.push({label:UP(a,2),value:a,disabled:(r||[]).includes(a)});return o}const $J=he({compatConfig:{MODE:3},name:"TimeBody",inheritAttrs:!1,props:["generateConfig","prefixCls","operationRef","activeColumnIndex","value","showHour","showMinute","showSecond","use12Hours","hourStep","minuteStep","secondStep","disabledHours","disabledMinutes","disabledSeconds","disabledTime","hideDisabledOptions","onSelect"],setup(e){const t=z(()=>e.value?e.generateConfig.getHour(e.value):-1),n=z(()=>e.use12Hours?t.value>=12:!1),r=z(()=>e.use12Hours?t.value%12:t.value),o=z(()=>e.value?e.generateConfig.getMinute(e.value):-1),a=z(()=>e.value?e.generateConfig.getSecond(e.value):-1),i=be(e.generateConfig.getNow()),l=be(),s=be(),u=be();Ly(()=>{i.value=e.generateConfig.getNow()}),Je(()=>{if(e.disabledTime){const h=e.disabledTime(i);[l.value,s.value,u.value]=[h.disabledHours,h.disabledMinutes,h.disabledSeconds]}else[l.value,s.value,u.value]=[e.disabledHours,e.disabledMinutes,e.disabledSeconds]});const c=(h,g,x,y)=>{let w=e.value||e.generateConfig.getNow();const b=Math.max(0,g),S=Math.max(0,x),$=Math.max(0,y);return w=zP(e.generateConfig,w,!e.use12Hours||!h?b:b+12,S,$),w},d=z(()=>{var h;return Ch(0,23,(h=e.hourStep)!==null&&h!==void 0?h:1,l.value&&l.value())}),f=z(()=>{if(!e.use12Hours)return[!1,!1];const h=[!0,!0];return d.value.forEach(g=>{let{disabled:x,value:y}=g;x||(y>=12?h[1]=!1:h[0]=!1)}),h}),p=z(()=>e.use12Hours?d.value.filter(n.value?h=>h.value>=12:h=>h.value<12).map(h=>{const g=h.value%12,x=g===0?"12":UP(g,2);return E(E({},h),{label:x,value:g})}):d.value),v=z(()=>{var h;return Ch(0,59,(h=e.minuteStep)!==null&&h!==void 0?h:1,s.value&&s.value(t.value))}),m=z(()=>{var h;return Ch(0,59,(h=e.secondStep)!==null&&h!==void 0?h:1,u.value&&u.value(t.value,o.value))});return()=>{const{prefixCls:h,operationRef:g,activeColumnIndex:x,showHour:y,showMinute:w,showSecond:b,use12Hours:S,hideDisabledOptions:$,onSelect:D}=e,O=[],A=`${h}-content`,T=`${h}-time-panel`;g.value={onUpDown:F=>{const P=O[x];if(P){const I=P.units.findIndex(R=>R.value===P.value),N=P.units.length;for(let R=1;R{D(c(n.value,F,o.value,a.value),"mouse")}),M(w,C(sd,{key:"minute"},null),o.value,v.value,F=>{D(c(n.value,r.value,F,a.value),"mouse")}),M(b,C(sd,{key:"second"},null),a.value,m.value,F=>{D(c(n.value,r.value,o.value,F),"mouse")});let B=-1;return typeof n.value=="boolean"&&(B=n.value?1:0),M(S===!0,C(sd,{key:"12hours"},null),B,[{label:"AM",value:0,disabled:f.value[0]},{label:"PM",value:1,disabled:f.value[1]}],F=>{D(c(!!F,r.value,o.value,a.value),"mouse")}),C("div",{class:A},[O.map(F=>{let{node:P}=F;return P})])}}}),EJ=$J,DJ=e=>e.filter(t=>t!==!1).length;function Hm(e){const t=yn(e),{generateConfig:n,format:r="HH:mm:ss",prefixCls:o,active:a,operationRef:i,showHour:l,showMinute:s,showSecond:u,use12Hours:c=!1,onSelect:d,value:f}=t,p=`${o}-time-panel`,v=be(),m=be(-1),h=DJ([l,s,u,c]);return i.value={onKeydown:g=>Bs(g,{onLeftRight:x=>{m.value=(m.value+x+h)%h},onUpDown:x=>{m.value===-1?m.value=0:v.value&&v.value.onUpDown(x)},onEnter:()=>{d(f||n.getNow(),"key"),m.value=-1}}),onBlur:()=>{m.value=-1}},C("div",{class:ge(p,{[`${p}-active`]:a})},[C(N1,j(j({},t),{},{format:r,prefixCls:o}),null),C(EJ,j(j({},t),{},{prefixCls:o,activeColumnIndex:m.value,operationRef:v}),null)])}Hm.displayName="TimePanel";Hm.inheritAttrs=!1;function jm(e){let{cellPrefixCls:t,generateConfig:n,rangedValue:r,hoverRangedValue:o,isInView:a,isSameCell:i,offsetCell:l,today:s,value:u}=e;function c(d){const f=l(d,-1),p=l(d,1),v=Ft(r,0),m=Ft(r,1),h=Ft(o,0),g=Ft(o,1),x=ld(n,h,g,d);function y(O){return i(v,O)}function w(O){return i(m,O)}const b=i(h,d),S=i(g,d),$=(x||S)&&(!a(f)||w(f)),D=(x||b)&&(!a(p)||y(p));return{[`${t}-in-view`]:a(d),[`${t}-in-range`]:ld(n,v,m,d),[`${t}-range-start`]:y(d),[`${t}-range-end`]:w(d),[`${t}-range-start-single`]:y(d)&&!m,[`${t}-range-end-single`]:w(d)&&!v,[`${t}-range-start-near-hover`]:y(d)&&(i(f,h)||ld(n,h,g,f)),[`${t}-range-end-near-hover`]:w(d)&&(i(p,g)||ld(n,h,g,p)),[`${t}-range-hover`]:x,[`${t}-range-hover-start`]:b,[`${t}-range-hover-end`]:S,[`${t}-range-hover-edge-start`]:$,[`${t}-range-hover-edge-end`]:D,[`${t}-range-hover-edge-start-near-range`]:$&&i(f,m),[`${t}-range-hover-edge-end-near-range`]:D&&i(p,v),[`${t}-today`]:i(s,d),[`${t}-selected`]:i(u,d)}}return c}const GP=Symbol("RangeContextProps"),AJ=e=>{it(GP,e)},yc=()=>lt(GP,{rangedValue:be(),hoverRangedValue:be(),inRange:be(),panelPosition:be()}),OJ=he({compatConfig:{MODE:3},name:"PanelContextProvider",inheritAttrs:!1,props:{value:{type:Object,default:()=>({})}},setup(e,t){let{slots:n}=t;const r={rangedValue:be(e.value.rangedValue),hoverRangedValue:be(e.value.hoverRangedValue),inRange:be(e.value.inRange),panelPosition:be(e.value.panelPosition)};return AJ(r),Ne(()=>e.value,()=>{Object.keys(e.value).forEach(o=>{r[o]&&(r[o].value=e.value[o])})}),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});function Vm(e){const t=yn(e),{prefixCls:n,generateConfig:r,prefixColumn:o,locale:a,rowCount:i,viewDate:l,value:s,dateRender:u}=t,{rangedValue:c,hoverRangedValue:d}=yc(),f=SJ(a.locale,r,l),p=`${n}-cell`,v=r.locale.getWeekFirstDay(a.locale),m=r.getNow(),h=[],g=a.shortWeekDays||(r.locale.getShortWeekDays?r.locale.getShortWeekDays(a.locale):[]);o&&h.push(C("th",{key:"empty","aria-label":"empty cell"},null));for(let w=0;wca(r,w,b),isInView:w=>M1(r,w,l),offsetCell:(w,b)=>r.addDate(w,b)}),y=u?w=>u({current:w,today:m}):void 0;return C(ol,j(j({},t),{},{rowNum:i,colNum:Jd,baseDate:f,getCellNode:y,getCellText:r.getDate,getCellClassName:x,getCellDate:r.addDate,titleCell:w=>jn(w,{locale:a,format:"YYYY-MM-DD",generateConfig:r}),headerCells:h}),null)}Vm.displayName="DateBody";Vm.inheritAttrs=!1;Vm.props=["prefixCls","generateConfig","value?","viewDate","locale","rowCount","onSelect","dateRender?","disabledDate?","prefixColumn?","rowClassName?"];function P1(e){const t=yn(e),{prefixCls:n,generateConfig:r,locale:o,viewDate:a,onNextMonth:i,onPrevMonth:l,onNextYear:s,onPrevYear:u,onYearClick:c,onMonthClick:d}=t,{hideHeader:f}=Uo();if(f.value)return null;const p=`${n}-header`,v=o.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(o.locale):[]),m=r.getMonth(a),h=C("button",{type:"button",key:"year",onClick:c,tabindex:-1,class:`${n}-year-btn`},[jn(a,{locale:o,format:o.yearFormat,generateConfig:r})]),g=C("button",{type:"button",key:"month",onClick:d,tabindex:-1,class:`${n}-month-btn`},[o.monthFormat?jn(a,{locale:o,format:o.monthFormat,generateConfig:r}):v[m]]),x=o.monthBeforeYear?[g,h]:[h,g];return C(fi,j(j({},t),{},{prefixCls:p,onSuperPrev:u,onPrev:l,onNext:i,onSuperNext:s}),{default:()=>[x]})}P1.displayName="DateHeader";P1.inheritAttrs=!1;const TJ=6;function bc(e){const t=yn(e),{prefixCls:n,panelName:r="date",keyboardConfig:o,active:a,operationRef:i,generateConfig:l,value:s,viewDate:u,onViewDateChange:c,onPanelChange:d,onSelect:f}=t,p=`${n}-${r}-panel`;i.value={onKeydown:h=>Bs(h,E({onLeftRight:g=>{f(l.addDate(s||u,g),"key")},onCtrlLeftRight:g=>{f(l.addYear(s||u,g),"key")},onUpDown:g=>{f(l.addDate(s||u,g*Jd),"key")},onPageUpDown:g=>{f(l.addMonth(s||u,g),"key")}},o))};const v=h=>{const g=l.addYear(u,h);c(g),d(null,g)},m=h=>{const g=l.addMonth(u,h);c(g),d(null,g)};return C("div",{class:ge(p,{[`${p}-active`]:a})},[C(P1,j(j({},t),{},{prefixCls:n,value:s,viewDate:u,onPrevYear:()=>{v(-1)},onNextYear:()=>{v(1)},onPrevMonth:()=>{m(-1)},onNextMonth:()=>{m(1)},onMonthClick:()=>{d("month",u)},onYearClick:()=>{d("year",u)}}),null),C(Vm,j(j({},t),{},{onSelect:h=>f(h,"mouse"),prefixCls:n,value:s,viewDate:u,rowCount:TJ}),null)])}bc.displayName="DatePanel";bc.inheritAttrs=!1;const V$=CJ("date","time");function I1(e){const t=yn(e),{prefixCls:n,operationRef:r,generateConfig:o,value:a,defaultValue:i,disabledTime:l,showTime:s,onSelect:u}=t,c=`${n}-datetime-panel`,d=be(null),f=be({}),p=be({}),v=typeof s=="object"?E({},s):{};function m(y){const w=V$.indexOf(d.value)+y;return V$[w]||null}const h=y=>{p.value.onBlur&&p.value.onBlur(y),d.value=null};r.value={onKeydown:y=>{if(y.which===_e.TAB){const w=m(y.shiftKey?-1:1);return d.value=w,w&&y.preventDefault(),!0}if(d.value){const w=d.value==="date"?f:p;return w.value&&w.value.onKeydown&&w.value.onKeydown(y),!0}return[_e.LEFT,_e.RIGHT,_e.UP,_e.DOWN].includes(y.which)?(d.value="date",!0):!1},onBlur:h,onClose:h};const g=(y,w)=>{let b=y;w==="date"&&!a&&v.defaultValue?(b=o.setHour(b,o.getHour(v.defaultValue)),b=o.setMinute(b,o.getMinute(v.defaultValue)),b=o.setSecond(b,o.getSecond(v.defaultValue))):w==="time"&&!a&&i&&(b=o.setYear(b,o.getYear(i)),b=o.setMonth(b,o.getMonth(i)),b=o.setDate(b,o.getDate(i))),u&&u(b,"mouse")},x=l?l(a||null):{};return C("div",{class:ge(c,{[`${c}-active`]:d.value})},[C(bc,j(j({},t),{},{operationRef:f,active:d.value==="date",onSelect:y=>{g(Zd(o,y,!a&&typeof s=="object"?s.defaultValue:null),"date")}}),null),C(Hm,j(j(j(j({},t),{},{format:void 0},v),x),{},{disabledTime:null,defaultValue:void 0,operationRef:p,active:d.value==="time",onSelect:y=>{g(y,"time")}}),null)])}I1.displayName="DatetimePanel";I1.inheritAttrs=!1;function _1(e){const t=yn(e),{prefixCls:n,generateConfig:r,locale:o,value:a}=t,i=`${n}-cell`,l=c=>C("td",{key:"week",class:ge(i,`${i}-week`)},[r.locale.getWeek(o.locale,c)]),s=`${n}-week-panel-row`,u=c=>ge(s,{[`${s}-selected`]:VP(r,o.locale,a,c)});return C(bc,j(j({},t),{},{panelName:"week",prefixColumn:l,rowClassName:u,keyboardConfig:{onLeftRight:null}}),null)}_1.displayName="WeekPanel";_1.inheritAttrs=!1;function B1(e){const t=yn(e),{prefixCls:n,generateConfig:r,locale:o,viewDate:a,onNextYear:i,onPrevYear:l,onYearClick:s}=t,{hideHeader:u}=Uo();if(u.value)return null;const c=`${n}-header`;return C(fi,j(j({},t),{},{prefixCls:c,onSuperPrev:l,onSuperNext:i}),{default:()=>[C("button",{type:"button",onClick:s,class:`${n}-year-btn`},[jn(a,{locale:o,format:o.yearFormat,generateConfig:r})])]})}B1.displayName="MonthHeader";B1.inheritAttrs=!1;const XP=3,MJ=4;function F1(e){const t=yn(e),{prefixCls:n,locale:r,value:o,viewDate:a,generateConfig:i,monthCellRender:l}=t,{rangedValue:s,hoverRangedValue:u}=yc(),c=`${n}-cell`,d=jm({cellPrefixCls:c,value:o,generateConfig:i,rangedValue:s.value,hoverRangedValue:u.value,isSameCell:(m,h)=>M1(i,m,h),isInView:()=>!0,offsetCell:(m,h)=>i.addMonth(m,h)}),f=r.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(r.locale):[]),p=i.setMonth(a,0),v=l?m=>l({current:m,locale:r}):void 0;return C(ol,j(j({},t),{},{rowNum:MJ,colNum:XP,baseDate:p,getCellNode:v,getCellText:m=>r.monthFormat?jn(m,{locale:r,format:r.monthFormat,generateConfig:i}):f[i.getMonth(m)],getCellClassName:d,getCellDate:i.addMonth,titleCell:m=>jn(m,{locale:r,format:"YYYY-MM",generateConfig:i})}),null)}F1.displayName="MonthBody";F1.inheritAttrs=!1;function R1(e){const t=yn(e),{prefixCls:n,operationRef:r,onViewDateChange:o,generateConfig:a,value:i,viewDate:l,onPanelChange:s,onSelect:u}=t,c=`${n}-month-panel`;r.value={onKeydown:f=>Bs(f,{onLeftRight:p=>{u(a.addMonth(i||l,p),"key")},onCtrlLeftRight:p=>{u(a.addYear(i||l,p),"key")},onUpDown:p=>{u(a.addMonth(i||l,p*XP),"key")},onEnter:()=>{s("date",i||l)}})};const d=f=>{const p=a.addYear(l,f);o(p),s(null,p)};return C("div",{class:c},[C(B1,j(j({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",l)}}),null),C(F1,j(j({},t),{},{prefixCls:n,onSelect:f=>{u(f,"mouse"),s("date",f)}}),null)])}R1.displayName="MonthPanel";R1.inheritAttrs=!1;function z1(e){const t=yn(e),{prefixCls:n,generateConfig:r,locale:o,viewDate:a,onNextYear:i,onPrevYear:l,onYearClick:s}=t,{hideHeader:u}=Uo();if(u.value)return null;const c=`${n}-header`;return C(fi,j(j({},t),{},{prefixCls:c,onSuperPrev:l,onSuperNext:i}),{default:()=>[C("button",{type:"button",onClick:s,class:`${n}-year-btn`},[jn(a,{locale:o,format:o.yearFormat,generateConfig:r})])]})}z1.displayName="QuarterHeader";z1.inheritAttrs=!1;const NJ=4,PJ=1;function L1(e){const t=yn(e),{prefixCls:n,locale:r,value:o,viewDate:a,generateConfig:i}=t,{rangedValue:l,hoverRangedValue:s}=yc(),u=`${n}-cell`,c=jm({cellPrefixCls:u,value:o,generateConfig:i,rangedValue:l.value,hoverRangedValue:s.value,isSameCell:(f,p)=>jP(i,f,p),isInView:()=>!0,offsetCell:(f,p)=>i.addMonth(f,p*3)}),d=i.setDate(i.setMonth(a,0),1);return C(ol,j(j({},t),{},{rowNum:PJ,colNum:NJ,baseDate:d,getCellText:f=>jn(f,{locale:r,format:r.quarterFormat||"[Q]Q",generateConfig:i}),getCellClassName:c,getCellDate:(f,p)=>i.addMonth(f,p*3),titleCell:f=>jn(f,{locale:r,format:"YYYY-[Q]Q",generateConfig:i})}),null)}L1.displayName="QuarterBody";L1.inheritAttrs=!1;function k1(e){const t=yn(e),{prefixCls:n,operationRef:r,onViewDateChange:o,generateConfig:a,value:i,viewDate:l,onPanelChange:s,onSelect:u}=t,c=`${n}-quarter-panel`;r.value={onKeydown:f=>Bs(f,{onLeftRight:p=>{u(a.addMonth(i||l,p*3),"key")},onCtrlLeftRight:p=>{u(a.addYear(i||l,p),"key")},onUpDown:p=>{u(a.addYear(i||l,p),"key")}})};const d=f=>{const p=a.addYear(l,f);o(p),s(null,p)};return C("div",{class:c},[C(z1,j(j({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",l)}}),null),C(L1,j(j({},t),{},{prefixCls:n,onSelect:f=>{u(f,"mouse")}}),null)])}k1.displayName="QuarterPanel";k1.inheritAttrs=!1;function H1(e){const t=yn(e),{prefixCls:n,generateConfig:r,viewDate:o,onPrevDecade:a,onNextDecade:i,onDecadeClick:l}=t,{hideHeader:s}=Uo();if(s.value)return null;const u=`${n}-header`,c=r.getYear(o),d=Math.floor(c/Ya)*Ya,f=d+Ya-1;return C(fi,j(j({},t),{},{prefixCls:u,onSuperPrev:a,onSuperNext:i}),{default:()=>[C("button",{type:"button",onClick:l,class:`${n}-decade-btn`},[d,sr("-"),f])]})}H1.displayName="YearHeader";H1.inheritAttrs=!1;const p0=3,W$=4;function j1(e){const t=yn(e),{prefixCls:n,value:r,viewDate:o,locale:a,generateConfig:i}=t,{rangedValue:l,hoverRangedValue:s}=yc(),u=`${n}-cell`,c=i.getYear(o),d=Math.floor(c/Ya)*Ya,f=d+Ya-1,p=i.setYear(o,d-Math.ceil((p0*W$-Ya)/2)),v=h=>{const g=i.getYear(h);return d<=g&&g<=f},m=jm({cellPrefixCls:u,value:r,generateConfig:i,rangedValue:l.value,hoverRangedValue:s.value,isSameCell:(h,g)=>km(i,h,g),isInView:v,offsetCell:(h,g)=>i.addYear(h,g)});return C(ol,j(j({},t),{},{rowNum:W$,colNum:p0,baseDate:p,getCellText:i.getYear,getCellClassName:m,getCellDate:i.addYear,titleCell:h=>jn(h,{locale:a,format:"YYYY",generateConfig:i})}),null)}j1.displayName="YearBody";j1.inheritAttrs=!1;const Ya=10;function V1(e){const t=yn(e),{prefixCls:n,operationRef:r,onViewDateChange:o,generateConfig:a,value:i,viewDate:l,sourceMode:s,onSelect:u,onPanelChange:c}=t,d=`${n}-year-panel`;r.value={onKeydown:p=>Bs(p,{onLeftRight:v=>{u(a.addYear(i||l,v),"key")},onCtrlLeftRight:v=>{u(a.addYear(i||l,v*Ya),"key")},onUpDown:v=>{u(a.addYear(i||l,v*p0),"key")},onEnter:()=>{c(s==="date"?"date":"month",i||l)}})};const f=p=>{const v=a.addYear(l,p*10);o(v),c(null,v)};return C("div",{class:d},[C(H1,j(j({},t),{},{prefixCls:n,onPrevDecade:()=>{f(-1)},onNextDecade:()=>{f(1)},onDecadeClick:()=>{c("decade",l)}}),null),C(j1,j(j({},t),{},{prefixCls:n,onSelect:p=>{c(s==="date"?"date":"month",p),u(p,"mouse")}}),null)])}V1.displayName="YearPanel";V1.inheritAttrs=!1;function YP(e,t,n){return n?C("div",{class:`${e}-footer-extra`},[n(t)]):null}function ZP(e){let{prefixCls:t,components:n={},needConfirmButton:r,onNow:o,onOk:a,okDisabled:i,showNow:l,locale:s}=e,u,c;if(r){const d=n.button||"button";o&&l!==!1&&(u=C("li",{class:`${t}-now`},[C("a",{class:`${t}-now-btn`,onClick:o},[s.now])])),c=r&&C("li",{class:`${t}-ok`},[C(d,{disabled:i,onClick:a},{default:()=>[s.ok]})])}return!u&&!c?null:C("ul",{class:`${t}-ranges`},[u,c])}function IJ(){return he({name:"PickerPanel",inheritAttrs:!1,props:{prefixCls:String,locale:Object,generateConfig:Object,value:Object,defaultValue:Object,pickerValue:Object,defaultPickerValue:Object,disabledDate:Function,mode:String,picker:{type:String,default:"date"},tabindex:{type:[Number,String],default:0},showNow:{type:Boolean,default:void 0},showTime:[Boolean,Object],showToday:Boolean,renderExtraFooter:Function,dateRender:Function,hideHeader:{type:Boolean,default:void 0},onSelect:Function,onChange:Function,onPanelChange:Function,onMousedown:Function,onPickerValueChange:Function,onOk:Function,components:Object,direction:String,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1}},setup(e,t){let{attrs:n}=t;const r=z(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),o=z(()=>24%e.hourStep===0),a=z(()=>60%e.minuteStep===0),i=z(()=>60%e.secondStep===0),l=Uo(),{operationRef:s,onSelect:u,hideRanges:c,defaultOpenValue:d}=l,{inRange:f,panelPosition:p,rangedValue:v,hoverRangedValue:m}=yc(),h=be({}),[g,x]=Zt(null,{value:Ye(e,"value"),defaultValue:e.defaultValue,postState:N=>!N&&(d!=null&&d.value)&&e.picker==="time"?d.value:N}),[y,w]=Zt(null,{value:Ye(e,"pickerValue"),defaultValue:e.defaultPickerValue||g.value,postState:N=>{const{generateConfig:R,showTime:_,defaultValue:L}=e,k=R.getNow();return N?!g.value&&e.showTime?typeof _=="object"?Zd(R,Array.isArray(N)?N[0]:N,_.defaultValue||k):L?Zd(R,Array.isArray(N)?N[0]:N,L):Zd(R,Array.isArray(N)?N[0]:N,k):N:k}}),b=N=>{w(N),e.onPickerValueChange&&e.onPickerValueChange(N)},S=N=>{const R=bJ[e.picker];return R?R(N):N},[$,D]=Zt(()=>e.picker==="time"?"time":S("date"),{value:Ye(e,"mode")});Ne(()=>e.picker,()=>{D(e.picker)});const O=be($.value),A=N=>{O.value=N},T=(N,R)=>{const{onPanelChange:_,generateConfig:L}=e,k=S(N||$.value);A($.value),D(k),_&&($.value!==k||Gl(L,y.value,y.value))&&_(R,k)},M=function(N,R){let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{picker:L,generateConfig:k,onSelect:H,onChange:V,disabledDate:U}=e;($.value===L||_)&&(x(N),H&&H(N),u&&u(N,R),V&&!Gl(k,N,g.value)&&!(U!=null&&U(N))&&V(N))},B=N=>h.value&&h.value.onKeydown?([_e.LEFT,_e.RIGHT,_e.UP,_e.DOWN,_e.PAGE_UP,_e.PAGE_DOWN,_e.ENTER].includes(N.which)&&N.preventDefault(),h.value.onKeydown(N)):!1,F=N=>{h.value&&h.value.onBlur&&h.value.onBlur(N)},P=()=>{const{generateConfig:N,hourStep:R,minuteStep:_,secondStep:L}=e,k=N.getNow(),H=cJ(N.getHour(k),N.getMinute(k),N.getSecond(k),o.value?R:1,a.value?_:1,i.value?L:1),V=zP(N,k,H[0],H[1],H[2]);M(V,"submit")},I=z(()=>{const{prefixCls:N,direction:R}=e;return ge(`${N}-panel`,{[`${N}-panel-has-range`]:v&&v.value&&v.value[0]&&v.value[1],[`${N}-panel-has-range-hover`]:m&&m.value&&m.value[0]&&m.value[1],[`${N}-panel-rtl`]:R==="rtl"})});return D1(E(E({},l),{mode:$,hideHeader:z(()=>{var N;return e.hideHeader!==void 0?e.hideHeader:(N=l.hideHeader)===null||N===void 0?void 0:N.value}),hidePrevBtn:z(()=>f.value&&p.value==="right"),hideNextBtn:z(()=>f.value&&p.value==="left")})),Ne(()=>e.value,()=>{e.value&&w(e.value)}),()=>{const{prefixCls:N="ant-picker",locale:R,generateConfig:_,disabledDate:L,picker:k="date",tabindex:H=0,showNow:V,showTime:U,showToday:q,renderExtraFooter:K,onMousedown:X,onOk:re,components:ee}=e;s&&p.value!=="right"&&(s.value={onKeydown:B,onClose:()=>{h.value&&h.value.onClose&&h.value.onClose()}});let G;const le=E(E(E({},n),e),{operationRef:h,prefixCls:N,viewDate:y.value,value:g.value,onViewDateChange:b,sourceMode:O.value,onPanelChange:T,disabledDate:L});switch(delete le.onChange,delete le.onSelect,$.value){case"decade":G=C(T1,j(j({},le),{},{onSelect:(Q,te)=>{b(Q),M(Q,te)}}),null);break;case"year":G=C(V1,j(j({},le),{},{onSelect:(Q,te)=>{b(Q),M(Q,te)}}),null);break;case"month":G=C(R1,j(j({},le),{},{onSelect:(Q,te)=>{b(Q),M(Q,te)}}),null);break;case"quarter":G=C(k1,j(j({},le),{},{onSelect:(Q,te)=>{b(Q),M(Q,te)}}),null);break;case"week":G=C(_1,j(j({},le),{},{onSelect:(Q,te)=>{b(Q),M(Q,te)}}),null);break;case"time":delete le.showTime,G=C(Hm,j(j(j({},le),typeof U=="object"?U:null),{},{onSelect:(Q,te)=>{b(Q),M(Q,te)}}),null);break;default:U?G=C(I1,j(j({},le),{},{onSelect:(Q,te)=>{b(Q),M(Q,te)}}),null):G=C(bc,j(j({},le),{},{onSelect:(Q,te)=>{b(Q),M(Q,te)}}),null)}let ue,me;c!=null&&c.value||(ue=YP(N,$.value,K),me=ZP({prefixCls:N,components:ee,needConfirmButton:r.value,okDisabled:!g.value||L&&L(g.value),locale:R,showNow:V,onNow:r.value&&P,onOk:()=>{g.value&&(M(g.value,"submit",!0),re&&re(g.value))}}));let Se;if(q&&$.value==="date"&&k==="date"&&!U){const Q=_.getNow(),te=`${N}-today-btn`,de=L&&L(Q);Se=C("a",{class:ge(te,de&&`${te}-disabled`),"aria-disabled":de,onClick:()=>{de||M(Q,"mouse",!0)}},[R.today])}return C("div",{tabindex:H,class:ge(I.value,n.class),style:n.style,onKeydown:B,onBlur:F,onMousedown:X},[G,ue||me||Se?C("div",{class:`${N}-footer`},[ue,me,Se]):null])}}})}const _J=IJ(),W1=e=>C(_J,e),BJ={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function JP(e,t){let{slots:n}=t;const{prefixCls:r,popupStyle:o,visible:a,dropdownClassName:i,dropdownAlign:l,transitionName:s,getPopupContainer:u,range:c,popupPlacement:d,direction:f}=yn(e),p=`${r}-dropdown`;return C(rl,{showAction:[],hideAction:[],popupPlacement:(()=>d!==void 0?d:f==="rtl"?"bottomRight":"bottomLeft")(),builtinPlacements:BJ,prefixCls:p,popupTransitionName:s,popupAlign:l,popupVisible:a,popupClassName:ge(i,{[`${p}-range`]:c,[`${p}-rtl`]:f==="rtl"}),popupStyle:o,getPopupContainer:u},{default:n.default,popup:n.popupElement})}const QP=he({name:"PresetPanel",props:{prefixCls:String,presets:{type:Array,default:()=>[]},onClick:Function,onHover:Function},setup(e){return()=>e.presets.length?C("div",{class:`${e.prefixCls}-presets`},[C("ul",null,[e.presets.map((t,n)=>{let{label:r,value:o}=t;return C("li",{key:n,onClick:()=>{e.onClick(o)},onMouseenter:()=>{var a;(a=e.onHover)===null||a===void 0||a.call(e,o)},onMouseleave:()=>{var a;(a=e.onHover)===null||a===void 0||a.call(e,null)}},[r])})])]):null}});function m0(e){let{open:t,value:n,isClickOutside:r,triggerOpen:o,forwardKeydown:a,onKeydown:i,blurToCancel:l,onSubmit:s,onCancel:u,onFocus:c,onBlur:d}=e;const f=pe(!1),p=pe(!1),v=pe(!1),m=pe(!1),h=pe(!1),g=z(()=>({onMousedown:()=>{f.value=!0,o(!0)},onKeydown:y=>{if(i(y,()=>{h.value=!0}),!h.value){switch(y.which){case _e.ENTER:{t.value?s()!==!1&&(f.value=!0):o(!0),y.preventDefault();return}case _e.TAB:{f.value&&t.value&&!y.shiftKey?(f.value=!1,y.preventDefault()):!f.value&&t.value&&!a(y)&&y.shiftKey&&(f.value=!0,y.preventDefault());return}case _e.ESC:{f.value=!0,u();return}}!t.value&&![_e.SHIFT].includes(y.which)?o(!0):f.value||a(y)}},onFocus:y=>{f.value=!0,p.value=!0,c&&c(y)},onBlur:y=>{if(v.value||!r(document.activeElement)){v.value=!1;return}l.value?setTimeout(()=>{let{activeElement:w}=document;for(;w&&w.shadowRoot;)w=w.shadowRoot.activeElement;r(w)&&u()},0):t.value&&(o(!1),m.value&&s()),p.value=!1,d&&d(y)}}));Ne(t,()=>{m.value=!1}),Ne(n,()=>{m.value=!0});const x=pe();return Qe(()=>{x.value=pJ(y=>{const w=mJ(y);if(t.value){const b=r(w);b?(!p.value||b)&&o(!1):(v.value=!0,tt(()=>{v.value=!1}))}})}),st(()=>{x.value&&x.value()}),[g,{focused:p,typing:f}]}function v0(e){let{valueTexts:t,onTextChange:n}=e;const r=be("");function o(i){r.value=i,n(i)}function a(){r.value=t.value[0]}return Ne(()=>[...t.value],function(i){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];i.join("||")!==l.join("||")&&t.value.every(s=>s!==r.value)&&a()},{immediate:!0}),[r,o,a]}function pp(e,t){let{formatList:n,generateConfig:r,locale:o}=t;const a=Nb(()=>{if(!e.value)return[[""],""];let s="";const u=[];for(let c=0;cu[0]!==s[0]||!Nl(u[1],s[1])),i=z(()=>a.value[0]),l=z(()=>a.value[1]);return[i,l]}function h0(e,t){let{formatList:n,generateConfig:r,locale:o}=t;const a=be(null);let i;function l(d){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(tt.cancel(i),f){a.value=d;return}i=tt(()=>{a.value=d})}const[,s]=pp(a,{formatList:n,generateConfig:r,locale:o});function u(d){l(d)}function c(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;l(null,d)}return Ne(e,()=>{c(!0)}),st(()=>{tt.cancel(i)}),[s,u,c]}function eI(e,t){return z(()=>e!=null&&e.value?e.value:t!=null&&t.value?(um(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.keys(t.value).map(r=>{const o=t.value[r],a=typeof o=="function"?o():o;return{label:r,value:a}})):[])}function FJ(){return he({name:"Picker",inheritAttrs:!1,props:["prefixCls","id","tabindex","dropdownClassName","dropdownAlign","popupStyle","transitionName","generateConfig","locale","inputReadOnly","allowClear","autofocus","showTime","showNow","showHour","showMinute","showSecond","picker","format","use12Hours","value","defaultValue","open","defaultOpen","defaultOpenValue","suffixIcon","presets","clearIcon","disabled","disabledDate","placeholder","getPopupContainer","panelRender","inputRender","onChange","onOpenChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onContextmenu","onClick","onKeydown","onSelect","direction","autocomplete","showToday","renderExtraFooter","dateRender","minuteStep","hourStep","secondStep","hideDisabledOptions"],setup(e,t){let{attrs:n,expose:r}=t;const o=be(null),a=z(()=>e.presets),i=eI(a),l=z(()=>{var L;return(L=e.picker)!==null&&L!==void 0?L:"date"}),s=z(()=>l.value==="date"&&!!e.showTime||l.value==="time"),u=z(()=>KP(LP(e.format,l.value,e.showTime,e.use12Hours))),c=be(null),d=be(null),f=be(null),[p,v]=Zt(null,{value:Ye(e,"value"),defaultValue:e.defaultValue}),m=be(p.value),h=L=>{m.value=L},g=be(null),[x,y]=Zt(!1,{value:Ye(e,"open"),defaultValue:e.defaultOpen,postState:L=>e.disabled?!1:L,onChange:L=>{e.onOpenChange&&e.onOpenChange(L),!L&&g.value&&g.value.onClose&&g.value.onClose()}}),[w,b]=pp(m,{formatList:u,generateConfig:Ye(e,"generateConfig"),locale:Ye(e,"locale")}),[S,$,D]=v0({valueTexts:w,onTextChange:L=>{const k=WP(L,{locale:e.locale,formatList:u.value,generateConfig:e.generateConfig});k&&(!e.disabledDate||!e.disabledDate(k))&&h(k)}}),O=L=>{const{onChange:k,generateConfig:H,locale:V}=e;h(L),v(L),k&&!Gl(H,p.value,L)&&k(L,L?jn(L,{generateConfig:H,locale:V,format:u.value[0]}):"")},A=L=>{e.disabled&&L||y(L)},T=L=>x.value&&g.value&&g.value.onKeydown?g.value.onKeydown(L):!1,M=function(){e.onMouseup&&e.onMouseup(...arguments),o.value&&(o.value.focus(),A(!0))},[B,{focused:F,typing:P}]=m0({blurToCancel:s,open:x,value:S,triggerOpen:A,forwardKeydown:T,isClickOutside:L=>!HP([c.value,d.value,f.value],L),onSubmit:()=>!m.value||e.disabledDate&&e.disabledDate(m.value)?!1:(O(m.value),A(!1),D(),!0),onCancel:()=>{A(!1),h(p.value),D()},onKeydown:(L,k)=>{var H;(H=e.onKeydown)===null||H===void 0||H.call(e,L,k)},onFocus:L=>{var k;(k=e.onFocus)===null||k===void 0||k.call(e,L)},onBlur:L=>{var k;(k=e.onBlur)===null||k===void 0||k.call(e,L)}});Ne([x,w],()=>{x.value||(h(p.value),!w.value.length||w.value[0]===""?$(""):b.value!==S.value&&D())}),Ne(l,()=>{x.value||D()}),Ne(p,()=>{h(p.value)});const[I,N,R]=h0(S,{formatList:u,generateConfig:Ye(e,"generateConfig"),locale:Ye(e,"locale")}),_=(L,k)=>{(k==="submit"||k!=="key"&&!s.value)&&(O(L),A(!1))};return D1({operationRef:g,hideHeader:z(()=>l.value==="time"),onSelect:_,open:x,defaultOpenValue:Ye(e,"defaultOpenValue"),onDateMouseenter:N,onDateMouseleave:R}),r({focus:()=>{o.value&&o.value.focus()},blur:()=>{o.value&&o.value.blur()}}),()=>{const{prefixCls:L="rc-picker",id:k,tabindex:H,dropdownClassName:V,dropdownAlign:U,popupStyle:q,transitionName:K,generateConfig:X,locale:re,inputReadOnly:ee,allowClear:G,autofocus:le,picker:ue="date",defaultOpenValue:me,suffixIcon:Se,clearIcon:Q,disabled:te,placeholder:de,getPopupContainer:Y,panelRender:ae,onMousedown:ce,onMouseenter:Ce,onMouseleave:ye,onContextmenu:J,onClick:ne,onSelect:oe,direction:ie,autocomplete:ve="off"}=e,we=E(E(E({},e),n),{class:ge({[`${L}-panel-focused`]:!P.value}),style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null});let $e=C("div",{class:`${L}-panel-layout`},[C(QP,{prefixCls:L,presets:i.value,onClick:Be=>{O(Be),A(!1)}},null),C(W1,j(j({},we),{},{generateConfig:X,value:m.value,locale:re,tabindex:-1,onSelect:Be=>{oe==null||oe(Be),h(Be)},direction:ie,onPanelChange:(Be,je)=>{const{onPanelChange:W}=e;R(!0),W==null||W(Be,je)}}),null)]);ae&&($e=ae($e));const Ae=C("div",{class:`${L}-panel-container`,ref:c,onMousedown:Be=>{Be.preventDefault()}},[$e]);let xe;Se&&(xe=C("span",{class:`${L}-suffix`},[Se]));let Ee;G&&p.value&&!te&&(Ee=C("span",{onMousedown:Be=>{Be.preventDefault(),Be.stopPropagation()},onMouseup:Be=>{Be.preventDefault(),Be.stopPropagation(),O(null),A(!1)},class:`${L}-clear`,role:"button"},[Q||C("span",{class:`${L}-clear-btn`},null)]));const Te=E(E(E(E({id:k,tabindex:H,disabled:te,readonly:ee||typeof u.value[0]=="function"||!P.value,value:I.value||S.value,onInput:Be=>{$(Be.target.value)},autofocus:le,placeholder:de,ref:o,title:S.value},B.value),{size:kP(ue,u.value[0],X)}),qP(e)),{autocomplete:ve}),Me=e.inputRender?e.inputRender(Te):C("input",Te,null),Re=ie==="rtl"?"bottomRight":"bottomLeft";return C("div",{ref:f,class:ge(L,n.class,{[`${L}-disabled`]:te,[`${L}-focused`]:F.value,[`${L}-rtl`]:ie==="rtl"}),style:n.style,onMousedown:ce,onMouseup:M,onMouseenter:Ce,onMouseleave:ye,onContextmenu:J,onClick:ne},[C("div",{class:ge(`${L}-input`,{[`${L}-input-placeholder`]:!!I.value}),ref:d},[Me,xe,Ee]),C(JP,{visible:x.value,popupStyle:q,prefixCls:L,dropdownClassName:V,dropdownAlign:U,getPopupContainer:Y,transitionName:K,popupPlacement:Re,direction:ie},{default:()=>[C("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>Ae})])}}})}const RJ=FJ();function zJ(e,t){let{picker:n,locale:r,selectedValue:o,disabledDate:a,disabled:i,generateConfig:l}=e;const s=z(()=>Ft(o.value,0)),u=z(()=>Ft(o.value,1));function c(m){return l.value.locale.getWeekFirstDate(r.value.locale,m)}function d(m){const h=l.value.getYear(m),g=l.value.getMonth(m);return h*100+g}function f(m){const h=l.value.getYear(m),g=d0(l.value,m);return h*10+g}return[m=>{var h;if(a&&(!((h=a==null?void 0:a.value)===null||h===void 0)&&h.call(a,m)))return!0;if(i[1]&&u)return!ca(l.value,m,u.value)&&l.value.isAfter(m,u.value);if(t.value[1]&&u.value)switch(n.value){case"quarter":return f(m)>f(u.value);case"month":return d(m)>d(u.value);case"week":return c(m)>c(u.value);default:return!ca(l.value,m,u.value)&&l.value.isAfter(m,u.value)}return!1},m=>{var h;if(!((h=a.value)===null||h===void 0)&&h.call(a,m))return!0;if(i[0]&&s)return!ca(l.value,m,u.value)&&l.value.isAfter(s.value,m);if(t.value[0]&&s.value)switch(n.value){case"quarter":return f(m)xJ(r,i,l));case"quarter":case"month":return a((i,l)=>km(r,i,l));default:return a((i,l)=>M1(r,i,l))}}function kJ(e,t,n,r){const o=Ft(e,0),a=Ft(e,1);if(t===0)return o;if(o&&a)switch(LJ(o,a,n,r)){case"same":return o;case"closing":return o;default:return yu(a,n,r,-1)}return o}function HJ(e){let{values:t,picker:n,defaultDates:r,generateConfig:o}=e;const a=be([Ft(r,0),Ft(r,1)]),i=be(null),l=z(()=>Ft(t.value,0)),s=z(()=>Ft(t.value,1)),u=p=>a.value[p]?a.value[p]:Ft(i.value,p)||kJ(t.value,p,n.value,o.value)||l.value||s.value||o.value.getNow(),c=be(null),d=be(null);Je(()=>{c.value=u(0),d.value=u(1)});function f(p,v){if(p){let m=qr(i.value,p,v);a.value=qr(a.value,null,v)||[null,null];const h=(v+1)%2;Ft(t.value,h)||(m=qr(m,p,h)),i.value=m}else(l.value||s.value)&&(i.value=null)}return[c,d,f]}function tI(e){return CT()?($T(e),!0):!1}function jJ(e){return typeof e=="function"?e():xn(e)}function U1(e){var t;const n=jJ(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function VJ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Kn()?Qe(e):t?e():ht(e)}function nI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=pe(),r=()=>n.value=Boolean(e());return r(),VJ(r,t),n}var $h;const rI=typeof window<"u";rI&&(!(($h=window==null?void 0:window.navigator)===null||$h===void 0)&&$h.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const oI=rI?window:void 0;var WJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o2&&arguments[2]!==void 0?arguments[2]:{};const{window:r=oI}=n,o=WJ(n,["window"]);let a;const i=nI(()=>r&&"ResizeObserver"in r),l=()=>{a&&(a.disconnect(),a=void 0)},s=Ne(()=>U1(e),c=>{l(),i.value&&r&&c&&(a=new ResizeObserver(t),a.observe(c,o))},{immediate:!0,flush:"post"}),u=()=>{l(),s()};return tI(u),{isSupported:i,stop:u}}function Qs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{width:0,height:0},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{box:r="content-box"}=n,o=pe(t.width),a=pe(t.height);return UJ(e,i=>{let[l]=i;const s=r==="border-box"?l.borderBoxSize:r==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;s?(o.value=s.reduce((u,c)=>{let{inlineSize:d}=c;return u+d},0),a.value=s.reduce((u,c)=>{let{blockSize:d}=c;return u+d},0)):(o.value=l.contentRect.width,a.value=l.contentRect.height)},n),Ne(()=>U1(e),i=>{o.value=i?t.width:0,a.value=i?t.height:0}),{width:o,height:a}}function U$(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function K$(e,t,n,r){return!!(e||r&&r[t]||n[(t+1)%2])}function KJ(){return he({name:"RangerPicker",inheritAttrs:!1,props:["prefixCls","id","popupStyle","dropdownClassName","transitionName","dropdownAlign","getPopupContainer","generateConfig","locale","placeholder","autofocus","disabled","format","picker","showTime","showNow","showHour","showMinute","showSecond","use12Hours","separator","value","defaultValue","defaultPickerValue","open","defaultOpen","disabledDate","disabledTime","dateRender","panelRender","ranges","allowEmpty","allowClear","suffixIcon","clearIcon","pickerRef","inputReadOnly","mode","renderExtraFooter","onChange","onOpenChange","onPanelChange","onCalendarChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onClick","onOk","onKeydown","components","order","direction","activePickerIndex","autocomplete","minuteStep","hourStep","secondStep","hideDisabledOptions","disabledMinutes","presets"],setup(e,t){let{attrs:n,expose:r}=t;const o=z(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),a=z(()=>e.presets),i=z(()=>e.ranges),l=eI(a,i),s=be({}),u=be(null),c=be(null),d=be(null),f=be(null),p=be(null),v=be(null),m=be(null),h=be(null),g=z(()=>KP(LP(e.format,e.picker,e.showTime,e.use12Hours))),[x,y]=Zt(0,{value:Ye(e,"activePickerIndex")}),w=be(null),b=z(()=>{const{disabled:Le}=e;return Array.isArray(Le)?Le:[Le||!1,Le||!1]}),[S,$]=Zt(null,{value:Ye(e,"value"),defaultValue:e.defaultValue,postState:Le=>e.picker==="time"&&!e.order?Le:U$(Le,e.generateConfig)}),[D,O,A]=HJ({values:S,picker:Ye(e,"picker"),defaultDates:e.defaultPickerValue,generateConfig:Ye(e,"generateConfig")}),[T,M]=Zt(S.value,{postState:Le=>{let et=Le;if(b.value[0]&&b.value[1])return et;for(let Ze=0;Ze<2;Ze+=1)b.value[Ze]&&!Ft(et,Ze)&&!Ft(e.allowEmpty,Ze)&&(et=qr(et,e.generateConfig.getNow(),Ze));return et}}),[B,F]=Zt([e.picker,e.picker],{value:Ye(e,"mode")});Ne(()=>e.picker,()=>{F([e.picker,e.picker])});const P=(Le,et)=>{var Ze;F(Le),(Ze=e.onPanelChange)===null||Ze===void 0||Ze.call(e,et,Le)},[I,N]=zJ({picker:Ye(e,"picker"),selectedValue:T,locale:Ye(e,"locale"),disabled:b,disabledDate:Ye(e,"disabledDate"),generateConfig:Ye(e,"generateConfig")},s),[R,_]=Zt(!1,{value:Ye(e,"open"),defaultValue:e.defaultOpen,postState:Le=>b.value[x.value]?!1:Le,onChange:Le=>{var et;(et=e.onOpenChange)===null||et===void 0||et.call(e,Le),!Le&&w.value&&w.value.onClose&&w.value.onClose()}}),L=z(()=>R.value&&x.value===0),k=z(()=>R.value&&x.value===1),H=be(0),V=be(0),U=be(0),{width:q}=Qs(u);Ne([R,q],()=>{!R.value&&u.value&&(U.value=q.value)});const{width:K}=Qs(c),{width:X}=Qs(h),{width:re}=Qs(d),{width:ee}=Qs(p);Ne([x,R,K,X,re,ee,()=>e.direction],()=>{V.value=0,R.value&&x.value?d.value&&p.value&&c.value&&(V.value=re.value+ee.value,K.value&&X.value&&V.value>K.value-X.value-(e.direction==="rtl"||h.value.offsetLeft>V.value?0:h.value.offsetLeft)&&(H.value=V.value)):x.value===0&&(H.value=0)},{immediate:!0});const G=be();function le(Le,et){if(Le)clearTimeout(G.value),s.value[et]=!0,y(et),_(Le),R.value||A(null,et);else if(x.value===et){_(Le);const Ze=s.value;G.value=setTimeout(()=>{Ze===s.value&&(s.value={})})}}function ue(Le){le(!0,Le),setTimeout(()=>{const et=[v,m][Le];et.value&&et.value.focus()},0)}function me(Le,et){let Ze=Le,Bt=Ft(Ze,0),pn=Ft(Ze,1);const{generateConfig:ln,locale:rr,picker:On,order:ao,onCalendarChange:mr,allowEmpty:Dr,onChange:Gt,showTime:or}=e;Bt&&pn&&ln.isAfter(Bt,pn)&&(On==="week"&&!VP(ln,rr.locale,Bt,pn)||On==="quarter"&&!jP(ln,Bt,pn)||On!=="week"&&On!=="quarter"&&On!=="time"&&!(or?Gl(ln,Bt,pn):ca(ln,Bt,pn))?(et===0?(Ze=[Bt,null],pn=null):(Bt=null,Ze=[null,pn]),s.value={[et]:!0}):(On!=="time"||ao!==!1)&&(Ze=U$(Ze,ln))),M(Ze);const Cn=Ze&&Ze[0]?jn(Ze[0],{generateConfig:ln,locale:rr,format:g.value[0]}):"",To=Ze&&Ze[1]?jn(Ze[1],{generateConfig:ln,locale:rr,format:g.value[0]}):"";mr&&mr(Ze,[Cn,To],{range:et===0?"start":"end"});const Pa=K$(Bt,0,b.value,Dr),Vs=K$(pn,1,b.value,Dr);(Ze===null||Pa&&Vs)&&($(Ze),Gt&&(!Gl(ln,Ft(S.value,0),Bt)||!Gl(ln,Ft(S.value,1),pn))&&Gt(Ze,[Cn,To]));let io=null;et===0&&!b.value[1]?io=1:et===1&&!b.value[0]&&(io=0),io!==null&&io!==x.value&&(!s.value[io]||!Ft(Ze,io))&&Ft(Ze,et)?ue(io):le(!1,et)}const Se=Le=>R&&w.value&&w.value.onKeydown?w.value.onKeydown(Le):!1,Q={formatList:g,generateConfig:Ye(e,"generateConfig"),locale:Ye(e,"locale")},[te,de]=pp(z(()=>Ft(T.value,0)),Q),[Y,ae]=pp(z(()=>Ft(T.value,1)),Q),ce=(Le,et)=>{const Ze=WP(Le,{locale:e.locale,formatList:g.value,generateConfig:e.generateConfig});Ze&&!(et===0?I:N)(Ze)&&(M(qr(T.value,Ze,et)),A(Ze,et))},[Ce,ye,J]=v0({valueTexts:te,onTextChange:Le=>ce(Le,0)}),[ne,oe,ie]=v0({valueTexts:Y,onTextChange:Le=>ce(Le,1)}),[ve,we]=It(null),[$e,Ae]=It(null),[xe,Ee,Te]=h0(Ce,Q),[Me,Re,Be]=h0(ne,Q),je=Le=>{Ae(qr(T.value,Le,x.value)),x.value===0?Ee(Le):Re(Le)},W=()=>{Ae(qr(T.value,null,x.value)),x.value===0?Te():Be()},fe=(Le,et)=>({forwardKeydown:Se,onBlur:Ze=>{var Bt;(Bt=e.onBlur)===null||Bt===void 0||Bt.call(e,Ze)},isClickOutside:Ze=>!HP([c.value,d.value,f.value,u.value],Ze),onFocus:Ze=>{var Bt;y(Le),(Bt=e.onFocus)===null||Bt===void 0||Bt.call(e,Ze)},triggerOpen:Ze=>{le(Ze,Le)},onSubmit:()=>{if(!T.value||e.disabledDate&&e.disabledDate(T.value[Le]))return!1;me(T.value,Le),et()},onCancel:()=>{le(!1,Le),M(S.value),et()}}),[De,{focused:Ie,typing:Ve}]=m0(E(E({},fe(0,J)),{blurToCancel:o,open:L,value:Ce,onKeydown:(Le,et)=>{var Ze;(Ze=e.onKeydown)===null||Ze===void 0||Ze.call(e,Le,et)}})),[Ge,{focused:Ct,typing:Nt}]=m0(E(E({},fe(1,ie)),{blurToCancel:o,open:k,value:ne,onKeydown:(Le,et)=>{var Ze;(Ze=e.onKeydown)===null||Ze===void 0||Ze.call(e,Le,et)}})),Wt=Le=>{var et;(et=e.onClick)===null||et===void 0||et.call(e,Le),!R.value&&!v.value.contains(Le.target)&&!m.value.contains(Le.target)&&(b.value[0]?b.value[1]||ue(1):ue(0))},fn=Le=>{var et;(et=e.onMousedown)===null||et===void 0||et.call(e,Le),R.value&&(Ie.value||Ct.value)&&!v.value.contains(Le.target)&&!m.value.contains(Le.target)&&Le.preventDefault()},Ln=z(()=>{var Le;return!((Le=S.value)===null||Le===void 0)&&Le[0]?jn(S.value[0],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""}),Er=z(()=>{var Le;return!((Le=S.value)===null||Le===void 0)&&Le[1]?jn(S.value[1],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""});Ne([R,te,Y],()=>{R.value||(M(S.value),!te.value.length||te.value[0]===""?ye(""):de.value!==Ce.value&&J(),!Y.value.length||Y.value[0]===""?oe(""):ae.value!==ne.value&&ie())}),Ne([Ln,Er],()=>{M(S.value)}),r({focus:()=>{v.value&&v.value.focus()},blur:()=>{v.value&&v.value.blur(),m.value&&m.value.blur()}});const Oo=z(()=>R.value&&$e.value&&$e.value[0]&&$e.value[1]&&e.generateConfig.isAfter($e.value[1],$e.value[0])?$e.value:null);function Gn(){let Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{generateConfig:Ze,showTime:Bt,dateRender:pn,direction:ln,disabledTime:rr,prefixCls:On,locale:ao}=e;let mr=Bt;if(Bt&&typeof Bt=="object"&&Bt.defaultValue){const Gt=Bt.defaultValue;mr=E(E({},Bt),{defaultValue:Ft(Gt,x.value)||void 0})}let Dr=null;return pn&&(Dr=Gt=>{let{current:or,today:Cn}=Gt;return pn({current:or,today:Cn,info:{range:x.value?"end":"start"}})}),C(OJ,{value:{inRange:!0,panelPosition:Le,rangedValue:ve.value||T.value,hoverRangedValue:Oo.value}},{default:()=>[C(W1,j(j(j({},e),et),{},{dateRender:Dr,showTime:mr,mode:B.value[x.value],generateConfig:Ze,style:void 0,direction:ln,disabledDate:x.value===0?I:N,disabledTime:Gt=>rr?rr(Gt,x.value===0?"start":"end"):!1,class:ge({[`${On}-panel-focused`]:x.value===0?!Ve.value:!Nt.value}),value:Ft(T.value,x.value),locale:ao,tabIndex:-1,onPanelChange:(Gt,or)=>{x.value===0&&Te(!0),x.value===1&&Be(!0),P(qr(B.value,or,x.value),qr(T.value,Gt,x.value));let Cn=Gt;Le==="right"&&B.value[x.value]===or&&(Cn=yu(Cn,or,Ze,-1)),A(Cn,x.value)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:x.value===0?Ft(T.value,1):Ft(T.value,0)}),null)]})}const Go=(Le,et)=>{const Ze=qr(T.value,Le,x.value);et==="submit"||et!=="key"&&!o.value?(me(Ze,x.value),x.value===0?Te():Be()):M(Ze)};return D1({operationRef:w,hideHeader:z(()=>e.picker==="time"),onDateMouseenter:je,onDateMouseleave:W,hideRanges:z(()=>!0),onSelect:Go,open:R}),()=>{const{prefixCls:Le="rc-picker",id:et,popupStyle:Ze,dropdownClassName:Bt,transitionName:pn,dropdownAlign:ln,getPopupContainer:rr,generateConfig:On,locale:ao,placeholder:mr,autofocus:Dr,picker:Gt="date",showTime:or,separator:Cn="~",disabledDate:To,panelRender:Pa,allowClear:Vs,suffixIcon:Ws,clearIcon:io,inputReadOnly:Us,renderExtraFooter:kv,onMouseenter:Hv,onMouseleave:jv,onMouseup:hi,onOk:Xn,components:Tn,direction:Ia,autocomplete:Rc="off"}=e,ml=Ia==="rtl"?{right:`${V.value}px`}:{left:`${V.value}px`};function vl(){let vr;const _a=YP(Le,B.value[x.value],kv),nS=ZP({prefixCls:Le,components:Tn,needConfirmButton:o.value,okDisabled:!Ft(T.value,x.value)||To&&To(T.value[x.value]),locale:ao,onOk:()=>{Ft(T.value,x.value)&&(me(T.value,x.value),Xn&&Xn(T.value))}});if(Gt!=="time"&&!or){const Ba=x.value===0?D.value:O.value,zB=yu(Ba,Gt,On),Kv=B.value[x.value]===Gt,rS=Gn(Kv?"left":!1,{pickerValue:Ba,onPickerValueChange:qv=>{A(qv,x.value)}}),oS=Gn("right",{pickerValue:zB,onPickerValueChange:qv=>{A(yu(qv,Gt,On,-1),x.value)}});Ia==="rtl"?vr=C(dt,null,[oS,Kv&&rS]):vr=C(dt,null,[rS,Kv&&oS])}else vr=Gn();let Uv=C("div",{class:`${Le}-panel-layout`},[C(QP,{prefixCls:Le,presets:l.value,onClick:Ba=>{me(Ba,null),le(!1,x.value)},onHover:Ba=>{we(Ba)}},null),C("div",null,[C("div",{class:`${Le}-panels`},[vr]),(_a||nS)&&C("div",{class:`${Le}-footer`},[_a,nS])])]);return Pa&&(Uv=Pa(Uv)),C("div",{class:`${Le}-panel-container`,style:{marginLeft:`${H.value}px`},ref:c,onMousedown:Ba=>{Ba.preventDefault()}},[Uv])}const zc=C("div",{class:ge(`${Le}-range-wrapper`,`${Le}-${Gt}-range-wrapper`),style:{minWidth:`${U.value}px`}},[C("div",{ref:h,class:`${Le}-range-arrow`,style:ml},null),vl()]);let Ks;Ws&&(Ks=C("span",{class:`${Le}-suffix`},[Ws]));let Xo;Vs&&(Ft(S.value,0)&&!b.value[0]||Ft(S.value,1)&&!b.value[1])&&(Xo=C("span",{onMousedown:vr=>{vr.preventDefault(),vr.stopPropagation()},onMouseup:vr=>{vr.preventDefault(),vr.stopPropagation();let _a=S.value;b.value[0]||(_a=qr(_a,null,0)),b.value[1]||(_a=qr(_a,null,1)),me(_a,null),le(!1,x.value)},class:`${Le}-clear`},[io||C("span",{class:`${Le}-clear-btn`},null)]));const tS={size:kP(Gt,g.value[0],On)};let Vv=0,Wv=0;d.value&&f.value&&p.value&&(x.value===0?Wv=d.value.offsetWidth:(Vv=V.value,Wv=f.value.offsetWidth));const RB=Ia==="rtl"?{right:`${Vv}px`}:{left:`${Vv}px`};return C("div",j({ref:u,class:ge(Le,`${Le}-range`,n.class,{[`${Le}-disabled`]:b.value[0]&&b.value[1],[`${Le}-focused`]:x.value===0?Ie.value:Ct.value,[`${Le}-rtl`]:Ia==="rtl"}),style:n.style,onClick:Wt,onMouseenter:Hv,onMouseleave:jv,onMousedown:fn,onMouseup:hi},qP(e)),[C("div",{class:ge(`${Le}-input`,{[`${Le}-input-active`]:x.value===0,[`${Le}-input-placeholder`]:!!xe.value}),ref:d},[C("input",j(j(j({id:et,disabled:b.value[0],readonly:Us||typeof g.value[0]=="function"||!Ve.value,value:xe.value||Ce.value,onInput:vr=>{ye(vr.target.value)},autofocus:Dr,placeholder:Ft(mr,0)||"",ref:v},De.value),tS),{},{autocomplete:Rc}),null)]),C("div",{class:`${Le}-range-separator`,ref:p},[Cn]),C("div",{class:ge(`${Le}-input`,{[`${Le}-input-active`]:x.value===1,[`${Le}-input-placeholder`]:!!Me.value}),ref:f},[C("input",j(j(j({disabled:b.value[1],readonly:Us||typeof g.value[0]=="function"||!Nt.value,value:Me.value||ne.value,onInput:vr=>{oe(vr.target.value)},placeholder:Ft(mr,1)||"",ref:m},Ge.value),tS),{},{autocomplete:Rc}),null)]),C("div",{class:`${Le}-active-bar`,style:E(E({},RB),{width:`${Wv}px`,position:"absolute"})},null),Ks,Xo,C(JP,{visible:R.value,popupStyle:Ze,prefixCls:Le,dropdownClassName:Bt,dropdownAlign:ln,getPopupContainer:rr,transitionName:pn,range:!0,direction:Ia},{default:()=>[C("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>zc})])}}})}const qJ=KJ(),GJ=qJ;var XJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe.checked,()=>{a.value=e.checked}),o({focus(){var c;(c=i.value)===null||c===void 0||c.focus()},blur(){var c;(c=i.value)===null||c===void 0||c.blur()}});const l=be(),s=c=>{if(e.disabled)return;e.checked===void 0&&(a.value=c.target.checked),c.shiftKey=l.value;const d={target:E(E({},e),{checked:c.target.checked}),stopPropagation(){c.stopPropagation()},preventDefault(){c.preventDefault()},nativeEvent:c};e.checked!==void 0&&(i.value.checked=!!e.checked),r("change",d),l.value=!1},u=c=>{r("click",c),l.value=c.shiftKey};return()=>{const{prefixCls:c,name:d,id:f,type:p,disabled:v,readonly:m,tabindex:h,autofocus:g,value:x,required:y}=e,w=XJ(e,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:b,onFocus:S,onBlur:$,onKeydown:D,onKeypress:O,onKeyup:A}=n,T=E(E({},w),n),M=Object.keys(T).reduce((P,I)=>((I.startsWith("data-")||I.startsWith("aria-")||I==="role")&&(P[I]=T[I]),P),{}),B=ge(c,b,{[`${c}-checked`]:a.value,[`${c}-disabled`]:v}),F=E(E({name:d,id:f,type:p,readonly:m,disabled:v,tabindex:h,class:`${c}-input`,checked:!!a.value,autofocus:g,value:x},M),{onChange:s,onClick:u,onFocus:S,onBlur:$,onKeydown:D,onKeypress:O,onKeyup:A,required:y});return C("span",{class:B},[C("input",j({ref:i},F),null),C("span",{class:`${c}-inner`},null)])}}}),iI=Symbol("radioGroupContextKey"),ZJ=e=>{it(iI,e)},JJ=()=>lt(iI,void 0),lI=Symbol("radioOptionTypeContextKey"),QJ=e=>{it(lI,e)},eQ=()=>lt(lI,void 0),tQ=new ft("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),nQ=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:E(E({},rt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},rQ=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOut:l,motionEaseInOutCirc:s,radioButtonBg:u,colorBorder:c,lineWidth:d,radioDotSize:f,colorBgContainerDisabled:p,colorTextDisabled:v,paddingXS:m,radioDotDisabledColor:h,lineType:g,radioDotDisabledSize:x,wireframe:y,colorWhite:w}=e,b=`${t}-inner`;return{[`${t}-wrapper`]:E(E({},rt(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${g} ${r}`,borderRadius:"50%",visibility:"hidden",animationName:tQ,animationDuration:a,animationTimingFunction:l,animationFillMode:"both",content:'""'},[t]:E(E({},rt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &, &:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:E({},ya(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:o,height:o,marginBlockStart:o/-2,marginInlineStart:o/-2,backgroundColor:y?r:w,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:u,borderColor:c,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:r,backgroundColor:y?u:r,"&::after":{transform:`scale(${f/o})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:p,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${x/o})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},oQ=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:l,motionDurationMid:s,radioButtonPaddingHorizontal:u,fontSize:c,radioButtonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:v,paddingXS:m,borderRadius:h,borderRadiusSM:g,borderRadiusLG:x,radioCheckedColor:y,radioButtonCheckedBg:w,radioButtonHoverColor:b,radioButtonActiveColor:S,radioSolidCheckedColor:$,colorTextDisabled:D,colorBgContainerDisabled:O,radioDisabledButtonCheckedColor:A,radioDisabledButtonCheckedBg:T}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:c,lineHeight:`${n-o*2}px`,background:d,border:`${o}px ${a} ${i}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`border-color ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${a} ${i}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:`${p-o*2}px`,"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},[`${r}-group-small &`]:{height:v,paddingInline:m-o,paddingBlock:0,lineHeight:`${v-o*2}px`,"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:y},"&:has(:focus-visible)":E({},ya(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:y,background:w,borderColor:y,"&::before":{backgroundColor:y},"&:first-child":{borderColor:y},"&:hover":{color:b,borderColor:b,"&::before":{backgroundColor:b}},"&:active":{color:S,borderColor:S,"&::before":{backgroundColor:S}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:$,background:y,borderColor:y,"&:hover":{color:$,background:b,borderColor:b},"&:active":{color:$,background:S,borderColor:S}},"&-disabled":{color:D,backgroundColor:O,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:D,backgroundColor:O,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:A,backgroundColor:T,borderColor:i,boxShadow:"none"}}}},sI=nt("Radio",e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:r,colorTextDisabled:o,colorBgContainer:a,fontSizeLG:i,controlOutline:l,colorPrimaryHover:s,colorPrimaryActive:u,colorText:c,colorPrimary:d,marginXS:f,controlOutlineWidth:p,colorTextLightSolid:v,wireframe:m}=e,h=`0 0 0 ${p}px ${l}`,g=h,x=i,y=4,w=x-y*2,b=m?w:x-(y+n)*2,S=d,$=c,D=s,O=u,A=t-n,B=qe(e,{radioFocusShadow:h,radioButtonFocusShadow:g,radioSize:x,radioDotSize:b,radioDotDisabledSize:w,radioCheckedColor:S,radioDotDisabledColor:o,radioSolidCheckedColor:v,radioButtonBg:a,radioButtonCheckedBg:a,radioButtonColor:$,radioButtonHoverColor:D,radioButtonActiveColor:O,radioButtonPaddingHorizontal:A,radioDisabledButtonCheckedBg:r,radioDisabledButtonCheckedColor:o,radioWrapperMarginRight:f});return[nQ(B),rQ(B),oQ(B)]});var aQ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o({prefixCls:String,checked:Pe(),disabled:Pe(),isGroup:Pe(),value:Z.any,name:String,id:String,autofocus:Pe(),onChange:Oe(),onFocus:Oe(),onBlur:Oe(),onClick:Oe(),"onUpdate:checked":Oe(),"onUpdate:value":Oe()}),ar=he({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:uI(),setup(e,t){let{emit:n,expose:r,slots:o,attrs:a}=t;const i=Sn(),l=Bn.useInject(),s=eQ(),u=JJ(),c=Fr(),d=z(()=>{var D;return(D=m.value)!==null&&D!==void 0?D:c.value}),f=be(),{prefixCls:p,direction:v,disabled:m}=He("radio",e),h=z(()=>(u==null?void 0:u.optionType.value)==="button"||s==="button"?`${p.value}-button`:p.value),g=Fr(),[x,y]=sI(p);r({focus:()=>{f.value.focus()},blur:()=>{f.value.blur()}});const S=D=>{const O=D.target.checked;n("update:checked",O),n("update:value",O),n("change",D),i.onFieldChange()},$=D=>{n("change",D),u&&u.onChange&&u.onChange(D)};return()=>{var D;const O=u,{prefixCls:A,id:T=i.id.value}=e,M=aQ(e,["prefixCls","id"]),B=E(E({prefixCls:h.value,id:T},pt(M,["onUpdate:checked","onUpdate:value"])),{disabled:(D=m.value)!==null&&D!==void 0?D:g.value});O?(B.name=O.name.value,B.onChange=$,B.checked=e.value===O.value.value,B.disabled=d.value||O.disabled.value):B.onChange=S;const F=ge({[`${h.value}-wrapper`]:!0,[`${h.value}-wrapper-checked`]:B.checked,[`${h.value}-wrapper-disabled`]:B.disabled,[`${h.value}-wrapper-rtl`]:v.value==="rtl",[`${h.value}-wrapper-in-form-item`]:l.isFormItemInput},a.class,y.value);return x(C("label",j(j({},a),{},{class:F}),[C(aI,j(j({},B),{},{type:"radio",ref:f}),null),o.default&&C("span",null,[o.default()])]))}}}),iQ=()=>({prefixCls:String,value:Z.any,size:Ue(),options:bt(),disabled:Pe(),name:String,buttonStyle:Ue("outline"),id:String,optionType:Ue("default"),onChange:Oe(),"onUpdate:value":Oe()}),K1=he({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:iQ(),setup(e,t){let{slots:n,emit:r,attrs:o}=t;const a=Sn(),{prefixCls:i,direction:l,size:s}=He("radio",e),[u,c]=sI(i),d=be(e.value),f=be(!1);return Ne(()=>e.value,v=>{d.value=v,f.value=!1}),ZJ({onChange:v=>{const m=d.value,{value:h}=v.target;"value"in e||(d.value=h),!f.value&&h!==m&&(f.value=!0,r("update:value",h),r("change",v),a.onFieldChange()),ht(()=>{f.value=!1})},value:d,disabled:z(()=>e.disabled),name:z(()=>e.name),optionType:z(()=>e.optionType)}),()=>{var v;const{options:m,buttonStyle:h,id:g=a.id.value}=e,x=`${i.value}-group`,y=ge(x,`${x}-${h}`,{[`${x}-${s.value}`]:s.value,[`${x}-rtl`]:l.value==="rtl"},o.class,c.value);let w=null;return m&&m.length>0?w=m.map(b=>{if(typeof b=="string"||typeof b=="number")return C(ar,{key:b,prefixCls:i.value,disabled:e.disabled,value:b,checked:d.value===b},{default:()=>[b]});const{value:S,disabled:$,label:D}=b;return C(ar,{key:`radio-group-value-options-${S}`,prefixCls:i.value,disabled:$||e.disabled,value:S,checked:d.value===S},{default:()=>[D]})}):w=(v=n.default)===null||v===void 0?void 0:v.call(n),u(C("div",j(j({},o),{},{class:y,id:g}),[w]))}}}),mp=he({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:uI(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o}=He("radio",e);return QJ("button"),()=>{var a;return C(ar,j(j(j({},r),e),{},{prefixCls:o.value}),{default:()=>[(a=n.default)===null||a===void 0?void 0:a.call(n)]})}}});ar.Group=K1;ar.Button=mp;ar.install=function(e){return e.component(ar.name,ar),e.component(ar.Group.name,ar.Group),e.component(ar.Button.name,ar.Button),e};const lQ=10,sQ=20;function cI(e){const{fullscreen:t,validRange:n,generateConfig:r,locale:o,prefixCls:a,value:i,onChange:l,divRef:s}=e,u=r.getYear(i||r.getNow());let c=u-lQ,d=c+sQ;n&&(c=r.getYear(n[0]),d=r.getYear(n[1])+1);const f=o&&o.year==="年"?"年":"",p=[];for(let v=c;v{let m=r.setYear(i,v);if(n){const[h,g]=n,x=r.getYear(m),y=r.getMonth(m);x===r.getYear(g)&&y>r.getMonth(g)&&(m=r.setMonth(m,r.getMonth(g))),x===r.getYear(h)&&ys.value},null)}cI.inheritAttrs=!1;function dI(e){const{prefixCls:t,fullscreen:n,validRange:r,value:o,generateConfig:a,locale:i,onChange:l,divRef:s}=e,u=a.getMonth(o||a.getNow());let c=0,d=11;if(r){const[v,m]=r,h=a.getYear(o);a.getYear(m)===h&&(d=a.getMonth(m)),a.getYear(v)===h&&(c=a.getMonth(v))}const f=i.shortMonths||a.locale.getShortMonths(i.locale),p=[];for(let v=c;v<=d;v+=1)p.push({label:f[v],value:v});return C(xa,{size:n?void 0:"small",class:`${t}-month-select`,value:u,options:p,onChange:v=>{l(a.setMonth(o,v))},getPopupContainer:()=>s.value},null)}dI.inheritAttrs=!1;function fI(e){const{prefixCls:t,locale:n,mode:r,fullscreen:o,onModeChange:a}=e;return C(K1,{onChange:i=>{let{target:{value:l}}=i;a(l)},value:r,size:o?void 0:"small",class:`${t}-mode-switch`},{default:()=>[C(mp,{value:"month"},{default:()=>[n.month]}),C(mp,{value:"year"},{default:()=>[n.year]})]})}fI.inheritAttrs=!1;const uQ=he({name:"CalendarHeader",inheritAttrs:!1,props:["mode","prefixCls","value","validRange","generateConfig","locale","mode","fullscreen"],setup(e,t){let{attrs:n}=t;const r=be(null),o=Bn.useInject();return Bn.useProvide(o,{isFormItemInput:!1}),()=>{const a=E(E({},e),n),{prefixCls:i,fullscreen:l,mode:s,onChange:u,onModeChange:c}=a,d=E(E({},a),{fullscreen:l,divRef:r});return C("div",{class:`${i}-header`,ref:r},[C(cI,j(j({},d),{},{onChange:f=>{u(f,"year")}}),null),s==="month"&&C(dI,j(j({},d),{},{onChange:f=>{u(f,"month")}}),null),C(fI,j(j({},d),{},{onModeChange:c}),null)])}}}),q1=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Fs=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),ri=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),G1=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":E({},Fs(qe(e,{inputBorderHoverColor:e.colorBorder})))}),pI=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:a}=e;return{padding:`${t}px ${a}px`,fontSize:n,lineHeight:r,borderRadius:o}},X1=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),xc=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:a,colorWarningOutline:i,colorErrorBorderHover:l,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:l},"&:focus, &-focused":E({},ri(qe(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:a}))),[`${n}-prefix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:s},"&:focus, &-focused":E({},ri(qe(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:i}))),[`${n}-prefix`]:{color:o}}}},il=e=>E(E({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}`},q1(e.colorTextPlaceholder)),{"&:hover":E({},Fs(e)),"&:focus, &-focused":E({},ri(e)),"&-disabled, &[disabled]":E({},G1(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":E({},pI(e)),"&-sm":E({},X1(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),mI=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`]:E({},pI(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:E({},X1(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${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`]:E(E({display:"block"},yo()),{[`${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}-select-auto-complete ${t}, & > ${n}-cascader-picker ${t}, & > ${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}-select:first-child > ${n}-select-selector, & > ${n}-select-auto-complete:first-child ${t}, & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${n}-select:last-child > ${n}-select-selector, & > ${n}-cascader-picker:last-child ${t}, & > ${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}}}})}},cQ=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=16,a=(n-r*2-o)/2;return{[t]:E(E(E(E({},rt(e)),il(e)),xc(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}}})}},dQ=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}}}},fQ=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:l}=e;return{[`${t}-affix-wrapper`]:E(E(E(E(E({},il(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:E(E({},Fs(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:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),dQ(e)),{[`${l}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),xc(e,`${t}-affix-wrapper`))}},pQ=e=>{const{componentCls:t,colorError:n,colorSuccess:r,borderRadiusLG:o,borderRadiusSM:a}=e;return{[`${t}-group`]:E(E(E({},rt(e)),mI(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon:last-child`]:{color:r,borderColor:r}}}})}},mQ=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-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,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-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}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-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, > ${t}, ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function ll(e){return qe(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 vQ=e=>{const{componentCls:t,inputPaddingHorizontal:n,paddingLG:r}=e,o=`${t}-textarea`;return{[o]:{position:"relative",[`${o}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`&-status-error, &-status-warning, &-status-success, &-status-validating`]:{[`&${o}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:r}}},"&-show-count":{[`> ${t}`]:{height:"100%"},"&::after":{color:e.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}},Y1=nt("Input",e=>{const t=ll(e);return[cQ(t),vQ(t),fQ(t),pQ(t),mQ(t),Ps(t)]}),Eh=(e,t,n,r)=>{const{lineHeight:o}=e,a=Math.floor(n*o)+2,i=Math.max((t-a)/2,0),l=Math.max(t-a-i,0);return{padding:`${i}px ${r}px ${l}px`}},hQ=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerPanelCellHeight:o,motionDurationSlow:a,borderRadiusSM:i,motionDurationMid:l,controlItemBgHover:s,lineWidth:u,lineType:c,colorPrimary:d,controlItemBgActive:f,colorTextLightSolid:p,controlHeightSM:v,pickerDateHoverRangeBorderColor:m,pickerCellBorderGap:h,pickerBasicCellHoverWithRangeColor:g,pickerPanelCellWidth:x,colorTextDisabled:y,colorBgContainerDisabled:w}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:o,transform:"translateY(-50%)",transition:`all ${a}`,content:'""'},[r]:{position:"relative",zIndex:2,display:"inline-block",minWidth:o,height:o,lineHeight:`${o}px`,borderRadius:i,transition:`background ${l}, border ${l}`},[`&:hover:not(${n}-in-view), &:hover:not(${n}-selected):not(${n}-range-start):not(${n}-range-end):not(${n}-range-hover-start):not(${n}-range-hover-end)`]:{[r]:{background:s}},[`&-in-view${n}-today ${r}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${u}px ${c} ${d}`,borderRadius:i,content:'""'}},[`&-in-view${n}-in-range`]:{position:"relative","&::before":{background:f}},[`&-in-view${n}-selected ${r}, &-in-view${n}-range-start ${r}, &-in-view${n}-range-end ${r}`]:{color:p,background:d},[`&-in-view${n}-range-start:not(${n}-range-start-single), &-in-view${n}-range-end:not(${n}-range-end-single)`]:{"&::before":{background:f}},[`&-in-view${n}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${n}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${n}-range-hover-start:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end), &-in-view${n}-range-hover-end:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end), &-in-view${n}-range-hover-start${n}-range-start-single, &-in-view${n}-range-hover-start${n}-range-start${n}-range-end${n}-range-end-near-hover, &-in-view${n}-range-hover-end${n}-range-start${n}-range-end${n}-range-start-near-hover, &-in-view${n}-range-hover-end${n}-range-end-single, &-in-view${n}-range-hover:not(${n}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:v,borderTop:`${u}px dashed ${m}`,borderBottom:`${u}px dashed ${m}`,transform:"translateY(-50%)",transition:`all ${a}`,content:'""'}},[`&-range-hover-start::after, &-range-hover-end::after, &-range-hover::after`]:{insetInlineEnd:0,insetInlineStart:h},[`&-in-view${n}-in-range${n}-range-hover::before, &-in-view${n}-range-start${n}-range-hover::before, &-in-view${n}-range-end${n}-range-hover::before, &-in-view${n}-range-start:not(${n}-range-start-single)${n}-range-hover-start::before, &-in-view${n}-range-end:not(${n}-range-end-single)${n}-range-hover-end::before, ${t}-panel > :not(${t}-date-panel) &-in-view${n}-in-range${n}-range-hover-start::before, ${t}-panel > :not(${t}-date-panel) &-in-view${n}-in-range${n}-range-hover-end::before`]:{background:g},[`&-in-view${n}-range-start:not(${n}-range-start-single):not(${n}-range-end) ${r}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${n}-range-end:not(${n}-range-end-single):not(${n}-range-start) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},[`&-range-hover${n}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${n}-range-hover:first-child::after, tr > &-in-view${n}-range-hover-end:first-child::after, &-in-view${n}-start${n}-range-hover-edge-start${n}-range-hover-edge-start-near-range::after, &-in-view${n}-range-hover-edge-start:not(${n}-range-hover-edge-start-near-range)::after, &-in-view${n}-range-hover-start::after`]:{insetInlineStart:(x-o)/2,borderInlineStart:`${u}px dashed ${m}`,borderStartStartRadius:u,borderEndStartRadius:u},[`tr > &-in-view${n}-range-hover:last-child::after, tr > &-in-view${n}-range-hover-start:last-child::after, &-in-view${n}-end${n}-range-hover-edge-end${n}-range-hover-edge-end-near-range::after, &-in-view${n}-range-hover-edge-end:not(${n}-range-hover-edge-end-near-range)::after, &-in-view${n}-range-hover-end::after`]:{insetInlineEnd:(x-o)/2,borderInlineEnd:`${u}px dashed ${m}`,borderStartEndRadius:u,borderEndEndRadius:u},"&-disabled":{color:y,pointerEvents:"none",[r]:{background:"transparent"},"&::before":{background:w}},[`&-disabled${n}-today ${r}::before`]:{borderColor:y}}},vI=e=>{const{componentCls:t,pickerCellInnerCls:n,pickerYearMonthCellWidth:r,pickerControlIconSize:o,pickerPanelCellWidth:a,paddingSM:i,paddingXS:l,paddingXXS:s,colorBgContainer:u,lineWidth:c,lineType:d,borderRadiusLG:f,colorPrimary:p,colorTextHeading:v,colorSplit:m,pickerControlIconBorderWidth:h,colorIcon:g,pickerTextHeight:x,motionDurationMid:y,colorIconHover:w,fontWeightStrong:b,pickerPanelCellHeight:S,pickerCellPaddingVertical:$,colorTextDisabled:D,colorText:O,fontSize:A,pickerBasicCellHoverWithRangeColor:T,motionDurationSlow:M,pickerPanelWithoutTimeCellHeight:B,pickerQuarterPanelContentHeight:F,colorLink:P,colorLinkActive:I,colorLinkHover:N,pickerDateHoverRangeBorderColor:R,borderRadiusSM:_,colorTextLightSolid:L,borderRadius:k,controlItemBgHover:H,pickerTimePanelColumnHeight:V,pickerTimePanelColumnWidth:U,pickerTimePanelCellHeight:q,controlItemBgActive:K,marginXXS:X}=e,re=a*7+i*2+4,ee=(re-l*2)/3-r-i;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,border:`${c}px ${d} ${m}`,borderRadius:f,outline:"none","&-focused":{borderColor:p},"&-rtl":{direction:"rtl",[`${t}-prev-icon, ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},[`&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel, &-week-panel, &-date-panel, &-time-panel`]:{display:"flex",flexDirection:"column",width:re},"&-header":{display:"flex",padding:`0 ${l}px`,color:v,borderBottom:`${c}px ${d} ${m}`,"> *":{flex:"none"},button:{padding:0,color:g,lineHeight:`${x}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${y}`},"> button":{minWidth:"1.6em",fontSize:A,"&:hover":{color:w}},"&-view":{flex:"auto",fontWeight:b,lineHeight:`${x}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:p}}}},[`&-prev-icon, &-next-icon, &-super-prev-icon, &-super-next-icon`]:{position:"relative",display:"inline-block",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:h,borderBlockEndWidth:0,borderInlineStartWidth:h,borderInlineEndWidth:0,content:'""'}},[`&-super-prev-icon, &-super-next-icon`]:{"&::after":{position:"absolute",top:Math.ceil(o/2),insetInlineStart:Math.ceil(o/2),display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:h,borderBlockEndWidth:0,borderInlineStartWidth:h,borderInlineEndWidth:0,content:'""'}},[`&-prev-icon, &-super-prev-icon`]:{transform:"rotate(-45deg)"},[`&-next-icon, &-super-next-icon`]:{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:S,fontWeight:"normal"},th:{height:S+$*2,color:O,verticalAlign:"middle"}},"&-cell":E({padding:`${$}px 0`,color:D,cursor:"pointer","&-in-view":{color:O}},hQ(e)),[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${n}, &-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:T,transition:`all ${M}`,content:'""'}},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${n}::after`]:{insetInlineEnd:-(a-S)/2,insetInlineStart:0},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}::after`]:{insetInlineEnd:0,insetInlineStart:-(a-S)/2},[`&-range-hover${t}-range-start::after`]:{insetInlineEnd:"50%"},[`&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel`]:{[`${t}-content`]:{height:B*4},[n]:{padding:`0 ${l}px`}},"&-quarter-panel":{[`${t}-content`]:{height:F}},[`&-panel ${t}-footer`]:{borderTop:`${c}px ${d} ${m}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${x-2*c}px`,textAlign:"center","&-extra":{padding:`0 ${i}`,lineHeight:`${x-2*c}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${c}px ${d} ${m}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:P,"&:hover":{color:N},"&:active":{color:I},[`&${t}-today-btn-disabled`]:{color:D,cursor:"not-allowed"}},"&-decade-panel":{[n]:{padding:`0 ${l/2}px`},[`${t}-cell::before`]:{display:"none"}},[`&-year-panel, &-quarter-panel, &-month-panel`]:{[`${t}-body`]:{padding:`0 ${l}px`},[n]:{width:r},[`${t}-cell-range-hover-start::after`]:{insetInlineStart:ee,borderInlineStart:`${c}px dashed ${R}`,borderStartStartRadius:_,borderBottomStartRadius:_,borderStartEndRadius:0,borderBottomEndRadius:0,[`${t}-panel-rtl &`]:{insetInlineEnd:ee,borderInlineEnd:`${c}px dashed ${R}`,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:_,borderBottomEndRadius:_}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:ee,borderInlineEnd:`${c}px dashed ${R}`,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:k,borderEndEndRadius:k,[`${t}-panel-rtl &`]:{insetInlineStart:ee,borderInlineStart:`${c}px dashed ${R}`,borderStartStartRadius:k,borderEndStartRadius:k,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-week-panel":{[`${t}-body`]:{padding:`${l}px ${i}px`},[`${t}-cell`]:{[`&:hover ${n}, &-selected ${n}, ${n}`]:{background:"transparent !important"}},"&-row":{td:{transition:`background ${y}`,"&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},"&:hover td":{background:H},[`&-selected td, &-selected:hover td`]:{background:p,[`&${t}-cell-week`]:{color:new $t(L).setAlpha(.5).toHexString()},[`&${t}-cell-today ${n}::before`]:{borderColor:L},[n]:{color:L}}}},"&-date-panel":{[`${t}-body`]:{padding:`${l}px ${i}px`},[`${t}-content`]:{width:a*7,th:{width:a}}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${c}px ${d} ${m}`},[`${t}-date-panel, ${t}-time-panel`]:{transition:`opacity ${M}`},"&-active":{[`${t}-date-panel, ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:V},"&-column":{flex:"1 0 auto",width:U,margin:`${s}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${y}`,overflowX:"hidden","&::after":{display:"block",height:V-q,content:'""'},"&:not(:first-child)":{borderInlineStart:`${c}px ${d} ${m}`},"&-active":{background:new $t(K).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:X,[`${t}-time-panel-cell-inner`]:{display:"block",width:U-2*X,height:q,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(U-q)/2,color:O,lineHeight:`${q}px`,borderRadius:_,cursor:"pointer",transition:`background ${y}`,"&:hover":{background:H}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:K}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:D,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${t}-time-panel-column:after`]:{height:V-q+s*2}}}},gQ=e=>{const{componentCls:t,colorBgContainer:n,colorError:r,colorErrorOutline:o,colorWarning:a,colorWarningOutline:i}=e;return{[t]:{[`&-status-error${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:r},"&-focused, &:focus":E({},ri(qe(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:o}))),[`${t}-active-bar`]:{background:r}},[`&-status-warning${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:a},"&-focused, &:focus":E({},ri(qe(e,{inputBorderActiveColor:a,inputBorderHoverColor:a,controlOutline:i}))),[`${t}-active-bar`]:{background:a}}}}},yQ=e=>{const{componentCls:t,antCls:n,boxShadowPopoverArrow:r,controlHeight:o,fontSize:a,inputPaddingHorizontal:i,colorBgContainer:l,lineWidth:s,lineType:u,colorBorder:c,borderRadius:d,motionDurationMid:f,colorBgContainerDisabled:p,colorTextDisabled:v,colorTextPlaceholder:m,controlHeightLG:h,fontSizeLG:g,controlHeightSM:x,inputPaddingHorizontalSM:y,paddingXS:w,marginXS:b,colorTextDescription:S,lineWidthBold:$,lineHeight:D,colorPrimary:O,motionDurationSlow:A,zIndexPopup:T,paddingXXS:M,paddingSM:B,pickerTextHeight:F,controlItemBgActive:P,colorPrimaryBorder:I,sizePopupArrow:N,borderRadiusXS:R,borderRadiusOuter:_,colorBgElevated:L,borderRadiusLG:k,boxShadowSecondary:H,borderRadiusSM:V,colorSplit:U,controlItemBgHover:q,presetsWidth:K,presetsMaxWidth:X}=e;return[{[t]:E(E(E({},rt(e)),Eh(e,o,a,i)),{position:"relative",display:"inline-flex",alignItems:"center",background:l,lineHeight:1,border:`${s}px ${u} ${c}`,borderRadius:d,transition:`border ${f}, box-shadow ${f}`,"&:hover, &-focused":E({},Fs(e)),"&-focused":E({},ri(e)),[`&${t}-disabled`]:{background:p,borderColor:c,cursor:"not-allowed",[`${t}-suffix`]:{color:v}},[`&${t}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":E(E({},il(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${t}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:m}}},"&-large":E(E({},Eh(e,h,g,i)),{[`${t}-input > input`]:{fontSize:g}}),"&-small":E({},Eh(e,x,a,y)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:w/2,color:v,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:b}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:v,lineHeight:1,background:l,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:S}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:g,color:v,fontSize:g,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:S},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-clear`]:{insetInlineEnd:i},"&:hover":{[`${t}-clear`]:{opacity:1}},[`${t}-active-bar`]:{bottom:-s,height:$,marginInlineStart:i,background:O,opacity:0,transition:`all ${A} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${w}px`,lineHeight:1},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:y},[`${t}-active-bar`]:{marginInlineStart:y}}},"&-dropdown":E(E(E({},rt(e)),vI(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:T,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Fm},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:_m},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Rm},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Bm},[`${t}-panel > ${t}-time-panel`]:{paddingTop:M},[`${t}-ranges`]:{marginBottom:0,padding:`${M}px ${B}px`,overflow:"hidden",lineHeight:`${F-2*s-w/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${t}-preset > ${n}-tag-blue`]:{color:O,background:P,borderColor:I,cursor:"pointer"},[`${t}-ok`]:{marginInlineStart:"auto"}},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:E({position:"absolute",zIndex:1,display:"none",marginInlineStart:i*1.5,transition:`left ${A} ease-out`},ob(N,R,_,L,r)),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:L,borderRadius:k,boxShadow:H,transition:`margin ${A}`,[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:K,maxWidth:X,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:w,borderInlineEnd:`${s}px ${u} ${U}`,li:E(E({},gn),{borderRadius:V,paddingInline:w,paddingBlock:(x-Math.round(a*D))/2,cursor:"pointer",transition:`all ${A}`,"+ li":{marginTop:b},"&:hover":{background:q}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${t}-panel`]:{borderWidth:`0 0 ${s}px`},"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:c}}}}),"&-dropdown-range":{padding:`${N*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Ho(e,"slide-up"),Ho(e,"slide-down"),ps(e,"move-up"),ps(e,"move-down")]},hI=e=>{const{componentCls:n,controlHeightLG:r,controlHeightSM:o,colorPrimary:a,paddingXXS:i}=e;return{pickerCellCls:`${n}-cell`,pickerCellInnerCls:`${n}-cell-inner`,pickerTextHeight:r,pickerPanelCellWidth:o*1.5,pickerPanelCellHeight:o,pickerDateHoverRangeBorderColor:new $t(a).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new $t(a).lighten(35).toHexString(),pickerPanelWithoutTimeCellHeight:r*1.65,pickerYearMonthCellWidth:r*1.5,pickerTimePanelColumnHeight:28*8,pickerTimePanelColumnWidth:r*1.4,pickerTimePanelCellHeight:28,pickerQuarterPanelContentHeight:r*1.4,pickerCellPaddingVertical:i,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5}},gI=nt("DatePicker",e=>{const t=qe(ll(e),hI(e));return[yQ(t),gQ(t),Ps(e,{focusElCls:`${e.componentCls}-focused`})]},e=>({presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})),bQ=e=>{const{calendarCls:t,componentCls:n,calendarFullBg:r,calendarFullPanelBg:o,calendarItemActiveBg:a}=e;return{[t]:E(E(E({},vI(e)),rt(e)),{background:r,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${e.paddingSM}px 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${n}-panel`]:{background:o,border:0,borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${e.paddingXS}px 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:`${e.weekHeight}px`}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:r,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:`${e.weekHeight}px`}}},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:a}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${e.marginXS/2}px`,padding:`${e.paddingXS/2}px ${e.paddingXS}px 0`,border:0,borderTop:`${e.lineWidthBold}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:`${e.dateValueHeight}px`,transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${e.screenXS}px) `]:{[`${t}`]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${e.paddingXS}px)`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},xQ=nt("Calendar",e=>{const t=`${e.componentCls}-calendar`,n=qe(ll(e),hI(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,calendarFullBg:e.colorBgContainer,calendarFullPanelBg:e.colorBgContainer,calendarItemActiveBg:e.controlItemBgActive,dateValueHeight:e.controlHeightSM,weekHeight:e.controlHeightSM*.75,dateContentHeight:(e.fontSizeSM*e.lineHeightSM+e.marginXS)*3+e.lineWidth*2});return[bQ(n)]},{yearControlWidth:80,monthControlWidth:70,miniContentHeight:256});function wQ(e){function t(a,i){return a&&i&&e.getYear(a)===e.getYear(i)}function n(a,i){return t(a,i)&&e.getMonth(a)===e.getMonth(i)}function r(a,i){return n(a,i)&&e.getDate(a)===e.getDate(i)}const o=he({name:"ACalendar",inheritAttrs:!1,props:{prefixCls:String,locale:{type:Object,default:void 0},validRange:{type:Array,default:void 0},disabledDate:{type:Function,default:void 0},dateFullCellRender:{type:Function,default:void 0},dateCellRender:{type:Function,default:void 0},monthFullCellRender:{type:Function,default:void 0},monthCellRender:{type:Function,default:void 0},headerRender:{type:Function,default:void 0},value:{type:[Object,String],default:void 0},defaultValue:{type:[Object,String],default:void 0},mode:{type:String,default:void 0},fullscreen:{type:Boolean,default:void 0},onChange:{type:Function,default:void 0},"onUpdate:value":{type:Function,default:void 0},onPanelChange:{type:Function,default:void 0},onSelect:{type:Function,default:void 0},valueFormat:{type:String,default:void 0}},slots:Object,setup(a,i){let{emit:l,slots:s,attrs:u}=i;const c=a,{prefixCls:d,direction:f}=He("picker",c),[p,v]=xQ(d),m=z(()=>`${d.value}-calendar`),h=P=>c.valueFormat?e.toString(P,c.valueFormat):P,g=z(()=>c.value?c.valueFormat?e.toDate(c.value,c.valueFormat):c.value:c.value===""?void 0:c.value),x=z(()=>c.defaultValue?c.valueFormat?e.toDate(c.defaultValue,c.valueFormat):c.defaultValue:c.defaultValue===""?void 0:c.defaultValue),[y,w]=Zt(()=>g.value||e.getNow(),{defaultValue:x.value,value:g}),[b,S]=Zt("month",{value:Ye(c,"mode")}),$=z(()=>b.value==="year"?"month":"date"),D=z(()=>P=>{var I;return(c.validRange?e.isAfter(c.validRange[0],P)||e.isAfter(P,c.validRange[1]):!1)||!!(!((I=c.disabledDate)===null||I===void 0)&&I.call(c,P))}),O=(P,I)=>{l("panelChange",h(P),I)},A=P=>{if(w(P),!r(P,y.value)){($.value==="date"&&!n(P,y.value)||$.value==="month"&&!t(P,y.value))&&O(P,b.value);const I=h(P);l("update:value",I),l("change",I)}},T=P=>{S(P),O(y.value,P)},M=(P,I)=>{A(P),l("select",h(P),{source:I})},B=z(()=>{const{locale:P}=c,I=E(E({},Pu),P);return I.lang=E(E({},I.lang),(P||{}).lang),I}),[F]=ro("Calendar",B);return()=>{const P=e.getNow(),{dateFullCellRender:I=s==null?void 0:s.dateFullCellRender,dateCellRender:N=s==null?void 0:s.dateCellRender,monthFullCellRender:R=s==null?void 0:s.monthFullCellRender,monthCellRender:_=s==null?void 0:s.monthCellRender,headerRender:L=s==null?void 0:s.headerRender,fullscreen:k=!0,validRange:H}=c,V=q=>{let{current:K}=q;return I?I({current:K}):C("div",{class:ge(`${d.value}-cell-inner`,`${m.value}-date`,{[`${m.value}-date-today`]:r(P,K)})},[C("div",{class:`${m.value}-date-value`},[String(e.getDate(K)).padStart(2,"0")]),C("div",{class:`${m.value}-date-content`},[N&&N({current:K})])])},U=(q,K)=>{let{current:X}=q;if(R)return R({current:X});const re=K.shortMonths||e.locale.getShortMonths(K.locale);return C("div",{class:ge(`${d.value}-cell-inner`,`${m.value}-date`,{[`${m.value}-date-today`]:n(P,X)})},[C("div",{class:`${m.value}-date-value`},[re[e.getMonth(X)]]),C("div",{class:`${m.value}-date-content`},[_&&_({current:X})])])};return p(C("div",j(j({},u),{},{class:ge(m.value,{[`${m.value}-full`]:k,[`${m.value}-mini`]:!k,[`${m.value}-rtl`]:f.value==="rtl"},u.class,v.value)}),[L?L({value:y.value,type:b.value,onChange:q=>{M(q,"customize")},onTypeChange:T}):C(uQ,{prefixCls:m.value,value:y.value,generateConfig:e,mode:b.value,fullscreen:k,locale:F.value.lang,validRange:H,onChange:M,onModeChange:T},null),C(W1,{value:y.value,prefixCls:d.value,locale:F.value.lang,generateConfig:e,dateRender:V,monthCellRender:q=>U(q,F.value.lang),onSelect:q=>{M(q,$.value)},mode:$.value,picker:$.value,disabledDate:D.value,hideHeader:!0},null)]))}}});return o.install=function(a){return a.component(o.name,o),a},o}const SQ=wQ(E1),CQ=rn(SQ);function $Q(e){const t=pe(),n=pe(!1);function r(){for(var o=arguments.length,a=new Array(o),i=0;i{e(...a)}))}return st(()=>{n.value=!0,tt.cancel(t.value)}),r}function EQ(e){const t=pe([]),n=pe(typeof e=="function"?e():e),r=$Q(()=>{let a=n.value;t.value.forEach(i=>{a=i(a)}),t.value=[],n.value=a});function o(a){t.value.push(a),r()}return[n,o]}const DQ=he({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:n,attrs:r}=t;const o=be();function a(s){var u;!((u=e.tab)===null||u===void 0)&&u.disabled||e.onClick(s)}n({domRef:o});function i(s){var u;s.preventDefault(),s.stopPropagation(),e.editable.onEdit("remove",{key:(u=e.tab)===null||u===void 0?void 0:u.key,event:s})}const l=z(()=>{var s;return e.editable&&e.closable!==!1&&!(!((s=e.tab)===null||s===void 0)&&s.disabled)});return()=>{var s;const{prefixCls:u,id:c,active:d,tab:{key:f,tab:p,disabled:v,closeIcon:m},renderWrapper:h,removeAriaLabel:g,editable:x,onFocus:y}=e,w=`${u}-tab`,b=C("div",{key:f,ref:o,class:ge(w,{[`${w}-with-remove`]:l.value,[`${w}-active`]:d,[`${w}-disabled`]:v}),style:r.style,onClick:a},[C("div",{role:"tab","aria-selected":d,id:c&&`${c}-tab-${f}`,class:`${w}-btn`,"aria-controls":c&&`${c}-panel-${f}`,"aria-disabled":v,tabindex:v?null:0,onClick:S=>{S.stopPropagation(),a(S)},onKeydown:S=>{[_e.SPACE,_e.ENTER].includes(S.which)&&(S.preventDefault(),a(S))},onFocus:y},[typeof p=="function"?p():p]),l.value&&C("button",{type:"button","aria-label":g||"remove",tabindex:0,class:`${w}-remove`,onClick:S=>{S.stopPropagation(),i(S)}},[(m==null?void 0:m())||((s=x.removeIcon)===null||s===void 0?void 0:s.call(x))||"×"])]);return h?h(b):b}}}),q$={width:0,height:0,left:0,top:0};function AQ(e,t){const n=be(new Map);return Je(()=>{var r,o;const a=new Map,i=e.value,l=t.value.get((r=i[0])===null||r===void 0?void 0:r.key)||q$,s=l.left+l.width;for(let u=0;u{const{prefixCls:a,editable:i,locale:l}=e;return!i||i.showAdd===!1?null:C("button",{ref:o,type:"button",class:`${a}-nav-add`,style:r.style,"aria-label":(l==null?void 0:l.addAriaLabel)||"Add tab",onClick:s=>{i.onEdit("add",{event:s})}},[i.addIcon?i.addIcon():"+"])}}}),OQ={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:Z.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:Oe()},TQ=he({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:OQ,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:n,slots:r}=t;const[o,a]=It(!1),[i,l]=It(null),s=p=>{const v=e.tabs.filter(g=>!g.disabled);let m=v.findIndex(g=>g.key===i.value)||0;const h=v.length;for(let g=0;g{const{which:v}=p;if(!o.value){[_e.DOWN,_e.SPACE,_e.ENTER].includes(v)&&(a(!0),p.preventDefault());return}switch(v){case _e.UP:s(-1),p.preventDefault();break;case _e.DOWN:s(1),p.preventDefault();break;case _e.ESC:a(!1);break;case _e.SPACE:case _e.ENTER:i.value!==null&&e.onTabClick(i.value,p);break}},c=z(()=>`${e.id}-more-popup`),d=z(()=>i.value!==null?`${c.value}-${i.value}`:null),f=(p,v)=>{p.preventDefault(),p.stopPropagation(),e.editable.onEdit("remove",{key:v,event:p})};return Qe(()=>{Ne(i,()=>{const p=document.getElementById(d.value);p&&p.scrollIntoView&&p.scrollIntoView(!1)},{flush:"post",immediate:!0})}),Ne(o,()=>{o.value||l(null)}),S1({}),()=>{var p;const{prefixCls:v,id:m,tabs:h,locale:g,mobile:x,moreIcon:y=((p=r.moreIcon)===null||p===void 0?void 0:p.call(r))||C(x1,null,null),moreTransitionName:w,editable:b,tabBarGutter:S,rtl:$,onTabClick:D,popupClassName:O}=e,A=`${v}-dropdown`,T=g==null?void 0:g.dropdownAriaLabel,M={[$?"marginRight":"marginLeft"]:S};h.length||(M.visibility="hidden",M.order=1);const B=ge({[`${A}-rtl`]:$,[`${O}`]:!0}),F=x?null:C(fP,{prefixCls:A,trigger:["hover"],visible:o.value,transitionName:w,onVisibleChange:a,overlayClassName:B,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>C(mn,{onClick:P=>{let{key:I,domEvent:N}=P;D(I,N),a(!1)},id:c.value,tabindex:-1,role:"listbox","aria-activedescendant":d.value,selectedKeys:[i.value],"aria-label":T!==void 0?T:"expanded dropdown"},{default:()=>[h.map(P=>{var I,N;const R=b&&P.closable!==!1&&!P.disabled;return C(zo,{key:P.key,id:`${c.value}-${P.key}`,role:"option","aria-controls":m&&`${m}-panel-${P.key}`,disabled:P.disabled},{default:()=>[C("span",null,[typeof P.tab=="function"?P.tab():P.tab]),R&&C("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${A}-menu-item-remove`,onClick:_=>{_.stopPropagation(),f(_,P.key)}},[((I=P.closeIcon)===null||I===void 0?void 0:I.call(P))||((N=b.removeIcon)===null||N===void 0?void 0:N.call(b))||"×"])]})})]}),default:()=>C("button",{type:"button",class:`${v}-nav-more`,style:M,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":c.value,id:`${m}-more`,"aria-expanded":o.value,onKeydown:u},[y])});return C("div",{class:ge(`${v}-nav-operations`,n.class),style:n.style},[F,C(yI,{prefixCls:v,locale:g,editable:b},null)])}}}),bI=Symbol("tabsContextKey"),xI=e=>{it(bI,e)},wI=()=>lt(bI,{tabs:be([]),prefixCls:be()});he({compatConfig:{MODE:3},name:"TabsContextProvider",inheritAttrs:!1,props:{tabs:{type:Object,default:void 0},prefixCls:{type:String,default:void 0}},setup(e,t){let{slots:n}=t;return xI(Xr(e)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});const MQ=.1,G$=.01,Qd=20,X$=Math.pow(.995,Qd);function NQ(e,t){const[n,r]=It(),[o,a]=It(0),[i,l]=It(0),[s,u]=It(),c=be();function d(b){const{screenX:S,screenY:$}=b.touches[0];r({x:S,y:$}),clearInterval(c.value)}function f(b){if(!n.value)return;b.preventDefault();const{screenX:S,screenY:$}=b.touches[0],D=S-n.value.x,O=$-n.value.y;t(D,O),r({x:S,y:$});const A=Date.now();l(A-o.value),a(A),u({x:D,y:O})}function p(){if(!n.value)return;const b=s.value;if(r(null),u(null),b){const S=b.x/i.value,$=b.y/i.value,D=Math.abs(S),O=Math.abs($);if(Math.max(D,O){if(Math.abs(A)A?(D=S,v.value="x"):(D=$,v.value="y"),t(-D,-D)&&b.preventDefault()}const h=be({onTouchStart:d,onTouchMove:f,onTouchEnd:p,onWheel:m});function g(b){h.value.onTouchStart(b)}function x(b){h.value.onTouchMove(b)}function y(b){h.value.onTouchEnd(b)}function w(b){h.value.onWheel(b)}Qe(()=>{var b,S;document.addEventListener("touchmove",x,{passive:!1}),document.addEventListener("touchend",y,{passive:!1}),(b=e.value)===null||b===void 0||b.addEventListener("touchstart",g,{passive:!1}),(S=e.value)===null||S===void 0||S.addEventListener("wheel",w,{passive:!1})}),st(()=>{document.removeEventListener("touchmove",x),document.removeEventListener("touchend",y)})}function Y$(e,t){const n=be(e);function r(o){const a=typeof o=="function"?o(n.value):o;a!==n.value&&t(a,n.value),n.value=a}return[n,r]}const PQ=()=>{const e=be(new Map),t=n=>r=>{e.value.set(n,r)};return Ly(()=>{e.value=new Map}),[t,e]},Z1=PQ,Z$={width:0,height:0,left:0,top:0,right:0},IQ=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:We(),editable:We(),moreIcon:Z.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:We(),popupClassName:String,getPopupContainer:Oe(),onTabClick:{type:Function},onTabScroll:{type:Function}}),J$=he({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:IQ(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:n,slots:r}=t;const{tabs:o,prefixCls:a}=wI(),i=pe(),l=pe(),s=pe(),u=pe(),[c,d]=Z1(),f=z(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[p,v]=Y$(0,(de,Y)=>{f.value&&e.onTabScroll&&e.onTabScroll({direction:de>Y?"left":"right"})}),[m,h]=Y$(0,(de,Y)=>{!f.value&&e.onTabScroll&&e.onTabScroll({direction:de>Y?"top":"bottom"})}),[g,x]=It(0),[y,w]=It(0),[b,S]=It(null),[$,D]=It(null),[O,A]=It(0),[T,M]=It(0),[B,F]=EQ(new Map),P=AQ(o,B),I=z(()=>`${a.value}-nav-operations-hidden`),N=pe(0),R=pe(0);Je(()=>{f.value?e.rtl?(N.value=0,R.value=Math.max(0,g.value-b.value)):(N.value=Math.min(0,b.value-g.value),R.value=0):(N.value=Math.min(0,$.value-y.value),R.value=0)});const _=de=>deR.value?R.value:de,L=pe(),[k,H]=It(),V=()=>{H(Date.now())},U=()=>{clearTimeout(L.value)},q=(de,Y)=>{de(ae=>_(ae+Y))};NQ(i,(de,Y)=>{if(f.value){if(b.value>=g.value)return!1;q(v,de)}else{if($.value>=y.value)return!1;q(h,Y)}return U(),V(),!0}),Ne(k,()=>{U(),k.value&&(L.value=setTimeout(()=>{H(0)},100))});const K=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const Y=P.value.get(de)||{width:0,height:0,left:0,right:0,top:0};if(f.value){let ae=p.value;e.rtl?Y.rightp.value+b.value&&(ae=Y.right+Y.width-b.value):Y.left<-p.value?ae=-Y.left:Y.left+Y.width>-p.value+b.value&&(ae=-(Y.left+Y.width-b.value)),h(0),v(_(ae))}else{let ae=m.value;Y.top<-m.value?ae=-Y.top:Y.top+Y.height>-m.value+$.value&&(ae=-(Y.top+Y.height-$.value)),v(0),h(_(ae))}},X=pe(0),re=pe(0);Je(()=>{let de,Y,ae,ce,Ce,ye;const J=P.value;["top","bottom"].includes(e.tabPosition)?(de="width",ce=b.value,Ce=g.value,ye=O.value,Y=e.rtl?"right":"left",ae=Math.abs(p.value)):(de="height",ce=$.value,Ce=g.value,ye=T.value,Y="top",ae=-m.value);let ne=ce;Ce+ye>ce&&Ceae+ne){ve=$e-1;break}}let we=0;for(let $e=ie-1;$e>=0;$e-=1)if((J.get(oe[$e].key)||Z$)[Y]{var de,Y,ae,ce,Ce;const ye=((de=i.value)===null||de===void 0?void 0:de.offsetWidth)||0,J=((Y=i.value)===null||Y===void 0?void 0:Y.offsetHeight)||0,ne=((ae=u.value)===null||ae===void 0?void 0:ae.$el)||{},oe=ne.offsetWidth||0,ie=ne.offsetHeight||0;S(ye),D(J),A(oe),M(ie);const ve=(((ce=l.value)===null||ce===void 0?void 0:ce.offsetWidth)||0)-oe,we=(((Ce=l.value)===null||Ce===void 0?void 0:Ce.offsetHeight)||0)-ie;x(ve),w(we),F(()=>{const $e=new Map;return o.value.forEach(Ae=>{let{key:xe}=Ae;const Ee=d.value.get(xe),Te=(Ee==null?void 0:Ee.$el)||Ee;Te&&$e.set(xe,{width:Te.offsetWidth,height:Te.offsetHeight,left:Te.offsetLeft,top:Te.offsetTop})}),$e})},G=z(()=>[...o.value.slice(0,X.value),...o.value.slice(re.value+1)]),[le,ue]=It(),me=z(()=>P.value.get(e.activeKey)),Se=pe(),Q=()=>{tt.cancel(Se.value)};Ne([me,f,()=>e.rtl],()=>{const de={};me.value&&(f.value?(e.rtl?de.right=Ei(me.value.right):de.left=Ei(me.value.left),de.width=Ei(me.value.width)):(de.top=Ei(me.value.top),de.height=Ei(me.value.height))),Q(),Se.value=tt(()=>{ue(de)})}),Ne([()=>e.activeKey,me,P,f],()=>{K()},{flush:"post"}),Ne([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>o.value],()=>{ee()},{flush:"post"});const te=de=>{let{position:Y,prefixCls:ae,extra:ce}=de;if(!ce)return null;const Ce=ce==null?void 0:ce({position:Y});return Ce?C("div",{class:`${ae}-extra-content`},[Ce]):null};return st(()=>{U(),Q()}),()=>{const{id:de,animated:Y,activeKey:ae,rtl:ce,editable:Ce,locale:ye,tabPosition:J,tabBarGutter:ne,onTabClick:oe}=e,{class:ie,style:ve}=n,we=a.value,$e=!!G.value.length,Ae=`${we}-nav-wrap`;let xe,Ee,Te,Me;f.value?ce?(Ee=p.value>0,xe=p.value+b.value{const{key:fe}=je;return C(DQ,{id:de,prefixCls:we,key:fe,tab:je,style:W===0?void 0:Re,closable:je.closable,editable:Ce,active:fe===ae,removeAriaLabel:ye==null?void 0:ye.removeAriaLabel,ref:c(fe),onClick:De=>{oe(fe,De)},onFocus:()=>{K(fe),V(),i.value&&(ce||(i.value.scrollLeft=0),i.value.scrollTop=0)}},r)});return C("div",{role:"tablist",class:ge(`${we}-nav`,ie),style:ve,onKeydown:()=>{V()}},[C(te,{position:"left",prefixCls:we,extra:r.leftExtra},null),C(Qr,{onResize:ee},{default:()=>[C("div",{class:ge(Ae,{[`${Ae}-ping-left`]:xe,[`${Ae}-ping-right`]:Ee,[`${Ae}-ping-top`]:Te,[`${Ae}-ping-bottom`]:Me}),ref:i},[C(Qr,{onResize:ee},{default:()=>[C("div",{ref:l,class:`${we}-nav-list`,style:{transform:`translate(${p.value}px, ${m.value}px)`,transition:k.value?"none":void 0}},[Be,C(yI,{ref:u,prefixCls:we,locale:ye,editable:Ce,style:E(E({},Be.length===0?void 0:Re),{visibility:$e?"hidden":null})},null),C("div",{class:ge(`${we}-ink-bar`,{[`${we}-ink-bar-animated`]:Y.inkBar}),style:le.value},null)])]})])]}),C(TQ,j(j({},e),{},{removeAriaLabel:ye==null?void 0:ye.removeAriaLabel,ref:s,prefixCls:we,tabs:G.value,class:!$e&&I.value}),JN(r,["moreIcon"])),C(te,{position:"right",prefixCls:we,extra:r.rightExtra},null),C(te,{position:"right",prefixCls:we,extra:r.tabBarExtraContent},null)])}}}),_Q=he({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:n}=wI();return()=>{const{id:r,activeKey:o,animated:a,tabPosition:i,rtl:l,destroyInactiveTabPane:s}=e,u=a.tabPane,c=n.value,d=t.value.findIndex(f=>f.key===o);return C("div",{class:`${c}-content-holder`},[C("div",{class:[`${c}-content`,`${c}-content-${i}`,{[`${c}-content-animated`]:u}],style:d&&u?{[l?"marginRight":"marginLeft"]:`-${d}00%`}:null},[t.value.map(f=>At(f.node,{key:f.key,prefixCls:c,tabKey:f.key,id:r,animated:u,active:f.key===o,destroyInactiveTabPane:s}))])])}}});var BQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const FQ=BQ;function Q$(e){for(var t=1;t{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Ho(e,"slide-up"),Ho(e,"slide-down")]]},kQ=LQ,HQ=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:r,tabsCardGutter:o,colorSplit:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},jQ=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:E(E({},rt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":E(E({},gn),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},VQ=e=>{const{componentCls:t,margin:n,colorSplit:r}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:e.controlHeight*1.25,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},WQ=e=>{const{componentCls:t,padding:n}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${n}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${n}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${n}px ${e.paddingXXS*1.5}px`}}}}}},UQ=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:r,iconCls:o,tabsHorizontalGutter:a}=e,i=`${t}-tab`;return{[i]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":E({"&:focus:not(:focus-visible), &:active":{color:n}},ba(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${i}-active ${i}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${i}-disabled ${i}-btn, &${i}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${i}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${i} + ${i}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${a}px`}}}},KQ=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:r,tabsCardGutter:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:`${o}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},qQ=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:r,tabsCardGutter:o,tabsHoverColor:a,tabsActiveColor:i,colorSplit:l}=e;return{[t]:E(E(E(E({},rt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:E({minWidth:`${r}px`,marginLeft:{_skip_check_:!0,value:`${o}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${l}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},ba(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),UQ(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},GQ=nt("Tabs",e=>{const t=e.controlHeightLG,n=qe(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[WQ(n),KQ(n),VQ(n),jQ(n),HQ(n),qQ(n),kQ(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let e2=0;const SI=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:Oe(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:Ue(),animated:Xe([Boolean,Object]),renderTabBar:Oe(),tabBarGutter:{type:Number},tabBarStyle:We(),tabPosition:Ue(),destroyInactiveTabPane:Pe(),hideAdd:Boolean,type:Ue(),size:Ue(),centered:Boolean,onEdit:Oe(),onChange:Oe(),onTabClick:Oe(),onTabScroll:Oe(),"onUpdate:activeKey":Oe(),locale:We(),onPrevClick:Oe(),onNextClick:Oe(),tabBarExtraContent:Z.any});function XQ(e){return e.map(t=>{if(hn(t)){const n=E({},t.props||{});for(const[f,p]of Object.entries(n))delete n[f],n[Yi(f)]=p;const r=t.children||{},o=t.key!==void 0?t.key:void 0,{tab:a=r.tab,disabled:i,forceRender:l,closable:s,animated:u,active:c,destroyInactiveTabPane:d}=n;return E(E({key:o},n),{node:t,closeIcon:r.closeIcon,tab:a,disabled:i===""||i,forceRender:l===""||l,closable:s===""||s,animated:u===""||u,active:c===""||c,destroyInactiveTabPane:d===""||d})}return null}).filter(t=>t)}const YQ=he({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:E(E({},at(SI(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:bt()}),slots:Object,setup(e,t){let{attrs:n,slots:r}=t;qt(e.onPrevClick===void 0&&e.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),qt(e.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),qt(r.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:o,direction:a,size:i,rootPrefixCls:l,getPopupContainer:s}=He("tabs",e),[u,c]=GQ(o),d=z(()=>a.value==="rtl"),f=z(()=>{const{animated:$,tabPosition:D}=e;return $===!1||["left","right"].includes(D)?{inkBar:!1,tabPane:!1}:$===!0?{inkBar:!0,tabPane:!0}:E({inkBar:!0,tabPane:!1},typeof $=="object"?$:{})}),[p,v]=It(!1);Qe(()=>{v(Tb())});const[m,h]=Zt(()=>{var $;return($=e.tabs[0])===null||$===void 0?void 0:$.key},{value:z(()=>e.activeKey),defaultValue:e.defaultActiveKey}),[g,x]=It(()=>e.tabs.findIndex($=>$.key===m.value));Je(()=>{var $;let D=e.tabs.findIndex(O=>O.key===m.value);D===-1&&(D=Math.max(0,Math.min(g.value,e.tabs.length-1)),h(($=e.tabs[D])===null||$===void 0?void 0:$.key)),x(D)});const[y,w]=Zt(null,{value:z(()=>e.id)}),b=z(()=>p.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition);Qe(()=>{e.id||(w(`rc-tabs-${e2}`),e2+=1)});const S=($,D)=>{var O,A;(O=e.onTabClick)===null||O===void 0||O.call(e,$,D);const T=$!==m.value;h($),T&&((A=e.onChange)===null||A===void 0||A.call(e,$))};return xI({tabs:z(()=>e.tabs),prefixCls:o}),()=>{const{id:$,type:D,tabBarGutter:O,tabBarStyle:A,locale:T,destroyInactiveTabPane:M,renderTabBar:B=r.renderTabBar,onTabScroll:F,hideAdd:P,centered:I}=e,N={id:y.value,activeKey:m.value,animated:f.value,tabPosition:b.value,rtl:d.value,mobile:p.value};let R;D==="editable-card"&&(R={onEdit:(H,V)=>{let{key:U,event:q}=V;var K;(K=e.onEdit)===null||K===void 0||K.call(e,H==="add"?q:U,H)},removeIcon:()=>C(Hr,null,null),addIcon:r.addIcon?r.addIcon:()=>C(zQ,null,null),showAdd:P!==!0});let _;const L=E(E({},N),{moreTransitionName:`${l.value}-slide-up`,editable:R,locale:T,tabBarGutter:O,onTabClick:S,onTabScroll:F,style:A,getPopupContainer:s.value,popupClassName:ge(e.popupClassName,c.value)});B?_=B(E(E({},L),{DefaultTabBar:J$})):_=C(J$,L,JN(r,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const k=o.value;return u(C("div",j(j({},n),{},{id:$,class:ge(k,`${k}-${b.value}`,{[c.value]:!0,[`${k}-${i.value}`]:i.value,[`${k}-card`]:["card","editable-card"].includes(D),[`${k}-editable-card`]:D==="editable-card",[`${k}-centered`]:I,[`${k}-mobile`]:p.value,[`${k}-editable`]:D==="editable-card",[`${k}-rtl`]:d.value},n.class)}),[_,C(_Q,j(j({destroyInactiveTabPane:M},N),{},{animated:f.value}),null)]))}}}),zi=he({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:at(SI(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:o}=t;const a=i=>{o("update:activeKey",i),o("change",i)};return()=>{var i;const l=XQ(Lt((i=r.default)===null||i===void 0?void 0:i.call(r)));return C(YQ,j(j(j({},pt(e,["onUpdate:activeKey"])),n),{},{onChange:a,tabs:l}),r)}}}),ZQ=()=>({tab:Z.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}),vp=he({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:ZQ(),slots:Object,setup(e,t){let{attrs:n,slots:r}=t;const o=be(e.forceRender);Ne([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?o.value=!0:e.destroyInactiveTabPane&&(o.value=!1)},{immediate:!0});const a=z(()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var i;const{prefixCls:l,forceRender:s,id:u,active:c,tabKey:d}=e;return C("div",{id:u&&`${u}-panel-${d}`,role:"tabpanel",tabindex:c?0:-1,"aria-labelledby":u&&`${u}-tab-${d}`,"aria-hidden":!c,style:[a.value,n.style],class:[`${l}-tabpane`,c&&`${l}-tabpane-active`,n.class]},[(c||o.value||s)&&((i=r.default)===null||i===void 0?void 0:i.call(r))])}}});zi.TabPane=vp;zi.install=function(e){return e.component(zi.name,zi),e.component(vp.name,vp),e};const JQ=e=>{const{antCls:t,componentCls:n,cardHeadHeight:r,cardPaddingBase:o,cardHeadTabsMarginBottom:a}=e;return E(E({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${o}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},yo()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":E(E({display:"inline-block",flex:1},gn),{[` > ${n}-typography, > ${n}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},QQ=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` ${o}px 0 0 0 ${n}, 0 ${o}px 0 0 ${n}, ${o}px ${o}px 0 0 ${n}, ${o}px 0 0 0 ${n} inset, 0 ${o}px 0 0 ${n} inset; `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},eee=e=>{const{componentCls:t,iconCls:n,cardActionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:a}=e;return E(E({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},yo()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.cardActionsIconSize*2,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:`${o*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${a}`}}})},tee=e=>E(E({margin:`-${e.marginXXS}px 0`,display:"flex"},yo()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":E({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},gn),"&-description":{color:e.colorTextDescription}}),nee=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},ree=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},oee=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadow:a,cardPaddingBase:i}=e;return{[t]:E(E({},rt(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:JQ(e),[`${t}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:E({padding:i,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},yo()),[`${t}-grid`]:QQ(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:eee(e),[`${t}-meta`]:tee(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:nee(e),[`${t}-loading`]:ree(e),[`${t}-rtl`]:{direction:"rtl"}}},aee=e=>{const{componentCls:t,cardPaddingSM:n,cardHeadHeightSM:r}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${n}px`,fontSize:e.fontSize,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:r,paddingTop:0,display:"flex",alignItems:"center"}}}}},iee=nt("Card",e=>{const t=qe(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,cardHeadHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[oee(t),aee(t)]}),lee=()=>({prefixCls:String,width:{type:[Number,String]}}),see=he({compatConfig:{MODE:3},name:"SkeletonTitle",props:lee(),setup(e){return()=>{const{prefixCls:t,width:n}=e,r=typeof n=="number"?`${n}px`:n;return C("h3",{class:t,style:{width:r}},null)}}}),Wm=see,uee=()=>({prefixCls:String,width:{type:[Number,String,Array]},rows:Number}),cee=he({compatConfig:{MODE:3},name:"SkeletonParagraph",props:uee(),setup(e){const t=n=>{const{width:r,rows:o=2}=e;if(Array.isArray(r))return r[n];if(o-1===n)return r};return()=>{const{prefixCls:n,rows:r}=e,o=[...Array(r)].map((a,i)=>{const l=t(i);return C("li",{key:i,style:{width:typeof l=="number"?`${l}px`:l}},null)});return C("ul",{class:n},[o])}}}),dee=cee,Um=()=>({prefixCls:String,size:[String,Number],shape:String,active:{type:Boolean,default:void 0}}),CI=e=>{const{prefixCls:t,size:n,shape:r}=e,o=ge({[`${t}-lg`]:n==="large",[`${t}-sm`]:n==="small"}),a=ge({[`${t}-circle`]:r==="circle",[`${t}-square`]:r==="square",[`${t}-round`]:r==="round"}),i=typeof n=="number"?{width:`${n}px`,height:`${n}px`,lineHeight:`${n}px`}:{};return C("span",{class:ge(t,o,a),style:i},null)};CI.displayName="SkeletonElement";const Km=CI,fee=new ft("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),qm=e=>({height:e,lineHeight:`${e}px`}),Xl=e=>E({width:e},qm(e)),pee=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:fee,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),Dh=e=>E({width:e*5,minWidth:e*5},qm(e)),mee=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[`${t}`]:E({display:"inline-block",verticalAlign:"top",background:n},Xl(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:E({},Xl(o)),[`${t}${t}-sm`]:E({},Xl(a))}},vee=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,color:i}=e;return{[`${r}`]:E({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},Dh(t)),[`${r}-lg`]:E({},Dh(o)),[`${r}-sm`]:E({},Dh(a))}},t2=e=>E({width:e},qm(e)),hee=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:r,borderRadiusSM:o}=e;return{[`${t}`]:E(E({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},t2(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:E(E({},t2(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Ah=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Oh=e=>E({width:e*2,minWidth:e*2},qm(e)),gee=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,color:i}=e;return E(E(E(E(E({[`${n}`]:E({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:r*2,minWidth:r*2},Oh(r))},Ah(e,r,n)),{[`${n}-lg`]:E({},Oh(o))}),Ah(e,o,`${n}-lg`)),{[`${n}-sm`]:E({},Oh(a))}),Ah(e,a,`${n}-sm`))},yee=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:l,controlHeight:s,controlHeightLG:u,controlHeightSM:c,color:d,padding:f,marginSM:p,borderRadius:v,skeletonTitleHeight:m,skeletonBlockRadius:h,skeletonParagraphLineHeight:g,controlHeightXS:x,skeletonParagraphMarginTop:y}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:E({display:"inline-block",verticalAlign:"top",background:d},Xl(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:E({},Xl(u)),[`${n}-sm`]:E({},Xl(c))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:m,background:d,borderRadius:h,[`+ ${o}`]:{marginBlockStart:c}},[`${o}`]:{padding:0,"> li":{width:"100%",height:g,listStyle:"none",background:d,borderRadius:h,"+ li":{marginBlockStart:x}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:v}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:E(E(E(E({display:"inline-block",width:"auto"},gee(e)),mee(e)),vee(e)),hee(e)),[`${t}${t}-block`]:{width:"100%",[`${a}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${t}${t}-active`]:{[` ${r}, ${o} > li, ${n}, ${a}, ${i}, ${l} `]:E({},pee(e))}}},wc=nt("Skeleton",e=>{const{componentCls:t}=e,n=qe(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[yee(n)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}),bee=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function Th(e){return e&&typeof e=="object"?e:{}}function xee(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function wee(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function See(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Cee=he({compatConfig:{MODE:3},name:"ASkeleton",props:at(bee(),{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t;const{prefixCls:r,direction:o}=He("skeleton",e),[a,i]=wc(r);return()=>{var l;const{loading:s,avatar:u,title:c,paragraph:d,active:f,round:p}=e,v=r.value;if(s||e.loading===void 0){const m=!!u||u==="",h=!!c||c==="",g=!!d||d==="";let x;if(m){const b=E(E({prefixCls:`${v}-avatar`},xee(h,g)),Th(u));x=C("div",{class:`${v}-header`},[C(Km,b,null)])}let y;if(h||g){let b;if(h){const $=E(E({prefixCls:`${v}-title`},wee(m,g)),Th(c));b=C(Wm,$,null)}let S;if(g){const $=E(E({prefixCls:`${v}-paragraph`},See(m,h)),Th(d));S=C(dee,$,null)}y=C("div",{class:`${v}-content`},[b,S])}const w=ge(v,{[`${v}-with-avatar`]:m,[`${v}-active`]:f,[`${v}-rtl`]:o.value==="rtl",[`${v}-round`]:p,[i.value]:!0});return a(C("div",{class:w},[x,y]))}return(l=n.default)===null||l===void 0?void 0:l.call(n)}}}),Yn=Cee,$ee=()=>E(E({},Um()),{size:String,block:Boolean}),Eee=he({compatConfig:{MODE:3},name:"ASkeletonButton",props:at($ee(),{size:"default"}),setup(e){const{prefixCls:t}=He("skeleton",e),[n,r]=wc(t),o=z(()=>ge(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},r.value));return()=>n(C("div",{class:o.value},[C(Km,j(j({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),Q1=Eee,Dee=he({compatConfig:{MODE:3},name:"ASkeletonInput",props:E(E({},pt(Um(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=He("skeleton",e),[n,r]=wc(t),o=z(()=>ge(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},r.value));return()=>n(C("div",{class:o.value},[C(Km,j(j({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),ex=Dee,Aee="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",Oee=he({compatConfig:{MODE:3},name:"ASkeletonImage",props:pt(Um(),["size","shape","active"]),setup(e){const{prefixCls:t}=He("skeleton",e),[n,r]=wc(t),o=z(()=>ge(t.value,`${t.value}-element`,r.value));return()=>n(C("div",{class:o.value},[C("div",{class:`${t.value}-image`},[C("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:`${t.value}-image-svg`},[C("path",{d:Aee,class:`${t.value}-image-path`},null)])])]))}}),tx=Oee,Tee=()=>E(E({},Um()),{shape:String}),Mee=he({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:at(Tee(),{size:"default",shape:"circle"}),setup(e){const{prefixCls:t}=He("skeleton",e),[n,r]=wc(t),o=z(()=>ge(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},r.value));return()=>n(C("div",{class:o.value},[C(Km,j(j({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}}),nx=Mee;Yn.Button=Q1;Yn.Avatar=nx;Yn.Input=ex;Yn.Image=tx;Yn.Title=Wm;Yn.install=function(e){return e.component(Yn.name,Yn),e.component(Yn.Button.name,Q1),e.component(Yn.Avatar.name,nx),e.component(Yn.Input.name,ex),e.component(Yn.Image.name,tx),e.component(Yn.Title.name,Wm),e};const{TabPane:Nee}=zi,Pee=()=>({prefixCls:String,title:Z.any,extra:Z.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:Z.any,tabList:{type:Array},tabBarExtraContent:Z.any,activeTabKey:String,defaultActiveTabKey:String,cover:Z.any,onTabChange:{type:Function}}),Iee=he({compatConfig:{MODE:3},name:"ACard",inheritAttrs:!1,props:Pee(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a,size:i}=He("card",e),[l,s]=iee(o),u=f=>f.map((v,m)=>br(v)&&!uc(v)||!br(v)?C("li",{style:{width:`${100/f.length}%`},key:`action-${m}`},[C("span",null,[v])]):null),c=f=>{var p;(p=e.onTabChange)===null||p===void 0||p.call(e,f)},d=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p;return f.forEach(v=>{v&&Uy(v.type)&&v.type.__ANT_CARD_GRID&&(p=!0)}),p};return()=>{var f,p,v,m,h,g;const{headStyle:x={},bodyStyle:y={},loading:w,bordered:b=!0,type:S,tabList:$,hoverable:D,activeTabKey:O,defaultActiveTabKey:A,tabBarExtraContent:T=Gs((f=n.tabBarExtraContent)===null||f===void 0?void 0:f.call(n)),title:M=Gs((p=n.title)===null||p===void 0?void 0:p.call(n)),extra:B=Gs((v=n.extra)===null||v===void 0?void 0:v.call(n)),actions:F=Gs((m=n.actions)===null||m===void 0?void 0:m.call(n)),cover:P=Gs((h=n.cover)===null||h===void 0?void 0:h.call(n))}=e,I=Lt((g=n.default)===null||g===void 0?void 0:g.call(n)),N=o.value,R={[`${N}`]:!0,[s.value]:!0,[`${N}-loading`]:w,[`${N}-bordered`]:b,[`${N}-hoverable`]:!!D,[`${N}-contain-grid`]:d(I),[`${N}-contain-tabs`]:$&&$.length,[`${N}-${i.value}`]:i.value,[`${N}-type-${S}`]:!!S,[`${N}-rtl`]:a.value==="rtl"},_=C(Yn,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[I]}),L=O!==void 0,k={size:"large",[L?"activeKey":"defaultActiveKey"]:L?O:A,onChange:c,class:`${N}-head-tabs`};let H;const V=$&&$.length?C(zi,k,{default:()=>[$.map(X=>{const{tab:re,slots:ee}=X,G=ee==null?void 0:ee.tab;qt(!ee,"Card","tabList slots is deprecated, Please use `customTab` instead.");let le=re!==void 0?re:n[G]?n[G](X):null;return le=em(n,"customTab",X,()=>[le]),C(Nee,{tab:le,key:X.key,disabled:X.disabled},null)})],rightExtra:T?()=>T:null}):null;(M||B||V)&&(H=C("div",{class:`${N}-head`,style:x},[C("div",{class:`${N}-head-wrapper`},[M&&C("div",{class:`${N}-head-title`},[M]),B&&C("div",{class:`${N}-extra`},[B])]),V]));const U=P?C("div",{class:`${N}-cover`},[P]):null,q=C("div",{class:`${N}-body`,style:y},[w?_:I]),K=F&&F.length?C("ul",{class:`${N}-actions`},[u(F)]):null;return l(C("div",j(j({ref:"cardContainerRef"},r),{},{class:[R,r.class]}),[H,U,I&&I.length?q:null,K]))}}}),Yl=Iee,_ee=()=>({prefixCls:String,title:Zn(),description:Zn(),avatar:Zn()}),hp=he({compatConfig:{MODE:3},name:"ACardMeta",props:_ee(),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:r}=He("card",e);return()=>{const o={[`${r.value}-meta`]:!0},a=wn(n,e,"avatar"),i=wn(n,e,"title"),l=wn(n,e,"description"),s=a?C("div",{class:`${r.value}-meta-avatar`},[a]):null,u=i?C("div",{class:`${r.value}-meta-title`},[i]):null,c=l?C("div",{class:`${r.value}-meta-description`},[l]):null,d=u||c?C("div",{class:`${r.value}-meta-detail`},[u,c]):null;return C("div",{class:o},[s,d])}}}),Bee=()=>({prefixCls:String,hoverable:{type:Boolean,default:!0}}),gp=he({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:Bee(),setup(e,t){let{slots:n}=t;const{prefixCls:r}=He("card",e),o=z(()=>({[`${r.value}-grid`]:!0,[`${r.value}-grid-hoverable`]:e.hoverable}));return()=>{var a;return C("div",{class:o.value},[(a=n.default)===null||a===void 0?void 0:a.call(n)])}}});Yl.Meta=hp;Yl.Grid=gp;Yl.install=function(e){return e.component(Yl.name,Yl),e.component(hp.name,hp),e.component(gp.name,gp),e};const Fee=()=>({prefixCls:String,activeKey:Xe([Array,Number,String]),defaultActiveKey:Xe([Array,Number,String]),accordion:Pe(),destroyInactivePanel:Pe(),bordered:Pe(),expandIcon:Oe(),openAnimation:Z.object,expandIconPosition:Ue(),collapsible:Ue(),ghost:Pe(),onChange:Oe(),"onUpdate:activeKey":Oe()}),$I=()=>({openAnimation:Z.object,prefixCls:String,header:Z.any,headerClass:String,showArrow:Pe(),isActive:Pe(),destroyInactivePanel:Pe(),disabled:Pe(),accordion:Pe(),forceRender:Pe(),expandIcon:Oe(),extra:Z.any,panelKey:Xe(),collapsible:Ue(),role:String,onItemClick:Oe()}),Ree=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:a,collapseHeaderPadding:i,collapsePanelBorderRadius:l,lineWidth:s,lineType:u,colorBorder:c,colorText:d,colorTextHeading:f,colorTextDisabled:p,fontSize:v,lineHeight:m,marginSM:h,paddingSM:g,motionDurationSlow:x,fontSizeIcon:y}=e,w=`${s}px ${u} ${c}`;return{[t]:E(E({},rt(e)),{backgroundColor:a,border:w,borderBottom:0,borderRadius:`${l}px`,["&-rtl"]:{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:w,["&:last-child"]:{[` &, & > ${t}-header`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:m,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:v*m,display:"flex",alignItems:"center",paddingInlineEnd:h},[`${t}-arrow`]:E(E({},Ji()),{fontSize:y,svg:{transition:`transform ${x}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:g}}},[`${t}-content`]:{color:d,backgroundColor:n,borderTop:w,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},["&-hidden"]:{display:"none"}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`& ${t}-item-disabled > ${t}-header`]:{[` &, & > .arrow `]:{color:p,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:h}}}}})}},zee=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Lee=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},kee=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},Hee=nt("Collapse",e=>{const t=qe(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[Ree(t),Lee(t),kee(t),zee(t),hc(t)]});function n2(e){let t=e;if(!Array.isArray(t)){const n=typeof t;t=n==="number"||n==="string"?[t]:[]}return t.map(n=>String(n))}const bu=he({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:at(Fee(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,openAnimation:gc("ant-motion-collapse",!1),expandIconPosition:"start"}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:o}=t;const a=be(n2(np([e.activeKey,e.defaultActiveKey])));Ne(()=>e.activeKey,()=>{a.value=n2(e.activeKey)},{deep:!0});const{prefixCls:i,direction:l}=He("collapse",e),[s,u]=Hee(i),c=z(()=>{const{expandIconPosition:h}=e;return h!==void 0?h:l.value==="rtl"?"end":"start"}),d=h=>{const{expandIcon:g=r.expandIcon}=e,x=g?g(h):C(xo,{rotate:h.isActive?90:void 0},null);return C("div",{class:[`${i.value}-expand-icon`,u.value],onClick:()=>["header","icon"].includes(e.collapsible)&&p(h.panelKey)},[hn(Array.isArray(g)?x[0]:x)?At(x,{class:`${i.value}-arrow`},!1):x])},f=h=>{e.activeKey===void 0&&(a.value=h);const g=e.accordion?h[0]:h;o("update:activeKey",g),o("change",g)},p=h=>{let g=a.value;if(e.accordion)g=g[0]===h?[]:[h];else{g=[...g];const x=g.indexOf(h);x>-1?g.splice(x,1):g.push(h)}f(g)},v=(h,g)=>{var x,y,w;if(uc(h))return;const b=a.value,{accordion:S,destroyInactivePanel:$,collapsible:D,openAnimation:O}=e,A=String((x=h.key)!==null&&x!==void 0?x:g),{header:T=(w=(y=h.children)===null||y===void 0?void 0:y.header)===null||w===void 0?void 0:w.call(y),headerClass:M,collapsible:B,disabled:F}=h.props||{};let P=!1;S?P=b[0]===A:P=b.indexOf(A)>-1;let I=B??D;(F||F==="")&&(I="disabled");const N={key:A,panelKey:A,header:T,headerClass:M,isActive:P,prefixCls:i.value,destroyInactivePanel:$,openAnimation:O,accordion:S,onItemClick:I==="disabled"?null:p,expandIcon:d,collapsible:I};return At(h,N)},m=()=>{var h;return Lt((h=r.default)===null||h===void 0?void 0:h.call(r)).map(v)};return()=>{const{accordion:h,bordered:g,ghost:x}=e,y=ge(i.value,{[`${i.value}-borderless`]:!g,[`${i.value}-icon-position-${c.value}`]:!0,[`${i.value}-rtl`]:l.value==="rtl",[`${i.value}-ghost`]:!!x,[n.class]:!!n.class},u.value);return s(C("div",j(j({class:y},cF(n)),{},{style:n.style,role:h?"tablist":null}),[m()]))}}}),jee=he({compatConfig:{MODE:3},name:"PanelContent",props:$I(),setup(e,t){let{slots:n}=t;const r=pe(!1);return Je(()=>{(e.isActive||e.forceRender)&&(r.value=!0)}),()=>{var o;if(!r.value)return null;const{prefixCls:a,isActive:i,role:l}=e;return C("div",{class:ge(`${a}-content`,{[`${a}-content-active`]:i,[`${a}-content-inactive`]:!i}),role:l},[C("div",{class:`${a}-content-box`},[(o=n.default)===null||o===void 0?void 0:o.call(n)])])}}}),yp=he({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:at($I(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:o}=t;qt(e.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:a}=He("collapse",e),i=()=>{r("itemClick",e.panelKey)},l=s=>{(s.key==="Enter"||s.keyCode===13||s.which===13)&&i()};return()=>{var s,u;const{header:c=(s=n.header)===null||s===void 0?void 0:s.call(n),headerClass:d,isActive:f,showArrow:p,destroyInactivePanel:v,accordion:m,forceRender:h,openAnimation:g,expandIcon:x=n.expandIcon,extra:y=(u=n.extra)===null||u===void 0?void 0:u.call(n),collapsible:w}=e,b=w==="disabled",S=a.value,$=ge(`${S}-header`,{[d]:d,[`${S}-header-collapsible-only`]:w==="header",[`${S}-icon-collapsible-only`]:w==="icon"}),D=ge({[`${S}-item`]:!0,[`${S}-item-active`]:f,[`${S}-item-disabled`]:b,[`${S}-no-arrow`]:!p,[`${o.class}`]:!!o.class});let O=C("i",{class:"arrow"},null);p&&typeof x=="function"&&(O=x(e));const A=vn(C(jee,{prefixCls:S,isActive:f,forceRender:h,role:m?"tabpanel":null},{default:n.default}),[[ur,f]]),T=E({appear:!1,css:!1},g);return C("div",j(j({},o),{},{class:D}),[C("div",{class:$,onClick:()=>!["header","icon"].includes(w)&&i(),role:m?"tab":"button",tabindex:b?-1:0,"aria-expanded":f,onKeypress:l},[p&&O,C("span",{onClick:()=>w==="header"&&i(),class:`${S}-header-text`},[c]),y&&C("div",{class:`${S}-extra`},[y])]),C(_n,T,{default:()=>[!v||f?A:null]})])}}});bu.Panel=yp;bu.install=function(e){return e.component(bu.name,bu),e.component(yp.name,yp),e};const Vee=function(e){return e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()},Wee=function(e){return/[height|width]$/.test(e)},r2=function(e){let t="";const n=Object.keys(e);return n.forEach(function(r,o){let a=e[r];r=Vee(r),Wee(r)&&typeof a=="number"&&(a=a+"px"),a===!0?t+=r:a===!1?t+="not "+r:t+="("+r+": "+a+")",o{["touchstart","touchmove","wheel"].includes(e.type)||e.preventDefault()},bp=e=>{const t=[],n=DI(e),r=AI(e);for(let o=n;oe.currentSlide-Gee(e),AI=e=>e.currentSlide+Xee(e),Gee=e=>e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0,Xee=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow,y0=e=>e&&e.offsetWidth||0,rx=e=>e&&e.offsetHeight||0,OI=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;const r=e.startX-e.curX,o=e.startY-e.curY,a=Math.atan2(o,r);return n=Math.round(a*180/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?"left":n>=135&&n<=225?"right":t===!0?n>=35&&n<=135?"up":"down":"vertical"},Gm=e=>{let t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},Nh=(e,t)=>{const n={};return t.forEach(r=>n[r]=e[r]),n},Yee=e=>{const t=e.children.length,n=e.listRef,r=Math.ceil(y0(n)),o=e.trackRef,a=Math.ceil(y0(o));let i;if(e.vertical)i=r;else{let p=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding=="string"&&e.centerPadding.slice(-1)==="%"&&(p*=r/100),i=Math.ceil((r-p)/e.slidesToShow)}const l=n&&rx(n.querySelector('[data-index="0"]')),s=l*e.slidesToShow;let u=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(u=t-1-e.initialSlide);let c=e.lazyLoadedList||[];const d=bp(E(E({},e),{currentSlide:u,lazyLoadedList:c}));c=c.concat(d);const f={slideCount:t,slideWidth:i,listWidth:r,trackWidth:a,currentSlide:u,slideHeight:l,listHeight:s,lazyLoadedList:c};return e.autoplaying===null&&e.autoplay&&(f.autoplaying="playing"),f},Zee=e=>{const{waitForAnimate:t,animating:n,fade:r,infinite:o,index:a,slideCount:i,lazyLoad:l,currentSlide:s,centerMode:u,slidesToScroll:c,slidesToShow:d,useCSS:f}=e;let{lazyLoadedList:p}=e;if(t&&n)return{};let v=a,m,h,g,x={},y={};const w=o?a:g0(a,0,i-1);if(r){if(!o&&(a<0||a>=i))return{};a<0?v=a+i:a>=i&&(v=a-i),l&&p.indexOf(v)<0&&(p=p.concat(v)),x={animating:!0,currentSlide:v,lazyLoadedList:p,targetSlide:v},y={animating:!1,targetSlide:v}}else m=v,v<0?(m=v+i,o?i%c!==0&&(m=i-i%c):m=0):!Gm(e)&&v>s?v=m=s:u&&v>=i?(v=o?i:i-1,m=o?0:i-1):v>=i&&(m=v-i,o?i%c!==0&&(m=0):m=i-d),!o&&v+d>=i&&(m=i-d),h=Yu(E(E({},e),{slideIndex:v})),g=Yu(E(E({},e),{slideIndex:m})),o||(h===g&&(v=m),h=g),l&&(p=p.concat(bp(E(E({},e),{currentSlide:v})))),f?(x={animating:!0,currentSlide:m,trackStyle:TI(E(E({},e),{left:h})),lazyLoadedList:p,targetSlide:w},y={animating:!1,currentSlide:m,trackStyle:Xu(E(E({},e),{left:g})),swipeLeft:null,targetSlide:w}):x={currentSlide:m,trackStyle:Xu(E(E({},e),{left:g})),lazyLoadedList:p,targetSlide:w};return{state:x,nextState:y}},Jee=(e,t)=>{let n,r,o;const{slidesToScroll:a,slidesToShow:i,slideCount:l,currentSlide:s,targetSlide:u,lazyLoad:c,infinite:d}=e,p=l%a!==0?0:(l-s)%a;if(t.message==="previous")r=p===0?a:i-p,o=s-r,c&&!d&&(n=s-r,o=n===-1?l-1:n),d||(o=u-a);else if(t.message==="next")r=p===0?a:p,o=s+r,c&&!d&&(o=(s+a)%l+p),d||(o=u+a);else if(t.message==="dots")o=t.index*t.slidesToScroll;else if(t.message==="children"){if(o=t.index,d){const v=ate(E(E({},e),{targetSlide:o}));o>t.currentSlide&&v==="left"?o=o-l:oe.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":e.keyCode===37?n?"next":"previous":e.keyCode===39?n?"previous":"next":"",ete=(e,t,n)=>(e.target.tagName==="IMG"&&Zl(e),!t||!n&&e.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}),tte=(e,t)=>{const{scrolling:n,animating:r,vertical:o,swipeToSlide:a,verticalSwiping:i,rtl:l,currentSlide:s,edgeFriction:u,edgeDragged:c,onEdge:d,swiped:f,swiping:p,slideCount:v,slidesToScroll:m,infinite:h,touchObject:g,swipeEvent:x,listHeight:y,listWidth:w}=t;if(n)return;if(r)return Zl(e);o&&a&&i&&Zl(e);let b,S={};const $=Yu(t);g.curX=e.touches?e.touches[0].pageX:e.clientX,g.curY=e.touches?e.touches[0].pageY:e.clientY,g.swipeLength=Math.round(Math.sqrt(Math.pow(g.curX-g.startX,2)));const D=Math.round(Math.sqrt(Math.pow(g.curY-g.startY,2)));if(!i&&!p&&D>10)return{scrolling:!0};i&&(g.swipeLength=D);let O=(l?-1:1)*(g.curX>g.startX?1:-1);i&&(O=g.curY>g.startY?1:-1);const A=Math.ceil(v/m),T=OI(t.touchObject,i);let M=g.swipeLength;return h||(s===0&&(T==="right"||T==="down")||s+1>=A&&(T==="left"||T==="up")||!Gm(t)&&(T==="left"||T==="up"))&&(M=g.swipeLength*u,c===!1&&d&&(d(T),S.edgeDragged=!0)),!f&&x&&(x(T),S.swiped=!0),o?b=$+M*(y/w)*O:l?b=$-M*O:b=$+M*O,i&&(b=$+M*O),S=E(E({},S),{touchObject:g,swipeLeft:b,trackStyle:Xu(E(E({},t),{left:b}))}),Math.abs(g.curX-g.startX)10&&(S.swiping=!0,Zl(e)),S},nte=(e,t)=>{const{dragging:n,swipe:r,touchObject:o,listWidth:a,touchThreshold:i,verticalSwiping:l,listHeight:s,swipeToSlide:u,scrolling:c,onSwipe:d,targetSlide:f,currentSlide:p,infinite:v}=t;if(!n)return r&&Zl(e),{};const m=l?s/i:a/i,h=OI(o,l),g={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(c||!o.swipeLength)return g;if(o.swipeLength>m){Zl(e),d&&d(h);let x,y,w=v?p:f;switch(h){case"left":case"up":y=w+a2(t),x=u?o2(t,y):y,g.currentDirection=0;break;case"right":case"down":y=w-a2(t),x=u?o2(t,y):y,g.currentDirection=1;break;default:x=w}g.triggerSlideHandler=x}else{const x=Yu(t);g.trackStyle=TI(E(E({},t),{left:x}))}return g},rte=e=>{const t=e.infinite?e.slideCount*2:e.slideCount;let n=e.infinite?e.slidesToShow*-1:0,r=e.infinite?e.slidesToShow*-1:0;const o=[];for(;n{const n=rte(e);let r=0;if(t>n[n.length-1])t=n[n.length-1];else for(const o in n){if(t{const t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){let n;const r=e.listRef,o=r.querySelectorAll&&r.querySelectorAll(".slick-slide")||[];if(Array.from(o).every(l=>{if(e.vertical){if(l.offsetTop+rx(l)/2>e.swipeLeft*-1)return n=l,!1}else if(l.offsetLeft-t+y0(l)/2>e.swipeLeft*-1)return n=l,!1;return!0}),!n)return 0;const a=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-a)||1}else return e.slidesToScroll},ox=(e,t)=>t.reduce((n,r)=>n&&e.hasOwnProperty(r),!0)?null:console.error("Keys Missing:",e),Xu=e=>{ox(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);let t,n;const r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=ote(e)*e.slideWidth;let o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){const a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=E(E({},o),{WebkitTransform:a,transform:i,msTransform:l})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t+"px"),n&&(o.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o},TI=e=>{ox(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);const t=Xu(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},Yu=e=>{if(e.unslick)return 0;ox(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);const{slideIndex:t,trackRef:n,infinite:r,centerMode:o,slideCount:a,slidesToShow:i,slidesToScroll:l,slideWidth:s,listWidth:u,variableWidth:c,slideHeight:d,fade:f,vertical:p}=e;let v=0,m,h,g=0;if(f||e.slideCount===1)return 0;let x=0;if(r?(x=-da(e),a%l!==0&&t+l>a&&(x=-(t>a?i-(t-a):a%l)),o&&(x+=parseInt(i/2))):(a%l!==0&&t+l>a&&(x=i-a%l),o&&(x=parseInt(i/2))),v=x*s,g=x*d,p?m=t*d*-1+g:m=t*s*-1+v,c===!0){let y;const w=n;if(y=t+da(e),h=w&&w.childNodes[y],m=h?h.offsetLeft*-1:0,o===!0){y=r?t+da(e):t,h=w&&w.children[y],m=0;for(let b=0;be.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0),ef=e=>e.unslick||!e.infinite?0:e.slideCount,ote=e=>e.slideCount===1?1:da(e)+e.slideCount+ef(e),ate=e=>e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+ite(e)?"left":"right":e.targetSlide{let{slidesToShow:t,centerMode:n,rtl:r,centerPadding:o}=e;if(n){let a=(t-1)/2+1;return parseInt(o)>0&&(a+=1),r&&t%2===0&&(a+=1),a}return r?0:t-1},lte=e=>{let{slidesToShow:t,centerMode:n,rtl:r,centerPadding:o}=e;if(n){let a=(t-1)/2+1;return parseInt(o)>0&&(a+=1),!r&&t%2===0&&(a+=1),a}return r?t-1:0},i2=()=>!!(typeof window<"u"&&window.document&&window.document.createElement),Ph=e=>{let t,n,r,o;e.rtl?o=e.slideCount-1-e.index:o=e.index;const a=o<0||o>=e.slideCount;e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount===0,o>e.currentSlide-r-1&&o<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=o&&o=e.slideCount?i=e.targetSlide-e.slideCount:i=e.targetSlide,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":a,"slick-current":o===i}},ste=function(e){const t={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(t.width=e.slideWidth+(typeof e.slideWidth=="number"?"px":"")),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight)+"px":t.left=-e.index*parseInt(e.slideWidth)+"px",t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t},Ih=(e,t)=>e.key+"-"+t,ute=function(e,t){let n;const r=[],o=[],a=[],i=t.length,l=DI(e),s=AI(e);return t.forEach((u,c)=>{let d;const f={message:"children",index:c,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(c)>=0?d=u:d=C("div");const p=ste(E(E({},e),{index:c})),v=d.props.class||"";let m=Ph(E(E({},e),{index:c}));if(r.push(mu(d,{key:"original"+Ih(d,c),tabindex:"-1","data-index":c,"aria-hidden":!m["slick-active"],class:ge(m,v),style:E(E({outline:"none"},d.props.style||{}),p),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(f)}})),e.infinite&&e.fade===!1){const h=i-c;h<=da(e)&&i!==e.slidesToShow&&(n=-h,n>=l&&(d=u),m=Ph(E(E({},e),{index:n})),o.push(mu(d,{key:"precloned"+Ih(d,n),class:ge(m,v),tabindex:"-1","data-index":n,"aria-hidden":!m["slick-active"],style:E(E({},d.props.style||{}),p),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(f)}}))),i!==e.slidesToShow&&(n=i+c,n{e.focusOnSelect&&e.focusOnSelect(f)}})))}}),e.rtl?o.concat(r,a).reverse():o.concat(r,a)},MI=(e,t)=>{let{attrs:n,slots:r}=t;const o=ute(n,Lt(r==null?void 0:r.default())),{onMouseenter:a,onMouseover:i,onMouseleave:l}=n,s={onMouseenter:a,onMouseover:i,onMouseleave:l},u=E({class:"slick-track",style:n.trackStyle},s);return C("div",u,[o])};MI.inheritAttrs=!1;const cte=MI,dte=function(e){let t;return e.infinite?t=Math.ceil(e.slideCount/e.slidesToScroll):t=Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,t},NI=(e,t)=>{let{attrs:n}=t;const{slideCount:r,slidesToScroll:o,slidesToShow:a,infinite:i,currentSlide:l,appendDots:s,customPaging:u,clickHandler:c,dotsClass:d,onMouseenter:f,onMouseover:p,onMouseleave:v}=n,m=dte({slideCount:r,slidesToScroll:o,slidesToShow:a,infinite:i}),h={onMouseenter:f,onMouseover:p,onMouseleave:v};let g=[];for(let x=0;x=S&&l<=w:l===S}),D={message:"dots",index:x,slidesToScroll:o,currentSlide:l};g=g.concat(C("li",{key:x,class:$},[At(u({i:x}),{onClick:O})]))}return At(s({dots:g}),E({class:d},h))};NI.inheritAttrs=!1;const fte=NI;function PI(){}function II(e,t,n){n&&n.preventDefault(),t(e,n)}const _I=(e,t)=>{let{attrs:n}=t;const{clickHandler:r,infinite:o,currentSlide:a,slideCount:i,slidesToShow:l}=n,s={"slick-arrow":!0,"slick-prev":!0};let u=function(p){II({message:"previous"},r,p)};!o&&(a===0||i<=l)&&(s["slick-disabled"]=!0,u=PI);const c={key:"0","data-role":"none",class:s,style:{display:"block"},onClick:u},d={currentSlide:a,slideCount:i};let f;return n.prevArrow?f=At(n.prevArrow(E(E({},c),d)),{key:"0",class:s,style:{display:"block"},onClick:u},!1):f=C("button",j({key:"0",type:"button"},c),[" ",sr("Previous")]),f};_I.inheritAttrs=!1;const BI=(e,t)=>{let{attrs:n}=t;const{clickHandler:r,currentSlide:o,slideCount:a}=n,i={"slick-arrow":!0,"slick-next":!0};let l=function(d){II({message:"next"},r,d)};Gm(n)||(i["slick-disabled"]=!0,l=PI);const s={key:"1","data-role":"none",class:ge(i),style:{display:"block"},onClick:l},u={currentSlide:o,slideCount:a};let c;return n.nextArrow?c=At(n.nextArrow(E(E({},s),u)),{key:"1",class:ge(i),style:{display:"block"},onClick:l},!1):c=C("button",j({key:"1",type:"button"},s),[" ",sr("Next")]),c};BI.inheritAttrs=!1;var pte=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{this.currentSlide>=e.children.length&&this.changeSlide({message:"index",index:e.children.length-e.slidesToShow,currentSlide:this.currentSlide}),!this.preProps.autoplay&&e.autoplay?this.handleAutoPlay("playing"):e.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.preProps=E({},e)}},mounted(){if(this.__emit("init"),this.lazyLoad){const e=bp(E(E({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e))}this.$nextTick(()=>{const e=E({listRef:this.list,trackRef:this.track,children:this.children},this.$props);this.updateState(e,!0,()=>{this.adaptHeight(),this.autoplay&&this.handleAutoPlay("playing")}),this.lazyLoad==="progressive"&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new Vy(()=>{this.animating?(this.onWindowResized(!1),this.callbackTimers.push(setTimeout(()=>this.onWindowResized(),this.speed))):this.onWindowResized()}),this.ro.observe(this.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),t=>{t.onfocus=this.$props.pauseOnFocus?this.onSlideFocus:null,t.onblur=this.$props.pauseOnFocus?this.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)})},beforeUnmount(){var e;this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach(t=>clearTimeout(t)),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer),(e=this.ro)===null||e===void 0||e.disconnect()},updated(){if(this.checkImagesLoad(),this.__emit("reInit"),this.lazyLoad){const e=bp(E(E({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad"))}this.adaptHeight()},methods:{listRefHandler(e){this.list=e},trackRefHandler(e){this.track=e},adaptHeight(){if(this.adaptiveHeight&&this.list){const e=this.list.querySelector(`[data-index="${this.currentSlide}"]`);this.list.style.height=rx(e)+"px"}},onWindowResized(e){this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=Zb(()=>this.resizeWindow(e),50),this.debouncedResize()},resizeWindow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!Boolean(this.track))return;const n=E(E({listRef:this.list,trackRef:this.track,children:this.children},this.$props),this.$data);this.updateState(n,e,()=>{this.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},updateState(e,t,n){const r=Yee(e);e=E(E(E({},e),r),{slideIndex:r.currentSlide});const o=Yu(e);e=E(E({},e),{left:o});const a=Xu(e);(t||this.children.length!==e.children.length)&&(r.trackStyle=a),this.setState(r,n)},ssrInit(){const e=this.children;if(this.variableWidth){let s=0,u=0;const c=[],d=da(E(E(E({},this.$props),this.$data),{slideCount:e.length})),f=ef(E(E(E({},this.$props),this.$data),{slideCount:e.length}));e.forEach(v=>{var m,h;const g=((h=(m=v.props.style)===null||m===void 0?void 0:m.width)===null||h===void 0?void 0:h.split("px")[0])||0;c.push(g),s+=g});for(let v=0;v{const o=()=>++n&&n>=t&&this.onWindowResized();if(!r.onclick)r.onclick=()=>r.parentNode.focus();else{const a=r.onclick;r.onclick=()=>{a(),r.parentNode.focus()}}r.onload||(this.$props.lazyLoad?r.onload=()=>{this.adaptHeight(),this.callbackTimers.push(setTimeout(this.onWindowResized,this.speed))}:(r.onload=o,r.onerror=()=>{o(),this.__emit("lazyLoadError")}))})},progressiveLazyLoad(){const e=[],t=E(E({},this.$props),this.$data);for(let n=this.currentSlide;n=-da(t);n--)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(this.setState(n=>({lazyLoadedList:n.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{asNavFor:n,currentSlide:r,beforeChange:o,speed:a,afterChange:i}=this.$props,{state:l,nextState:s}=Zee(E(E(E({index:e},this.$props),this.$data),{trackRef:this.track,useCSS:this.useCSS&&!t}));if(!l)return;o&&o(r,l.currentSlide);const u=l.lazyLoadedList.filter(c=>this.lazyLoadedList.indexOf(c)<0);this.$attrs.onLazyLoad&&u.length>0&&this.__emit("lazyLoad",u),!this.$props.waitForAnimate&&this.animationEndCallback&&(clearTimeout(this.animationEndCallback),i&&i(r),delete this.animationEndCallback),this.setState(l,()=>{n&&this.asNavForIndex!==e&&(this.asNavForIndex=e,n.innerSlider.slideHandler(e)),s&&(this.animationEndCallback=setTimeout(()=>{const{animating:c}=s,d=pte(s,["animating"]);this.setState(d,()=>{this.callbackTimers.push(setTimeout(()=>this.setState({animating:c}),10)),i&&i(l.currentSlide),delete this.animationEndCallback})},a))})},changeSlide(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=E(E({},this.$props),this.$data),r=Jee(n,e);if(!(r!==0&&!r)&&(t===!0?this.slideHandler(r,t):this.slideHandler(r),this.$props.autoplay&&this.handleAutoPlay("update"),this.$props.focusOnSelect)){const o=this.list.querySelectorAll(".slick-current");o[0]&&o[0].focus()}},clickHandler(e){this.clickable===!1&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler(e){const t=Qee(e,this.accessibility,this.rtl);t!==""&&this.changeSlide({message:t})},selectHandler(e){this.changeSlide(e)},disableBodyScroll(){const e=t=>{t=t||window.event,t.preventDefault&&t.preventDefault(),t.returnValue=!1};window.ontouchmove=e},enableBodyScroll(){window.ontouchmove=null},swipeStart(e){this.verticalSwiping&&this.disableBodyScroll();const t=ete(e,this.swipe,this.draggable);t!==""&&this.setState(t)},swipeMove(e){const t=tte(e,E(E(E({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));t&&(t.swiping&&(this.clickable=!1),this.setState(t))},swipeEnd(e){const t=nte(e,E(E(E({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(!t)return;const n=t.triggerSlideHandler;delete t.triggerSlideHandler,this.setState(t),n!==void 0&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())},touchEnd(e){this.swipeEnd(e),this.clickable=!0},slickPrev(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"previous"}),0))},slickNext(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"next"}),0))},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"index",index:e,currentSlide:this.currentSlide},t),0))},play(){let e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else if(Gm(E(E({},this.$props),this.$data)))e=this.currentSlide+this.slidesToScroll;else return!1;this.slideHandler(e)},handleAutoPlay(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);const t=this.autoplaying;if(e==="update"){if(t==="hovered"||t==="focused"||t==="paused")return}else if(e==="leave"){if(t==="paused"||t==="focused")return}else if(e==="blur"&&(t==="paused"||t==="hovered"))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:"playing"})},pause(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);const t=this.autoplaying;e==="paused"?this.setState({autoplaying:"paused"}):e==="focused"?(t==="hovered"||t==="playing")&&this.setState({autoplaying:"focused"}):t==="playing"&&this.setState({autoplaying:"hovered"})},onDotsOver(){this.autoplay&&this.pause("hovered")},onDotsLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onTrackOver(){this.autoplay&&this.pause("hovered")},onTrackLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onSlideFocus(){this.autoplay&&this.pause("focused")},onSlideBlur(){this.autoplay&&this.autoplaying==="focused"&&this.handleAutoPlay("blur")},customPaging(e){let{i:t}=e;return C("button",null,[t+1])},appendDots(e){let{dots:t}=e;return C("ul",{style:{display:"block"}},[t])}},render(){const e=ge("slick-slider",this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),t=E(E({},this.$props),this.$data);let n=Nh(t,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]);const{pauseOnHover:r}=this.$props;n=E(E({},n),{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:r?this.onTrackLeave:Or,onMouseover:r?this.onTrackOver:Or});let o;if(this.dots===!0&&this.slideCount>=this.slidesToShow){let h=Nh(t,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","infinite","appendDots"]);h.customPaging=this.customPaging,h.appendDots=this.appendDots;const{customPaging:g,appendDots:x}=this.$slots;g&&(h.customPaging=g),x&&(h.appendDots=x);const{pauseOnDotsHover:y}=this.$props;h=E(E({},h),{clickHandler:this.changeSlide,onMouseover:y?this.onDotsOver:Or,onMouseleave:y?this.onDotsLeave:Or}),o=C(fte,h,null)}let a,i;const l=Nh(t,["infinite","centerMode","currentSlide","slideCount","slidesToShow"]);l.clickHandler=this.changeSlide;const{prevArrow:s,nextArrow:u}=this.$slots;s&&(l.prevArrow=s),u&&(l.nextArrow=u),this.arrows&&(a=C(_I,l,null),i=C(BI,l,null));let c=null;this.vertical&&(c={height:typeof this.listHeight=="number"?`${this.listHeight}px`:this.listHeight});let d=null;this.vertical===!1?this.centerMode===!0&&(d={padding:"0px "+this.centerPadding}):this.centerMode===!0&&(d={padding:this.centerPadding+" 0px"});const f=E(E({},c),d),p=this.touchMove;let v={ref:this.listRefHandler,class:"slick-list",style:f,onClick:this.clickHandler,onMousedown:p?this.swipeStart:Or,onMousemove:this.dragging&&p?this.swipeMove:Or,onMouseup:p?this.swipeEnd:Or,onMouseleave:this.dragging&&p?this.swipeEnd:Or,[Dn?"onTouchstartPassive":"onTouchstart"]:p?this.swipeStart:Or,[Dn?"onTouchmovePassive":"onTouchmove"]:this.dragging&&p?this.swipeMove:Or,onTouchend:p?this.touchEnd:Or,onTouchcancel:this.dragging&&p?this.swipeEnd:Or,onKeydown:this.accessibility?this.keyHandler:Or},m={class:e,dir:"ltr",style:this.$attrs.style};return this.unslick&&(v={class:"slick-list",ref:this.listRefHandler},m={class:e}),C("div",m,[this.unslick?"":a,C("div",v,[C(cte,n,{default:()=>[this.children]})]),this.unslick?"":i,this.unslick?"":o])}},vte=he({name:"Slider",mixins:[nl],inheritAttrs:!1,props:E({},EI),data(){return this._responsiveMediaHandlers=[],{breakpoint:null}},mounted(){if(this.responsive){const e=this.responsive.map(n=>n.breakpoint);e.sort((n,r)=>n-r),e.forEach((n,r)=>{let o;r===0?o=Mh({minWidth:0,maxWidth:n}):o=Mh({minWidth:e[r-1]+1,maxWidth:n}),i2()&&this.media(o,()=>{this.setState({breakpoint:n})})});const t=Mh({minWidth:e.slice(-1)[0]});i2()&&this.media(t,()=>{this.setState({breakpoint:null})})}},beforeUnmount(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})},methods:{innerSliderRefHandler(e){this.innerSlider=e},media(e,t){const n=window.matchMedia(e),r=o=>{let{matches:a}=o;a&&t()};n.addListener(r),r(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})},slickPrev(){var e;(e=this.innerSlider)===null||e===void 0||e.slickPrev()},slickNext(){var e;(e=this.innerSlider)===null||e===void 0||e.slickNext()},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var n;(n=this.innerSlider)===null||n===void 0||n.slickGoTo(e,t)},slickPause(){var e;(e=this.innerSlider)===null||e===void 0||e.pause("paused")},slickPlay(){var e;(e=this.innerSlider)===null||e===void 0||e.handleAutoPlay("play")}},render(){var e;let t,n;this.breakpoint?(n=this.responsive.filter(l=>l.breakpoint===this.breakpoint),t=n[0].settings==="unslick"?"unslick":E(E({},this.$props),n[0].settings)):t=E({},this.$props),t.centerMode&&(t.slidesToScroll>1,t.slidesToScroll=1),t.fade&&(t.slidesToShow>1,t.slidesToScroll>1,t.slidesToShow=1,t.slidesToScroll=1);let r=rm(this)||[];r=r.filter(l=>typeof l=="string"?!!l.trim():!!l),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),t.variableWidth=!1);const o=[];let a=null;for(let l=0;l=r.length));d+=1)c.push(At(r[d],{key:100*l+10*u+d,tabindex:-1,style:{width:`${100/t.slidesPerRow}%`,display:"inline-block"}}));s.push(C("div",{key:10*l+u},[c]))}t.variableWidth?o.push(C("div",{key:l,style:{width:a}},[s])):o.push(C("div",{key:l},[s]))}if(t==="unslick"){const l="regular slider "+(this.className||"");return C("div",{class:l},[r])}else o.length<=t.slidesToShow&&(t.unslick=!0);const i=E(E(E({},this.$attrs),t),{children:o,ref:this.innerSliderRefHandler});return C(mte,j(j({},i),{},{__propsSymbol__:[]}),this.$slots)}}),hte=e=>{const{componentCls:t,antCls:n,carouselArrowSize:r,carouselDotOffset:o,marginXXS:a}=e,i=-r*1.25,l=a;return{[t]:E(E({},rt(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:r,height:r,marginTop:-r/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:i,"&::before":{content:'"←"'}},".slick-next":{insetInlineEnd:i,"&::before":{content:'"→"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,listStyle:"none","&-bottom":{bottom:o},"&-top":{top:o,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:l,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-l,content:'""'}},"&.slick-active":{width:e.dotWidthActive,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},gte=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:r}=e,o={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:E(E({},o),{margin:`${r}px 0`,verticalAlign:"baseline",button:o,"&.slick-active":E(E({},o),{button:o})})}}}},yte=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},bte=nt("Carousel",e=>{const{controlHeightLG:t,controlHeightSM:n}=e,r=qe(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[hte(r),gte(r),yte(r)]},{dotWidth:16,dotHeight:3,dotWidthActive:24});var xte=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o({effect:Ue(),dots:Pe(!0),vertical:Pe(),autoplay:Pe(),easing:String,beforeChange:Oe(),afterChange:Oe(),prefixCls:String,accessibility:Pe(),nextArrow:Z.any,prevArrow:Z.any,pauseOnHover:Pe(),adaptiveHeight:Pe(),arrows:Pe(!1),autoplaySpeed:Number,centerMode:Pe(),centerPadding:String,cssEase:String,dotsClass:String,draggable:Pe(!1),fade:Pe(),focusOnSelect:Pe(),infinite:Pe(),initialSlide:Number,lazyLoad:Ue(),rtl:Pe(),slide:String,slidesToShow:Number,slidesToScroll:Number,speed:Number,swipe:Pe(),swipeToSlide:Pe(),swipeEvent:Oe(),touchMove:Pe(),touchThreshold:Number,variableWidth:Pe(),useCSS:Pe(),slickGoTo:Number,responsive:Array,dotPosition:Ue(),verticalSwiping:Pe(!1)}),Ste=he({compatConfig:{MODE:3},name:"ACarousel",inheritAttrs:!1,props:wte(),setup(e,t){let{slots:n,attrs:r,expose:o}=t;const a=be();o({goTo:function(v){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var h;(h=a.value)===null||h===void 0||h.slickGoTo(v,m)},autoplay:v=>{var m,h;(h=(m=a.value)===null||m===void 0?void 0:m.innerSlider)===null||h===void 0||h.handleAutoPlay(v)},prev:()=>{var v;(v=a.value)===null||v===void 0||v.slickPrev()},next:()=>{var v;(v=a.value)===null||v===void 0||v.slickNext()},innerSlider:z(()=>{var v;return(v=a.value)===null||v===void 0?void 0:v.innerSlider})}),Je(()=>{Jt(e.vertical===void 0)});const{prefixCls:l,direction:s}=He("carousel",e),[u,c]=bte(l),d=z(()=>e.dotPosition?e.dotPosition:e.vertical!==void 0&&e.vertical?"right":"bottom"),f=z(()=>d.value==="left"||d.value==="right"),p=z(()=>{const v="slick-dots";return ge({[v]:!0,[`${v}-${d.value}`]:!0,[`${e.dotsClass}`]:!!e.dotsClass})});return()=>{const{dots:v,arrows:m,draggable:h,effect:g}=e,{class:x,style:y}=r,w=xte(r,["class","style"]),b=g==="fade"?!0:e.fade,S=ge(l.value,{[`${l.value}-rtl`]:s.value==="rtl",[`${l.value}-vertical`]:f.value,[`${x}`]:!!x},c.value);return u(C("div",{class:S,style:y},[C(vte,j(j(j({ref:a},e),w),{},{dots:!!v,dotsClass:p.value,arrows:m,draggable:h,fade:b,vertical:f.value}),n)]))}}}),Cte=rn(Ste),ax="__RC_CASCADER_SPLIT__",FI="SHOW_PARENT",RI="SHOW_CHILD";function ei(e){return e.join(ax)}function Fl(e){return e.map(ei)}function $te(e){return e.split(ax)}function Ete(e){const{label:t,value:n,children:r}=e||{},o=n||"value";return{label:t||"label",value:o,key:o,children:r||"children"}}function au(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!(!((r=e[t.children])===null||r===void 0)&&r.length)}function Dte(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})}const zI=Symbol("TreeContextKey"),Ate=he({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return it(zI,z(()=>e.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),ix=()=>lt(zI,z(()=>({}))),LI=Symbol("KeysStateKey"),Ote=e=>{it(LI,e)},kI=()=>lt(LI,{expandedKeys:pe([]),selectedKeys:pe([]),loadedKeys:pe([]),loadingKeys:pe([]),checkedKeys:pe([]),halfCheckedKeys:pe([]),expandedKeysSet:z(()=>new Set),selectedKeysSet:z(()=>new Set),loadedKeysSet:z(()=>new Set),loadingKeysSet:z(()=>new Set),checkedKeysSet:z(()=>new Set),halfCheckedKeysSet:z(()=>new Set),flattenNodes:pe([])}),Tte=e=>{let{prefixCls:t,level:n,isStart:r,isEnd:o}=e;const a=`${t}-indent-unit`,i=[];for(let l=0;l({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:Z.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:Z.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:Z.any,switcherIcon:Z.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object});var Pte=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o"`v-slot:"+oe+"` ")}`;const a=pe(!1),i=ix(),{expandedKeysSet:l,selectedKeysSet:s,loadedKeysSet:u,loadingKeysSet:c,checkedKeysSet:d,halfCheckedKeysSet:f}=kI(),{dragOverNodeKey:p,dropPosition:v,keyEntities:m}=i.value,h=z(()=>tf(e.eventKey,{expandedKeysSet:l.value,selectedKeysSet:s.value,loadedKeysSet:u.value,loadingKeysSet:c.value,checkedKeysSet:d.value,halfCheckedKeysSet:f.value,dragOverNodeKey:p,dropPosition:v,keyEntities:m})),g=Pr(()=>h.value.expanded),x=Pr(()=>h.value.selected),y=Pr(()=>h.value.checked),w=Pr(()=>h.value.loaded),b=Pr(()=>h.value.loading),S=Pr(()=>h.value.halfChecked),$=Pr(()=>h.value.dragOver),D=Pr(()=>h.value.dragOverGapTop),O=Pr(()=>h.value.dragOverGapBottom),A=Pr(()=>h.value.pos),T=pe(),M=z(()=>{const{eventKey:oe}=e,{keyEntities:ie}=i.value,{children:ve}=ie[oe]||{};return!!(ve||[]).length}),B=z(()=>{const{isLeaf:oe}=e,{loadData:ie}=i.value,ve=M.value;return oe===!1?!1:oe||!ie&&!ve||ie&&w.value&&!ve}),F=z(()=>B.value?null:g.value?l2:s2),P=z(()=>{const{disabled:oe}=e,{disabled:ie}=i.value;return!!(ie||oe)}),I=z(()=>{const{checkable:oe}=e,{checkable:ie}=i.value;return!ie||oe===!1?!1:ie}),N=z(()=>{const{selectable:oe}=e,{selectable:ie}=i.value;return typeof oe=="boolean"?oe:ie}),R=z(()=>{const{data:oe,active:ie,checkable:ve,disableCheckbox:we,disabled:$e,selectable:Ae}=e;return E(E({active:ie,checkable:ve,disableCheckbox:we,disabled:$e,selectable:Ae},oe),{dataRef:oe,data:oe,isLeaf:B.value,checked:y.value,expanded:g.value,loading:b.value,selected:x.value,halfChecked:S.value})}),_=Kn(),L=z(()=>{const{eventKey:oe}=e,{keyEntities:ie}=i.value,{parent:ve}=ie[oe]||{};return E(E({},nf(E({},e,h.value))),{parent:ve})}),k=_t({eventData:L,eventKey:z(()=>e.eventKey),selectHandle:T,pos:A,key:_.vnode.key});o(k);const H=oe=>{const{onNodeDoubleClick:ie}=i.value;ie(oe,L.value)},V=oe=>{if(P.value)return;const{onNodeSelect:ie}=i.value;oe.preventDefault(),ie(oe,L.value)},U=oe=>{if(P.value)return;const{disableCheckbox:ie}=e,{onNodeCheck:ve}=i.value;if(!I.value||ie)return;oe.preventDefault();const we=!y.value;ve(oe,L.value,we)},q=oe=>{const{onNodeClick:ie}=i.value;ie(oe,L.value),N.value?V(oe):U(oe)},K=oe=>{const{onNodeMouseEnter:ie}=i.value;ie(oe,L.value)},X=oe=>{const{onNodeMouseLeave:ie}=i.value;ie(oe,L.value)},re=oe=>{const{onNodeContextMenu:ie}=i.value;ie(oe,L.value)},ee=oe=>{const{onNodeDragStart:ie}=i.value;oe.stopPropagation(),a.value=!0,ie(oe,k);try{oe.dataTransfer.setData("text/plain","")}catch{}},G=oe=>{const{onNodeDragEnter:ie}=i.value;oe.preventDefault(),oe.stopPropagation(),ie(oe,k)},le=oe=>{const{onNodeDragOver:ie}=i.value;oe.preventDefault(),oe.stopPropagation(),ie(oe,k)},ue=oe=>{const{onNodeDragLeave:ie}=i.value;oe.stopPropagation(),ie(oe,k)},me=oe=>{const{onNodeDragEnd:ie}=i.value;oe.stopPropagation(),a.value=!1,ie(oe,k)},Se=oe=>{const{onNodeDrop:ie}=i.value;oe.preventDefault(),oe.stopPropagation(),a.value=!1,ie(oe,k)},Q=oe=>{const{onNodeExpand:ie}=i.value;b.value||ie(oe,L.value)},te=()=>{const{data:oe}=e,{draggable:ie}=i.value;return!!(ie&&(!ie.nodeDraggable||ie.nodeDraggable(oe)))},de=()=>{const{draggable:oe,prefixCls:ie}=i.value;return oe&&(oe!=null&&oe.icon)?C("span",{class:`${ie}-draggable-icon`},[oe.icon]):null},Y=()=>{var oe,ie,ve;const{switcherIcon:we=r.switcherIcon||((oe=i.value.slots)===null||oe===void 0?void 0:oe[(ve=(ie=e.data)===null||ie===void 0?void 0:ie.slots)===null||ve===void 0?void 0:ve.switcherIcon])}=e,{switcherIcon:$e}=i.value,Ae=we||$e;return typeof Ae=="function"?Ae(R.value):Ae},ae=()=>{const{loadData:oe,onNodeLoad:ie}=i.value;b.value||oe&&g.value&&!B.value&&!M.value&&!w.value&&ie(L.value)};Qe(()=>{ae()}),Sr(()=>{ae()});const ce=()=>{const{prefixCls:oe}=i.value,ie=Y();if(B.value)return ie!==!1?C("span",{class:ge(`${oe}-switcher`,`${oe}-switcher-noop`)},[ie]):null;const ve=ge(`${oe}-switcher`,`${oe}-switcher_${g.value?l2:s2}`);return ie!==!1?C("span",{onClick:Q,class:ve},[ie]):null},Ce=()=>{var oe,ie;const{disableCheckbox:ve}=e,{prefixCls:we}=i.value,$e=P.value;return I.value?C("span",{class:ge(`${we}-checkbox`,y.value&&`${we}-checkbox-checked`,!y.value&&S.value&&`${we}-checkbox-indeterminate`,($e||ve)&&`${we}-checkbox-disabled`),onClick:U},[(ie=(oe=i.value).customCheckable)===null||ie===void 0?void 0:ie.call(oe)]):null},ye=()=>{const{prefixCls:oe}=i.value;return C("span",{class:ge(`${oe}-iconEle`,`${oe}-icon__${F.value||"docu"}`,b.value&&`${oe}-icon_loading`)},null)},J=()=>{const{disabled:oe,eventKey:ie}=e,{draggable:ve,dropLevelOffset:we,dropPosition:$e,prefixCls:Ae,indent:xe,dropIndicatorRender:Ee,dragOverNodeKey:Te,direction:Me}=i.value;return!oe&&ve!==!1&&Te===ie?Ee({dropPosition:$e,dropLevelOffset:we,indent:xe,prefixCls:Ae,direction:Me}):null},ne=()=>{var oe,ie,ve,we,$e,Ae;const{icon:xe=r.icon,data:Ee}=e,Te=r.title||((oe=i.value.slots)===null||oe===void 0?void 0:oe[(ve=(ie=e.data)===null||ie===void 0?void 0:ie.slots)===null||ve===void 0?void 0:ve.title])||((we=i.value.slots)===null||we===void 0?void 0:we.title)||e.title,{prefixCls:Me,showIcon:Re,icon:Be,loadData:je}=i.value,W=P.value,fe=`${Me}-node-content-wrapper`;let De;if(Re){const Ge=xe||(($e=i.value.slots)===null||$e===void 0?void 0:$e[(Ae=Ee==null?void 0:Ee.slots)===null||Ae===void 0?void 0:Ae.icon])||Be;De=Ge?C("span",{class:ge(`${Me}-iconEle`,`${Me}-icon__customize`)},[typeof Ge=="function"?Ge(R.value):Ge]):ye()}else je&&b.value&&(De=ye());let Ie;typeof Te=="function"?Ie=Te(R.value):Ie=Te,Ie=Ie===void 0?Ite:Ie;const Ve=C("span",{class:`${Me}-title`},[Ie]);return C("span",{ref:T,title:typeof Te=="string"?Te:"",class:ge(`${fe}`,`${fe}-${F.value||"normal"}`,!W&&(x.value||a.value)&&`${Me}-node-selected`),onMouseenter:K,onMouseleave:X,onContextmenu:re,onClick:q,onDblclick:H},[De,Ve,J()])};return()=>{const oe=E(E({},e),n),{eventKey:ie,isLeaf:ve,isStart:we,isEnd:$e,domRef:Ae,active:xe,data:Ee,onMousemove:Te,selectable:Me}=oe,Re=Pte(oe,["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"]),{prefixCls:Be,filterTreeNode:je,keyEntities:W,dropContainerKey:fe,dropTargetKey:De,draggingNodeKey:Ie}=i.value,Ve=P.value,Ge=ci(Re,{aria:!0,data:!0}),{level:Ct}=W[ie]||{},Nt=$e[$e.length-1],Wt=te(),fn=!Ve&&Wt,Ln=Ie===ie,Er=Me!==void 0?{"aria-selected":!!Me}:void 0;return C("div",j(j({ref:Ae,class:ge(n.class,`${Be}-treenode`,{[`${Be}-treenode-disabled`]:Ve,[`${Be}-treenode-switcher-${g.value?"open":"close"}`]:!ve,[`${Be}-treenode-checkbox-checked`]:y.value,[`${Be}-treenode-checkbox-indeterminate`]:S.value,[`${Be}-treenode-selected`]:x.value,[`${Be}-treenode-loading`]:b.value,[`${Be}-treenode-active`]:xe,[`${Be}-treenode-leaf-last`]:Nt,[`${Be}-treenode-draggable`]:fn,dragging:Ln,"drop-target":De===ie,"drop-container":fe===ie,"drag-over":!Ve&&$.value,"drag-over-gap-top":!Ve&&D.value,"drag-over-gap-bottom":!Ve&&O.value,"filter-node":je&&je(L.value)}),style:n.style,draggable:fn,"aria-grabbed":Ln,onDragstart:fn?ee:void 0,onDragenter:Wt?G:void 0,onDragover:Wt?le:void 0,onDragleave:Wt?ue:void 0,onDrop:Wt?Se:void 0,onDragend:Wt?me:void 0,onMousemove:Te},Er),Ge),[C(Mte,{prefixCls:Be,level:Ct,isStart:we,isEnd:$e},null),de(),ce(),Ce(),ne()])}}});globalThis&&globalThis.__rest;function No(e,t){if(!e)return[];const n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function ta(e,t){const n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function lx(e){return e.split("-")}function VI(e,t){return`${e}-${t}`}function _te(e){return e&&e.type&&e.type.isTreeNode}function Bte(e,t){const n=[],r=t[e];function o(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).forEach(i=>{let{key:l,children:s}=i;n.push(l),o(s)})}return o(r.children),n}function Fte(e){if(e.parent){const t=lx(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Rte(e){const t=lx(e.pos);return Number(t[t.length-1])===0}function u2(e,t,n,r,o,a,i,l,s,u){var c;const{clientX:d,clientY:f}=e,{top:p,height:v}=e.target.getBoundingClientRect(),h=((u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-d)-12)/r;let g=l[n.eventKey];if(fB.key===g.key),T=A<=0?0:A-1,M=i[T].key;g=l[M]}const x=g.key,y=g,w=g.key;let b=0,S=0;if(!s.has(x))for(let A=0;A-1.5?a({dragNode:$,dropNode:D,dropPosition:1})?b=1:O=!1:a({dragNode:$,dropNode:D,dropPosition:0})?b=0:a({dragNode:$,dropNode:D,dropPosition:1})?b=1:O=!1:a({dragNode:$,dropNode:D,dropPosition:1})?b=1:O=!1,{dropPosition:b,dropLevelOffset:S,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:w,dropContainerKey:b===0?null:((c=g.parent)===null||c===void 0?void 0:c.key)||null,dropAllowed:O}}function c2(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function _h(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e=="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return null;return t}function x0(e,t){const n=new Set;function r(o){if(n.has(o))return;const a=t[o];if(!a)return;n.add(o);const{parent:i,node:l}=a;l.disabled||i&&r(i.key)}return(e||[]).forEach(o=>{r(o)}),[...n]}var zte=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o0&&arguments[0]!==void 0?arguments[0]:[];return nn(n).map(o=>{var a,i,l,s;if(!_te(o))return null;const u=o.children||{},c=o.key,d={};for(const[A,T]of Object.entries(o.props))d[Yi(A)]=T;const{isLeaf:f,checkable:p,selectable:v,disabled:m,disableCheckbox:h}=d,g={isLeaf:f||f===""||void 0,checkable:p||p===""||void 0,selectable:v||v===""||void 0,disabled:m||m===""||void 0,disableCheckbox:h||h===""||void 0},x=E(E({},d),g),{title:y=(a=u.title)===null||a===void 0?void 0:a.call(u,x),icon:w=(i=u.icon)===null||i===void 0?void 0:i.call(u,x),switcherIcon:b=(l=u.switcherIcon)===null||l===void 0?void 0:l.call(u,x)}=d,S=zte(d,["title","icon","switcherIcon"]),$=(s=u.default)===null||s===void 0?void 0:s.call(u),D=E(E(E({},S),{title:y,icon:w,switcherIcon:b,key:c,isLeaf:f}),g),O=t($);return O.length&&(D.children=O),D})}return t(e)}function Lte(e,t,n){const{_title:r,key:o,children:a}=Xm(n),i=new Set(t===!0?[]:t),l=[];function s(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((d,f)=>{const p=VI(c?c.pos:"0",f),v=Sc(d[o],p);let m;for(let g=0;gf[a]:typeof a=="function"&&(c=f=>a(f)):c=(f,p)=>Sc(f[l],p);function d(f,p,v,m){const h=f?f[u]:e,g=f?VI(v.pos,p):"0",x=f?[...m,f]:[];if(f){const y=c(f,g),w={node:f,index:p,pos:g,key:y,parentPos:v.node?v.pos:null,level:v.level+1,nodes:x};t(w)}h&&h.forEach((y,w)=>{d(y,w,{node:f,pos:g,level:v?v.level+1:-1},x)})}d(null)}function Cc(e){let{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:o,childrenPropName:a,fieldNames:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0;const s=o||l,u={},c={};let d={posEntities:u,keyEntities:c};return t&&(d=t(d)||d),kte(e,f=>{const{node:p,index:v,pos:m,key:h,parentPos:g,level:x,nodes:y}=f,w={node:p,nodes:y,index:v,key:h,pos:m,level:x},b=Sc(h,m);u[m]=w,c[b]=w,w.parent=u[g],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),n&&n(w,d)},{externalGetKey:s,childrenPropName:a,fieldNames:i}),r&&r(d),d}function tf(e,t){let{expandedKeysSet:n,selectedKeysSet:r,loadedKeysSet:o,loadingKeysSet:a,checkedKeysSet:i,halfCheckedKeysSet:l,dragOverNodeKey:s,dropPosition:u,keyEntities:c}=t;const d=c[e];return{eventKey:e,expanded:n.has(e),selected:r.has(e),loaded:o.has(e),loading:a.has(e),checked:i.has(e),halfChecked:l.has(e),pos:String(d?d.pos:""),parent:d.parent,dragOver:s===e&&u===0,dragOverGapTop:s===e&&u===-1,dragOverGapBottom:s===e&&u===1}}function nf(e){const{data:t,expanded:n,selected:r,checked:o,loaded:a,loading:i,halfChecked:l,dragOver:s,dragOverGapTop:u,dragOverGapBottom:c,pos:d,active:f,eventKey:p}=e,v=E(E({dataRef:t},t),{expanded:n,selected:r,checked:o,loaded:a,loading:i,halfChecked:l,dragOver:s,dragOverGapTop:u,dragOverGapBottom:c,pos:d,active:f,eventKey:p,key:p});return"props"in v||Object.defineProperty(v,"props",{get(){return e}}),v}const Hte=(e,t)=>z(()=>Cc(e.value,{fieldNames:t.value,initWrapper:r=>E(E({},r),{pathKeyEntities:{}}),processEntity:(r,o)=>{const a=r.nodes.map(i=>i[t.value.value]).join(ax);o.pathKeyEntities[a]=r,r.key=a}}).pathKeyEntities);function jte(e){const t=pe(!1),n=be({});return Je(()=>{if(!e.value){t.value=!1,n.value={};return}let r={matchInputWidth:!0,limit:50};e.value&&typeof e.value=="object"&&(r=E(E({},r),e.value)),r.limit<=0&&delete r.limit,t.value=!0,n.value=r}),{showSearch:t,searchConfig:n}}const xu="__rc_cascader_search_mark__",Vte=(e,t,n)=>{let{label:r}=n;return t.some(o=>String(o[r]).toLowerCase().includes(e.toLowerCase()))},Wte=e=>{let{path:t,fieldNames:n}=e;return t.map(r=>r[n.label]).join(" / ")},Ute=(e,t,n,r,o,a)=>z(()=>{const{filter:i=Vte,render:l=Wte,limit:s=50,sort:u}=o.value,c=[];if(!e.value)return[];function d(f,p){f.forEach(v=>{if(!u&&s>0&&c.length>=s)return;const m=[...p,v],h=v[n.value.children];(!h||h.length===0||a.value)&&i(e.value,m,{label:n.value.label})&&c.push(E(E({},v),{[n.value.label]:l({inputValue:e.value,path:m,prefixCls:r.value,fieldNames:n.value}),[xu]:m})),h&&d(v[n.value.children],m)})}return d(t.value,[]),u&&c.sort((f,p)=>u(f[xu],p[xu],e.value,n.value)),s>0?c.slice(0,s):c});function d2(e,t,n){const r=new Set(e);return e.filter(o=>{const a=t[o],i=a?a.parent:null,l=a?a.children:null;return n===RI?!(l&&l.some(s=>s.key&&r.has(s.key))):!(i&&!i.node.disabled&&r.has(i.key))})}function Zu(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;var o;let a=t;const i=[];for(let l=0;l{const f=d[n.value];return r?String(f)===String(s):f===s}),c=u!==-1?a==null?void 0:a[u]:null;i.push({value:(o=c==null?void 0:c[n.value])!==null&&o!==void 0?o:s,index:u,option:c}),a=c==null?void 0:c[n.children]}return i}const Kte=(e,t,n)=>z(()=>{const r=[],o=[];return n.value.forEach(a=>{Zu(a,e.value,t.value).every(l=>l.option)?o.push(a):r.push(a)}),[o,r]});function WI(e,t){const n=new Set;return e.forEach(r=>{t.has(r)||n.add(r)}),n}function qte(e){const{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function Gte(e,t,n,r){const o=new Set(e),a=new Set;for(let l=0;l<=n;l+=1)(t.get(l)||new Set).forEach(u=>{const{key:c,node:d,children:f=[]}=u;o.has(c)&&!r(d)&&f.filter(p=>!r(p.node)).forEach(p=>{o.add(p.key)})});const i=new Set;for(let l=n;l>=0;l-=1)(t.get(l)||new Set).forEach(u=>{const{parent:c,node:d}=u;if(r(d)||!u.parent||i.has(u.parent.key))return;if(r(u.parent.node)){i.add(c.key);return}let f=!0,p=!1;(c.children||[]).filter(v=>!r(v.node)).forEach(v=>{let{key:m}=v;const h=o.has(m);f&&!h&&(f=!1),!p&&(h||a.has(m))&&(p=!0)}),f&&o.add(c.key),p&&a.add(c.key),i.add(c.key)});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(WI(a,o))}}function Xte(e,t,n,r,o){const a=new Set(e);let i=new Set(t);for(let s=0;s<=r;s+=1)(n.get(s)||new Set).forEach(c=>{const{key:d,node:f,children:p=[]}=c;!a.has(d)&&!i.has(d)&&!o(f)&&p.filter(v=>!o(v.node)).forEach(v=>{a.delete(v.key)})});i=new Set;const l=new Set;for(let s=r;s>=0;s-=1)(n.get(s)||new Set).forEach(c=>{const{parent:d,node:f}=c;if(o(f)||!c.parent||l.has(c.parent.key))return;if(o(c.parent.node)){l.add(d.key);return}let p=!0,v=!1;(d.children||[]).filter(m=>!o(m.node)).forEach(m=>{let{key:h}=m;const g=a.has(h);p&&!g&&(p=!1),!v&&(g||i.has(h))&&(v=!0)}),p||a.delete(d.key),v&&i.add(d.key),l.add(d.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(WI(i,a))}}function Yr(e,t,n,r,o,a){let i;a?i=a:i=qte;const l=new Set(e.filter(u=>!!n[u]));let s;return t===!0?s=Gte(l,o,r,i):s=Xte(l,t.halfCheckedKeys,o,r,i),s}const Yte=(e,t,n,r,o)=>z(()=>{const a=o.value||(i=>{let{labels:l}=i;const s=r.value?l.slice(-1):l,u=" / ";return s.every(c=>["string","number"].includes(typeof c))?s.join(u):s.reduce((c,d,f)=>{const p=hn(d)?At(d,{key:f}):d;return f===0?[p]:[...c,u,p]},[])});return e.value.map(i=>{const l=Zu(i,t.value,n.value),s=a({labels:l.map(c=>{let{option:d,value:f}=c;var p;return(p=d==null?void 0:d[n.value.label])!==null&&p!==void 0?p:f}),selectedOptions:l.map(c=>{let{option:d}=c;return d})}),u=ei(i);return{label:s,value:u,key:u,valueCells:i}})}),UI=Symbol("CascaderContextKey"),Zte=e=>{it(UI,e)},Ym=()=>lt(UI),Jte=()=>{const e=fc(),{values:t}=Ym(),[n,r]=It([]);return Ne(()=>e.open,()=>{if(e.open&&!e.multiple){const o=t.value[0];r(o||[])}},{immediate:!0}),[n,r]},Qte=(e,t,n,r,o,a)=>{const i=fc(),l=z(()=>i.direction==="rtl"),[s,u,c]=[be([]),be(),be([])];Je(()=>{let m=-1,h=t.value;const g=[],x=[],y=r.value.length;for(let b=0;b$[n.value.value]===r.value[b]);if(S===-1)break;m=S,g.push(m),x.push(r.value[b]),h=h[m][n.value.children]}let w=t.value;for(let b=0;b{o(m)},f=m=>{const h=c.value.length;let g=u.value;g===-1&&m<0&&(g=h);for(let x=0;x{if(s.value.length>1){const m=s.value.slice(0,-1);d(m)}else i.toggleOpen(!1)},v=()=>{var m;const g=(((m=c.value[u.value])===null||m===void 0?void 0:m[n.value.children])||[]).find(x=>!x.disabled);if(g){const x=[...s.value,g[n.value.value]];d(x)}};e.expose({onKeydown:m=>{const{which:h}=m;switch(h){case _e.UP:case _e.DOWN:{let g=0;h===_e.UP?g=-1:h===_e.DOWN&&(g=1),g!==0&&f(g);break}case _e.LEFT:{l.value?v():p();break}case _e.RIGHT:{l.value?p():v();break}case _e.BACKSPACE:{i.searchValue||p();break}case _e.ENTER:{if(s.value.length){const g=c.value[u.value],x=(g==null?void 0:g[xu])||[];x.length?a(x.map(y=>y[n.value.value]),x[x.length-1]):a(s.value,g)}break}case _e.ESC:i.toggleOpen(!1),open&&m.stopPropagation()}},onKeyup:()=>{}})};function Zm(e){let{prefixCls:t,checked:n,halfChecked:r,disabled:o,onClick:a}=e;const{customSlots:i,checkable:l}=Ym(),s=l.value!==!1?i.value.checkable:l.value,u=typeof s=="function"?s():typeof s=="boolean"?null:s;return C("span",{class:{[t]:!0,[`${t}-checked`]:n,[`${t}-indeterminate`]:!n&&r,[`${t}-disabled`]:o},onClick:a},[u])}Zm.props=["prefixCls","checked","halfChecked","disabled","onClick"];Zm.displayName="Checkbox";Zm.inheritAttrs=!1;const KI="__cascader_fix_label__";function Jm(e){let{prefixCls:t,multiple:n,options:r,activeValue:o,prevValuePath:a,onToggleOpen:i,onSelect:l,onActive:s,checkedSet:u,halfCheckedSet:c,loadingKeys:d,isSelectable:f}=e;var p,v,m,h,g,x;const y=`${t}-menu`,w=`${t}-menu-item`,{fieldNames:b,changeOnSelect:S,expandTrigger:$,expandIcon:D,loadingIcon:O,dropdownMenuColumnStyle:A,customSlots:T}=Ym(),M=(p=D.value)!==null&&p!==void 0?p:(m=(v=T.value).expandIcon)===null||m===void 0?void 0:m.call(v),B=(h=O.value)!==null&&h!==void 0?h:(x=(g=T.value).loadingIcon)===null||x===void 0?void 0:x.call(g),F=$.value==="hover";return C("ul",{class:y,role:"menu"},[r.map(P=>{var I;const{disabled:N}=P,R=P[xu],_=(I=P[KI])!==null&&I!==void 0?I:P[b.value.label],L=P[b.value.value],k=au(P,b.value),H=R?R.map(G=>G[b.value.value]):[...a,L],V=ei(H),U=d.includes(V),q=u.has(V),K=c.has(V),X=()=>{!N&&(!F||!k)&&s(H)},re=()=>{f(P)&&l(H,k)};let ee;return typeof P.title=="string"?ee=P.title:typeof _=="string"&&(ee=_),C("li",{key:V,class:[w,{[`${w}-expand`]:!k,[`${w}-active`]:o===L,[`${w}-disabled`]:N,[`${w}-loading`]:U}],style:A.value,role:"menuitemcheckbox",title:ee,"aria-checked":q,"data-path-key":V,onClick:()=>{X(),(!n||k)&&re()},onDblclick:()=>{S.value&&i(!1)},onMouseenter:()=>{F&&X()},onMousedown:G=>{G.preventDefault()}},[n&&C(Zm,{prefixCls:`${t}-checkbox`,checked:q,halfChecked:K,disabled:N,onClick:G=>{G.stopPropagation(),re()}},null),C("div",{class:`${w}-content`},[_]),!U&&M&&!k&&C("div",{class:`${w}-expand-icon`},[M]),U&&B&&C("div",{class:`${w}-loading-icon`},[B])])})])}Jm.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"];Jm.displayName="Column";Jm.inheritAttrs=!1;const ene=he({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){const{attrs:n,slots:r}=t,o=fc(),a=be(),i=z(()=>o.direction==="rtl"),{options:l,values:s,halfValues:u,fieldNames:c,changeOnSelect:d,onSelect:f,searchOptions:p,dropdownPrefixCls:v,loadData:m,expandTrigger:h,customSlots:g}=Ym(),x=z(()=>v.value||o.prefixCls),y=pe([]),w=I=>{if(!m.value||o.searchValue)return;const R=Zu(I,l.value,c.value).map(L=>{let{option:k}=L;return k}),_=R[R.length-1];if(_&&!au(_,c.value)){const L=ei(I);y.value=[...y.value,L],m.value(R)}};Je(()=>{y.value.length&&y.value.forEach(I=>{const N=$te(I),R=Zu(N,l.value,c.value,!0).map(L=>{let{option:k}=L;return k}),_=R[R.length-1];(!_||_[c.value.children]||au(_,c.value))&&(y.value=y.value.filter(L=>L!==I))})});const b=z(()=>new Set(Fl(s.value))),S=z(()=>new Set(Fl(u.value))),[$,D]=Jte(),O=I=>{D(I),w(I)},A=I=>{const{disabled:N}=I,R=au(I,c.value);return!N&&(R||d.value||o.multiple)},T=function(I,N){let R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;f(I),!o.multiple&&(N||d.value&&(h.value==="hover"||R))&&o.toggleOpen(!1)},M=z(()=>o.searchValue?p.value:l.value),B=z(()=>{const I=[{options:M.value}];let N=M.value;for(let R=0;R<$.value.length;R+=1){const _=$.value[R],L=N.find(H=>H[c.value.value]===_),k=L==null?void 0:L[c.value.children];if(!(k!=null&&k.length))break;N=k,I.push({options:k})}return I});Qte(t,M,c,$,O,(I,N)=>{A(N)&&T(I,au(N,c.value),!0)});const P=I=>{I.preventDefault()};return Qe(()=>{Ne($,I=>{var N;for(let R=0;R{var I,N,R,_,L;const{notFoundContent:k=((I=r.notFoundContent)===null||I===void 0?void 0:I.call(r))||((R=(N=g.value).notFoundContent)===null||R===void 0?void 0:R.call(N)),multiple:H,toggleOpen:V}=o,U=!(!((L=(_=B.value[0])===null||_===void 0?void 0:_.options)===null||L===void 0)&&L.length),q=[{[c.value.value]:"__EMPTY__",[KI]:k,disabled:!0}],K=E(E({},n),{multiple:!U&&H,onSelect:T,onActive:O,onToggleOpen:V,checkedSet:b.value,halfCheckedSet:S.value,loadingKeys:y.value,isSelectable:A}),re=(U?[{options:q}]:B.value).map((ee,G)=>{const le=$.value.slice(0,G),ue=$.value[G];return C(Jm,j(j({key:G},K),{},{prefixCls:x.value,options:ee.options,prevValuePath:le,activeValue:ue}),null)});return C("div",{class:[`${x.value}-menus`,{[`${x.value}-menu-empty`]:U,[`${x.value}-rtl`]:i.value}],onMousedown:P,ref:a},[re])}}});function Qm(e){const t=be(0),n=pe();return Je(()=>{const r=new Map;let o=0;const a=e.value||{};for(const i in a)if(Object.prototype.hasOwnProperty.call(a,i)){const l=a[i],{level:s}=l;let u=r.get(s);u||(u=new Set,r.set(s,u)),u.add(l),o=Math.max(o,s)}t.value=o,n.value=r}),{maxLevel:t,levelEntities:n}}function tne(){return E(E({},pt(Dm(),["tokenSeparators","mode","showSearch"])),{id:String,prefixCls:String,fieldNames:We(),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:FI},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},popupClassName:String,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:Z.any,loadingIcon:Z.any})}function qI(){return E(E({},tne()),{onChange:Function,customSlots:Object})}function nne(e){return Array.isArray(e)&&Array.isArray(e[0])}function f2(e){return e?nne(e)?e:(e.length===0?[]:[e]).map(t=>Array.isArray(t)?t:[t]):[]}const rne=he({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:at(qI(),{}),setup(e,t){let{attrs:n,expose:r,slots:o}=t;const a=Pb(Ye(e,"id")),i=z(()=>!!e.checkable),[l,s]=Zt(e.defaultValue,{value:z(()=>e.value),postState:f2}),u=z(()=>Ete(e.fieldNames)),c=z(()=>e.options||[]),d=Hte(c,u),f=G=>{const le=d.value;return G.map(ue=>{const{nodes:me}=le[ue];return me.map(Se=>Se[u.value.value])})},[p,v]=Zt("",{value:z(()=>e.searchValue),postState:G=>G||""}),m=(G,le)=>{v(G),le.source!=="blur"&&e.onSearch&&e.onSearch(G)},{showSearch:h,searchConfig:g}=jte(Ye(e,"showSearch")),x=Ute(p,c,u,z(()=>e.dropdownPrefixCls||e.prefixCls),g,Ye(e,"changeOnSelect")),y=Kte(c,u,l),[w,b,S]=[be([]),be([]),be([])],{maxLevel:$,levelEntities:D}=Qm(d);Je(()=>{const[G,le]=y.value;if(!i.value||!l.value.length){[w.value,b.value,S.value]=[G,[],le];return}const ue=Fl(G),me=d.value,{checkedKeys:Se,halfCheckedKeys:Q}=Yr(ue,!0,me,$.value,D.value);[w.value,b.value,S.value]=[f(Se),f(Q),le]});const O=z(()=>{const G=Fl(w.value),le=d2(G,d.value,e.showCheckedStrategy);return[...S.value,...f(le)]}),A=Yte(O,c,u,i,Ye(e,"displayRender")),T=G=>{if(s(G),e.onChange){const le=f2(G),ue=le.map(Q=>Zu(Q,c.value,u.value).map(te=>te.option)),me=i.value?le:le[0],Se=i.value?ue:ue[0];e.onChange(me,Se)}},M=G=>{if(v(""),!i.value)T(G);else{const le=ei(G),ue=Fl(w.value),me=Fl(b.value),Se=ue.includes(le),Q=S.value.some(Y=>ei(Y)===le);let te=w.value,de=S.value;if(Q&&!Se)de=S.value.filter(Y=>ei(Y)!==le);else{const Y=Se?ue.filter(Ce=>Ce!==le):[...ue,le];let ae;Se?{checkedKeys:ae}=Yr(Y,{checked:!1,halfCheckedKeys:me},d.value,$.value,D.value):{checkedKeys:ae}=Yr(Y,!0,d.value,$.value,D.value);const ce=d2(ae,d.value,e.showCheckedStrategy);te=f(ce)}T([...de,...te])}},B=(G,le)=>{if(le.type==="clear"){T([]);return}const{valueCells:ue}=le.values[0];M(ue)},F=z(()=>e.open!==void 0?e.open:e.popupVisible),P=z(()=>e.dropdownClassName||e.popupClassName),I=z(()=>e.dropdownStyle||e.popupStyle||{}),N=z(()=>e.placement||e.popupPlacement),R=G=>{var le,ue;(le=e.onDropdownVisibleChange)===null||le===void 0||le.call(e,G),(ue=e.onPopupVisibleChange)===null||ue===void 0||ue.call(e,G)},{changeOnSelect:_,checkable:L,dropdownPrefixCls:k,loadData:H,expandTrigger:V,expandIcon:U,loadingIcon:q,dropdownMenuColumnStyle:K,customSlots:X}=Xr(e);Zte({options:c,fieldNames:u,values:w,halfValues:b,changeOnSelect:_,onSelect:M,checkable:L,searchOptions:x,dropdownPrefixCls:k,loadData:H,expandTrigger:V,expandIcon:U,loadingIcon:q,dropdownMenuColumnStyle:K,customSlots:X});const re=be();r({focus(){var G;(G=re.value)===null||G===void 0||G.focus()},blur(){var G;(G=re.value)===null||G===void 0||G.blur()},scrollTo(G){var le;(le=re.value)===null||le===void 0||le.scrollTo(G)}});const ee=z(()=>pt(e,["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","customSlots","showCheckedStrategy","children"]));return()=>{const G=!(p.value?x.value:c.value).length,{dropdownMatchSelectWidth:le=!1}=e,ue=p.value&&g.value.matchInputWidth||G?{}:{minWidth:"auto"};return C(Mb,j(j(j({},ee.value),n),{},{ref:re,id:a,prefixCls:e.prefixCls,dropdownMatchSelectWidth:le,dropdownStyle:E(E({},I.value),ue),displayValues:A.value,onDisplayValuesChange:B,mode:i.value?"multiple":void 0,searchValue:p.value,onSearch:m,showSearch:h.value,OptionList:ene,emptyOptions:G,open:F.value,dropdownClassName:P.value,placement:N.value,onDropdownVisibleChange:R,getRawInputElement:()=>{var me;return(me=o.default)===null||me===void 0?void 0:me.call(o)}}),o)}}});var one={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"};const ane=one;function p2(e){for(var t=1;tCo()&&window.document.documentElement,XI=e=>{if(Co()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(r=>r in n.style)}return!1},lne=(e,t)=>{if(!XI(e))return!1;const n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function ux(e,t){return!Array.isArray(e)&&t!==void 0?lne(e,t):XI(e)}let ud;const sne=()=>{if(!GI())return!1;if(ud!==void 0)return ud;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),ud=e.scrollHeight===1,document.body.removeChild(e),ud},YI=()=>{const e=pe(!1);return Qe(()=>{e.value=sne()}),e},ZI=Symbol("rowContextKey"),une=e=>{it(ZI,e)},cne=()=>lt(ZI,{gutter:z(()=>{}),wrap:z(()=>{}),supportFlexGap:z(()=>{})}),dne=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"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},fne=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},pne=(e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let a=r;a>=0;a--)a===0?(o[`${n}${t}-${a}`]={display:"none"},o[`${n}-push-${a}`]={insetInlineStart:"auto"},o[`${n}-pull-${a}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${a}`]={marginInlineEnd:0},o[`${n}${t}-order-${a}`]={order:0}):(o[`${n}${t}-${a}`]={display:"block",flex:`0 0 ${a/r*100}%`,maxWidth:`${a/r*100}%`},o[`${n}${t}-push-${a}`]={insetInlineStart:`${a/r*100}%`},o[`${n}${t}-pull-${a}`]={insetInlineEnd:`${a/r*100}%`},o[`${n}${t}-offset-${a}`]={marginInlineStart:`${a/r*100}%`},o[`${n}${t}-order-${a}`]={order:a});return o},S0=(e,t)=>pne(e,t),mne=(e,t,n)=>({[`@media (min-width: ${t}px)`]:E({},S0(e,n))}),vne=nt("Grid",e=>[dne(e)]),hne=nt("Grid",e=>{const t=qe(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[fne(t),S0(t,""),S0(t,"-xs"),Object.keys(n).map(r=>mne(t,n[r],r)).reduce((r,o)=>E(E({},r),o),{})]}),gne=()=>({align:Xe([String,Object]),justify:Xe([String,Object]),prefixCls:String,gutter:Xe([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}}),yne=he({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:gne(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("row",e),[i,l]=vne(o);let s;const u=c1(),c=be({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),d=be({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),f=y=>z(()=>{if(typeof e[y]=="string")return e[y];if(typeof e[y]!="object")return"";for(let w=0;w{s=u.value.subscribe(y=>{d.value=y;const w=e.gutter||0;(!Array.isArray(w)&&typeof w=="object"||Array.isArray(w)&&(typeof w[0]=="object"||typeof w[1]=="object"))&&(c.value=y)})}),st(()=>{u.value.unsubscribe(s)});const h=z(()=>{const y=[void 0,void 0],{gutter:w=0}=e;return(Array.isArray(w)?w:[w,void 0]).forEach((S,$)=>{if(typeof S=="object")for(let D=0;De.wrap)});const g=z(()=>ge(o.value,{[`${o.value}-no-wrap`]:e.wrap===!1,[`${o.value}-${v.value}`]:v.value,[`${o.value}-${p.value}`]:p.value,[`${o.value}-rtl`]:a.value==="rtl"},r.class,l.value)),x=z(()=>{const y=h.value,w={},b=y[0]!=null&&y[0]>0?`${y[0]/-2}px`:void 0,S=y[1]!=null&&y[1]>0?`${y[1]/-2}px`:void 0;return b&&(w.marginLeft=b,w.marginRight=b),m.value?w.rowGap=`${y[1]}px`:S&&(w.marginTop=S,w.marginBottom=S),w});return()=>{var y;return i(C("div",j(j({},r),{},{class:g.value,style:E(E({},x.value),r.style)}),[(y=n.default)===null||y===void 0?void 0:y.call(n)]))}}}),cx=yne;function Pi(){return Pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rf(e,t,n){return xne()?rf=Reflect.construct.bind():rf=function(o,a,i){var l=[null];l.push.apply(l,a);var s=Function.bind.apply(o,l),u=new s;return i&&Ju(u,i.prototype),u},rf.apply(null,arguments)}function wne(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function $0(e){var t=typeof Map=="function"?new Map:void 0;return $0=function(r){if(r===null||!wne(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return rf(r,arguments,C0(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ju(o,r)},$0(e)}var Sne=/%[sdj%]/g,Cne=function(){};function E0(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function _r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return i}return e}function $ne(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Fn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||$ne(t)&&typeof e=="string"&&!e)}function Ene(e,t,n){var r=[],o=0,a=e.length;function i(l){r.push.apply(r,l||[]),o++,o===a&&n(r)}e.forEach(function(l){t(l,i)})}function m2(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var l=r;r=r+1,l()\[\]\\.,;:\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,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},iu={integer:function(t){return iu.number(t)&&parseInt(t,10)===t},float:function(t){return iu.number(t)&&!iu.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!iu.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(y2.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Nne())},hex:function(t){return typeof t=="string"&&!!t.match(y2.hex)}},Pne=function(t,n,r,o,a){if(t.required&&n===void 0){JI(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;i.indexOf(l)>-1?iu[l](n)||o.push(_r(a.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(_r(a.messages.types[l],t.fullField,t.type))},Ine=function(t,n,r,o,a){var i=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,d=null,f=typeof n=="number",p=typeof n=="string",v=Array.isArray(n);if(f?d="number":p?d="string":v&&(d="array"),!d)return!1;v&&(c=n.length),p&&(c=n.replace(u,"_").length),i?c!==t.len&&o.push(_r(a.messages[d].len,t.fullField,t.len)):l&&!s&&ct.max?o.push(_r(a.messages[d].max,t.fullField,t.max)):l&&s&&(ct.max)&&o.push(_r(a.messages[d].range,t.fullField,t.min,t.max))},wl="enum",_ne=function(t,n,r,o,a){t[wl]=Array.isArray(t[wl])?t[wl]:[],t[wl].indexOf(n)===-1&&o.push(_r(a.messages[wl],t.fullField,t[wl].join(", ")))},Bne=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(_r(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(_r(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},zt={required:JI,whitespace:Mne,type:Pne,range:Ine,enum:_ne,pattern:Bne},Fne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"string")&&!t.required)return r();zt.required(t,n,o,i,a,"string"),Fn(n,"string")||(zt.type(t,n,o,i,a),zt.range(t,n,o,i,a),zt.pattern(t,n,o,i,a),t.whitespace===!0&&zt.whitespace(t,n,o,i,a))}r(i)},Rne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();zt.required(t,n,o,i,a),n!==void 0&&zt.type(t,n,o,i,a)}r(i)},zne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Fn(n)&&!t.required)return r();zt.required(t,n,o,i,a),n!==void 0&&(zt.type(t,n,o,i,a),zt.range(t,n,o,i,a))}r(i)},Lne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();zt.required(t,n,o,i,a),n!==void 0&&zt.type(t,n,o,i,a)}r(i)},kne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();zt.required(t,n,o,i,a),Fn(n)||zt.type(t,n,o,i,a)}r(i)},Hne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();zt.required(t,n,o,i,a),n!==void 0&&(zt.type(t,n,o,i,a),zt.range(t,n,o,i,a))}r(i)},jne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();zt.required(t,n,o,i,a),n!==void 0&&(zt.type(t,n,o,i,a),zt.range(t,n,o,i,a))}r(i)},Vne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();zt.required(t,n,o,i,a,"array"),n!=null&&(zt.type(t,n,o,i,a),zt.range(t,n,o,i,a))}r(i)},Wne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();zt.required(t,n,o,i,a),n!==void 0&&zt.type(t,n,o,i,a)}r(i)},Une="enum",Kne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();zt.required(t,n,o,i,a),n!==void 0&&zt[Une](t,n,o,i,a)}r(i)},qne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"string")&&!t.required)return r();zt.required(t,n,o,i,a),Fn(n,"string")||zt.pattern(t,n,o,i,a)}r(i)},Gne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"date")&&!t.required)return r();if(zt.required(t,n,o,i,a),!Fn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),zt.type(t,s,o,i,a),s&&zt.range(t,s.getTime(),o,i,a)}}r(i)},Xne=function(t,n,r,o,a){var i=[],l=Array.isArray(n)?"array":typeof n;zt.required(t,n,o,i,a,l),r(i)},Bh=function(t,n,r,o,a){var i=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Fn(n,i)&&!t.required)return r();zt.required(t,n,o,l,a,i),Fn(n,i)||zt.type(t,n,o,l,a)}r(l)},Yne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();zt.required(t,n,o,i,a)}r(i)},wu={string:Fne,method:Rne,number:zne,boolean:Lne,regexp:kne,integer:Hne,float:jne,array:Vne,object:Wne,enum:Kne,pattern:qne,date:Gne,url:Bh,hex:Bh,email:Bh,required:Xne,any:Yne};function D0(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var A0=D0(),$c=function(){function e(n){this.rules=null,this._messages=A0,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var i=r[a];o.rules[a]=Array.isArray(i)?i:[i]})},t.messages=function(r){return r&&(this._messages=g2(D0(),r)),this._messages},t.validate=function(r,o,a){var i=this;o===void 0&&(o={}),a===void 0&&(a=function(){});var l=r,s=o,u=a;if(typeof s=="function"&&(u=s,s={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function c(m){var h=[],g={};function x(w){if(Array.isArray(w)){var b;h=(b=h).concat.apply(b,w)}else h.push(w)}for(var y=0;y3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!QI(e,t.slice(0,-1))?e:e8(e,t,n,r)}function O0(e){return ti(e)}function Jne(e,t){return QI(e,t)}function Qne(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Zne(e,t,n,r)}function ere(e,t){return e&&e.some(n=>nre(n,t))}function b2(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function t8(e,t){const n=Array.isArray(e)?[...e]:E({},e);return t&&Object.keys(t).forEach(r=>{const o=n[r],a=t[r],i=b2(o)&&b2(a);n[r]=i?t8(o,a||{}):a}),n}function tre(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rt8(o,a),e)}function x2(e,t){let n={};return t.forEach(r=>{const o=Jne(e,r);n=Qne(n,r,o)}),n}function nre(e,t){return!e||!t||e.length!==t.length?!1:e.every((n,r)=>t[r]===n)}const Tr="'${name}' is not a valid ${type}",ev={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:Tr,method:Tr,array:Tr,object:Tr,number:Tr,date:Tr,boolean:Tr,integer:Tr,float:Tr,regexp:Tr,email:Tr,url:Tr,hex:Tr},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 tv=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function l(c){try{u(r.next(c))}catch(d){i(d)}}function s(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?a(c.value):o(c.value).then(l,s)}u((r=r.apply(e,t||[])).next())})};const rre=$c;function ore(e,t){return e.replace(/\$\{\w+\}/g,n=>{const r=n.slice(2,-1);return t[r]})}function T0(e,t,n,r,o){return tv(this,void 0,void 0,function*(){const a=E({},n);delete a.ruleIndex,delete a.trigger;let i=null;a&&a.type==="array"&&a.defaultField&&(i=a.defaultField,delete a.defaultField);const l=new rre({[e]:[a]}),s=tre({},ev,r.validateMessages);l.messages(s);let u=[];try{yield Promise.resolve(l.validate({[e]:t},E({},r)))}catch(f){f.errors?u=f.errors.map((p,v)=>{let{message:m}=p;return hn(m)?ha(m,{key:`error_${v}`}):m}):(console.error(f),u=[s.default()])}if(!u.length&&i)return(yield Promise.all(t.map((p,v)=>T0(`${e}.${v}`,p,i,r,o)))).reduce((p,v)=>[...p,...v],[]);const c=E(E(E({},n),{name:e,enum:(n.enum||[]).join(", ")}),o);return u.map(f=>typeof f=="string"?ore(f,c):f)})}function n8(e,t,n,r,o,a){const i=e.join("."),l=n.map((u,c)=>{const d=u.validator,f=E(E({},u),{ruleIndex:c});return d&&(f.validator=(p,v,m)=>{let h=!1;const x=d(p,v,function(){for(var y=arguments.length,w=new Array(y),b=0;b{h||m(...w)})});h=x&&typeof x.then=="function"&&typeof x.catch=="function",h&&x.then(()=>{m()}).catch(y=>{m(y||" ")})}),f}).sort((u,c)=>{let{warningOnly:d,ruleIndex:f}=u,{warningOnly:p,ruleIndex:v}=c;return!!d==!!p?f-v:d?1:-1});let s;if(o===!0)s=new Promise((u,c)=>tv(this,void 0,void 0,function*(){for(let d=0;dT0(i,t,c,r,a).then(d=>({errors:d,rule:c})));s=(o?ire(u):are(u)).then(c=>Promise.reject(c))}return s.catch(u=>u),s}function are(e){return tv(this,void 0,void 0,function*(){return Promise.all(e).then(t=>[].concat(...t))})}function ire(e){return tv(this,void 0,void 0,function*(){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(o=>{o.errors.length&&n([o]),t+=1,t===e.length&&n([])})})})})}const r8=Symbol("formContextKey"),o8=e=>{it(r8,e)},dx=()=>lt(r8,{name:z(()=>{}),labelAlign:z(()=>"right"),vertical:z(()=>!1),addField:(e,t)=>{},removeField:e=>{},model:z(()=>{}),rules:z(()=>{}),colon:z(()=>{}),labelWrap:z(()=>{}),labelCol:z(()=>{}),requiredMark:z(()=>!1),validateTrigger:z(()=>{}),onValidate:()=>{},validateMessages:z(()=>ev)}),a8=Symbol("formItemPrefixContextKey"),lre=e=>{it(a8,e)},sre=()=>lt(a8,{prefixCls:z(()=>"")});function ure(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const cre=()=>({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]}),dre=["xs","sm","md","lg","xl","xxl"],nv=he({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:cre(),setup(e,t){let{slots:n,attrs:r}=t;const{gutter:o,supportFlexGap:a,wrap:i}=cne(),{prefixCls:l,direction:s}=He("col",e),[u,c]=hne(l),d=z(()=>{const{span:p,order:v,offset:m,push:h,pull:g}=e,x=l.value;let y={};return dre.forEach(w=>{let b={};const S=e[w];typeof S=="number"?b.span=S:typeof S=="object"&&(b=S||{}),y=E(E({},y),{[`${x}-${w}-${b.span}`]:b.span!==void 0,[`${x}-${w}-order-${b.order}`]:b.order||b.order===0,[`${x}-${w}-offset-${b.offset}`]:b.offset||b.offset===0,[`${x}-${w}-push-${b.push}`]:b.push||b.push===0,[`${x}-${w}-pull-${b.pull}`]:b.pull||b.pull===0,[`${x}-rtl`]:s.value==="rtl"})}),ge(x,{[`${x}-${p}`]:p!==void 0,[`${x}-order-${v}`]:v,[`${x}-offset-${m}`]:m,[`${x}-push-${h}`]:h,[`${x}-pull-${g}`]:g},y,r.class,c.value)}),f=z(()=>{const{flex:p}=e,v=o.value,m={};if(v&&v[0]>0){const h=`${v[0]/2}px`;m.paddingLeft=h,m.paddingRight=h}if(v&&v[1]>0&&!a.value){const h=`${v[1]/2}px`;m.paddingTop=h,m.paddingBottom=h}return p&&(m.flex=ure(p),i.value===!1&&!m.minWidth&&(m.minWidth=0)),m});return()=>{var p;return u(C("div",j(j({},r),{},{class:d.value,style:[f.value,r.style]}),[(p=n.default)===null||p===void 0?void 0:p.call(n)]))}}}),fx=(e,t)=>{let{slots:n,emit:r,attrs:o}=t;var a,i,l,s,u;const{prefixCls:c,htmlFor:d,labelCol:f,labelAlign:p,colon:v,required:m,requiredMark:h}=E(E({},e),o),[g]=ro("Form"),x=(a=e.label)!==null&&a!==void 0?a:(i=n.label)===null||i===void 0?void 0:i.call(n);if(!x)return null;const{vertical:y,labelAlign:w,labelCol:b,labelWrap:S,colon:$}=dx(),D=f||(b==null?void 0:b.value)||{},O=p||(w==null?void 0:w.value),A=`${c}-item-label`,T=ge(A,O==="left"&&`${A}-left`,D.class,{[`${A}-wrap`]:!!S.value});let M=x;const B=v===!0||($==null?void 0:$.value)!==!1&&v!==!1;B&&!y.value&&typeof x=="string"&&x.trim()!==""&&(M=x.replace(/[:|:]\s*$/,"")),M=C(dt,null,[M,(l=n.tooltip)===null||l===void 0?void 0:l.call(n,{class:`${c}-item-tooltip`})]),h==="optional"&&!m&&(M=C(dt,null,[M,C("span",{class:`${c}-item-optional`},[((s=g.value)===null||s===void 0?void 0:s.optional)||((u=cr.Form)===null||u===void 0?void 0:u.optional)])]));const P=ge({[`${c}-item-required`]:m,[`${c}-item-required-mark-optional`]:h==="optional",[`${c}-item-no-colon`]:!B});return C(nv,j(j({},D),{},{class:T}),{default:()=>[C("label",{for:d,class:P,title:typeof x=="string"?x:"",onClick:I=>r("click",I)},[M])]})};fx.displayName="FormItemLabel";fx.inheritAttrs=!1;const fre=fx,pre=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${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}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,["&-active"]:{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},mre=pre,vre=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, input[type='radio']:focus, 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}}),w2=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},hre=e=>{const{componentCls:t}=e;return{[e.componentCls]:E(E(E({},rt(e)),vre(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":E({},w2(e,e.controlHeightSM)),"&-large":E({},w2(e,e.controlHeightLG))})}},gre=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o}=e;return{[t]:E(E({},rt(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden.${o}-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:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-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^="'${o}-col-'"]):not([class*="' ${o}-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:Qb,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},yre=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${r}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},bre=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}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Pl=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),xre=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:Pl(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},wre=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label, .${r}-col-24${n}-label, .${r}-col-xl-24${n}-label`]:Pl(e),[`@media (max-width: ${e.screenXSMax}px)`]:[xre(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:Pl(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:Pl(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:Pl(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:Pl(e)}}}},px=nt("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=qe(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[hre(r),gre(r),mre(r),yre(r),bre(r),wre(r),hc(r),Qb]}),Sre=he({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:n}=t;const{prefixCls:r,status:o}=sre(),a=z(()=>`${r.value}-item-explain`),i=z(()=>!!(e.errors&&e.errors.length)),l=be(o.value),[,s]=px(r);return Ne([i,o],()=>{i.value&&(l.value=o.value)}),()=>{var u,c;const d=gc(`${r.value}-show-help-item`),f=Sm(`${r.value}-show-help-item`,d);return f.role="alert",f.class=[s.value,a.value,n.class,`${r.value}-show-help`],C(_n,j(j({},to(`${r.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[vn(C(tm,j(j({},f),{},{tag:"div"}),{default:()=>[(c=e.errors)===null||c===void 0?void 0:c.map((p,v)=>C("div",{key:v,class:l.value?`${a.value}-${l.value}`:""},[p]))]}),[[ur,!!(!((u=e.errors)===null||u===void 0)&&u.length)]])]})}}}),Cre=he({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:n}=t;const r=dx(),{wrapperCol:o}=r,a=E({},r);return delete a.labelCol,delete a.wrapperCol,o8(a),lre({prefixCls:z(()=>e.prefixCls),status:z(()=>e.status)}),()=>{var i,l,s;const{prefixCls:u,wrapperCol:c,marginBottom:d,onErrorVisibleChanged:f,help:p=(i=n.help)===null||i===void 0?void 0:i.call(n),errors:v=nn((l=n.errors)===null||l===void 0?void 0:l.call(n)),extra:m=(s=n.extra)===null||s===void 0?void 0:s.call(n)}=e,h=`${u}-item`,g=c||(o==null?void 0:o.value)||{},x=ge(`${h}-control`,g.class);return C(nv,j(j({},g),{},{class:x}),{default:()=>{var y;return C(dt,null,[C("div",{class:`${h}-control-input`},[C("div",{class:`${h}-control-input-content`},[(y=n.default)===null||y===void 0?void 0:y.call(n)])]),d!==null||v.length?C("div",{style:{display:"flex",flexWrap:"nowrap"}},[C(Sre,{errors:v,help:p,class:`${h}-explain-connected`,onErrorVisibleChanged:f},null),!!d&&C("div",{style:{width:0,height:`${d}px`}},null)]):null,m?C("div",{class:`${h}-extra`},[m]):null])}})}}}),$re=Cre;function Ere(e){const t=pe(e.value.slice());let n=null;return Je(()=>{clearTimeout(n),n=setTimeout(()=>{t.value=e.value},e.value.length?0:10)}),t}Un("success","warning","error","validating","");const Dre={success:Aa,warning:Oa,error:$r,validating:Lr};function Fh(e,t,n){let r=e;const o=t;let a=0;try{for(let i=o.length;a({htmlFor:String,prefixCls:String,label:Z.any,help:Z.any,extra:Z.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:Z.oneOf(Un("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean});let Ore=0;const Tre="form_item",i8=he({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:Are(),slots:Object,setup(e,t){let{slots:n,attrs:r,expose:o}=t;e.prop;const a=`form-item-${++Ore}`,{prefixCls:i}=He("form",e),[l,s]=px(i),u=pe(),c=dx(),d=z(()=>e.name||e.prop),f=pe([]),p=pe(!1),v=pe(),m=z(()=>{const q=d.value;return O0(q)}),h=z(()=>{if(m.value.length){const q=c.name.value,K=m.value.join("_");return q?`${q}_${K}`:`${Tre}_${K}`}else return}),g=()=>{const q=c.model.value;if(!(!q||!d.value))return Fh(q,m.value,!0).v},x=z(()=>g()),y=pe(Gd(x.value)),w=z(()=>{let q=e.validateTrigger!==void 0?e.validateTrigger:c.validateTrigger.value;return q=q===void 0?"change":q,ti(q)}),b=z(()=>{let q=c.rules.value;const K=e.rules,X=e.required!==void 0?{required:!!e.required,trigger:w.value}:[],re=Fh(q,m.value);q=q?re.o[re.k]||re.v:[];const ee=[].concat(K||q||[]);return wq(ee,G=>G.required)?ee:ee.concat(X)}),S=z(()=>{const q=b.value;let K=!1;return q&&q.length&&q.every(X=>X.required?(K=!0,!1):!0),K||e.required}),$=pe();Je(()=>{$.value=e.validateStatus});const D=z(()=>{let q={};return typeof e.label=="string"?q.label=e.label:e.name&&(q.label=String(e.name)),e.messageVariables&&(q=E(E({},q),e.messageVariables)),q}),O=q=>{if(m.value.length===0)return;const{validateFirst:K=!1}=e,{triggerName:X}=q||{};let re=b.value;if(X&&(re=re.filter(G=>{const{trigger:le}=G;return!le&&!w.value.length?!0:ti(le||w.value).includes(X)})),!re.length)return Promise.resolve();const ee=n8(m.value,x.value,re,E({validateMessages:c.validateMessages.value},q),K,D.value);return $.value="validating",f.value=[],ee.catch(G=>G).then(function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if($.value==="validating"){const le=G.filter(ue=>ue&&ue.errors.length);$.value=le.length?"error":"success",f.value=le.map(ue=>ue.errors),c.onValidate(d.value,!f.value.length,f.value.length?un(f.value[0]):null)}}),ee},A=()=>{O({triggerName:"blur"})},T=()=>{if(p.value){p.value=!1;return}O({triggerName:"change"})},M=()=>{$.value=e.validateStatus,p.value=!1,f.value=[]},B=()=>{$.value=e.validateStatus,p.value=!0,f.value=[];const q=c.model.value||{},K=x.value,X=Fh(q,m.value,!0);Array.isArray(K)?X.o[X.k]=[].concat(y.value):X.o[X.k]=y.value,ht(()=>{p.value=!1})},F=z(()=>e.htmlFor===void 0?h.value:e.htmlFor),P=()=>{const q=F.value;if(!q||!v.value)return;const K=v.value.$el.querySelector(`[id="${q}"]`);K&&K.focus&&K.focus()};o({onFieldBlur:A,onFieldChange:T,clearValidate:M,resetField:B}),xW({id:h,onFieldBlur:()=>{e.autoLink&&A()},onFieldChange:()=>{e.autoLink&&T()},clearValidate:M},z(()=>!!(e.autoLink&&c.model.value&&d.value)));let I=!1;Ne(d,q=>{q?I||(I=!0,c.addField(a,{fieldValue:x,fieldId:h,fieldName:d,resetField:B,clearValidate:M,namePath:m,validateRules:O,rules:b})):(I=!1,c.removeField(a))},{immediate:!0}),st(()=>{c.removeField(a)});const N=Ere(f),R=z(()=>e.validateStatus!==void 0?e.validateStatus:N.value.length?"error":$.value),_=z(()=>({[`${i.value}-item`]:!0,[s.value]:!0,[`${i.value}-item-has-feedback`]:R.value&&e.hasFeedback,[`${i.value}-item-has-success`]:R.value==="success",[`${i.value}-item-has-warning`]:R.value==="warning",[`${i.value}-item-has-error`]:R.value==="error",[`${i.value}-item-is-validating`]:R.value==="validating",[`${i.value}-item-hidden`]:e.hidden})),L=_t({});Bn.useProvide(L),Je(()=>{let q;if(e.hasFeedback){const K=R.value&&Dre[R.value];q=K?C("span",{class:ge(`${i.value}-item-feedback-icon`,`${i.value}-item-feedback-icon-${R.value}`)},[C(K,null,null)]):null}E(L,{status:R.value,hasFeedback:e.hasFeedback,feedbackIcon:q,isFormItemInput:!0})});const k=pe(null),H=pe(!1),V=()=>{if(u.value){const q=getComputedStyle(u.value);k.value=parseInt(q.marginBottom,10)}};Qe(()=>{Ne(H,()=>{H.value&&V()},{flush:"post",immediate:!0})});const U=q=>{q||(k.value=null)};return()=>{var q,K;if(e.noStyle)return(q=n.default)===null||q===void 0?void 0:q.call(n);const X=(K=e.help)!==null&&K!==void 0?K:n.help?nn(n.help()):null,re=!!(X!=null&&Array.isArray(X)&&X.length||N.value.length);return H.value=re,l(C("div",{class:[_.value,re?`${i.value}-item-with-help`:"",r.class],ref:u},[C(cx,j(j({},r),{},{class:`${i.value}-row`,key:"row"}),{default:()=>{var ee,G,le,ue;return C(dt,null,[C(fre,j(j({},e),{},{htmlFor:F.value,required:S.value,requiredMark:c.requiredMark.value,prefixCls:i.value,onClick:P,label:(ee=e.label)!==null&&ee!==void 0?ee:(G=n.label)===null||G===void 0?void 0:G.call(n)}),null),C($re,j(j({},e),{},{errors:X!=null?ti(X):N.value,marginBottom:k.value,prefixCls:i.value,status:R.value,ref:v,help:X,extra:(le=e.extra)!==null&&le!==void 0?le:(ue=n.extra)===null||ue===void 0?void 0:ue.call(n),onErrorVisibleChanged:U}),{default:n.default})])}}),!!k.value&&C("div",{class:`${i.value}-margin-offset`,style:{marginBottom:`-${k.value}px`}},null)]))}}});function l8(e){let t=!1,n=e.length;const r=[];return e.length?new Promise((o,a)=>{e.forEach((i,l)=>{i.catch(s=>(t=!0,s)).then(s=>{n-=1,r[l]=s,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}function S2(e){let t=!1;return e&&e.length&&e.every(n=>n.required?(t=!0,!1):!0),t}function C2(e){return e==null?[]:Array.isArray(e)?e:[e]}function Rh(e,t,n){let r=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");const o=t.split(".");let a=0;for(let i=o.length;a1&&arguments[1]!==void 0?arguments[1]:be({}),n=arguments.length>2?arguments[2]:void 0;const r=Gd(xn(e)),o=_t({}),a=pe([]),i=y=>{E(xn(e),E(E({},Gd(r)),y)),ht(()=>{Object.keys(o).forEach(w=>{o[w]={autoLink:!1,required:S2(xn(t)[w])}})})},l=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1?arguments[1]:void 0;return w.length?y.filter(b=>{const S=C2(b.trigger||"change");return Aq(S,w).length}):y};let s=null;const u=function(y){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=arguments.length>2?arguments[2]:void 0;const S=[],$={};for(let A=0;A({name:T,errors:[],warnings:[]})).catch(F=>{const P=[],I=[];return F.forEach(N=>{let{rule:{warningOnly:R},errors:_}=N;R?I.push(..._):P.push(..._)}),P.length?Promise.reject({name:T,errors:P,warnings:I}):{name:T,errors:P,warnings:I}}))}const D=l8(S);s=D;const O=D.then(()=>s===D?Promise.resolve($):Promise.reject([])).catch(A=>{const T=A.filter(M=>M&&M.errors.length);return Promise.reject({values:$,errorFields:T,outOfDate:s!==D})});return O.catch(A=>A),O},c=function(y,w,b){let S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const $=n8([y],w,b,E({validateMessages:ev},S),!!S.validateFirst);return o[y]?(o[y].validateStatus="validating",$.catch(D=>D).then(function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var O;if(o[y].validateStatus==="validating"){const A=D.filter(T=>T&&T.errors.length);o[y].validateStatus=A.length?"error":"success",o[y].help=A.length?A.map(T=>T.errors):null,(O=n==null?void 0:n.onValidate)===null||O===void 0||O.call(n,y,!A.length,A.length?un(o[y].help[0]):null)}}),$):$.catch(D=>D)},d=(y,w)=>{let b=[],S=!0;y?Array.isArray(y)?b=y:b=[y]:(S=!1,b=a.value);const $=u(b,w||{},S);return $.catch(D=>D),$},f=y=>{let w=[];y?Array.isArray(y)?w=y:w=[y]:w=a.value,w.forEach(b=>{o[b]&&E(o[b],{validateStatus:"",help:null})})},p=y=>{const w={autoLink:!1},b=[],S=Array.isArray(y)?y:[y];for(let $=0;${const w=[];a.value.forEach(b=>{const S=Rh(y,b,!1),$=Rh(v,b,!1);(m&&(n==null?void 0:n.immediate)&&S.isValid||!Eb(S.v,$.v))&&w.push(b)}),d(w,{trigger:"change"}),m=!1,v=Gd(un(y))},g=n==null?void 0:n.debounce;let x=!0;return Ne(t,()=>{a.value=t?Object.keys(xn(t)):[],!x&&n&&n.validateOnRuleChange&&d(),x=!1},{deep:!0,immediate:!0}),Ne(a,()=>{const y={};a.value.forEach(w=>{y[w]=E({},o[w],{autoLink:!1,required:S2(xn(t)[w])}),delete o[w]});for(const w in o)Object.prototype.hasOwnProperty.call(o,w)&&delete o[w];E(o,y)},{immediate:!0}),Ne(e,g&&g.wait?Zb(h,g.wait,Hq(g,["wait"])):h,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:r,validateInfos:o,resetFields:i,validate:d,validateField:c,mergeValidateInfo:p,clearValidate:f}}const Nre=()=>({layout:Z.oneOf(Un("horizontal","inline","vertical")),labelCol:We(),wrapperCol:We(),colon:Pe(),labelAlign:Ue(),labelWrap:Pe(),prefixCls:String,requiredMark:Xe([String,Boolean]),hideRequiredMark:Pe(),model:Z.object,rules:We(),validateMessages:We(),validateOnRuleChange:Pe(),scrollToFirstError:jt(),onSubmit:Oe(),name:String,validateTrigger:Xe([String,Array]),size:Ue(),disabled:Pe(),onValuesChange:Oe(),onFieldsChange:Oe(),onFinish:Oe(),onFinishFailed:Oe(),onValidate:Oe()});function Pre(e,t){return Eb(ti(e),ti(t))}const Ire=he({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:at(Nre(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:i8,useForm:Mre,setup(e,t){let{emit:n,slots:r,expose:o,attrs:a}=t;const{prefixCls:i,direction:l,form:s,size:u,disabled:c}=He("form",e),d=z(()=>e.requiredMark===""||e.requiredMark),f=z(()=>{var N;return d.value!==void 0?d.value:s&&((N=s.value)===null||N===void 0?void 0:N.requiredMark)!==void 0?s.value.requiredMark:!e.hideRequiredMark});TM(u),GT(c);const p=z(()=>{var N,R;return(N=e.colon)!==null&&N!==void 0?N:(R=s.value)===null||R===void 0?void 0:R.colon}),{validateMessages:v}=rR(),m=z(()=>E(E(E({},ev),v.value),e.validateMessages)),[h,g]=px(i),x=z(()=>ge(i.value,{[`${i.value}-${e.layout}`]:!0,[`${i.value}-hide-required-mark`]:f.value===!1,[`${i.value}-rtl`]:l.value==="rtl",[`${i.value}-${u.value}`]:u.value},g.value)),y=be(),w={},b=(N,R)=>{w[N]=R},S=N=>{delete w[N]},$=N=>{const R=!!N,_=R?ti(N).map(O0):[];return R?Object.values(w).filter(L=>_.findIndex(k=>Pre(k,L.fieldName.value))>-1):Object.values(w)},D=N=>{if(!e.model){Jt();return}$(N).forEach(R=>{R.resetField()})},O=N=>{$(N).forEach(R=>{R.clearValidate()})},A=N=>{const{scrollToFirstError:R}=e;if(n("finishFailed",N),R&&N.errorFields.length){let _={};typeof R=="object"&&(_=R),M(N.errorFields[0].name,_)}},T=function(){return P(...arguments)},M=function(N){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const _=$(N?[N]:void 0);if(_.length){const L=_[0].fieldId.value,k=L?document.getElementById(L):null;k&&PM(k,E({scrollMode:"if-needed",block:"nearest"},R))}},B=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(N===!0){const R=[];return Object.values(w).forEach(_=>{let{namePath:L}=_;R.push(L.value)}),x2(e.model,R)}else return x2(e.model,N)},F=(N,R)=>{if(Jt(),!e.model)return Jt(),Promise.reject("Form `model` is required for validateFields to work.");const _=!!N,L=_?ti(N).map(O0):[],k=[];Object.values(w).forEach(U=>{var q;if(_||L.push(U.namePath.value),!(!((q=U.rules)===null||q===void 0)&&q.value.length))return;const K=U.namePath.value;if(!_||ere(L,K)){const X=U.validateRules(E({validateMessages:m.value},R));k.push(X.then(()=>({name:K,errors:[],warnings:[]})).catch(re=>{const ee=[],G=[];return re.forEach(le=>{let{rule:{warningOnly:ue},errors:me}=le;ue?G.push(...me):ee.push(...me)}),ee.length?Promise.reject({name:K,errors:ee,warnings:G}):{name:K,errors:ee,warnings:G}}))}});const H=l8(k);y.value=H;const V=H.then(()=>y.value===H?Promise.resolve(B(L)):Promise.reject([])).catch(U=>{const q=U.filter(K=>K&&K.errors.length);return Promise.reject({values:B(L),errorFields:q,outOfDate:y.value!==H})});return V.catch(U=>U),V},P=function(){return F(...arguments)},I=N=>{N.preventDefault(),N.stopPropagation(),n("submit",N),e.model&&F().then(_=>{n("finish",_)}).catch(_=>{A(_)})};return o({resetFields:D,clearValidate:O,validateFields:F,getFieldsValue:B,validate:T,scrollToField:M}),o8({model:z(()=>e.model),name:z(()=>e.name),labelAlign:z(()=>e.labelAlign),labelCol:z(()=>e.labelCol),labelWrap:z(()=>e.labelWrap),wrapperCol:z(()=>e.wrapperCol),vertical:z(()=>e.layout==="vertical"),colon:p,requiredMark:f,validateTrigger:z(()=>e.validateTrigger),rules:z(()=>e.rules),addField:b,removeField:S,onValidate:(N,R,_)=>{n("validate",N,R,_)},validateMessages:m}),Ne(()=>e.rules,()=>{e.validateOnRuleChange&&F()}),()=>{var N;return h(C("form",j(j({},a),{},{onSubmit:I,class:[x.value,a.class]}),[(N=r.default)===null||N===void 0?void 0:N.call(r)]))}}}),qa=Ire;qa.useInjectFormItemContext=Sn;qa.ItemRest=Jf;qa.install=function(e){return e.component(qa.name,qa),e.component(qa.Item.name,qa.Item),e.component(Jf.name,Jf),e};const _re=new ft("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),Bre=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:E(E({},rt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:E(E({},rt(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]:E(E({},rt(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`]:E({},ya(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}:not(${n}-disabled), ${t}:not(${t}-disabled) `]:{[`&: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:_re,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[` ${n}-checked:not(${n}-disabled), ${t}-checked:not(${t}-disabled) `]:{[`&: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 rv(e,t){const n=qe(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Bre(n)]}const s8=nt("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[rv(n,e)]}),Fre=e=>{const{prefixCls:t,componentCls:n,antCls:r}=e,o=`${n}-menu-item`,a=` &${o}-expand ${o}-expand-icon, ${o}-loading-icon `,i=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return[{[n]:{width:e.controlWidth}},{[`${n}-dropdown`]:[rv(`${t}-checkbox`,e),{[`&${r}-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",[o]:{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":E(E({},gn),{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"},[a]:{color:e.colorTextDisabled}},[`&-active:not(${o}-disabled)`]:{["&, &:hover"]:{fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive}},"&-content":{flex:"auto"},[a]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},{[`${n}-dropdown-rtl`]:{direction:"rtl"}},Ps(e)]},Rre=nt("Cascader",e=>[Fre(e)],{controlWidth:184,controlItemWidth:111,dropdownHeight:180});var zre=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);os===0?[l]:[...i,t,l],[]),o=[];let a=0;return r.forEach((i,l)=>{const s=a+i.length;let u=e.slice(a,s);a=s,l%2===1&&(u=C("span",{class:`${n}-menu-item-keyword`,key:"seperator"},[u])),o.push(u)}),o}const kre=e=>{let{inputValue:t,path:n,prefixCls:r,fieldNames:o}=e;const a=[],i=t.toLowerCase();return n.forEach((l,s)=>{s!==0&&a.push(" / ");let u=l[o.label];const c=typeof u;(c==="string"||c==="number")&&(u=Lre(String(u),i,r)),a.push(u)}),a};function Hre(){return E(E({},pt(qI(),["customSlots","checkable","options"])),{multiple:{type:Boolean,default:void 0},size:String,bordered:{type:Boolean,default:void 0},placement:{type:String},suffixIcon:Z.any,status:String,options:Array,popupClassName:String,dropdownClassName:String,"onUpdate:value":Function})}const jre=he({compatConfig:{MODE:3},name:"ACascader",inheritAttrs:!1,props:at(Hre(),{bordered:!0,choiceTransitionName:"",allowClear:!0}),setup(e,t){let{attrs:n,expose:r,slots:o,emit:a}=t;const i=Sn(),l=Bn.useInject(),s=z(()=>$o(l.status,e.status)),{prefixCls:u,rootPrefixCls:c,getPrefixCls:d,direction:f,getPopupContainer:p,renderEmpty:v,size:m,disabled:h}=He("cascader",e),g=z(()=>d("select",e.prefixCls)),{compactSize:x,compactItemClassnames:y}=di(g,f),w=z(()=>x.value||m.value),b=Fr(),S=z(()=>{var R;return(R=h.value)!==null&&R!==void 0?R:b.value}),[$,D]=e1(g),[O]=Rre(u),A=z(()=>f.value==="rtl"),T=z(()=>{if(!e.showSearch)return e.showSearch;let R={render:kre};return typeof e.showSearch=="object"&&(R=E(E({},R),e.showSearch)),R}),M=z(()=>ge(e.popupClassName||e.dropdownClassName,`${u.value}-dropdown`,{[`${u.value}-dropdown-rtl`]:A.value},D.value)),B=be();r({focus(){var R;(R=B.value)===null||R===void 0||R.focus()},blur(){var R;(R=B.value)===null||R===void 0||R.blur()}});const F=function(){for(var R=arguments.length,_=new Array(R),L=0;Le.showArrow!==void 0?e.showArrow:e.loading||!e.multiple),N=z(()=>e.placement!==void 0?e.placement:f.value==="rtl"?"bottomRight":"bottomLeft");return()=>{var R,_;const{notFoundContent:L=(R=o.notFoundContent)===null||R===void 0?void 0:R.call(o),expandIcon:k=(_=o.expandIcon)===null||_===void 0?void 0:_.call(o),multiple:H,bordered:V,allowClear:U,choiceTransitionName:q,transitionName:K,id:X=i.id.value}=e,re=zre(e,["notFoundContent","expandIcon","multiple","bordered","allowClear","choiceTransitionName","transitionName","id"]),ee=L||v("Cascader");let G=k;k||(G=A.value?C(oi,null,null):C(xo,null,null));const le=C("span",{class:`${g.value}-menu-item-loading-icon`},[C(Lr,{spin:!0},null)]),{suffixIcon:ue,removeIcon:me,clearIcon:Se}=jb(E(E({},e),{hasFeedback:l.hasFeedback,feedbackIcon:l.feedbackIcon,multiple:H,prefixCls:g.value,showArrow:I.value}),o);return O($(C(rne,j(j(j({},re),n),{},{id:X,prefixCls:g.value,class:[u.value,{[`${g.value}-lg`]:w.value==="large",[`${g.value}-sm`]:w.value==="small",[`${g.value}-rtl`]:A.value,[`${g.value}-borderless`]:!V,[`${g.value}-in-form-item`]:l.isFormItemInput},Qn(g.value,s.value,l.hasFeedback),y.value,n.class,D.value],disabled:S.value,direction:f.value,placement:N.value,notFoundContent:ee,allowClear:U,showSearch:T.value,expandIcon:G,inputIcon:ue,removeIcon:me,clearIcon:Se,loadingIcon:le,checkable:!!H,dropdownClassName:M.value,dropdownPrefixCls:u.value,choiceTransitionName:xr(c.value,"",q),transitionName:xr(c.value,Db(N.value),K),getPopupContainer:p==null?void 0:p.value,customSlots:E(E({},o),{checkable:()=>C("span",{class:`${u.value}-checkbox-inner`},null)}),tagRender:e.tagRender||o.tagRender,displayRender:e.displayRender||o.displayRender,maxTagPlaceholder:e.maxTagPlaceholder||o.maxTagPlaceholder,showArrow:l.hasFeedback||e.showArrow,onChange:F,onBlur:P,ref:B}),o)))}}}),Vre=rn(E(jre,{SHOW_CHILD:RI,SHOW_PARENT:FI})),Wre=()=>({name:String,prefixCls:String,options:bt([]),disabled:Boolean,id:String}),Ure=()=>E(E({},Wre()),{defaultValue:bt(),value:bt(),onChange:Oe(),"onUpdate:value":Oe()}),Kre=()=>({prefixCls:String,defaultChecked:Pe(),checked:Pe(),disabled:Pe(),isGroup:Pe(),value:Z.any,name:String,id:String,indeterminate:Pe(),type:Ue("checkbox"),autofocus:Pe(),onChange:Oe(),"onUpdate:checked":Oe(),onClick:Oe(),skipGroup:Pe(!1)}),qre=()=>E(E({},Kre()),{indeterminate:Pe(!1)}),u8=Symbol("CheckboxGroupContext");var $2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o(p==null?void 0:p.disabled.value)||c.value);Je(()=>{!e.skipGroup&&p&&p.registerValue(v,e.value)}),st(()=>{p&&p.cancelValue(v)}),Qe(()=>{Jt(!!(e.checked!==void 0||p||e.value===void 0))});const h=w=>{const b=w.target.checked;n("update:checked",b),n("change",w)},g=be();return a({focus:()=>{var w;(w=g.value)===null||w===void 0||w.focus()},blur:()=>{var w;(w=g.value)===null||w===void 0||w.blur()}}),()=>{var w;const b=Lt((w=o.default)===null||w===void 0?void 0:w.call(o)),{indeterminate:S,skipGroup:$,id:D=i.id.value}=e,O=$2(e,["indeterminate","skipGroup","id"]),{onMouseenter:A,onMouseleave:T,onInput:M,class:B,style:F}=r,P=$2(r,["onMouseenter","onMouseleave","onInput","class","style"]),I=E(E(E(E({},O),{id:D,prefixCls:s.value}),P),{disabled:m.value});p&&!$?(I.onChange=function(){for(var L=arguments.length,k=new Array(L),H=0;H`${l.value}-group`),[c,d]=s8(u),f=be((e.value===void 0?e.defaultValue:e.value)||[]);Ne(()=>e.value,()=>{f.value=e.value||[]});const p=z(()=>e.options.map(w=>typeof w=="string"||typeof w=="number"?{label:w,value:w}:w)),v=be(Symbol()),m=be(new Map),h=w=>{m.value.delete(w),v.value=Symbol()},g=(w,b)=>{m.value.set(w,b),v.value=Symbol()},x=be(new Map);return Ne(v,()=>{const w=new Map;for(const b of m.value.values())w.set(b,!0);x.value=w}),it(u8,{cancelValue:h,registerValue:g,toggleOption:w=>{const b=f.value.indexOf(w.value),S=[...f.value];b===-1?S.push(w.value):S.splice(b,1),e.value===void 0&&(f.value=S);const $=S.filter(D=>x.value.has(D)).sort((D,O)=>{const A=p.value.findIndex(M=>M.value===D),T=p.value.findIndex(M=>M.value===O);return A-T});o("update:value",$),o("change",$),i.onFieldChange()},mergedValue:f,name:z(()=>e.name),disabled:z(()=>e.disabled)}),a({mergedValue:f}),()=>{var w;const{id:b=i.id.value}=e;let S=null;return p.value&&p.value.length>0&&(S=p.value.map($=>{var D;return C(Zr,{prefixCls:l.value,key:$.value.toString(),disabled:"disabled"in $?$.disabled:e.disabled,indeterminate:$.indeterminate,value:$.value,checked:f.value.indexOf($.value)!==-1,onChange:$.onChange,class:`${u.value}-item`},{default:()=>[n.label!==void 0?(D=n.label)===null||D===void 0?void 0:D.call(n,$):$.label]})})),c(C("div",j(j({},r),{},{class:[u.value,{[`${u.value}-rtl`]:s.value==="rtl"},r.class,d.value],id:b}),[S||((w=n.default)===null||w===void 0?void 0:w.call(n))]))}}});Zr.Group=xp;Zr.install=function(e){return e.component(Zr.name,Zr),e.component(xp.name,xp),e};const Gre={useBreakpoint:_s},Xre=rn(nv),Yre=e=>{const{componentCls:t,commentBg:n,commentPaddingBase:r,commentNestIndent:o,commentFontSizeBase:a,commentFontSizeSm:i,commentAuthorNameColor:l,commentAuthorTimeColor:s,commentActionColor:u,commentActionHoverColor:c,commentActionsMarginBottom:d,commentActionsMarginTop:f,commentContentDetailPMarginBottom:p}=e;return{[t]:{position:"relative",backgroundColor:n,[`${t}-inner`]:{display:"flex",padding:r},[`${t}-avatar`]:{position:"relative",flexShrink:0,marginRight:e.marginSM,cursor:"pointer",img:{width:"32px",height:"32px",borderRadius:"50%"}},[`${t}-content`]:{position:"relative",flex:"1 1 auto",minWidth:"1px",fontSize:a,wordWrap:"break-word",["&-author"]:{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:e.marginXXS,fontSize:a,["& > a,& > span"]:{paddingRight:e.paddingXS,fontSize:i,lineHeight:"18px"},["&-name"]:{color:l,fontSize:a,transition:`color ${e.motionDurationSlow}`,["> *"]:{color:l,["&:hover"]:{color:l}}},["&-time"]:{color:s,whiteSpace:"nowrap",cursor:"auto"}},["&-detail p"]:{marginBottom:p,whiteSpace:"pre-wrap"}},[`${t}-actions`]:{marginTop:f,marginBottom:d,paddingLeft:0,["> li"]:{display:"inline-block",color:u,["> span"]:{marginRight:"10px",color:u,fontSize:i,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,userSelect:"none",["&:hover"]:{color:c}}}},[`${t}-nested`]:{marginLeft:o},"&-rtl":{direction:"rtl"}}}},Zre=nt("Comment",e=>{const t=qe(e,{commentBg:"inherit",commentPaddingBase:`${e.paddingMD}px 0`,commentNestIndent:"44px",commentFontSizeBase:e.fontSize,commentFontSizeSm:e.fontSizeSM,commentAuthorNameColor:e.colorTextTertiary,commentAuthorTimeColor:e.colorTextPlaceholder,commentActionColor:e.colorTextTertiary,commentActionHoverColor:e.colorTextSecondary,commentActionsMarginBottom:"inherit",commentActionsMarginTop:e.marginSM,commentContentDetailPMarginBottom:"inherit"});return[Yre(t)]}),Jre=()=>({actions:Array,author:Z.any,avatar:Z.any,content:Z.any,prefixCls:String,datetime:Z.any}),Qre=he({compatConfig:{MODE:3},name:"AComment",inheritAttrs:!1,props:Jre(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("comment",e),[i,l]=Zre(o),s=(c,d)=>C("div",{class:`${c}-nested`},[d]),u=c=>!c||!c.length?null:c.map((f,p)=>C("li",{key:`action-${p}`},[f]));return()=>{var c,d,f,p,v,m,h,g,x,y,w;const b=o.value,S=(c=e.actions)!==null&&c!==void 0?c:(d=n.actions)===null||d===void 0?void 0:d.call(n),$=(f=e.author)!==null&&f!==void 0?f:(p=n.author)===null||p===void 0?void 0:p.call(n),D=(v=e.avatar)!==null&&v!==void 0?v:(m=n.avatar)===null||m===void 0?void 0:m.call(n),O=(h=e.content)!==null&&h!==void 0?h:(g=n.content)===null||g===void 0?void 0:g.call(n),A=(x=e.datetime)!==null&&x!==void 0?x:(y=n.datetime)===null||y===void 0?void 0:y.call(n),T=C("div",{class:`${b}-avatar`},[typeof D=="string"?C("img",{src:D,alt:"comment-avatar"},null):D]),M=S?C("ul",{class:`${b}-actions`},[u(Array.isArray(S)?S:[S])]):null,B=C("div",{class:`${b}-content-author`},[$&&C("span",{class:`${b}-content-author-name`},[$]),A&&C("span",{class:`${b}-content-author-time`},[A])]),F=C("div",{class:`${b}-content`},[B,C("div",{class:`${b}-content-detail`},[O]),M]),P=C("div",{class:`${b}-inner`},[T,F]),I=Lt((w=n.default)===null||w===void 0?void 0:w.call(n));return i(C("div",j(j({},r),{},{class:[b,{[`${b}-rtl`]:a.value==="rtl"},r.class,l.value]}),[P,I&&I.length?s(b,I):null]))}}}),eoe=rn(Qre);let of=E({},cr.Modal);function toe(e){e?of=E(E({},of),e):of=E({},cr.Modal)}function noe(){return of}const M0="internalMark",af=he({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;Jt(e.ANT_MARK__===M0);const r=_t({antLocale:E(E({},e.locale),{exist:!0}),ANT_MARK__:M0});return it("localeData",r),Ne(()=>e.locale,o=>{toe(o&&o.Modal),r.antLocale=E(E({},o),{exist:!0})},{immediate:!0}),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});af.install=function(e){return e.component(af.name,af),e};const c8=rn(af),ov=he({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let{attrs:n,slots:r}=t,o,a=!1;const i=z(()=>e.duration===void 0?4.5:e.duration),l=()=>{i.value&&!a&&(o=setTimeout(()=>{u()},i.value*1e3))},s=()=>{o&&(clearTimeout(o),o=null)},u=d=>{d&&d.stopPropagation(),s();const{onClose:f,noticeKey:p}=e;f&&f(p)},c=()=>{s(),l()};return Qe(()=>{l()}),Cr(()=>{a=!0,s()}),Ne([i,()=>e.updateMark,()=>e.visible],(d,f)=>{let[p,v,m]=d,[h,g,x]=f;(p!==h||v!==g||m!==x&&x)&&c()},{flush:"post"}),()=>{var d,f;const{prefixCls:p,closable:v,closeIcon:m=(d=r.closeIcon)===null||d===void 0?void 0:d.call(r),onClick:h,holder:g}=e,{class:x,style:y}=n,w=`${p}-notice`,b=Object.keys(n).reduce(($,D)=>((D.startsWith("data-")||D.startsWith("aria-")||D==="role")&&($[D]=n[D]),$),{}),S=C("div",j({class:ge(w,x,{[`${w}-closable`]:v}),style:y,onMouseenter:s,onMouseleave:l,onClick:h},b),[C("div",{class:`${w}-content`},[(f=r.default)===null||f===void 0?void 0:f.call(r)]),v?C("a",{tabindex:0,onClick:u,class:`${w}-close`},[m||C("span",{class:`${w}-close-x`},null)]):null]);return g?C(zy,{to:g},{default:()=>S}):S}}});var roe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:c,animation:d="fade"}=e;let f=e.transitionName;return!f&&d&&(f=`${c}-${d}`),Sm(f)}),s=(c,d)=>{const f=c.key||D2(),p=E(E({},c),{key:f}),{maxCount:v}=e,m=i.value.map(g=>g.notice.key).indexOf(f),h=i.value.concat();m!==-1?h.splice(m,1,{notice:p,holderCallback:d}):(v&&i.value.length>=v&&(p.key=h[0].notice.key,p.updateMark=D2(),p.userPassKey=f,h.shift()),h.push({notice:p,holderCallback:d})),i.value=h},u=c=>{i.value=i.value.filter(d=>{let{notice:{key:f,userPassKey:p}}=d;return(p||f)!==c})};return r({add:s,remove:u,notices:i}),()=>{var c;const{prefixCls:d,closeIcon:f=(c=o.closeIcon)===null||c===void 0?void 0:c.call(o,{prefixCls:d})}=e,p=i.value.map((m,h)=>{let{notice:g,holderCallback:x}=m;const y=h===i.value.length-1?g.updateMark:void 0,{key:w,userPassKey:b}=g,{content:S}=g,$=E(E(E({prefixCls:d,closeIcon:typeof f=="function"?f({prefixCls:d}):f},g),g.props),{key:w,noticeKey:b||w,updateMark:y,onClose:D=>{var O;u(D),(O=g.onClose)===null||O===void 0||O.call(g)},onClick:g.onClick});return x?C("div",{key:w,class:`${d}-hook-holder`,ref:D=>{typeof w>"u"||(D?(a.set(w,D),x(D,$)):a.delete(w))}},null):C(ov,j(j({},$),{},{class:ge($.class,e.hashId)}),{default:()=>[typeof S=="function"?S({prefixCls:d}):S]})}),v={[d]:1,[n.class]:!!n.class,[e.hashId]:!0};return C("div",{class:v,style:n.style||{top:"65px",left:"50%"}},[C(tm,j({tag:"div"},l.value),{default:()=>[p]})])}}});N0.newInstance=function(t,n){const r=t||{},{name:o="notification",getContainer:a,appContext:i,prefixCls:l,rootPrefixCls:s,transitionName:u,hasTransitionName:c,useStyle:d}=r,f=roe(r,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),p=document.createElement("div");a?a().appendChild(p):document.body.appendChild(p);const v=he({compatConfig:{MODE:3},name:"NotificationWrapper",setup(h,g){let{attrs:x}=g;const y=pe(),w=z(()=>Hn.getPrefixCls(o,l)),[,b]=d(w);return Qe(()=>{n({notice(S){var $;($=y.value)===null||$===void 0||$.add(S)},removeNotice(S){var $;($=y.value)===null||$===void 0||$.remove(S)},destroy(){os(null,p),p.parentNode&&p.parentNode.removeChild(p)},component:y})}),()=>{const S=Hn,$=S.getRootPrefixCls(s,w.value),D=c?u:`${w.value}-${u}`;return C(iv,j(j({},S),{},{prefixCls:$}),{default:()=>[C(N0,j(j({ref:y},x),{},{prefixCls:w.value,transitionName:D,hashId:b.value}),null)]})}}}),m=C(v,f);m.appContext=i||m.appContext,os(m,p)};const d8=N0;let A2=0;const aoe=Date.now();function O2(){const e=A2;return A2+=1,`rcNotification_${aoe}_${e}`}const ioe=he({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:n,slots:r}=t;const o=new Map,a=z(()=>e.notices),i=z(()=>{let c=e.transitionName;if(!c&&e.animation)switch(typeof e.animation){case"string":c=e.animation;break;case"function":c=e.animation().name;break;case"object":c=e.animation.name;break;default:c=`${e.prefixCls}-fade`;break}return Sm(c)}),l=c=>e.remove(c),s=be({});Ne(a,()=>{const c={};Object.keys(s.value).forEach(d=>{c[d]=[]}),e.notices.forEach(d=>{const{placement:f="topRight"}=d.notice;f&&(c[f]=c[f]||[],c[f].push(d))}),s.value=c});const u=z(()=>Object.keys(s.value));return()=>{var c;const{prefixCls:d,closeIcon:f=(c=r.closeIcon)===null||c===void 0?void 0:c.call(r,{prefixCls:d})}=e,p=u.value.map(v=>{var m,h;const g=s.value[v],x=(m=e.getClassName)===null||m===void 0?void 0:m.call(e,v),y=(h=e.getStyles)===null||h===void 0?void 0:h.call(e,v),w=g.map(($,D)=>{let{notice:O,holderCallback:A}=$;const T=D===a.value.length-1?O.updateMark:void 0,{key:M,userPassKey:B}=O,{content:F}=O,P=E(E(E({prefixCls:d,closeIcon:typeof f=="function"?f({prefixCls:d}):f},O),O.props),{key:M,noticeKey:B||M,updateMark:T,onClose:I=>{var N;l(I),(N=O.onClose)===null||N===void 0||N.call(O)},onClick:O.onClick});return A?C("div",{key:M,class:`${d}-hook-holder`,ref:I=>{typeof M>"u"||(I?(o.set(M,I),A(I,P)):o.delete(M))}},null):C(ov,j(j({},P),{},{class:ge(P.class,e.hashId)}),{default:()=>[typeof F=="function"?F({prefixCls:d}):F]})}),b={[d]:1,[`${d}-${v}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[x]:!!x};function S(){var $;g.length>0||(Reflect.deleteProperty(s.value,v),($=e.onAllRemoved)===null||$===void 0||$.call(e))}return C("div",{key:v,class:b,style:n.style||y||{top:"65px",left:"50%"}},[C(tm,j(j({tag:"div"},i.value),{},{onAfterLeave:S}),{default:()=>[w]})])});return C(fN,{getContainer:e.getContainer},{default:()=>[p]})}}}),loe=ioe;var soe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);odocument.body;let T2=0;function coe(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{o&&Object.keys(o).forEach(a=>{const i=o[a];i!==void 0&&(e[a]=i)})}),e}function f8(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:t=uoe,motion:n,prefixCls:r,maxCount:o,getClassName:a,getStyles:i,onAllRemoved:l}=e,s=soe(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),u=pe([]),c=pe(),d=(g,x)=>{const y=g.key||O2(),w=E(E({},g),{key:y}),b=u.value.map($=>$.notice.key).indexOf(y),S=u.value.concat();b!==-1?S.splice(b,1,{notice:w,holderCallback:x}):(o&&u.value.length>=o&&(w.key=S[0].notice.key,w.updateMark=O2(),w.userPassKey=y,S.shift()),S.push({notice:w,holderCallback:x})),u.value=S},f=g=>{u.value=u.value.filter(x=>{let{notice:{key:y,userPassKey:w}}=x;return(w||y)!==g})},p=()=>{u.value=[]},v=z(()=>C(loe,{ref:c,prefixCls:r,maxCount:o,notices:u.value,remove:f,getClassName:a,getStyles:i,animation:n,hashId:e.hashId,onAllRemoved:l,getContainer:t},null)),m=pe([]),h={open:g=>{const x=coe(s,g);(x.key===null||x.key===void 0)&&(x.key=`vc-notification-${T2}`,T2+=1),m.value=[...m.value,{type:"open",config:x}]},close:g=>{m.value=[...m.value,{type:"close",key:g}]},destroy:()=>{m.value=[...m.value,{type:"destroy"}]}};return Ne(m,()=>{m.value.length&&(m.value.forEach(g=>{switch(g.type){case"open":d(g.config);break;case"close":f(g.key);break;case"destroy":p();break}}),m.value=[])}),[h,()=>v.value]}const doe=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:r,colorBgElevated:o,colorSuccess:a,colorError:i,colorWarning:l,colorInfo:s,fontSizeLG:u,motionEaseInOutCirc:c,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:v,zIndexPopup:m,messageNoticeContentPadding:h}=e,g=new ft("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),x=new ft("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:E(E({},rt(e)),{position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter `]:{animationName:g,animationDuration:d,animationPlayState:"paused",animationTimingFunction:c},[` ${t}-move-up-appear${t}-move-up-appear-active, ${t}-move-up-enter${t}-move-up-enter-active `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:x,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:p,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:f,fontSize:u},[`${t}-notice-content`]:{display:"inline-block",padding:h,background:o,borderRadius:v,boxShadow:r,pointerEvents:"all"},[`${t}-success ${n}`]:{color:a},[`${t}-error ${n}`]:{color:i},[`${t}-warning ${n}`]:{color:l},[` ${t}-info ${n}, ${t}-loading ${n}`]:{color:s}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},mx=nt("Message",e=>{const t=qe(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[doe(t)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10}));var foe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const poe=foe;function M2(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Uie(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}var av=function(t,n){var r=n.attrs,o=n.slots,a=dd({},t,r),i=a.class,l=a.component,s=a.viewBox,u=a.spin,c=a.rotate,d=a.tabindex,f=a.onClick,p=Wie(a,Vie),v=o.default&&o.default(),m=v&&v.length,h=o.component;MN();var g=y8({anticon:!0},i,i),x={"anticon-spin":u===""||!!u},y=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,w=dd({},FV,{viewBox:s,class:x,style:y});s||delete w.viewBox;var b=function(){return l?C(l,w,{default:function(){return[v]}}):h?h(w):m?(Boolean(s)||v.length===1&&v[0]&&v[0].type,C("svg",dd({},w,{viewBox:s}),[v])):null},S=d;return S===void 0&&f&&(S=-1,p.tabindex=S),C("span",dd({role:"img"},p,{onClick:f,class:g}),[b()])};av.props={spin:Boolean,rotate:Number,viewBox:String,ariaLabel:String};av.inheritAttrs=!1;av.displayName="Icon";const Kie=av,qie={info:C(Is,null,null),success:C(Aa,null,null),error:C($r,null,null),warning:C(Oa,null,null),loading:C(Lr,null,null)},b8=he({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var r;return C("div",{class:ge(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||qie[e.type],C("span",null,[(r=n.default)===null||r===void 0?void 0:r.call(n)])])}}});he({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","class","type","icon","content"],setup(e,t){let{slots:n,attrs:r}=t;var o;const{getPrefixCls:a}=om(),i=z(()=>e.prefixCls||a("message")),[,l]=mx(i);return C(ov,j(j({},r),{},{prefixCls:i.value,class:ge(l.value,`${i.value}-notice-pure-panel`),noticeKey:"pure",duration:null}),{default:()=>[C(b8,{prefixCls:i.value,type:e.type,icon:e.icon},{default:()=>[(o=n.default)===null||o===void 0?void 0:o.call(n)]})]})}});var Gie=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oo("message",e.prefixCls)),[,l]=mx(i),s=()=>{var v;const m=(v=e.top)!==null&&v!==void 0?v:Xie;return{left:"50%",transform:"translateX(-50%)",top:typeof m=="number"?`${m}px`:m}},u=()=>ge(l.value,e.rtl?`${i.value}-rtl`:""),c=()=>{var v;return fb({prefixCls:i.value,animation:(v=e.animation)!==null&&v!==void 0?v:"move-up",transitionName:e.transitionName})},d=C("span",{class:`${i.value}-close-x`},[C(Kie,{class:`${i.value}-close-icon`},null)]),[f,p]=f8({getStyles:s,prefixCls:i.value,getClassName:u,motion:c,closable:!1,closeIcon:d,duration:(r=e.duration)!==null&&r!==void 0?r:Yie,getContainer:()=>{var v,m;return((v=e.staticGetContainer)===null||v===void 0?void 0:v.call(e))||((m=a.value)===null||m===void 0?void 0:m.call(a))||document.body},maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return n(E(E({},f),{prefixCls:i,hashId:l})),p}});let h3=0;function Jie(e){const t=pe(null),n=Symbol("messageHolderKey"),r=s=>{var u;(u=t.value)===null||u===void 0||u.close(s)},o=s=>{if(!t.value){const b=()=>{};return b.then=()=>{},b}const{open:u,prefixCls:c,hashId:d}=t.value,f=`${c}-notice`,{content:p,icon:v,type:m,key:h,class:g,onClose:x}=s,y=Gie(s,["content","icon","type","key","class","onClose"]);let w=h;return w==null&&(h3+=1,w=`antd-message-${h3}`),dF(b=>(u(E(E({},y),{key:w,content:()=>C(b8,{prefixCls:c,type:m,icon:typeof v=="function"?v():v},{default:()=>[typeof p=="function"?p():p]}),placement:"top",class:ge(m&&`${f}-${m}`,d,g),onClose:()=>{x==null||x(),b()}})),()=>{r(w)}))},i={open:o,destroy:s=>{var u;s!==void 0?r(s):(u=t.value)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(s=>{const u=(c,d,f)=>{let p;c&&typeof c=="object"&&"content"in c?p=c:p={content:c};let v,m;typeof d=="function"?m=d:(v=d,m=f);const h=E(E({onClose:m,duration:v},p),{type:s});return o(h)};i[s]=u}),[i,()=>C(Zie,j(j({key:n},e),{},{ref:t}),null)]}function Qie(e){return Jie(e)}let x8=3,w8,lr,ele=1,S8="",C8="move-up",$8=!1,E8=()=>document.body,D8,A8=!1;function tle(){return ele++}function nle(e){e.top!==void 0&&(w8=e.top,lr=null),e.duration!==void 0&&(x8=e.duration),e.prefixCls!==void 0&&(S8=e.prefixCls),e.getContainer!==void 0&&(E8=e.getContainer,lr=null),e.transitionName!==void 0&&(C8=e.transitionName,lr=null,$8=!0),e.maxCount!==void 0&&(D8=e.maxCount,lr=null),e.rtl!==void 0&&(A8=e.rtl)}function rle(e,t){if(lr){t(lr);return}d8.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||S8,rootPrefixCls:e.rootPrefixCls,transitionName:C8,hasTransitionName:$8,style:{top:w8},getContainer:E8||e.getPopupContainer,maxCount:D8,name:"message",useStyle:mx},n=>{if(lr){t(lr);return}lr=n,t(n)})}const O8={info:Is,success:Aa,error:$r,warning:Oa,loading:Lr},ole=Object.keys(O8);function ale(e){const t=e.duration!==void 0?e.duration:x8,n=e.key||tle(),r=new Promise(a=>{const i=()=>(typeof e.onClose=="function"&&e.onClose(),a(!0));rle(e,l=>{l.notice({key:n,duration:t,style:e.style||{},class:e.class,content:s=>{let{prefixCls:u}=s;const c=O8[e.type],d=c?C(c,null,null):"",f=ge(`${u}-custom-content`,{[`${u}-${e.type}`]:e.type,[`${u}-rtl`]:A8===!0});return C("div",{class:f},[typeof e.icon=="function"?e.icon():e.icon||d,C("span",null,[typeof e.content=="function"?e.content():e.content])])},onClose:i,onClick:e.onClick})})}),o=()=>{lr&&lr.removeNotice(n)};return o.then=(a,i)=>r.then(a,i),o.promise=r,o}function ile(e){return Object.prototype.toString.call(e)==="[object Object]"&&!!e.content}const Qu={open:ale,config:nle,destroy(e){if(lr)if(e){const{removeNotice:t}=lr;t(e)}else{const{destroy:t}=lr;t(),lr=null}}};function lle(e,t){e[t]=(n,r,o)=>ile(n)?e.open(E(E({},n),{type:t})):(typeof r=="function"&&(o=r,r=void 0),e.open({content:n,duration:r,type:t,onClose:o}))}ole.forEach(e=>lle(Qu,e));Qu.warn=Qu.warning;Qu.useMessage=Qie;const cn=Qu,sle=e=>{const{componentCls:t,width:n,notificationMarginEdge:r}=e,o=new ft("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),a=new ft("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),i=new ft("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:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}}}},ule=sle,cle=e=>{const{iconCls:t,componentCls:n,boxShadowSecondary:r,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:i,colorSuccess:l,colorInfo:s,colorWarning:u,colorError:c,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:v,motionDurationMid:m,motionEaseInOut:h,fontSize:g,lineHeight:x,width:y,notificationIconSize:w}=e,b=`${n}-notice`,S=new ft("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:y},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),$=new ft("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:a,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:E(E(E(E({},rt(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:S,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:$,animationPlayState:"running"}}),ule(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[b]:{position:"relative",width:y,maxWidth:`calc(100vw - ${v*2}px)`,marginBottom:a,marginInlineStart:"auto",padding:p,overflow:"hidden",lineHeight:x,wordWrap:"break-word",background:f,borderRadius:i,boxShadow:r,[`${n}-close-icon`]:{fontSize:g,cursor:"pointer"},[`${b}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${b}-description`]:{fontSize:g},[`&${b}-closable ${b}-message`]:{paddingInlineEnd:e.paddingLG},[`${b}-with-icon ${b}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+w,fontSize:o},[`${b}-with-icon ${b}-description`]:{marginInlineStart:e.marginSM+w,fontSize:g},[`${b}-icon`]:{position:"absolute",fontSize:w,lineHeight:0,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:c}},[`${b}-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}},[`${b}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${b}-pure-panel`]:{margin:0}}]},Qx=nt("Notification",e=>{const t=e.paddingMD,n=e.paddingLG,r=qe(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:e.controlHeightLG*.55});return[cle(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}));function T8(e,t){return t||C("span",{class:`${e}-close-x`},[C(Hr,{class:`${e}-close-icon`},null)])}C(Is,null,null),C(Aa,null,null),C($r,null,null),C(Oa,null,null),C(Lr,null,null);const dle={success:Aa,info:Is,error:$r,warning:Oa};function M8(e){let{prefixCls:t,icon:n,type:r,message:o,description:a,btn:i}=e,l=null;if(n)l=C("span",{class:`${t}-icon`},[_l(n)]);else if(r){const s=dle[r];l=C(s,{class:`${t}-icon ${t}-icon-${r}`},null)}return C("div",{class:ge({[`${t}-with-icon`]:l}),role:"alert"},[l,C("div",{class:`${t}-message`},[o]),C("div",{class:`${t}-description`},[a]),i&&C("div",{class:`${t}-btn`},[i])])}he({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","icon","type","message","description","btn","closeIcon"],setup(e){const{getPrefixCls:t}=He("notification",e),n=z(()=>e.prefixCls||t("notification")),r=z(()=>`${n.value}-notice`),[,o]=Qx(n);return()=>C(ov,j(j({},e),{},{prefixCls:n.value,class:ge(o.value,`${r.value}-pure-panel`),noticeKey:"pure",duration:null,closable:e.closable,closeIcon:T8(n.value,e.closeIcon)}),{default:()=>[C(M8,{prefixCls:r.value,icon:e.icon,type:e.type,message:e.message,description:e.description,btn:e.btn},null)]})}});function N8(e,t,n){let r;switch(t=typeof t=="number"?`${t}px`:t,n=typeof n=="number"?`${n}px`:n,e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function fle(e){return{name:`${e}-fade`}}var ple=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe.prefixCls||r("notification")),i=f=>{var p,v;return N8(f,(p=e.top)!==null&&p!==void 0?p:g3,(v=e.bottom)!==null&&v!==void 0?v:g3)},[,l]=Qx(a),s=()=>ge(l.value,{[`${a.value}-rtl`]:e.rtl}),u=()=>fle(a.value),[c,d]=f8({prefixCls:a.value,getStyles:i,getClassName:s,motion:u,closable:!0,closeIcon:T8(a.value),duration:mle,getContainer:()=>{var f,p;return((f=e.getPopupContainer)===null||f===void 0?void 0:f.call(e))||((p=o.value)===null||p===void 0?void 0:p.call(o))||document.body},maxCount:e.maxCount,hashId:l.value,onAllRemoved:e.onAllRemoved});return n(E(E({},c),{prefixCls:a.value,hashId:l})),d}});function hle(e){const t=pe(null),n=Symbol("notificationHolderKey"),r=l=>{if(!t.value)return;const{open:s,prefixCls:u,hashId:c}=t.value,d=`${u}-notice`,{message:f,description:p,icon:v,type:m,btn:h,class:g}=l,x=ple(l,["message","description","icon","type","btn","class"]);return s(E(E({placement:"topRight"},x),{content:()=>C(M8,{prefixCls:d,icon:typeof v=="function"?v():v,type:m,message:typeof f=="function"?f():f,description:typeof p=="function"?p():p,btn:typeof h=="function"?h():h},null),class:ge(m&&`${d}-${m}`,c,g)}))},a={open:r,destroy:l=>{var s,u;l!==void 0?(s=t.value)===null||s===void 0||s.close(l):(u=t.value)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(l=>{a[l]=s=>r(E(E({},s),{type:l}))}),[a,()=>C(vle,j(j({key:n},e),{},{ref:t}),null)]}function gle(e){return hle(e)}globalThis&&globalThis.__awaiter;const Oi={};let P8=4.5,I8="24px",_8="24px",P0="",B8="topRight",F8=()=>document.body,R8=null,I0=!1,z8;function yle(e){const{duration:t,placement:n,bottom:r,top:o,getContainer:a,closeIcon:i,prefixCls:l}=e;l!==void 0&&(P0=l),t!==void 0&&(P8=t),n!==void 0&&(B8=n),r!==void 0&&(_8=typeof r=="number"?`${r}px`:r),o!==void 0&&(I8=typeof o=="number"?`${o}px`:o),a!==void 0&&(F8=a),i!==void 0&&(R8=i),e.rtl!==void 0&&(I0=e.rtl),e.maxCount!==void 0&&(z8=e.maxCount)}function ble(e,t){let{prefixCls:n,placement:r=B8,getContainer:o=F8,top:a,bottom:i,closeIcon:l=R8,appContext:s}=e;const{getPrefixCls:u}=Ple(),c=u("notification",n||P0),d=`${c}-${r}-${I0}`,f=Oi[d];if(f){Promise.resolve(f).then(v=>{t(v)});return}const p=ge(`${c}-${r}`,{[`${c}-rtl`]:I0===!0});d8.newInstance({name:"notification",prefixCls:n||P0,useStyle:Qx,class:p,style:N8(r,a??I8,i??_8),appContext:s,getContainer:o,closeIcon:v=>{let{prefixCls:m}=v;return C("span",{class:`${m}-close-x`},[_l(l,{},C(Hr,{class:`${m}-close-icon`},null))])},maxCount:z8,hasTransitionName:!0},v=>{Oi[d]=v,t(v)})}const xle={success:eP,info:nP,error:rP,warning:tP};function wle(e){const{icon:t,type:n,description:r,message:o,btn:a}=e,i=e.duration===void 0?P8:e.duration;ble(e,l=>{l.notice({content:s=>{let{prefixCls:u}=s;const c=`${u}-notice`;let d=null;if(t)d=()=>C("span",{class:`${c}-icon`},[_l(t)]);else if(n){const f=xle[n];d=()=>C(f,{class:`${c}-icon ${c}-icon-${n}`},null)}return C("div",{class:d?`${c}-with-icon`:""},[d&&d(),C("div",{class:`${c}-message`},[!r&&d?C("span",{class:`${c}-message-single-line-auto-margin`},null):null,_l(o)]),C("div",{class:`${c}-description`},[_l(r)]),a?C("span",{class:`${c}-btn`},[_l(a)]):null])},duration:i,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})})}const ms={open:wle,close(e){Object.keys(Oi).forEach(t=>Promise.resolve(Oi[t]).then(n=>{n.removeNotice(e)}))},config:yle,destroy(){Object.keys(Oi).forEach(e=>{Promise.resolve(Oi[e]).then(t=>{t.destroy()}),delete Oi[e]})}},Sle=["success","info","warning","error"];Sle.forEach(e=>{ms[e]=t=>ms.open(E(E({},t),{type:e}))});ms.warn=ms.warning;ms.useNotification=gle;const ew=ms,Cle=`-ant-${Date.now()}-${Math.random()}`;function $le(e,t){const n={},r=(i,l)=>{let s=i.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(i,l)=>{const s=new $t(i),u=ga(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new $t(t.primaryColor),l=ga(i.toRgbString());l.forEach((u,c)=>{n[`primary-${c+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setAlpha(u.getAlpha()*.12));const s=new $t(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` :root { ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(` `)} } `.trim()}function Ele(e,t){const n=$le(e,t);Co()?Iu(n,`${Cle}-dynamic-theme`):Jt()}const Dle=e=>{const[t,n]=$a();return Hf(z(()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:E(E({},Ji()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])},Ale=Dle;function Ole(e,t){const n=z(()=>(e==null?void 0:e.value)||{}),r=z(()=>n.value.inherit===!1||!(t!=null&&t.value)?Vf:t.value);return z(()=>{if(!(e!=null&&e.value))return t==null?void 0:t.value;const a=E({},r.value.components);return Object.keys(e.value.components||{}).forEach(i=>{a[i]=E(E({},a[i]),e.value.components[i])}),E(E(E({},r.value),n.value),{token:E(E({},r.value.token),n.value.token),components:a})})}var Tle=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{E(Hn,tw),Hn.prefixCls=Jl(),Hn.iconPrefixCls=L8(),Hn.getPrefixCls=(e,t)=>t||(e?`${Hn.prefixCls}-${e}`:Hn.prefixCls),Hn.getRootPrefixCls=()=>Hn.prefixCls?Hn.prefixCls:Jl()});let zh;const Nle=e=>{zh&&zh(),zh=Je(()=>{E(tw,_t(e)),E(Hn,_t(e))}),e.theme&&Ele(Jl(),e.theme)},Ple=()=>({getPrefixCls:(e,t)=>t||(e?`${Jl()}-${e}`:Jl()),getIconPrefixCls:L8,getRootPrefixCls:()=>Hn.prefixCls?Hn.prefixCls:Jl()}),Su=he({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:oR(),setup(e,t){let{slots:n}=t;const r=om(),o=(F,P)=>{const{prefixCls:I="ant"}=e;if(P)return P;const N=I||r.getPrefixCls("");return F?`${N}-${F}`:N},a=z(()=>e.iconPrefixCls||r.iconPrefixCls.value||Gy),i=z(()=>a.value!==r.iconPrefixCls.value),l=z(()=>{var F;return e.csp||((F=r.csp)===null||F===void 0?void 0:F.value)}),s=Ale(a),u=Ole(z(()=>e.theme),z(()=>{var F;return(F=r.theme)===null||F===void 0?void 0:F.value})),c=F=>(e.renderEmpty||n.renderEmpty||r.renderEmpty||tz)(F),d=z(()=>{var F,P;return(F=e.autoInsertSpaceInButton)!==null&&F!==void 0?F:(P=r.autoInsertSpaceInButton)===null||P===void 0?void 0:P.value}),f=z(()=>{var F;return e.locale||((F=r.locale)===null||F===void 0?void 0:F.value)});Ne(f,()=>{tw.locale=f.value},{immediate:!0});const p=z(()=>{var F;return e.direction||((F=r.direction)===null||F===void 0?void 0:F.value)}),v=z(()=>{var F,P;return(F=e.space)!==null&&F!==void 0?F:(P=r.space)===null||P===void 0?void 0:P.value}),m=z(()=>{var F,P;return(F=e.virtual)!==null&&F!==void 0?F:(P=r.virtual)===null||P===void 0?void 0:P.value}),h=z(()=>{var F,P;return(F=e.dropdownMatchSelectWidth)!==null&&F!==void 0?F:(P=r.dropdownMatchSelectWidth)===null||P===void 0?void 0:P.value}),g=z(()=>{var F;return e.getTargetContainer!==void 0?e.getTargetContainer:(F=r.getTargetContainer)===null||F===void 0?void 0:F.value}),x=z(()=>{var F;return e.getPopupContainer!==void 0?e.getPopupContainer:(F=r.getPopupContainer)===null||F===void 0?void 0:F.value}),y=z(()=>{var F;return e.pageHeader!==void 0?e.pageHeader:(F=r.pageHeader)===null||F===void 0?void 0:F.value}),w=z(()=>{var F;return e.input!==void 0?e.input:(F=r.input)===null||F===void 0?void 0:F.value}),b=z(()=>{var F;return e.pagination!==void 0?e.pagination:(F=r.pagination)===null||F===void 0?void 0:F.value}),S=z(()=>{var F;return e.form!==void 0?e.form:(F=r.form)===null||F===void 0?void 0:F.value}),$=z(()=>{var F;return e.select!==void 0?e.select:(F=r.select)===null||F===void 0?void 0:F.value}),D=z(()=>e.componentSize),O=z(()=>e.componentDisabled),A={csp:l,autoInsertSpaceInButton:d,locale:f,direction:p,space:v,virtual:m,dropdownMatchSelectWidth:h,getPrefixCls:o,iconPrefixCls:a,theme:z(()=>{var F,P;return(F=u.value)!==null&&F!==void 0?F:(P=r.theme)===null||P===void 0?void 0:P.value}),renderEmpty:c,getTargetContainer:g,getPopupContainer:x,pageHeader:y,input:w,pagination:b,form:S,select:$,componentSize:D,componentDisabled:O,transformCellText:z(()=>e.transformCellText)},T=z(()=>{const F=u.value||{},{algorithm:P,token:I}=F,N=Tle(F,["algorithm","token"]),R=P&&(!Array.isArray(P)||P.length>0)?nb(P):void 0;return E(E({},N),{theme:R,token:E(E({},cm),I)})}),M=z(()=>{var F,P;let I={};return f.value&&(I=((F=f.value.Form)===null||F===void 0?void 0:F.defaultValidateMessages)||((P=cr.Form)===null||P===void 0?void 0:P.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(I=E(E({},I),e.form.validateMessages)),I});aR(A),nR({validateMessages:M}),TM(D),GT(O);const B=F=>{var P,I;let N=i.value?s((P=n.default)===null||P===void 0?void 0:P.call(n)):(I=n.default)===null||I===void 0?void 0:I.call(n);if(e.theme){const R=function(){return N}();N=C(G9,{value:T.value},{default:()=>[R]})}return C(c8,{locale:f.value||F,ANT_MARK__:M0},{default:()=>[N]})};return Je(()=>{p.value&&(cn.config({rtl:p.value==="rtl"}),ew.config({rtl:p.value==="rtl"}))}),()=>C(Zi,{children:(F,P,I)=>B(I)},null)}});Su.config=Nle;Su.install=function(e){e.component(Su.name,Su)};const iv=Su,Ile=(e,t)=>{let{attrs:n,slots:r}=t;return C(dn,j(j({size:"small",type:"primary"},e),n),r)},_le=Ile,fd=(e,t,n)=>{const r=lF(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`]}}},Ble=e=>jf(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:i}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i}}}}),Fle=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,a=r-n,i=t-n;return{[o]:E(E({},rt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${o}-close-icon`]:{marginInlineStart:i,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}})}},k8=nt("Tag",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,fontSizeIcon:o}=e,a=Math.round(t*n),i=e.fontSizeSM,l=a-r*2,s=e.colorFillAlter,u=e.colorText,c=qe(e,{tagFontSize:i,tagLineHeight:l,tagDefaultBg:s,tagDefaultColor:u,tagIconSize:o-2*r,tagPaddingHorizontal:8});return[Fle(c),Ble(c),fd(c,"success","Success"),fd(c,"processing","Info"),fd(c,"error","Error"),fd(c,"warning","Warning")]}),Rle=()=>({prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}),zle=he({compatConfig:{MODE:3},name:"ACheckableTag",inheritAttrs:!1,props:Rle(),setup(e,t){let{slots:n,emit:r,attrs:o}=t;const{prefixCls:a}=He("tag",e),[i,l]=k8(a),s=c=>{const{checked:d}=e;r("update:checked",!d),r("change",!d),r("click",c)},u=z(()=>ge(a.value,l.value,{[`${a.value}-checkable`]:!0,[`${a.value}-checkable-checked`]:e.checked}));return()=>{var c;return i(C("span",j(j({},o),{},{class:u.value,onClick:s}),[(c=n.default)===null||c===void 0?void 0:c.call(n)]))}}}),wp=zle,Lle=()=>({prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:Z.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},onClick:Vi(),"onUpdate:visible":Function,icon:Z.any}),Cu=he({compatConfig:{MODE:3},name:"ATag",inheritAttrs:!1,props:Lle(),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:o}=t;const{prefixCls:a,direction:i}=He("tag",e),[l,s]=k8(a),u=pe(!0);Je(()=>{e.visible!==void 0&&(u.value=e.visible)});const c=v=>{v.stopPropagation(),r("update:visible",!1),r("close",v),!v.defaultPrevented&&e.visible===void 0&&(u.value=!1)},d=z(()=>Lm(e.color)||HX(e.color)),f=z(()=>ge(a.value,s.value,{[`${a.value}-${e.color}`]:d.value,[`${a.value}-has-color`]:e.color&&!d.value,[`${a.value}-hidden`]:!u.value,[`${a.value}-rtl`]:i.value==="rtl"})),p=v=>{r("click",v)};return()=>{var v,m,h;const{icon:g=(v=n.icon)===null||v===void 0?void 0:v.call(n),color:x,closeIcon:y=(m=n.closeIcon)===null||m===void 0?void 0:m.call(n),closable:w=!1}=e,b=()=>w?y?C("span",{class:`${a.value}-close-icon`,onClick:c},[y]):C(Hr,{class:`${a.value}-close-icon`,onClick:c},null):null,S={backgroundColor:x&&!d.value?x:void 0},$=g||null,D=(h=n.default)===null||h===void 0?void 0:h.call(n),O=$?C(dt,null,[$,C("span",null,[D])]):D,A=e.onClick!==void 0,T=C("span",j(j({},o),{},{onClick:p,class:[f.value,o.class],style:[S,o.style]}),[O,b()]);return l(A?C(h1,null,{default:()=>[T]}):T)}}});Cu.CheckableTag=wp;Cu.install=function(e){return e.component(Cu.name,Cu),e.component(wp.name,wp),e};const H8=Cu;function kle(e,t){let{slots:n,attrs:r}=t;return C(H8,j(j({color:"blue"},e),r),n)}function Hle(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function jle(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function j8(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function Sp(){return{id:String,dropdownClassName:String,popupClassName:String,popupStyle:We(),transitionName:String,placeholder:String,allowClear:Pe(),autofocus:Pe(),disabled:Pe(),tabindex:Number,open:Pe(),defaultOpen:Pe(),inputReadOnly:Pe(),format:Xe([String,Function,Array]),getPopupContainer:Oe(),panelRender:Oe(),onChange:Oe(),"onUpdate:value":Oe(),onOk:Oe(),onOpenChange:Oe(),"onUpdate:open":Oe(),onFocus:Oe(),onBlur:Oe(),onMousedown:Oe(),onMouseup:Oe(),onMouseenter:Oe(),onMouseleave:Oe(),onClick:Oe(),onContextmenu:Oe(),onKeydown:Oe(),role:String,name:String,autocomplete:String,direction:Ue(),showToday:Pe(),showTime:Xe([Boolean,Object]),locale:We(),size:Ue(),bordered:Pe(),dateRender:Oe(),disabledDate:Oe(),mode:Ue(),picker:Ue(),valueFormat:String,placement:Ue(),status:Ue(),disabledHours:Oe(),disabledMinutes:Oe(),disabledSeconds:Oe()}}function V8(){return{defaultPickerValue:Xe([Object,String]),defaultValue:Xe([Object,String]),value:Xe([Object,String]),presets:bt(),disabledTime:Oe(),renderExtraFooter:Oe(),showNow:Pe(),monthCellRender:Oe(),monthCellContentRender:Oe()}}function W8(){return{allowEmpty:bt(),dateRender:Oe(),defaultPickerValue:bt(),defaultValue:bt(),value:bt(),presets:bt(),disabledTime:Oe(),disabled:Xe([Boolean,Array]),renderExtraFooter:Oe(),separator:{type:String},showTime:Xe([Boolean,Object]),ranges:We(),placeholder:bt(),mode:bt(),onChange:Oe(),"onUpdate:value":Oe(),onCalendarChange:Oe(),onPanelChange:Oe(),onOk:Oe()}}var Vle=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oT.value||D.value),[F,P]=gI(b),I=be();m({focus:()=>{var re;(re=I.value)===null||re===void 0||re.focus()},blur:()=>{var re;(re=I.value)===null||re===void 0||re.blur()}});const N=re=>x.valueFormat?e.toString(re,x.valueFormat):re,R=(re,ee)=>{const G=N(re);g("update:value",G),g("change",G,ee),y.onFieldChange()},_=re=>{g("update:open",re),g("openChange",re)},L=re=>{g("focus",re)},k=re=>{g("blur",re),y.onFieldBlur()},H=(re,ee)=>{const G=N(re);g("panelChange",G,ee)},V=re=>{const ee=N(re);g("ok",ee)},[U]=ro("DatePicker",Pu),q=z(()=>x.value?x.valueFormat?e.toDate(x.value,x.valueFormat):x.value:x.value===""?void 0:x.value),K=z(()=>x.defaultValue?x.valueFormat?e.toDate(x.defaultValue,x.valueFormat):x.defaultValue:x.defaultValue===""?void 0:x.defaultValue),X=z(()=>x.defaultPickerValue?x.valueFormat?e.toDate(x.defaultPickerValue,x.valueFormat):x.defaultPickerValue:x.defaultPickerValue===""?void 0:x.defaultPickerValue);return()=>{var re,ee,G,le,ue,me;const Se=E(E({},U.value),x.locale),Q=E(E({},x),h),{bordered:te=!0,placeholder:de,suffixIcon:Y=(re=v.suffixIcon)===null||re===void 0?void 0:re.call(v),showToday:ae=!0,transitionName:ce,allowClear:Ce=!0,dateRender:ye=v.dateRender,renderExtraFooter:J=v.renderExtraFooter,monthCellRender:ne=v.monthCellRender||x.monthCellContentRender||v.monthCellContentRender,clearIcon:oe=(ee=v.clearIcon)===null||ee===void 0?void 0:ee.call(v),id:ie=y.id.value}=Q,ve=Vle(Q,["bordered","placeholder","suffixIcon","showToday","transitionName","allowClear","dateRender","renderExtraFooter","monthCellRender","clearIcon","id"]),we=Q.showTime===""?!0:Q.showTime,{format:$e}=Q;let Ae={};u&&(Ae.picker=u);const xe=u||Q.picker||"date";Ae=E(E(E({},Ae),we?Cp(E({format:$e,picker:xe},typeof we=="object"?we:{})):{}),xe==="time"?Cp(E(E({format:$e},ve),{picker:xe})):{});const Ee=b.value,Te=C(dt,null,[Y||(u==="time"?C(m8,null,null):C(p8,null,null)),w.hasFeedback&&w.feedbackIcon]);return F(C(RJ,j(j(j({monthCellRender:ne,dateRender:ye,renderExtraFooter:J,ref:I,placeholder:Hle(Se,xe,de),suffixIcon:Te,dropdownAlign:j8(S.value,x.placement),clearIcon:oe||C($r,null,null),allowClear:Ce,transitionName:ce||`${O.value}-slide-up`},ve),Ae),{},{id:ie,picker:xe,value:q.value,defaultValue:K.value,defaultPickerValue:X.value,showToday:ae,locale:Se.lang,class:ge({[`${Ee}-${B.value}`]:B.value,[`${Ee}-borderless`]:!te},Qn(Ee,$o(w.status,x.status),w.hasFeedback),h.class,P.value,M.value),disabled:A.value,prefixCls:Ee,getPopupContainer:h.getCalendarContainer||$.value,generateConfig:e,prevIcon:((G=v.prevIcon)===null||G===void 0?void 0:G.call(v))||C("span",{class:`${Ee}-prev-icon`},null),nextIcon:((le=v.nextIcon)===null||le===void 0?void 0:le.call(v))||C("span",{class:`${Ee}-next-icon`},null),superPrevIcon:((ue=v.superPrevIcon)===null||ue===void 0?void 0:ue.call(v))||C("span",{class:`${Ee}-super-prev-icon`},null),superNextIcon:((me=v.superNextIcon)===null||me===void 0?void 0:me.call(v))||C("span",{class:`${Ee}-super-next-icon`},null),components:U8,direction:S.value,dropdownClassName:ge(P.value,x.popupClassName,x.dropdownClassName),onChange:R,onOpenChange:_,onFocus:L,onBlur:k,onPanelChange:H,onOk:V}),null))}}})}const r=n(void 0,"ADatePicker"),o=n("week","AWeekPicker"),a=n("month","AMonthPicker"),i=n("year","AYearPicker"),l=n("time","TimePicker"),s=n("quarter","AQuarterPicker");return{DatePicker:r,WeekPicker:o,MonthPicker:a,YearPicker:i,TimePicker:l,QuarterPicker:s}}var Ule=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ox.value||m.value),[b,S]=gI(f),$=be();a({focus:()=>{var L;(L=$.value)===null||L===void 0||L.focus()},blur:()=>{var L;(L=$.value)===null||L===void 0||L.blur()}});const D=L=>u.valueFormat?e.toString(L,u.valueFormat):L,O=(L,k)=>{const H=D(L);s("update:value",H),s("change",H,k),c.onFieldChange()},A=L=>{s("update:open",L),s("openChange",L)},T=L=>{s("focus",L)},M=L=>{s("blur",L),c.onFieldBlur()},B=(L,k)=>{const H=D(L);s("panelChange",H,k)},F=L=>{const k=D(L);s("ok",k)},P=(L,k,H)=>{const V=D(L);s("calendarChange",V,k,H)},[I]=ro("DatePicker",Pu),N=z(()=>u.value&&u.valueFormat?e.toDate(u.value,u.valueFormat):u.value),R=z(()=>u.defaultValue&&u.valueFormat?e.toDate(u.defaultValue,u.valueFormat):u.defaultValue),_=z(()=>u.defaultPickerValue&&u.valueFormat?e.toDate(u.defaultPickerValue,u.valueFormat):u.defaultPickerValue);return()=>{var L,k,H,V,U,q,K;const X=E(E({},I.value),u.locale),re=E(E({},u),l),{prefixCls:ee,bordered:G=!0,placeholder:le,suffixIcon:ue=(L=i.suffixIcon)===null||L===void 0?void 0:L.call(i),picker:me="date",transitionName:Se,allowClear:Q=!0,dateRender:te=i.dateRender,renderExtraFooter:de=i.renderExtraFooter,separator:Y=(k=i.separator)===null||k===void 0?void 0:k.call(i),clearIcon:ae=(H=i.clearIcon)===null||H===void 0?void 0:H.call(i),id:ce=c.id.value}=re,Ce=Ule(re,["prefixCls","bordered","placeholder","suffixIcon","picker","transitionName","allowClear","dateRender","renderExtraFooter","separator","clearIcon","id"]);delete Ce["onUpdate:value"],delete Ce["onUpdate:open"];const{format:ye,showTime:J}=re;let ne={};ne=E(E(E({},ne),J?Cp(E({format:ye,picker:me},J)):{}),me==="time"?Cp(E(E({format:ye},pt(Ce,["disabledTime"])),{picker:me})):{});const oe=f.value,ie=C(dt,null,[ue||(me==="time"?C(m8,null,null):C(p8,null,null)),d.hasFeedback&&d.feedbackIcon]);return b(C(GJ,j(j(j({dateRender:te,renderExtraFooter:de,separator:Y||C("span",{"aria-label":"to",class:`${oe}-separator`},[C(Cie,null,null)]),ref:$,dropdownAlign:j8(p.value,u.placement),placeholder:jle(X,me,le),suffixIcon:ie,clearIcon:ae||C($r,null,null),allowClear:Q,transitionName:Se||`${h.value}-slide-up`},Ce),ne),{},{disabled:g.value,id:ce,value:N.value,defaultValue:R.value,defaultPickerValue:_.value,picker:me,class:ge({[`${oe}-${w.value}`]:w.value,[`${oe}-borderless`]:!G},Qn(oe,$o(d.status,u.status),d.hasFeedback),l.class,S.value,y.value),locale:X.lang,prefixCls:oe,getPopupContainer:l.getCalendarContainer||v.value,generateConfig:e,prevIcon:((V=i.prevIcon)===null||V===void 0?void 0:V.call(i))||C("span",{class:`${oe}-prev-icon`},null),nextIcon:((U=i.nextIcon)===null||U===void 0?void 0:U.call(i))||C("span",{class:`${oe}-next-icon`},null),superPrevIcon:((q=i.superPrevIcon)===null||q===void 0?void 0:q.call(i))||C("span",{class:`${oe}-super-prev-icon`},null),superNextIcon:((K=i.superNextIcon)===null||K===void 0?void 0:K.call(i))||C("span",{class:`${oe}-super-next-icon`},null),components:U8,direction:p.value,dropdownClassName:ge(S.value,u.popupClassName,u.dropdownClassName),onChange:O,onOpenChange:A,onFocus:T,onBlur:M,onPanelChange:B,onOk:F,onCalendarChange:P}),null))}}})}const U8={button:_le,rangeItem:kle};function qle(e){return e?Array.isArray(e)?e:[e]:[]}function Cp(e){const{format:t,picker:n,showHour:r,showMinute:o,showSecond:a,use12Hours:i}=e,l=qle(t)[0],s=E({},e);return l&&typeof l=="string"&&(!l.includes("s")&&a===void 0&&(s.showSecond=!1),!l.includes("m")&&o===void 0&&(s.showMinute=!1),!l.includes("H")&&!l.includes("h")&&r===void 0&&(s.showHour=!1),(l.includes("a")||l.includes("A"))&&i===void 0&&(s.use12Hours=!0)),n==="time"?s:(typeof l=="function"&&delete s.format,{showTime:s})}function K8(e,t){const{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:a,TimePicker:i,QuarterPicker:l}=Wle(e,t),s=Kle(e,t);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:a,TimePicker:i,QuarterPicker:l,RangePicker:s}}const{DatePicker:Lh,WeekPicker:lf,MonthPicker:sf,YearPicker:Gle,TimePicker:Xle,QuarterPicker:uf,RangePicker:cf}=K8(E1),Yle=E(Lh,{WeekPicker:lf,MonthPicker:sf,YearPicker:Gle,RangePicker:cf,TimePicker:Xle,QuarterPicker:uf,install:e=>(e.component(Lh.name,Lh),e.component(cf.name,cf),e.component(sf.name,sf),e.component(lf.name,lf),e.component(uf.name,uf),e)});function pd(e){return e!=null}const Zle=e=>{const{itemPrefixCls:t,component:n,span:r,labelStyle:o,contentStyle:a,bordered:i,label:l,content:s,colon:u}=e,c=n;return i?C(c,{class:[{[`${t}-item-label`]:pd(l),[`${t}-item-content`]:pd(s)}],colSpan:r},{default:()=>[pd(l)&&C("span",{style:o},[l]),pd(s)&&C("span",{style:a},[s])]}):C(c,{class:[`${t}-item`],colSpan:r},{default:()=>[C("div",{class:`${t}-item-container`},[(l||l===0)&&C("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!u}],style:o},[l]),(s||s===0)&&C("span",{class:`${t}-item-content`,style:a},[s])])]})},kh=Zle,Jle=e=>{const t=(u,c,d)=>{let{colon:f,prefixCls:p,bordered:v}=c,{component:m,type:h,showLabel:g,showContent:x,labelStyle:y,contentStyle:w}=d;return u.map((b,S)=>{var $,D;const O=b.props||{},{prefixCls:A=p,span:T=1,labelStyle:M=O["label-style"],contentStyle:B=O["content-style"],label:F=(D=($=b.children)===null||$===void 0?void 0:$.label)===null||D===void 0?void 0:D.call($)}=O,P=rm(b),I=ZF(b),N=LT(b),{key:R}=b;return typeof m=="string"?C(kh,{key:`${h}-${String(R)||S}`,class:I,style:N,labelStyle:E(E({},y),M),contentStyle:E(E({},w),B),span:T,colon:f,component:m,itemPrefixCls:A,bordered:v,label:g?F:null,content:x?P:null},null):[C(kh,{key:`label-${String(R)||S}`,class:I,style:E(E(E({},y),N),M),span:1,colon:f,component:m[0],itemPrefixCls:A,bordered:v,label:F},null),C(kh,{key:`content-${String(R)||S}`,class:I,style:E(E(E({},w),N),B),span:T*2-1,component:m[1],itemPrefixCls:A,bordered:v,content:P},null)]})},{prefixCls:n,vertical:r,row:o,index:a,bordered:i}=e,{labelStyle:l,contentStyle:s}=lt(X8,{labelStyle:be({}),contentStyle:be({})});return r?C(dt,null,[C("tr",{key:`label-${a}`,class:`${n}-row`},[t(o,e,{component:"th",type:"label",showLabel:!0,labelStyle:l.value,contentStyle:s.value})]),C("tr",{key:`content-${a}`,class:`${n}-row`},[t(o,e,{component:"td",type:"content",showContent:!0,labelStyle:l.value,contentStyle:s.value})])]):C("tr",{key:a,class:`${n}-row`},[t(o,e,{component:i?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:l.value,contentStyle:s.value})])},Qle=Jle,ese=e=>{const{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:r,descriptionsMiddlePadding:o,descriptionsBg:a}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:r,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:a,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:o}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}}}}},tse=e=>{const{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:r,descriptionsItemLabelColonMarginRight:o,descriptionsItemLabelColonMarginLeft:a,descriptionsTitleMarginBottom:i}=e;return{[t]:E(E(E({},rt(e)),ese(e)),{["&-rtl"]:{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:i},[`${t}-title`]:E(E({},gn),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${a}px ${o}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},nse=nt("Descriptions",e=>{const t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,r=e.colorText,o=`${e.paddingXS}px ${e.padding}px`,a=`${e.padding}px ${e.paddingLG}px`,i=`${e.paddingSM}px ${e.paddingLG}px`,l=e.padding,s=e.marginXS,u=e.marginXXS/2,c=qe(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:r,descriptionItemPaddingBottom:l,descriptionsSmallPadding:o,descriptionsDefaultPadding:a,descriptionsMiddlePadding:i,descriptionsItemLabelColonMarginRight:s,descriptionsItemLabelColonMarginLeft:u});return[tse(c)]});Z.any;const rse=()=>({prefixCls:String,label:Z.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),q8=he({compatConfig:{MODE:3},name:"ADescriptionsItem",props:rse(),setup(e,t){let{slots:n}=t;return()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),G8={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function ose(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let n=0;nt)&&(r=At(e,{span:t}),Jt()),r}function ase(e,t){const n=Lt(e),r=[];let o=[],a=t;return n.forEach((i,l)=>{var s;const u=(s=i.props)===null||s===void 0?void 0:s.span,c=u||1;if(l===n.length-1){o.push(y3(i,a,u)),r.push(o);return}c({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:Z.any,extra:Z.any,column:{type:[Number,Object],default:()=>G8},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),X8=Symbol("descriptionsContext"),Il=he({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:ise(),slots:Object,Item:q8,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("descriptions",e);let i;const l=be({}),[s,u]=nse(o),c=c1();Ry(()=>{i=c.value.subscribe(f=>{typeof e.column=="object"&&(l.value=f)})}),st(()=>{c.value.unsubscribe(i)}),it(X8,{labelStyle:Ye(e,"labelStyle"),contentStyle:Ye(e,"contentStyle")});const d=z(()=>ose(e.column,l.value));return()=>{var f,p,v;const{size:m,bordered:h=!1,layout:g="horizontal",colon:x=!0,title:y=(f=n.title)===null||f===void 0?void 0:f.call(n),extra:w=(p=n.extra)===null||p===void 0?void 0:p.call(n)}=e,b=(v=n.default)===null||v===void 0?void 0:v.call(n),S=ase(b,d.value);return s(C("div",j(j({},r),{},{class:[o.value,{[`${o.value}-${m}`]:m!=="default",[`${o.value}-bordered`]:!!h,[`${o.value}-rtl`]:a.value==="rtl"},r.class,u.value]}),[(y||w)&&C("div",{class:`${o.value}-header`},[y&&C("div",{class:`${o.value}-title`},[y]),w&&C("div",{class:`${o.value}-extra`},[w])]),C("div",{class:`${o.value}-view`},[C("table",null,[C("tbody",null,[S.map(($,D)=>C(Qle,{key:D,index:D,colon:x,prefixCls:o.value,vertical:g==="vertical",bordered:h,row:$},null))])])])]))}}});Il.install=function(e){return e.component(Il.name,Il),e.component(Il.Item.name,Il.Item),e};const lse=Il,sse=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return{[t]:E(E({},rt(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStart:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},use=nt("Divider",e=>{const t=qe(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[sse(t)]},{sizePaddingEdgeHorizontal:0}),cse=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),dse=he({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:cse(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("divider",e),[i,l]=use(o),s=z(()=>e.orientation==="left"&&e.orientationMargin!=null),u=z(()=>e.orientation==="right"&&e.orientationMargin!=null),c=z(()=>{const{type:p,dashed:v,plain:m}=e,h=o.value;return{[h]:!0,[l.value]:!!l.value,[`${h}-${p}`]:!0,[`${h}-dashed`]:!!v,[`${h}-plain`]:!!m,[`${h}-rtl`]:a.value==="rtl",[`${h}-no-default-orientation-margin-left`]:s.value,[`${h}-no-default-orientation-margin-right`]:u.value}}),d=z(()=>{const p=typeof e.orientationMargin=="number"?`${e.orientationMargin}px`:e.orientationMargin;return E(E({},s.value&&{marginLeft:p}),u.value&&{marginRight:p})}),f=z(()=>e.orientation.length>0?"-"+e.orientation:e.orientation);return()=>{var p;const v=Lt((p=n.default)===null||p===void 0?void 0:p.call(n));return i(C("div",j(j({},r),{},{class:[c.value,v.length?`${o.value}-with-text ${o.value}-with-text${f.value}`:"",r.class],role:"separator"}),[v.length?C("span",{class:`${o.value}-inner-text`,style:d.value},[v]):null]))}}}),fse=rn(dse);Ro.Button=Uu;Ro.install=function(e){return e.component(Ro.name,Ro),e.component(Uu.name,Uu),e};const Y8=()=>({prefixCls:String,width:Z.oneOfType([Z.string,Z.number]),height:Z.oneOfType([Z.string,Z.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:We(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:bt(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:Oe(),maskMotion:We()}),pse=()=>E(E({},Y8()),{forceRender:{type:Boolean,default:void 0},getContainer:Z.oneOfType([Z.string,Z.func,Z.object,Z.looseBool])}),mse=()=>E(E({},Y8()),{getContainer:Function,getOpenCount:Function,scrollLocker:Z.any,inline:Boolean});function vse(e){return Array.isArray(e)?e:[e]}const Z8={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},hse=Object.keys(Z8).filter(e=>{if(typeof document>"u")return!1;const t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})})[0];Z8[hse];const gse=!(typeof window<"u"&&window.document&&window.document.createElement);var yse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{ht(()=>{var g;const{open:x,getContainer:y,showMask:w,autofocus:b}=e,S=y==null?void 0:y();v(e),x&&(S&&(S.parentNode,document.body),ht(()=>{b&&c()}),w&&((g=e.scrollLocker)===null||g===void 0||g.lock()))})}),Ne(()=>e.level,()=>{v(e)},{flush:"post"}),Ne(()=>e.open,()=>{const{open:g,getContainer:x,scrollLocker:y,showMask:w,autofocus:b}=e,S=x==null?void 0:x();S&&(S.parentNode,document.body),g?(b&&c(),w&&(y==null||y.lock())):y==null||y.unLock()},{flush:"post"}),Cr(()=>{var g;const{open:x}=e;x&&(document.body.style.touchAction=""),(g=e.scrollLocker)===null||g===void 0||g.unLock()}),Ne(()=>e.placement,g=>{g&&(s.value=null)});const c=()=>{var g,x;(x=(g=a.value)===null||g===void 0?void 0:g.focus)===null||x===void 0||x.call(g)},d=g=>{n("close",g)},f=g=>{g.keyCode===_e.ESC&&(g.stopPropagation(),d(g))},p=()=>{const{open:g,afterVisibleChange:x}=e;x&&x(!!g)},v=g=>{let{level:x,getContainer:y}=g;if(gse)return;const w=y==null?void 0:y(),b=w?w.parentNode:null;u=[],x==="all"?(b?Array.prototype.slice.call(b.children):[]).forEach($=>{$.nodeName!=="SCRIPT"&&$.nodeName!=="STYLE"&&$.nodeName!=="LINK"&&$!==w&&u.push($)}):x&&vse(x).forEach(S=>{document.querySelectorAll(S).forEach($=>{u.push($)})})},m=g=>{n("handleClick",g)},h=pe(!1);return Ne(a,()=>{ht(()=>{h.value=!0})}),()=>{var g,x;const{width:y,height:w,open:b,prefixCls:S,placement:$,level:D,levelMove:O,ease:A,duration:T,getContainer:M,onChange:B,afterVisibleChange:F,showMask:P,maskClosable:I,maskStyle:N,keyboard:R,getOpenCount:_,scrollLocker:L,contentWrapperStyle:k,style:H,class:V,rootClassName:U,rootStyle:q,maskMotion:K,motion:X,inline:re}=e,ee=yse(e,["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class","rootClassName","rootStyle","maskMotion","motion","inline"]),G=b&&h.value,le=ge(S,{[`${S}-${$}`]:!0,[`${S}-open`]:G,[`${S}-inline`]:re,"no-mask":!P,[U]:!0}),ue=typeof X=="function"?X($):X;return C("div",j(j({},pt(ee,["autofocus"])),{},{tabindex:-1,class:le,style:q,ref:a,onKeydown:G&&R?f:void 0}),[C(_n,K,{default:()=>[P&&vn(C("div",{class:`${S}-mask`,onClick:I?d:void 0,style:N,ref:i},null),[[ur,G]])]}),C(_n,j(j({},ue),{},{onAfterEnter:p,onAfterLeave:p}),{default:()=>[vn(C("div",{class:`${S}-content-wrapper`,style:[k],ref:o},[C("div",{class:[`${S}-content`,V],style:H,ref:s},[(g=r.default)===null||g===void 0?void 0:g.call(r)]),r.handler?C("div",{onClick:m,ref:l},[(x=r.handler)===null||x===void 0?void 0:x.call(r)]):null]),[[ur,G]])]})])}}}),b3=bse;var x3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,t){let{emit:n,slots:r}=t;const o=be(null),a=l=>{n("handleClick",l)},i=l=>{n("close",l)};return()=>{const{getContainer:l,wrapperClassName:s,rootClassName:u,rootStyle:c,forceRender:d}=e,f=x3(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let p=null;if(!l)return C(b3,j(j({},f),{},{rootClassName:u,rootStyle:c,open:e.open,onClose:i,onHandleClick:a,inline:!0}),r);const v=!!r.handler||d;return(v||e.open||o.value)&&(p=C(dc,{autoLock:!0,visible:e.open,forceRender:v,getContainer:l,wrapperClassName:s},{default:m=>{var{visible:h,afterClose:g}=m,x=x3(m,["visible","afterClose"]);return C(b3,j(j(j({ref:o},f),x),{},{rootClassName:u,rootStyle:c,open:h!==void 0?h:e.open,afterVisibleChange:g!==void 0?g:e.afterVisibleChange,onClose:i,onHandleClick:a}),r)}})),p}}}),wse=xse,Sse=e=>{const{componentCls:t,motionDurationSlow:n}=e,r={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},Cse=Sse,$se=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:o,motionDurationSlow:a,motionDurationMid:i,padding:l,paddingLG:s,fontSizeLG:u,lineHeightLG:c,lineWidth:d,lineType:f,colorSplit:p,marginSM:v,colorIcon:m,colorIconHover:h,colorText:g,fontWeightStrong:x,drawerFooterPaddingVertical:y,drawerFooterPaddingHorizontal:w}=e,b=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:o,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[b]:{position:"absolute",zIndex:n,transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${b}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${b}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${b}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${b}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${l}px ${s}px`,fontSize:u,lineHeight:c,borderBottom:`${d}px ${f} ${p}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:v,color:m,fontWeight:x,fontSize:u,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${i}`,textRendering:"auto","&:focus, &:hover":{color:h,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:g,fontWeight:e.fontWeightStrong,fontSize:u,lineHeight:c},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${y}px ${w}px`,borderTop:`${d}px ${f} ${p}`},"&-rtl":{direction:"rtl"}}}},Ese=nt("Drawer",e=>{const t=qe(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[$se(t),Cse(t)]},e=>({zIndexPopup:e.zIndexPopupBase}));var Dse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:Z.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:We(),rootClassName:String,rootStyle:We(),size:{type:String},drawerStyle:We(),headerStyle:We(),bodyStyle:We(),contentWrapperStyle:{type:Object,default:void 0},title:Z.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:Z.oneOfType([Z.string,Z.number]),height:Z.oneOfType([Z.string,Z.number]),zIndex:Number,prefixCls:String,push:Z.oneOfType([Z.looseBool,{type:Object}]),placement:Z.oneOf(Ase),keyboard:{type:Boolean,default:void 0},extra:Z.any,footer:Z.any,footerStyle:We(),level:Z.any,levelMove:{type:[Number,Array,Function]},handle:Z.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function}),Tse=he({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:at(Ose(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:w3}),slots:Object,setup(e,t){let{emit:n,slots:r,attrs:o}=t;const a=pe(!1),i=pe(!1),l=pe(null),s=pe(!1),u=pe(!1),c=z(()=>{var _;return(_=e.open)!==null&&_!==void 0?_:e.visible});Ne(c,()=>{c.value?s.value=!0:u.value=!1},{immediate:!0}),Ne([c,s],()=>{c.value&&s.value&&(u.value=!0)},{immediate:!0});const d=lt("parentDrawerOpts",null),{prefixCls:f,getPopupContainer:p,direction:v}=He("drawer",e),[m,h]=Ese(f),g=z(()=>e.getContainer===void 0&&(p!=null&&p.value)?()=>p.value(document.body):e.getContainer);qt(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),it("parentDrawerOpts",{setPush:()=>{a.value=!0},setPull:()=>{a.value=!1,ht(()=>{w()})}}),Qe(()=>{c.value&&d&&d.setPush()}),Cr(()=>{d&&d.setPull()}),Ne(u,()=>{d&&(u.value?d.setPush():d.setPull())},{flush:"post"});const w=()=>{var _,L;(L=(_=l.value)===null||_===void 0?void 0:_.domFocus)===null||L===void 0||L.call(_)},b=_=>{n("update:visible",!1),n("update:open",!1),n("close",_)},S=_=>{var L;_||(i.value===!1&&(i.value=!0),e.destroyOnClose&&(s.value=!1)),(L=e.afterVisibleChange)===null||L===void 0||L.call(e,_),n("afterVisibleChange",_),n("afterOpenChange",_)},$=z(()=>{const{push:_,placement:L}=e;let k;return typeof _=="boolean"?k=_?w3.distance:0:k=_.distance,k=parseFloat(String(k||0)),L==="left"||L==="right"?`translateX(${L==="left"?k:-k}px)`:L==="top"||L==="bottom"?`translateY(${L==="top"?k:-k}px)`:null}),D=z(()=>{var _;return(_=e.width)!==null&&_!==void 0?_:e.size==="large"?736:378}),O=z(()=>{var _;return(_=e.height)!==null&&_!==void 0?_:e.size==="large"?736:378}),A=z(()=>{const{mask:_,placement:L}=e;if(!u.value&&!_)return{};const k={};return L==="left"||L==="right"?k.width=ap(D.value)?`${D.value}px`:D.value:k.height=ap(O.value)?`${O.value}px`:O.value,k}),T=z(()=>{const{zIndex:_}=e,L=A.value;return[{zIndex:_,transform:a.value?$.value:void 0},L]}),M=_=>{const{closable:L,headerStyle:k}=e,H=wn(r,e,"extra"),V=wn(r,e,"title");return!V&&!L?null:C("div",{class:ge(`${_}-header`,{[`${_}-header-close-only`]:L&&!V&&!H}),style:k},[C("div",{class:`${_}-header-title`},[B(_),V&&C("div",{class:`${_}-title`},[V])]),H&&C("div",{class:`${_}-extra`},[H])])},B=_=>{var L;const{closable:k}=e,H=r.closeIcon?(L=r.closeIcon)===null||L===void 0?void 0:L.call(r):e.closeIcon;return k&&C("button",{key:"closer",onClick:b,"aria-label":"Close",class:`${_}-close`},[H===void 0?C(Hr,null,null):H])},F=_=>{var L;if(i.value&&!e.forceRender&&!s.value)return null;const{bodyStyle:k,drawerStyle:H}=e;return C("div",{class:`${_}-wrapper-body`,style:H},[M(_),C("div",{key:"body",class:`${_}-body`,style:k},[(L=r.default)===null||L===void 0?void 0:L.call(r)]),P(_)])},P=_=>{const L=wn(r,e,"footer");if(!L)return null;const k=`${_}-footer`;return C("div",{class:k,style:e.footerStyle},[L])},I=z(()=>ge({"no-mask":!e.mask,[`${f.value}-rtl`]:v.value==="rtl"},e.rootClassName,h.value)),N=z(()=>to(xr(f.value,"mask-motion"))),R=_=>to(xr(f.value,`panel-motion-${_}`));return()=>{const{width:_,height:L,placement:k,mask:H,forceRender:V}=e,U=Dse(e,["width","height","placement","mask","forceRender"]),q=E(E(E({},o),pt(U,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:V,onClose:b,afterVisibleChange:S,handler:!1,prefixCls:f.value,open:u.value,showMask:H,placement:k,ref:l});return m(C(Wu,null,{default:()=>[C(wse,j(j({},q),{},{maskMotion:N.value,motion:R,width:D.value,height:O.value,getContainer:g.value,rootClassName:I.value,rootStyle:e.rootStyle,contentWrapperStyle:T.value}),{handler:e.handle?()=>e.handle:r.handle,default:()=>F(f.value)})]}))}}}),Mse=rn(Tse),nw=()=>({prefixCls:String,description:Z.any,type:Ue("default"),shape:Ue("circle"),tooltip:Z.any,href:String,target:Oe(),onClick:Oe()}),Nse=()=>({prefixCls:Ue()}),Pse=()=>E(E({},nw()),{trigger:Ue(),open:Pe(),onOpenChange:Oe(),"onUpdate:open":Oe()}),Ise=()=>E(E({},nw()),{prefixCls:String,duration:Number,target:Oe(),visibilityHeight:Number,onClick:Oe()}),_se=he({compatConfig:{MODE:3},name:"AFloatButtonContent",inheritAttrs:!1,props:Nse(),setup(e,t){let{attrs:n,slots:r}=t;return()=>{var o;const{prefixCls:a}=e,i=nn((o=r.description)===null||o===void 0?void 0:o.call(r));return C("div",j(j({},n),{},{class:[n.class,`${a}-content`]}),[r.icon||i.length?C(dt,null,[r.icon&&C("div",{class:`${a}-icon`},[r.icon()]),i.length?C("div",{class:`${a}-description`},[i]):null]):C("div",{class:`${a}-icon`},[C(g8,null,null)])])}}}),Bse=_se,J8=Symbol("floatButtonGroupContext"),Fse=e=>(it(J8,e),e),Q8=()=>lt(J8,{shape:be()}),Rse=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:r,motionEaseInOutCirc:o}=e,a=`${t}-group`,i=new ft("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new ft("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${a}-wrap`]:E({},vc(`${a}-wrap`,i,l,r,!0))},{[`${a}-wrap`]:{[` &${a}-wrap-enter, &${a}-wrap-appear `]:{opacity:0,animationTimingFunction:o},[`&${a}-wrap-leave`]:{animationTimingFunction:o}}}]},zse=e=>{const{componentCls:t,floatButtonSize:n,margin:r,borderRadiusLG:o}=e,a=`${t}-group`;return{[a]:E(E({},rt(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:n,height:"auto",boxShadow:"none",minHeight:n,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:o,[`${a}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:r},[`&${a}-rtl`]:{direction:"rtl"},[t]:{position:"static"}}),[`${a}-circle`]:{[`${t}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${t}-body`]:{width:n,height:n}}},[`${a}-square`]:{[`${t}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:o,borderStartEndRadius:o},"&:last-child":{borderEndStartRadius:o,borderEndEndRadius:o},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`}},[`${a}-wrap`]:{display:"block",borderRadius:o,boxShadow:e.boxShadowSecondary,overflow:"hidden",[`${t}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:e.paddingXXS,"&:first-child":{borderStartStartRadius:o,borderStartEndRadius:o},"&:last-child":{borderEndStartRadius:o,borderEndEndRadius:o},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-body`]:{width:n-e.paddingXXS*2,height:n-e.paddingXXS*2}}}},[`${a}-circle-shadow`]:{boxShadow:"none"},[`${a}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${t}-square`]:{boxShadow:"none",padding:e.paddingXXS,[`${t}-body`]:{width:n-e.paddingXXS*2,height:n-e.paddingXXS*2}}}}},Lse=e=>{const{componentCls:t,floatButtonIconSize:n,floatButtonSize:r,borderRadiusLG:o}=e;return{[t]:E(E({},rt(e)),{border:"none",position:"fixed",cursor:"pointer",overflow:"hidden",zIndex:99,display:"block",justifyContent:"center",alignItems:"center",width:r,height:r,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${t}-content`]:{overflow:"hidden",textAlign:"center",minHeight:r,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"2px 4px",[`${t}-icon`]:{textAlign:"center",margin:"auto",width:n,fontSize:n,lineHeight:1}}}}),[`${t}-circle`]:{height:r,borderRadius:"50%",[`${t}-body`]:{borderRadius:"50%"}},[`${t}-square`]:{height:"auto",minHeight:r,borderRadius:o,[`${t}-body`]:{height:"auto",borderRadius:e.borderRadiusSM}},[`${t}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${t}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${t}-content`]:{[`${t}-icon`]:{color:e.colorText},[`${t}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${t}-primary`]:{backgroundColor:e.colorPrimary,[`${t}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${t}-content`]:{[`${t}-icon`]:{color:e.colorTextLightSolid},[`${t}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},rw=nt("FloatButton",e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:r,marginXXL:o,marginLG:a,fontSize:i,fontSizeIcon:l,controlItemBgHover:s}=e,u=qe(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:s,floatButtonFontSize:i,floatButtonIconSize:l*1.5,floatButtonSize:r,floatButtonInsetBlockEnd:o,floatButtonInsetInlineEnd:a});return[zse(u),Lse(u),Jb(e),Rse(u)]});var kse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o(s==null?void 0:s.value)||e.shape);return()=>{var d;const{prefixCls:f,type:p="default",shape:v="circle",description:m=(d=r.description)===null||d===void 0?void 0:d.call(r),tooltip:h}=e,g=kse(e,["prefixCls","type","shape","description","tooltip"]),x=ge(o.value,`${o.value}-${p}`,`${o.value}-${c.value}`,{[`${o.value}-rtl`]:a.value==="rtl"},n.class,l.value),y=C(Br,{placement:"left"},{title:r.tooltip||h?()=>r.tooltip&&r.tooltip()||h:void 0,default:()=>C("div",{class:`${o.value}-body`},[C(Bse,{prefixCls:o.value},{icon:r.icon,description:()=>m})])});return i(e.href?C("a",j(j(j({ref:u},n),g),{},{class:x}),[y]):C("button",j(j(j({ref:u},n),g),{},{class:x,type:"button"}),[y]))}}}),ni=Hse,jse=he({compatConfig:{MODE:3},name:"AFloatButtonGroup",inheritAttrs:!1,props:at(Pse(),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:r,emit:o}=t;const{prefixCls:a,direction:i}=He(ow,e),[l,s]=rw(a),[u,c]=Zt(!1,{value:z(()=>e.open)}),d=be(null),f=be(null);Fse({shape:z(()=>e.shape)});const p={onMouseenter(){var g;c(!0),o("update:open",!0),(g=e.onOpenChange)===null||g===void 0||g.call(e,!0)},onMouseleave(){var g;c(!1),o("update:open",!1),(g=e.onOpenChange)===null||g===void 0||g.call(e,!1)}},v=z(()=>e.trigger==="hover"?p:{}),m=()=>{var g;const x=!u.value;o("update:open",x),(g=e.onOpenChange)===null||g===void 0||g.call(e,x),c(x)},h=g=>{var x,y,w;if(!((x=d.value)===null||x===void 0)&&x.contains(g.target)){!((y=yr(f.value))===null||y===void 0)&&y.contains(g.target)&&m();return}c(!1),o("update:open",!1),(w=e.onOpenChange)===null||w===void 0||w.call(e,!1)};return Ne(z(()=>e.trigger),g=>{document.removeEventListener("click",h),g==="click"&&document.addEventListener("click",h)},{immediate:!0}),st(()=>{document.removeEventListener("click",h)}),()=>{var g;const{shape:x="circle",type:y="default",tooltip:w,description:b,trigger:S}=e,$=`${a.value}-group`,D=ge($,s.value,n.class,{[`${$}-rtl`]:i.value==="rtl",[`${$}-${x}`]:x,[`${$}-${x}-shadow`]:!S}),O=ge(s.value,`${$}-wrap`),A=to(`${$}-wrap`);return l(C("div",j(j({ref:d},n),{},{class:D},v.value),[S&&["click","hover"].includes(S)?C(dt,null,[C(_n,A,{default:()=>[vn(C("div",{class:O},[r.default&&r.default()]),[[ur,u.value]])]}),C(ni,{ref:f,type:y,shape:x,tooltip:w,description:b},{icon:()=>{var T,M;return u.value?((T=r.closeIcon)===null||T===void 0?void 0:T.call(r))||C(Hr,null,null):((M=r.icon)===null||M===void 0?void 0:M.call(r))||C(g8,null,null)},tooltip:r.tooltip,description:r.description})]):(g=r.default)===null||g===void 0?void 0:g.call(r)]))}}}),$p=jse,Vse=he({compatConfig:{MODE:3},name:"ABackTop",inheritAttrs:!1,props:at(Ise(),{visibilityHeight:400,target:()=>window,duration:450,type:"default",shape:"circle"}),setup(e,t){let{slots:n,attrs:r,emit:o}=t;const{prefixCls:a,direction:i}=He(ow,e),[l]=rw(a),s=be(),u=_t({visible:e.visibilityHeight===0,scrollEvent:null}),c=()=>s.value&&s.value.ownerDocument?s.value.ownerDocument:window,d=h=>{const{target:g=c,duration:x}=e;sb(0,{getContainer:g,duration:x}),o("click",h)},f=Dg(h=>{const{visibilityHeight:g}=e,x=lb(h.target,!0);u.visible=x>=g}),p=()=>{const{target:h}=e,x=(h||c)();f({target:x}),x==null||x.addEventListener("scroll",f)},v=()=>{const{target:h}=e,x=(h||c)();f.cancel(),x==null||x.removeEventListener("scroll",f)};Ne(()=>e.target,()=>{v(),ht(()=>{p()})}),Qe(()=>{ht(()=>{p()})}),ky(()=>{ht(()=>{p()})}),jB(()=>{v()}),st(()=>{v()});const m=Q8();return()=>{const h=C("div",{class:`${a.value}-content`},[C("div",{class:`${a.value}-icon`},[C(f3,null,null)])]),g=E(E({},r),{shape:(m==null?void 0:m.shape.value)||e.shape,onClick:d,class:{[`${a.value}`]:!0,[`${r.class}`]:r.class,[`${a.value}-rtl`]:i.value==="rtl"}}),x=to("fade");return l(C(_n,x,{default:()=>[vn(C(ni,j(j({},g),{},{ref:s}),{icon:()=>C(f3,null,null),default:()=>{var y;return((y=n.default)===null||y===void 0?void 0:y.call(n))||h}}),[[ur,u.visible]])]}))}}}),Ep=Vse;ni.Group=$p;ni.BackTop=Ep;ni.install=function(e){return e.component(ni.name,ni),e.component($p.name,$p),e.component(Ep.name,Ep),e};const $u=e=>e!=null&&(Array.isArray(e)?nn(e).length:!0);function aw(e){return $u(e.prefix)||$u(e.suffix)||$u(e.allowClear)}function df(e){return $u(e.addonBefore)||$u(e.addonAfter)}function _0(e){return typeof e>"u"||e===null?"":String(e)}function Eu(e,t,n,r){if(!n)return;const o=t;if(t.type==="click"){Object.defineProperty(o,"target",{writable:!0}),Object.defineProperty(o,"currentTarget",{writable:!0});const a=e.cloneNode(!0);o.target=a,o.currentTarget=a,a.value="",n(o);return}if(r!==void 0){Object.defineProperty(o,"target",{writable:!0}),Object.defineProperty(o,"currentTarget",{writable:!0}),o.target=e,o.currentTarget=e,e.value=r,n(o);return}n(o)}function e6(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const Wse=()=>({addonBefore:Z.any,addonAfter:Z.any,prefix:Z.any,suffix:Z.any,clearIcon:Z.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),t6=()=>E(E({},Wse()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:Z.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}}),n6=()=>E(E({},t6()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:Ue("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}),Use=he({name:"BaseInput",inheritAttrs:!1,props:t6(),setup(e,t){let{slots:n,attrs:r}=t;const o=be(),a=l=>{var s;if(!((s=o.value)===null||s===void 0)&&s.contains(l.target)){const{triggerFocus:u}=e;u==null||u()}},i=()=>{var l;const{allowClear:s,value:u,disabled:c,readonly:d,handleReset:f,suffix:p=n.suffix,prefixCls:v}=e;if(!s)return null;const m=!c&&!d&&u,h=`${v}-clear-icon`,g=((l=n.clearIcon)===null||l===void 0?void 0:l.call(n))||"*";return C("span",{onClick:f,onMousedown:x=>x.preventDefault(),class:ge({[`${h}-hidden`]:!m,[`${h}-has-suffix`]:!!p},h),role:"button",tabindex:-1},[g])};return()=>{var l,s;const{focused:u,value:c,disabled:d,allowClear:f,readonly:p,hidden:v,prefixCls:m,prefix:h=(l=n.prefix)===null||l===void 0?void 0:l.call(n),suffix:g=(s=n.suffix)===null||s===void 0?void 0:s.call(n),addonAfter:x=n.addonAfter,addonBefore:y=n.addonBefore,inputElement:w,affixWrapperClassName:b,wrapperClassName:S,groupClassName:$}=e;let D=At(w,{value:c,hidden:v});if(aw({prefix:h,suffix:g,allowClear:f})){const O=`${m}-affix-wrapper`,A=ge(O,{[`${O}-disabled`]:d,[`${O}-focused`]:u,[`${O}-readonly`]:p,[`${O}-input-with-clear-btn`]:g&&f&&c},!df({addonAfter:x,addonBefore:y})&&r.class,b),T=(g||f)&&C("span",{class:`${m}-suffix`},[i(),g]);D=C("span",{class:A,style:r.style,hidden:!df({addonAfter:x,addonBefore:y})&&v,onMousedown:a,ref:o},[h&&C("span",{class:`${m}-prefix`},[h]),At(w,{style:null,value:c,hidden:null}),T])}if(df({addonAfter:x,addonBefore:y})){const O=`${m}-group`,A=`${O}-addon`,T=ge(`${m}-wrapper`,O,S),M=ge(`${m}-group-wrapper`,r.class,$);return C("span",{class:M,style:r.style,hidden:v},[C("span",{class:T},[y&&C("span",{class:A},[y]),At(D,{style:null,hidden:null}),x&&C("span",{class:A},[x])])])}return D}}});var Kse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe.value,()=>{i.value=e.value}),Ne(()=>e.disabled,()=>{e.disabled&&(l.value=!1)});const u=$=>{s.value&&e6(s.value,$)};o({focus:u,blur:()=>{var $;($=s.value)===null||$===void 0||$.blur()},input:s,stateValue:i,setSelectionRange:($,D,O)=>{var A;(A=s.value)===null||A===void 0||A.setSelectionRange($,D,O)},select:()=>{var $;($=s.value)===null||$===void 0||$.select()}});const p=$=>{a("change",$)},v=Kn(),m=($,D)=>{i.value!==$&&(e.value===void 0?i.value=$:ht(()=>{s.value.value!==i.value&&v.update()}),ht(()=>{D&&D()}))},h=$=>{const{value:D,composing:O}=$.target;if(($.isComposing||O)&&e.lazy||i.value===D)return;const A=$.target.value;Eu(s.value,$,p),m(A)},g=$=>{$.keyCode===13&&a("pressEnter",$),a("keydown",$)},x=$=>{l.value=!0,a("focus",$)},y=$=>{l.value=!1,a("blur",$)},w=$=>{Eu(s.value,$,p),m("",()=>{u()})},b=()=>{var $,D;const{addonBefore:O=n.addonBefore,addonAfter:A=n.addonAfter,disabled:T,valueModifiers:M={},htmlSize:B,autocomplete:F,prefixCls:P,inputClassName:I,prefix:N=($=n.prefix)===null||$===void 0?void 0:$.call(n),suffix:R=(D=n.suffix)===null||D===void 0?void 0:D.call(n),allowClear:_,type:L="text"}=e,k=pt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),H=E(E(E({},k),r),{autocomplete:F,onChange:h,onInput:h,onFocus:x,onBlur:y,onKeydown:g,class:ge(P,{[`${P}-disabled`]:T},I,!df({addonAfter:A,addonBefore:O})&&!aw({prefix:N,suffix:R,allowClear:_})&&r.class),ref:s,key:"ant-input",size:B,type:L});M.lazy&&delete H.onInput,H.autofocus||delete H.autofocus;const V=C("input",pt(H,["size"]),null);return vn(V,[[Ds]])},S=()=>{var $;const{maxlength:D,suffix:O=($=n.suffix)===null||$===void 0?void 0:$.call(n),showCount:A,prefixCls:T}=e,M=Number(D)>0;if(O||A){const B=[..._0(i.value)].length,F=typeof A=="object"?A.formatter({count:B,maxlength:D}):`${B}${M?` / ${D}`:""}`;return C(dt,null,[!!A&&C("span",{class:ge(`${T}-show-count-suffix`,{[`${T}-show-count-has-suffix`]:!!O})},[F]),O])}return null};return Qe(()=>{}),()=>{const{prefixCls:$,disabled:D}=e,O=Kse(e,["prefixCls","disabled"]);return C(Use,j(j(j({},O),r),{},{prefixCls:$,inputElement:b(),handleReset:w,value:_0(i.value),focused:l.value,triggerFocus:u,suffix:S(),disabled:D}),n)}}}),r6=()=>pt(n6(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),iw=r6,o6=()=>E(E({},pt(r6(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Vi(),onCompositionend:Vi(),valueModifiers:Object});var Gse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o$o(s.status,e.status)),{direction:c,prefixCls:d,size:f,autocomplete:p}=He("input",e),{compactSize:v,compactItemClassnames:m}=di(d,c),h=z(()=>v.value||f.value),[g,x]=Y1(d),y=Fr();o({focus:B=>{var F;(F=i.value)===null||F===void 0||F.focus(B)},blur:()=>{var B;(B=i.value)===null||B===void 0||B.blur()},input:i,setSelectionRange:(B,F,P)=>{var I;(I=i.value)===null||I===void 0||I.setSelectionRange(B,F,P)},select:()=>{var B;(B=i.value)===null||B===void 0||B.select()}});const D=be([]),O=()=>{D.value.push(setTimeout(()=>{var B,F,P,I;!((B=i.value)===null||B===void 0)&&B.input&&((F=i.value)===null||F===void 0?void 0:F.input.getAttribute("type"))==="password"&&(!((P=i.value)===null||P===void 0)&&P.input.hasAttribute("value"))&&((I=i.value)===null||I===void 0||I.input.removeAttribute("value"))}))};Qe(()=>{O()}),Ly(()=>{D.value.forEach(B=>clearTimeout(B))}),st(()=>{D.value.forEach(B=>clearTimeout(B))});const A=B=>{O(),a("blur",B),l.onFieldBlur()},T=B=>{O(),a("focus",B)},M=B=>{a("update:value",B.target.value),a("change",B),a("input",B),l.onFieldChange()};return()=>{var B,F,P,I,N,R;const{hasFeedback:_,feedbackIcon:L}=s,{allowClear:k,bordered:H=!0,prefix:V=(B=n.prefix)===null||B===void 0?void 0:B.call(n),suffix:U=(F=n.suffix)===null||F===void 0?void 0:F.call(n),addonAfter:q=(P=n.addonAfter)===null||P===void 0?void 0:P.call(n),addonBefore:K=(I=n.addonBefore)===null||I===void 0?void 0:I.call(n),id:X=(N=l.id)===null||N===void 0?void 0:N.value}=e,re=Gse(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),ee=(_||U)&&C(dt,null,[U,_&&L]),G=d.value,le=aw({prefix:V,suffix:U})||!!_,ue=n.clearIcon||(()=>C($r,null,null));return g(C(qse,j(j(j({},r),pt(re,["onUpdate:value","onChange","onInput"])),{},{onChange:M,id:X,disabled:(R=e.disabled)!==null&&R!==void 0?R:y.value,ref:i,prefixCls:G,autocomplete:p.value,onBlur:A,onFocus:T,suffix:ee,allowClear:k,addonAfter:q&&C(Wu,null,{default:()=>[C(Qf,null,{default:()=>[q]})]}),addonBefore:K&&C(Wu,null,{default:()=>[C(Qf,null,{default:()=>[K]})]}),class:[r.class,m.value],inputClassName:ge({[`${G}-sm`]:h.value==="small",[`${G}-lg`]:h.value==="large",[`${G}-rtl`]:c.value==="rtl",[`${G}-borderless`]:!H},!le&&Qn(G,u.value),x.value),affixWrapperClassName:ge({[`${G}-affix-wrapper-sm`]:h.value==="small",[`${G}-affix-wrapper-lg`]:h.value==="large",[`${G}-affix-wrapper-rtl`]:c.value==="rtl",[`${G}-affix-wrapper-borderless`]:!H},Qn(`${G}-affix-wrapper`,u.value,_),x.value),wrapperClassName:ge({[`${G}-group-rtl`]:c.value==="rtl"},x.value),groupClassName:ge({[`${G}-group-wrapper-sm`]:h.value==="small",[`${G}-group-wrapper-lg`]:h.value==="large",[`${G}-group-wrapper-rtl`]:c.value==="rtl"},Qn(`${G}-group-wrapper`,u.value,_),x.value)}),E(E({},n),{clearIcon:ue})))}}}),a6=he({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a,getPrefixCls:i}=He("input-group",e),l=Bn.useInject();Bn.useProvide(l,{isFormItemInput:!1});const s=z(()=>i("input")),[u,c]=Y1(s),d=z(()=>{const f=o.value;return{[`${f}`]:!0,[c.value]:!0,[`${f}-lg`]:e.size==="large",[`${f}-sm`]:e.size==="small",[`${f}-compact`]:e.compact,[`${f}-rtl`]:a.value==="rtl"}});return()=>{var f;return u(C("span",j(j({},r),{},{class:ge(d.value,r.class)}),[(f=n.default)===null||f===void 0?void 0:f.call(n)]))}}});var Xse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var b;(b=i.value)===null||b===void 0||b.focus()},blur:()=>{var b;(b=i.value)===null||b===void 0||b.blur()}});const c=b=>{a("update:value",b.target.value),b&&b.target&&b.type==="click"&&a("search",b.target.value,b),a("change",b)},d=b=>{var S;document.activeElement===((S=i.value)===null||S===void 0?void 0:S.input)&&b.preventDefault()},f=b=>{var S,$;a("search",($=(S=i.value)===null||S===void 0?void 0:S.input)===null||$===void 0?void 0:$.stateValue,b)},p=b=>{l.value||e.loading||f(b)},v=b=>{l.value=!0,a("compositionstart",b)},m=b=>{l.value=!1,a("compositionend",b)},{prefixCls:h,getPrefixCls:g,direction:x,size:y}=He("input-search",e),w=z(()=>g("input",e.inputPrefixCls));return()=>{var b,S,$,D;const{disabled:O,loading:A,addonAfter:T=(b=n.addonAfter)===null||b===void 0?void 0:b.call(n),suffix:M=(S=n.suffix)===null||S===void 0?void 0:S.call(n)}=e,B=Xse(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:F=(D=($=n.enterButton)===null||$===void 0?void 0:$.call(n))!==null&&D!==void 0?D:!1}=e;F=F||F==="";const P=typeof F=="boolean"?C(Tm,null,null):null,I=`${h.value}-button`,N=Array.isArray(F)?F[0]:F;let R;const _=N.type&&Uy(N.type)&&N.type.__ANT_BUTTON;if(_||N.tagName==="button")R=At(N,E({onMousedown:d,onClick:f,key:"enterButton"},_?{class:I,size:y.value}:{}),!1);else{const k=P&&!F;R=C(dn,{class:I,type:F?"primary":void 0,size:y.value,disabled:O,key:"enterButton",onMousedown:d,onClick:f,loading:A,icon:k?P:null},{default:()=>[k?null:P||F]})}T&&(R=[R,T]);const L=ge(h.value,{[`${h.value}-rtl`]:x.value==="rtl",[`${h.value}-${y.value}`]:!!y.value,[`${h.value}-with-button`]:!!F},r.class);return C($n,j(j(j({ref:i},pt(B,["onUpdate:value","onSearch","enterButton"])),r),{},{onPressEnter:p,onCompositionstart:v,onCompositionend:m,size:y.value,prefixCls:w.value,addonAfter:R,suffix:M,onChange:c,class:L,disabled:O}),n)}}}),S3=e=>e!=null&&(Array.isArray(e)?nn(e).length:!0);function Yse(e){return S3(e.addonBefore)||S3(e.addonAfter)}const Zse=["text","input"],Jse=he({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:Z.oneOf(Un("text","input")),value:jt(),defaultValue:jt(),allowClear:{type:Boolean,default:void 0},element:jt(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:jt(),prefix:jt(),addonBefore:jt(),addonAfter:jt(),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:r}=t;const o=Bn.useInject(),a=l=>{const{value:s,disabled:u,readonly:c,handleReset:d,suffix:f=n.suffix}=e,p=!u&&!c&&s,v=`${l}-clear-icon`;return C($r,{onClick:d,onMousedown:m=>m.preventDefault(),class:ge({[`${v}-hidden`]:!p,[`${v}-has-suffix`]:!!f},v),role:"button"},null)},i=(l,s)=>{const{value:u,allowClear:c,direction:d,bordered:f,hidden:p,status:v,addonAfter:m=n.addonAfter,addonBefore:h=n.addonBefore,hashId:g}=e,{status:x,hasFeedback:y}=o;if(!c)return At(s,{value:u,disabled:e.disabled});const w=ge(`${l}-affix-wrapper`,`${l}-affix-wrapper-textarea-with-clear-btn`,Qn(`${l}-affix-wrapper`,$o(x,v),y),{[`${l}-affix-wrapper-rtl`]:d==="rtl",[`${l}-affix-wrapper-borderless`]:!f,[`${r.class}`]:!Yse({addonAfter:m,addonBefore:h})&&r.class},g);return C("span",{class:w,style:r.style,hidden:p},[At(s,{style:null,value:u,disabled:e.disabled}),a(l)])};return()=>{var l;const{prefixCls:s,inputType:u,element:c=(l=n.element)===null||l===void 0?void 0:l.call(n)}=e;return u===Zse[0]?i(s,c):null}}}),Qse=` min-height:0 !important; max-height:none !important; height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important `,eue=["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"],Hh={};let Ur;function tue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Hh[n])return Hh[n];const r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s={sizingStyle:eue.map(u=>`${u}:${r.getPropertyValue(u)}`).join(";"),paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(Hh[n]=s),s}function nue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ur||(Ur=document.createElement("textarea"),Ur.setAttribute("tab-index","-1"),Ur.setAttribute("aria-hidden","true"),document.body.appendChild(Ur)),e.getAttribute("wrap")?Ur.setAttribute("wrap",e.getAttribute("wrap")):Ur.removeAttribute("wrap");const{paddingSize:o,borderSize:a,boxSizing:i,sizingStyle:l}=tue(e,t);Ur.setAttribute("style",`${l};${Qse}`),Ur.value=e.value||e.placeholder||"";let s=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,c=Ur.scrollHeight,d;if(i==="border-box"?c+=a:i==="content-box"&&(c-=o),n!==null||r!==null){Ur.value=" ";const f=Ur.scrollHeight-o;n!==null&&(s=f*n,i==="border-box"&&(s=s+o+a),c=Math.max(s,c)),r!==null&&(u=f*r,i==="border-box"&&(u=u+o+a),d=c>u?"":"hidden",c=Math.min(u,c))}return{height:`${c}px`,minHeight:`${s}px`,maxHeight:`${u}px`,overflowY:d,resize:"none"}}const jh=0,C3=1,rue=2,oue=he({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:o6(),setup(e,t){let{attrs:n,emit:r,expose:o}=t,a,i;const l=be(),s=be({}),u=be(jh);st(()=>{tt.cancel(a),tt.cancel(i)});const c=()=>{try{if(document.activeElement===l.value){const h=l.value.selectionStart,g=l.value.selectionEnd;l.value.setSelectionRange(h,g)}}catch{}},d=()=>{const h=e.autoSize||e.autosize;if(!h||!l.value)return;const{minRows:g,maxRows:x}=h;s.value=nue(l.value,!1,g,x),u.value=C3,tt.cancel(i),i=tt(()=>{u.value=rue,i=tt(()=>{u.value=jh,c()})})},f=()=>{tt.cancel(a),a=tt(d)},p=h=>{if(u.value!==jh)return;r("resize",h),(e.autoSize||e.autosize)&&f()};Jt(e.autosize===void 0);const v=()=>{const{prefixCls:h,autoSize:g,autosize:x,disabled:y}=e,w=pt(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","lazy","maxlength","valueModifiers"]),b=ge(h,n.class,{[`${h}-disabled`]:y}),S=[n.style,s.value,u.value===C3?{overflowX:"hidden",overflowY:"hidden"}:null],$=E(E(E({},w),n),{style:S,class:b});return $.autofocus||delete $.autofocus,$.rows===0&&delete $.rows,C(Qr,{onResize:p,disabled:!(g||x)},{default:()=>[vn(C("textarea",j(j({},$),{},{ref:l}),null),[[Ds]])]})};Ne(()=>e.value,()=>{ht(()=>{d()})}),Qe(()=>{ht(()=>{d()})});const m=Kn();return o({resizeTextarea:d,textArea:l,instance:m}),()=>v()}}),aue=oue;function l6(e,t){return[...e||""].slice(0,t).join("")}function $3(e,t,n,r){let o=n;return e?o=l6(n,r):[...t||""].lengthr&&(o=t),o}const lw=he({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:o6(),setup(e,t){let{attrs:n,expose:r,emit:o}=t;const a=Sn(),i=Bn.useInject(),l=z(()=>$o(i.status,e.status)),s=pe(e.value===void 0?e.defaultValue:e.value),u=pe(),c=pe(""),{prefixCls:d,size:f,direction:p}=He("input",e),[v,m]=Y1(d),h=Fr(),g=z(()=>e.showCount===""||e.showCount||!1),x=z(()=>Number(e.maxlength)>0),y=pe(!1),w=pe(),b=pe(0),S=R=>{y.value=!0,w.value=c.value,b.value=R.currentTarget.selectionStart,o("compositionstart",R)},$=R=>{var _;y.value=!1;let L=R.currentTarget.value;if(x.value){const k=b.value>=e.maxlength+1||b.value===((_=w.value)===null||_===void 0?void 0:_.length);L=$3(k,w.value,L,e.maxlength)}L!==c.value&&(T(L),Eu(R.currentTarget,R,F,L)),o("compositionend",R)},D=Kn();Ne(()=>e.value,()=>{var R;"value"in D.vnode.props,s.value=(R=e.value)!==null&&R!==void 0?R:""});const O=R=>{var _;e6((_=u.value)===null||_===void 0?void 0:_.textArea,R)},A=()=>{var R,_;(_=(R=u.value)===null||R===void 0?void 0:R.textArea)===null||_===void 0||_.blur()},T=(R,_)=>{s.value!==R&&(e.value===void 0?s.value=R:ht(()=>{var L,k,H;u.value.textArea.value!==c.value&&((H=(L=u.value)===null||L===void 0?void 0:(k=L.instance).update)===null||H===void 0||H.call(k))}),ht(()=>{_&&_()}))},M=R=>{R.keyCode===13&&o("pressEnter",R),o("keydown",R)},B=R=>{const{onBlur:_}=e;_==null||_(R),a.onFieldBlur()},F=R=>{o("update:value",R.target.value),o("change",R),o("input",R),a.onFieldChange()},P=R=>{Eu(u.value.textArea,R,F),T("",()=>{O()})},I=R=>{const{composing:_}=R.target;let L=R.target.value;if(y.value=!!(R.isComposing||_),!(y.value&&e.lazy||s.value===L)){if(x.value){const k=R.target,H=k.selectionStart>=e.maxlength+1||k.selectionStart===L.length||!k.selectionStart;L=$3(H,c.value,L,e.maxlength)}Eu(R.currentTarget,R,F,L),T(L)}},N=()=>{var R,_;const{class:L}=n,{bordered:k=!0}=e,H=E(E(E({},pt(e,["allowClear"])),n),{class:[{[`${d.value}-borderless`]:!k,[`${L}`]:L&&!g.value,[`${d.value}-sm`]:f.value==="small",[`${d.value}-lg`]:f.value==="large"},Qn(d.value,l.value),m.value],disabled:h.value,showCount:null,prefixCls:d.value,onInput:I,onChange:I,onBlur:B,onKeydown:M,onCompositionstart:S,onCompositionend:$});return!((R=e.valueModifiers)===null||R===void 0)&&R.lazy&&delete H.onInput,C(aue,j(j({},H),{},{id:(_=H==null?void 0:H.id)!==null&&_!==void 0?_:a.id.value,ref:u,maxlength:e.maxlength}),null)};return r({focus:O,blur:A,resizableTextArea:u}),Je(()=>{let R=_0(s.value);!y.value&&x.value&&(e.value===null||e.value===void 0)&&(R=l6(R,e.maxlength)),c.value=R}),()=>{var R;const{maxlength:_,bordered:L=!0,hidden:k}=e,{style:H,class:V}=n,U=E(E(E({},e),n),{prefixCls:d.value,inputType:"text",handleReset:P,direction:p.value,bordered:L,style:g.value?void 0:H,hashId:m.value,disabled:(R=e.disabled)!==null&&R!==void 0?R:h.value});let q=C(Jse,j(j({},U),{},{value:c.value,status:e.status}),{element:N});if(g.value||i.hasFeedback){const K=[...c.value].length;let X="";typeof g.value=="object"?X=g.value.formatter({value:c.value,count:K,maxlength:_}):X=`${K}${x.value?` / ${_}`:""}`,q=C("div",{hidden:k,class:ge(`${d.value}-textarea`,{[`${d.value}-textarea-rtl`]:p.value==="rtl",[`${d.value}-textarea-show-count`]:g.value,[`${d.value}-textarea-in-form-item`]:i.isFormItemInput},`${d.value}-textarea-show-count`,V,m.value),style:H,"data-count":typeof X!="object"?X:void 0},[q,i.hasFeedback&&C("span",{class:`${d.value}-textarea-suffix`},[i.feedbackIcon])])}return v(q)}}});var iue=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe?C(Px,null,null):C(hae,null,null),s6=he({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:E(E({},iw()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},iconRender:Function}),setup(e,t){let{slots:n,attrs:r,expose:o}=t;const a=pe(!1),i=()=>{const{disabled:m}=e;m||(a.value=!a.value)},l=pe();o({focus:()=>{var m;(m=l.value)===null||m===void 0||m.focus()},blur:()=>{var m;(m=l.value)===null||m===void 0||m.blur()}});const c=m=>{const{action:h,iconRender:g=n.iconRender||sue}=e,x=lue[h]||"",y=g(a.value),w={[x]:i,class:`${m}-icon`,key:"passwordIcon",onMousedown:b=>{b.preventDefault()},onMouseup:b=>{b.preventDefault()}};return At(hn(y)?y:C("span",null,[y]),w)},{prefixCls:d,getPrefixCls:f}=He("input-password",e),p=z(()=>f("input",e.inputPrefixCls)),v=()=>{const{size:m,visibilityToggle:h}=e,g=iue(e,["size","visibilityToggle"]),x=h&&c(d.value),y=ge(d.value,r.class,{[`${d.value}-${m}`]:!!m}),w=E(E(E({},pt(g,["suffix","iconRender","action"])),r),{type:a.value?"text":"password",class:y,prefixCls:p.value,suffix:x});return m&&(w.size=m),C($n,j({ref:l},w),n)};return()=>v()}});$n.Group=a6;$n.Search=i6;$n.TextArea=lw;$n.Password=s6;$n.install=function(e){return e.component($n.name,$n),e.component($n.Group.name,$n.Group),e.component($n.Search.name,$n.Search),e.component($n.TextArea.name,$n.TextArea),e.component($n.Password.name,$n.Password),e};function uue(){const e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function Dp(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function lv(){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:Z.shape({x:Number,y:Number}).loose,title:Z.any,footer:Z.any,transitionName:String,maskTransitionName:String,animation:Z.any,maskAnimation:Z.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:Z.any,maskProps:Z.any,wrapProps:Z.any,getContainer:Z.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:Z.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function E3(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}let D3=-1;function cue(){return D3+=1,D3}function A3(e,t){let n=e[`page${t?"Y":"X"}Offset`];const r=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function due(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=A3(o),n.top+=A3(o,!0),n}const O3={width:0,height:0,overflow:"hidden",outline:"none"},fue=he({compatConfig:{MODE:3},name:"Content",inheritAttrs:!1,props:E(E({},lv()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:n,slots:r,attrs:o}=t;const a=be(),i=be(),l=be();n({focus:()=>{var f;(f=a.value)===null||f===void 0||f.focus()},changeActive:f=>{const{activeElement:p}=document;f&&p===i.value?a.value.focus():!f&&p===a.value&&i.value.focus()}});const s=be(),u=z(()=>{const{width:f,height:p}=e,v={};return f!==void 0&&(v.width=typeof f=="number"?`${f}px`:f),p!==void 0&&(v.height=typeof p=="number"?`${p}px`:p),s.value&&(v.transformOrigin=s.value),v}),c=()=>{ht(()=>{if(l.value){const f=due(l.value);s.value=e.mousePosition?`${e.mousePosition.x-f.left}px ${e.mousePosition.y-f.top}px`:""}})},d=f=>{e.onVisibleChanged(f)};return()=>{var f,p,v,m;const{prefixCls:h,footer:g=(f=r.footer)===null||f===void 0?void 0:f.call(r),title:x=(p=r.title)===null||p===void 0?void 0:p.call(r),ariaId:y,closable:w,closeIcon:b=(v=r.closeIcon)===null||v===void 0?void 0:v.call(r),onClose:S,bodyStyle:$,bodyProps:D,onMousedown:O,onMouseup:A,visible:T,modalRender:M=r.modalRender,destroyOnClose:B,motionName:F}=e;let P;g&&(P=C("div",{class:`${h}-footer`},[g]));let I;x&&(I=C("div",{class:`${h}-header`},[C("div",{class:`${h}-title`,id:y},[x])]));let N;w&&(N=C("button",{type:"button",onClick:S,"aria-label":"Close",class:`${h}-close`},[b||C("span",{class:`${h}-close-x`},null)]));const R=C("div",{class:`${h}-content`},[N,I,C("div",j({class:`${h}-body`,style:$},D),[(m=r.default)===null||m===void 0?void 0:m.call(r)]),P]),_=to(F);return C(_n,j(j({},_),{},{onBeforeEnter:c,onAfterEnter:()=>d(!0),onAfterLeave:()=>d(!1)}),{default:()=>[T||!B?vn(C("div",j(j({},o),{},{ref:l,key:"dialog-element",role:"document",style:[u.value,o.style],class:[h,o.class],onMousedown:O,onMouseup:A}),[C("div",{tabindex:0,ref:a,style:O3,"aria-hidden":"true"},null),M?M({originVNode:R}):R,C("div",{tabindex:0,ref:i,style:O3,"aria-hidden":"true"},null)]),[[ur,T]]):null]})}}}),pue=he({compatConfig:{MODE:3},name:"Mask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(e,t){return()=>{const{prefixCls:n,visible:r,maskProps:o,motionName:a}=e,i=to(a);return C(_n,i,{default:()=>[vn(C("div",j({class:`${n}-mask`},o),null),[[ur,r]])]})}}}),T3=he({compatConfig:{MODE:3},name:"Dialog",inheritAttrs:!1,props:at(E(E({},lv()),{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:r}=t;const o=pe(),a=pe(),i=pe(),l=pe(e.visible),s=pe(`vcDialogTitle${cue()}`),u=g=>{var x,y;if(g)Ua(a.value,document.activeElement)||(o.value=document.activeElement,(x=i.value)===null||x===void 0||x.focus());else{const w=l.value;if(l.value=!1,e.mask&&o.value&&e.focusTriggerAfterClose){try{o.value.focus({preventScroll:!0})}catch{}o.value=null}w&&((y=e.afterClose)===null||y===void 0||y.call(e))}},c=g=>{var x;(x=e.onClose)===null||x===void 0||x.call(e,g)},d=pe(!1),f=pe(),p=()=>{clearTimeout(f.value),d.value=!0},v=()=>{f.value=setTimeout(()=>{d.value=!1})},m=g=>{if(!e.maskClosable)return null;d.value?d.value=!1:a.value===g.target&&c(g)},h=g=>{if(e.keyboard&&g.keyCode===_e.ESC){g.stopPropagation(),c(g);return}e.visible&&g.keyCode===_e.TAB&&i.value.changeActive(!g.shiftKey)};return Ne(()=>e.visible,()=>{e.visible&&(l.value=!0)},{flush:"post"}),st(()=>{var g;clearTimeout(f.value),(g=e.scrollLocker)===null||g===void 0||g.unLock()}),Je(()=>{var g,x;(g=e.scrollLocker)===null||g===void 0||g.unLock(),l.value&&((x=e.scrollLocker)===null||x===void 0||x.lock())}),()=>{const{prefixCls:g,mask:x,visible:y,maskTransitionName:w,maskAnimation:b,zIndex:S,wrapClassName:$,rootClassName:D,wrapStyle:O,closable:A,maskProps:T,maskStyle:M,transitionName:B,animation:F,wrapProps:P,title:I=r.title}=e,{style:N,class:R}=n;return C("div",j({class:[`${g}-root`,D]},ci(e,{data:!0})),[C(pue,{prefixCls:g,visible:x&&y,motionName:E3(g,w,b),style:E({zIndex:S},M),maskProps:T},null),C("div",j({tabIndex:-1,onKeydown:h,class:ge(`${g}-wrap`,$),ref:a,onClick:m,role:"dialog","aria-labelledby":I?s.value:null,style:E(E({zIndex:S},O),{display:l.value?null:"none"})},P),[C(fue,j(j({},pt(e,["scrollLocker"])),{},{style:N,class:R,onMousedown:p,onMouseup:v,ref:i,closable:A,ariaId:s.value,prefixCls:g,visible:y,onClose:c,onVisibleChanged:u,motionName:E3(g,B,F)}),r)])])}}}),mue=lv(),vue=he({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:at(mue,{visible:!1}),setup(e,t){let{attrs:n,slots:r}=t;const o=be(e.visible);return Ab({},{inTriggerContext:!1}),Ne(()=>e.visible,()=>{e.visible&&(o.value=!0)},{flush:"post"}),()=>{const{visible:a,getContainer:i,forceRender:l,destroyOnClose:s=!1,afterClose:u}=e;let c=E(E(E({},e),n),{ref:"_component",key:"dialog"});return i===!1?C(T3,j(j({},c),{},{getOpenCount:()=>2}),r):!l&&s&&!o.value?null:C(dc,{autoLock:!0,visible:a,forceRender:l,getContainer:i},{default:d=>(c=E(E(E({},c),d),{afterClose:()=>{u==null||u(),o.value=!1}}),C(T3,c,r))})}}}),u6=vue;function hue(e){const t=be(null),n=_t(E({},e)),r=be([]),o=a=>{t.value===null&&(r.value=[],t.value=tt(()=>{let i;r.value.forEach(l=>{i=E(E({},i),l)}),E(n,i),t.value=null})),r.value.push(a)};return Qe(()=>{t.value&&tt.cancel(t.value)}),[n,o]}function M3(e,t,n,r){const o=t+n,a=(n-r)/2;if(n>r){if(t>0)return{[e]:a};if(t<0&&or)return{[e]:t<0?a:-a};return{}}function gue(e,t,n,r){const{width:o,height:a}=uue();let i=null;return e<=o&&t<=a?i={x:0,y:0}:(e>o||t>a)&&(i=E(E({},M3("x",n,e,o)),M3("y",r,t,a))),i}var yue=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{it(N3,e)},inject:()=>lt(N3,{isPreviewGroup:pe(!1),previewUrls:z(()=>new Map),setPreviewUrls:()=>{},current:be(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""})},bue=()=>({previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}}),xue=he({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:bue(),setup(e,t){let{slots:n}=t;const r=z(()=>{const b={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return typeof e.preview=="object"?p6(e.preview,b):b}),o=_t(new Map),a=be(),i=z(()=>r.value.visible),l=z(()=>r.value.getContainer),s=(b,S)=>{var $,D;(D=($=r.value).onVisibleChange)===null||D===void 0||D.call($,b,S)},[u,c]=Zt(!!i.value,{value:i,onChange:s}),d=be(null),f=z(()=>i.value!==void 0),p=z(()=>Array.from(o.keys())),v=z(()=>p.value[r.value.current]),m=z(()=>new Map(Array.from(o).filter(b=>{let[,{canPreview:S}]=b;return!!S}).map(b=>{let[S,{url:$}]=b;return[S,$]}))),h=function(b,S){let $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;o.set(b,{url:S,canPreview:$})},g=b=>{a.value=b},x=b=>{d.value=b},y=function(b,S){let $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const D=()=>{o.delete(b)};return o.set(b,{url:S,canPreview:$}),D},w=b=>{b==null||b.stopPropagation(),c(!1),x(null)};return Ne(v,b=>{g(b)},{immediate:!0,flush:"post"}),Je(()=>{u.value&&f.value&&g(v.value)},{flush:"post"}),sw.provide({isPreviewGroup:pe(!0),previewUrls:m,setPreviewUrls:h,current:a,setCurrent:g,setShowPreview:c,setMousePosition:x,registerImage:y}),()=>{const b=yue(r.value,[]);return C(dt,null,[n.default&&n.default(),C(d6,j(j({},b),{},{"ria-hidden":!u.value,visible:u.value,prefixCls:e.previewPrefixCls,onClose:w,mousePosition:d.value,src:m.value.get(a.value),icons:e.icons,getContainer:l.value}),null)])}}}),c6=xue,xi={x:0,y:0},wue=E(E({},lv()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),Sue=he({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:wue,emits:["close","afterClose"],setup(e,t){let{emit:n,attrs:r}=t;const{rotateLeft:o,rotateRight:a,zoomIn:i,zoomOut:l,close:s,left:u,right:c}=_t(e.icons),d=pe(1),f=pe(0),[p,v]=hue(xi),m=()=>n("close"),h=pe(),g=_t({originX:0,originY:0,deltaX:0,deltaY:0}),x=pe(!1),y=sw.inject(),{previewUrls:w,current:b,isPreviewGroup:S,setCurrent:$}=y,D=z(()=>w.value.size),O=z(()=>Array.from(w.value.keys())),A=z(()=>O.value.indexOf(b.value)),T=z(()=>S.value?w.value.get(b.value):e.src),M=z(()=>S.value&&D.value>1),B=pe({wheelDirection:0}),F=()=>{d.value=1,f.value=0,v(xi),n("afterClose")},P=()=>{d.value++,v(xi)},I=()=>{d.value>1&&d.value--,v(xi)},N=()=>{f.value+=90},R=()=>{f.value-=90},_=ue=>{ue.preventDefault(),ue.stopPropagation(),A.value>0&&$(O.value[A.value-1])},L=ue=>{ue.preventDefault(),ue.stopPropagation(),A.valued.value===1)},{icon:a,onClick:N,type:"rotateRight"},{icon:o,onClick:R,type:"rotateLeft"}],q=()=>{if(e.visible&&x.value){const ue=h.value.offsetWidth*d.value,me=h.value.offsetHeight*d.value,{left:Se,top:Q}=Dp(h.value),te=f.value%180!==0;x.value=!1;const de=gue(te?me:ue,te?ue:me,Se,Q);de&&v(E({},de))}},K=ue=>{ue.button===0&&(ue.preventDefault(),ue.stopPropagation(),g.deltaX=ue.pageX-p.x,g.deltaY=ue.pageY-p.y,g.originX=p.x,g.originY=p.y,x.value=!0)},X=ue=>{e.visible&&x.value&&v({x:ue.pageX-g.deltaX,y:ue.pageY-g.deltaY})},re=ue=>{if(!e.visible)return;ue.preventDefault();const me=ue.deltaY;B.value={wheelDirection:me}},ee=ue=>{!e.visible||!M.value||(ue.preventDefault(),ue.keyCode===_e.LEFT?A.value>0&&$(O.value[A.value-1]):ue.keyCode===_e.RIGHT&&A.value{e.visible&&(d.value!==1&&(d.value=1),(p.x!==xi.x||p.y!==xi.y)&&v(xi))};let le=()=>{};return Qe(()=>{Ne([()=>e.visible,x],()=>{le();let ue,me;const Se=en(window,"mouseup",q,!1),Q=en(window,"mousemove",X,!1),te=en(window,"wheel",re,{passive:!1}),de=en(window,"keydown",ee,!1);try{window.top!==window.self&&(ue=en(window.top,"mouseup",q,!1),me=en(window.top,"mousemove",X,!1))}catch{}le=()=>{Se.remove(),Q.remove(),te.remove(),de.remove(),ue&&ue.remove(),me&&me.remove()}},{flush:"post",immediate:!0}),Ne([B],()=>{const{wheelDirection:ue}=B.value;ue>0?I():ue<0&&P()})}),Cr(()=>{le()}),()=>{const{visible:ue,prefixCls:me,rootClassName:Se}=e;return C(u6,j(j({},r),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:me,onClose:m,afterClose:F,visible:ue,wrapClassName:k,rootClassName:Se,getContainer:e.getContainer}),{default:()=>[C("div",{class:[`${e.prefixCls}-operations-wrapper`,Se]},[C("ul",{class:`${e.prefixCls}-operations`},[U.map(Q=>{let{icon:te,onClick:de,type:Y,disabled:ae}=Q;return C("li",{class:ge(H,{[`${e.prefixCls}-operations-operation-disabled`]:ae&&(ae==null?void 0:ae.value)}),onClick:de,key:Y},[ha(te,{class:V})])})])]),C("div",{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${p.x}px, ${p.y}px, 0)`}},[C("img",{onMousedown:K,onDblclick:G,ref:h,class:`${e.prefixCls}-img`,src:T.value,alt:e.alt,style:{transform:`scale3d(${d.value}, ${d.value}, 1) rotate(${f.value}deg)`}},null)]),M.value&&C("div",{class:ge(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:A.value<=0}),onClick:_},[u]),M.value&&C("div",{class:ge(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:A.value>=D.value-1}),onClick:L},[c])]})}}}),d6=Sue;var Cue=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:Z.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),p6=(e,t)=>{const n=E({},e);return Object.keys(t).forEach(r=>{e[r]===void 0&&(n[r]=t[r])}),n};let $ue=0;const m6=he({compatConfig:{MODE:3},name:"Image",inheritAttrs:!1,props:f6(),emits:["click","error"],setup(e,t){let{attrs:n,slots:r,emit:o}=t;const a=z(()=>e.prefixCls),i=z(()=>`${a.value}-preview`),l=z(()=>{const R={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return typeof e.preview=="object"?p6(e.preview,R):R}),s=z(()=>{var R;return(R=l.value.src)!==null&&R!==void 0?R:e.src}),u=z(()=>e.placeholder&&e.placeholder!==!0||r.placeholder),c=z(()=>l.value.visible),d=z(()=>l.value.getContainer),f=z(()=>c.value!==void 0),p=(R,_)=>{var L,k;(k=(L=l.value).onVisibleChange)===null||k===void 0||k.call(L,R,_)},[v,m]=Zt(!!c.value,{value:c,onChange:p});Ne(v,(R,_)=>{p(R,_)});const h=be(u.value?"loading":"normal");Ne(()=>e.src,()=>{h.value=u.value?"loading":"normal"});const g=be(null),x=z(()=>h.value==="error"),y=sw.inject(),{isPreviewGroup:w,setCurrent:b,setShowPreview:S,setMousePosition:$,registerImage:D}=y,O=be($ue++),A=z(()=>e.preview&&!x.value),T=()=>{h.value="normal"},M=R=>{h.value="error",o("error",R)},B=R=>{if(!f.value){const{left:_,top:L}=Dp(R.target);w.value?(b(O.value),$({x:_,y:L})):g.value={x:_,y:L}}w.value?S(!0):m(!0),o("click",R)},F=()=>{m(!1),f.value||(g.value=null)},P=be(null);Ne(()=>P,()=>{h.value==="loading"&&P.value.complete&&(P.value.naturalWidth||P.value.naturalHeight)&&T()});let I=()=>{};Qe(()=>{Ne([s,A],()=>{if(I(),!w.value)return()=>{};I=D(O.value,s.value,A.value),A.value||I()},{flush:"post",immediate:!0})}),Cr(()=>{I()});const N=R=>_q(R)?R+"px":R;return()=>{const{prefixCls:R,wrapperClassName:_,fallback:L,src:k,placeholder:H,wrapperStyle:V,rootClassName:U}=e,{width:q,height:K,crossorigin:X,decoding:re,alt:ee,sizes:G,srcset:le,usemap:ue,class:me,style:Se}=n,Q=l.value,{icons:te,maskClassName:de}=Q,Y=Cue(Q,["icons","maskClassName"]),ae=ge(R,_,U,{[`${R}-error`]:x.value}),ce=x.value&&L?L:s.value,Ce={crossorigin:X,decoding:re,alt:ee,sizes:G,srcset:le,usemap:ue,class:ge(`${R}-img`,{[`${R}-img-placeholder`]:H===!0},me),style:E({height:K},Se)};return C(dt,null,[C("div",{class:ae,onClick:A.value?B:ye=>{o("click",ye)},style:E({width:N(q),height:N(K)},V)},[C("img",j(j(j({},Ce),x.value&&L?{src:L}:{onLoad:T,onError:M,src:k}),{},{ref:P}),null),h.value==="loading"&&C("div",{"aria-hidden":"true",class:`${R}-placeholder`},[H||r.placeholder&&r.placeholder()]),r.previewMask&&A.value&&C("div",{class:[`${R}-mask`,de]},[r.previewMask()])]),!w.value&&A.value&&C(d6,j(j({},Y),{},{"aria-hidden":!v.value,visible:v.value,prefixCls:i.value,onClose:F,mousePosition:g.value,src:ce,alt:ee,getContainer:d.value,icons:te,rootClassName:U}),null)])}}});m6.PreviewGroup=c6;const Eue=m6;function P3(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const v6=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`]:E(E({},P3("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:E(E({},P3("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Jb(e)}]},Due=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:E(E({},rt(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:E({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},ba(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Aue=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:E({},yo()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls}, ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess},[`${t}-zoom-leave ${t}-btns`]:{pointerEvents:"none"}}},Oue=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Tue=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${e.padding*2}px ${e.padding*2}px ${e.paddingLG}px`},[`${r}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${r}-btns`]:{marginTop:e.marginLG}}}},Mue=nt("Modal",e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5,o=qe(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:r,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:r*n+t*2,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:e.controlHeightLG*.55});return[Due(o),Aue(o),Oue(o),v6(o),e.wireframe&&Tue(o),Ns(o,"zoom")]}),B0=e=>({position:e||"absolute",inset:0}),Nue=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new $t("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:E(E({},gn),{padding:`0 ${r}px`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},Pue=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,previewOperationColorDisabled:o,motionDurationSlow:a}=e,i=new $t(n).setAlpha(.1),l=i.clone().setAlpha(.2);return{[`${t}-operations`]:E(E({},rt(e)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:e.previewOperationColor,listStyle:"none",background:i.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{color:o,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:e.previewOperationSize}})}},Iue=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:a,motionDurationSlow:i}=e,l=new $t(t).setAlpha(.1),s=l.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:a+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:s.toRgbString()},["&-disabled"]:{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},_ue=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:E(E({},B0()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":E(E({},B0()),{transition:`transform ${r} ${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"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:e.zIndexPopup+1,width:"100%"},"&":[Pue(e),Iue(e)]}]},Bue=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`]:E({},Nue(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:E({},B0())}}},Fue=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Ns(e,"zoom"),["&"]:Jb(e,!0)}},h6=nt("Image",e=>{const t=`${e.componentCls}-preview`,n=qe(e,{previewCls:t,modalMaskBg:new $t("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Bue(n),_ue(n),v6(qe(n,{componentCls:t})),Fue(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new $t(e.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new $t(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5})),g6={rotateLeft:C(die,null,null),rotateRight:C(vie,null,null),zoomIn:C(zie,null,null),zoomOut:C(jie,null,null),close:C(Hr,null,null),left:C(oi,null,null),right:C(xo,null,null)},Rue=()=>({previewPrefixCls:String,preview:jt()}),zue=he({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:Rue(),setup(e,t){let{attrs:n,slots:r}=t;const{prefixCls:o}=He("image",e),a=z(()=>`${o.value}-preview`),[i,l]=h6(o),s=z(()=>{const{preview:u}=e;return u===!1?u:E(E({},typeof u=="object"?u:{}),{rootClassName:l.value})});return()=>i(C(c6,j(j({},E(E({},n),e)),{},{preview:s.value,icons:g6,previewPrefixCls:a.value}),r))}}),y6=zue,Ti=he({name:"AImage",inheritAttrs:!1,props:f6(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,rootPrefixCls:a,configProvider:i}=He("image",e),[l,s]=h6(o),u=z(()=>{const{preview:c}=e;if(c===!1)return c;const d=typeof c=="object"?c:{};return E(E({icons:g6},d),{transitionName:xr(a.value,"zoom",d.transitionName),maskTransitionName:xr(a.value,"fade",d.maskTransitionName)})});return()=>{var c,d;const f=((d=(c=i.locale)===null||c===void 0?void 0:c.value)===null||d===void 0?void 0:d.Image)||cr.Image,p=()=>C("div",{class:`${o.value}-mask-info`},[C(Px,null,null),f==null?void 0:f.preview]),{previewMask:v=n.previewMask||p}=e;return l(C(Eue,j(j({},E(E(E({},r),e),{prefixCls:o.value})),{},{preview:u.value,rootClassName:ge(e.rootClassName,s.value)}),E(E({},n),{previewMask:typeof v=="function"?v:null})))}}});Ti.PreviewGroup=y6;Ti.install=function(e){return e.component(Ti.name,Ti),e.component(Ti.PreviewGroup.name,Ti.PreviewGroup),e};const Lue=Ti;function F0(){return typeof BigInt=="function"}function Du(e){let t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t=`0${t}`);const r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);const l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:a,decimalStr:i,fullStr:`${l}${r}`}}function uw(e){const t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function ec(e){const t=String(e);if(uw(e)){let n=Number(t.slice(t.indexOf("e-")+2));const r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&dw(t)?t.length-t.indexOf(".")-1:0}function cw(e){let t=String(e);if(uw(e)){if(e>Number.MAX_SAFE_INTEGER)return String(F0()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new Mi(Number.MAX_SAFE_INTEGER);if(r0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":cw(this.number):this.origin}}class Rl{constructor(t){if(this.origin="",b6(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}let n=t;if(uw(n)&&(n=Number(n)),n=typeof n=="string"?n:cw(n),dw(n)){const r=Du(n);this.negative=r.negative;const o=r.trimStr.split(".");this.integer=BigInt(o[0]);const a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,"0")}alignDecimal(t){const n=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(t,"0")}`;return BigInt(n)}negate(){const t=new Rl(this.toString());return t.negative=!t.negative,t}add(t){if(this.isInvalidate())return new Rl(t);const n=new Rl(t);if(n.isInvalidate())return this;const r=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),o=this.alignDecimal(r),a=n.alignDecimal(r),i=(o+a).toString(),{negativeStr:l,trimStr:s}=Du(i),u=`${l}${s.padStart(r+1,"0")}`;return new Rl(`${u.slice(0,-r)}.${u.slice(-r)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(t){return this.toString()===(t==null?void 0:t.toString())}lessEquals(t){return this.add(t.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":Du(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function Po(e){return F0()?new Rl(e):new Mi(e)}function R0(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";const{negativeStr:o,integerStr:a,decimalStr:i}=Du(e),l=`${t}${i}`,s=`${o}${a}`;if(n>=0){const u=Number(i[n]);if(u>=5&&!r){const c=Po(e).add(`${o}0.${"0".repeat(n)}${10-u}`);return R0(c.toString(),t,n,r)}return n===0?s:`${s}${t}${i.padEnd(n,"0").slice(0,n)}`}return l===".0"?s:`${s}${l}`}const kue=200,Hue=600,jue=he({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:Oe()},slots:Object,setup(e,t){let{slots:n,emit:r}=t;const o=be(),a=(l,s)=>{l.preventDefault(),r("step",s);function u(){r("step",s),o.value=setTimeout(u,kue)}o.value=setTimeout(u,Hue)},i=()=>{clearTimeout(o.value)};return st(()=>{i()}),()=>{if(Tb())return null;const{prefixCls:l,upDisabled:s,downDisabled:u}=e,c=`${l}-handler`,d=ge(c,`${c}-up`,{[`${c}-up-disabled`]:s}),f=ge(c,`${c}-down`,{[`${c}-down-disabled`]:u}),p={unselectable:"on",role:"button",onMouseup:i,onMouseleave:i},{upNode:v,downNode:m}=n;return C("div",{class:`${c}-wrap`},[C("span",j(j({},p),{},{onMousedown:h=>{a(h,!0)},"aria-label":"Increase Value","aria-disabled":s,class:d}),[(v==null?void 0:v())||C("span",{unselectable:"on",class:`${l}-handler-up-inner`},null)]),C("span",j(j({},p),{},{onMousedown:h=>{a(h,!1)},"aria-label":"Decrease Value","aria-disabled":u,class:f}),[(m==null?void 0:m())||C("span",{unselectable:"on",class:`${l}-handler-down-inner`},null)])])}}});function Vue(e,t){const n=be(null);function r(){try{const{selectionStart:a,selectionEnd:i,value:l}=e.value,s=l.substring(0,a),u=l.substring(i);n.value={start:a,end:i,value:l,beforeTxt:s,afterTxt:u}}catch{}}function o(){if(e.value&&n.value&&t.value)try{const{value:a}=e.value,{beforeTxt:i,afterTxt:l,start:s}=n.value;let u=a.length;if(a.endsWith(l))u=a.length-n.value.afterTxt.length;else if(a.startsWith(i))u=i.length;else{const c=i[s-1],d=a.indexOf(c,s-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}catch(a){`${a.message}`}}return[r,o]}const Wue=()=>{const e=pe(0),t=()=>{tt.cancel(e.value)};return st(()=>{t()}),n=>{t(),e.value=tt(()=>{n()})}};var Uue=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe||t.isEmpty()?t.toString():t.toNumber(),_3=e=>{const t=Po(e);return t.isInvalidate()?null:t},x6=()=>({stringMode:Pe(),defaultValue:Xe([String,Number]),value:Xe([String,Number]),prefixCls:Ue(),min:Xe([String,Number]),max:Xe([String,Number]),step:Xe([String,Number],1),tabindex:Number,controls:Pe(!0),readonly:Pe(),disabled:Pe(),autofocus:Pe(),keyboard:Pe(!0),parser:Oe(),formatter:Oe(),precision:Number,decimalSeparator:String,onInput:Oe(),onChange:Oe(),onPressEnter:Oe(),onStep:Oe(),onBlur:Oe(),onFocus:Oe()}),Kue=he({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:E(E({},x6()),{lazy:Boolean}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:o,expose:a}=t;const i=pe(),l=pe(!1),s=pe(!1),u=pe(!1),c=pe(Po(e.value));function d(k){e.value===void 0&&(c.value=k)}const f=(k,H)=>{if(!H)return e.precision>=0?e.precision:Math.max(ec(k),ec(e.step))},p=k=>{const H=String(k);if(e.parser)return e.parser(H);let V=H;return e.decimalSeparator&&(V=V.replace(e.decimalSeparator,".")),V.replace(/[^\w.-]+/g,"")},v=pe(""),m=(k,H)=>{if(e.formatter)return e.formatter(k,{userTyping:H,input:String(v.value)});let V=typeof k=="number"?cw(k):k;if(!H){const U=f(V,H);if(dw(V)&&(e.decimalSeparator||U>=0)){const q=e.decimalSeparator||".";V=R0(V,q,U)}}return V},h=(()=>{const k=e.value;return c.value.isInvalidate()&&["string","number"].includes(typeof k)?Number.isNaN(k)?"":k:m(c.value.toString(),!1)})();v.value=h;function g(k,H){v.value=m(k.isInvalidate()?k.toString(!1):k.toString(!H),H)}const x=z(()=>_3(e.max)),y=z(()=>_3(e.min)),w=z(()=>!x.value||!c.value||c.value.isInvalidate()?!1:x.value.lessEquals(c.value)),b=z(()=>!y.value||!c.value||c.value.isInvalidate()?!1:c.value.lessEquals(y.value)),[S,$]=Vue(i,l),D=k=>x.value&&!k.lessEquals(x.value)?x.value:y.value&&!y.value.lessEquals(k)?y.value:null,O=k=>!D(k),A=(k,H)=>{var V;let U=k,q=O(U)||U.isEmpty();if(!U.isEmpty()&&!H&&(U=D(U)||U,q=!0),!e.readonly&&!e.disabled&&q){const K=U.toString(),X=f(K,H);return X>=0&&(U=Po(R0(K,".",X))),U.equals(c.value)||(d(U),(V=e.onChange)===null||V===void 0||V.call(e,U.isEmpty()?null:I3(e.stringMode,U)),e.value===void 0&&g(U,H)),U}return c.value},T=Wue(),M=k=>{var H;if(S(),v.value=k,!u.value){const V=p(k),U=Po(V);U.isNaN()||A(U,!0)}(H=e.onInput)===null||H===void 0||H.call(e,k),T(()=>{let V=k;e.parser||(V=k.replace(/。/g,".")),V!==k&&M(V)})},B=()=>{u.value=!0},F=()=>{u.value=!1,M(i.value.value)},P=k=>{M(k.target.value)},I=k=>{var H,V;if(k&&w.value||!k&&b.value)return;s.value=!1;let U=Po(e.step);k||(U=U.negate());const q=(c.value||Po(0)).add(U.toString()),K=A(q,!1);(H=e.onStep)===null||H===void 0||H.call(e,I3(e.stringMode,K),{offset:e.step,type:k?"up":"down"}),(V=i.value)===null||V===void 0||V.focus()},N=k=>{const H=Po(p(v.value));let V=H;H.isNaN()?V=c.value:V=A(H,k),e.value!==void 0?g(c.value,!1):V.isNaN()||g(V,!1)},R=k=>{var H;const{which:V}=k;s.value=!0,V===_e.ENTER&&(u.value||(s.value=!1),N(!1),(H=e.onPressEnter)===null||H===void 0||H.call(e,k)),e.keyboard!==!1&&!u.value&&[_e.UP,_e.DOWN].includes(V)&&(I(_e.UP===V),k.preventDefault())},_=()=>{s.value=!1},L=k=>{N(!1),l.value=!1,s.value=!1,o("blur",k)};return Ne(()=>e.precision,()=>{c.value.isInvalidate()||g(c.value,!1)},{flush:"post"}),Ne(()=>e.value,()=>{const k=Po(e.value);c.value=k;const H=Po(p(v.value));(!k.equals(H)||!s.value||e.formatter)&&g(k,s.value)},{flush:"post"}),Ne(v,()=>{e.formatter&&$()},{flush:"post"}),Ne(()=>e.disabled,k=>{k&&(l.value=!1)}),a({focus:()=>{var k;(k=i.value)===null||k===void 0||k.focus()},blur:()=>{var k;(k=i.value)===null||k===void 0||k.blur()}}),()=>{const k=E(E({},n),e),{prefixCls:H="rc-input-number",min:V,max:U,step:q=1,defaultValue:K,value:X,disabled:re,readonly:ee,keyboard:G,controls:le=!0,autofocus:ue,stringMode:me,parser:Se,formatter:Q,precision:te,decimalSeparator:de,onChange:Y,onInput:ae,onPressEnter:ce,onStep:Ce,lazy:ye,class:J,style:ne}=k,oe=Uue(k,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:ie,downHandler:ve}=r,we=`${H}-input`,$e={};return ye?$e.onChange=P:$e.onInput=P,C("div",{class:ge(H,J,{[`${H}-focused`]:l.value,[`${H}-disabled`]:re,[`${H}-readonly`]:ee,[`${H}-not-a-number`]:c.value.isNaN(),[`${H}-out-of-range`]:!c.value.isInvalidate()&&!O(c.value)}),style:ne,onKeydown:R,onKeyup:_},[le&&C(jue,{prefixCls:H,upDisabled:w.value,downDisabled:b.value,onStep:I},{upNode:ie,downNode:ve}),C("div",{class:`${we}-wrap`},[C("input",j(j(j({autofocus:ue,autocomplete:"off",role:"spinbutton","aria-valuemin":V,"aria-valuemax":U,"aria-valuenow":c.value.isInvalidate()?null:c.value.toString(),step:q},oe),{},{ref:i,class:we,value:v.value,disabled:re,readonly:ee,onFocus:Ae=>{l.value=!0,o("focus",Ae)}},$e),{},{onBlur:L,onCompositionstart:B,onCompositionend:F}),null)])])}}});function Vh(e){return e!=null}const que=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:a,fontSizeLG:i,controlHeightLG:l,controlHeightSM:s,colorError:u,inputPaddingHorizontalSM:c,colorTextDescription:d,motionDurationMid:f,colorPrimary:p,controlHeight:v,inputPaddingHorizontal:m,colorBgContainer:h,colorTextDisabled:g,borderRadiusSM:x,borderRadiusLG:y,controlWidth:w,handleVisible:b}=e;return[{[t]:E(E(E(E({},rt(e)),il(e)),xc(e,t)),{display:"inline-block",width:w,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:a,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,borderRadius:y,[`input${t}-input`]:{height:l-2*n}},"&-sm":{padding:0,borderRadius:x,[`input${t}-input`]:{height:s-2*n,padding:`0 ${c}px`}},"&:hover":E({},Fs(e)),"&-focused":E({},ri(e)),"&-disabled":E(E({},G1(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:u}},"&-group":E(E(E({},rt(e)),mI(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:y}},"&-sm":{[`${t}-group-addon`]:{borderRadius:x}}}}),[t]:{"&-input":E(E({width:"100%",height:v-2*n,padding:`0 ${m}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${f} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},q1(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:h,borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:b===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${f} linear ${f}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${o}`,transition:`all ${f} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{color:p}},"&-up-inner, &-down-inner":E(E({},Ji()),{color:d,transition:`all ${f} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:a},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"}},[` ${t}-handler-up-disabled, ${t}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner `]:{color:g}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},Gue=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:o,borderRadiusLG:a,borderRadiusSM:i}=e;return{[`${t}-affix-wrapper`]:E(E(E({},il(e)),xc(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:o,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:a},"&-sm":{borderRadius:i},[`&:not(${t}-affix-wrapper-disabled):hover`]:E(E({},Fs(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:r}}})}},Xue=nt("InputNumber",e=>{const t=ll(e);return[que(t),Gue(t),Ps(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var Yue=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oE(E({},B3),{size:Ue(),bordered:Pe(!0),placeholder:String,name:String,id:String,type:String,addonBefore:Z.any,addonAfter:Z.any,prefix:Z.any,"onUpdate:value":B3.onChange,valueModifiers:Object,status:Ue()}),Wh=he({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:Zue(),slots:Object,setup(e,t){let{emit:n,expose:r,attrs:o,slots:a}=t;const i=Sn(),l=Bn.useInject(),s=z(()=>$o(l.status,e.status)),{prefixCls:u,size:c,direction:d,disabled:f}=He("input-number",e),{compactSize:p,compactItemClassnames:v}=di(u,d),m=Fr(),h=z(()=>{var M;return(M=f.value)!==null&&M!==void 0?M:m.value}),[g,x]=Xue(u),y=z(()=>p.value||c.value),w=pe(e.value===void 0?e.defaultValue:e.value),b=pe(!1);Ne(()=>e.value,()=>{w.value=e.value});const S=pe(null);r({focus:()=>{var M;(M=S.value)===null||M===void 0||M.focus()},blur:()=>{var M;(M=S.value)===null||M===void 0||M.blur()}});const O=M=>{e.value===void 0&&(w.value=M),n("update:value",M),n("change",M),i.onFieldChange()},A=M=>{b.value=!1,n("blur",M),i.onFieldBlur()},T=M=>{b.value=!0,n("focus",M)};return()=>{var M,B,F,P;const{hasFeedback:I,isFormItemInput:N,feedbackIcon:R}=l,_=(M=e.id)!==null&&M!==void 0?M:i.id.value,L=E(E(E({},o),e),{id:_,disabled:h.value}),{class:k,bordered:H,readonly:V,style:U,addonBefore:q=(B=a.addonBefore)===null||B===void 0?void 0:B.call(a),addonAfter:K=(F=a.addonAfter)===null||F===void 0?void 0:F.call(a),prefix:X=(P=a.prefix)===null||P===void 0?void 0:P.call(a),valueModifiers:re={}}=L,ee=Yue(L,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),G=u.value,le=ge({[`${G}-lg`]:y.value==="large",[`${G}-sm`]:y.value==="small",[`${G}-rtl`]:d.value==="rtl",[`${G}-readonly`]:V,[`${G}-borderless`]:!H,[`${G}-in-form-item`]:N},Qn(G,s.value),k,v.value,x.value);let ue=C(Kue,j(j({},pt(ee,["size","defaultValue"])),{},{ref:S,lazy:!!re.lazy,value:w.value,class:le,prefixCls:G,readonly:V,onChange:O,onBlur:A,onFocus:T}),{upHandler:a.upIcon?()=>C("span",{class:`${G}-handler-up-inner`},[a.upIcon()]):()=>C(Aie,{class:`${G}-handler-up-inner`},null),downHandler:a.downIcon?()=>C("span",{class:`${G}-handler-down-inner`},[a.downIcon()]):()=>C(pc,{class:`${G}-handler-down-inner`},null)});const me=Vh(q)||Vh(K),Se=Vh(X);if(Se||I){const Q=ge(`${G}-affix-wrapper`,Qn(`${G}-affix-wrapper`,s.value,I),{[`${G}-affix-wrapper-focused`]:b.value,[`${G}-affix-wrapper-disabled`]:h.value,[`${G}-affix-wrapper-sm`]:y.value==="small",[`${G}-affix-wrapper-lg`]:y.value==="large",[`${G}-affix-wrapper-rtl`]:d.value==="rtl",[`${G}-affix-wrapper-readonly`]:V,[`${G}-affix-wrapper-borderless`]:!H,[`${k}`]:!me&&k},x.value);ue=C("div",{class:Q,style:U,onMouseup:()=>S.value.focus()},[Se&&C("span",{class:`${G}-prefix`},[X]),ue,I&&C("span",{class:`${G}-suffix`},[R])])}if(me){const Q=`${G}-group`,te=`${Q}-addon`,de=q?C("div",{class:te},[q]):null,Y=K?C("div",{class:te},[K]):null,ae=ge(`${G}-wrapper`,Q,{[`${Q}-rtl`]:d.value==="rtl"},x.value),ce=ge(`${G}-group-wrapper`,{[`${G}-group-wrapper-sm`]:y.value==="small",[`${G}-group-wrapper-lg`]:y.value==="large",[`${G}-group-wrapper-rtl`]:d.value==="rtl"},Qn(`${u}-group-wrapper`,s.value,I),k,x.value);ue=C("div",{class:ce,style:U},[C("div",{class:ae},[de&&C(Wu,null,{default:()=>[C(Qf,null,{default:()=>[de]})]}),ue,Y&&C(Wu,null,{default:()=>[C(Qf,null,{default:()=>[Y]})]})])])}return g(At(ue,{style:U}))}}}),Jue=E(Wh,{install:e=>(e.component(Wh.name,Wh),e)}),Que=e=>{const{componentCls:t,colorBgContainer:n,colorBgBody:r,colorText:o}=e;return{[`${t}-sider-light`]:{background:n,[`${t}-sider-trigger`]:{color:o,background:n},[`${t}-sider-zero-width-trigger`]:{color:o,background:n,border:`1px solid ${r}`,borderInlineStart:0}}}},ece=Que,tce=e=>{const{antCls:t,componentCls:n,colorText:r,colorTextLightSolid:o,colorBgHeader:a,colorBgBody:i,colorBgTrigger:l,layoutHeaderHeight:s,layoutHeaderPaddingInline:u,layoutHeaderColor:c,layoutFooterPadding:d,layoutTriggerHeight:f,layoutZeroTriggerSize:p,motionDurationMid:v,motionDurationSlow:m,fontSize:h,borderRadius:g}=e;return{[n]:E(E({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:i,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-header`]:{height:s,paddingInline:u,color:c,lineHeight:`${s}px`,background:a,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:h,background:i},[`${n}-content`]:{flex:"auto",minHeight:0},[`${n}-sider`]:{position:"relative",minWidth:0,background:a,transition:`all ${v}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:o,lineHeight:`${f}px`,textAlign:"center",background:l,cursor:"pointer",transition:`all ${v}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:-p,zIndex:1,width:p,height:p,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:a,borderStartStartRadius:0,borderStartEndRadius:g,borderEndEndRadius:g,borderEndStartRadius:0,cursor:"pointer",transition:`background ${m} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${m}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-p,borderStartStartRadius:g,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:g}}}}},ece(e)),{"&-rtl":{direction:"rtl"}})}},nce=nt("Layout",e=>{const{colorText:t,controlHeightSM:n,controlHeight:r,controlHeightLG:o,marginXXS:a}=e,i=o*1.25,l=qe(e,{layoutHeaderHeight:r*2,layoutHeaderPaddingInline:i,layoutHeaderColor:t,layoutFooterPadding:`${n}px ${i}px`,layoutTriggerHeight:o+a*2,layoutZeroTriggerSize:o});return[tce(l)]},e=>{const{colorBgLayout:t}=e;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140"}}),fw=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function sv(e){let{suffixCls:t,tagName:n,name:r}=e;return o=>he({compatConfig:{MODE:3},name:r,props:fw(),setup(i,l){let{slots:s}=l;const{prefixCls:u}=He(t,i);return()=>{const c=E(E({},i),{prefixCls:u.value,tagName:n});return C(o,c,s)}}})}const pw=he({compatConfig:{MODE:3},props:fw(),setup(e,t){let{slots:n}=t;return()=>C(e.tagName,{class:e.prefixCls},n)}}),rce=he({compatConfig:{MODE:3},inheritAttrs:!1,props:fw(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("",e),[i,l]=nce(o),s=be([]);it(TP,{addSider:d=>{s.value=[...s.value,d]},removeSider:d=>{s.value=s.value.filter(f=>f!==d)}});const c=z(()=>{const{prefixCls:d,hasSider:f}=e;return{[l.value]:!0,[`${d}`]:!0,[`${d}-has-sider`]:typeof f=="boolean"?f:s.value.length>0,[`${d}-rtl`]:a.value==="rtl"}});return()=>{const{tagName:d}=e;return i(C(d,E(E({},r),{class:[c.value,r.class]}),n))}}}),oce=sv({suffixCls:"layout",tagName:"section",name:"ALayout"})(rce),ff=sv({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(pw),pf=sv({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(pw),mf=sv({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(pw),Uh=oce,F3={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1999.98px"},ace=()=>({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:Z.any,width:Z.oneOfType([Z.number,Z.string]),collapsedWidth:Z.oneOfType([Z.number,Z.string]),breakpoint:Z.oneOf(Un("xs","sm","md","lg","xl","xxl","xxxl")),theme:Z.oneOf(Un("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),ice=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),vf=he({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:at(ace(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,t){let{emit:n,attrs:r,slots:o}=t;const{prefixCls:a}=He("layout-sider",e),i=lt(TP,void 0),l=pe(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),s=pe(!1);Ne(()=>e.collapsed,()=>{l.value=!!e.collapsed}),it(OP,l);const u=(m,h)=>{e.collapsed===void 0&&(l.value=m),n("update:collapsed",m),n("collapse",m,h)},c=pe(m=>{s.value=m.matches,n("breakpoint",m.matches),l.value!==m.matches&&u(m.matches,"responsive")});let d;function f(m){return c.value(m)}const p=ice("ant-sider-");i&&i.addSider(p),Qe(()=>{Ne(()=>e.breakpoint,()=>{try{d==null||d.removeEventListener("change",f)}catch{d==null||d.removeListener(f)}if(typeof window<"u"){const{matchMedia:m}=window;if(m&&e.breakpoint&&e.breakpoint in F3){d=m(`(max-width: ${F3[e.breakpoint]})`);try{d.addEventListener("change",f)}catch{d.addListener(f)}f(d)}}},{immediate:!0})}),st(()=>{try{d==null||d.removeEventListener("change",f)}catch{d==null||d.removeListener(f)}i&&i.removeSider(p)});const v=()=>{u(!l.value,"clickTrigger")};return()=>{var m,h;const g=a.value,{collapsedWidth:x,width:y,reverseArrow:w,zeroWidthTriggerStyle:b,trigger:S=(m=o.trigger)===null||m===void 0?void 0:m.call(o),collapsible:$,theme:D}=e,O=l.value?x:y,A=ap(O)?`${O}px`:String(O),T=parseFloat(String(x||0))===0?C("span",{onClick:v,class:ge(`${g}-zero-width-trigger`,`${g}-zero-width-trigger-${w?"right":"left"}`),style:b},[S||C(Coe,null,null)]):null,M={expanded:w?C(xo,null,null):C(oi,null,null),collapsed:w?C(oi,null,null):C(xo,null,null)},B=l.value?"collapsed":"expanded",F=M[B],P=S!==null?T||C("div",{class:`${g}-trigger`,onClick:v,style:{width:A}},[S||F]):null,I=[r.style,{flex:`0 0 ${A}`,maxWidth:A,minWidth:A,width:A}],N=ge(g,`${g}-${D}`,{[`${g}-collapsed`]:!!l.value,[`${g}-has-trigger`]:$&&S!==null&&!T,[`${g}-below`]:!!s.value,[`${g}-zero-width`]:parseFloat(A)===0},r.class);return C("aside",j(j({},r),{},{class:N,style:I}),[C("div",{class:`${g}-children`},[(h=o.default)===null||h===void 0?void 0:h.call(o)]),$||s.value&&T?P:null])}}}),lce=ff,sce=pf,uce=vf,cce=mf,dce=E(Uh,{Header:ff,Footer:pf,Content:mf,Sider:vf,install:e=>(e.component(Uh.name,Uh),e.component(ff.name,ff),e.component(pf.name,pf),e.component(vf.name,vf),e.component(mf.name,mf),e)});function fce(e,t,n){var r=n||{},o=r.noTrailing,a=o===void 0?!1:o,i=r.noLeading,l=i===void 0?!1:i,s=r.debounceMode,u=s===void 0?void 0:s,c,d=!1,f=0;function p(){c&&clearTimeout(c)}function v(h){var g=h||{},x=g.upcomingOnly,y=x===void 0?!1:x;p(),d=!y}function m(){for(var h=arguments.length,g=new Array(h),x=0;xe?l?(f=Date.now(),a||(c=setTimeout(u?S:b,e))):b():a!==!0&&(c=setTimeout(u?S:b,u===void 0?e-w:e))}return m.cancel=v,m}function pce(e,t,n){var r=n||{},o=r.atBegin,a=o===void 0?!1:o;return fce(e,t,{debounceMode:a!==!1})}const mce=new ft("antSpinMove",{to:{opacity:1}}),vce=new ft("antRotate",{to:{transform:"rotate(405deg)"}}),hce=e=>({[`${e.componentCls}`]:E(E({},rt(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none",["&::after"]:{opacity:.4,pointerEvents:"auto"}}},["&-tip"]:{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:mce,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:vce,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})}),gce=nt("Spin",e=>{const t=qe(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight});return[hce(t)]},{contentHeight:400});var yce=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:Z.any,delay:Number,indicator:Z.any});let hf=null;function xce(e,t){return!!e&&!!t&&!isNaN(Number(t))}function wce(e){const t=e.indicator;hf=typeof t=="function"?t:()=>C(t,null,null)}const Lo=he({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:at(bce(),{size:"default",spinning:!0,wrapperClassName:""}),setup(e,t){let{attrs:n,slots:r}=t;const{prefixCls:o,size:a,direction:i}=He("spin",e),[l,s]=gce(o),u=pe(e.spinning&&!xce(e.spinning,e.delay));let c;return Ne([()=>e.spinning,()=>e.delay],()=>{c==null||c.cancel(),c=pce(e.delay,()=>{u.value=e.spinning}),c==null||c()},{immediate:!0,flush:"post"}),st(()=>{c==null||c.cancel()}),()=>{var d,f;const{class:p}=n,v=yce(n,["class"]),{tip:m=(d=r.tip)===null||d===void 0?void 0:d.call(r)}=e,h=(f=r.default)===null||f===void 0?void 0:f.call(r),g={[s.value]:!0,[o.value]:!0,[`${o.value}-sm`]:a.value==="small",[`${o.value}-lg`]:a.value==="large",[`${o.value}-spinning`]:u.value,[`${o.value}-show-text`]:!!m,[`${o.value}-rtl`]:i.value==="rtl",[p]:!!p};function x(w){const b=`${w}-dot`;let S=wn(r,e,"indicator");return S===null?null:(Array.isArray(S)&&(S=S.length===1?S[0]:S),br(S)?ha(S,{class:b}):hf&&br(hf())?ha(hf(),{class:b}):C("span",{class:`${b} ${w}-dot-spin`},[C("i",{class:`${w}-dot-item`},null),C("i",{class:`${w}-dot-item`},null),C("i",{class:`${w}-dot-item`},null),C("i",{class:`${w}-dot-item`},null)]))}const y=C("div",j(j({},v),{},{class:g,"aria-live":"polite","aria-busy":u.value}),[x(o.value),m?C("div",{class:`${o.value}-text`},[m]):null]);if(h&&nn(h).length){const w={[`${o.value}-container`]:!0,[`${o.value}-blur`]:u.value};return l(C("div",{class:[`${o.value}-nested-loading`,e.wrapperClassName,s.value]},[u.value&&C("div",{key:"loading"},[y]),C("div",{class:w,key:"container"},[h])]))}return l(y)}}});Lo.setDefaultIndicator=wce;Lo.install=function(e){return e.component(Lo.name,Lo),e};const Sce=he({name:"MiniSelect",compatConfig:{MODE:3},inheritAttrs:!1,props:zm(),Option:xa.Option,setup(e,t){let{attrs:n,slots:r}=t;return()=>{const o=E(E(E({},e),{size:"small"}),n);return C(xa,o,r)}}}),Cce=he({name:"MiddleSelect",inheritAttrs:!1,props:zm(),Option:xa.Option,setup(e,t){let{attrs:n,slots:r}=t;return()=>{const o=E(E(E({},e),{size:"middle"}),n);return C(xa,o,r)}}}),wi=he({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:Z.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:n,attrs:r}=t;const o=()=>{n("click",e.page)},a=i=>{n("keypress",i,o,e.page)};return()=>{const{showTitle:i,page:l,itemRender:s}=e,{class:u,style:c}=r,d=`${e.rootPrefixCls}-item`,f=ge(d,`${d}-${e.page}`,{[`${d}-active`]:e.active,[`${d}-disabled`]:!e.page},u);return C("li",{onClick:o,onKeypress:a,title:i?String(l):null,tabindex:"0",class:f,style:c},[s({page:l,type:"page",originalElement:C("a",{rel:"nofollow"},[l])})])}}}),$i={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},$ce=he({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:Z.any,current:Number,pageSizeOptions:Z.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:Z.object,rootPrefixCls:String,selectPrefixCls:String,goButton:Z.any},setup(e){const t=be(""),n=z(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),r=s=>`${s.value} ${e.locale.items_per_page}`,o=s=>{const{value:u,composing:c}=s.target;s.isComposing||c||t.value===u||(t.value=u)},a=s=>{const{goButton:u,quickGo:c,rootPrefixCls:d}=e;if(!(u||t.value===""))if(s.relatedTarget&&(s.relatedTarget.className.indexOf(`${d}-item-link`)>=0||s.relatedTarget.className.indexOf(`${d}-item`)>=0)){t.value="";return}else c(n.value),t.value=""},i=s=>{t.value!==""&&(s.keyCode===$i.ENTER||s.type==="click")&&(e.quickGo(n.value),t.value="")},l=z(()=>{const{pageSize:s,pageSizeOptions:u}=e;return u.some(c=>c.toString()===s.toString())?u:u.concat([s.toString()]).sort((c,d)=>{const f=isNaN(Number(c))?0:Number(c),p=isNaN(Number(d))?0:Number(d);return f-p})});return()=>{const{rootPrefixCls:s,locale:u,changeSize:c,quickGo:d,goButton:f,selectComponentClass:p,selectPrefixCls:v,pageSize:m,disabled:h}=e,g=`${s}-options`;let x=null,y=null,w=null;if(!c&&!d)return null;if(c&&p){const b=e.buildOptionText||r,S=l.value.map(($,D)=>C(p.Option,{key:D,value:$},{default:()=>[b({value:$})]}));x=C(p,{disabled:h,prefixCls:v,showSearch:!1,class:`${g}-size-changer`,optionLabelProp:"children",value:(m||l.value[0]).toString(),onChange:$=>c(Number($)),getPopupContainer:$=>$.parentNode},{default:()=>[S]})}return d&&(f&&(w=typeof f=="boolean"?C("button",{type:"button",onClick:i,onKeyup:i,disabled:h,class:`${g}-quick-jumper-button`},[u.jump_to_confirm]):C("span",{onClick:i,onKeyup:i},[f])),y=C("div",{class:`${g}-quick-jumper`},[u.jump_to,vn(C("input",{disabled:h,type:"text",value:t.value,onInput:o,onChange:o,onKeyup:i,onBlur:a},null),[[Ds]]),u.page,w])),C("li",{class:`${g}`},[x,y])}}}),w6={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"};var Ece=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o"u"?t.statePageSize:e;return Math.floor((n.total-1)/r)+1}const Oce=he({compatConfig:{MODE:3},name:"Pagination",mixins:[nl],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:Z.string.def("rc-pagination"),selectPrefixCls:Z.string.def("rc-select"),current:Number,defaultCurrent:Z.number.def(1),total:Z.number.def(0),pageSize:Number,defaultPageSize:Z.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:Z.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:Z.oneOfType([Z.looseBool,Z.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:Z.arrayOf(Z.oneOfType([Z.number,Z.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:Z.object.def(w6),itemRender:Z.func.def(Ace),prevIcon:Z.any,nextIcon:Z.any,jumpPrevIcon:Z.any,jumpNextIcon:Z.any,totalBoundaryShowSizeChanger:Z.number.def(50)},data(){const e=this.$props;let t=np([this.current,this.defaultCurrent]);const n=np([this.pageSize,this.defaultPageSize]);return t=Math.min(t,Jo(n,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:n}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let n=this.stateCurrent;const r=Jo(e,this.$data,this.$props);n=n>r?r:n,aa(this,"current")||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){const n=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);n&&document.activeElement===n&&n.blur()}})},total(){const e={},t=Jo(this.pageSize,this.$data,this.$props);if(aa(this,"current")){const n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{let n=this.stateCurrent;n===0&&t>0?n=1:n=Math.min(this.stateCurrent,t),e.stateCurrent=n}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(Jo(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:n}=this.$props;return zT(this,e,this.$props)||C("button",{type:"button","aria-label":t,class:`${n}-item-link`},null)},getValidValue(e){const t=e.target.value,n=Jo(void 0,this.$data,this.$props),{stateCurrentInputValue:r}=this.$data;let o;return t===""?o=t:isNaN(Number(t))?o=r:t>=n?o=n:o=Number(t),o},isValid(e){return Dce(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:n}=this.$props;return n<=t?!1:e},handleKeyDown(e){(e.keyCode===$i.ARROW_UP||e.keyCode===$i.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){if(e.isComposing||e.target.composing)return;const t=this.getValidValue(e),n=this.stateCurrentInputValue;t!==n&&this.setState({stateCurrentInputValue:t}),e.keyCode===$i.ENTER?this.handleChange(t):e.keyCode===$i.ARROW_UP?this.handleChange(t-1):e.keyCode===$i.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const n=t,r=Jo(e,this.$data,this.$props);t=t>r?r:t,r===0&&(t=this.stateCurrent),typeof e=="number"&&(aa(this,"pageSize")||this.setState({statePageSize:e}),aa(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==n&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let n=e;if(this.isValid(n)&&!t){const r=Jo(void 0,this.$data,this.$props);return n>r?n=r:n<1&&(n=1),aa(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit("update:current",n),this.__emit("change",n,this.statePageSize),n}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrentn},runIfEnter(e,t){if(e.key==="Enter"||e.charCode===13){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o0?g-1:0,I=g+1=F*2&&g!==1+2&&($[0]=C(wi,{locale:o,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:q,page:q,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:c},null),$.unshift(D)),S-g>=F*2&&g!==S-2&&($[$.length-1]=C(wi,{locale:o,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:K,page:K,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:c},null),$.push(O)),q!==1&&$.unshift(A),K!==S&&$.push(T)}let _=null;s&&(_=C("li",{class:`${e}-total-text`},[s(r,[r===0?0:(g-1)*x+1,g*x>r?r:g*x])]));const L=!N||!S,k=!R||!S,H=this.buildOptionText||this.$slots.buildOptionText;return C("ul",j(j({unselectable:"on",ref:"paginationNode"},b),{},{class:ge({[`${e}`]:!0,[`${e}-disabled`]:t},w)}),[_,C("li",{title:l?o.prev_page:null,onClick:this.prev,tabindex:L?null:0,onKeypress:this.runIfEnterPrev,class:ge(`${e}-prev`,{[`${e}-disabled`]:L}),"aria-disabled":L},[this.renderPrev(P)]),$,C("li",{title:l?o.next_page:null,onClick:this.next,tabindex:k?null:0,onKeypress:this.runIfEnterNext,class:ge(`${e}-next`,{[`${e}-disabled`]:k}),"aria-disabled":k},[this.renderNext(I)]),C($ce,{disabled:t,locale:o,rootPrefixCls:e,selectComponentClass:v,selectPrefixCls:m,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:g,pageSize:x,pageSizeOptions:h,buildOptionText:H||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:B},null)])}}),Tce=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[` &:hover ${t}-item:not(${t}-item-active), &:active ${t}-item:not(${t}-item-active), &:hover ${t}-item-link, &:active ${t}-item-link `]:{backgroundColor:"transparent"}},[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Mce=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM-2}px`},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}},[` &${t}-mini ${t}-prev ${t}-item-link, &${t}-mini ${t}-next ${t}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,["&-size-changer"]:{top:e.paginationMiniOptionsSizeChangerTop},["&-quick-jumper"]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:E(E({},X1(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Nce=e=>{const{componentCls:t}=e;return{[` &${t}-simple ${t}-prev, &${t}-simple ${t}-next `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Pce=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},"&:focus-visible":E({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},ya(e))},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next `]:{marginInlineEnd:e.marginXS},[` ${t}-prev, ${t}-next, ${t}-jump-prev, ${t}-jump-next `]:{display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`border ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:E({},ya(e)),[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:E(E({},il(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Ice=e=>{const{componentCls:t}=e;return{[`${t}-item`]:E(E({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},ba(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},_ce=e=>{const{componentCls:t}=e;return{[t]:E(E(E(E(E(E(E(E({},rt(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.paginationItemSize-2}px`,verticalAlign:"middle"}}),Ice(e)),Pce(e)),Nce(e)),Mce(e)),Tce(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Bce=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.paginationItemDisabledBgActive}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[t]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Fce=nt("Pagination",e=>{const t=qe(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},ll(e));return[_ce(t),e.wireframe&&Bce(t)]});var Rce=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o({total:Number,defaultCurrent:Number,disabled:Pe(),current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:Pe(),showSizeChanger:Pe(),pageSizeOptions:bt(),buildOptionText:Oe(),showQuickJumper:Xe([Boolean,Object]),showTotal:Oe(),size:Ue(),simple:Pe(),locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:Oe(),role:String,responsive:Boolean,showLessItems:Pe(),onChange:Oe(),onShowSizeChange:Oe(),"onUpdate:current":Oe(),"onUpdate:pageSize":Oe()}),Lce=he({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:zce(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,configProvider:a,direction:i,size:l}=He("pagination",e),[s,u]=Fce(o),c=z(()=>a.getPrefixCls("select",e.selectPrefixCls)),d=_s(),[f]=ro("Pagination",XT,Ye(e,"locale")),p=v=>{const m=C("span",{class:`${v}-item-ellipsis`},[sr("•••")]),h=C("button",{class:`${v}-item-link`,type:"button",tabindex:-1},[i.value==="rtl"?C(xo,null,null):C(oi,null,null)]),g=C("button",{class:`${v}-item-link`,type:"button",tabindex:-1},[i.value==="rtl"?C(oi,null,null):C(xo,null,null)]),x=C("a",{rel:"nofollow",class:`${v}-item-link`},[C("div",{class:`${v}-item-container`},[i.value==="rtl"?C(V2,{class:`${v}-item-link-icon`},null):C(H2,{class:`${v}-item-link-icon`},null),m])]),y=C("a",{rel:"nofollow",class:`${v}-item-link`},[C("div",{class:`${v}-item-container`},[i.value==="rtl"?C(H2,{class:`${v}-item-link-icon`},null):C(V2,{class:`${v}-item-link-icon`},null),m])]);return{prevIcon:h,nextIcon:g,jumpPrevIcon:x,jumpNextIcon:y}};return()=>{var v;const{itemRender:m=n.itemRender,buildOptionText:h=n.buildOptionText,selectComponentClass:g,responsive:x}=e,y=Rce(e,["itemRender","buildOptionText","selectComponentClass","responsive"]),w=l.value==="small"||!!(!((v=d.value)===null||v===void 0)&&v.xs&&!l.value&&x),b=E(E(E(E(E({},y),p(o.value)),{prefixCls:o.value,selectPrefixCls:c.value,selectComponentClass:g||(w?Sce:Cce),locale:f.value,buildOptionText:h}),r),{class:ge({[`${o.value}-mini`]:w,[`${o.value}-rtl`]:i.value==="rtl"},r.class,u.value),itemRender:m});return s(C(Oce,b,null))}}}),uv=rn(Lce),kce=()=>({avatar:Z.any,description:Z.any,prefixCls:String,title:Z.any}),S6=he({compatConfig:{MODE:3},name:"AListItemMeta",props:kce(),displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:r}=He("list",e);return()=>{var o,a,i,l,s,u;const c=`${r.value}-item-meta`,d=(o=e.title)!==null&&o!==void 0?o:(a=n.title)===null||a===void 0?void 0:a.call(n),f=(i=e.description)!==null&&i!==void 0?i:(l=n.description)===null||l===void 0?void 0:l.call(n),p=(s=e.avatar)!==null&&s!==void 0?s:(u=n.avatar)===null||u===void 0?void 0:u.call(n),v=C("div",{class:`${r.value}-item-meta-content`},[d&&C("h4",{class:`${r.value}-item-meta-title`},[d]),f&&C("div",{class:`${r.value}-item-meta-description`},[f])]);return C("div",{class:c},[p&&C("div",{class:`${r.value}-item-meta-avatar`},[p]),(d||f)&&v])}}}),C6=Symbol("ListContextKey");var Hce=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o({prefixCls:String,extra:Z.any,actions:Z.array,grid:Object,colStyle:{type:Object,default:void 0}}),$6=he({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:S6,props:jce(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{itemLayout:o,grid:a}=lt(C6,{grid:be(),itemLayout:be()}),{prefixCls:i}=He("list",e),l=()=>{var u;const c=((u=n.default)===null||u===void 0?void 0:u.call(n))||[];let d;return c.forEach(f=>{eR(f)&&!uc(f)&&(d=!0)}),d&&c.length>1},s=()=>{var u,c;const d=(u=e.extra)!==null&&u!==void 0?u:(c=n.extra)===null||c===void 0?void 0:c.call(n);return o.value==="vertical"?!!d:!l()};return()=>{var u,c,d,f,p;const{class:v}=r,m=Hce(r,["class"]),h=i.value,g=(u=e.extra)!==null&&u!==void 0?u:(c=n.extra)===null||c===void 0?void 0:c.call(n),x=(d=n.default)===null||d===void 0?void 0:d.call(n);let y=(f=e.actions)!==null&&f!==void 0?f:Lt((p=n.actions)===null||p===void 0?void 0:p.call(n));y=y&&!Array.isArray(y)?[y]:y;const w=y&&y.length>0&&C("ul",{class:`${h}-item-action`,key:"actions"},[y.map(($,D)=>C("li",{key:`${h}-item-action-${D}`},[$,D!==y.length-1&&C("em",{class:`${h}-item-action-split`},null)]))]),b=a.value?"div":"li",S=C(b,j(j({},m),{},{class:ge(`${h}-item`,{[`${h}-item-no-flex`]:!s()},v)}),{default:()=>[o.value==="vertical"&&g?[C("div",{class:`${h}-item-main`,key:"content"},[x,w]),C("div",{class:`${h}-item-extra`,key:"extra"},[g])]:[x,w,At(g,{key:"extra"})]]});return a.value?C(nv,{flex:1,style:e.colStyle},{default:()=>[S]}):S}}}),Vce=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,padding:a,listItemPaddingSM:i,marginLG:l,borderRadiusLG:s}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${o}px ${l}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:`${a}px ${r}px`}}}},Wce=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:a,margin:i}=e;return{[`@media screen and (max-width:${r})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${i}px`}}}}}},Uce=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:a,marginLG:i,padding:l,listItemPadding:s,colorPrimary:u,listItemPaddingSM:c,listItemPaddingLG:d,paddingXS:f,margin:p,colorText:v,colorTextDescription:m,motionDurationSlow:h,lineWidth:g}=e;return{[`${t}`]:E(E({},rt(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:i,textAlign:"end",[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:v,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:l},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:v},[`${t}-item-meta-title`]:{marginBottom:e.marginXXS,color:v,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:v,transition:`all ${h}`,["&:hover"]:{color:u}}},[`${t}-item-meta-description`]:{color:m,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none",["& > li"]:{position:"relative",display:"inline-block",padding:`0 ${f}px`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center",["&:first-child"]:{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:g,height:Math.ceil(e.fontSize*e.lineHeight)-e.marginXXS*2,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${l}px 0`,color:m,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:l,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:l,[`${t}-item-meta-title`]:{marginBlockEnd:a,color:v,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${l}px`,["&:first-child"]:{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,["&:last-child"]:{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:c},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Kce=nt("List",e=>{const t=qe(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[Uce(t),Vce(t),Wce(t)]},{contentWidth:220}),qce=()=>({bordered:Pe(),dataSource:bt(),extra:Zn(),grid:We(),itemLayout:String,loading:Xe([Boolean,Object]),loadMore:Zn(),pagination:Xe([Boolean,Object]),prefixCls:String,rowKey:Xe([String,Number,Function]),renderItem:Oe(),size:String,split:Pe(),header:Zn(),footer:Zn(),locale:We()}),ka=he({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:$6,props:at(qce(),{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;var o,a;it(C6,{grid:Ye(e,"grid"),itemLayout:Ye(e,"itemLayout")});const i={current:1,total:0},{prefixCls:l,direction:s,renderEmpty:u}=He("list",e),[c,d]=Kce(l),f=z(()=>e.pagination&&typeof e.pagination=="object"?e.pagination:{}),p=be((o=f.value.defaultCurrent)!==null&&o!==void 0?o:1),v=be((a=f.value.defaultPageSize)!==null&&a!==void 0?a:10);Ne(f,()=>{"current"in f.value&&(p.value=f.value.current),"pageSize"in f.value&&(v.value=f.value.pageSize)});const m=[],h=B=>(F,P)=>{p.value=F,v.value=P,f.value[B]&&f.value[B](F,P)},g=h("onChange"),x=h("onShowSizeChange"),y=z(()=>typeof e.loading=="boolean"?{spinning:e.loading}:e.loading),w=z(()=>y.value&&y.value.spinning),b=z(()=>{let B="";switch(e.size){case"large":B="lg";break;case"small":B="sm";break}return B}),S=z(()=>({[`${l.value}`]:!0,[`${l.value}-vertical`]:e.itemLayout==="vertical",[`${l.value}-${b.value}`]:b.value,[`${l.value}-split`]:e.split,[`${l.value}-bordered`]:e.bordered,[`${l.value}-loading`]:w.value,[`${l.value}-grid`]:!!e.grid,[`${l.value}-rtl`]:s.value==="rtl"})),$=z(()=>{const B=E(E(E({},i),{total:e.dataSource.length,current:p.value,pageSize:v.value}),e.pagination||{}),F=Math.ceil(B.total/B.pageSize);return B.current>F&&(B.current=F),B}),D=z(()=>{let B=[...e.dataSource];return e.pagination&&e.dataSource.length>($.value.current-1)*$.value.pageSize&&(B=[...e.dataSource].splice(($.value.current-1)*$.value.pageSize,$.value.pageSize)),B}),O=_s(),A=Pr(()=>{for(let B=0;B{if(!e.grid)return;const B=A.value&&e.grid[A.value]?e.grid[A.value]:e.grid.column;if(B)return{width:`${100/B}%`,maxWidth:`${100/B}%`}}),M=(B,F)=>{var P;const I=(P=e.renderItem)!==null&&P!==void 0?P:n.renderItem;if(!I)return null;let N;const R=typeof e.rowKey;return R==="function"?N=e.rowKey(B):R==="string"||R==="number"?N=B[e.rowKey]:N=B.key,N||(N=`list-item-${F}`),m[F]=N,I({item:B,index:F})};return()=>{var B,F,P,I,N,R,_,L;const k=(B=e.loadMore)!==null&&B!==void 0?B:(F=n.loadMore)===null||F===void 0?void 0:F.call(n),H=(P=e.footer)!==null&&P!==void 0?P:(I=n.footer)===null||I===void 0?void 0:I.call(n),V=(N=e.header)!==null&&N!==void 0?N:(R=n.header)===null||R===void 0?void 0:R.call(n),U=Lt((_=n.default)===null||_===void 0?void 0:_.call(n)),q=!!(k||e.pagination||H),K=ge(E(E({},S.value),{[`${l.value}-something-after-last-item`]:q}),r.class,d.value),X=e.pagination?C("div",{class:`${l.value}-pagination`},[C(uv,j(j({},$.value),{},{onChange:g,onShowSizeChange:x}),null)]):null;let re=w.value&&C("div",{style:{minHeight:"53px"}},null);if(D.value.length>0){m.length=0;const G=D.value.map((ue,me)=>M(ue,me)),le=G.map((ue,me)=>C("div",{key:m[me],style:T.value},[ue]));re=e.grid?C(cx,{gutter:e.grid.gutter},{default:()=>[le]}):C("ul",{class:`${l.value}-items`},[G])}else!U.length&&!w.value&&(re=C("div",{class:`${l.value}-empty-text`},[((L=e.locale)===null||L===void 0?void 0:L.emptyText)||u("List")]));const ee=$.value.position||"bottom";return c(C("div",j(j({},r),{},{class:K}),[(ee==="top"||ee==="both")&&X,V&&C("div",{class:`${l.value}-header`},[V]),C(Lo,y.value,{default:()=>[re,U]}),H&&C("div",{class:`${l.value}-footer`},[H]),k||(ee==="bottom"||ee==="both")&&X]))}}});ka.install=function(e){return e.component(ka.name,ka),e.component(ka.Item.name,ka.Item),e.component(ka.Item.Meta.name,ka.Item.Meta),e};const Gce=ka;function Xce(e){const{selectionStart:t}=e;return e.value.slice(0,t)}function Yce(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(Array.isArray(t)?t:[t]).reduce((r,o)=>{const a=e.lastIndexOf(o);return a>r.location?{location:a,prefix:o}:r},{location:-1,prefix:""})}function R3(e){return(e||"").toLowerCase()}function Zce(e,t,n){const r=e[0];if(!r||r===n)return e;let o=e;const a=t.length;for(let i=0;i[]}},setup(e,t){let{slots:n}=t;const{activeIndex:r,setActiveIndex:o,selectOption:a,onFocus:i=rde,loading:l}=lt(E6,{activeIndex:pe(),loading:pe(!1)});let s;const u=c=>{clearTimeout(s),s=setTimeout(()=>{i(c)})};return st(()=>{clearTimeout(s)}),()=>{var c;const{prefixCls:d,options:f}=e,p=f[r.value]||{};return C(mn,{prefixCls:`${d}-menu`,activeKey:p.value,onSelect:v=>{let{key:m}=v;const h=f.find(g=>{let{value:x}=g;return x===m});a(h)},onMousedown:u},{default:()=>[!l.value&&f.map((v,m)=>{var h,g;const{value:x,disabled:y,label:w=v.value,class:b,style:S}=v;return C(zo,{key:x,disabled:y,onMouseenter:()=>{o(m)},class:b,style:S},{default:()=>[(g=(h=n.option)===null||h===void 0?void 0:h.call(n,v))!==null&&g!==void 0?g:typeof w=="function"?w(v):w]})}),!l.value&&f.length===0?C(zo,{key:"notFoundContent",disabled:!0},{default:()=>[(c=n.notFoundContent)===null||c===void 0?void 0:c.call(n)]}):null,l.value&&C(zo,{key:"loading",disabled:!0},{default:()=>[C(Lo,{size:"small"},null)]})]})}}}),ade={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},ide=he({compatConfig:{MODE:3},name:"KeywordTrigger",props:{loading:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},prefixCls:String,placement:String,visible:{type:Boolean,default:void 0},transitionName:String,getPopupContainer:Function,direction:String,dropdownClassName:String},setup(e,t){let{slots:n}=t;const r=()=>`${e.prefixCls}-dropdown`,o=()=>{const{options:i}=e;return C(ode,{prefixCls:r(),options:i},{notFoundContent:n.notFoundContent,option:n.option})},a=z(()=>{const{placement:i,direction:l}=e;let s="topRight";return l==="rtl"?s=i==="top"?"topLeft":"bottomLeft":s=i==="top"?"topRight":"bottomRight",s});return()=>{const{visible:i,transitionName:l,getPopupContainer:s}=e;return C(rl,{prefixCls:r(),popupVisible:i,popup:o(),popupClassName:e.dropdownClassName,popupPlacement:a.value,popupTransitionName:l,builtinPlacements:ade,getPopupContainer:s},{default:n.default})}}}),lde=Un("top","bottom"),D6={autofocus:{type:Boolean,default:void 0},prefix:Z.oneOfType([Z.string,Z.arrayOf(Z.string)]),prefixCls:String,value:String,disabled:{type:Boolean,default:void 0},split:String,transitionName:String,placement:Z.oneOf(lde),character:Z.any,characterRender:Function,filterOption:{type:[Boolean,Function]},validateSearch:Function,getPopupContainer:{type:Function},options:bt(),loading:{type:Boolean,default:void 0},rows:[Number,String],direction:{type:String}},A6=E(E({},D6),{dropdownClassName:String}),O6={prefix:"@",split:" ",rows:1,validateSearch:ede,filterOption:()=>tde};at(A6,O6);var z3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{u.value=e.value});const c=T=>{n("change",T)},d=T=>{let{target:{value:M,composing:B},isComposing:F}=T;F||B||c(M)},f=(T,M,B)=>{E(u,{measuring:!0,measureText:T,measurePrefix:M,measureLocation:B,activeIndex:0})},p=T=>{E(u,{measuring:!1,measureLocation:0,measureText:null}),T==null||T()},v=T=>{const{which:M}=T;if(u.measuring){if(M===_e.UP||M===_e.DOWN){const B=D.value.length,F=M===_e.UP?-1:1,P=(u.activeIndex+F+B)%B;u.activeIndex=P,T.preventDefault()}else if(M===_e.ESC)p();else if(M===_e.ENTER){if(T.preventDefault(),!D.value.length){p();return}const B=D.value[u.activeIndex];b(B)}}},m=T=>{const{key:M,which:B}=T,{measureText:F,measuring:P}=u,{prefix:I,validateSearch:N}=e,R=T.target;if(R.composing)return;const _=Xce(R),{location:L,prefix:k}=Yce(_,I);if([_e.ESC,_e.UP,_e.DOWN,_e.ENTER].indexOf(B)===-1)if(L!==-1){const H=_.slice(L+k.length),V=N(H,e),U=!!$(H).length;V?(M===k||M==="Shift"||P||H!==F&&U)&&f(H,k,L):P&&p(),V&&n("search",H,k)}else P&&p()},h=T=>{u.measuring||n("pressenter",T)},g=T=>{y(T)},x=T=>{w(T)},y=T=>{clearTimeout(s.value);const{isFocus:M}=u;!M&&T&&n("focus",T),u.isFocus=!0},w=T=>{s.value=setTimeout(()=>{u.isFocus=!1,p(),n("blur",T)},100)},b=T=>{const{split:M}=e,{value:B=""}=T,{text:F,selectionLocation:P}=Jce(u.value,{measureLocation:u.measureLocation,targetText:B,prefix:u.measurePrefix,selectionStart:l.value.selectionStart,split:M});c(F),p(()=>{Qce(l.value,P)}),n("select",T,u.measurePrefix)},S=T=>{u.activeIndex=T},$=T=>{const M=T||u.measureText||"",{filterOption:B}=e;return e.options.filter(P=>B?B(M,P):!0)},D=z(()=>$());return o({blur:()=>{l.value.blur()},focus:()=>{l.value.focus()}}),it(E6,{activeIndex:Ye(u,"activeIndex"),setActiveIndex:S,selectOption:b,onFocus:y,onBlur:w,loading:Ye(e,"loading")}),Sr(()=>{ht(()=>{u.measuring&&(i.value.scrollTop=l.value.scrollTop)})}),()=>{const{measureLocation:T,measurePrefix:M,measuring:B}=u,{prefixCls:F,placement:P,transitionName:I,getPopupContainer:N,direction:R}=e,_=z3(e,["prefixCls","placement","transitionName","getPopupContainer","direction"]),{class:L,style:k}=r,H=z3(r,["class","style"]),V=pt(_,["value","prefix","split","validateSearch","filterOption","options","loading"]),U=E(E(E({},V),H),{onChange:L3,onSelect:L3,value:u.value,onInput:d,onBlur:x,onKeydown:v,onKeyup:m,onFocus:g,onPressenter:h});return C("div",{class:ge(F,L),style:k},[vn(C("textarea",j({ref:l},U),null),[[Ds]]),B&&C("div",{ref:i,class:`${F}-measure`},[u.value.slice(0,T),C(ide,{prefixCls:F,transitionName:I,dropdownClassName:e.dropdownClassName,placement:P,options:B?D.value:[],visible:!0,direction:R,getPopupContainer:N},{default:()=>[C("span",null,[M])],notFoundContent:a.notFoundContent,option:a.option}),u.value.slice(T+M.length)])])}}}),ude={value:String,disabled:Boolean,payload:We()},T6=E(E({},ude),{label:jt([])}),M6={name:"Option",props:T6,render(e,t){let{slots:n}=t;var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}};he(E({compatConfig:{MODE:3}},M6));const cde=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:r,controlPaddingHorizontal:o,colorText:a,motionDurationSlow:i,lineHeight:l,controlHeight:s,inputPaddingHorizontal:u,inputPaddingVertical:c,fontSize:d,colorBgElevated:f,borderRadiusLG:p,boxShadowSecondary:v}=e,m=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{[t]:E(E(E(E(E({},rt(e)),il(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:l,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),xc(e,t)),{"&-disabled":{"> textarea":E({},G1(e))},"&-focused":E({},ri(e)),[`&-affix-wrapper ${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:u,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`> textarea, ${t}-measure`]:{color:a,boxSizing:"border-box",minHeight:s-2,margin:0,padding:`${c}px ${u}px`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":E({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"inherit"},q1(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}},"&-dropdown":E(E({},rt(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:d,fontVariant:"initial",backgroundColor:f,borderRadius:p,outline:"none",boxShadow:v,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,marginBottom:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":E(E({},gn),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${m}px ${o}px`,color:a,fontWeight:"normal",lineHeight:l,cursor:"pointer",transition:`background ${i} ease`,"&:hover":{backgroundColor:r},"&:first-child":{borderStartStartRadius:p,borderStartEndRadius:p,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:p,borderEndEndRadius:p},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:r,cursor:"not-allowed"}},"&-selected":{color:a,fontWeight:e.fontWeightStrong,backgroundColor:r},"&-active":{backgroundColor:r}})}})})}},dde=nt("Mentions",e=>{const t=ll(e);return[cde(t)]},e=>({dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50}));var k3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{prefix:n="@",split:r=" "}=t,o=Array.isArray(n)?n:[n];return e.split(r).map(function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i=null;return o.some(l=>a.slice(0,l.length)===l?(i=l,!0):!1),i!==null?{prefix:i,value:a.slice(i.length)}:null}).filter(a=>!!a&&!!a.value)},mde=()=>E(E({},D6),{loading:{type:Boolean,default:void 0},onFocus:{type:Function},onBlur:{type:Function},onSelect:{type:Function},onChange:{type:Function},onPressenter:{type:Function},"onUpdate:value":{type:Function},notFoundContent:Z.any,defaultValue:String,id:String,status:String}),Kh=he({compatConfig:{MODE:3},name:"AMentions",inheritAttrs:!1,props:mde(),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:o,expose:a}=t;var i,l;const{prefixCls:s,renderEmpty:u,direction:c}=He("mentions",e),[d,f]=dde(s),p=pe(!1),v=pe(null),m=pe((l=(i=e.value)!==null&&i!==void 0?i:e.defaultValue)!==null&&l!==void 0?l:""),h=Sn(),g=Bn.useInject(),x=z(()=>$o(g.status,e.status));S1({prefixCls:z(()=>`${s.value}-menu`),mode:z(()=>"vertical"),selectable:z(()=>!1),onClick:()=>{},validator:M=>{Jt()}}),Ne(()=>e.value,M=>{m.value=M});const y=M=>{p.value=!0,r("focus",M)},w=M=>{p.value=!1,r("blur",M),h.onFieldBlur()},b=function(){for(var M=arguments.length,B=new Array(M),F=0;F{e.value===void 0&&(m.value=M),r("update:value",M),r("change",M),h.onFieldChange()},$=()=>{const M=e.notFoundContent;return M!==void 0?M:n.notFoundContent?n.notFoundContent():u("Select")},D=()=>{var M;return Lt(((M=n.default)===null||M===void 0?void 0:M.call(n))||[]).map(B=>{var F,P;return E(E({},RT(B)),{label:(P=(F=B.children)===null||F===void 0?void 0:F.default)===null||P===void 0?void 0:P.call(F)})})};a({focus:()=>{v.value.focus()},blur:()=>{v.value.blur()}});const T=z(()=>e.loading?fde:e.filterOption);return()=>{const{disabled:M,getPopupContainer:B,rows:F=1,id:P=h.id.value}=e,I=k3(e,["disabled","getPopupContainer","rows","id"]),{hasFeedback:N,feedbackIcon:R}=g,{class:_}=o,L=k3(o,["class"]),k=pt(I,["defaultValue","onUpdate:value","prefixCls"]),H=ge({[`${s.value}-disabled`]:M,[`${s.value}-focused`]:p.value,[`${s.value}-rtl`]:c.value==="rtl"},Qn(s.value,x.value),!N&&_,f.value),V=E(E(E(E({prefixCls:s.value},k),{disabled:M,direction:c.value,filterOption:T.value,getPopupContainer:B,options:e.loading?[{value:"ANTDV_SEARCHING",disabled:!0,label:C(Lo,{size:"small"},null)}]:e.options||D(),class:H}),L),{rows:F,onChange:S,onSelect:b,onFocus:y,onBlur:w,ref:v,value:m.value,id:P}),U=C(sde,j(j({},V),{},{dropdownClassName:f.value}),{notFoundContent:$,option:n.option});return d(N?C("div",{class:ge(`${s.value}-affix-wrapper`,Qn(`${s.value}-affix-wrapper`,x.value,N),_,f.value)},[U,C("span",{class:`${s.value}-suffix`},[R])]):U)}}}),gf=he(E(E({compatConfig:{MODE:3}},M6),{name:"AMentionsOption",props:T6})),vde=E(Kh,{Option:gf,getMentions:pde,install:e=>(e.component(Kh.name,Kh),e.component(gf.name,gf),e)});var hde=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{z0={x:e.pageX,y:e.pageY},setTimeout(()=>z0=null,100)};GI()&&en(document.documentElement,"click",gde,!0);const yde=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:Z.any,closable:{type:Boolean,default:void 0},closeIcon:Z.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:Z.any,okText:Z.any,okType:String,cancelText:Z.any,icon:Z.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:We(),cancelButtonProps:We(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:We(),maskStyle:We(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:We()}),Nn=he({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:at(yde(),{width:520,confirmLoading:!1,okType:"primary"}),setup(e,t){let{emit:n,slots:r,attrs:o}=t;const[a]=ro("Modal"),{prefixCls:i,rootPrefixCls:l,direction:s,getPopupContainer:u}=He("modal",e),[c,d]=Mue(i);Jt(e.visible===void 0);const f=m=>{n("update:visible",!1),n("update:open",!1),n("cancel",m),n("change",!1)},p=m=>{n("ok",m)},v=()=>{var m,h;const{okText:g=(m=r.okText)===null||m===void 0?void 0:m.call(r),okType:x,cancelText:y=(h=r.cancelText)===null||h===void 0?void 0:h.call(r),confirmLoading:w}=e;return C(dt,null,[C(dn,j({onClick:f},e.cancelButtonProps),{default:()=>[y||a.value.cancelText]}),C(dn,j(j({},ip(x)),{},{loading:w,onClick:p},e.okButtonProps),{default:()=>[g||a.value.okText]})])};return()=>{var m,h;const{prefixCls:g,visible:x,open:y,wrapClassName:w,centered:b,getContainer:S,closeIcon:$=(m=r.closeIcon)===null||m===void 0?void 0:m.call(r),focusTriggerAfterClose:D=!0}=e,O=hde(e,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),A=ge(w,{[`${i.value}-centered`]:!!b,[`${i.value}-wrap-rtl`]:s.value==="rtl"});return c(C(u6,j(j(j({},O),o),{},{rootClassName:d.value,class:ge(d.value,o.class),getContainer:S||(u==null?void 0:u.value),prefixCls:i.value,wrapClassName:A,visible:y??x,onClose:f,focusTriggerAfterClose:D,transitionName:xr(l.value,"zoom",e.transitionName),maskTransitionName:xr(l.value,"fade",e.maskTransitionName),mousePosition:(h=O.mousePosition)!==null&&h!==void 0?h:z0}),E(E({},r),{footer:r.footer||v,closeIcon:()=>C("span",{class:`${i.value}-close-x`},[$||C(Hr,{class:`${i.value}-close-icon`},null)])})))}}}),bde=()=>{const e=pe(!1);return st(()=>{e.value=!0}),e},N6=bde,xde={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:We(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function H3(e){return!!(e&&e.then)}const L0=he({compatConfig:{MODE:3},name:"ActionButton",props:xde,setup(e,t){let{slots:n}=t;const r=pe(!1),o=pe(),a=pe(!1);let i;const l=N6();Qe(()=>{e.autofocus&&(i=setTimeout(()=>{var d,f;return(f=(d=yr(o.value))===null||d===void 0?void 0:d.focus)===null||f===void 0?void 0:f.call(d)}))}),st(()=>{clearTimeout(i)});const s=function(){for(var d,f=arguments.length,p=new Array(f),v=0;v{H3(d)&&(a.value=!0,d.then(function(){l.value||(a.value=!1),s(...arguments),r.value=!1},f=>(l.value||(a.value=!1),r.value=!1,Promise.reject(f))))},c=d=>{const{actionFn:f}=e;if(r.value)return;if(r.value=!0,!f){s();return}let p;if(e.emitEvent){if(p=f(d),e.quitOnNullishReturnValue&&!H3(p)){r.value=!1,s(d);return}}else if(f.length)p=f(e.close),r.value=!1;else if(p=f(),!p){s();return}u(p)};return()=>{const{type:d,prefixCls:f,buttonProps:p}=e;return C(dn,j(j(j({},ip(d)),{},{onClick:c,loading:a.value,prefixCls:f},p),{},{ref:o}),n)}}});function Sl(e){return typeof e=="function"?e():e}const P6=he({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(e,t){let{attrs:n}=t;const[r]=ro("Modal");return()=>{const{icon:o,onCancel:a,onOk:i,close:l,closable:s=!1,zIndex:u,afterClose:c,keyboard:d,centered:f,getContainer:p,maskStyle:v,okButtonProps:m,cancelButtonProps:h,okCancel:g,width:x=416,mask:y=!0,maskClosable:w=!1,type:b,open:S,title:$,content:D,direction:O,closeIcon:A,modalRender:T,focusTriggerAfterClose:M,rootPrefixCls:B,bodyStyle:F,wrapClassName:P,footer:I}=e;let N=o;if(!o&&o!==null)switch(b){case"info":N=C(Is,null,null);break;case"success":N=C(Aa,null,null);break;case"error":N=C($r,null,null);break;default:N=C(Oa,null,null)}const R=e.okType||"primary",_=e.prefixCls||"ant-modal",L=`${_}-confirm`,k=n.style||{},H=Sl(e.okText)||(g?r.value.okText:r.value.justOkText),V=g??b==="confirm",U=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",q=`${_}-confirm`,K=ge(q,`${q}-${e.type}`,{[`${q}-rtl`]:O==="rtl"},n.class),X=V&&C(L0,{actionFn:a,close:l,autofocus:U==="cancel",buttonProps:h,prefixCls:`${B}-btn`},{default:()=>[Sl(e.cancelText)||r.value.cancelText]});return C(Nn,{prefixCls:_,class:K,wrapClassName:ge({[`${q}-centered`]:!!f},P),onCancel:re=>l==null?void 0:l({triggerCancel:!0},re),open:S,title:"",footer:"",transitionName:xr(B,"zoom",e.transitionName),maskTransitionName:xr(B,"fade",e.maskTransitionName),mask:y,maskClosable:w,maskStyle:v,style:k,bodyStyle:F,width:x,zIndex:u,afterClose:c,keyboard:d,centered:f,getContainer:p,closable:s,closeIcon:A,modalRender:T,focusTriggerAfterClose:M},{default:()=>[C("div",{class:`${L}-body-wrapper`},[C("div",{class:`${L}-body`},[Sl(N),$===void 0?null:C("span",{class:`${L}-title`},[Sl($)]),C("div",{class:`${L}-content`},[Sl(D)])]),I!==void 0?Sl(I):C("div",{class:`${L}-btns`},[X,C(L0,{type:R,actionFn:i,close:l,autofocus:U==="ok",buttonProps:m,prefixCls:`${B}-btn`},{default:()=>[H]})])])]})}}}),wde=[],Ii=wde,Sde=e=>{const t=document.createDocumentFragment();let n=E(E({},pt(e,["parentContext","appContext"])),{close:a,open:!0}),r=null;function o(){r&&(os(null,t),r.component.update(),r=null);for(var u=arguments.length,c=new Array(u),d=0;dp&&p.triggerCancel);e.onCancel&&f&&e.onCancel(()=>{},...c.slice(1));for(let p=0;p{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,c)}}),n.visible&&delete n.visible,i(n)}function i(u){typeof u=="function"?n=u(n):n=E(E({},n),u),r&&(E(r.component.props,n),r.component.update())}const l=u=>{const c=Hn,d=c.prefixCls,f=u.prefixCls||`${d}-modal`,p=c.iconPrefixCls,v=noe();return C(iv,j(j({},c),{},{prefixCls:d}),{default:()=>[C(P6,j(j({},u),{},{rootPrefixCls:d,prefixCls:f,iconPrefixCls:p,locale:v,cancelText:u.cancelText||v.cancelText}),null)]})};function s(u){const c=C(l,E({},u));return c.appContext=e.parentContext||e.appContext||c.appContext,os(c,t),c}return r=s(n),Ii.push(a),{destroy:a,update:i}},Ec=Sde;function I6(e){return E(E({},e),{type:"warning"})}function _6(e){return E(E({},e),{type:"info"})}function B6(e){return E(E({},e),{type:"success"})}function F6(e){return E(E({},e),{type:"error"})}function R6(e){return E(E({},e),{type:"confirm"})}const Cde=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),$de=he({name:"HookModal",inheritAttrs:!1,props:at(Cde(),{config:{width:520,okType:"primary"}}),setup(e,t){let{expose:n}=t;var r;const o=z(()=>e.open),a=z(()=>e.config),{direction:i,getPrefixCls:l}=om(),s=l("modal"),u=l(),c=()=>{var v,m;e==null||e.afterClose(),(m=(v=a.value).afterClose)===null||m===void 0||m.call(v)},d=function(){e.destroyAction(...arguments)};n({destroy:d});const f=(r=a.value.okCancel)!==null&&r!==void 0?r:a.value.type==="confirm",[p]=ro("Modal",cr.Modal);return()=>C(P6,j(j({prefixCls:s,rootPrefixCls:u},a.value),{},{close:d,open:o.value,afterClose:c,okText:a.value.okText||(f?p==null?void 0:p.value.okText:p==null?void 0:p.value.justOkText),direction:a.value.direction||i.value,cancelText:a.value.cancelText||(p==null?void 0:p.value.cancelText)}),null)}});let j3=0;const Ede=he({name:"ElementsHolder",inheritAttrs:!1,setup(e,t){let{expose:n}=t;const r=pe([]);return n({addModal:a=>(r.value.push(a),r.value=r.value.slice(),()=>{r.value=r.value.filter(i=>i!==a)})}),()=>r.value.map(a=>a())}});function Dde(){const e=pe(null),t=pe([]);Ne(t,()=>{t.value.length&&([...t.value].forEach(i=>{i()}),t.value=[])},{immediate:!0});const n=a=>function(l){var s;j3+=1;const u=pe(!0),c=pe(null),d=pe(xn(l)),f=pe({});Ne(()=>l,y=>{h(E(E({},ji(y)?y.value:y),f.value))});const p=function(){u.value=!1;for(var y=arguments.length,w=new Array(y),b=0;b$&&$.triggerCancel);d.value.onCancel&&S&&d.value.onCancel(()=>{},...w.slice(1))};let v;const m=()=>C($de,{key:`modal-${j3}`,config:a(d.value),ref:c,open:u.value,destroyAction:p,afterClose:()=>{v==null||v()}},null);v=(s=e.value)===null||s===void 0?void 0:s.addModal(m),v&&Ii.push(v);const h=y=>{d.value=E(E({},d.value),y)};return{destroy:()=>{c.value?p():t.value=[...t.value,p]},update:y=>{f.value=y,c.value?h(y):t.value=[...t.value,()=>h(y)]}}},r=z(()=>({info:n(_6),success:n(B6),error:n(F6),warning:n(I6),confirm:n(R6)})),o=Symbol("modalHolderKey");return[r.value,()=>C(Ede,{key:o,ref:e},null)]}function z6(e){return Ec(I6(e))}Nn.useModal=Dde;Nn.info=function(t){return Ec(_6(t))};Nn.success=function(t){return Ec(B6(t))};Nn.error=function(t){return Ec(F6(t))};Nn.warning=z6;Nn.warn=z6;Nn.confirm=function(t){return Ec(R6(t))};Nn.destroyAll=function(){for(;Ii.length;){const t=Ii.pop();t&&t()}};Nn.install=function(e){return e.component(Nn.name,Nn),e};const L6=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:o,groupSeparator:a="",prefixCls:i}=e;let l;if(typeof n=="function")l=n({value:t});else{const s=String(t),u=s.match(/^(-?)(\d*)(\.(\d+))?$/);if(!u)l=s;else{const c=u[1];let d=u[2]||"0",f=u[4]||"";d=d.replace(/\B(?=(\d{3})+(?!\d))/g,a),typeof r=="number"&&(f=f.padEnd(r,"0").slice(0,r>0?r:0)),f&&(f=`${o}${f}`),l=[C("span",{key:"int",class:`${i}-content-value-int`},[c,d]),f&&C("span",{key:"decimal",class:`${i}-content-value-decimal`},[f])]}}return C("span",{class:`${i}-content-value`},[l])};L6.displayName="StatisticNumber";const Ade=L6,Ode=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:o,statisticTitleFontSize:a,colorTextHeading:i,statisticContentFontSize:l,statisticFontFamily:s}=e;return{[`${t}`]:E(E({},rt(e)),{[`${t}-title`]:{marginBottom:n,color:o,fontSize:a},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:i,fontSize:l,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},Tde=nt("Statistic",e=>{const{fontSizeHeading3:t,fontSize:n,fontFamily:r}=e,o=qe(e,{statisticTitleFontSize:n,statisticContentFontSize:t,statisticFontFamily:r});return[Ode(o)]}),k6=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:Xe([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:Oe(),formatter:jt(),precision:Number,prefix:Zn(),suffix:Zn(),title:Zn(),loading:Pe()}),ia=he({compatConfig:{MODE:3},name:"AStatistic",inheritAttrs:!1,props:at(k6(),{decimalSeparator:".",groupSeparator:",",loading:!1}),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("statistic",e),[i,l]=Tde(o);return()=>{var s,u,c,d,f,p,v;const{value:m=0,valueStyle:h,valueRender:g}=e,x=o.value,y=(s=e.title)!==null&&s!==void 0?s:(u=n.title)===null||u===void 0?void 0:u.call(n),w=(c=e.prefix)!==null&&c!==void 0?c:(d=n.prefix)===null||d===void 0?void 0:d.call(n),b=(f=e.suffix)!==null&&f!==void 0?f:(p=n.suffix)===null||p===void 0?void 0:p.call(n),S=(v=e.formatter)!==null&&v!==void 0?v:n.formatter;let $=C(Ade,j({"data-for-update":Date.now()},E(E({},e),{prefixCls:x,value:m,formatter:S})),null);return g&&($=g($)),i(C("div",j(j({},r),{},{class:[x,{[`${x}-rtl`]:a.value==="rtl"},r.class,l.value]}),[y&&C("div",{class:`${x}-title`},[y]),C(Yn,{paragraph:!1,loading:e.loading},{default:()=>[C("div",{style:h,class:`${x}-content`},[w&&C("span",{class:`${x}-content-prefix`},[w]),$,b&&C("span",{class:`${x}-content-suffix`},[b])])]})]))}}}),Mde=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Nde(e,t){let n=e;const r=/\[[^\]]*]/g,o=(t.match(r)||[]).map(s=>s.slice(1,-1)),a=t.replace(r,"[]"),i=Mde.reduce((s,u)=>{let[c,d]=u;if(s.includes(c)){const f=Math.floor(n/d);return n-=f*d,s.replace(new RegExp(`${c}+`,"g"),p=>{const v=p.length;return f.toString().padStart(v,"0")})}return s},a);let l=0;return i.replace(r,()=>{const s=o[l];return l+=1,s})}function Pde(e,t){const{format:n=""}=t,r=new Date(e).getTime(),o=Date.now(),a=Math.max(r-o,0);return Nde(a,n)}const Ide=1e3/30;function qh(e){return new Date(e).getTime()}const _de=()=>E(E({},k6()),{value:Xe([Number,String,Object]),format:String,onFinish:Function,onChange:Function}),Bde=he({compatConfig:{MODE:3},name:"AStatisticCountdown",props:at(_de(),{format:"HH:mm:ss"}),setup(e,t){let{emit:n,slots:r}=t;const o=be(),a=be(),i=()=>{const{value:d}=e;qh(d)>=Date.now()?l():s()},l=()=>{if(o.value)return;const d=qh(e.value);o.value=setInterval(()=>{a.value.$forceUpdate(),d>Date.now()&&n("change",d-Date.now()),i()},Ide)},s=()=>{const{value:d}=e;o.value&&(clearInterval(o.value),o.value=void 0,qh(d){let{value:f,config:p}=d;const{format:v}=e;return Pde(f,E(E({},p),{format:v}))},c=d=>d;return Qe(()=>{i()}),Sr(()=>{i()}),st(()=>{s()}),()=>{const d=e.value;return C(ia,j({ref:a},E(E({},pt(e,["onFinish","onChange"])),{value:d,valueRender:c,formatter:u})),r)}}});ia.Countdown=Bde;ia.install=function(e){return e.component(ia.name,ia),e.component(ia.Countdown.name,ia.Countdown),e};const Fde=ia.Countdown;var Rde=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{keyCode:p}=f;p===_e.ENTER&&f.preventDefault()},s=f=>{const{keyCode:p}=f;p===_e.ENTER&&r("click",f)},u=f=>{r("click",f)},c=()=>{i.value&&i.value.focus()},d=()=>{i.value&&i.value.blur()};return Qe(()=>{e.autofocus&&c()}),a({focus:c,blur:d}),()=>{var f;const{noStyle:p,disabled:v}=e,m=Rde(e,["noStyle","disabled"]);let h={};return p||(h=E({},zde)),v&&(h.pointerEvents="none"),C("div",j(j(j({role:"button",tabindex:0,ref:i},m),o),{},{onClick:u,onKeydown:l,onKeyup:s,style:E(E({},h),o.style||{})}),[(f=n.default)===null||f===void 0?void 0:f.call(n)])}}}),Ap=Lde,kde={small:8,middle:16,large:24},Hde=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:Z.oneOf(Un("horizontal","vertical")).def("horizontal"),align:Z.oneOf(Un("start","end","center","baseline")),wrap:Pe()});function jde(e){return typeof e=="string"?kde[e]:e||0}const Au=he({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:Hde(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,space:a,direction:i}=He("space",e),[l,s]=PN(o),u=YI(),c=z(()=>{var g,x,y;return(y=(g=e.size)!==null&&g!==void 0?g:(x=a==null?void 0:a.value)===null||x===void 0?void 0:x.size)!==null&&y!==void 0?y:"small"}),d=be(),f=be();Ne(c,()=>{[d.value,f.value]=(Array.isArray(c.value)?c.value:[c.value,c.value]).map(g=>jde(g))},{immediate:!0});const p=z(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),v=z(()=>ge(o.value,s.value,`${o.value}-${e.direction}`,{[`${o.value}-rtl`]:i.value==="rtl",[`${o.value}-align-${p.value}`]:p.value})),m=z(()=>i.value==="rtl"?"marginLeft":"marginRight"),h=z(()=>{const g={};return u.value&&(g.columnGap=`${d.value}px`,g.rowGap=`${f.value}px`),E(E({},g),e.wrap&&{flexWrap:"wrap",marginBottom:`${-f.value}px`})});return()=>{var g,x;const{wrap:y,direction:w="horizontal"}=e,b=(g=n.default)===null||g===void 0?void 0:g.call(n),S=nn(b),$=S.length;if($===0)return null;const D=(x=n.split)===null||x===void 0?void 0:x.call(n),O=`${o.value}-item`,A=d.value,T=$-1;return C("div",j(j({},r),{},{class:[v.value,r.class],style:[h.value,r.style]}),[S.map((M,B)=>{const F=b.indexOf(M);let P={};return u.value||(w==="vertical"?B{const{componentCls:t,antCls:n}=e;return{[t]:E(E({},rt(e)),{position:"relative",padding:`${e.pageHeaderPaddingVertical}px ${e.pageHeaderPadding}px`,backgroundColor:e.colorBgContainer,[`${t}-ghost`]:{backgroundColor:e.pageHeaderGhostBg},["&.has-footer"]:{paddingBottom:0},[`${t}-back`]:{marginRight:e.marginMD,fontSize:e.fontSizeLG,lineHeight:1,["&-button"]:E(E({},fm(e)),{color:e.pageHeaderBackColor,cursor:"pointer"})},[`${n}-divider-vertical`]:{height:"14px",margin:`0 ${e.marginSM}`,verticalAlign:"middle"},[`${n}-breadcrumb + &-heading`]:{marginTop:e.marginXS},[`${t}-heading`]:{display:"flex",justifyContent:"space-between",["&-left"]:{display:"flex",alignItems:"center",margin:`${e.marginXS/2}px 0`,overflow:"hidden"},["&-title"]:E({marginRight:e.marginSM,marginBottom:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderHeadingTitle,lineHeight:`${e.controlHeight}px`},gn),[`${n}-avatar`]:{marginRight:e.marginSM},["&-sub-title"]:E({marginRight:e.marginSM,color:e.colorTextDescription,fontSize:e.pageHeaderHeadingSubTitle,lineHeight:e.lineHeight},gn),["&-extra"]:{margin:`${e.marginXS/2}px 0`,whiteSpace:"nowrap",["> *"]:{marginLeft:e.marginSM,whiteSpace:"unset"},["> *:first-child"]:{marginLeft:0}}},[`${t}-content`]:{paddingTop:e.pageHeaderContentPaddingVertical},[`${t}-footer`]:{marginTop:e.marginMD,[`${n}-tabs`]:{[`> ${n}-tabs-nav`]:{margin:0,["&::before"]:{border:"none"}},[`${n}-tabs-tab`]:{paddingTop:e.paddingXS,paddingBottom:e.paddingXS,fontSize:e.pageHeaderTabFontSize}}},[`${t}-compact ${t}-heading`]:{flexWrap:"wrap"},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},Wde=nt("PageHeader",e=>{const t=qe(e,{pageHeaderPadding:e.paddingLG,pageHeaderPaddingVertical:e.paddingMD,pageHeaderPaddingBreadcrumb:e.paddingSM,pageHeaderContentPaddingVertical:e.paddingSM,pageHeaderBackColor:e.colorTextBase,pageHeaderGhostBg:"inherit",pageHeaderHeadingTitle:e.fontSizeHeading4,pageHeaderHeadingSubTitle:e.fontSize,pageHeaderTabFontSize:e.fontSizeLG});return[Vde(t)]}),Ude=()=>({backIcon:Zn(),prefixCls:String,title:Zn(),subTitle:Zn(),breadcrumb:Z.object,tags:Zn(),footer:Zn(),extra:Zn(),avatar:We(),ghost:{type:Boolean,default:void 0},onBack:Function}),Kde=he({compatConfig:{MODE:3},name:"APageHeader",inheritAttrs:!1,props:Ude(),slots:Object,setup(e,t){let{emit:n,slots:r,attrs:o}=t;const{prefixCls:a,direction:i,pageHeader:l}=He("page-header",e),[s,u]=Wde(a),c=pe(!1),d=N6(),f=w=>{let{width:b}=w;d.value||(c.value=b<768)},p=z(()=>{var w,b,S;return(S=(w=e.ghost)!==null&&w!==void 0?w:(b=l==null?void 0:l.value)===null||b===void 0?void 0:b.ghost)!==null&&S!==void 0?S:!0}),v=()=>{var w,b,S;return(S=(w=e.backIcon)!==null&&w!==void 0?w:(b=r.backIcon)===null||b===void 0?void 0:b.call(r))!==null&&S!==void 0?S:i.value==="rtl"?C(boe,null,null):C(voe,null,null)},m=w=>!w||!e.onBack?null:C(Zi,{componentName:"PageHeader",children:b=>{let{back:S}=b;return C("div",{class:`${a.value}-back`},[C(Ap,{onClick:$=>{n("back",$)},class:`${a.value}-back-button`,"aria-label":S},{default:()=>[w]})])}},null),h=()=>{var w;return e.breadcrumb?C(Ri,e.breadcrumb,null):(w=r.breadcrumb)===null||w===void 0?void 0:w.call(r)},g=()=>{var w,b,S,$,D,O,A,T,M;const{avatar:B}=e,F=(w=e.title)!==null&&w!==void 0?w:(b=r.title)===null||b===void 0?void 0:b.call(r),P=(S=e.subTitle)!==null&&S!==void 0?S:($=r.subTitle)===null||$===void 0?void 0:$.call(r),I=(D=e.tags)!==null&&D!==void 0?D:(O=r.tags)===null||O===void 0?void 0:O.call(r),N=(A=e.extra)!==null&&A!==void 0?A:(T=r.extra)===null||T===void 0?void 0:T.call(r),R=`${a.value}-heading`,_=F||P||I||N;if(!_)return null;const L=v(),k=m(L);return C("div",{class:R},[(k||B||_)&&C("div",{class:`${R}-left`},[k,B?C(Fi,B,null):(M=r.avatar)===null||M===void 0?void 0:M.call(r),F&&C("span",{class:`${R}-title`,title:typeof F=="string"?F:void 0},[F]),P&&C("span",{class:`${R}-sub-title`,title:typeof P=="string"?P:void 0},[P]),I&&C("span",{class:`${R}-tags`},[I])]),N&&C("span",{class:`${R}-extra`},[C(H6,null,{default:()=>[N]})])])},x=()=>{var w,b;const S=(w=e.footer)!==null&&w!==void 0?w:nn((b=r.footer)===null||b===void 0?void 0:b.call(r));return QF(S)?null:C("div",{class:`${a.value}-footer`},[S])},y=w=>C("div",{class:`${a.value}-content`},[w]);return()=>{var w,b;const S=((w=e.breadcrumb)===null||w===void 0?void 0:w.routes)||r.breadcrumb,$=e.footer||r.footer,D=Lt((b=r.default)===null||b===void 0?void 0:b.call(r)),O=ge(a.value,{"has-breadcrumb":S,"has-footer":$,[`${a.value}-ghost`]:p.value,[`${a.value}-rtl`]:i.value==="rtl",[`${a.value}-compact`]:c.value},o.class,u.value);return s(C(Qr,{onResize:f},{default:()=>[C("div",j(j({},o),{},{class:O}),[h(),g(),D.length?y(D):null,x()])]}))}}}),qde=rn(Kde),Gde=e=>{const{componentCls:t,iconCls:n,zIndexPopup:r,colorText:o,colorWarning:a,marginXS:i,fontSize:l,fontWeightStrong:s,lineHeight:u}=e;return{[t]:{zIndex:r,[`${t}-inner-content`]:{color:o},[`${t}-message`]:{position:"relative",marginBottom:i,color:o,fontSize:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:l,flex:"none",lineHeight:1,paddingTop:(Math.round(l*u)-l)/2},"&-title":{flex:"auto",marginInlineStart:i},"&-title-only":{fontWeight:s}},[`${t}-description`]:{position:"relative",marginInlineStart:l+i,marginBottom:i,color:o,fontSize:l},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:i}}}}},Xde=nt("Popconfirm",e=>Gde(e),e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}});var Yde=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oE(E({},d1()),{prefixCls:String,content:jt(),title:jt(),description:jt(),okType:Ue("primary"),disabled:{type:Boolean,default:!1},okText:jt(),cancelText:jt(),icon:jt(),okButtonProps:We(),cancelButtonProps:We(),showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function}),Jde=he({compatConfig:{MODE:3},name:"APopconfirm",inheritAttrs:!1,props:at(Zde(),E(E({},cP()),{trigger:"click",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,okType:"primary",disabled:!1})),slots:Object,setup(e,t){let{slots:n,emit:r,expose:o,attrs:a}=t;const i=be();Jt(e.visible===void 0),o({getPopupDomNode:()=>{var S,$;return($=(S=i.value)===null||S===void 0?void 0:S.getPopupDomNode)===null||$===void 0?void 0:$.call(S)}});const[l,s]=Zt(!1,{value:Ye(e,"open")}),u=(S,$)=>{e.open===void 0&&s(S),r("update:open",S),r("openChange",S,$)},c=S=>{u(!1,S)},d=S=>{var $;return($=e.onConfirm)===null||$===void 0?void 0:$.call(e,S)},f=S=>{var $;u(!1,S),($=e.onCancel)===null||$===void 0||$.call(e,S)},p=S=>{S.keyCode===_e.ESC&&l&&u(!1,S)},v=S=>{const{disabled:$}=e;$||u(S)},{prefixCls:m,getPrefixCls:h}=He("popconfirm",e),g=z(()=>h()),x=z(()=>h("btn")),[y]=Xde(m),[w]=ro("Popconfirm",cr.Popconfirm),b=()=>{var S,$,D,O,A;const{okButtonProps:T,cancelButtonProps:M,title:B=(S=n.title)===null||S===void 0?void 0:S.call(n),description:F=($=n.description)===null||$===void 0?void 0:$.call(n),cancelText:P=(D=n.cancel)===null||D===void 0?void 0:D.call(n),okText:I=(O=n.okText)===null||O===void 0?void 0:O.call(n),okType:N,icon:R=((A=n.icon)===null||A===void 0?void 0:A.call(n))||C(Oa,null,null),showCancel:_=!0}=e,{cancelButton:L,okButton:k}=n,H=E({onClick:f,size:"small"},M),V=E(E(E({onClick:d},ip(N)),{size:"small"}),T);return C("div",{class:`${m.value}-inner-content`},[C("div",{class:`${m.value}-message`},[R&&C("span",{class:`${m.value}-message-icon`},[R]),C("div",{class:[`${m.value}-message-title`,{[`${m.value}-message-title-only`]:!!F}]},[B])]),F&&C("div",{class:`${m.value}-description`},[F]),C("div",{class:`${m.value}-buttons`},[_?L?L(H):C(dn,H,{default:()=>[P||w.value.cancelText]}):null,k?k(V):C(L0,{buttonProps:E(E({size:"small"},ip(N)),T),actionFn:d,close:c,prefixCls:x.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[I||w.value.okText]})])])};return()=>{var S;const{placement:$,overlayClassName:D,trigger:O="click"}=e,A=Yde(e,["placement","overlayClassName","trigger"]),T=pt(A,["title","content","cancelText","okText","onUpdate:open","onConfirm","onCancel","prefixCls"]),M=ge(m.value,D);return y(C(v1,j(j(j({},T),a),{},{trigger:O,placement:$,onOpenChange:v,open:l.value,overlayClassName:M,transitionName:xr(g.value,"zoom-big",e.transitionName),ref:i,"data-popover-inject":!0}),{default:()=>[wL(((S=n.default)===null||S===void 0?void 0:S.call(n))||[],{onKeydown:B=>{p(B)}},!1)],content:b}))}}}),Qde=rn(Jde),efe=["normal","exception","active","success"],cv=()=>({prefixCls:String,type:Ue(),percent:Number,format:Oe(),status:Ue(),showInfo:Pe(),strokeWidth:Number,strokeLinecap:Ue(),strokeColor:jt(),trailColor:String,width:Number,success:We(),gapDegree:Number,gapPosition:Ue(),size:Xe([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:Ue()});function Li(e){return!e||e<0?0:e>100?100:e}function Op(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(qt(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),r=t.progress),t&&"percent"in t&&(r=t.percent),r}function tfe(e){let{percent:t,success:n,successPercent:r}=e;const o=Li(Op({success:n,successPercent:r}));return[o,Li(Li(t)-o)]}function nfe(e){let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Vl.green,n||null]}const dv=(e,t,n)=>{var r,o,a,i;let l=-1,s=-1;if(t==="step"){const u=n.steps,c=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,s=c??8):typeof e=="number"?[l,s]=[e,e]:[l=14,s=8]=e,l*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?s=u||(e==="small"?6:8):typeof e=="number"?[l,s]=[e,e]:[l=-1,s=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,s]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,s]=[e,e]:(l=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,s=(i=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&i!==void 0?i:120));return{width:l,height:s}};var rfe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oE(E({},cv()),{strokeColor:jt(),direction:Ue()}),afe=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:o}=n;return`${o} ${r}%`}).join(", ")},ife=(e,t)=>{const{from:n=Vl.blue,to:r=Vl.blue,direction:o=t==="rtl"?"to left":"to right"}=e,a=rfe(e,["from","to","direction"]);if(Object.keys(a).length!==0){const i=afe(a);return{backgroundImage:`linear-gradient(${o}, ${i})`}}return{backgroundImage:`linear-gradient(${o}, ${n}, ${r})`}},lfe=he({compatConfig:{MODE:3},name:"Line",inheritAttrs:!1,props:ofe(),setup(e,t){let{slots:n,attrs:r}=t;const o=z(()=>{const{strokeColor:p,direction:v}=e;return p&&typeof p!="string"?ife(p,v):{backgroundColor:p}}),a=z(()=>e.strokeLinecap==="square"||e.strokeLinecap==="butt"?0:void 0),i=z(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),l=z(()=>{var p;return(p=e.size)!==null&&p!==void 0?p:[-1,e.strokeWidth||(e.size==="small"?6:8)]}),s=z(()=>dv(l.value,"line",{strokeWidth:e.strokeWidth})),u=z(()=>{const{percent:p}=e;return E({width:`${Li(p)}%`,height:`${s.value.height}px`,borderRadius:a.value},o.value)}),c=z(()=>Op(e)),d=z(()=>{const{success:p}=e;return{width:`${Li(c.value)}%`,height:`${s.value.height}px`,borderRadius:a.value,backgroundColor:p==null?void 0:p.strokeColor}}),f={width:s.value.width<0?"100%":s.value.width,height:`${s.value.height}px`};return()=>{var p;return C(dt,null,[C("div",j(j({},r),{},{class:[`${e.prefixCls}-outer`,r.class],style:[r.style,f]}),[C("div",{class:`${e.prefixCls}-inner`,style:i.value},[C("div",{class:`${e.prefixCls}-bg`,style:u.value},null),c.value!==void 0?C("div",{class:`${e.prefixCls}-success-bg`,style:d.value},null):null])]),(p=n.default)===null||p===void 0?void 0:p.call(n)])}}}),sfe={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},ufe=e=>{const t=be(null);return Sr(()=>{const n=Date.now();let r=!1;e.value.forEach(o=>{const a=(o==null?void 0:o.$el)||o;if(!a)return;r=!0;const i=a.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(i.transitionDuration="0s, 0s")}),r&&(t.value=Date.now())}),e},cfe={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};var dfe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5?arguments[5]:void 0;const i=50-r/2;let l=0,s=-i,u=0,c=-2*i;switch(a){case"left":l=-i,s=0,u=2*i,c=0;break;case"right":l=i,s=0,u=-2*i,c=0;break;case"bottom":s=i,c=2*i;break}const d=`M 50,50 m ${l},${s} a ${i},${i} 0 1 1 ${u},${-c} a ${i},${i} 0 1 1 ${-u},${c}`,f=Math.PI*2*i,p={stroke:n,strokeDasharray:`${t/100*(f-o)}px ${f}px`,strokeDashoffset:`-${o/2+e/100*(f-o)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:d,pathStyle:p}}const ffe=he({compatConfig:{MODE:3},name:"VCCircle",props:at(cfe,sfe),setup(e){V3+=1;const t=be(V3),n=z(()=>U3(e.percent)),r=z(()=>U3(e.strokeColor)),[o,a]=Z1();ufe(a);const i=()=>{const{prefixCls:l,strokeWidth:s,strokeLinecap:u,gapDegree:c,gapPosition:d}=e;let f=0;return n.value.map((p,v)=>{const m=r.value[v]||r.value[r.value.length-1],h=Object.prototype.toString.call(m)==="[object Object]"?`url(#${l}-gradient-${t.value})`:"",{pathString:g,pathStyle:x}=K3(f,p,m,s,c,d);f+=p;const y={key:v,d:g,stroke:h,"stroke-linecap":u,"stroke-width":s,opacity:p===0?0:1,"fill-opacity":"0",class:`${l}-circle-path`,style:x};return C("path",j({ref:o(v)},y),null)})};return()=>{const{prefixCls:l,strokeWidth:s,trailWidth:u,gapDegree:c,gapPosition:d,trailColor:f,strokeLinecap:p,strokeColor:v}=e,m=dfe(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:h,pathStyle:g}=K3(0,100,f,s,c,d);delete m.percent;const x=r.value.find(w=>Object.prototype.toString.call(w)==="[object Object]"),y={d:h,stroke:f,"stroke-linecap":p,"stroke-width":u||s,"fill-opacity":"0",class:`${l}-circle-trail`,style:g};return C("svg",j({class:`${l}-circle`,viewBox:"0 0 100 100"},m),[x&&C("defs",null,[C("linearGradient",{id:`${l}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(x).sort((w,b)=>W3(w)-W3(b)).map((w,b)=>C("stop",{key:b,offset:w,"stop-color":x[w]},null))])]),C("path",y,null),i().reverse()])}}}),pfe=()=>E(E({},cv()),{strokeColor:jt()}),mfe=3,vfe=e=>mfe/e*100,hfe=he({compatConfig:{MODE:3},name:"Circle",inheritAttrs:!1,props:at(pfe(),{trailColor:null}),setup(e,t){let{slots:n,attrs:r}=t;const o=z(()=>{var m;return(m=e.width)!==null&&m!==void 0?m:120}),a=z(()=>{var m;return(m=e.size)!==null&&m!==void 0?m:[o.value,o.value]}),i=z(()=>dv(a.value,"circle")),l=z(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),s=z(()=>({width:`${i.value.width}px`,height:`${i.value.height}px`,fontSize:`${i.value.width*.15+6}px`})),u=z(()=>{var m;return(m=e.strokeWidth)!==null&&m!==void 0?m:Math.max(vfe(i.value.width),6)}),c=z(()=>e.gapPosition||e.type==="dashboard"&&"bottom"||void 0),d=z(()=>tfe(e)),f=z(()=>Object.prototype.toString.call(e.strokeColor)==="[object Object]"),p=z(()=>nfe({success:e.success,strokeColor:e.strokeColor})),v=z(()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:f.value}));return()=>{var m;const h=C(ffe,{percent:d.value,strokeWidth:u.value,trailWidth:u.value,strokeColor:p.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:l.value,gapPosition:c.value},null);return C("div",j(j({},r),{},{class:[v.value,r.class],style:[r.style,s.value]}),[i.value.width<=20?C(Br,null,{default:()=>[C("span",null,[h])],title:n.default}):C(dt,null,[h,(m=n.default)===null||m===void 0?void 0:m.call(n)])])}}}),gfe=()=>E(E({},cv()),{steps:Number,strokeColor:Xe(),trailColor:String}),yfe=he({compatConfig:{MODE:3},name:"Steps",props:gfe(),setup(e,t){let{slots:n}=t;const r=z(()=>Math.round(e.steps*((e.percent||0)/100))),o=z(()=>{var l;return(l=e.size)!==null&&l!==void 0?l:[e.size==="small"?2:14,e.strokeWidth||8]}),a=z(()=>dv(o.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8})),i=z(()=>{const{steps:l,strokeColor:s,trailColor:u,prefixCls:c}=e,d=[];for(let f=0;f{var l;return C("div",{class:`${e.prefixCls}-steps-outer`},[i.value,(l=n.default)===null||l===void 0?void 0:l.call(n)])}}}),bfe=new ft("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}}),xfe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:E(E({},rt(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:bfe,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}}})}},wfe=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"}}}},Sfe=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}}}}}},Cfe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},$fe=nt("Progress",e=>{const t=e.marginXXS/2,n=qe(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[xfe(n),wfe(n),Sfe(n),Cfe(n)]});var Efe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oArray.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor),u=z(()=>{const{percent:v=0}=e,m=Op(e);return parseInt(m!==void 0?m.toString():v.toString(),10)}),c=z(()=>{const{status:v}=e;return!efe.includes(v)&&u.value>=100?"success":v||"normal"}),d=z(()=>{const{type:v,showInfo:m,size:h}=e,g=o.value;return{[g]:!0,[`${g}-inline-circle`]:v==="circle"&&dv(h,"circle").width<=20,[`${g}-${v==="dashboard"&&"circle"||v}`]:!0,[`${g}-status-${c.value}`]:!0,[`${g}-show-info`]:m,[`${g}-${h}`]:h,[`${g}-rtl`]:a.value==="rtl",[l.value]:!0}}),f=z(()=>typeof e.strokeColor=="string"||Array.isArray(e.strokeColor)?e.strokeColor:void 0),p=()=>{const{showInfo:v,format:m,type:h,percent:g,title:x}=e,y=Op(e);if(!v)return null;let w;const b=m||(n==null?void 0:n.format)||($=>`${$}%`),S=h==="line";return m||n!=null&&n.format||c.value!=="exception"&&c.value!=="success"?w=b(Li(g),Li(y)):c.value==="exception"?w=S?C($r,null,null):C(Hr,null,null):c.value==="success"&&(w=S?C(Aa,null,null):C(Om,null,null)),C("span",{class:`${o.value}-text`,title:x===void 0&&typeof w=="string"?w:void 0},[w])};return()=>{const{type:v,steps:m,title:h}=e,{class:g}=r,x=Efe(r,["class"]),y=p();let w;return v==="line"?w=m?C(yfe,j(j({},e),{},{strokeColor:f.value,prefixCls:o.value,steps:m}),{default:()=>[y]}):C(lfe,j(j({},e),{},{strokeColor:s.value,prefixCls:o.value,direction:a.value}),{default:()=>[y]}):(v==="circle"||v==="dashboard")&&(w=C(hfe,j(j({},e),{},{prefixCls:o.value,strokeColor:s.value,progressStatus:c.value}),{default:()=>[y]})),i(C("div",j(j({role:"progressbar"},x),{},{class:[d.value,g],title:h}),[w]))}}}),mw=rn(Dfe);function Afe(e){let t=e.pageXOffset;const n="scrollLeft";if(typeof t!="number"){const r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function Ofe(e){let t,n;const r=e.ownerDocument,{body:o}=r,a=r&&r.documentElement,i=e.getBoundingClientRect();return t=i.left,n=i.top,t-=a.clientLeft||o.clientLeft||0,n-=a.clientTop||o.clientTop||0,{left:t,top:n}}function Tfe(e){const t=Ofe(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=Afe(r),t.left}const Mfe={value:Number,index:Number,prefixCls:String,allowHalf:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},character:Z.any,characterRender:Function,focused:{type:Boolean,default:void 0},count:Number,onClick:Function,onHover:Function},Nfe=he({compatConfig:{MODE:3},name:"Star",inheritAttrs:!1,props:Mfe,emits:["hover","click"],setup(e,t){let{emit:n}=t;const r=l=>{const{index:s}=e;n("hover",l,s)},o=l=>{const{index:s}=e;n("click",l,s)},a=l=>{const{index:s}=e;l.keyCode===13&&n("click",l,s)},i=z(()=>{const{prefixCls:l,index:s,value:u,allowHalf:c,focused:d}=e,f=s+1;let p=l;return u===0&&s===0&&d?p+=` ${l}-focused`:c&&u+.5>=f&&u{const{disabled:l,prefixCls:s,characterRender:u,character:c,index:d,count:f,value:p}=e,v=typeof c=="function"?c({disabled:l,prefixCls:s,index:d,count:f,value:p}):c;let m=C("li",{class:i.value},[C("div",{onClick:l?null:o,onKeydown:l?null:a,onMousemove:l?null:r,role:"radio","aria-checked":p>d?"true":"false","aria-posinset":d+1,"aria-setsize":f,tabindex:l?-1:0},[C("div",{class:`${s}-first`},[v]),C("div",{class:`${s}-second`},[v])])]);return u&&(m=u(m,e)),m}}}),Pfe=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.rateStarHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${e.lineWidth}px dashed ${e.rateStarColor}`,transform:e.rateStarHoverScale}},"&-first, &-second":{color:e.defaultColor,transition:`all ${e.motionDurationMid}`,userSelect:"none",[e.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},Ife=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),_fe=e=>{const{componentCls:t}=e;return{[t]:E(E(E(E(E({},rt(e)),{display:"inline-block",margin:0,padding:0,color:e.rateStarColor,fontSize:e.rateStarSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","&:hover":{transform:"scale(1)"}}}),Pfe(e)),{[`+ ${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,fontSize:e.fontSize}}),Ife(e))}},Bfe=nt("Rate",e=>{const{colorFillContent:t}=e,n=qe(e,{rateStarColor:e["yellow-6"],rateStarSize:e.controlHeightLG*.5,rateStarHoverScale:"scale(1.1)",defaultColor:t});return[_fe(n)]}),Ffe=()=>({prefixCls:String,count:Number,value:Number,allowHalf:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},tooltips:Array,disabled:{type:Boolean,default:void 0},character:Z.any,autofocus:{type:Boolean,default:void 0},tabindex:Z.oneOfType([Z.number,Z.string]),direction:String,id:String,onChange:Function,onHoverChange:Function,"onUpdate:value":Function,onFocus:Function,onBlur:Function,onKeydown:Function}),Rfe=he({compatConfig:{MODE:3},name:"ARate",inheritAttrs:!1,props:at(Ffe(),{value:0,count:5,allowHalf:!1,allowClear:!0,tabindex:0,direction:"ltr"}),setup(e,t){let{slots:n,attrs:r,emit:o,expose:a}=t;const{prefixCls:i,direction:l}=He("rate",e),[s,u]=Bfe(i),c=Sn(),d=be(),[f,p]=Z1(),v=_t({value:e.value,focused:!1,cleanedValue:null,hoverValue:void 0});Ne(()=>e.value,()=>{v.value=e.value});const m=T=>yr(p.value.get(T)),h=(T,M)=>{const B=l.value==="rtl";let F=T+1;if(e.allowHalf){const P=m(T),I=Tfe(P),N=P.clientWidth;(B&&M-I>N/2||!B&&M-I{e.value===void 0&&(v.value=T),o("update:value",T),o("change",T),c.onFieldChange()},x=(T,M)=>{const B=h(M,T.pageX);B!==v.cleanedValue&&(v.hoverValue=B,v.cleanedValue=null),o("hoverChange",B)},y=()=>{v.hoverValue=void 0,v.cleanedValue=null,o("hoverChange",void 0)},w=(T,M)=>{const{allowClear:B}=e,F=h(M,T.pageX);let P=!1;B&&(P=F===v.value),y(),g(P?0:F),v.cleanedValue=P?F:null},b=T=>{v.focused=!0,o("focus",T)},S=T=>{v.focused=!1,o("blur",T),c.onFieldBlur()},$=T=>{const{keyCode:M}=T,{count:B,allowHalf:F}=e,P=l.value==="rtl";M===_e.RIGHT&&v.value0&&!P||M===_e.RIGHT&&v.value>0&&P?(F?v.value-=.5:v.value-=1,g(v.value),T.preventDefault()):M===_e.LEFT&&v.value{e.disabled||d.value.focus()};a({focus:D,blur:()=>{e.disabled||d.value.blur()}}),Qe(()=>{const{autofocus:T,disabled:M}=e;T&&!M&&D()});const A=(T,M)=>{let{index:B}=M;const{tooltips:F}=e;return F?C(Br,{title:F[B]},{default:()=>[T]}):T};return()=>{const{count:T,allowHalf:M,disabled:B,tabindex:F,id:P=c.id.value}=e,{class:I,style:N}=r,R=[],_=B?`${i.value}-disabled`:"",L=e.character||n.character||(()=>C(bie,null,null));for(let H=0;HC("svg",{width:"252",height:"294"},[C("defs",null,[C("path",{d:"M0 .387h251.772v251.772H0z"},null)]),C("g",{fill:"none","fill-rule":"evenodd"},[C("g",{transform:"translate(0 .012)"},[C("mask",{fill:"#fff"},null),C("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),C("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),C("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),C("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),C("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),C("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),C("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),C("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),C("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),C("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),C("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),C("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),C("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),C("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),C("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),C("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),C("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),C("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),C("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),C("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),C("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),C("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),C("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),C("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),C("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),C("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),C("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),C("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),C("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),C("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),C("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),C("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),C("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),C("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),C("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),C("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),C("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),C("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),C("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),C("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),C("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),C("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),kfe=Lfe,Hfe=()=>C("svg",{width:"254",height:"294"},[C("defs",null,[C("path",{d:"M0 .335h253.49v253.49H0z"},null),C("path",{d:"M0 293.665h253.49V.401H0z"},null)]),C("g",{fill:"none","fill-rule":"evenodd"},[C("g",{transform:"translate(0 .067)"},[C("mask",{fill:"#fff"},null),C("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),C("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),C("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),C("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),C("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),C("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),C("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),C("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),C("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),C("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),C("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),C("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),C("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),C("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),C("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),C("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),C("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),C("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),C("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),C("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),C("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),C("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),C("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),C("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),C("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),C("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),C("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),C("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),C("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),C("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),C("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),C("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),C("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),C("mask",{fill:"#fff"},null),C("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),C("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),C("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),C("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),C("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),C("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),C("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),C("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),C("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),C("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),C("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])]),jfe=Hfe,Vfe=()=>C("svg",{width:"251",height:"294"},[C("g",{fill:"none","fill-rule":"evenodd"},[C("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),C("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),C("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),C("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),C("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),C("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),C("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),C("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),C("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),C("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),C("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),C("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),C("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),C("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),C("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),C("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),C("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),C("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),C("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),C("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),C("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),C("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),C("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),C("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),C("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),C("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),C("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),C("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),C("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),C("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),C("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),C("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),C("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),C("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),C("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),C("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),C("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),C("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),C("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),Wfe=Vfe,Ufe=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:o,paddingXL:a,paddingXS:i,paddingLG:l,marginXS:s,lineHeight:u}=e;return{[t]:{padding:`${l*2}px ${a}px`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${r}`]:{fontSize:e.resultIconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.resultTitleFontSize,lineHeight:n,marginBlock:s,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.resultSubtitleFontSize,lineHeight:u,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:l,padding:`${l}px ${o*2.5}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:i,"&:last-child":{marginInlineEnd:0}}}}},Kfe=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},qfe=e=>[Ufe(e),Kfe(e)],Gfe=e=>qfe(e),Xfe=nt("Result",e=>{const{paddingLG:t,fontSizeHeading3:n}=e,r=e.fontSize,o=`${t}px 0 0 0`,a=e.colorInfo,i=e.colorError,l=e.colorSuccess,s=e.colorWarning,u=qe(e,{resultTitleFontSize:n,resultSubtitleFontSize:r,resultIconFontSize:n*3,resultExtraMargin:o,resultInfoIconColor:a,resultErrorIconColor:i,resultSuccessIconColor:l,resultWarningIconColor:s});return[Gfe(u)]},{imageWidth:250,imageHeight:295}),Yfe={success:Aa,error:$r,info:Oa,warning:_ie},Dc={404:kfe,500:jfe,403:Wfe},Zfe=Object.keys(Dc),Jfe=()=>({prefixCls:String,icon:Z.any,status:{type:[Number,String],default:"info"},title:Z.any,subTitle:Z.any,extra:Z.any}),Qfe=(e,t)=>{let{status:n,icon:r}=t;if(Zfe.includes(`${n}`)){const i=Dc[n];return C("div",{class:`${e}-icon ${e}-image`},[C(i,null,null)])}const o=Yfe[n],a=r||C(o,null,null);return C("div",{class:`${e}-icon`},[a])},epe=(e,t)=>t&&C("div",{class:`${e}-extra`},[t]),ki=he({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:Jfe(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("result",e),[i,l]=Xfe(o),s=z(()=>ge(o.value,l.value,`${o.value}-${e.status}`,{[`${o.value}-rtl`]:a.value==="rtl"}));return()=>{var u,c,d,f,p,v,m,h;const g=(u=e.title)!==null&&u!==void 0?u:(c=n.title)===null||c===void 0?void 0:c.call(n),x=(d=e.subTitle)!==null&&d!==void 0?d:(f=n.subTitle)===null||f===void 0?void 0:f.call(n),y=(p=e.icon)!==null&&p!==void 0?p:(v=n.icon)===null||v===void 0?void 0:v.call(n),w=(m=e.extra)!==null&&m!==void 0?m:(h=n.extra)===null||h===void 0?void 0:h.call(n),b=o.value;return i(C("div",j(j({},r),{},{class:[s.value,r.class]}),[Qfe(b,{status:e.status,icon:y}),C("div",{class:`${b}-title`},[g]),x&&C("div",{class:`${b}-subtitle`},[x]),epe(b,w),n.default&&C("div",{class:`${b}-content`},[n.default()])]))}}});ki.PRESENTED_IMAGE_403=Dc[403];ki.PRESENTED_IMAGE_404=Dc[404];ki.PRESENTED_IMAGE_500=Dc[500];ki.install=function(e){return e.component(ki.name,ki),e};const tpe=ki,npe=rn(cx),j6=(e,t)=>{let{attrs:n}=t;const{included:r,vertical:o,style:a,class:i}=n;let{length:l,offset:s,reverse:u}=n;l<0&&(u=!u,l=Math.abs(l),s=100-s);const c=o?{[u?"top":"bottom"]:`${s}%`,[u?"bottom":"top"]:"auto",height:`${l}%`}:{[u?"right":"left"]:`${s}%`,[u?"left":"right"]:"auto",width:`${l}%`},d=E(E({},a),c);return r?C("div",{class:i,style:d},null):null};j6.inheritAttrs=!1;const V6=j6,rpe=(e,t,n,r,o,a)=>{Jt();const i=Object.keys(t).map(parseFloat).sort((l,s)=>l-s);if(n&&r)for(let l=o;l<=a;l+=r)i.indexOf(l)===-1&&i.push(l);return i},W6=(e,t)=>{let{attrs:n}=t;const{prefixCls:r,vertical:o,reverse:a,marks:i,dots:l,step:s,included:u,lowerBound:c,upperBound:d,max:f,min:p,dotStyle:v,activeDotStyle:m}=n,h=f-p,g=rpe(o,i,l,s,p,f).map(x=>{const y=`${Math.abs(x-p)/h*100}%`,w=!u&&x===d||u&&x<=d&&x>=c;let b=o?E(E({},v),{[a?"top":"bottom"]:y}):E(E({},v),{[a?"right":"left"]:y});w&&(b=E(E({},b),m));const S=ge({[`${r}-dot`]:!0,[`${r}-dot-active`]:w,[`${r}-dot-reverse`]:a});return C("span",{class:S,style:b,key:x},null)});return C("div",{class:`${r}-step`},[g])};W6.inheritAttrs=!1;const ope=W6,U6=(e,t)=>{let{attrs:n,slots:r}=t;const{class:o,vertical:a,reverse:i,marks:l,included:s,upperBound:u,lowerBound:c,max:d,min:f,onClickLabel:p}=n,v=Object.keys(l),m=r.mark,h=d-f,g=v.map(parseFloat).sort((x,y)=>x-y).map(x=>{const y=typeof l[x]=="function"?l[x]():l[x],w=typeof y=="object"&&!hn(y);let b=w?y.label:y;if(!b&&b!==0)return null;m&&(b=m({point:x,label:b}));const S=!s&&x===u||s&&x<=u&&x>=c,$=ge({[`${o}-text`]:!0,[`${o}-text-active`]:S}),D={marginBottom:"-50%",[i?"top":"bottom"]:`${(x-f)/h*100}%`},O={transform:`translateX(${i?"50%":"-50%"})`,msTransform:`translateX(${i?"50%":"-50%"})`,[i?"right":"left"]:`${(x-f)/h*100}%`},A=a?D:O,T=w?E(E({},A),y.style):A,M={[Dn?"onTouchstartPassive":"onTouchstart"]:B=>p(B,x)};return C("span",j({class:$,style:T,key:x,onMousedown:B=>p(B,x)},M),[b])});return C("div",{class:o},[g])};U6.inheritAttrs=!1;const ape=U6,K6=he({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:Z.oneOfType([Z.number,Z.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup(e,t){let{attrs:n,emit:r,expose:o}=t;const a=pe(!1),i=pe(),l=()=>{document.activeElement===i.value&&(a.value=!0)},s=h=>{a.value=!1,r("blur",h)},u=()=>{a.value=!1},c=()=>{var h;(h=i.value)===null||h===void 0||h.focus()},d=()=>{var h;(h=i.value)===null||h===void 0||h.blur()},f=()=>{a.value=!0,c()},p=h=>{h.preventDefault(),c(),r("mousedown",h)};o({focus:c,blur:d,clickFocus:f,ref:i});let v=null;Qe(()=>{v=en(document,"mouseup",l)}),st(()=>{v==null||v.remove()});const m=z(()=>{const{vertical:h,offset:g,reverse:x}=e;return h?{[x?"top":"bottom"]:`${g}%`,[x?"bottom":"top"]:"auto",transform:x?null:"translateY(+50%)"}:{[x?"right":"left"]:`${g}%`,[x?"left":"right"]:"auto",transform:`translateX(${x?"+":"-"}50%)`}});return()=>{const{prefixCls:h,disabled:g,min:x,max:y,value:w,tabindex:b,ariaLabel:S,ariaLabelledBy:$,ariaValueTextFormatter:D,onMouseenter:O,onMouseleave:A}=e,T=ge(n.class,{[`${h}-handle-click-focused`]:a.value}),M={"aria-valuemin":x,"aria-valuemax":y,"aria-valuenow":w,"aria-disabled":!!g},B=[n.style,m.value];let F=b||0;(g||b===null)&&(F=null);let P;D&&(P=D(w));const I=E(E(E(E({},n),{role:"slider",tabindex:F}),M),{class:T,onBlur:s,onKeydown:u,onMousedown:p,onMouseenter:O,onMouseleave:A,ref:i,style:B});return C("div",j(j({},I),{},{"aria-label":S,"aria-labelledby":$,"aria-valuetext":P}),null)}}});function Gh(e,t){try{return Object.keys(t).some(n=>e.target===t[n].ref)}catch{return!1}}function q6(e,t){let{min:n,max:r}=t;return er}function q3(e){return e.touches.length>1||e.type.toLowerCase()==="touchend"&&e.touches.length>0}function G3(e,t){let{marks:n,step:r,min:o,max:a}=t;const i=Object.keys(n).map(parseFloat);if(r!==null){const s=Math.pow(10,G6(r)),u=Math.floor((a*s-o*s)/(r*s)),c=Math.min((e-o)/r,u),d=Math.round(c)*r+o;i.push(d)}const l=i.map(s=>Math.abs(e-s));return i[l.indexOf(Math.min(...l))]}function G6(e){const t=e.toString();let n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function X3(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.clientY:t.pageX)/n}function Y3(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.touches[0].clientY:t.touches[0].pageX)/n}function Z3(e,t){const n=t.getBoundingClientRect();return e?n.top+n.height*.5:window.pageXOffset+n.left+n.width*.5}function vw(e,t){let{max:n,min:r}=t;return e<=r?r:e>=n?n:e}function X6(e,t){const{step:n}=t,r=isFinite(G3(e,t))?G3(e,t):0;return n===null?r:parseFloat(r.toFixed(G6(n)))}function vs(e){e.stopPropagation(),e.preventDefault()}function ipe(e,t,n){const r={increase:(i,l)=>i+l,decrease:(i,l)=>i-l},o=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),a=Object.keys(n.marks)[o];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[a]?n.marks[a]:t}function Y6(e,t,n){const r="increase",o="decrease";let a=r;switch(e.keyCode){case _e.UP:a=t&&n?o:r;break;case _e.RIGHT:a=!t&&n?o:r;break;case _e.DOWN:a=t&&n?r:o;break;case _e.LEFT:a=!t&&n?r:o;break;case _e.END:return(i,l)=>l.max;case _e.HOME:return(i,l)=>l.min;case _e.PAGE_UP:return(i,l)=>i+l.step*2;case _e.PAGE_DOWN:return(i,l)=>i-l.step*2;default:return}return(i,l)=>ipe(a,i,l)}var lpe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{this.document=this.sliderRef&&this.sliderRef.ownerDocument;const{autofocus:n,disabled:r}=this;n&&!r&&this.focus()})},beforeUnmount(){this.$nextTick(()=>{this.removeDocumentEvents()})},methods:{defaultHandle(n){var{index:r,directives:o,className:a,style:i}=n,l=lpe(n,["index","directives","className","style"]);if(delete l.dragging,l.value===null)return null;const s=E(E({},l),{class:a,style:i,key:r});return C(K6,s,null)},onDown(n,r){let o=r;const{draggableTrack:a,vertical:i}=this.$props,{bounds:l}=this.$data,s=a&&this.positionGetValue?this.positionGetValue(o)||[]:[],u=Gh(n,this.handlesRefs);if(this.dragTrack=a&&l.length>=2&&!u&&!s.map((c,d)=>{const f=d?!0:c>=l[d];return d===s.length-1?c<=l[d]:f}).some(c=>!c),this.dragTrack)this.dragOffset=o,this.startBounds=[...l];else{if(!u)this.dragOffset=0;else{const c=Z3(i,n.target);this.dragOffset=o-c,o=c}this.onStart(o)}},onMouseDown(n){if(n.button!==0)return;this.removeDocumentEvents();const r=this.$props.vertical,o=X3(r,n);this.onDown(n,o),this.addDocumentMouseEvents()},onTouchStart(n){if(q3(n))return;const r=this.vertical,o=Y3(r,n);this.onDown(n,o),this.addDocumentTouchEvents(),vs(n)},onFocus(n){const{vertical:r}=this;if(Gh(n,this.handlesRefs)&&!this.dragTrack){const o=Z3(r,n.target);this.dragOffset=0,this.onStart(o),vs(n),this.$emit("focus",n)}},onBlur(n){this.dragTrack||this.onEnd(),this.$emit("blur",n)},onMouseUp(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove(n){if(!this.sliderRef){this.onEnd();return}const r=X3(this.vertical,n);this.onMove(n,r-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(n){if(q3(n)||!this.sliderRef){this.onEnd();return}const r=Y3(this.vertical,n);this.onMove(n,r-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(n){this.sliderRef&&Gh(n,this.handlesRefs)&&this.onKeyboard(n)},onClickMarkLabel(n,r){n.stopPropagation(),this.onChange({sValue:r}),this.setState({sValue:r},()=>this.onEnd(!0))},getSliderStart(){const n=this.sliderRef,{vertical:r,reverse:o}=this,a=n.getBoundingClientRect();return r?o?a.bottom:a.top:window.pageXOffset+(o?a.right:a.left)},getSliderLength(){const n=this.sliderRef;if(!n)return 0;const r=n.getBoundingClientRect();return this.vertical?r.height:r.width},addDocumentTouchEvents(){this.onTouchMoveListener=en(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=en(this.document,"touchend",this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=en(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=en(this.document,"mouseup",this.onEnd)},removeDocumentEvents(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus(){var n;this.$props.disabled||(n=this.handlesRefs[0])===null||n===void 0||n.focus()},blur(){this.$props.disabled||Object.keys(this.handlesRefs).forEach(n=>{var r,o;(o=(r=this.handlesRefs[n])===null||r===void 0?void 0:r.blur)===null||o===void 0||o.call(r)})},calcValue(n){const{vertical:r,min:o,max:a}=this,i=Math.abs(Math.max(n,0)/this.getSliderLength());return r?(1-i)*(a-o)+o:i*(a-o)+o},calcValueByPos(n){const o=(this.reverse?-1:1)*(n-this.getSliderStart());return this.trimAlignValue(this.calcValue(o))},calcOffset(n){const{min:r,max:o}=this,a=(n-r)/(o-r);return Math.max(0,a*100)},saveSlider(n){this.sliderRef=n},saveHandle(n,r){this.handlesRefs[n]=r}},render(){const{prefixCls:n,marks:r,dots:o,step:a,included:i,disabled:l,vertical:s,reverse:u,min:c,max:d,maximumTrackStyle:f,railStyle:p,dotStyle:v,activeDotStyle:m,id:h}=this,{class:g,style:x}=this.$attrs,{tracks:y,handles:w}=this.renderSlider(),b=ge(n,g,{[`${n}-with-marks`]:Object.keys(r).length,[`${n}-disabled`]:l,[`${n}-vertical`]:s,[`${n}-horizontal`]:!s}),S={vertical:s,marks:r,included:i,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:c,reverse:u,class:`${n}-mark`,onClickLabel:l?Si:this.onClickMarkLabel},$={[Dn?"onTouchstartPassive":"onTouchstart"]:l?Si:this.onTouchStart};return C("div",j(j({id:h,ref:this.saveSlider,tabindex:"-1",class:b},$),{},{onMousedown:l?Si:this.onMouseDown,onMouseup:l?Si:this.onMouseUp,onKeydown:l?Si:this.onKeyDown,onFocus:l?Si:this.onFocus,onBlur:l?Si:this.onBlur,style:x}),[C("div",{class:`${n}-rail`,style:E(E({},f),p)},null),y,C(ope,{prefixCls:n,vertical:s,reverse:u,marks:r,dots:o,step:a,included:i,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:c,dotStyle:v,activeDotStyle:m},null),w,C(ape,S,{mark:this.$slots.mark}),rm(this)])}})}const spe=he({compatConfig:{MODE:3},name:"Slider",mixins:[nl],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:Z.oneOfType([Z.number,Z.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data(){const e=this.defaultValue!==void 0?this.defaultValue:this.min,t=this.value!==void 0?this.value:e;return{sValue:this.trimAlignValue(t),dragging:!1}},watch:{value:{handler(e){this.setChangeValue(e)},deep:!0},min(){const{sValue:e}=this;this.setChangeValue(e)},max(){const{sValue:e}=this;this.setChangeValue(e)}},methods:{setChangeValue(e){const t=e!==void 0?e:this.sValue,n=this.trimAlignValue(t,this.$props);n!==this.sValue&&(this.setState({sValue:n}),q6(t,this.$props)&&this.$emit("change",n))},onChange(e){const t=!aa(this,"value"),n=e.sValue>this.max?E(E({},e),{sValue:this.max}):e;t&&this.setState(n);const r=n.sValue;this.$emit("change",r)},onStart(e){this.setState({dragging:!0});const{sValue:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e,n!==t&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd(e){const{dragging:t}=this;this.removeDocumentEvents(),(t||e)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove(e,t){vs(e);const{sValue:n}=this,r=this.calcValueByPos(t);r!==n&&this.onChange({sValue:r})},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,r=Y6(e,n,t);if(r){vs(e);const{sValue:o}=this,a=r(o,this.$props),i=this.trimAlignValue(a);if(i===o)return;this.onChange({sValue:i}),this.$emit("afterChange",i),this.onEnd()}},getLowerBound(){const e=this.$props.startPoint||this.$props.min;return this.$data.sValue>e?e:this.$data.sValue},getUpperBound(){return this.$data.sValue1&&arguments[1]!==void 0?arguments[1]:{};if(e===null)return null;const n=E(E({},this.$props),t),r=vw(e,n);return X6(r,n)},getTrack(e){let{prefixCls:t,reverse:n,vertical:r,included:o,minimumTrackStyle:a,mergedTrackStyle:i,length:l,offset:s}=e;return C(V6,{class:`${t}-track`,vertical:r,included:o,offset:s,reverse:n,length:l,style:E(E({},a),i)},null)},renderSlider(){const{prefixCls:e,vertical:t,included:n,disabled:r,minimumTrackStyle:o,trackStyle:a,handleStyle:i,tabindex:l,ariaLabelForHandle:s,ariaLabelledByForHandle:u,ariaValueTextFormatterForHandle:c,min:d,max:f,startPoint:p,reverse:v,handle:m,defaultHandle:h}=this,g=m||h,{sValue:x,dragging:y}=this,w=this.calcOffset(x),b=g({class:`${e}-handle`,prefixCls:e,vertical:t,offset:w,value:x,dragging:y,disabled:r,min:d,max:f,reverse:v,index:0,tabindex:l,ariaLabel:s,ariaLabelledBy:u,ariaValueTextFormatter:c,style:i[0]||i,ref:D=>this.saveHandle(0,D),onFocus:this.onFocus,onBlur:this.onBlur}),S=p!==void 0?this.calcOffset(p):0,$=a[0]||a;return{tracks:this.getTrack({prefixCls:e,reverse:v,vertical:t,included:n,offset:S,minimumTrackStyle:o,mergedTrackStyle:$,length:w-S}),handles:b}}}}),upe=Z6(spe),eu=e=>{let{value:t,handle:n,bounds:r,props:o}=e;const{allowCross:a,pushable:i}=o,l=Number(i),s=vw(t,o);let u=s;return!a&&n!=null&&r!==void 0&&(n>0&&s<=r[n-1]+l&&(u=r[n-1]+l),n=r[n+1]-l&&(u=r[n+1]-l)),X6(u,o)},cpe={defaultValue:Z.arrayOf(Z.number),value:Z.arrayOf(Z.number),count:Number,pushable:VM(Z.oneOfType([Z.looseBool,Z.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:Z.arrayOf(Z.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},dpe=he({compatConfig:{MODE:3},name:"Range",mixins:[nl],inheritAttrs:!1,props:at(cpe,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data(){const{count:e,min:t,max:n}=this,r=Array(...Array(e+1)).map(()=>t),o=aa(this,"defaultValue")?this.defaultValue:r;let{value:a}=this;a===void 0&&(a=o);const i=a.map((s,u)=>eu({value:s,handle:u,props:this.$props}));return{sHandle:null,recent:i[0]===n?0:i.length-1,bounds:i}},watch:{value:{handler(e){const{bounds:t}=this;this.setChangeValue(e||t)},deep:!0},min(){const{value:e}=this;this.setChangeValue(e||this.bounds)},max(){const{value:e}=this;this.setChangeValue(e||this.bounds)}},methods:{setChangeValue(e){const{bounds:t}=this;let n=e.map((r,o)=>eu({value:r,handle:o,bounds:t,props:this.$props}));if(t.length===n.length){if(n.every((r,o)=>r===t[o]))return null}else n=e.map((r,o)=>eu({value:r,handle:o,props:this.$props}));if(this.setState({bounds:n}),e.some(r=>q6(r,this.$props))){const r=e.map(o=>vw(o,this.$props));this.$emit("change",r)}},onChange(e){if(!aa(this,"value"))this.setState(e);else{const o={};["sHandle","recent"].forEach(a=>{e[a]!==void 0&&(o[a]=e[a])}),Object.keys(o).length&&this.setState(o)}const r=E(E({},this.$data),e).bounds;this.$emit("change",r)},positionGetValue(e){const t=this.getValue(),n=this.calcValueByPos(e),r=this.getClosestBound(n),o=this.getBoundNeedMoving(n,r),a=t[o];if(n===a)return null;const i=[...t];return i[o]=n,i},onStart(e){const{bounds:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e;const r=this.getClosestBound(n);this.prevMovedHandleIndex=this.getBoundNeedMoving(n,r),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});const o=t[this.prevMovedHandleIndex];if(n===o)return;const a=[...t];a[this.prevMovedHandleIndex]=n,this.onChange({bounds:a})},onEnd(e){const{sHandle:t}=this;this.removeDocumentEvents(),t||(this.dragTrack=!1),(t!==null||e)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove(e,t,n,r){vs(e);const{$data:o,$props:a}=this,i=a.max||100,l=a.min||0;if(n){let f=a.vertical?-t:t;f=a.reverse?-f:f;const p=i-Math.max(...r),v=l-Math.min(...r),m=Math.min(Math.max(f/(this.getSliderLength()/100),v),p),h=r.map(g=>Math.floor(Math.max(Math.min(g+m,i),l)));o.bounds.map((g,x)=>g===h[x]).some(g=>!g)&&this.onChange({bounds:h});return}const{bounds:s,sHandle:u}=this,c=this.calcValueByPos(t),d=s[u];c!==d&&this.moveTo(c)},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,r=Y6(e,n,t);if(r){vs(e);const{bounds:o,sHandle:a}=this,i=o[a===null?this.recent:a],l=r(i,this.$props),s=eu({value:l,handle:a,bounds:o,props:this.$props});if(s===i)return;const u=!0;this.moveTo(s,u)}},getClosestBound(e){const{bounds:t}=this;let n=0;for(let r=1;r=t[r]&&(n=r);return Math.abs(t[n+1]-e)l-s),this.internalPointsCache={marks:e,step:t,points:i}}return this.internalPointsCache.points},moveTo(e,t){const n=[...this.bounds],{sHandle:r,recent:o}=this,a=r===null?o:r;n[a]=e;let i=a;this.$props.pushable!==!1?this.pushSurroundingHandles(n,i):this.$props.allowCross&&(n.sort((l,s)=>l-s),i=n.indexOf(e)),this.onChange({recent:i,sHandle:i,bounds:n}),t&&(this.$emit("afterChange",n),this.setState({},()=>{this.handlesRefs[i].focus()}),this.onEnd())},pushSurroundingHandles(e,t){const n=e[t],{pushable:r}=this,o=Number(r);let a=0;if(e[t+1]-n=r.length||a<0)return!1;const i=t+n,l=r[a],{pushable:s}=this,u=Number(s),c=n*(e[i]-l);return this.pushHandle(e,i,n,u-c)?(e[t]=l,!0):!1},trimAlignValue(e){const{sHandle:t,bounds:n}=this;return eu({value:e,handle:t,bounds:n,props:this.$props})},ensureValueNotConflict(e,t,n){let{allowCross:r,pushable:o}=n;const a=this.$data||{},{bounds:i}=a;if(e=e===void 0?a.sHandle:e,o=Number(o),!r&&e!=null&&i!==void 0){if(e>0&&t<=i[e-1]+o)return i[e-1]+o;if(e=i[e+1]-o)return i[e+1]-o}return t},getTrack(e){let{bounds:t,prefixCls:n,reverse:r,vertical:o,included:a,offsets:i,trackStyle:l}=e;return t.slice(0,-1).map((s,u)=>{const c=u+1,d=ge({[`${n}-track`]:!0,[`${n}-track-${c}`]:!0});return C(V6,{class:d,vertical:o,reverse:r,included:a,offset:i[c-1],length:i[c]-i[c-1],style:l[u],key:c},null)})},renderSlider(){const{sHandle:e,bounds:t,prefixCls:n,vertical:r,included:o,disabled:a,min:i,max:l,reverse:s,handle:u,defaultHandle:c,trackStyle:d,handleStyle:f,tabindex:p,ariaLabelGroupForHandles:v,ariaLabelledByGroupForHandles:m,ariaValueTextFormatterGroupForHandles:h}=this,g=u||c,x=t.map(b=>this.calcOffset(b)),y=`${n}-handle`,w=t.map((b,S)=>{let $=p[S]||0;(a||p[S]===null)&&($=null);const D=e===S;return g({class:ge({[y]:!0,[`${y}-${S+1}`]:!0,[`${y}-dragging`]:D}),prefixCls:n,vertical:r,dragging:D,offset:x[S],value:b,index:S,tabindex:$,min:i,max:l,reverse:s,disabled:a,style:f[S],ref:O=>this.saveHandle(S,O),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:v[S],ariaLabelledBy:m[S],ariaValueTextFormatter:h[S]})});return{tracks:this.getTrack({bounds:t,prefixCls:n,reverse:s,vertical:r,included:o,offsets:x,trackStyle:d}),handles:w}}}}),fpe=Z6(dpe),ppe=he({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:uP(),setup(e,t){let{attrs:n,slots:r}=t;const o=be(null),a=be(null);function i(){tt.cancel(a.value),a.value=null}function l(){a.value=tt(()=>{var u;(u=o.value)===null||u===void 0||u.forcePopupAlign(),a.value=null})}const s=()=>{i(),e.open&&l()};return Ne([()=>e.open,()=>e.title],()=>{s()},{flush:"post",immediate:!0}),ky(()=>{s()}),st(()=>{i()}),()=>C(Br,j(j({ref:o},e),n),r)}}),mpe=e=>{const{componentCls:t,controlSize:n,dotSize:r,marginFull:o,marginPart:a,colorFillContentHover:i}=e;return{[t]:E(E({},rt(e)),{position:"relative",height:n,margin:`${a}px ${o}px`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${o}px ${a}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:i},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${e.motionDurationMid}, inset-block-start ${e.motionDurationMid}, width ${e.motionDurationMid}, height ${e.motionDurationMid}, box-shadow ${e.motionDurationMid} `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+e.handleLineWidthHover*2,height:e.handleSizeHover+e.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.colorPrimary}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:r,height:r,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,"&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[` ${t}-dot `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new $t(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot `]:{cursor:"not-allowed !important"}}})}},J6=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a}=e,i=t?"paddingBlock":"paddingInline",l=t?"width":"height",s=t?"height":"width",u=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart";return{[i]:r,[s]:r*3,[`${n}-rail`]:{[l]:"100%",[s]:r},[`${n}-track`]:{[s]:r},[`${n}-handle`]:{[u]:(r*3-o)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:o,[l]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:r,[l]:"100%",[s]:r},[`${n}-dot`]:{position:"absolute",[u]:(r-a)/2}}},vpe=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:E(E({},J6(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},hpe=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:E(E({},J6(e,!1)),{height:"100%"})}},gpe=nt("Slider",e=>{const t=qe(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[mpe(t),vpe(t),hpe(t)]},e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,a=e.lineWidth+1*3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:a}});var J3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);otypeof e=="number"?e.toString():"",bpe=()=>({id:String,prefixCls:String,tooltipPrefixCls:String,range:Xe([Boolean,Object]),reverse:Pe(),min:Number,max:Number,step:Xe([Object,Number]),marks:We(),dots:Pe(),value:Xe([Array,Number]),defaultValue:Xe([Array,Number]),included:Pe(),disabled:Pe(),vertical:Pe(),tipFormatter:Xe([Function,Object],()=>ype),tooltipOpen:Pe(),tooltipVisible:Pe(),tooltipPlacement:Ue(),getTooltipPopupContainer:Oe(),autofocus:Pe(),handleStyle:Xe([Array,Object]),trackStyle:Xe([Array,Object]),onChange:Oe(),onAfterChange:Oe(),onFocus:Oe(),onBlur:Oe(),"onUpdate:value":Oe()}),xpe=he({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:bpe(),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:o,expose:a}=t;const{prefixCls:i,rootPrefixCls:l,direction:s,getPopupContainer:u,configProvider:c}=He("slider",e),[d,f]=gpe(i),p=Sn(),v=be(),m=be({}),h=($,D)=>{m.value[$]=D},g=z(()=>e.tooltipPlacement?e.tooltipPlacement:e.vertical?s.value==="rtl"?"left":"right":"top"),x=()=>{var $;($=v.value)===null||$===void 0||$.focus()},y=()=>{var $;($=v.value)===null||$===void 0||$.blur()},w=$=>{o("update:value",$),o("change",$),p.onFieldChange()},b=$=>{o("blur",$)};a({focus:x,blur:y});const S=$=>{var{tooltipPrefixCls:D}=$,O=$.info,{value:A,dragging:T,index:M}=O,B=J3(O,["value","dragging","index"]);const{tipFormatter:F,tooltipOpen:P=e.tooltipVisible,getTooltipPopupContainer:I}=e,N=F?m.value[M]||T:!1,R=P||P===void 0&&N;return C(ppe,{prefixCls:D,title:F?F(A):"",open:R,placement:g.value,transitionName:`${l.value}-zoom-down`,key:M,overlayClassName:`${i.value}-tooltip`,getPopupContainer:I||(u==null?void 0:u.value)},{default:()=>[C(K6,j(j({},B),{},{value:A,onMouseenter:()=>h(M,!0),onMouseleave:()=>h(M,!1)}),null)]})};return()=>{const{tooltipPrefixCls:$,range:D,id:O=p.id.value}=e,A=J3(e,["tooltipPrefixCls","range","id"]),T=c.getPrefixCls("tooltip",$),M=ge(n.class,{[`${i.value}-rtl`]:s.value==="rtl"},f.value);s.value==="rtl"&&!A.vertical&&(A.reverse=!A.reverse);let B;return typeof D=="object"&&(B=D.draggableTrack),d(D?C(fpe,j(j(j({},n),A),{},{step:A.step,draggableTrack:B,class:M,ref:v,handle:F=>S({tooltipPrefixCls:T,prefixCls:i.value,info:F}),prefixCls:i.value,onChange:w,onBlur:b}),{mark:r.mark}):C(upe,j(j(j({},n),A),{},{id:O,step:A.step,class:M,ref:v,handle:F=>S({tooltipPrefixCls:T,prefixCls:i.value,info:F}),prefixCls:i.value,onChange:w,onBlur:b}),{mark:r.mark}))}}}),wpe=rn(xpe);function Q3(e){return typeof e=="string"}function Spe(){}const Q6=()=>({prefixCls:String,itemWidth:String,active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},status:Ue(),iconPrefix:String,icon:Z.any,adjustMarginRight:String,stepNumber:Number,stepIndex:Number,description:Z.any,title:Z.any,subTitle:Z.any,progressDot:VM(Z.oneOfType([Z.looseBool,Z.func])),tailContent:Z.any,icons:Z.shape({finish:Z.any,error:Z.any}).loose,onClick:Oe(),onStepClick:Oe(),stepIcon:Oe(),itemRender:Oe(),__legacy:Pe()}),e5=he({compatConfig:{MODE:3},name:"Step",inheritAttrs:!1,props:Q6(),setup(e,t){let{slots:n,emit:r,attrs:o}=t;const a=l=>{r("click",l),r("stepClick",e.stepIndex)},i=l=>{let{icon:s,title:u,description:c}=l;const{prefixCls:d,stepNumber:f,status:p,iconPrefix:v,icons:m,progressDot:h=n.progressDot,stepIcon:g=n.stepIcon}=e;let x;const y=ge(`${d}-icon`,`${v}icon`,{[`${v}icon-${s}`]:s&&Q3(s),[`${v}icon-check`]:!s&&p==="finish"&&(m&&!m.finish||!m),[`${v}icon-cross`]:!s&&p==="error"&&(m&&!m.error||!m)}),w=C("span",{class:`${d}-icon-dot`},null);return h?typeof h=="function"?x=C("span",{class:`${d}-icon`},[h({iconDot:w,index:f-1,status:p,title:u,description:c,prefixCls:d})]):x=C("span",{class:`${d}-icon`},[w]):s&&!Q3(s)?x=C("span",{class:`${d}-icon`},[s]):m&&m.finish&&p==="finish"?x=C("span",{class:`${d}-icon`},[m.finish]):m&&m.error&&p==="error"?x=C("span",{class:`${d}-icon`},[m.error]):s||p==="finish"||p==="error"?x=C("span",{class:y},null):x=C("span",{class:`${d}-icon`},[f]),g&&(x=g({index:f-1,status:p,title:u,description:c,node:x})),x};return()=>{var l,s,u,c;const{prefixCls:d,itemWidth:f,active:p,status:v="wait",tailContent:m,adjustMarginRight:h,disabled:g,title:x=(l=n.title)===null||l===void 0?void 0:l.call(n),description:y=(s=n.description)===null||s===void 0?void 0:s.call(n),subTitle:w=(u=n.subTitle)===null||u===void 0?void 0:u.call(n),icon:b=(c=n.icon)===null||c===void 0?void 0:c.call(n),onClick:S,onStepClick:$}=e,D=v||"wait",O=ge(`${d}-item`,`${d}-item-${D}`,{[`${d}-item-custom`]:b,[`${d}-item-active`]:p,[`${d}-item-disabled`]:g===!0}),A={};f&&(A.width=f),h&&(A.marginRight=h);const T={onClick:S||Spe};$&&!g&&(T.role="button",T.tabindex=0,T.onClick=a);const M=C("div",j(j({},pt(o,["__legacy"])),{},{class:[O,o.class],style:[o.style,A]}),[C("div",j(j({},T),{},{class:`${d}-item-container`}),[C("div",{class:`${d}-item-tail`},[m]),C("div",{class:`${d}-item-icon`},[i({icon:b,title:x,description:y})]),C("div",{class:`${d}-item-content`},[C("div",{class:`${d}-item-title`},[x,w&&C("div",{title:typeof w=="string"?w:void 0,class:`${d}-item-subtitle`},[w])]),y&&C("div",{class:`${d}-item-description`},[y])])])]);return e.itemRender?e.itemRender(M):M}}});var Cpe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o[]),icons:Z.shape({finish:Z.any,error:Z.any}).loose,stepIcon:Oe(),isInline:Z.looseBool,itemRender:Oe()},emits:["change"],setup(e,t){let{slots:n,emit:r}=t;const o=l=>{const{current:s}=e;s!==l&&r("change",l)},a=(l,s,u)=>{const{prefixCls:c,iconPrefix:d,status:f,current:p,initial:v,icons:m,stepIcon:h=n.stepIcon,isInline:g,itemRender:x,progressDot:y=n.progressDot}=e,w=g||y,b=E(E({},l),{class:""}),S=v+s,$={active:S===p,stepNumber:S+1,stepIndex:S,key:S,prefixCls:c,iconPrefix:d,progressDot:w,stepIcon:h,icons:m,onStepClick:o};return f==="error"&&s===p-1&&(b.class=`${c}-next-error`),b.status||(S===p?b.status=f:Sx(b,D)),C(e5,j(j(j({},b),$),{},{__legacy:!1}),null))},i=(l,s)=>a(E({},l.props),s,u=>At(l,u));return()=>{var l;const{prefixCls:s,direction:u,type:c,labelPlacement:d,iconPrefix:f,status:p,size:v,current:m,progressDot:h=n.progressDot,initial:g,icons:x,items:y,isInline:w,itemRender:b}=e,S=Cpe(e,["prefixCls","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","initial","icons","items","isInline","itemRender"]),$=c==="navigation",D=w||h,O=w?"horizontal":u,A=w?void 0:v,T=D?"vertical":d,M=ge(s,`${s}-${u}`,{[`${s}-${A}`]:A,[`${s}-label-${T}`]:O==="horizontal",[`${s}-dot`]:!!D,[`${s}-navigation`]:$,[`${s}-inline`]:w});return C("div",j({class:M},S),[y.filter(B=>B).map((B,F)=>a(B,F)),nn((l=n.default)===null||l===void 0?void 0:l.call(n)).map(i)])}}}),Epe=e=>{const{componentCls:t,stepsIconCustomTop:n,stepsIconCustomSize:r,stepsIconCustomFontSize:o}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:o,lineHeight:`${r}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},Dpe=Epe,Ape=e=>{const{componentCls:t,stepsIconSize:n,lineHeight:r,stepsSmallIconSize:o}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:n/2+e.controlHeightLG,padding:`${e.paddingXXS}px ${e.paddingLG}px`},"&-content":{display:"block",width:(n/2+e.controlHeightLG)*2,marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.controlHeightLG+(n-o)/2}}}}}},Ope=Ape,Tpe=e=>{const{componentCls:t,stepsNavContentMaxWidth:n,stepsNavArrowColor:r,stepsNavActiveColor:o,motionDurationSlow:a}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-e.marginSM}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-e.margin,paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${a}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:E(E({maxWidth:"100%",paddingInlineEnd:0},gn),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${e.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${e.lineWidth}px ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:o,transition:`width ${a}, inset-inline-start ${a}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.lineWidth*3,height:`calc(100% - ${e.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.controlHeight*.25,height:e.controlHeight*.25,marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},Mpe=Tpe,Npe=e=>{const{antCls:t,componentCls:n}=e;return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:e.paddingXXS,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:e.processIconColor}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${n}-item-container > ${n}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.stepsIconSize/2-e.lineWidth+e.paddingXXS}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth+e.paddingXXS},[`&${n}-label-vertical`]:{[`${n}-item ${n}-item-tail`]:{top:e.margin-2*e.lineWidth}},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2,insetInlineStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2}}}}},Ppe=Npe,Ipe=e=>{const{componentCls:t,descriptionWidth:n,lineHeight:r,stepsCurrentDotSize:o,stepsDotSize:a,motionDurationSlow:i}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:Math.floor((e.stepsDotSize-e.lineWidth*3)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:`${n/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${e.marginSM*2}px)`,height:e.lineWidth*3,marginInlineStart:e.marginSM}},"&-icon":{width:a,height:a,marginInlineStart:(e.descriptionWidth-a)/2,paddingInlineEnd:0,lineHeight:`${a}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${i}`,"&::after":{position:"absolute",top:-e.marginSM,insetInlineStart:(a-e.controlHeightLG*1.5)/2,width:e.controlHeightLG*1.5,height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:(a-o)/2,width:o,height:o,lineHeight:`${o}px`,background:"none",marginInlineStart:(e.descriptionWidth-o)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeight-a)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-o)/2,top:0,insetInlineStart:(a-o)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-a)/2,insetInlineStart:0,margin:0,padding:`${a+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(a-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-a)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-o)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-a)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},_pe=Ipe,Bpe=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},Fpe=Bpe,Rpe=e=>{const{componentCls:t,stepsSmallIconSize:n,fontSizeSM:r,fontSize:o,colorTextDescription:a}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${e.marginXS}px`,fontSize:r,lineHeight:`${n}px`,textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:o,lineHeight:`${n}px`,"&::after":{top:n/2}},[`${t}-item-description`]:{color:a,fontSize:o},[`${t}-item-tail`]:{top:n/2-e.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:`${n}px`,transform:"none"}}}}},zpe=Rpe,Lpe=e=>{const{componentCls:t,stepsSmallIconSize:n,stepsIconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.controlHeight*1.5,overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${r}px`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsIconSize/2-e.lineWidth,width:e.lineWidth,height:"100%",padding:`${r+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth,padding:`${n+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`},[`${t}-item-title`]:{lineHeight:`${n}px`}}}}},kpe=Lpe,Hpe=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:o}=e,a=e.paddingXS+e.lineWidth,i={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${a}px ${e.paddingXXS}px 0`,margin:`0 ${e.marginXXS/2}px`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},["&[role='button']:hover"]:{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.fontSizeSM/4}},"&-content":{width:"auto",marginTop:e.marginXS-e.lineWidth},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:a+n/2,transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":E({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${e.lineWidth}px ${e.lineType} ${o}`}},i),"&-finish":E({[`${t}-item-tail::after`]:{backgroundColor:o},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:o,border:`${e.lineWidth}px ${e.lineType} ${o}`}},i),"&-error":i,"&-active, &-process":E({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,top:0}},i),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},jpe=Hpe;var zl;(function(e){e.wait="wait",e.process="process",e.finish="finish",e.error="error"})(zl||(zl={}));const md=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,o=`${e}TitleColor`,a=`${e}DescriptionColor`,i=`${e}TailColor`,l=`${e}IconBgColor`,s=`${e}IconBorderColor`,u=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[l],borderColor:t[s],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[u]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[u]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[o],"&::after":{backgroundColor:t[i]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[a]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[i]}}},Vpe=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`;return E(E(E(E(E(E({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none"},[`${r}-icon, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[`${r}-icon`]:{width:e.stepsIconSize,height:e.stepsIconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.stepsIconFontSize,fontFamily:e.fontFamily,lineHeight:`${e.stepsIconSize}px`,textAlign:"center",borderRadius:e.stepsIconSize,border:`${e.lineWidth}px ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.stepsIconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.stepsIconSize/2-e.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${e.stepsTitleLineHeight}px`,"&::after":{position:"absolute",top:e.stepsTitleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},md(zl.wait,e)),md(zl.process,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),md(zl.finish,e)),md(zl.error,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},Wpe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{["&-title, &-subtitle, &-description"]:{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionWidth,whiteSpace:"normal"}}}}},Upe=e=>{const{componentCls:t}=e;return{[t]:E(E(E(E(E(E(E(E(E(E(E(E(E({},rt(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),Vpe(e)),Wpe(e)),Dpe(e)),zpe(e)),kpe(e)),Ope(e)),_pe(e)),Mpe(e)),Fpe(e)),Ppe(e)),jpe(e))}},Kpe=nt("Steps",e=>{const{wireframe:t,colorTextDisabled:n,fontSizeHeading3:r,fontSize:o,controlHeight:a,controlHeightLG:i,colorTextLightSolid:l,colorText:s,colorPrimary:u,colorTextLabel:c,colorTextDescription:d,colorTextQuaternary:f,colorFillContent:p,controlItemBgActive:v,colorError:m,colorBgContainer:h,colorBorderSecondary:g}=e,x=e.controlHeight,y=e.colorSplit,w=qe(e,{processTailColor:y,stepsNavArrowColor:n,stepsIconSize:x,stepsIconCustomSize:x,stepsIconCustomTop:0,stepsIconCustomFontSize:i/2,stepsIconTop:-.5,stepsIconFontSize:o,stepsTitleLineHeight:a,stepsSmallIconSize:r,stepsDotSize:a/4,stepsCurrentDotSize:i/4,stepsNavContentMaxWidth:"auto",processIconColor:l,processTitleColor:s,processDescriptionColor:s,processIconBgColor:u,processIconBorderColor:u,processDotColor:u,waitIconColor:t?n:c,waitTitleColor:d,waitDescriptionColor:d,waitTailColor:y,waitIconBgColor:t?h:p,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:u,finishTitleColor:s,finishDescriptionColor:d,finishTailColor:u,finishIconBgColor:t?h:v,finishIconBorderColor:t?u:v,finishDotColor:u,errorIconColor:l,errorTitleColor:m,errorDescriptionColor:m,errorTailColor:y,errorIconBgColor:m,errorIconBorderColor:m,errorDotColor:m,stepsNavActiveColor:u,stepsProgressSize:i,inlineDotSize:6,inlineTitleColor:f,inlineTailColor:g});return[Upe(w)]},{descriptionWidth:140}),qpe=()=>({prefixCls:String,iconPrefix:String,current:Number,initial:Number,percent:Number,responsive:Pe(),items:bt(),labelPlacement:Ue(),status:Ue(),size:Ue(),direction:Ue(),progressDot:Xe([Boolean,Function]),type:Ue(),onChange:Oe(),"onUpdate:current":Oe()}),Xh=he({compatConfig:{MODE:3},name:"ASteps",inheritAttrs:!1,props:at(qpe(),{current:0,responsive:!0,labelPlacement:"horizontal"}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:o}=t;const{prefixCls:a,direction:i,configProvider:l}=He("steps",e),[s,u]=Kpe(a),[,c]=$a(),d=_s(),f=z(()=>e.responsive&&d.value.xs?"vertical":e.direction),p=z(()=>l.getPrefixCls("",e.iconPrefix)),v=y=>{o("update:current",y),o("change",y)},m=z(()=>e.type==="inline"),h=z(()=>m.value?void 0:e.percent),g=y=>{let{node:w,status:b}=y;if(b==="process"&&e.percent!==void 0){const S=e.size==="small"?c.value.controlHeight:c.value.controlHeightLG;return C("div",{class:`${a.value}-progress-icon`},[C(mw,{type:"circle",percent:h.value,size:S,strokeWidth:4,format:()=>null},null),w])}return w},x=z(()=>({finish:C(Om,{class:`${a.value}-finish-icon`},null),error:C(Hr,{class:`${a.value}-error-icon`},null)}));return()=>{const y=ge({[`${a.value}-rtl`]:i.value==="rtl",[`${a.value}-with-progress`]:h.value!==void 0},n.class,u.value),w=(b,S)=>b.description?C(Br,{title:b.description},{default:()=>[S]}):S;return s(C($pe,j(j(j({icons:x.value},n),pt(e,["percent","responsive"])),{},{items:e.items,direction:f.value,prefixCls:a.value,iconPrefix:p.value,class:y,onChange:v,isInline:m.value,itemRender:m.value?w:void 0}),E({stepIcon:g},r)))}}}),yf=he(E(E({compatConfig:{MODE:3}},e5),{name:"AStep",props:Q6()})),Gpe=E(Xh,{Step:yf,install:e=>(e.component(Xh.name,Xh),e.component(yf.name,yf),e)}),Xpe=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},Ype=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Zpe=e=>{const{componentCls:t}=e,n=`${t}-handle`;return{[t]:{[n]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${n}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:{[`${n}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${n}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Jpe=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.switchPadding*2,marginInlineEnd:-e.switchPadding*2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.switchPadding*2,marginInlineEnd:e.switchPadding*2}}}}}},Qpe=e=>{const{componentCls:t}=e;return{[t]:E(E(E(E({},rt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),ba(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},eme=nt("Switch",e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,r=2,o=t-r*2,a=n-r*2,i=qe(e,{switchMinWidth:o*2+r*4,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:o/2,switchInnerMarginMax:o+r+r*2,switchPadding:r,switchPinSize:o,switchBg:e.colorBgContainer,switchMinWidthSM:a*2+r*2,switchHeightSM:n,switchInnerMarginMinSM:a/2,switchInnerMarginMaxSM:a+r+r*2,switchPinSizeSM:a,switchHandleShadow:`0 2px 4px 0 ${new $t("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Qpe(i),Jpe(i),Zpe(i),Ype(i),Xpe(i)]}),tme=Un("small","default"),nme=()=>({id:String,prefixCls:String,size:Z.oneOf(tme),disabled:{type:Boolean,default:void 0},checkedChildren:Z.any,unCheckedChildren:Z.any,tabindex:Z.oneOfType([Z.string,Z.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:Z.oneOfType([Z.string,Z.number,Z.looseBool]),checkedValue:Z.oneOfType([Z.string,Z.number,Z.looseBool]).def(!0),unCheckedValue:Z.oneOfType([Z.string,Z.number,Z.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}),rme=he({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:nme(),slots:Object,setup(e,t){let{attrs:n,slots:r,expose:o,emit:a}=t;const i=Sn(),l=Fr(),s=z(()=>{var O;return(O=e.disabled)!==null&&O!==void 0?O:l.value});Ry(()=>{Jt(),Jt()});const u=be(e.checked!==void 0?e.checked:n.defaultChecked),c=z(()=>u.value===e.checkedValue);Ne(()=>e.checked,()=>{u.value=e.checked});const{prefixCls:d,direction:f,size:p}=He("switch",e),[v,m]=eme(d),h=be(),g=()=>{var O;(O=h.value)===null||O===void 0||O.focus()};o({focus:g,blur:()=>{var O;(O=h.value)===null||O===void 0||O.blur()}}),Qe(()=>{ht(()=>{e.autofocus&&!s.value&&h.value.focus()})});const y=(O,A)=>{s.value||(a("update:checked",O),a("change",O,A),i.onFieldChange())},w=O=>{a("blur",O)},b=O=>{g();const A=c.value?e.unCheckedValue:e.checkedValue;y(A,O),a("click",A,O)},S=O=>{O.keyCode===_e.LEFT?y(e.unCheckedValue,O):O.keyCode===_e.RIGHT&&y(e.checkedValue,O),a("keydown",O)},$=O=>{var A;(A=h.value)===null||A===void 0||A.blur(),a("mouseup",O)},D=z(()=>({[`${d.value}-small`]:p.value==="small",[`${d.value}-loading`]:e.loading,[`${d.value}-checked`]:c.value,[`${d.value}-disabled`]:s.value,[d.value]:!0,[`${d.value}-rtl`]:f.value==="rtl",[m.value]:!0}));return()=>{var O;return v(C(h1,null,{default:()=>[C("button",j(j(j({},pt(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),n),{},{id:(O=e.id)!==null&&O!==void 0?O:i.id.value,onKeydown:S,onClick:b,onBlur:w,onMouseup:$,type:"button",role:"switch","aria-checked":u.value,disabled:s.value||e.loading,class:[n.class,D.value],ref:h}),[C("div",{class:`${d.value}-handle`},[e.loading?C(Lr,{class:`${d.value}-loading-icon`},null):null]),C("span",{class:`${d.value}-inner`},[C("span",{class:`${d.value}-inner-checked`},[wn(r,e,"checkedChildren")]),C("span",{class:`${d.value}-inner-unchecked`},[wn(r,e,"unCheckedChildren")])])])]}))}}}),ome=rn(rme),t5=Symbol("TableContextProps"),ame=e=>{it(t5,e)},Ko=()=>lt(t5,{}),ime="RC_TABLE_KEY";function n5(e){return e==null?[]:Array.isArray(e)?e:[e]}function r5(e,t){if(!t&&typeof t!="number")return e;const n=n5(t);let r=e;for(let o=0;o{const{key:o,dataIndex:a}=r||{};let i=o||n5(a).join("-")||ime;for(;n[i];)i=`${i}_next`;n[i]=!0,t.push(i)}),t}function lme(){const e={};function t(a,i){i&&Object.keys(i).forEach(l=>{const s=i[l];s&&typeof s=="object"?(a[l]=a[l]||{},t(a[l],s)):a[l]=s})}for(var n=arguments.length,r=new Array(n),o=0;o{t(e,a)}),e}function k0(e){return e!=null}const o5=Symbol("SlotsContextProps"),sme=e=>{it(o5,e)},hw=()=>lt(o5,z(()=>({}))),a5=Symbol("ContextProps"),ume=e=>{it(a5,e)},cme=()=>lt(a5,{onResizeColumn:()=>{}});globalThis&&globalThis.__rest;const Ql="RC_TABLE_INTERNAL_COL_DEFINE",i5=Symbol("HoverContextProps"),dme=e=>{it(i5,e)},fme=()=>lt(i5,{startRow:pe(-1),endRow:pe(-1),onHover(){}}),H0=pe(!1),pme=()=>{Qe(()=>{H0.value=H0.value||ux("position","sticky")})},mme=()=>H0;var vme=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=n}function gme(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!br(e)}const pv=he({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],setup(e,t){let{slots:n}=t;const r=hw(),{onHover:o,startRow:a,endRow:i}=fme(),l=z(()=>{var v,m,h,g;return(h=(v=e.colSpan)!==null&&v!==void 0?v:(m=e.additionalProps)===null||m===void 0?void 0:m.colSpan)!==null&&h!==void 0?h:(g=e.additionalProps)===null||g===void 0?void 0:g.colspan}),s=z(()=>{var v,m,h,g;return(h=(v=e.rowSpan)!==null&&v!==void 0?v:(m=e.additionalProps)===null||m===void 0?void 0:m.rowSpan)!==null&&h!==void 0?h:(g=e.additionalProps)===null||g===void 0?void 0:g.rowspan}),u=Pr(()=>{const{index:v}=e;return hme(v,s.value||1,a.value,i.value)}),c=mme(),d=(v,m)=>{var h;const{record:g,index:x,additionalProps:y}=e;g&&o(x,x+m-1),(h=y==null?void 0:y.onMouseenter)===null||h===void 0||h.call(y,v)},f=v=>{var m;const{record:h,additionalProps:g}=e;h&&o(-1,-1),(m=g==null?void 0:g.onMouseleave)===null||m===void 0||m.call(g,v)},p=v=>{const m=nn(v)[0];return br(m)?m.type===Qp?m.children:Array.isArray(m.children)?p(m.children):void 0:m};return()=>{var v,m,h,g,x,y;const{prefixCls:w,record:b,index:S,renderIndex:$,dataIndex:D,customRender:O,component:A="td",fixLeft:T,fixRight:M,firstFixLeft:B,lastFixLeft:F,firstFixRight:P,lastFixRight:I,appendNode:N=(v=n.appendNode)===null||v===void 0?void 0:v.call(n),additionalProps:R={},ellipsis:_,align:L,rowType:k,isSticky:H,column:V={},cellType:U}=e,q=`${w}-cell`;let K,X;const re=(m=n.default)===null||m===void 0?void 0:m.call(n);if(k0(re)||U==="header")X=re;else{const ne=r5(b,D);if(X=ne,O){const oe=O({text:ne,value:ne,record:b,index:S,renderIndex:$,column:V.__originColumn__});gme(oe)?(X=oe.children,K=oe.props):X=oe}if(!(Ql in V)&&U==="body"&&r.value.bodyCell&&!(!((h=V.slots)===null||h===void 0)&&h.customRender)){const oe=em(r.value,"bodyCell",{text:ne,value:ne,record:b,index:S,column:V.__originColumn__},()=>{const ie=X===void 0?ne:X;return[typeof ie=="object"&&hn(ie)||typeof ie!="object"?ie:null]});X=Lt(oe)}e.transformCellText&&(X=e.transformCellText({text:X,record:b,index:S,column:V.__originColumn__}))}typeof X=="object"&&!Array.isArray(X)&&!br(X)&&(X=null),_&&(F||P)&&(X=C("span",{class:`${q}-content`},[X])),Array.isArray(X)&&X.length===1&&(X=X[0]);const ee=K||{},{colSpan:G,rowSpan:le,style:ue,class:me}=ee,Se=vme(ee,["colSpan","rowSpan","style","class"]),Q=(g=G!==void 0?G:l.value)!==null&&g!==void 0?g:1,te=(x=le!==void 0?le:s.value)!==null&&x!==void 0?x:1;if(Q===0||te===0)return null;const de={},Y=typeof T=="number"&&c.value,ae=typeof M=="number"&&c.value;Y&&(de.position="sticky",de.left=`${T}px`),ae&&(de.position="sticky",de.right=`${M}px`);const ce={};L&&(ce.textAlign=L);let Ce;const ye=_===!0?{showTitle:!0}:_;ye&&(ye.showTitle||k==="header")&&(typeof X=="string"||typeof X=="number"?Ce=X.toString():br(X)&&(Ce=p([X])));const J=E(E(E({title:Ce},Se),R),{colSpan:Q!==1?Q:null,rowSpan:te!==1?te:null,class:ge(q,{[`${q}-fix-left`]:Y&&c.value,[`${q}-fix-left-first`]:B&&c.value,[`${q}-fix-left-last`]:F&&c.value,[`${q}-fix-right`]:ae&&c.value,[`${q}-fix-right-first`]:P&&c.value,[`${q}-fix-right-last`]:I&&c.value,[`${q}-ellipsis`]:_,[`${q}-with-append`]:N,[`${q}-fix-sticky`]:(Y||ae)&&H&&c.value,[`${q}-row-hover`]:!K&&u.value},R.class,me),onMouseenter:ne=>{d(ne,te)},onMouseleave:f,style:[R.style,ce,de,ue]});return C(A,J,{default:()=>[N,X,(y=n.dragHandle)===null||y===void 0?void 0:y.call(n)]})}}});function gw(e,t,n,r,o){const a=n[e]||{},i=n[t]||{};let l,s;a.fixed==="left"?l=r.left[e]:i.fixed==="right"&&(s=r.right[t]);let u=!1,c=!1,d=!1,f=!1;const p=n[t+1],v=n[e-1];return o==="rtl"?l!==void 0?f=!(v&&v.fixed==="left"):s!==void 0&&(d=!(p&&p.fixed==="right")):l!==void 0?u=!(p&&p.fixed==="left"):s!==void 0&&(c=!(v&&v.fixed==="right")),{fixLeft:l,fixRight:s,lastFixLeft:u,firstFixRight:c,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}const eE={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},tE=50,yme=he({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:tE},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup(e){let t=0,n={remove:()=>{}},r={remove:()=>{}};const o=()=>{n.remove(),r.remove()};Cr(()=>{o()}),Je(()=>{qt(!isNaN(e.width),"Table","width must be a number when use resizable")});const{onResizeColumn:a}=cme(),i=z(()=>typeof e.minWidth=="number"&&!isNaN(e.minWidth)?e.minWidth:tE),l=z(()=>typeof e.maxWidth=="number"&&!isNaN(e.maxWidth)?e.maxWidth:1/0),s=Kn();let u=0;const c=pe(!1);let d;const f=y=>{let w=0;y.touches?y.touches.length?w=y.touches[0].pageX:w=y.changedTouches[0].pageX:w=y.pageX;const b=t-w;let S=Math.max(u-b,i.value);S=Math.min(S,l.value),tt.cancel(d),d=tt(()=>{a(S,e.column.__originColumn__)})},p=y=>{f(y)},v=y=>{c.value=!1,f(y),o()},m=(y,w)=>{c.value=!0,o(),u=s.vnode.el.parentNode.getBoundingClientRect().width,!(y instanceof MouseEvent&&y.which!==1)&&(y.stopPropagation&&y.stopPropagation(),t=y.touches?y.touches[0].pageX:y.pageX,n=en(document.documentElement,w.move,p),r=en(document.documentElement,w.stop,v))},h=y=>{y.stopPropagation(),y.preventDefault(),m(y,eE.mouse)},g=y=>{y.stopPropagation(),y.preventDefault(),m(y,eE.touch)},x=y=>{y.stopPropagation(),y.preventDefault()};return()=>{const{prefixCls:y}=e,w={[Dn?"onTouchstartPassive":"onTouchstart"]:b=>g(b)};return C("div",j(j({class:`${y}-resize-handle ${c.value?"dragging":""}`,onMousedown:h},w),{},{onClick:x}),[C("div",{class:`${y}-resize-handle-line`},null)])}}}),bme=he({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup(e){const t=Ko();return()=>{const{prefixCls:n,direction:r}=t,{cells:o,stickyOffsets:a,flattenColumns:i,rowComponent:l,cellComponent:s,customHeaderRow:u,index:c}=e;let d;u&&(d=u(o.map(p=>p.column),c));const f=fv(o.map(p=>p.column));return C(l,d,{default:()=>[o.map((p,v)=>{const{column:m}=p,h=gw(p.colStart,p.colEnd,i,a,r);let g;m&&m.customHeaderCell&&(g=p.column.customHeaderCell(m));const x=m;return C(pv,j(j(j({},p),{},{cellType:"header",ellipsis:m.ellipsis,align:m.align,component:s,prefixCls:n,key:f[v]},h),{},{additionalProps:g,rowType:"header",column:m}),{default:()=>m.title,dragHandle:()=>x.resizable?C(yme,{prefixCls:n,width:x.width,minWidth:x.minWidth,maxWidth:x.maxWidth,column:x},null):null})})]})}}});function xme(e){const t=[];function n(o,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[i]=t[i]||[];let l=a;return o.filter(Boolean).map(u=>{const c={key:u.key,class:ge(u.className,u.class),column:u,colStart:l};let d=1;const f=u.children;return f&&f.length>0&&(d=n(f,l,i+1).reduce((p,v)=>p+v,0),c.hasSubColumns=!0),"colSpan"in u&&({colSpan:d}=u),"rowSpan"in u&&(c.rowSpan=u.rowSpan),c.colSpan=d,c.colEnd=c.colStart+d-1,t[i].push(c),l+=d,d})}n(e,0);const r=t.length;for(let o=0;o{!("rowSpan"in a)&&!a.hasSubColumns&&(a.rowSpan=r-o)});return t}const nE=he({name:"Header",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup(e){const t=Ko(),n=z(()=>xme(e.columns));return()=>{const{prefixCls:r,getComponent:o}=t,{stickyOffsets:a,flattenColumns:i,customHeaderRow:l}=e,s=o(["header","wrapper"],"thead"),u=o(["header","row"],"tr"),c=o(["header","cell"],"th");return C(s,{class:`${r}-thead`},{default:()=>[n.value.map((d,f)=>C(bme,{key:f,flattenColumns:i,cells:d,stickyOffsets:a,rowComponent:u,cellComponent:c,customHeaderRow:l,index:f},null))]})}}}),l5=Symbol("ExpandedRowProps"),wme=e=>{it(l5,e)},Sme=()=>lt(l5,{}),s5=he({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup(e,t){let{slots:n,attrs:r}=t;const o=Ko(),a=Sme(),{fixHeader:i,fixColumn:l,componentWidth:s,horizonScroll:u}=a;return()=>{const{prefixCls:c,component:d,cellComponent:f,expanded:p,colSpan:v,isEmpty:m}=e;return C(d,{class:r.class,style:{display:p?null:"none"}},{default:()=>[C(pv,{component:f,prefixCls:c,colSpan:v},{default:()=>{var h;let g=(h=n.default)===null||h===void 0?void 0:h.call(n);return(m?u.value:l.value)&&(g=C("div",{style:{width:`${s.value-(i.value?o.scrollbarSize:0)}px`,position:"sticky",left:0,overflow:"hidden"},class:`${c}-expanded-row-fixed`},[g])),g}})]})}}}),Cme=he({name:"MeasureCell",props:["columnKey"],setup(e,t){let{emit:n}=t;const r=be();return Qe(()=>{r.value&&n("columnResize",e.columnKey,r.value.offsetWidth)}),()=>C(Qr,{onResize:o=>{let{offsetWidth:a}=o;n("columnResize",e.columnKey,a)}},{default:()=>[C("td",{ref:r,style:{padding:0,border:0,height:0}},[C("div",{style:{height:0,overflow:"hidden"}},[sr(" ")])])]})}}),u5=Symbol("BodyContextProps"),$me=e=>{it(u5,e)},c5=()=>lt(u5,{}),Eme=he({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup(e,t){let{attrs:n}=t;const r=Ko(),o=c5(),a=pe(!1),i=z(()=>e.expandedKeys&&e.expandedKeys.has(e.recordKey));Je(()=>{i.value&&(a.value=!0)});const l=z(()=>o.expandableType==="row"&&(!e.rowExpandable||e.rowExpandable(e.record))),s=z(()=>o.expandableType==="nest"),u=z(()=>e.childrenColumnName&&e.record&&e.record[e.childrenColumnName]),c=z(()=>l.value||s.value),d=(h,g)=>{o.onTriggerExpand(h,g)},f=z(()=>{var h;return((h=e.customRow)===null||h===void 0?void 0:h.call(e,e.record,e.index))||{}}),p=function(h){var g,x;o.expandRowByClick&&c.value&&d(e.record,h);for(var y=arguments.length,w=new Array(y>1?y-1:0),b=1;b{const{record:h,index:g,indent:x}=e,{rowClassName:y}=o;return typeof y=="string"?y:typeof y=="function"?y(h,g,x):""}),m=z(()=>fv(o.flattenColumns));return()=>{const{class:h,style:g}=n,{record:x,index:y,rowKey:w,indent:b=0,rowComponent:S,cellComponent:$}=e,{prefixCls:D,fixedInfoList:O,transformCellText:A}=r,{flattenColumns:T,expandedRowClassName:M,indentSize:B,expandIcon:F,expandedRowRender:P,expandIconColumnIndex:I}=o,N=C(S,j(j({},f.value),{},{"data-row-key":w,class:ge(h,`${D}-row`,`${D}-row-level-${b}`,v.value,f.value.class),style:[g,f.value.style],onClick:p}),{default:()=>[T.map((_,L)=>{const{customRender:k,dataIndex:H,className:V}=_,U=m[L],q=O[L];let K;_.customCell&&(K=_.customCell(x,y,_));const X=L===(I||0)&&s.value?C(dt,null,[C("span",{style:{paddingLeft:`${B*b}px`},class:`${D}-row-indent indent-level-${b}`},null),F({prefixCls:D,expanded:i.value,expandable:u.value,record:x,onExpand:d})]):null;return C(pv,j(j({cellType:"body",class:V,ellipsis:_.ellipsis,align:_.align,component:$,prefixCls:D,key:U,record:x,index:y,renderIndex:e.renderIndex,dataIndex:H,customRender:k},q),{},{additionalProps:K,column:_,transformCellText:A,appendNode:X}),null)})]});let R;if(l.value&&(a.value||i.value)){const _=P({record:x,index:y,indent:b+1,expanded:i.value}),L=M&&M(x,y,b);R=C(s5,{expanded:i.value,class:ge(`${D}-expanded-row`,`${D}-expanded-row-level-${b+1}`,L),prefixCls:D,component:S,cellComponent:$,colSpan:T.length,isEmpty:!1},{default:()=>[_]})}return C(dt,null,[N,R])}}});function d5(e,t,n,r,o,a){const i=[];i.push({record:e,indent:t,index:a});const l=o(e),s=r==null?void 0:r.has(l);if(e&&Array.isArray(e[n])&&s)for(let u=0;u{const a=t.value,i=n.value,l=e.value;if(i!=null&&i.size){const s=[];for(let u=0;u<(l==null?void 0:l.length);u+=1){const c=l[u];s.push(...d5(c,0,a,i,r.value,u))}return s}return l==null?void 0:l.map((s,u)=>({record:s,indent:0,index:u}))})}const f5=Symbol("ResizeContextProps"),Ame=e=>{it(f5,e)},Ome=()=>lt(f5,{onColumnResize:()=>{}}),Tme=he({name:"Body",props:["data","getRowKey","measureColumnWidth","expandedKeys","customRow","rowExpandable","childrenColumnName"],setup(e,t){let{slots:n}=t;const r=Ome(),o=Ko(),a=c5(),i=Dme(Ye(e,"data"),Ye(e,"childrenColumnName"),Ye(e,"expandedKeys"),Ye(e,"getRowKey")),l=pe(-1),s=pe(-1);let u;return dme({startRow:l,endRow:s,onHover:(c,d)=>{clearTimeout(u),u=setTimeout(()=>{l.value=c,s.value=d},100)}}),()=>{var c;const{data:d,getRowKey:f,measureColumnWidth:p,expandedKeys:v,customRow:m,rowExpandable:h,childrenColumnName:g}=e,{onColumnResize:x}=r,{prefixCls:y,getComponent:w}=o,{flattenColumns:b}=a,S=w(["body","wrapper"],"tbody"),$=w(["body","row"],"tr"),D=w(["body","cell"],"td");let O;d.length?O=i.value.map((T,M)=>{const{record:B,indent:F,index:P}=T,I=f(B,M);return C(Eme,{key:I,rowKey:I,record:B,recordKey:I,index:M,renderIndex:P,rowComponent:$,cellComponent:D,expandedKeys:v,customRow:m,getRowKey:f,rowExpandable:h,childrenColumnName:g,indent:F},null)}):O=C(s5,{expanded:!0,class:`${y}-placeholder`,prefixCls:y,component:$,cellComponent:D,colSpan:b.length,isEmpty:!0},{default:()=>[(c=n.emptyNode)===null||c===void 0?void 0:c.call(n)]});const A=fv(b);return C(S,{class:`${y}-tbody`},{default:()=>[p&&C("tr",{"aria-hidden":"true",class:`${y}-measure-row`,style:{height:0,fontSize:0}},[A.map(T=>C(Cme,{key:T,columnKey:T,onColumnResize:x},null))]),O]})}}}),ja={};var Mme=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{fixed:r}=n,o=r===!0?"left":r,a=n.children;return a&&a.length>0?[...t,...j0(a).map(i=>E({fixed:o},i))]:[...t,E(E({},n),{fixed:o})]},[])}function Nme(e){return e.map(t=>{const{fixed:n}=t,r=Mme(t,["fixed"]);let o=n;return n==="left"?o="right":n==="right"&&(o="left"),E({fixed:o},r)})}function Pme(e,t){let{prefixCls:n,columns:r,expandable:o,expandedKeys:a,getRowKey:i,onTriggerExpand:l,expandIcon:s,rowExpandable:u,expandIconColumnIndex:c,direction:d,expandRowByClick:f,expandColumnWidth:p,expandFixed:v}=e;const m=hw(),h=z(()=>{if(o.value){let y=r.value.slice();if(!y.includes(ja)){const B=c.value||0;B>=0&&y.splice(B,0,ja)}const w=y.indexOf(ja);y=y.filter((B,F)=>B!==ja||F===w);const b=r.value[w];let S;(v.value==="left"||v.value)&&!c.value?S="left":(v.value==="right"||v.value)&&c.value===r.value.length?S="right":S=b?b.fixed:null;const $=a.value,D=u.value,O=s.value,A=n.value,T=f.value,M={[Ql]:{class:`${n.value}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:em(m.value,"expandColumnTitle",{},()=>[""]),fixed:S,class:`${n.value}-row-expand-icon-cell`,width:p.value,customRender:B=>{let{record:F,index:P}=B;const I=i.value(F,P),N=$.has(I),R=D?D(F):!0,_=O({prefixCls:A,expanded:N,expandable:R,record:F,onExpand:l});return T?C("span",{onClick:L=>L.stopPropagation()},[_]):_}};return y.map(B=>B===ja?M:B)}return r.value.filter(y=>y!==ja)}),g=z(()=>{let y=h.value;return t.value&&(y=t.value(y)),y.length||(y=[{customRender:()=>null}]),y}),x=z(()=>d.value==="rtl"?Nme(j0(g.value)):j0(g.value));return[g,x]}function p5(e){const t=pe(e);let n;const r=pe([]);function o(a){r.value.push(a),tt.cancel(n),n=tt(()=>{const i=r.value;r.value=[],i.forEach(l=>{t.value=l(t.value)})})}return st(()=>{tt.cancel(n)}),[t,o]}function Ime(e){const t=be(e||null),n=be();function r(){clearTimeout(n.value)}function o(i){t.value=i,r(),n.value=setTimeout(()=>{t.value=null,n.value=void 0},100)}function a(){return t.value}return st(()=>{r()}),[o,a]}function _me(e,t,n){return z(()=>{const o=[],a=[];let i=0,l=0;const s=e.value,u=t.value,c=n.value;for(let d=0;d=0;l-=1){const s=t[l],u=n&&n[l],c=u&&u[Ql];if(s||c||i){const d=c||{},f=Bme(d,["columnType"]);o.unshift(C("col",j({key:l,style:{width:typeof s=="number"?`${s}px`:s}},f),null)),i=!0}}return C("colgroup",null,[o])}function V0(e,t){let{slots:n}=t;var r;return C("div",null,[(r=n.default)===null||r===void 0?void 0:r.call(n)])}V0.displayName="Panel";let Fme=0;const Rme=he({name:"Summary",props:["fixed"],setup(e,t){let{slots:n}=t;const r=Ko(),o=`table-summary-uni-key-${++Fme}`,a=z(()=>e.fixed===""||e.fixed);return Je(()=>{r.summaryCollect(o,a.value)}),st(()=>{r.summaryCollect(o,!1)}),()=>{var i;return(i=n.default)===null||i===void 0?void 0:i.call(n)}}}),zme=Rme,Lme=he({compatConfig:{MODE:3},name:"ATableSummaryRow",setup(e,t){let{slots:n}=t;return()=>{var r;return C("tr",null,[(r=n.default)===null||r===void 0?void 0:r.call(n)])}}}),v5=Symbol("SummaryContextProps"),kme=e=>{it(v5,e)},Hme=()=>lt(v5,{}),jme=he({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup(e,t){let{attrs:n,slots:r}=t;const o=Ko(),a=Hme();return()=>{const{index:i,colSpan:l=1,rowSpan:s,align:u}=e,{prefixCls:c,direction:d}=o,{scrollColumnIndex:f,stickyOffsets:p,flattenColumns:v}=a,h=i+l-1+1===f?l+1:l,g=gw(i,i+h-1,v,p,d);return C(pv,j({class:n.class,index:i,component:"td",prefixCls:c,record:null,dataIndex:null,align:u,colSpan:h,rowSpan:s,customRender:()=>{var x;return(x=r.default)===null||x===void 0?void 0:x.call(r)}},g),null)}}}),vd=he({name:"Footer",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup(e,t){let{slots:n}=t;const r=Ko();return kme(_t({stickyOffsets:Ye(e,"stickyOffsets"),flattenColumns:Ye(e,"flattenColumns"),scrollColumnIndex:z(()=>{const o=e.flattenColumns.length-1,a=e.flattenColumns[o];return a!=null&&a.scrollbar?o:null})})),()=>{var o;const{prefixCls:a}=r;return C("tfoot",{class:`${a}-summary`},[(o=n.default)===null||o===void 0?void 0:o.call(n)])}}}),Vme=zme;function Wme(e){let{prefixCls:t,record:n,onExpand:r,expanded:o,expandable:a}=e;const i=`${t}-row-expand-icon`;if(!a)return C("span",{class:[i,`${t}-row-spaced`]},null);const l=s=>{r(n,s),s.stopPropagation()};return C("span",{class:{[i]:!0,[`${t}-row-expanded`]:o,[`${t}-row-collapsed`]:!o},onClick:l},null)}function Ume(e,t,n){const r=[];function o(a){(a||[]).forEach((i,l)=>{r.push(t(i,l)),o(i[n])})}return o(e),r}const Kme=he({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup(e,t){let{emit:n,expose:r}=t;const o=Ko(),a=pe(0),i=pe(0),l=pe(0);Je(()=>{a.value=e.scrollBodySizeInfo.scrollWidth||0,i.value=e.scrollBodySizeInfo.clientWidth||0,l.value=a.value&&i.value*(i.value/a.value)},{flush:"post"});const s=pe(),[u,c]=p5({scrollLeft:0,isHiddenScrollBar:!0}),d=be({delta:0,x:0}),f=pe(!1),p=()=>{f.value=!1},v=$=>{d.value={delta:$.pageX-u.value.scrollLeft,x:0},f.value=!0,$.preventDefault()},m=$=>{const{buttons:D}=$||(window==null?void 0:window.event);if(!f.value||D===0){f.value&&(f.value=!1);return}let O=d.value.x+$.pageX-d.value.x-d.value.delta;O<=0&&(O=0),O+l.value>=i.value&&(O=i.value-l.value),n("scroll",{scrollLeft:O/i.value*(a.value+2)}),d.value.x=$.pageX},h=()=>{if(!e.scrollBodyRef.value)return;const $=Dp(e.scrollBodyRef.value).top,D=$+e.scrollBodyRef.value.offsetHeight,O=e.container===window?document.documentElement.scrollTop+window.innerHeight:Dp(e.container).top+e.container.clientHeight;D-Gf()<=O||$>=O-e.offsetScroll?c(A=>E(E({},A),{isHiddenScrollBar:!0})):c(A=>E(E({},A),{isHiddenScrollBar:!1}))};r({setScrollLeft:$=>{c(D=>E(E({},D),{scrollLeft:$/a.value*i.value||0}))}});let x=null,y=null,w=null,b=null;Qe(()=>{x=en(document.body,"mouseup",p,!1),y=en(document.body,"mousemove",m,!1),w=en(window,"resize",h,!1)}),ky(()=>{ht(()=>{h()})}),Qe(()=>{setTimeout(()=>{Ne([l,f],()=>{h()},{immediate:!0,flush:"post"})})}),Ne(()=>e.container,()=>{b==null||b.remove(),b=en(e.container,"scroll",h,!1)},{immediate:!0,flush:"post"}),st(()=>{x==null||x.remove(),y==null||y.remove(),b==null||b.remove(),w==null||w.remove()}),Ne(()=>E({},u.value),($,D)=>{$.isHiddenScrollBar!==(D==null?void 0:D.isHiddenScrollBar)&&!$.isHiddenScrollBar&&c(O=>{const A=e.scrollBodyRef.value;return A?E(E({},O),{scrollLeft:A.scrollLeft/A.scrollWidth*A.clientWidth}):O})},{immediate:!0});const S=Gf();return()=>{if(a.value<=i.value||!l.value||u.value.isHiddenScrollBar)return null;const{prefixCls:$}=o;return C("div",{style:{height:`${S}px`,width:`${i.value}px`,bottom:`${e.offsetScroll}px`},class:`${$}-sticky-scroll`},[C("div",{onMousedown:v,ref:s,class:ge(`${$}-sticky-scroll-bar`,{[`${$}-sticky-scroll-bar-active`]:f.value}),style:{width:`${l.value}px`,transform:`translate3d(${u.value.scrollLeft}px, 0, 0)`}},null)])}}}),rE=Co()?window:null;function qme(e,t){return z(()=>{const{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:o=0,getContainer:a=()=>rE}=typeof e.value=="object"?e.value:{},i=a()||rE,l=!!e.value;return{isSticky:l,stickyClassName:l?`${t.value}-sticky-holder`:"",offsetHeader:n,offsetSummary:r,offsetScroll:o,container:i}})}function Gme(e,t){return z(()=>{const n=[],r=e.value,o=t.value;for(let a=0;aa.isSticky&&!e.fixHeader?0:a.scrollbarSize),l=be(),s=m=>{const{currentTarget:h,deltaX:g}=m;g&&(o("scroll",{currentTarget:h,scrollLeft:h.scrollLeft+g}),m.preventDefault())},u=be();Qe(()=>{ht(()=>{u.value=en(l.value,"wheel",s)})}),st(()=>{var m;(m=u.value)===null||m===void 0||m.remove()});const c=z(()=>e.flattenColumns.every(m=>m.width&&m.width!==0&&m.width!=="0px")),d=be([]),f=be([]);Je(()=>{const m=e.flattenColumns[e.flattenColumns.length-1],h={fixed:m?m.fixed:null,scrollbar:!0,customHeaderCell:()=>({class:`${a.prefixCls}-cell-scrollbar`})};d.value=i.value?[...e.columns,h]:e.columns,f.value=i.value?[...e.flattenColumns,h]:e.flattenColumns});const p=z(()=>{const{stickyOffsets:m,direction:h}=e,{right:g,left:x}=m;return E(E({},m),{left:h==="rtl"?[...x.map(y=>y+i.value),0]:x,right:h==="rtl"?g:[...g.map(y=>y+i.value),0],isSticky:a.isSticky})}),v=Gme(Ye(e,"colWidths"),Ye(e,"columCount"));return()=>{var m;const{noData:h,columCount:g,stickyTopOffset:x,stickyBottomOffset:y,stickyClassName:w,maxContentScroll:b}=e,{isSticky:S}=a;return C("div",{style:E({overflow:"hidden"},S?{top:`${x}px`,bottom:`${y}px`}:{}),ref:l,class:ge(n.class,{[w]:!!w})},[C("table",{style:{tableLayout:"fixed",visibility:h||v.value?null:"hidden"}},[(!h||!b||c.value)&&C(m5,{colWidths:v.value?[...v.value,i.value]:[],columCount:g+1,columns:f.value},null),(m=r.default)===null||m===void 0?void 0:m.call(r,E(E({},e),{stickyOffsets:p.value,columns:d.value,flattenColumns:f.value}))])])}}});function aE(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r[o,Ye(e,o)])))}const Xme=[],Yme={},W0="rc-table-internal-hook",Zme=he({name:"Table",inheritAttrs:!1,props:["prefixCls","data","columns","rowKey","tableLayout","scroll","rowClassName","title","footer","id","showHeader","components","customRow","customHeaderRow","direction","expandFixed","expandColumnWidth","expandedRowKeys","defaultExpandedRowKeys","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","onUpdate:expandedRowKeys","defaultExpandAllRows","indentSize","expandIconColumnIndex","expandedRowClassName","childrenColumnName","rowExpandable","sticky","transformColumns","internalHooks","internalRefs","canExpandable","onUpdateInternalRefs","transformCellText"],emits:["expand","expandedRowsChange","updateInternalRefs","update:expandedRowKeys"],setup(e,t){let{attrs:n,slots:r,emit:o}=t;const a=z(()=>e.data||Xme),i=z(()=>!!a.value.length),l=z(()=>lme(e.components,{})),s=(ie,ve)=>r5(l.value,ie)||ve,u=z(()=>{const ie=e.rowKey;return typeof ie=="function"?ie:ve=>ve&&ve[ie]}),c=z(()=>e.expandIcon||Wme),d=z(()=>e.childrenColumnName||"children"),f=z(()=>e.expandedRowRender?"row":e.canExpandable||a.value.some(ie=>ie&&typeof ie=="object"&&ie[d.value])?"nest":!1),p=pe([]);Je(()=>{e.defaultExpandedRowKeys&&(p.value=e.defaultExpandedRowKeys),e.defaultExpandAllRows&&(p.value=Ume(a.value,u.value,d.value))})();const m=z(()=>new Set(e.expandedRowKeys||p.value||[])),h=ie=>{const ve=u.value(ie,a.value.indexOf(ie));let we;const $e=m.value.has(ve);$e?(m.value.delete(ve),we=[...m.value]):we=[...m.value,ve],p.value=we,o("expand",!$e,ie),o("update:expandedRowKeys",we),o("expandedRowsChange",we)},g=be(0),[x,y]=Pme(E(E({},Xr(e)),{expandable:z(()=>!!e.expandedRowRender),expandedKeys:m,getRowKey:u,onTriggerExpand:h,expandIcon:c}),z(()=>e.internalHooks===W0?e.transformColumns:null)),w=z(()=>({columns:x.value,flattenColumns:y.value})),b=be(),S=be(),$=be(),D=be({scrollWidth:0,clientWidth:0}),O=be(),[A,T]=It(!1),[M,B]=It(!1),[F,P]=p5(new Map),I=z(()=>fv(y.value)),N=z(()=>I.value.map(ie=>F.value.get(ie))),R=z(()=>y.value.length),_=_me(N,R,Ye(e,"direction")),L=z(()=>e.scroll&&k0(e.scroll.y)),k=z(()=>e.scroll&&k0(e.scroll.x)||Boolean(e.expandFixed)),H=z(()=>k.value&&y.value.some(ie=>{let{fixed:ve}=ie;return ve})),V=be(),U=qme(Ye(e,"sticky"),Ye(e,"prefixCls")),q=_t({}),K=z(()=>{const ie=Object.values(q)[0];return(L.value||U.value.isSticky)&&ie}),X=(ie,ve)=>{ve?q[ie]=ve:delete q[ie]},re=be({}),ee=be({}),G=be({});Je(()=>{L.value&&(ee.value={overflowY:"scroll",maxHeight:Ei(e.scroll.y)}),k.value&&(re.value={overflowX:"auto"},L.value||(ee.value={overflowY:"hidden"}),G.value={width:e.scroll.x===!0?"auto":Ei(e.scroll.x),minWidth:"100%"})});const le=(ie,ve)=>{vm(b.value)&&P(we=>{if(we.get(ie)!==ve){const $e=new Map(we);return $e.set(ie,ve),$e}return we})},[ue,me]=Ime(null);function Se(ie,ve){if(!ve)return;if(typeof ve=="function"){ve(ie);return}const we=ve.$el||ve;we.scrollLeft!==ie&&(we.scrollLeft=ie)}const Q=ie=>{let{currentTarget:ve,scrollLeft:we}=ie;var $e;const Ae=e.direction==="rtl",xe=typeof we=="number"?we:ve.scrollLeft,Ee=ve||Yme;if((!me()||me()===Ee)&&(ue(Ee),Se(xe,S.value),Se(xe,$.value),Se(xe,O.value),Se(xe,($e=V.value)===null||$e===void 0?void 0:$e.setScrollLeft)),ve){const{scrollWidth:Te,clientWidth:Me}=ve;Ae?(T(-xe0)):(T(xe>0),B(xe{k.value&&$.value?Q({currentTarget:$.value}):(T(!1),B(!1))};let de;const Y=ie=>{ie!==g.value&&(te(),g.value=b.value?b.value.offsetWidth:ie)},ae=ie=>{let{width:ve}=ie;if(clearTimeout(de),g.value===0){Y(ve);return}de=setTimeout(()=>{Y(ve)},100)};Ne([k,()=>e.data,()=>e.columns],()=>{k.value&&te()},{flush:"post"});const[ce,Ce]=It(0);pme(),Qe(()=>{ht(()=>{var ie,ve;te(),Ce(cj($.value).width),D.value={scrollWidth:((ie=$.value)===null||ie===void 0?void 0:ie.scrollWidth)||0,clientWidth:((ve=$.value)===null||ve===void 0?void 0:ve.clientWidth)||0}})}),Sr(()=>{ht(()=>{var ie,ve;const we=((ie=$.value)===null||ie===void 0?void 0:ie.scrollWidth)||0,$e=((ve=$.value)===null||ve===void 0?void 0:ve.clientWidth)||0;(D.value.scrollWidth!==we||D.value.clientWidth!==$e)&&(D.value={scrollWidth:we,clientWidth:$e})})}),Je(()=>{e.internalHooks===W0&&e.internalRefs&&e.onUpdateInternalRefs({body:$.value?$.value.$el||$.value:null})},{flush:"post"});const ye=z(()=>e.tableLayout?e.tableLayout:H.value?e.scroll.x==="max-content"?"auto":"fixed":L.value||U.value.isSticky||y.value.some(ie=>{let{ellipsis:ve}=ie;return ve})?"fixed":"auto"),J=()=>{var ie;return i.value?null:((ie=r.emptyText)===null||ie===void 0?void 0:ie.call(r))||"No Data"};ame(_t(E(E({},Xr(aE(e,"prefixCls","direction","transformCellText"))),{getComponent:s,scrollbarSize:ce,fixedInfoList:z(()=>y.value.map((ie,ve)=>gw(ve,ve,y.value,_.value,e.direction))),isSticky:z(()=>U.value.isSticky),summaryCollect:X}))),$me(_t(E(E({},Xr(aE(e,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{columns:x,flattenColumns:y,tableLayout:ye,expandIcon:c,expandableType:f,onTriggerExpand:h}))),Ame({onColumnResize:le}),wme({componentWidth:g,fixHeader:L,fixColumn:H,horizonScroll:k});const ne=()=>C(Tme,{data:a.value,measureColumnWidth:L.value||k.value||U.value.isSticky,expandedKeys:m.value,rowExpandable:e.rowExpandable,getRowKey:u.value,customRow:e.customRow,childrenColumnName:d.value},{emptyNode:J}),oe=()=>C(m5,{colWidths:y.value.map(ie=>{let{width:ve}=ie;return ve}),columns:y.value},null);return()=>{var ie;const{prefixCls:ve,scroll:we,tableLayout:$e,direction:Ae,title:xe=r.title,footer:Ee=r.footer,id:Te,showHeader:Me,customHeaderRow:Re}=e,{isSticky:Be,offsetHeader:je,offsetSummary:W,offsetScroll:fe,stickyClassName:De,container:Ie}=U.value,Ve=s(["table"],"table"),Ge=s(["body"]),Ct=(ie=r.summary)===null||ie===void 0?void 0:ie.call(r,{pageData:a.value});let Nt=()=>null;const Wt={colWidths:N.value,columCount:y.value.length,stickyOffsets:_.value,customHeaderRow:Re,fixHeader:L.value,scroll:we};if(L.value||Be){let Er=()=>null;typeof Ge=="function"?(Er=()=>Ge(a.value,{scrollbarSize:ce.value,ref:$,onScroll:Q}),Wt.colWidths=y.value.map((Gn,Go)=>{let{width:Le}=Gn;const et=Go===x.value.length-1?Le-ce.value:Le;return typeof et=="number"&&!Number.isNaN(et)?et:0})):Er=()=>C("div",{style:E(E({},re.value),ee.value),onScroll:Q,ref:$,class:ge(`${ve}-body`)},[C(Ve,{style:E(E({},G.value),{tableLayout:ye.value})},{default:()=>[oe(),ne(),!K.value&&Ct&&C(vd,{stickyOffsets:_.value,flattenColumns:y.value},{default:()=>[Ct]})]})]);const Oo=E(E(E({noData:!a.value.length,maxContentScroll:k.value&&we.x==="max-content"},Wt),w.value),{direction:Ae,stickyClassName:De,onScroll:Q});Nt=()=>C(dt,null,[Me!==!1&&C(oE,j(j({},Oo),{},{stickyTopOffset:je,class:`${ve}-header`,ref:S}),{default:Gn=>C(dt,null,[C(nE,Gn,null),K.value==="top"&&C(vd,Gn,{default:()=>[Ct]})])}),Er(),K.value&&K.value!=="top"&&C(oE,j(j({},Oo),{},{stickyBottomOffset:W,class:`${ve}-summary`,ref:O}),{default:Gn=>C(vd,Gn,{default:()=>[Ct]})}),Be&&$.value&&C(Kme,{ref:V,offsetScroll:fe,scrollBodyRef:$,onScroll:Q,container:Ie,scrollBodySizeInfo:D.value},null)])}else Nt=()=>C("div",{style:E(E({},re.value),ee.value),class:ge(`${ve}-content`),onScroll:Q,ref:$},[C(Ve,{style:E(E({},G.value),{tableLayout:ye.value})},{default:()=>[oe(),Me!==!1&&C(nE,j(j({},Wt),w.value),null),ne(),Ct&&C(vd,{stickyOffsets:_.value,flattenColumns:y.value},{default:()=>[Ct]})]})]);const fn=ci(n,{aria:!0,data:!0}),Ln=()=>C("div",j(j({},fn),{},{class:ge(ve,{[`${ve}-rtl`]:Ae==="rtl",[`${ve}-ping-left`]:A.value,[`${ve}-ping-right`]:M.value,[`${ve}-layout-fixed`]:$e==="fixed",[`${ve}-fixed-header`]:L.value,[`${ve}-fixed-column`]:H.value,[`${ve}-scroll-horizontal`]:k.value,[`${ve}-has-fix-left`]:y.value[0]&&y.value[0].fixed,[`${ve}-has-fix-right`]:y.value[R.value-1]&&y.value[R.value-1].fixed==="right",[n.class]:n.class}),style:n.style,id:Te,ref:b}),[xe&&C(V0,{class:`${ve}-title`},{default:()=>[xe(a.value)]}),C("div",{class:`${ve}-container`},[Nt()]),Ee&&C(V0,{class:`${ve}-footer`},{default:()=>[Ee(a.value)]})]);return k.value?C(Qr,{onResize:ae},{default:Ln}):Ln()}}});function Jme(){const e=E({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const o=n[r];o!==void 0&&(e[r]=o)})}return e}const U0=10;function Qme(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(o=>{const a=e[o];typeof a!="function"&&(n[o]=a)}),n}function eve(e,t,n){const r=z(()=>t.value&&typeof t.value=="object"?t.value:{}),o=z(()=>r.value.total||0),[a,i]=It(()=>({current:"defaultCurrent"in r.value?r.value.defaultCurrent:1,pageSize:"defaultPageSize"in r.value?r.value.defaultPageSize:U0})),l=z(()=>{const c=Jme(a.value,r.value,{total:o.value>0?o.value:e.value}),d=Math.ceil((o.value||e.value)/c.pageSize);return c.current>d&&(c.current=d||1),c}),s=(c,d)=>{t.value!==!1&&i({current:c??1,pageSize:d||l.value.pageSize})},u=(c,d)=>{var f,p;t.value&&((p=(f=r.value).onChange)===null||p===void 0||p.call(f,c,d)),s(c,d),n(c,d||l.value.pageSize)};return[z(()=>t.value===!1?{}:E(E({},l.value),{onChange:u})),s]}function tve(e,t,n){const r=pe({});Ne([e,t,n],()=>{const a=new Map,i=n.value,l=t.value;function s(u){u.forEach((c,d)=>{const f=i(c,d);a.set(f,c),c&&typeof c=="object"&&l in c&&s(c[l]||[])})}s(e.value),r.value={kvMap:a}},{deep:!0,immediate:!0});function o(a){return r.value.kvMap.get(a)}return[o]}const na={},K0="SELECT_ALL",q0="SELECT_INVERT",G0="SELECT_NONE",nve=[];function h5(e,t){let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[...n,...h5(e,r[e])])}),n}function rve(e,t){const n=z(()=>{const O=e.value||{},{checkStrictly:A=!0}=O;return E(E({},O),{checkStrictly:A})}),[r,o]=Zt(n.value.selectedRowKeys||n.value.defaultSelectedRowKeys||nve,{value:z(()=>n.value.selectedRowKeys)}),a=pe(new Map),i=O=>{if(n.value.preserveSelectedRowKeys){const A=new Map;O.forEach(T=>{let M=t.getRecordByKey(T);!M&&a.value.has(T)&&(M=a.value.get(T)),A.set(T,M)}),a.value=A}};Je(()=>{i(r.value)});const l=z(()=>n.value.checkStrictly?null:Cc(t.data.value,{externalGetKey:t.getRowKey.value,childrenPropName:t.childrenColumnName.value}).keyEntities),s=z(()=>h5(t.childrenColumnName.value,t.pageData.value)),u=z(()=>{const O=new Map,A=t.getRowKey.value,T=n.value.getCheckboxProps;return s.value.forEach((M,B)=>{const F=A(M,B),P=(T?T(M):null)||{};O.set(F,P)}),O}),{maxLevel:c,levelEntities:d}=Qm(l),f=O=>{var A;return!!(!((A=u.value.get(t.getRowKey.value(O)))===null||A===void 0)&&A.disabled)},p=z(()=>{if(n.value.checkStrictly)return[r.value||[],[]];const{checkedKeys:O,halfCheckedKeys:A}=Yr(r.value,!0,l.value,c.value,d.value,f);return[O||[],A]}),v=z(()=>p.value[0]),m=z(()=>p.value[1]),h=z(()=>{const O=n.value.type==="radio"?v.value.slice(0,1):v.value;return new Set(O)}),g=z(()=>n.value.type==="radio"?new Set:new Set(m.value)),[x,y]=It(null),w=O=>{let A,T;i(O);const{preserveSelectedRowKeys:M,onChange:B}=n.value,{getRecordByKey:F}=t;M?(A=O,T=O.map(P=>a.value.get(P))):(A=[],T=[],O.forEach(P=>{const I=F(P);I!==void 0&&(A.push(P),T.push(I))})),o(A),B==null||B(A,T)},b=(O,A,T,M)=>{const{onSelect:B}=n.value,{getRecordByKey:F}=t||{};if(B){const P=T.map(I=>F(I));B(F(O),A,P,M)}w(T)},S=z(()=>{const{onSelectInvert:O,onSelectNone:A,selections:T,hideSelectAll:M}=n.value,{data:B,pageData:F,getRowKey:P,locale:I}=t;return!T||M?null:(T===!0?[K0,q0,G0]:T).map(R=>R===K0?{key:"all",text:I.value.selectionAll,onSelect(){w(B.value.map((_,L)=>P.value(_,L)).filter(_=>{const L=u.value.get(_);return!(L!=null&&L.disabled)||h.value.has(_)}))}}:R===q0?{key:"invert",text:I.value.selectInvert,onSelect(){const _=new Set(h.value);F.value.forEach((k,H)=>{const V=P.value(k,H),U=u.value.get(V);U!=null&&U.disabled||(_.has(V)?_.delete(V):_.add(V))});const L=Array.from(_);O&&(qt(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),O(L)),w(L)}}:R===G0?{key:"none",text:I.value.selectNone,onSelect(){A==null||A(),w(Array.from(h.value).filter(_=>{const L=u.value.get(_);return L==null?void 0:L.disabled}))}}:R)}),$=z(()=>s.value.length);return[O=>{var A;const{onSelectAll:T,onSelectMultiple:M,columnWidth:B,type:F,fixed:P,renderCell:I,hideSelectAll:N,checkStrictly:R}=n.value,{prefixCls:_,getRecordByKey:L,getRowKey:k,expandType:H,getPopupContainer:V}=t;if(!e.value)return O.filter(Y=>Y!==na);let U=O.slice();const q=new Set(h.value),K=s.value.map(k.value).filter(Y=>!u.value.get(Y).disabled),X=K.every(Y=>q.has(Y)),re=K.some(Y=>q.has(Y)),ee=()=>{const Y=[];X?K.forEach(ce=>{q.delete(ce),Y.push(ce)}):K.forEach(ce=>{q.has(ce)||(q.add(ce),Y.push(ce))});const ae=Array.from(q);T==null||T(!X,ae.map(ce=>L(ce)),Y.map(ce=>L(ce))),w(ae)};let G;if(F!=="radio"){let Y;if(S.value){const J=C(mn,{getPopupContainer:V.value},{default:()=>[S.value.map((ne,oe)=>{const{key:ie,text:ve,onSelect:we}=ne;return C(mn.Item,{key:ie||oe,onClick:()=>{we==null||we(K)}},{default:()=>[ve]})})]});Y=C("div",{class:`${_.value}-selection-extra`},[C(Ro,{overlay:J,getPopupContainer:V.value},{default:()=>[C("span",null,[C(pc,null,null)])]})])}const ae=s.value.map((J,ne)=>{const oe=k.value(J,ne),ie=u.value.get(oe)||{};return E({checked:q.has(oe)},ie)}).filter(J=>{let{disabled:ne}=J;return ne}),ce=!!ae.length&&ae.length===$.value,Ce=ce&&ae.every(J=>{let{checked:ne}=J;return ne}),ye=ce&&ae.some(J=>{let{checked:ne}=J;return ne});G=!N&&C("div",{class:`${_.value}-selection`},[C(Zr,{checked:ce?Ce:!!$.value&&X,indeterminate:ce?!Ce&&ye:!X&&re,onChange:ee,disabled:$.value===0||ce,"aria-label":Y?"Custom selection":"Select all",skipGroup:!0},null),Y])}let le;F==="radio"?le=Y=>{let{record:ae,index:ce}=Y;const Ce=k.value(ae,ce),ye=q.has(Ce);return{node:C(ar,j(j({},u.value.get(Ce)),{},{checked:ye,onClick:J=>J.stopPropagation(),onChange:J=>{q.has(Ce)||b(Ce,!0,[Ce],J.nativeEvent)}}),null),checked:ye}}:le=Y=>{let{record:ae,index:ce}=Y;var Ce;const ye=k.value(ae,ce),J=q.has(ye),ne=g.value.has(ye),oe=u.value.get(ye);let ie;return H.value==="nest"?(ie=ne,qt(typeof(oe==null?void 0:oe.indeterminate)!="boolean","Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):ie=(Ce=oe==null?void 0:oe.indeterminate)!==null&&Ce!==void 0?Ce:ne,{node:C(Zr,j(j({},oe),{},{indeterminate:ie,checked:J,skipGroup:!0,onClick:ve=>ve.stopPropagation(),onChange:ve=>{let{nativeEvent:we}=ve;const{shiftKey:$e}=we;let Ae=-1,xe=-1;if($e&&R){const Ee=new Set([x.value,ye]);K.some((Te,Me)=>{if(Ee.has(Te))if(Ae===-1)Ae=Me;else return xe=Me,!0;return!1})}if(xe!==-1&&Ae!==xe&&R){const Ee=K.slice(Ae,xe+1),Te=[];J?Ee.forEach(Re=>{q.has(Re)&&(Te.push(Re),q.delete(Re))}):Ee.forEach(Re=>{q.has(Re)||(Te.push(Re),q.add(Re))});const Me=Array.from(q);M==null||M(!J,Me.map(Re=>L(Re)),Te.map(Re=>L(Re))),w(Me)}else{const Ee=v.value;if(R){const Te=J?No(Ee,ye):ta(Ee,ye);b(ye,!J,Te,we)}else{const Te=Yr([...Ee,ye],!0,l.value,c.value,d.value,f),{checkedKeys:Me,halfCheckedKeys:Re}=Te;let Be=Me;if(J){const je=new Set(Me);je.delete(ye),Be=Yr(Array.from(je),{checked:!1,halfCheckedKeys:Re},l.value,c.value,d.value,f).checkedKeys}b(ye,!J,Be,we)}}y(ye)}}),null),checked:J}};const ue=Y=>{let{record:ae,index:ce}=Y;const{node:Ce,checked:ye}=le({record:ae,index:ce});return I?I(ye,ae,ce,Ce):Ce};if(!U.includes(na))if(U.findIndex(Y=>{var ae;return((ae=Y[Ql])===null||ae===void 0?void 0:ae.columnType)==="EXPAND_COLUMN"})===0){const[Y,...ae]=U;U=[Y,na,...ae]}else U=[na,...U];const me=U.indexOf(na);U=U.filter((Y,ae)=>Y!==na||ae===me);const Se=U[me-1],Q=U[me+1];let te=P;te===void 0&&((Q==null?void 0:Q.fixed)!==void 0?te=Q.fixed:(Se==null?void 0:Se.fixed)!==void 0&&(te=Se.fixed)),te&&Se&&((A=Se[Ql])===null||A===void 0?void 0:A.columnType)==="EXPAND_COLUMN"&&Se.fixed===void 0&&(Se.fixed=te);const de={fixed:te,width:B,className:`${_.value}-selection-column`,title:n.value.columnTitle||G,customRender:ue,[Ql]:{class:`${_.value}-selection-col`}};return U.map(Y=>Y===na?de:Y)},h]}var ove=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o0&&arguments[0]!==void 0?arguments[0]:[];const t=Lt(e),n=[];return t.forEach(r=>{var o,a,i,l;if(!r)return;const s=r.key,u=((o=r.props)===null||o===void 0?void 0:o.style)||{},c=((a=r.props)===null||a===void 0?void 0:a.class)||"",d=r.props||{};for(const[h,g]of Object.entries(d))d[Yi(h)]=g;const f=r.children||{},{default:p}=f,v=ove(f,["default"]),m=E(E(E({},v),d),{style:u,class:c});if(s&&(m.key=s),!((i=r.type)===null||i===void 0)&&i.__ANT_TABLE_COLUMN_GROUP)m.children=g5(typeof p=="function"?p():p);else{const h=(l=r.children)===null||l===void 0?void 0:l.default;m.customRender=m.customRender||h}n.push(m)}),n}const bf="ascend",Yh="descend";function Tp(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function iE(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function ave(e,t){return t?e[e.indexOf(t)+1]:e[0]}function X0(e,t,n){let r=[];function o(a,i){r.push({column:a,key:qi(a,i),multiplePriority:Tp(a),sortOrder:a.sortOrder})}return(e||[]).forEach((a,i)=>{const l=Ac(i,n);a.children?("sortOrder"in a&&o(a,l),r=[...r,...X0(a.children,t,l)]):a.sorter&&("sortOrder"in a?o(a,l):t&&a.defaultSortOrder&&r.push({column:a,key:qi(a,l),multiplePriority:Tp(a),sortOrder:a.defaultSortOrder}))}),r}function y5(e,t,n,r,o,a,i,l){return(t||[]).map((s,u)=>{const c=Ac(u,l);let d=s;if(d.sorter){const f=d.sortDirections||o,p=d.showSorterTooltip===void 0?i:d.showSorterTooltip,v=qi(d,c),m=n.find(O=>{let{key:A}=O;return A===v}),h=m?m.sortOrder:null,g=ave(f,h),x=f.includes(bf)&&C(zoe,{class:ge(`${e}-column-sorter-up`,{active:h===bf}),role:"presentation"},null),y=f.includes(Yh)&&C(_oe,{role:"presentation",class:ge(`${e}-column-sorter-down`,{active:h===Yh})},null),{cancelSort:w,triggerAsc:b,triggerDesc:S}=a||{};let $=w;g===Yh?$=S:g===bf&&($=b);const D=typeof p=="object"?p:{title:$};d=E(E({},d),{className:ge(d.className,{[`${e}-column-sort`]:h}),title:O=>{const A=C("div",{class:`${e}-column-sorters`},[C("span",{class:`${e}-column-title`},[yw(s.title,O)]),C("span",{class:ge(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(x&&y)})},[C("span",{class:`${e}-column-sorter-inner`},[x,y])])]);return p?C(Br,D,{default:()=>[A]}):A},customHeaderCell:O=>{const A=s.customHeaderCell&&s.customHeaderCell(O)||{},T=A.onClick,M=A.onKeydown;return A.onClick=B=>{r({column:s,key:v,sortOrder:g,multiplePriority:Tp(s)}),T&&T(B)},A.onKeydown=B=>{B.keyCode===_e.ENTER&&(r({column:s,key:v,sortOrder:g,multiplePriority:Tp(s)}),M==null||M(B))},h&&(A["aria-sort"]=h==="ascend"?"ascending":"descending"),A.class=ge(A.class,`${e}-column-has-sorters`),A.tabindex=0,A}})}return"children"in d&&(d=E(E({},d),{children:y5(e,d.children,n,r,o,a,i,c)})),d})}function lE(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function sE(e){const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(lE);return t.length===0&&e.length?E(E({},lE(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function Y0(e,t,n){const r=t.slice().sort((i,l)=>l.multiplePriority-i.multiplePriority),o=e.slice(),a=r.filter(i=>{let{column:{sorter:l},sortOrder:s}=i;return iE(l)&&s});return a.length?o.sort((i,l)=>{for(let s=0;s{const l=i[n];return l?E(E({},i),{[n]:Y0(l,t,n)}):i}):o}function ive(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:o,tableLocale:a,showSorterTooltip:i}=e;const[l,s]=It(X0(n.value,!0)),u=z(()=>{let v=!0;const m=X0(n.value,!1);if(!m.length)return l.value;const h=[];function g(y){v?h.push(y):h.push(E(E({},y),{sortOrder:null}))}let x=null;return m.forEach(y=>{x===null?(g(y),y.sortOrder&&(y.multiplePriority===!1?v=!1:x=!0)):(x&&y.multiplePriority!==!1||(v=!1),g(y))}),h}),c=z(()=>{const v=u.value.map(m=>{let{column:h,sortOrder:g}=m;return{column:h,order:g}});return{sortColumns:v,sortColumn:v[0]&&v[0].column,sortOrder:v[0]&&v[0].order}});function d(v){let m;v.multiplePriority===!1||!u.value.length||u.value[0].multiplePriority===!1?m=[v]:m=[...u.value.filter(h=>{let{key:g}=h;return g!==v.key}),v],s(m),r(sE(m),m)}const f=v=>y5(t.value,v,u.value,d,o.value,a.value,i.value),p=z(()=>sE(u.value));return[f,u,c,p]}const lve=e=>{const{keyCode:t}=e;t===_e.ENTER&&e.stopPropagation()},sve=(e,t)=>{let{slots:n}=t;var r;return C("div",{onClick:o=>o.stopPropagation(),onKeydown:lve},[(r=n.default)===null||r===void 0?void 0:r.call(n)])},uve=sve,uE=he({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:Ue(),onChange:Oe(),filterSearch:Xe([Boolean,Function]),tablePrefixCls:Ue(),locale:We()},setup(e){return()=>{const{value:t,onChange:n,filterSearch:r,tablePrefixCls:o,locale:a}=e;return r?C("div",{class:`${o}-filter-dropdown-search`},[C($n,{placeholder:a.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,class:`${o}-filter-dropdown-search-input`},{prefix:()=>C(Tm,null,null)})]):null}}});var cE=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe.motion?e.motion:gc()),s=(u,c)=>{var d,f,p,v;c==="appear"?(f=(d=l.value)===null||d===void 0?void 0:d.onAfterEnter)===null||f===void 0||f.call(d,u):c==="leave"&&((v=(p=l.value)===null||p===void 0?void 0:p.onAfterLeave)===null||v===void 0||v.call(p,u)),i.value||e.onMotionEnd(),i.value=!0};return Ne(()=>e.motionNodes,()=>{e.motionNodes&&e.motionType==="hide"&&o.value&&ht(()=>{o.value=!1})},{immediate:!0,flush:"post"}),Qe(()=>{e.motionNodes&&e.onMotionStart()}),st(()=>{e.motionNodes&&s()}),()=>{const{motion:u,motionNodes:c,motionType:d,active:f,eventKey:p}=e,v=cE(e,["motion","motionNodes","motionType","active","eventKey"]);return c?C(_n,j(j({},l.value),{},{appear:d==="show",onAfterAppear:m=>s(m,"appear"),onAfterLeave:m=>s(m,"leave")}),{default:()=>[vn(C("div",{class:`${a.value.prefixCls}-treenode-motion`},[c.map(m=>{const h=cE(m.data,[]),{title:g,key:x,isStart:y,isEnd:w}=m;return delete h.children,C(b0,j(j({},h),{},{title:g,active:f,data:m.data,key:x,eventKey:x,isStart:y,isEnd:w}),r)})]),[[ur,o.value]])]}):C(b0,j(j({class:n.class,style:n.style},v),{},{active:f,eventKey:p}),r)}}});function dve(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(a,i){const l=new Map;a.forEach(u=>{l.set(u,!0)});const s=i.filter(u=>!l.has(u));return s.length===1?s[0]:null}return ni.key===n),o=e[r+1],a=t.findIndex(i=>i.key===n);if(o){const i=t.findIndex(l=>l.key===o.key);return t.slice(a+1,i)}return t.slice(a+1)}var fE=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{},Gi=`RC_TREE_MOTION_${Math.random()}`,Z0={key:Gi},b5={key:Gi,level:0,index:0,pos:"0",node:Z0,nodes:[Z0]},mE={parent:null,children:[],pos:b5.pos,data:Z0,title:null,key:Gi,isStart:[],isEnd:[]};function vE(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function hE(e){const{key:t,pos:n}=e;return Sc(t,n)}function pve(e){let t=String(e.key),n=e;for(;n.parent;)n=n.parent,t=`${n.key} > ${t}`;return t}const mve=he({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:Nte,setup(e,t){let{expose:n,attrs:r}=t;const o=be(),a=be(),{expandedKeys:i,flattenNodes:l}=kI();n({scrollTo:m=>{o.value.scrollTo(m)},getIndentWidth:()=>a.value.offsetWidth});const s=pe(l.value),u=pe([]),c=be(null);function d(){s.value=l.value,u.value=[],c.value=null,e.onListChangeEnd()}const f=ix();Ne([()=>i.value.slice(),l],(m,h)=>{let[g,x]=m,[y,w]=h;const b=dve(y,g);if(b.key!==null){const{virtual:S,height:$,itemHeight:D}=e;if(b.add){const O=w.findIndex(M=>{let{key:B}=M;return B===b.key}),A=vE(dE(w,x,b.key),S,$,D),T=w.slice();T.splice(O+1,0,mE),s.value=T,u.value=A,c.value="show"}else{const O=x.findIndex(M=>{let{key:B}=M;return B===b.key}),A=vE(dE(x,w,b.key),S,$,D),T=x.slice();T.splice(O+1,0,mE),s.value=T,u.value=A,c.value="hide"}}else w!==x&&(s.value=x)}),Ne(()=>f.value.dragging,m=>{m||d()});const p=z(()=>e.motion===void 0?s.value:l.value),v=()=>{e.onActiveChange(null)};return()=>{const m=E(E({},e),r),{prefixCls:h,selectable:g,checkable:x,disabled:y,motion:w,height:b,itemHeight:S,virtual:$,focusable:D,activeItem:O,focused:A,tabindex:T,onKeydown:M,onFocus:B,onBlur:F,onListChangeStart:P,onListChangeEnd:I}=m,N=fE(m,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]);return C(dt,null,[A&&O&&C("span",{style:pE,"aria-live":"assertive"},[pve(O)]),C("div",null,[C("input",{style:pE,disabled:D===!1||y,tabindex:D!==!1?T:null,onKeydown:M,onFocus:B,onBlur:F,value:"",onChange:fve,"aria-label":"for screen reader"},null)]),C("div",{class:`${h}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[C("div",{class:`${h}-indent`},[C("div",{ref:a,class:`${h}-indent-unit`},null)])]),C(CN,j(j({},pt(N,["onActiveChange"])),{},{data:p.value,itemKey:hE,height:b,fullHeight:!1,virtual:$,itemHeight:S,prefixCls:`${h}-list`,ref:o,onVisibleChange:(R,_)=>{const L=new Set(R);_.filter(H=>!L.has(H)).some(H=>hE(H)===Gi)&&d()}}),{default:R=>{const{pos:_}=R,L=fE(R.data,[]),{title:k,key:H,isStart:V,isEnd:U}=R,q=Sc(H,_);return delete L.key,delete L.children,C(cve,j(j({},L),{},{eventKey:q,title:k,active:!!O&&H===O.key,data:R.data,isStart:V,isEnd:U,motion:w,motionNodes:H===Gi?u.value:null,motionType:c.value,onMotionStart:P,onMotionEnd:d,onMousemove:v}),null)}})])}}});function vve(e){let{dropPosition:t,dropLevelOffset:n,indent:r}=e;const o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:`${2}px`};switch(t){case-1:o.top=0,o.left=`${-n*r}px`;break;case 1:o.bottom=0,o.left=`${-n*r}px`;break;case 0:o.bottom=0,o.left=`${r}`;break}return C("div",{style:o},null)}const hve=10,x5=he({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,props:at(jI(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,expandAction:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:vve,allowDrop:()=>!0}),setup(e,t){let{attrs:n,slots:r,expose:o}=t;const a=pe(!1);let i={};const l=pe(),s=pe([]),u=pe([]),c=pe([]),d=pe([]),f=pe([]),p=pe([]),v={},m=_t({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),h=pe([]);Ne([()=>e.treeData,()=>e.children],()=>{h.value=e.treeData!==void 0?un(e.treeData).slice():w0(un(e.children))},{immediate:!0,deep:!0});const g=pe({}),x=pe(!1),y=pe(null),w=pe(!1),b=z(()=>Xm(e.fieldNames)),S=pe();let $=null,D=null,O=null;const A=z(()=>({expandedKeysSet:T.value,selectedKeysSet:M.value,loadedKeysSet:B.value,loadingKeysSet:F.value,checkedKeysSet:P.value,halfCheckedKeysSet:I.value,dragOverNodeKey:m.dragOverNodeKey,dropPosition:m.dropPosition,keyEntities:g.value})),T=z(()=>new Set(p.value)),M=z(()=>new Set(s.value)),B=z(()=>new Set(d.value)),F=z(()=>new Set(f.value)),P=z(()=>new Set(u.value)),I=z(()=>new Set(c.value));Je(()=>{if(h.value){const xe=Cc(h.value,{fieldNames:b.value});g.value=E({[Gi]:b5},xe.keyEntities)}});let N=!1;Ne([()=>e.expandedKeys,()=>e.autoExpandParent,g],(xe,Ee)=>{let[Te,Me]=xe,[Re,Be]=Ee,je=p.value;if(e.expandedKeys!==void 0||N&&Me!==Be)je=e.autoExpandParent||!N&&e.defaultExpandParent?x0(e.expandedKeys,g.value):e.expandedKeys;else if(!N&&e.defaultExpandAll){const W=E({},g.value);delete W[Gi],je=Object.keys(W).map(fe=>W[fe].key)}else!N&&e.defaultExpandedKeys&&(je=e.autoExpandParent||e.defaultExpandParent?x0(e.defaultExpandedKeys,g.value):e.defaultExpandedKeys);je&&(p.value=je),N=!0},{immediate:!0});const R=pe([]);Je(()=>{R.value=Lte(h.value,p.value,b.value)}),Je(()=>{e.selectable&&(e.selectedKeys!==void 0?s.value=c2(e.selectedKeys,e):!N&&e.defaultSelectedKeys&&(s.value=c2(e.defaultSelectedKeys,e)))});const{maxLevel:_,levelEntities:L}=Qm(g);Je(()=>{if(e.checkable){let xe;if(e.checkedKeys!==void 0?xe=_h(e.checkedKeys)||{}:!N&&e.defaultCheckedKeys?xe=_h(e.defaultCheckedKeys)||{}:h.value&&(xe=_h(e.checkedKeys)||{checkedKeys:u.value,halfCheckedKeys:c.value}),xe){let{checkedKeys:Ee=[],halfCheckedKeys:Te=[]}=xe;e.checkStrictly||({checkedKeys:Ee,halfCheckedKeys:Te}=Yr(Ee,!0,g.value,_.value,L.value)),u.value=Ee,c.value=Te}}}),Je(()=>{e.loadedKeys&&(d.value=e.loadedKeys)});const k=()=>{E(m,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},H=xe=>{S.value.scrollTo(xe)};Ne(()=>e.activeKey,()=>{e.activeKey!==void 0&&(y.value=e.activeKey)},{immediate:!0}),Ne(y,xe=>{ht(()=>{xe!==null&&H({key:xe})})},{immediate:!0,flush:"post"});const V=xe=>{e.expandedKeys===void 0&&(p.value=xe)},U=()=>{m.draggingNodeKey!==null&&E(m,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),$=null,O=null},q=(xe,Ee)=>{const{onDragend:Te}=e;m.dragOverNodeKey=null,U(),Te==null||Te({event:xe,node:Ee.eventData}),D=null},K=xe=>{q(xe,null),window.removeEventListener("dragend",K)},X=(xe,Ee)=>{const{onDragstart:Te}=e,{eventKey:Me,eventData:Re}=Ee;D=Ee,$={x:xe.clientX,y:xe.clientY};const Be=No(p.value,Me);m.draggingNodeKey=Me,m.dragChildrenKeys=Bte(Me,g.value),l.value=S.value.getIndentWidth(),V(Be),window.addEventListener("dragend",K),Te&&Te({event:xe,node:Re})},re=(xe,Ee)=>{const{onDragenter:Te,onExpand:Me,allowDrop:Re,direction:Be}=e,{pos:je,eventKey:W}=Ee;if(O!==W&&(O=W),!D){k();return}const{dropPosition:fe,dropLevelOffset:De,dropTargetKey:Ie,dropContainerKey:Ve,dropTargetPos:Ge,dropAllowed:Ct,dragOverNodeKey:Nt}=u2(xe,D,Ee,l.value,$,Re,R.value,g.value,T.value,Be);if(m.dragChildrenKeys.indexOf(Ie)!==-1||!Ct){k();return}if(i||(i={}),Object.keys(i).forEach(Wt=>{clearTimeout(i[Wt])}),D.eventKey!==Ee.eventKey&&(i[je]=window.setTimeout(()=>{if(m.draggingNodeKey===null)return;let Wt=p.value.slice();const fn=g.value[Ee.eventKey];fn&&(fn.children||[]).length&&(Wt=ta(p.value,Ee.eventKey)),V(Wt),Me&&Me(Wt,{node:Ee.eventData,expanded:!0,nativeEvent:xe})},800)),D.eventKey===Ie&&De===0){k();return}E(m,{dragOverNodeKey:Nt,dropPosition:fe,dropLevelOffset:De,dropTargetKey:Ie,dropContainerKey:Ve,dropTargetPos:Ge,dropAllowed:Ct}),Te&&Te({event:xe,node:Ee.eventData,expandedKeys:p.value})},ee=(xe,Ee)=>{const{onDragover:Te,allowDrop:Me,direction:Re}=e;if(!D)return;const{dropPosition:Be,dropLevelOffset:je,dropTargetKey:W,dropContainerKey:fe,dropAllowed:De,dropTargetPos:Ie,dragOverNodeKey:Ve}=u2(xe,D,Ee,l.value,$,Me,R.value,g.value,T.value,Re);m.dragChildrenKeys.indexOf(W)!==-1||!De||(D.eventKey===W&&je===0?m.dropPosition===null&&m.dropLevelOffset===null&&m.dropTargetKey===null&&m.dropContainerKey===null&&m.dropTargetPos===null&&m.dropAllowed===!1&&m.dragOverNodeKey===null||k():Be===m.dropPosition&&je===m.dropLevelOffset&&W===m.dropTargetKey&&fe===m.dropContainerKey&&Ie===m.dropTargetPos&&De===m.dropAllowed&&Ve===m.dragOverNodeKey||E(m,{dropPosition:Be,dropLevelOffset:je,dropTargetKey:W,dropContainerKey:fe,dropTargetPos:Ie,dropAllowed:De,dragOverNodeKey:Ve}),Te&&Te({event:xe,node:Ee.eventData}))},G=(xe,Ee)=>{O===Ee.eventKey&&!xe.currentTarget.contains(xe.relatedTarget)&&(k(),O=null);const{onDragleave:Te}=e;Te&&Te({event:xe,node:Ee.eventData})},le=function(xe,Ee){let Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Me;const{dragChildrenKeys:Re,dropPosition:Be,dropTargetKey:je,dropTargetPos:W,dropAllowed:fe}=m;if(!fe)return;const{onDrop:De}=e;if(m.dragOverNodeKey=null,U(),je===null)return;const Ie=E(E({},tf(je,un(A.value))),{active:((Me=ve.value)===null||Me===void 0?void 0:Me.key)===je,data:g.value[je].node});Re.indexOf(je);const Ve=lx(W),Ge={event:xe,node:nf(Ie),dragNode:D?D.eventData:null,dragNodesKeys:[D.eventKey].concat(Re),dropToGap:Be!==0,dropPosition:Be+Number(Ve[Ve.length-1])};Te||De==null||De(Ge),D=null},ue=(xe,Ee)=>{const{expanded:Te,key:Me}=Ee,Re=R.value.filter(je=>je.key===Me)[0],Be=nf(E(E({},tf(Me,A.value)),{data:Re.data}));V(Te?No(p.value,Me):ta(p.value,Me)),J(xe,Be)},me=(xe,Ee)=>{const{onClick:Te,expandAction:Me}=e;Me==="click"&&ue(xe,Ee),Te&&Te(xe,Ee)},Se=(xe,Ee)=>{const{onDblclick:Te,expandAction:Me}=e;(Me==="doubleclick"||Me==="dblclick")&&ue(xe,Ee),Te&&Te(xe,Ee)},Q=(xe,Ee)=>{let Te=s.value;const{onSelect:Me,multiple:Re}=e,{selected:Be}=Ee,je=Ee[b.value.key],W=!Be;W?Re?Te=ta(Te,je):Te=[je]:Te=No(Te,je);const fe=g.value,De=Te.map(Ie=>{const Ve=fe[Ie];return Ve?Ve.node:null}).filter(Ie=>Ie);e.selectedKeys===void 0&&(s.value=Te),Me&&Me(Te,{event:"select",selected:W,node:Ee,selectedNodes:De,nativeEvent:xe})},te=(xe,Ee,Te)=>{const{checkStrictly:Me,onCheck:Re}=e,Be=Ee[b.value.key];let je;const W={event:"check",node:Ee,checked:Te,nativeEvent:xe},fe=g.value;if(Me){const De=Te?ta(u.value,Be):No(u.value,Be),Ie=No(c.value,Be);je={checked:De,halfChecked:Ie},W.checkedNodes=De.map(Ve=>fe[Ve]).filter(Ve=>Ve).map(Ve=>Ve.node),e.checkedKeys===void 0&&(u.value=De)}else{let{checkedKeys:De,halfCheckedKeys:Ie}=Yr([...u.value,Be],!0,fe,_.value,L.value);if(!Te){const Ve=new Set(De);Ve.delete(Be),{checkedKeys:De,halfCheckedKeys:Ie}=Yr(Array.from(Ve),{checked:!1,halfCheckedKeys:Ie},fe,_.value,L.value)}je=De,W.checkedNodes=[],W.checkedNodesPositions=[],W.halfCheckedKeys=Ie,De.forEach(Ve=>{const Ge=fe[Ve];if(!Ge)return;const{node:Ct,pos:Nt}=Ge;W.checkedNodes.push(Ct),W.checkedNodesPositions.push({node:Ct,pos:Nt})}),e.checkedKeys===void 0&&(u.value=De,c.value=Ie)}Re&&Re(je,W)},de=xe=>{const Ee=xe[b.value.key],Te=new Promise((Me,Re)=>{const{loadData:Be,onLoad:je}=e;if(!Be||B.value.has(Ee)||F.value.has(Ee))return null;Be(xe).then(()=>{const fe=ta(d.value,Ee),De=No(f.value,Ee);je&&je(fe,{event:"load",node:xe}),e.loadedKeys===void 0&&(d.value=fe),f.value=De,Me()}).catch(fe=>{const De=No(f.value,Ee);if(f.value=De,v[Ee]=(v[Ee]||0)+1,v[Ee]>=hve){const Ie=ta(d.value,Ee);e.loadedKeys===void 0&&(d.value=Ie),Me()}Re(fe)}),f.value=ta(f.value,Ee)});return Te.catch(()=>{}),Te},Y=(xe,Ee)=>{const{onMouseenter:Te}=e;Te&&Te({event:xe,node:Ee})},ae=(xe,Ee)=>{const{onMouseleave:Te}=e;Te&&Te({event:xe,node:Ee})},ce=(xe,Ee)=>{const{onRightClick:Te}=e;Te&&(xe.preventDefault(),Te({event:xe,node:Ee}))},Ce=xe=>{const{onFocus:Ee}=e;x.value=!0,Ee&&Ee(xe)},ye=xe=>{const{onBlur:Ee}=e;x.value=!1,ie(null),Ee&&Ee(xe)},J=(xe,Ee)=>{let Te=p.value;const{onExpand:Me,loadData:Re}=e,{expanded:Be}=Ee,je=Ee[b.value.key];if(w.value)return;Te.indexOf(je);const W=!Be;if(W?Te=ta(Te,je):Te=No(Te,je),V(Te),Me&&Me(Te,{node:Ee,expanded:W,nativeEvent:xe}),W&&Re){const fe=de(Ee);fe&&fe.then(()=>{}).catch(De=>{const Ie=No(p.value,je);V(Ie),Promise.reject(De)})}},ne=()=>{w.value=!0},oe=()=>{setTimeout(()=>{w.value=!1})},ie=xe=>{const{onActiveChange:Ee}=e;y.value!==xe&&(e.activeKey!==void 0&&(y.value=xe),xe!==null&&H({key:xe}),Ee&&Ee(xe))},ve=z(()=>y.value===null?null:R.value.find(xe=>{let{key:Ee}=xe;return Ee===y.value})||null),we=xe=>{let Ee=R.value.findIndex(Me=>{let{key:Re}=Me;return Re===y.value});Ee===-1&&xe<0&&(Ee=R.value.length),Ee=(Ee+xe+R.value.length)%R.value.length;const Te=R.value[Ee];if(Te){const{key:Me}=Te;ie(Me)}else ie(null)},$e=z(()=>nf(E(E({},tf(y.value,A.value)),{data:ve.value.data,active:!0}))),Ae=xe=>{const{onKeydown:Ee,checkable:Te,selectable:Me}=e;switch(xe.which){case _e.UP:{we(-1),xe.preventDefault();break}case _e.DOWN:{we(1),xe.preventDefault();break}}const Re=ve.value;if(Re&&Re.data){const Be=Re.data.isLeaf===!1||!!(Re.data.children||[]).length,je=$e.value;switch(xe.which){case _e.LEFT:{Be&&T.value.has(y.value)?J({},je):Re.parent&&ie(Re.parent.key),xe.preventDefault();break}case _e.RIGHT:{Be&&!T.value.has(y.value)?J({},je):Re.children&&Re.children.length&&ie(Re.children[0].key),xe.preventDefault();break}case _e.ENTER:case _e.SPACE:{Te&&!je.disabled&&je.checkable!==!1&&!je.disableCheckbox?te({},je,!P.value.has(y.value)):!Te&&Me&&!je.disabled&&je.selectable!==!1&&Q({},je);break}}}Ee&&Ee(xe)};return o({onNodeExpand:J,scrollTo:H,onKeydown:Ae,selectedKeys:z(()=>s.value),checkedKeys:z(()=>u.value),halfCheckedKeys:z(()=>c.value),loadedKeys:z(()=>d.value),loadingKeys:z(()=>f.value),expandedKeys:z(()=>p.value)}),Cr(()=>{window.removeEventListener("dragend",K),a.value=!0}),Ote({expandedKeys:p,selectedKeys:s,loadedKeys:d,loadingKeys:f,checkedKeys:u,halfCheckedKeys:c,expandedKeysSet:T,selectedKeysSet:M,loadedKeysSet:B,loadingKeysSet:F,checkedKeysSet:P,halfCheckedKeysSet:I,flattenNodes:R}),()=>{const{draggingNodeKey:xe,dropLevelOffset:Ee,dropContainerKey:Te,dropTargetKey:Me,dropPosition:Re,dragOverNodeKey:Be}=m,{prefixCls:je,showLine:W,focusable:fe,tabindex:De=0,selectable:Ie,showIcon:Ve,icon:Ge=r.icon,switcherIcon:Ct,draggable:Nt,checkable:Wt,checkStrictly:fn,disabled:Ln,motion:Er,loadData:Oo,filterTreeNode:Gn,height:Go,itemHeight:Le,virtual:et,dropIndicatorRender:Ze,onContextmenu:Bt,onScroll:pn,direction:ln,rootClassName:rr,rootStyle:On}=e,{class:ao,style:mr}=n,Dr=ci(E(E({},e),n),{aria:!0,data:!0});let Gt;return Nt?typeof Nt=="object"?Gt=Nt:typeof Nt=="function"?Gt={nodeDraggable:Nt}:Gt={}:Gt=!1,C(Ate,{value:{prefixCls:je,selectable:Ie,showIcon:Ve,icon:Ge,switcherIcon:Ct,draggable:Gt,draggingNodeKey:xe,checkable:Wt,customCheckable:r.checkable,checkStrictly:fn,disabled:Ln,keyEntities:g.value,dropLevelOffset:Ee,dropContainerKey:Te,dropTargetKey:Me,dropPosition:Re,dragOverNodeKey:Be,dragging:xe!==null,indent:l.value,direction:ln,dropIndicatorRender:Ze,loadData:Oo,filterTreeNode:Gn,onNodeClick:me,onNodeDoubleClick:Se,onNodeExpand:J,onNodeSelect:Q,onNodeCheck:te,onNodeLoad:de,onNodeMouseEnter:Y,onNodeMouseLeave:ae,onNodeContextMenu:ce,onNodeDragStart:X,onNodeDragEnter:re,onNodeDragOver:ee,onNodeDragLeave:G,onNodeDragEnd:q,onNodeDrop:le,slots:r}},{default:()=>[C("div",{role:"tree",class:ge(je,ao,rr,{[`${je}-show-line`]:W,[`${je}-focused`]:x.value,[`${je}-active-focused`]:y.value!==null}),style:On},[C(mve,j({ref:S,prefixCls:je,style:mr,disabled:Ln,selectable:Ie,checkable:!!Wt,motion:Er,height:Go,itemHeight:Le,virtual:et,focusable:fe,focused:x.value,tabindex:De,activeItem:ve.value,onFocus:Ce,onBlur:ye,onKeydown:Ae,onActiveChange:ie,onListChangeStart:ne,onListChangeEnd:oe,onContextmenu:Bt,onScroll:pn},Dr),null)])]})}}});function w5(e,t,n,r,o){const{isLeaf:a,expanded:i,loading:l}=n;let s=t;if(l)return C(Lr,{class:`${e}-switcher-loading-icon`},null);let u;o&&typeof o=="object"&&(u=o.showLeafIcon);let c=null;const d=`${e}-switcher-icon`;return a?o?u&&r?r(n):(typeof o=="object"&&!u?c=C("span",{class:`${e}-switcher-leaf-line`},null):c=C(h8,{class:`${e}-switcher-line-icon`},null),c):null:(c=C(Moe,{class:d},null),o&&(c=i?C(Uae,{class:`${e}-switcher-line-icon`},null):C(rie,{class:`${e}-switcher-line-icon`},null)),typeof t=="function"?s=t(E(E({},n),{defaultIcon:c,switcherCls:d})):hn(s)&&(s=ha(s,{class:d})),s||c)}const gE=4;function gve(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:a="ltr"}=e,i=a==="ltr"?"left":"right",l=a==="ltr"?"right":"left",s={[i]:`${-n*o+gE}px`,[l]:0};switch(t){case-1:s.top=`${-3}px`;break;case 1:s.bottom=`${-3}px`;break;default:s.bottom=`${-3}px`,s[i]=`${o+gE}px`;break}return C("div",{style:s,class:`${r}-drop-indicator`},null)}const yve=new ft("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),bve=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),xve=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),wve=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,treeTitleHeight:a}=t,i=(a-t.fontSizeLG)/2,l=t.paddingXS;return{[n]:E(E({},rt(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:E({},ya(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:yve,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${o}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:E({},ya(t)),[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{width:a,lineHeight:`${a}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:E(E({},bve(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${a}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:a/2,bottom:-o,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:a/2*.8,height:a/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:l,marginBlockStart:i},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${a}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${a}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:E({lineHeight:`${a}px`,userSelect:"none"},xve(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:a/2,bottom:-o,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${a/2}px !important`}}}}})}},Sve=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{[` &:hover::before, &::before `]:{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},S5=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.paddingXS/2,a=t.controlHeightSM,i=qe(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o,treeTitleHeight:a});return[wve(e,i),Sve(i)]},Cve=nt("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:rv(`${n}-checkbox`,e)},S5(n,e),hc(e)]}),C5=()=>{const e=jI();return E(E({},e),{showLine:Xe([Boolean,Object]),multiple:Pe(),autoExpandParent:Pe(),checkStrictly:Pe(),checkable:Pe(),disabled:Pe(),defaultExpandAll:Pe(),defaultExpandParent:Pe(),defaultExpandedKeys:bt(),expandedKeys:bt(),checkedKeys:Xe([Array,Object]),defaultCheckedKeys:bt(),selectedKeys:bt(),defaultSelectedKeys:bt(),selectable:Pe(),loadedKeys:bt(),draggable:Pe(),showIcon:Pe(),icon:Oe(),switcherIcon:Z.any,prefixCls:String,replaceFields:We(),blockNode:Pe(),openAnimation:Z.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":Oe(),"onUpdate:checkedKeys":Oe(),"onUpdate:expandedKeys":Oe()})},xf=he({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:at(C5(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup(e,t){let{attrs:n,expose:r,emit:o,slots:a}=t;e.treeData===void 0&&a.default;const{prefixCls:i,direction:l,virtual:s}=He("tree",e),[u,c]=Cve(i),d=be();r({treeRef:d,onNodeExpand:function(){var h;(h=d.value)===null||h===void 0||h.onNodeExpand(...arguments)},scrollTo:h=>{var g;(g=d.value)===null||g===void 0||g.scrollTo(h)},selectedKeys:z(()=>{var h;return(h=d.value)===null||h===void 0?void 0:h.selectedKeys}),checkedKeys:z(()=>{var h;return(h=d.value)===null||h===void 0?void 0:h.checkedKeys}),halfCheckedKeys:z(()=>{var h;return(h=d.value)===null||h===void 0?void 0:h.halfCheckedKeys}),loadedKeys:z(()=>{var h;return(h=d.value)===null||h===void 0?void 0:h.loadedKeys}),loadingKeys:z(()=>{var h;return(h=d.value)===null||h===void 0?void 0:h.loadingKeys}),expandedKeys:z(()=>{var h;return(h=d.value)===null||h===void 0?void 0:h.expandedKeys})}),Je(()=>{qt(e.replaceFields===void 0,"Tree","`replaceFields` is deprecated, please use fieldNames instead")});const p=(h,g)=>{o("update:checkedKeys",h),o("check",h,g)},v=(h,g)=>{o("update:expandedKeys",h),o("expand",h,g)},m=(h,g)=>{o("update:selectedKeys",h),o("select",h,g)};return()=>{const{showIcon:h,showLine:g,switcherIcon:x=a.switcherIcon,icon:y=a.icon,blockNode:w,checkable:b,selectable:S,fieldNames:$=e.replaceFields,motion:D=e.openAnimation,itemHeight:O=28,onDoubleclick:A,onDblclick:T}=e,M=E(E(E({},n),pt(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:Boolean(g),dropIndicatorRender:gve,fieldNames:$,icon:y,itemHeight:O}),B=a.default?nn(a.default()):void 0;return u(C(x5,j(j({},M),{},{virtual:s.value,motion:D,ref:d,prefixCls:i.value,class:ge({[`${i.value}-icon-hide`]:!h,[`${i.value}-block-node`]:w,[`${i.value}-unselectable`]:!S,[`${i.value}-rtl`]:l.value==="rtl"},n.class,c.value),direction:l.value,checkable:b,selectable:S,switcherIcon:F=>w5(i.value,x,F,a.leafIcon,g),onCheck:p,onExpand:v,onSelect:m,onDblclick:T||A,children:B}),E(E({},a),{checkable:()=>C("span",{class:`${i.value}-checkbox-inner`},null)})))}}});var ra;(function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"})(ra||(ra={}));function bw(e,t,n){function r(o){const a=o[t.key],i=o[t.children];n(a,o)!==!1&&bw(i||[],t,n)}e.forEach(r)}function $ve(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:a={title:"title",key:"key",children:"children"}}=e;const i=[];let l=ra.None;if(r&&r===o)return[r];if(!r||!o)return[];function s(u){return u===r||u===o}return bw(t,a,u=>{if(l===ra.End)return!1;if(s(u)){if(i.push(u),l===ra.None)l=ra.Start;else if(l===ra.Start)return l=ra.End,!1}else l===ra.Start&&i.push(u);return n.includes(u)}),i}function Zh(e,t,n){const r=[...t],o=[];return bw(e,n,(a,i)=>{const l=r.indexOf(a);return l!==-1&&(o.push(i),r.splice(l,1)),!!r.length}),o}var Eve=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oE(E({},C5()),{expandAction:Xe([Boolean,String])});function Ave(e){const{isLeaf:t,expanded:n}=e;return t?C(h8,null,null):n?C(Rae,null,null):C(Hae,null,null)}const wf=he({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:at(Dve(),{showIcon:!0,expandAction:"click"}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:o,expose:a}=t;var i;const l=be(e.treeData||w0(nn((i=r.default)===null||i===void 0?void 0:i.call(r))));Ne(()=>e.treeData,()=>{l.value=e.treeData}),Sr(()=>{ht(()=>{var O;e.treeData===void 0&&r.default&&(l.value=w0(nn((O=r.default)===null||O===void 0?void 0:O.call(r))))})});const s=be(),u=be(),c=z(()=>Xm(e.fieldNames)),d=be();a({scrollTo:O=>{var A;(A=d.value)===null||A===void 0||A.scrollTo(O)},selectedKeys:z(()=>{var O;return(O=d.value)===null||O===void 0?void 0:O.selectedKeys}),checkedKeys:z(()=>{var O;return(O=d.value)===null||O===void 0?void 0:O.checkedKeys}),halfCheckedKeys:z(()=>{var O;return(O=d.value)===null||O===void 0?void 0:O.halfCheckedKeys}),loadedKeys:z(()=>{var O;return(O=d.value)===null||O===void 0?void 0:O.loadedKeys}),loadingKeys:z(()=>{var O;return(O=d.value)===null||O===void 0?void 0:O.loadingKeys}),expandedKeys:z(()=>{var O;return(O=d.value)===null||O===void 0?void 0:O.expandedKeys})});const p=()=>{const{keyEntities:O}=Cc(l.value,{fieldNames:c.value});let A;return e.defaultExpandAll?A=Object.keys(O):e.defaultExpandParent?A=x0(e.expandedKeys||e.defaultExpandedKeys||[],O):A=e.expandedKeys||e.defaultExpandedKeys,A},v=be(e.selectedKeys||e.defaultSelectedKeys||[]),m=be(p());Ne(()=>e.selectedKeys,()=>{e.selectedKeys!==void 0&&(v.value=e.selectedKeys)},{immediate:!0}),Ne(()=>e.expandedKeys,()=>{e.expandedKeys!==void 0&&(m.value=e.expandedKeys)},{immediate:!0});const g=Zb((O,A)=>{const{isLeaf:T}=A;T||O.shiftKey||O.metaKey||O.ctrlKey||d.value.onNodeExpand(O,A)},200,{leading:!0}),x=(O,A)=>{e.expandedKeys===void 0&&(m.value=O),o("update:expandedKeys",O),o("expand",O,A)},y=(O,A)=>{const{expandAction:T}=e;T==="click"&&g(O,A),o("click",O,A)},w=(O,A)=>{const{expandAction:T}=e;(T==="dblclick"||T==="doubleclick")&&g(O,A),o("doubleclick",O,A),o("dblclick",O,A)},b=(O,A)=>{const{multiple:T}=e,{node:M,nativeEvent:B}=A,F=M[c.value.key],P=E(E({},A),{selected:!0}),I=(B==null?void 0:B.ctrlKey)||(B==null?void 0:B.metaKey),N=B==null?void 0:B.shiftKey;let R;T&&I?(R=O,s.value=F,u.value=R,P.selectedNodes=Zh(l.value,R,c.value)):T&&N?(R=Array.from(new Set([...u.value||[],...$ve({treeData:l.value,expandedKeys:m.value,startKey:F,endKey:s.value,fieldNames:c.value})])),P.selectedNodes=Zh(l.value,R,c.value)):(R=[F],s.value=F,u.value=R,P.selectedNodes=Zh(l.value,R,c.value)),o("update:selectedKeys",R),o("select",R,P),e.selectedKeys===void 0&&(v.value=R)},S=(O,A)=>{o("update:checkedKeys",O),o("check",O,A)},{prefixCls:$,direction:D}=He("tree",e);return()=>{const O=ge(`${$.value}-directory`,{[`${$.value}-directory-rtl`]:D.value==="rtl"},n.class),{icon:A=r.icon,blockNode:T=!0}=e,M=Eve(e,["icon","blockNode"]);return C(xf,j(j(j({},n),{},{icon:A||Ave,ref:d,blockNode:T},M),{},{prefixCls:$.value,class:O,expandedKeys:m.value,selectedKeys:v.value,onSelect:b,onClick:y,onDblclick:w,onExpand:x,onCheck:S}),r)}}}),Sf=b0,$5=E(xf,{DirectoryTree:wf,TreeNode:Sf,install:e=>(e.component(xf.name,xf),e.component(Sf.name,Sf),e.component(wf.name,wf),e)});function yE(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const r=new Set;function o(a,i){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const s=r.has(a);if(um(!s,"Warning: There may be circular references"),s)return!1;if(a===i)return!0;if(n&&l>1)return!1;r.add(a);const u=l+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(let c=0;co(a[d],i[d],u))}return!1}return o(e,t)}const{SubMenu:Ove,Item:Tve}=mn;function Mve(e){return e.some(t=>{let{children:n}=t;return n&&n.length>0})}function E5(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function D5(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:a,filterSearch:i}=e;return t.map((l,s)=>{const u=String(l.value);if(l.children)return C(Ove,{key:u||s,title:l.text,popupClassName:`${n}-dropdown-submenu`},{default:()=>[D5({filters:l.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:a,filterSearch:i})]});const c=o?Zr:ar,d=C(Tve,{key:l.value!==void 0?u:s},{default:()=>[C(c,{checked:r.includes(u)},null),C("span",null,[l.text])]});return a.trim()?typeof i=="function"?i(a,l)?d:void 0:E5(a,l.text)?d:void 0:d})}const Nve=he({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup(e,t){let{slots:n}=t;const r=hw(),o=z(()=>{var H;return(H=e.filterMode)!==null&&H!==void 0?H:"menu"}),a=z(()=>{var H;return(H=e.filterSearch)!==null&&H!==void 0?H:!1}),i=z(()=>e.column.filterDropdownOpen||e.column.filterDropdownVisible),l=z(()=>e.column.onFilterDropdownOpenChange||e.column.onFilterDropdownVisibleChange),s=pe(!1),u=z(()=>{var H;return!!(e.filterState&&(!((H=e.filterState.filteredKeys)===null||H===void 0)&&H.length||e.filterState.forceFiltered))}),c=z(()=>{var H;return mv((H=e.column)===null||H===void 0?void 0:H.filters)}),d=z(()=>{const{filterDropdown:H,slots:V={},customFilterDropdown:U}=e.column;return H||V.filterDropdown&&r.value[V.filterDropdown]||U&&r.value.customFilterDropdown}),f=z(()=>{const{filterIcon:H,slots:V={}}=e.column;return H||V.filterIcon&&r.value[V.filterIcon]||r.value.customFilterIcon}),p=H=>{var V;s.value=H,(V=l.value)===null||V===void 0||V.call(l,H)},v=z(()=>typeof i.value=="boolean"?i.value:s.value),m=z(()=>{var H;return(H=e.filterState)===null||H===void 0?void 0:H.filteredKeys}),h=pe([]),g=H=>{let{selectedKeys:V}=H;h.value=V},x=(H,V)=>{let{node:U,checked:q}=V;e.filterMultiple?g({selectedKeys:H}):g({selectedKeys:q&&U.key?[U.key]:[]})};Ne(m,()=>{s.value&&g({selectedKeys:m.value||[]})},{immediate:!0});const y=pe([]),w=pe(),b=H=>{w.value=setTimeout(()=>{y.value=H})},S=()=>{clearTimeout(w.value)};st(()=>{clearTimeout(w.value)});const $=pe(""),D=H=>{const{value:V}=H.target;$.value=V};Ne(s,()=>{s.value||($.value="")});const O=H=>{const{column:V,columnKey:U,filterState:q}=e,K=H&&H.length?H:null;if(K===null&&(!q||!q.filteredKeys)||yE(K,q==null?void 0:q.filteredKeys,!0))return null;e.triggerFilter({column:V,key:U,filteredKeys:K})},A=()=>{p(!1),O(h.value)},T=function(){let{confirm:H,closeDropdown:V}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};H&&O([]),V&&p(!1),$.value="",e.column.filterResetToDefaultFilteredValue?h.value=(e.column.defaultFilteredValue||[]).map(U=>String(U)):h.value=[]},M=function(){let{closeDropdown:H}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};H&&p(!1),O(h.value)},B=H=>{H&&m.value!==void 0&&(h.value=m.value||[]),p(H),!H&&!d.value&&A()},{direction:F}=He("",e),P=H=>{if(H.target.checked){const V=c.value;h.value=V}else h.value=[]},I=H=>{let{filters:V}=H;return(V||[]).map((U,q)=>{const K=String(U.value),X={title:U.text,key:U.value!==void 0?K:q};return U.children&&(X.children=I({filters:U.children})),X})},N=H=>{var V;return E(E({},H),{text:H.title,value:H.key,children:((V=H.children)===null||V===void 0?void 0:V.map(U=>N(U)))||[]})},R=z(()=>I({filters:e.column.filters})),_=z(()=>ge({[`${e.dropdownPrefixCls}-menu-without-submenu`]:!Mve(e.column.filters||[])})),L=()=>{const H=h.value,{column:V,locale:U,tablePrefixCls:q,filterMultiple:K,dropdownPrefixCls:X,getPopupContainer:re,prefixCls:ee}=e;return(V.filters||[]).length===0?C(Ka,{image:Ka.PRESENTED_IMAGE_SIMPLE,description:U.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):o.value==="tree"?C(dt,null,[C(uE,{filterSearch:a.value,value:$.value,onChange:D,tablePrefixCls:q,locale:U},null),C("div",{class:`${q}-filter-dropdown-tree`},[K?C(Zr,{class:`${q}-filter-dropdown-checkall`,onChange:P,checked:H.length===c.value.length,indeterminate:H.length>0&&H.length[U.filterCheckall]}):null,C($5,{checkable:!0,selectable:!1,blockNode:!0,multiple:K,checkStrictly:!K,class:`${X}-menu`,onCheck:x,checkedKeys:H,selectedKeys:H,showIcon:!1,treeData:R.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:$.value.trim()?G=>typeof a.value=="function"?a.value($.value,N(G)):E5($.value,G.title):void 0},null)])]):C(dt,null,[C(uE,{filterSearch:a.value,value:$.value,onChange:D,tablePrefixCls:q,locale:U},null),C(mn,{multiple:K,prefixCls:`${X}-menu`,class:_.value,onClick:S,onSelect:g,onDeselect:g,selectedKeys:H,getPopupContainer:re,openKeys:y.value,onOpenChange:b},{default:()=>D5({filters:V.filters||[],filterSearch:a.value,prefixCls:ee,filteredKeys:h.value,filterMultiple:K,searchValue:$.value})})])},k=z(()=>{const H=h.value;return e.column.filterResetToDefaultFilteredValue?yE((e.column.defaultFilteredValue||[]).map(V=>String(V)),H,!0):H.length===0});return()=>{var H;const{tablePrefixCls:V,prefixCls:U,column:q,dropdownPrefixCls:K,locale:X,getPopupContainer:re}=e;let ee;typeof d.value=="function"?ee=d.value({prefixCls:`${K}-custom`,setSelectedKeys:ue=>g({selectedKeys:ue}),selectedKeys:h.value,confirm:M,clearFilters:T,filters:q.filters,visible:v.value,column:q.__originColumn__,close:()=>{p(!1)}}):d.value?ee=d.value:ee=C(dt,null,[L(),C("div",{class:`${U}-dropdown-btns`},[C(dn,{type:"link",size:"small",disabled:k.value,onClick:()=>T()},{default:()=>[X.filterReset]}),C(dn,{type:"primary",size:"small",onClick:A},{default:()=>[X.filterConfirm]})])]);const G=C(uve,{class:`${U}-dropdown`},{default:()=>[ee]});let le;return typeof f.value=="function"?le=f.value({filtered:u.value,column:q.__originColumn__}):f.value?le=f.value:le=C(Iae,null,null),C("div",{class:`${U}-column`},[C("span",{class:`${V}-column-title`},[(H=n.default)===null||H===void 0?void 0:H.call(n)]),C(Ro,{overlay:G,trigger:["click"],open:v.value,onOpenChange:B,getPopupContainer:re,placement:F.value==="rtl"?"bottomLeft":"bottomRight"},{default:()=>[C("span",{role:"button",tabindex:-1,class:ge(`${U}-trigger`,{active:u.value}),onClick:ue=>{ue.stopPropagation()}},[le])]})])}}});function J0(e,t,n){let r=[];return(e||[]).forEach((o,a)=>{var i,l;const s=Ac(a,n),u=o.filterDropdown||((i=o==null?void 0:o.slots)===null||i===void 0?void 0:i.filterDropdown)||o.customFilterDropdown;if(o.filters||u||"onFilter"in o)if("filteredValue"in o){let c=o.filteredValue;u||(c=(l=c==null?void 0:c.map(String))!==null&&l!==void 0?l:c),r.push({column:o,key:qi(o,s),filteredKeys:c,forceFiltered:o.filtered})}else r.push({column:o,key:qi(o,s),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[...r,...J0(o.children,t,s)])}),r}function A5(e,t,n,r,o,a,i,l){return n.map((s,u)=>{var c;const d=Ac(u,l),{filterMultiple:f=!0,filterMode:p,filterSearch:v}=s;let m=s;const h=s.filterDropdown||((c=s==null?void 0:s.slots)===null||c===void 0?void 0:c.filterDropdown)||s.customFilterDropdown;if(m.filters||h){const g=qi(m,d),x=r.find(y=>{let{key:w}=y;return g===w});m=E(E({},m),{title:y=>C(Nve,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:m,columnKey:g,filterState:x,filterMultiple:f,filterMode:p,filterSearch:v,triggerFilter:a,locale:o,getPopupContainer:i},{default:()=>[yw(s.title,y)]})})}return"children"in m&&(m=E(E({},m),{children:A5(e,t,m.children,r,o,a,i,d)})),m})}function mv(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:o}=n;t.push(r),o&&(t=[...t,...mv(o)])}),t}function bE(e){const t={};return e.forEach(n=>{let{key:r,filteredKeys:o,column:a}=n;var i;const l=a.filterDropdown||((i=a==null?void 0:a.slots)===null||i===void 0?void 0:i.filterDropdown)||a.customFilterDropdown,{filters:s}=a;if(l)t[r]=o||null;else if(Array.isArray(o)){const u=mv(s);t[r]=u.filter(c=>o.includes(String(c)))}else t[r]=null}),t}function xE(e,t){return t.reduce((n,r)=>{const{column:{onFilter:o,filters:a},filteredKeys:i}=r;return o&&i&&i.length?n.filter(l=>i.some(s=>{const u=mv(a),c=u.findIndex(f=>String(f)===String(s)),d=c!==-1?u[c]:s;return o(d,l)})):n},e)}function Pve(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,locale:o,onFilterChange:a,getPopupContainer:i}=e;const[l,s]=It(J0(r.value,!0)),u=z(()=>{const p=J0(r.value,!1);if(p.length===0)return p;let v=!0,m=!0;if(p.forEach(h=>{let{filteredKeys:g}=h;g!==void 0?v=!1:m=!1}),v){const h=(r.value||[]).map((g,x)=>qi(g,Ac(x)));return l.value.filter(g=>{let{key:x}=g;return h.includes(x)}).map(g=>{const x=r.value[h.findIndex(y=>y===g.key)];return E(E({},g),{column:E(E({},g.column),x),forceFiltered:x.filtered})})}return qt(m,"Table","Columns should all contain `filteredValue` or not contain `filteredValue`."),p}),c=z(()=>bE(u.value)),d=p=>{const v=u.value.filter(m=>{let{key:h}=m;return h!==p.key});v.push(p),s(v),a(bE(v),v)};return[p=>A5(t.value,n.value,p,u.value,o.value,d,i.value),u,c]}function O5(e,t){return e.map(n=>{const r=E({},n);return r.title=yw(r.title,t),"children"in r&&(r.children=O5(r.children,t)),r})}function Ive(e){return[n=>O5(n,e.value)]}function _ve(e){return function(n){let{prefixCls:r,onExpand:o,record:a,expanded:i,expandable:l}=n;const s=`${r}-row-expand-icon`;return C("button",{type:"button",onClick:u=>{o(a,u),u.stopPropagation()},class:ge(s,{[`${s}-spaced`]:!l,[`${s}-expanded`]:l&&i,[`${s}-collapsed`]:l&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i},null)}}function T5(e,t){const n=t.value;return e.map(r=>{var o;if(r===na||r===ja)return r;const a=E({},r),{slots:i={}}=a;return a.__originColumn__=r,qt(!("slots"in a),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(i).forEach(l=>{const s=i[l];a[l]===void 0&&n[s]&&(a[l]=n[s])}),t.value.headerCell&&!(!((o=r.slots)===null||o===void 0)&&o.title)&&(a.title=em(t.value,"headerCell",{title:r.title,column:r},()=>[r.title])),"children"in a&&Array.isArray(a.children)&&(a.children=T5(a.children,t)),a})}function Bve(e){return[n=>T5(n,e)]}const Fve=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,r=(o,a,i)=>({[`&${t}-${o}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${a}px -${i+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:E(E(E({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,[` > ${t}-content, > ${t}-header, > ${t}-body, > ${t}-summary `]:{"> table":{[` > thead > tr > th, > tbody > tr > td, > tfoot > tr > th, > tfoot > tr > td `]:{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},[` > thead > tr, > tbody > tr, > tfoot > tr `]:{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},"> tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}},[` > ${t}-content, > ${t}-header `]:{"> table":{borderTop:n}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` > tr${t}-expanded-row, > tr${t}-placeholder `]:{"> td":{borderInlineEnd:0}}}}}},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}}}}},Rve=Fve,zve=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:E(E({},gn),{wordBreak:"keep-all",[` &${t}-cell-fix-left-last, &${t}-cell-fix-right-first `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Lve=zve,kve=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}}}},Hve=kve,jve=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:r,motionDurationSlow:o,lineWidth:a,paddingXS:i,lineType:l,tableBorderColor:s,tableExpandIconBg:u,tableExpandColumnWidth:c,borderRadius:d,fontSize:f,fontSizeSM:p,lineHeight:v,tablePaddingVertical:m,tablePaddingHorizontal:h,tableExpandedRowBg:g,paddingXXS:x}=e,y=r/2-a,w=y*2+a*3,b=`${a}px ${l} ${s}`,S=x-a;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:E(E({},fm(e)),{position:"relative",float:"left",boxSizing:"border-box",width:w,height:w,padding:0,color:"inherit",lineHeight:`${w}px`,background:u,border:b,borderRadius:d,transform:`scale(${r/w})`,transition:`all ${o}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:S,insetInlineStart:S,height:a},"&::after":{top:S,bottom:S,insetInlineStart:y,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(f*v-a*3)/2-Math.ceil((p*1.4-a*3)/2),marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> td":{background:g}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${m}px -${h}px`,padding:`${m}px ${h}px`}}}},Vve=jve,Wve=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:a,paddingXXS:i,paddingXS:l,colorText:s,lineWidth:u,lineType:c,tableBorderColor:d,tableHeaderIconColor:f,fontSizeSM:p,tablePaddingHorizontal:v,borderRadius:m,motionDurationSlow:h,colorTextDescription:g,colorPrimary:x,tableHeaderFilterActiveBg:y,colorTextDisabled:w,tableFilterDropdownBg:b,tableFilterDropdownHeight:S,controlItemBgHover:$,controlItemBgActive:D,boxShadowSecondary:O}=e,A=`${n}-dropdown`,T=`${t}-filter-dropdown`,M=`${n}-tree`,B=`${u}px ${c} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-i,marginInline:`${i}px ${-v/2}px`,padding:`0 ${i}px`,color:f,fontSize:p,borderRadius:m,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:g,background:y},"&.active":{color:x}}}},{[`${n}-dropdown`]:{[T]:E(E({},rt(e)),{minWidth:o,backgroundColor:b,borderRadius:m,boxShadow:O,[`${A}-menu`]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${l}px 0`,color:w,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${T}-tree`]:{paddingBlock:`${l}px 0`,paddingInline:l,[M]:{padding:0},[`${M}-treenode ${M}-node-content-wrapper:hover`]:{backgroundColor:$},[`${M}-treenode-checkbox-checked ${M}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:D}}},[`${T}-search`]:{padding:l,borderBottom:B,"&-input":{input:{minWidth:a},[r]:{color:w}}},[`${T}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${T}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${l-u}px ${l}px`,overflow:"hidden",backgroundColor:"inherit",borderTop:B}})}},{[`${n}-dropdown ${T}, ${T}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Uve=Wve,Kve=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:a,tableBg:i,zIndexTableSticky:l}=e,s=r;return{[`${t}-wrapper`]:{[` ${t}-cell-fix-left, ${t}-cell-fix-right `]:{position:"sticky !important",zIndex:a,background:i},[` ${t}-cell-fix-left-first::after, ${t}-cell-fix-left-last::after `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` ${t}-cell-fix-right-first::after, ${t}-cell-fix-right-last::after `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l+1,width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${s}`}},[` ${t}-cell-fix-left-first::after, ${t}-cell-fix-left-last::after `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${s}`}},[` ${t}-cell-fix-right-first::after, ${t}-cell-fix-right-last::after `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}}}}},qve=Kve,Gve=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Xve=Gve,Yve=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th:last-child":{borderRadius:0}}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}},Zve=Yve,Jve=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{"&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}}}}},Qve=Jve,ehe=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,paddingXS:a,tableHeaderIconColor:i,tableHeaderIconColorHover:l}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:e.tableSelectionColumnWidth},[`${t}-bordered ${t}-selection-col`]:{width:e.tableSelectionColumnWidth+a*2},[` table tr th${t}-selection-column, table tr td${t}-selection-column `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${e.tablePaddingHorizontal/4}px`,[r]:{color:i,fontSize:o,verticalAlign:"baseline","&:hover":{color:l}}}}}},the=ehe,nhe=e=>{const{componentCls:t}=e,n=(r,o,a,i)=>({[`${t}${t}-${r}`]:{fontSize:i,[` ${t}-title, ${t}-footer, ${t}-thead > tr > th, ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{padding:`${o}px ${a}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${a/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${o}px -${a}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${o}px`,marginInline:`${e.tableExpandColumnWidth-a}px -${a}px`}},[`${t}-selection-column`]:{paddingInlineStart:`${a/4}px`}}});return{[`${t}-wrapper`]:E(E({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},rhe=nhe,ohe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper ${t}-resize-handle`]:{position:"absolute",top:0,height:"100% !important",bottom:0,left:" auto !important",right:" -8px",cursor:"col-resize",touchAction:"none",userSelect:"auto",width:"16px",zIndex:1,["&-line"]:{display:"block",width:"1px",marginLeft:"7px",height:"100% !important",backgroundColor:e.colorPrimary,opacity:0},["&:hover &-line"]:{opacity:1}},[`${t}-wrapper ${t}-resize-handle.dragging`]:{overflow:"hidden",[`${t}-resize-handle-line`]:{opacity:1},["&:before"]:{position:"absolute",top:0,bottom:0,content:'" "',width:"200vw",transform:"translateX(-50%)",opacity:0}}}},ahe=ohe,ihe=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,tableHeaderIconColor:o,tableHeaderIconColorHover:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` &${t}-cell-fix-left:hover, &${t}-cell-fix-right:hover `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},lhe=ihe,she=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:a,tableScrollBg:i,zIndexTableSticky:l}=e,s=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${a}px !important`,zIndex:l,display:"flex",alignItems:"center",background:i,borderTop:s,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},uhe=she,che=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r}=e,o=`${n}px ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${r}`}}}},wE=che,dhe=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,lineWidth:a,lineType:i,tableBorderColor:l,tableFontSize:s,tableBg:u,tableRadius:c,tableHeaderTextColor:d,motionDurationMid:f,tableHeaderBg:p,tableHeaderCellSplitColor:v,tableRowHoverBg:m,tableSelectedRowBg:h,tableSelectedRowHoverBg:g,tableFooterTextColor:x,tableFooterBg:y,paddingContentVerticalLG:w,wireframe:b}=e,S=`${a}px ${i} ${l}`;return{[`${t}-wrapper`]:E(E({clear:"both",maxWidth:"100%"},yo()),{[t]:E(E({},rt(e)),{fontSize:s,background:u,borderRadius:`${c}px ${c}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${c}px ${c}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${t}-thead > tr > th, ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{position:"relative",padding:`${w}px ${o}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${r}px ${o}px`},[`${t}-thead`]:{[` > tr > th, > tr > td `]:{position:"relative",color:d,fontWeight:n,textAlign:"start",background:p,borderBottom:S,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:v,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}:not(${t}-bordered)`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderTop:S,borderBottom:"transparent"},"&:last-child > td":{borderBottom:S},[`&:first-child > td, &${t}-measure-row + tr > td`]:{borderTop:"none",borderTopColor:"transparent"}}}},[`${t}${t}-bordered`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderBottom:S}}}},[`${t}-tbody`]:{"> tr":{"> td":{transition:`background ${f}, border-color ${f}`,[` > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child `]:{[t]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-o}px -${o}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},[` &${t}-row:hover > td, > td${t}-cell-row-hover `]:{background:m},[`&${t}-row-selected`]:{"> td":{background:h},"&:hover > td":{background:g}}}},[`${t}:not(${t}-bordered) ${t}-tbody > tr`]:b?void 0:{[`&${t}-row:hover, &${t}-row${t}-row-selected`]:{[`+ tr${t}-row > td`]:{borderTopColor:"transparent"}},[`&${t}-row:last-child:hover > td, &${t}-row${t}-row-selected:last-child > td`]:{borderBottomColor:"transparent"},[` &${t}-row:hover > td, > td${t}-cell-row-hover, &${t}-row${t}-row-selected > td `]:{borderTopColor:"transparent","&:first-child":{borderStartStartRadius:c,borderEndStartRadius:c},"&:last-child":{borderStartEndRadius:c,borderEndEndRadius:c}}},[`${t}-footer`]:{padding:`${r}px ${o}px`,color:x,background:y}})}},fhe=nt("Table",e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:r,colorTextHeading:o,colorSplit:a,colorBorderSecondary:i,fontSize:l,padding:s,paddingXS:u,paddingSM:c,controlHeight:d,colorFillAlter:f,colorIcon:p,colorIconHover:v,opacityLoading:m,colorBgContainer:h,borderRadiusLG:g,colorFillContent:x,colorFillSecondary:y,controlInteractiveSize:w}=e,b=new $t(p),S=new $t(v),$=t,D=2,O=new $t(y).onBackground(h).toHexString(),A=new $t(x).onBackground(h).toHexString(),T=new $t(f).onBackground(h).toHexString(),M=qe(e,{tableFontSize:l,tableBg:h,tableRadius:g,tablePaddingVertical:s,tablePaddingHorizontal:s,tablePaddingVerticalMiddle:c,tablePaddingHorizontalMiddle:u,tablePaddingVerticalSmall:u,tablePaddingHorizontalSmall:u,tableBorderColor:i,tableHeaderTextColor:o,tableHeaderBg:T,tableFooterTextColor:o,tableFooterBg:T,tableHeaderCellSplitColor:i,tableHeaderSortBg:O,tableHeaderSortHoverBg:A,tableHeaderIconColor:b.clone().setAlpha(b.getAlpha()*m).toRgbString(),tableHeaderIconColorHover:S.clone().setAlpha(S.getAlpha()*m).toRgbString(),tableBodySortBg:T,tableFixedHeaderSortActiveBg:O,tableHeaderFilterActiveBg:x,tableFilterDropdownBg:h,tableRowHoverBg:T,tableSelectedRowBg:$,tableSelectedRowHoverBg:n,zIndexTableFixed:D,zIndexTableSticky:D+1,tableFontSizeMiddle:l,tableFontSizeSmall:l,tableSelectionColumnWidth:d,tableExpandIconBg:h,tableExpandColumnWidth:w+2*e.padding,tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollBg:a});return[dhe(M),Xve(M),wE(M),lhe(M),Uve(M),Rve(M),Zve(M),Vve(M),wE(M),Hve(M),the(M),qve(M),uhe(M),Lve(M),rhe(M),ahe(M),Qve(M)]}),phe=[],M5=()=>({prefixCls:Ue(),columns:bt(),rowKey:Xe([String,Function]),tableLayout:Ue(),rowClassName:Xe([String,Function]),title:Oe(),footer:Oe(),id:Ue(),showHeader:Pe(),components:We(),customRow:Oe(),customHeaderRow:Oe(),direction:Ue(),expandFixed:Xe([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:bt(),defaultExpandedRowKeys:bt(),expandedRowRender:Oe(),expandRowByClick:Pe(),expandIcon:Oe(),onExpand:Oe(),onExpandedRowsChange:Oe(),"onUpdate:expandedRowKeys":Oe(),defaultExpandAllRows:Pe(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:Pe(),expandedRowClassName:Oe(),childrenColumnName:Ue(),rowExpandable:Oe(),sticky:Xe([Boolean,Object]),dropdownPrefixCls:String,dataSource:bt(),pagination:Xe([Boolean,Object]),loading:Xe([Boolean,Object]),size:Ue(),bordered:Pe(),locale:We(),onChange:Oe(),onResizeColumn:Oe(),rowSelection:We(),getPopupContainer:Oe(),scroll:We(),sortDirections:bt(),showSorterTooltip:Xe([Boolean,Object],!0),transformCellText:Oe()}),mhe=he({name:"InteralTable",inheritAttrs:!1,props:at(E(E({},M5()),{contextSlots:We()}),{rowKey:"key"}),setup(e,t){let{attrs:n,slots:r,expose:o,emit:a}=t;qt(!(typeof e.rowKey=="function"&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),sme(z(()=>e.contextSlots)),ume({onResizeColumn:(te,de)=>{a("resizeColumn",te,de)}});const i=_s(),l=z(()=>{const te=new Set(Object.keys(i.value).filter(de=>i.value[de]));return e.columns.filter(de=>!de.responsive||de.responsive.some(Y=>te.has(Y)))}),{size:s,renderEmpty:u,direction:c,prefixCls:d,configProvider:f}=He("table",e),[p,v]=fhe(d),m=z(()=>{var te;return e.transformCellText||((te=f.transformCellText)===null||te===void 0?void 0:te.value)}),[h]=ro("Table",cr.Table,Ye(e,"locale")),g=z(()=>e.dataSource||phe),x=z(()=>f.getPrefixCls("dropdown",e.dropdownPrefixCls)),y=z(()=>e.childrenColumnName||"children"),w=z(()=>g.value.some(te=>te==null?void 0:te[y.value])?"nest":e.expandedRowRender?"row":null),b=_t({body:null}),S=te=>{E(b,te)},$=z(()=>typeof e.rowKey=="function"?e.rowKey:te=>te==null?void 0:te[e.rowKey]),[D]=tve(g,y,$),O={},A=function(te,de){let Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{pagination:ae,scroll:ce,onChange:Ce}=e,ye=E(E({},O),te);Y&&(O.resetPagination(),ye.pagination.current&&(ye.pagination.current=1),ae&&ae.onChange&&ae.onChange(1,ye.pagination.pageSize)),ce&&ce.scrollToFirstRowOnChange!==!1&&b.body&&sb(0,{getContainer:()=>b.body}),Ce==null||Ce(ye.pagination,ye.filters,ye.sorter,{currentDataSource:xE(Y0(g.value,ye.sorterStates,y.value),ye.filterStates),action:de})},T=(te,de)=>{A({sorter:te,sorterStates:de},"sort",!1)},[M,B,F,P]=ive({prefixCls:d,mergedColumns:l,onSorterChange:T,sortDirections:z(()=>e.sortDirections||["ascend","descend"]),tableLocale:h,showSorterTooltip:Ye(e,"showSorterTooltip")}),I=z(()=>Y0(g.value,B.value,y.value)),N=(te,de)=>{A({filters:te,filterStates:de},"filter",!0)},[R,_,L]=Pve({prefixCls:d,locale:h,dropdownPrefixCls:x,mergedColumns:l,onFilterChange:N,getPopupContainer:Ye(e,"getPopupContainer")}),k=z(()=>xE(I.value,_.value)),[H]=Bve(Ye(e,"contextSlots")),V=z(()=>{const te={},de=L.value;return Object.keys(de).forEach(Y=>{de[Y]!==null&&(te[Y]=de[Y])}),E(E({},F.value),{filters:te})}),[U]=Ive(V),q=(te,de)=>{A({pagination:E(E({},O.pagination),{current:te,pageSize:de})},"paginate")},[K,X]=eve(z(()=>k.value.length),Ye(e,"pagination"),q);Je(()=>{O.sorter=P.value,O.sorterStates=B.value,O.filters=L.value,O.filterStates=_.value,O.pagination=e.pagination===!1?{}:Qme(K.value,e.pagination),O.resetPagination=X});const re=z(()=>{if(e.pagination===!1||!K.value.pageSize)return k.value;const{current:te=1,total:de,pageSize:Y=U0}=K.value;return qt(te>0,"Table","`current` should be positive number."),k.value.lengthY?k.value.slice((te-1)*Y,te*Y):k.value:k.value.slice((te-1)*Y,te*Y)});Je(()=>{ht(()=>{const{total:te,pageSize:de=U0}=K.value;k.value.lengthde&&qt(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:"post"});const ee=z(()=>e.showExpandColumn===!1?-1:w.value==="nest"&&e.expandIconColumnIndex===void 0?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex),G=be();Ne(()=>e.rowSelection,()=>{G.value=e.rowSelection?E({},e.rowSelection):e.rowSelection},{deep:!0,immediate:!0});const[le,ue]=rve(G,{prefixCls:d,data:k,pageData:re,getRowKey:$,getRecordByKey:D,expandType:w,childrenColumnName:y,locale:h,getPopupContainer:z(()=>e.getPopupContainer)}),me=(te,de,Y)=>{let ae;const{rowClassName:ce}=e;return typeof ce=="function"?ae=ge(ce(te,de,Y)):ae=ge(ce),ge({[`${d.value}-row-selected`]:ue.value.has($.value(te,de))},ae)};o({selectedKeySet:ue});const Se=z(()=>typeof e.indentSize=="number"?e.indentSize:15),Q=te=>U(le(R(M(H(te)))));return()=>{var te;const{expandIcon:de=r.expandIcon||_ve(h.value),pagination:Y,loading:ae,bordered:ce}=e;let Ce,ye;if(Y!==!1&&(!((te=K.value)===null||te===void 0)&&te.total)){let ie;K.value.size?ie=K.value.size:ie=s.value==="small"||s.value==="middle"?"small":void 0;const ve=Ae=>C(uv,j(j({},K.value),{},{class:[`${d.value}-pagination ${d.value}-pagination-${Ae}`,K.value.class],size:ie}),null),we=c.value==="rtl"?"left":"right",{position:$e}=K.value;if($e!==null&&Array.isArray($e)){const Ae=$e.find(Te=>Te.includes("top")),xe=$e.find(Te=>Te.includes("bottom")),Ee=$e.every(Te=>`${Te}`=="none");!Ae&&!xe&&!Ee&&(ye=ve(we)),Ae&&(Ce=ve(Ae.toLowerCase().replace("top",""))),xe&&(ye=ve(xe.toLowerCase().replace("bottom","")))}else ye=ve(we)}let J;typeof ae=="boolean"?J={spinning:ae}:typeof ae=="object"&&(J=E({spinning:!0},ae));const ne=ge(`${d.value}-wrapper`,{[`${d.value}-wrapper-rtl`]:c.value==="rtl"},n.class,v.value),oe=pt(e,["columns"]);return p(C("div",{class:ne,style:n.style},[C(Lo,j({spinning:!1},J),{default:()=>[Ce,C(Zme,j(j(j({},n),oe),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:ee.value,indentSize:Se.value,expandIcon:de,columns:l.value,direction:c.value,prefixCls:d.value,class:ge({[`${d.value}-middle`]:s.value==="middle",[`${d.value}-small`]:s.value==="small",[`${d.value}-bordered`]:ce,[`${d.value}-empty`]:g.value.length===0}),data:re.value,rowKey:$.value,rowClassName:me,internalHooks:W0,internalRefs:b,onUpdateInternalRefs:S,transformColumns:Q,transformCellText:m.value}),E(E({},r),{emptyText:()=>{var ie,ve;return((ie=r.emptyText)===null||ie===void 0?void 0:ie.call(r))||((ve=e.locale)===null||ve===void 0?void 0:ve.emptyText)||u("Table")}})),ye]})]))}}}),vhe=he({name:"ATable",inheritAttrs:!1,props:at(M5(),{rowKey:"key"}),slots:Object,setup(e,t){let{attrs:n,slots:r,expose:o}=t;const a=be();return o({table:a}),()=>{var i;const l=e.columns||g5((i=r.default)===null||i===void 0?void 0:i.call(r));return C(mhe,j(j(j({ref:a},n),e),{},{columns:l||[],expandedRowRender:r.expandedRowRender,contextSlots:E({},r)}),r)}}}),Jh=vhe,Cf=he({name:"ATableColumn",slots:Object,render(){return null}}),$f=he({name:"ATableColumnGroup",slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render(){return null}}),Mp=Lme,Np=jme,Ef=E(Vme,{Cell:Np,Row:Mp,name:"ATableSummary"}),hhe=E(Jh,{SELECTION_ALL:K0,SELECTION_INVERT:q0,SELECTION_NONE:G0,SELECTION_COLUMN:na,EXPAND_COLUMN:ja,Column:Cf,ColumnGroup:$f,Summary:Ef,install:e=>(e.component(Ef.name,Ef),e.component(Np.name,Np),e.component(Mp.name,Mp),e.component(Jh.name,Jh),e.component(Cf.name,Cf),e.component($f.name,$f),e)}),ghe={prefixCls:String,placeholder:String,value:String,handleClear:Function,disabled:{type:Boolean,default:void 0},onChange:Function},yhe=he({compatConfig:{MODE:3},name:"Search",inheritAttrs:!1,props:at(ghe,{placeholder:""}),emits:["change"],setup(e,t){let{emit:n}=t;const r=o=>{var a;n("change",o),o.target.value===""&&((a=e.handleClear)===null||a===void 0||a.call(e))};return()=>{const{placeholder:o,value:a,prefixCls:i,disabled:l}=e;return C($n,{placeholder:o,class:i,value:a,onChange:r,disabled:l,allowClear:!0},{prefix:()=>C(Tm,null,null)})}}});function bhe(){}const xhe={renderedText:Z.any,renderedEl:Z.any,item:Z.any,checked:Pe(),prefixCls:String,disabled:Pe(),showRemove:Pe(),onClick:Function,onRemove:Function},whe=he({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:xhe,emits:["click","remove"],setup(e,t){let{emit:n}=t;return()=>{const{renderedText:r,renderedEl:o,item:a,checked:i,disabled:l,prefixCls:s,showRemove:u}=e,c=ge({[`${s}-content-item`]:!0,[`${s}-content-item-disabled`]:l||a.disabled});let d;return(typeof r=="string"||typeof r=="number")&&(d=String(r)),C(Zi,{componentName:"Transfer",defaultLocale:cr.Transfer},{default:f=>{const p=C("span",{class:`${s}-content-item-text`},[o]);return u?C("li",{class:c,title:d},[p,C(Ap,{disabled:l||a.disabled,class:`${s}-content-item-remove`,"aria-label":f.remove,onClick:()=>{n("remove",a)}},{default:()=>[C(v8,null,null)]})]):C("li",{class:c,title:d,onClick:l||a.disabled?bhe:()=>{n("click",a)}},[C(Zr,{class:`${s}-checkbox`,checked:i,disabled:l||a.disabled},null),p])}})}}}),She={prefixCls:String,filteredRenderItems:Z.array.def([]),selectedKeys:Z.array,disabled:Pe(),showRemove:Pe(),pagination:Z.any,onItemSelect:Function,onScroll:Function,onItemRemove:Function};function Che(e){if(!e)return null;const t={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return typeof e=="object"?E(E({},t),e):t}const $he=he({compatConfig:{MODE:3},name:"ListBody",inheritAttrs:!1,props:She,emits:["itemSelect","itemRemove","scroll"],setup(e,t){let{emit:n,expose:r}=t;const o=be(1),a=d=>{const{selectedKeys:f}=e,p=f.indexOf(d.key)>=0;n("itemSelect",d.key,!p)},i=d=>{n("itemRemove",[d.key])},l=d=>{n("scroll",d)},s=z(()=>Che(e.pagination));Ne([s,()=>e.filteredRenderItems],()=>{if(s.value){const d=Math.ceil(e.filteredRenderItems.length/s.value.pageSize);o.value=Math.min(o.value,d)}},{immediate:!0});const u=z(()=>{const{filteredRenderItems:d}=e;let f=d;return s.value&&(f=d.slice((o.value-1)*s.value.pageSize,o.value*s.value.pageSize)),f}),c=d=>{o.value=d};return r({items:u}),()=>{const{prefixCls:d,filteredRenderItems:f,selectedKeys:p,disabled:v,showRemove:m}=e;let h=null;s.value&&(h=C(uv,{simple:s.value.simple,showSizeChanger:s.value.showSizeChanger,showLessItems:s.value.showLessItems,size:"small",disabled:v,class:`${d}-pagination`,total:f.length,pageSize:s.value.pageSize,current:o.value,onChange:c},null));const g=u.value.map(x=>{let{renderedEl:y,renderedText:w,item:b}=x;const{disabled:S}=b,$=p.indexOf(b.key)>=0;return C(whe,{disabled:v||S,key:b.key,item:b,renderedText:w,renderedEl:y,checked:$,prefixCls:d,onClick:a,onRemove:i,showRemove:m},null)});return C(dt,null,[C("ul",{class:ge(`${d}-content`,{[`${d}-content-show-remove`]:m}),onScroll:l},[g]),h])}}}),Ehe=$he,Q0=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r)}),t},Dhe=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:o,key:a}=n;o&&t.set(a,r)}),t},Ahe=()=>null;function Ohe(e){return!!(e&&!hn(e)&&Object.prototype.toString.call(e)==="[object Object]")}function hd(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const The={prefixCls:String,dataSource:bt([]),filter:String,filterOption:Function,checkedKeys:Z.arrayOf(Z.string),handleFilter:Function,handleClear:Function,renderItem:Function,showSearch:Pe(!1),searchPlaceholder:String,notFoundContent:Z.any,itemUnit:String,itemsUnit:String,renderList:Z.any,disabled:Pe(),direction:Ue(),showSelectAll:Pe(),remove:String,selectAll:String,selectCurrent:String,selectInvert:String,removeAll:String,removeCurrent:String,selectAllLabel:Z.any,showRemove:Pe(),pagination:Z.any,onItemSelect:Function,onItemSelectAll:Function,onItemRemove:Function,onScroll:Function},SE=he({compatConfig:{MODE:3},name:"TransferList",inheritAttrs:!1,props:The,slots:Object,setup(e,t){let{attrs:n,slots:r}=t;const o=be(""),a=be(),i=be(),l=(b,S)=>{let $=b?b(S):null;const D=!!$&&nn($).length>0;return D||($=C(Ehe,j(j({},S),{},{ref:i}),null)),{customize:D,bodyContent:$}},s=b=>{const{renderItem:S=Ahe}=e,$=S(b),D=Ohe($);return{renderedText:D?$.value:$,renderedEl:D?$.label:$,item:b}},u=be([]),c=be([]);Je(()=>{const b=[],S=[];e.dataSource.forEach($=>{const D=s($),{renderedText:O}=D;if(o.value&&o.value.trim()&&!g(O,$))return null;b.push($),S.push(D)}),u.value=b,c.value=S});const d=z(()=>{const{checkedKeys:b}=e;if(b.length===0)return"none";const S=Q0(b);return u.value.every($=>S.has($.key)||!!$.disabled)?"all":"part"}),f=z(()=>hd(u.value)),p=(b,S)=>Array.from(new Set([...b,...e.checkedKeys])).filter($=>S.indexOf($)===-1),v=b=>{let{disabled:S,prefixCls:$}=b;var D;const O=d.value==="all";return C(Zr,{disabled:((D=e.dataSource)===null||D===void 0?void 0:D.length)===0||S,checked:O,indeterminate:d.value==="part",class:`${$}-checkbox`,onChange:()=>{const T=f.value;e.onItemSelectAll(p(O?[]:T,O?e.checkedKeys:[]))}},null)},m=b=>{var S;const{target:{value:$}}=b;o.value=$,(S=e.handleFilter)===null||S===void 0||S.call(e,b)},h=b=>{var S;o.value="",(S=e.handleClear)===null||S===void 0||S.call(e,b)},g=(b,S)=>{const{filterOption:$}=e;return $?$(o.value,S):b.includes(o.value)},x=(b,S)=>{const{itemsUnit:$,itemUnit:D,selectAllLabel:O}=e;if(O)return typeof O=="function"?O({selectedCount:b,totalCount:S}):O;const A=S>1?$:D;return C(dt,null,[(b>0?`${b}/`:"")+S,sr(" "),A])},y=z(()=>Array.isArray(e.notFoundContent)?e.notFoundContent[e.direction==="left"?0:1]:e.notFoundContent),w=(b,S,$,D,O,A)=>{const T=O?C("div",{class:`${b}-body-search-wrapper`},[C(yhe,{prefixCls:`${b}-search`,onChange:m,handleClear:h,placeholder:S,value:o.value,disabled:A},null)]):null;let M;const{onEvents:B}=Ky(n),{bodyContent:F,customize:P}=l(D,E(E(E({},e),{filteredItems:u.value,filteredRenderItems:c.value,selectedKeys:$}),B));return P?M=C("div",{class:`${b}-body-customize-wrapper`},[F]):M=u.value.length?F:C("div",{class:`${b}-body-not-found`},[y.value]),C("div",{class:O?`${b}-body ${b}-body-with-search`:`${b}-body`,ref:a},[T,M])};return()=>{var b,S;const{prefixCls:$,checkedKeys:D,disabled:O,showSearch:A,searchPlaceholder:T,selectAll:M,selectCurrent:B,selectInvert:F,removeAll:P,removeCurrent:I,renderList:N,onItemSelectAll:R,onItemRemove:_,showSelectAll:L=!0,showRemove:k,pagination:H}=e,V=(b=r.footer)===null||b===void 0?void 0:b.call(r,E({},e)),U=ge($,{[`${$}-with-pagination`]:!!H,[`${$}-with-footer`]:!!V}),q=w($,T,D,N,A,O),K=V?C("div",{class:`${$}-footer`},[V]):null,X=!k&&!H&&v({disabled:O,prefixCls:$});let re=null;k?re=C(mn,null,{default:()=>[H&&C(mn.Item,{key:"removeCurrent",onClick:()=>{const G=hd((i.value.items||[]).map(le=>le.item));_==null||_(G)}},{default:()=>[I]}),C(mn.Item,{key:"removeAll",onClick:()=>{_==null||_(f.value)}},{default:()=>[P]})]}):re=C(mn,null,{default:()=>[C(mn.Item,{key:"selectAll",onClick:()=>{const G=f.value;R(p(G,[]))}},{default:()=>[M]}),H&&C(mn.Item,{onClick:()=>{const G=hd((i.value.items||[]).map(le=>le.item));R(p(G,[]))}},{default:()=>[B]}),C(mn.Item,{key:"selectInvert",onClick:()=>{let G;H?G=hd((i.value.items||[]).map(Se=>Se.item)):G=f.value;const le=new Set(D),ue=[],me=[];G.forEach(Se=>{le.has(Se)?me.push(Se):ue.push(Se)}),R(p(ue,me))}},{default:()=>[F]})]});const ee=C(Ro,{class:`${$}-header-dropdown`,overlay:re,disabled:O},{default:()=>[C(pc,null,null)]});return C("div",{class:U,style:n.style},[C("div",{class:`${$}-header`},[L?C(dt,null,[X,ee]):null,C("span",{class:`${$}-header-selected`},[C("span",null,[x(D.length,u.value.length)]),C("span",{class:`${$}-header-title`},[(S=r.titleText)===null||S===void 0?void 0:S.call(r)])])]),q,K])}}});function CE(){}const xw=e=>{const{disabled:t,moveToLeft:n=CE,moveToRight:r=CE,leftArrowText:o="",rightArrowText:a="",leftActive:i,rightActive:l,class:s,style:u,direction:c,oneWay:d}=e;return C("div",{class:s,style:u},[C(dn,{type:"primary",size:"small",disabled:t||!l,onClick:r,icon:c!=="rtl"?C(xo,null,null):C(oi,null,null)},{default:()=>[a]}),!d&&C(dn,{type:"primary",size:"small",disabled:t||!i,onClick:n,icon:c!=="rtl"?C(oi,null,null):C(xo,null,null)},{default:()=>[o]})])};xw.displayName="Operation";xw.inheritAttrs=!1;const Mhe=xw,Nhe=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o,marginXXS:a,margin:i}=e,l=`${t}-table`,s=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r},[`${l}-wrapper`]:{[`${l}-small`]:{border:0,borderRadius:0,[`${l}-selection-column`]:{width:o,minWidth:o}},[`${l}-pagination${l}-pagination`]:{margin:`${i}px 0 ${a}px`}},[`${s}[disabled]`]:{backgroundColor:"transparent"}}}},$E=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},Phe=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:E({},$E(e,e.colorError)),[`${t}-status-warning`]:E({},$E(e,e.colorWarning))}},Ihe=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,transferItemHeight:a,transferHeaderHeight:i,transferHeaderVerticalPadding:l,transferItemPaddingVertical:s,controlItemBgActive:u,controlItemBgActiveHover:c,colorTextDisabled:d,listHeight:f,listWidth:p,listWidthLG:v,fontSizeIcon:m,marginXS:h,paddingSM:g,lineType:x,iconCls:y,motionDurationSlow:w}=e;return{display:"flex",flexDirection:"column",width:p,height:f,border:`${o}px ${x} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:v,height:"auto"},"&-search":{[`${y}-search`]:{color:d}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:i,padding:`${l-o}px ${g}px ${l}px`,color:e.colorText,background:e.colorBgContainer,borderBottom:`${o}px ${x} ${r}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":E(E({},gn),{flex:"auto",textAlign:"end"}),"&-dropdown":E(E({},Ji()),{fontSize:m,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",overflow:"hidden",fontSize:e.fontSize,"&-search-wrapper":{position:"relative",flex:"none",padding:g}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:a,padding:`${s}px ${g}px`,transition:`all ${w}`,"> *:not(:last-child)":{marginInlineEnd:h},"> *":{flex:"none"},"&-text":E(E({},gn),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${w}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",insert:`-${s}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:e.controlItemBgHover,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:c}},"&-checked":{backgroundColor:u},"&-disabled":{color:d,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${o}px ${x} ${r}`},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:d,textAlign:"center"},"&-footer":{borderTop:`${o}px ${x} ${r}`}}},_he=e=>{const{antCls:t,iconCls:n,componentCls:r,transferHeaderHeight:o,marginXS:a,marginXXS:i,fontSizeIcon:l,fontSize:s,lineHeight:u}=e;return{[r]:E(E({},rt(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:e.colorBgContainerDisabled}},[`${r}-list`]:Ihe(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${a}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:i},[n]:{fontSize:l}}},[`${t}-empty-image`]:{maxHeight:o/2-Math.round(s*u)}})}},Bhe=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Fhe=nt("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:o,controlHeight:a}=e,i=Math.round(t*n),l=o,s=a,u=qe(e,{transferItemHeight:s,transferHeaderHeight:l,transferHeaderVerticalPadding:Math.ceil((l-r-i)/2),transferItemPaddingVertical:(s-i)/2});return[_he(u),Nhe(u),Phe(u),Bhe(u)]},{listWidth:180,listHeight:200,listWidthLG:250}),Rhe=()=>({id:String,prefixCls:String,dataSource:bt([]),disabled:Pe(),targetKeys:bt(),selectedKeys:bt(),render:Oe(),listStyle:Xe([Function,Object],()=>({})),operationStyle:We(void 0),titles:bt(),operations:bt(),showSearch:Pe(!1),filterOption:Oe(),searchPlaceholder:String,notFoundContent:Z.any,locale:We(),rowKey:Oe(),showSelectAll:Pe(),selectAllLabels:bt(),children:Oe(),oneWay:Pe(),pagination:Xe([Object,Boolean]),status:Ue(),onChange:Oe(),onSelectChange:Oe(),onSearch:Oe(),onScroll:Oe(),"onUpdate:targetKeys":Oe(),"onUpdate:selectedKeys":Oe()}),zhe=he({compatConfig:{MODE:3},name:"ATransfer",inheritAttrs:!1,props:Rhe(),slots:Object,setup(e,t){let{emit:n,attrs:r,slots:o,expose:a}=t;const{configProvider:i,prefixCls:l,direction:s}=He("transfer",e),[u,c]=Fhe(l),d=be([]),f=be([]),p=Sn(),v=Bn.useInject(),m=z(()=>$o(v.status,e.status));Ne(()=>e.selectedKeys,()=>{var q,K;d.value=((q=e.selectedKeys)===null||q===void 0?void 0:q.filter(X=>e.targetKeys.indexOf(X)===-1))||[],f.value=((K=e.selectedKeys)===null||K===void 0?void 0:K.filter(X=>e.targetKeys.indexOf(X)>-1))||[]},{immediate:!0});const h=(q,K)=>{const X={notFoundContent:K("Transfer")},re=wn(o,e,"notFoundContent");return re&&(X.notFoundContent=re),e.searchPlaceholder!==void 0&&(X.searchPlaceholder=e.searchPlaceholder),E(E(E({},q),X),e.locale)},g=q=>{const{targetKeys:K=[],dataSource:X=[]}=e,re=q==="right"?d.value:f.value,ee=Dhe(X),G=re.filter(Se=>!ee.has(Se)),le=Q0(G),ue=q==="right"?G.concat(K):K.filter(Se=>!le.has(Se)),me=q==="right"?"left":"right";q==="right"?d.value=[]:f.value=[],n("update:targetKeys",ue),$(me,[]),n("change",ue,q,G),p.onFieldChange()},x=()=>{g("left")},y=()=>{g("right")},w=(q,K)=>{$(q,K)},b=q=>w("left",q),S=q=>w("right",q),$=(q,K)=>{q==="left"?(e.selectedKeys||(d.value=K),n("update:selectedKeys",[...K,...f.value]),n("selectChange",K,un(f.value))):(e.selectedKeys||(f.value=K),n("update:selectedKeys",[...K,...d.value]),n("selectChange",un(d.value),K))},D=(q,K)=>{const X=K.target.value;n("search",q,X)},O=q=>{D("left",q)},A=q=>{D("right",q)},T=q=>{n("search",q,"")},M=()=>{T("left")},B=()=>{T("right")},F=(q,K,X)=>{const re=q==="left"?[...d.value]:[...f.value],ee=re.indexOf(K);ee>-1&&re.splice(ee,1),X&&re.push(K),$(q,re)},P=(q,K)=>F("left",q,K),I=(q,K)=>F("right",q,K),N=q=>{const{targetKeys:K=[]}=e,X=K.filter(re=>!q.includes(re));n("update:targetKeys",X),n("change",X,"left",[...q])},R=(q,K)=>{n("scroll",q,K)},_=q=>{R("left",q)},L=q=>{R("right",q)},k=(q,K)=>typeof q=="function"?q({direction:K}):q,H=be([]),V=be([]);Je(()=>{const{dataSource:q,rowKey:K,targetKeys:X=[]}=e,re=[],ee=new Array(X.length),G=Q0(X);q.forEach(le=>{K&&(le.key=K(le)),G.has(le.key)?ee[G.get(le.key)]=le:re.push(le)}),H.value=re,V.value=ee}),a({handleSelectChange:$});const U=q=>{var K,X,re,ee,G,le;const{disabled:ue,operations:me=[],showSearch:Se,listStyle:Q,operationStyle:te,filterOption:de,showSelectAll:Y,selectAllLabels:ae=[],oneWay:ce,pagination:Ce,id:ye=p.id.value}=e,{class:J,style:ne}=r,oe=o.children,ie=!oe&&Ce,ve=i.renderEmpty,we=h(q,ve),{footer:$e}=o,Ae=e.render||o.render,xe=f.value.length>0,Ee=d.value.length>0,Te=ge(l.value,J,{[`${l.value}-disabled`]:ue,[`${l.value}-customize-list`]:!!oe,[`${l.value}-rtl`]:s.value==="rtl"},Qn(l.value,m.value,v.hasFeedback),c.value),Me=e.titles,Re=(re=(K=Me&&Me[0])!==null&&K!==void 0?K:(X=o.leftTitle)===null||X===void 0?void 0:X.call(o))!==null&&re!==void 0?re:(we.titles||["",""])[0],Be=(le=(ee=Me&&Me[1])!==null&&ee!==void 0?ee:(G=o.rightTitle)===null||G===void 0?void 0:G.call(o))!==null&&le!==void 0?le:(we.titles||["",""])[1];return C("div",j(j({},r),{},{class:Te,style:ne,id:ye}),[C(SE,j({key:"leftList",prefixCls:`${l.value}-list`,dataSource:H.value,filterOption:de,style:k(Q,"left"),checkedKeys:d.value,handleFilter:O,handleClear:M,onItemSelect:P,onItemSelectAll:b,renderItem:Ae,showSearch:Se,renderList:oe,onScroll:_,disabled:ue,direction:s.value==="rtl"?"right":"left",showSelectAll:Y,selectAllLabel:ae[0]||o.leftSelectAllLabel,pagination:ie},we),{titleText:()=>Re,footer:$e}),C(Mhe,{key:"operation",class:`${l.value}-operation`,rightActive:Ee,rightArrowText:me[0],moveToRight:y,leftActive:xe,leftArrowText:me[1],moveToLeft:x,style:te,disabled:ue,direction:s.value,oneWay:ce},null),C(SE,j({key:"rightList",prefixCls:`${l.value}-list`,dataSource:V.value,filterOption:de,style:k(Q,"right"),checkedKeys:f.value,handleFilter:A,handleClear:B,onItemSelect:I,onItemSelectAll:S,onItemRemove:N,renderItem:Ae,showSearch:Se,renderList:oe,onScroll:L,disabled:ue,direction:s.value==="rtl"?"left":"right",showSelectAll:Y,selectAllLabel:ae[1]||o.rightSelectAllLabel,showRemove:ce,pagination:ie},we),{titleText:()=>Be,footer:$e})])};return()=>u(C(Zi,{componentName:"Transfer",defaultLocale:cr.Transfer,children:U},null))}}),Lhe=rn(zhe);function khe(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Hhe(e){const{label:t,value:n,children:r}=e||{},o=n||"value";return{_title:t?[t]:["title","label"],value:o,key:o,children:r||"children"}}function ey(e){return e.disabled||e.disableCheckbox||e.checkable===!1}function jhe(e,t){const n=[];function r(o){o.forEach(a=>{n.push(a[t.value]);const i=a[t.children];i&&r(i)})}return r(e),n}function EE(e){return e==null}const N5=Symbol("TreeSelectContextPropsKey");function Vhe(e){return it(N5,e)}function Whe(){return lt(N5,{})}const Uhe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Khe=he({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{slots:n,expose:r}=t;const o=fc(),a=Em(),i=Whe(),l=be(),s=Nb(()=>i.treeData,[()=>o.open,()=>i.treeData],b=>b[0]),u=z(()=>{const{checkable:b,halfCheckedKeys:S,checkedKeys:$}=a;return b?{checked:$,halfChecked:S}:null});Ne(()=>o.open,()=>{ht(()=>{var b;o.open&&!o.multiple&&a.checkedKeys.length&&((b=l.value)===null||b===void 0||b.scrollTo({key:a.checkedKeys[0]}))})},{immediate:!0,flush:"post"});const c=z(()=>String(o.searchValue).toLowerCase()),d=b=>c.value?String(b[a.treeNodeFilterProp]).toLowerCase().includes(c.value):!1,f=pe(a.treeDefaultExpandedKeys),p=pe(null);Ne(()=>o.searchValue,()=>{o.searchValue&&(p.value=jhe(un(i.treeData),un(i.fieldNames)))},{immediate:!0});const v=z(()=>a.treeExpandedKeys?a.treeExpandedKeys.slice():o.searchValue?p.value:f.value),m=b=>{var S;f.value=b,p.value=b,(S=a.onTreeExpand)===null||S===void 0||S.call(a,b)},h=b=>{b.preventDefault()},g=(b,S)=>{let{node:$}=S;var D,O;const{checkable:A,checkedKeys:T}=a;A&&ey($)||((D=i.onSelect)===null||D===void 0||D.call(i,$.key,{selected:!T.includes($.key)}),o.multiple||(O=o.toggleOpen)===null||O===void 0||O.call(o,!1))},x=be(null),y=z(()=>a.keyEntities[x.value]),w=b=>{x.value=b};return r({scrollTo:function(){for(var b,S,$=arguments.length,D=new Array($),O=0;O<$;O++)D[O]=arguments[O];return(S=(b=l.value)===null||b===void 0?void 0:b.scrollTo)===null||S===void 0?void 0:S.call(b,...D)},onKeydown:b=>{var S;const{which:$}=b;switch($){case _e.UP:case _e.DOWN:case _e.LEFT:case _e.RIGHT:(S=l.value)===null||S===void 0||S.onKeydown(b);break;case _e.ENTER:{if(y.value){const{selectable:D,value:O}=y.value.node||{};D!==!1&&g(null,{node:{key:x.value},selected:!a.checkedKeys.includes(O)})}break}case _e.ESC:o.toggleOpen(!1)}},onKeyup:()=>{}}),()=>{var b;const{prefixCls:S,multiple:$,searchValue:D,open:O,notFoundContent:A=(b=n.notFoundContent)===null||b===void 0?void 0:b.call(n)}=o,{listHeight:T,listItemHeight:M,virtual:B,dropdownMatchSelectWidth:F,treeExpandAction:P}=i,{checkable:I,treeDefaultExpandAll:N,treeIcon:R,showTreeIcon:_,switcherIcon:L,treeLine:k,loadData:H,treeLoadedKeys:V,treeMotion:U,onTreeLoad:q,checkedKeys:K}=a;if(s.value.length===0)return C("div",{role:"listbox",class:`${S}-empty`,onMousedown:h},[A]);const X={fieldNames:i.fieldNames};return V&&(X.loadedKeys=V),v.value&&(X.expandedKeys=v.value),C("div",{onMousedown:h},[y.value&&O&&C("span",{style:Uhe,"aria-live":"assertive"},[y.value.node.value]),C(x5,j(j({ref:l,focusable:!1,prefixCls:`${S}-tree`,treeData:s.value,height:T,itemHeight:M,virtual:B!==!1&&F!==!1,multiple:$,icon:R,showIcon:_,switcherIcon:L,showLine:k,loadData:D?null:H,motion:U,activeKey:x.value,checkable:I,checkStrictly:!0,checkedKeys:u.value,selectedKeys:I?[]:K,defaultExpandAll:N},X),{},{onActiveChange:w,onSelect:g,onCheck:g,onExpand:m,onLoad:q,filterTreeNode:d,expandAction:P}),E(E({},n),{checkable:a.customSlots.treeCheckable}))])}}}),qhe="SHOW_ALL",P5="SHOW_PARENT",ww="SHOW_CHILD";function DE(e,t,n,r){const o=new Set(e);return t===ww?e.filter(a=>{const i=n[a];return!(i&&i.children&&i.children.some(l=>{let{node:s}=l;return o.has(s[r.value])})&&i.children.every(l=>{let{node:s}=l;return ey(s)||o.has(s[r.value])}))}):t===P5?e.filter(a=>{const i=n[a],l=i?i.parent:null;return!(l&&!ey(l.node)&&o.has(l.key))}):e}const vv=()=>null;vv.inheritAttrs=!1;vv.displayName="ATreeSelectNode";vv.isTreeSelectNode=!0;const Sw=vv;var Ghe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o0&&arguments[0]!==void 0?arguments[0]:[];return nn(n).map(r=>{var o,a,i;if(!Xhe(r))return null;const l=r.children||{},s=r.key,u={};for(const[$,D]of Object.entries(r.props))u[Yi($)]=D;const{isLeaf:c,checkable:d,selectable:f,disabled:p,disableCheckbox:v}=u,m={isLeaf:c||c===""||void 0,checkable:d||d===""||void 0,selectable:f||f===""||void 0,disabled:p||p===""||void 0,disableCheckbox:v||v===""||void 0},h=E(E({},u),m),{title:g=(o=l.title)===null||o===void 0?void 0:o.call(l,h),switcherIcon:x=(a=l.switcherIcon)===null||a===void 0?void 0:a.call(l,h)}=u,y=Ghe(u,["title","switcherIcon"]),w=(i=l.default)===null||i===void 0?void 0:i.call(l),b=E(E(E({},y),{title:g,switcherIcon:x,key:s,isLeaf:c}),m),S=t(w);return S.length&&(b.children=S),b})}return t(e)}function ty(e){if(!e)return e;const t=E({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function Zhe(e,t,n,r,o,a){let i=null,l=null;function s(){function u(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return c.map((p,v)=>{const m=`${d}-${v}`,h=p[a.value],g=n.includes(h),x=u(p[a.children]||[],m,g),y=C(Sw,p,{default:()=>[x.map(w=>w.node)]});if(t===h&&(i=y),g){const w={pos:m,node:y,children:x};return f||l.push(w),w}return null}).filter(p=>p)}l||(l=[],u(r),l.sort((c,d)=>{let{node:{props:{value:f}}}=c,{node:{props:{value:p}}}=d;const v=n.indexOf(f),m=n.indexOf(p);return v-m}))}Object.defineProperty(e,"triggerNode",{get(){return s(),i}}),Object.defineProperty(e,"allCheckedNodes",{get(){return s(),o?l:l.map(u=>{let{node:c}=u;return c})}})}function Jhe(e,t){let{id:n,pId:r,rootPId:o}=t;const a={},i=[];return e.map(s=>{const u=E({},s),c=u[n];return a[c]=u,u.key=u.key||c,u}).forEach(s=>{const u=s[r],c=a[u];c&&(c.children=c.children||[],c.children.push(s)),(u===o||!c&&o===null)&&i.push(s)}),i}function Qhe(e,t,n){const r=pe();return Ne([n,e,t],()=>{const o=n.value;e.value?r.value=n.value?Jhe(un(e.value),E({id:"id",pId:"pId",rootPId:null},o!==!0?o:{})):un(e.value).slice():r.value=Yhe(un(t.value))},{immediate:!0,deep:!0}),r}const ege=e=>{const t=pe({valueLabels:new Map}),n=pe();return Ne(e,()=>{n.value=un(e.value)},{immediate:!0}),[z(()=>{const{valueLabels:o}=t.value,a=new Map,i=n.value.map(l=>{var s;const{value:u}=l,c=(s=l.label)!==null&&s!==void 0?s:o.get(u);return a.set(u,c),E(E({},l),{label:c})});return t.value.valueLabels=a,i})]},tge=(e,t)=>{const n=pe(new Map),r=pe({});return Je(()=>{const o=t.value,a=Cc(e.value,{fieldNames:o,initWrapper:i=>E(E({},i),{valueEntities:new Map}),processEntity:(i,l)=>{const s=i.node[o.value];l.valueEntities.set(s,i)}});n.value=a.valueEntities,r.value=a.keyEntities}),{valueEntities:n,keyEntities:r}},nge=(e,t,n,r,o,a)=>{const i=pe([]),l=pe([]);return Je(()=>{let s=e.value.map(d=>{let{value:f}=d;return f}),u=t.value.map(d=>{let{value:f}=d;return f});const c=s.filter(d=>!r.value[d]);n.value&&({checkedKeys:s,halfCheckedKeys:u}=Yr(s,!0,r.value,o.value,a.value)),i.value=Array.from(new Set([...c,...s])),l.value=u}),[i,l]},rge=(e,t,n)=>{let{treeNodeFilterProp:r,filterTreeNode:o,fieldNames:a}=n;return z(()=>{const{children:i}=a.value,l=t.value,s=r==null?void 0:r.value;if(!l||o.value===!1)return e.value;let u;if(typeof o.value=="function")u=o.value;else{const d=l.toUpperCase();u=(f,p)=>{const v=p[s];return String(v).toUpperCase().includes(d)}}function c(d){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const p=[];for(let v=0,m=d.length;ve.treeCheckable&&!e.treeCheckStrictly),l=z(()=>e.treeCheckable||e.treeCheckStrictly),s=z(()=>e.treeCheckStrictly||e.labelInValue),u=z(()=>l.value||e.multiple),c=z(()=>Hhe(e.fieldNames)),[d,f]=Zt("",{value:z(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:ye=>ye||""}),p=ye=>{var J;f(ye),(J=e.onSearch)===null||J===void 0||J.call(e,ye)},v=Qhe(Ye(e,"treeData"),Ye(e,"children"),Ye(e,"treeDataSimpleMode")),{keyEntities:m,valueEntities:h}=tge(v,c),g=ye=>{const J=[],ne=[];return ye.forEach(oe=>{h.value.has(oe)?ne.push(oe):J.push(oe)}),{missingRawValues:J,existRawValues:ne}},x=rge(v,d,{fieldNames:c,treeNodeFilterProp:Ye(e,"treeNodeFilterProp"),filterTreeNode:Ye(e,"filterTreeNode")}),y=ye=>{if(ye){if(e.treeNodeLabelProp)return ye[e.treeNodeLabelProp];const{_title:J}=c.value;for(let ne=0;nekhe(ye).map(ne=>oge(ne)?{value:ne}:ne),b=ye=>w(ye).map(ne=>{let{label:oe}=ne;const{value:ie,halfChecked:ve}=ne;let we;const $e=h.value.get(ie);return $e&&(oe=oe??y($e.node),we=$e.node.disabled),{label:oe,value:ie,halfChecked:ve,disabled:we}}),[S,$]=Zt(e.defaultValue,{value:Ye(e,"value")}),D=z(()=>w(S.value)),O=pe([]),A=pe([]);Je(()=>{const ye=[],J=[];D.value.forEach(ne=>{ne.halfChecked?J.push(ne):ye.push(ne)}),O.value=ye,A.value=J});const T=z(()=>O.value.map(ye=>ye.value)),{maxLevel:M,levelEntities:B}=Qm(m),[F,P]=nge(O,A,i,m,M,B),I=z(()=>{const ne=DE(F.value,e.showCheckedStrategy,m.value,c.value).map(ve=>{var we,$e,Ae;return(Ae=($e=(we=m.value[ve])===null||we===void 0?void 0:we.node)===null||$e===void 0?void 0:$e[c.value.value])!==null&&Ae!==void 0?Ae:ve}).map(ve=>{const we=O.value.find($e=>$e.value===ve);return{value:ve,label:we==null?void 0:we.label}}),oe=b(ne),ie=oe[0];return!u.value&&ie&&EE(ie.value)&&EE(ie.label)?[]:oe.map(ve=>{var we;return E(E({},ve),{label:(we=ve.label)!==null&&we!==void 0?we:ve.value})})}),[N]=ege(I),R=(ye,J,ne)=>{const oe=b(ye);if($(oe),e.autoClearSearchValue&&f(""),e.onChange){let ie=ye;i.value&&(ie=DE(ye,e.showCheckedStrategy,m.value,c.value).map(Re=>{const Be=h.value.get(Re);return Be?Be.node[c.value.value]:Re}));const{triggerValue:ve,selected:we}=J||{triggerValue:void 0,selected:void 0};let $e=ie;if(e.treeCheckStrictly){const Me=A.value.filter(Re=>!ie.includes(Re.value));$e=[...$e,...Me]}const Ae=b($e),xe={preValue:O.value,triggerValue:ve};let Ee=!0;(e.treeCheckStrictly||ne==="selection"&&!we)&&(Ee=!1),Zhe(xe,ve,ye,v.value,Ee,c.value),l.value?xe.checked=we:xe.selected=we;const Te=s.value?Ae:Ae.map(Me=>Me.value);e.onChange(u.value?Te:Te[0],s.value?null:Ae.map(Me=>Me.label),xe)}},_=(ye,J)=>{let{selected:ne,source:oe}=J;var ie,ve,we;const $e=un(m.value),Ae=un(h.value),xe=$e[ye],Ee=xe==null?void 0:xe.node,Te=(ie=Ee==null?void 0:Ee[c.value.value])!==null&&ie!==void 0?ie:ye;if(!u.value)R([Te],{selected:!0,triggerValue:Te},"option");else{let Me=ne?[...T.value,Te]:F.value.filter(Re=>Re!==Te);if(i.value){const{missingRawValues:Re,existRawValues:Be}=g(Me),je=Be.map(fe=>Ae.get(fe).key);let W;ne?{checkedKeys:W}=Yr(je,!0,$e,M.value,B.value):{checkedKeys:W}=Yr(je,{checked:!1,halfCheckedKeys:P.value},$e,M.value,B.value),Me=[...Re,...W.map(fe=>$e[fe].node[c.value.value])]}R(Me,{selected:ne,triggerValue:Te},oe||"option")}ne||!u.value?(ve=e.onSelect)===null||ve===void 0||ve.call(e,Te,ty(Ee)):(we=e.onDeselect)===null||we===void 0||we.call(e,Te,ty(Ee))},L=ye=>{if(e.onDropdownVisibleChange){const J={};Object.defineProperty(J,"documentClickClose",{get(){return!1}}),e.onDropdownVisibleChange(ye,J)}},k=(ye,J)=>{const ne=ye.map(oe=>oe.value);if(J.type==="clear"){R(ne,{},"selection");return}J.values.length&&_(J.values[0].value,{selected:!1,source:"selection"})},{treeNodeFilterProp:H,loadData:V,treeLoadedKeys:U,onTreeLoad:q,treeDefaultExpandAll:K,treeExpandedKeys:X,treeDefaultExpandedKeys:re,onTreeExpand:ee,virtual:G,listHeight:le,listItemHeight:ue,treeLine:me,treeIcon:Se,showTreeIcon:Q,switcherIcon:te,treeMotion:de,customSlots:Y,dropdownMatchSelectWidth:ae,treeExpandAction:ce}=Xr(e);_j(Ru({checkable:l,loadData:V,treeLoadedKeys:U,onTreeLoad:q,checkedKeys:F,halfCheckedKeys:P,treeDefaultExpandAll:K,treeExpandedKeys:X,treeDefaultExpandedKeys:re,onTreeExpand:ee,treeIcon:Se,treeMotion:de,showTreeIcon:Q,switcherIcon:te,treeLine:me,treeNodeFilterProp:H,keyEntities:m,customSlots:Y})),Vhe(Ru({virtual:G,listHeight:le,listItemHeight:ue,treeData:x,fieldNames:c,onSelect:_,dropdownMatchSelectWidth:ae,treeExpandAction:ce}));const Ce=be();return r({focus(){var ye;(ye=Ce.value)===null||ye===void 0||ye.focus()},blur(){var ye;(ye=Ce.value)===null||ye===void 0||ye.blur()},scrollTo(ye){var J;(J=Ce.value)===null||J===void 0||J.scrollTo(ye)}}),()=>{var ye;const J=pt(e,["id","prefixCls","customSlots","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","virtual","listHeight","listItemHeight","onDropdownVisibleChange","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"]);return C(Mb,j(j(j({ref:Ce},n),J),{},{id:a,prefixCls:e.prefixCls,mode:u.value?"multiple":void 0,displayValues:N.value,onDisplayValuesChange:k,searchValue:d.value,onSearch:p,OptionList:Khe,emptyOptions:!v.value.length,onDropdownVisibleChange:L,tagRender:e.tagRender||o.tagRender,dropdownMatchSelectWidth:(ye=e.dropdownMatchSelectWidth)!==null&&ye!==void 0?ye:!0}),o)}}}),ige=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,o=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${e.paddingXS}px ${e.paddingXS/2}px`},S5(n,qe(e,{colorBgContainer:r})),{[o]:{borderRadius:0,"&-list-holder-inner":{alignItems:"stretch",[`${o}-treenode`]:{[`${o}-node-content-wrapper`]:{flex:"auto"}}}}},rv(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${o}-switcher${o}-switcher_close`]:{[`${o}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function lge(e,t){return nt("TreeSelect",n=>{const r=qe(n,{treePrefixCls:t.value});return[ige(r)]})(e)}const AE=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function sge(){return E(E({},pt(I5(),["showTreeIcon","treeMotion","inputIcon","getInputElement","treeLine","customSlots"])),{suffixIcon:Z.any,size:Ue(),bordered:Pe(),treeLine:Xe([Boolean,Object]),replaceFields:We(),placement:Ue(),status:Ue(),popupClassName:String,dropdownClassName:String,"onUpdate:value":Oe(),"onUpdate:treeExpandedKeys":Oe(),"onUpdate:searchValue":Oe()})}const Qh=he({compatConfig:{MODE:3},name:"ATreeSelect",inheritAttrs:!1,props:at(sge(),{choiceTransitionName:"",listHeight:256,treeIcon:!1,listItemHeight:26,bordered:!0}),slots:Object,setup(e,t){let{attrs:n,slots:r,expose:o,emit:a}=t;e.treeData===void 0&&r.default,qt(e.multiple!==!1||!e.treeCheckable,"TreeSelect","`multiple` will always be `true` when `treeCheckable` is true"),qt(e.replaceFields===void 0,"TreeSelect","`replaceFields` is deprecated, please use fieldNames instead"),qt(!e.dropdownClassName,"TreeSelect","`dropdownClassName` is deprecated. Please use `popupClassName` instead.");const i=Sn(),l=Bn.useInject(),s=z(()=>$o(l.status,e.status)),{prefixCls:u,renderEmpty:c,direction:d,virtual:f,dropdownMatchSelectWidth:p,size:v,getPopupContainer:m,getPrefixCls:h,disabled:g}=He("select",e),{compactSize:x,compactItemClassnames:y}=di(u,d),w=z(()=>x.value||v.value),b=Fr(),S=z(()=>{var U;return(U=g.value)!==null&&U!==void 0?U:b.value}),$=z(()=>h()),D=z(()=>e.placement!==void 0?e.placement:d.value==="rtl"?"bottomRight":"bottomLeft"),O=z(()=>AE($.value,Db(D.value),e.transitionName)),A=z(()=>AE($.value,"",e.choiceTransitionName)),T=z(()=>h("select-tree",e.prefixCls)),M=z(()=>h("tree-select",e.prefixCls)),[B,F]=e1(u),[P]=lge(M,T),I=z(()=>ge(e.popupClassName||e.dropdownClassName,`${M.value}-dropdown`,{[`${M.value}-dropdown-rtl`]:d.value==="rtl"},F.value)),N=z(()=>!!(e.treeCheckable||e.multiple)),R=z(()=>e.showArrow!==void 0?e.showArrow:e.loading||!N.value),_=be();o({focus(){var U,q;(q=(U=_.value).focus)===null||q===void 0||q.call(U)},blur(){var U,q;(q=(U=_.value).blur)===null||q===void 0||q.call(U)}});const L=function(){for(var U=arguments.length,q=new Array(U),K=0;K{a("update:treeExpandedKeys",U),a("treeExpand",U)},H=U=>{a("update:searchValue",U),a("search",U)},V=U=>{a("blur",U),i.onFieldBlur()};return()=>{var U,q;const{notFoundContent:K=(U=r.notFoundContent)===null||U===void 0?void 0:U.call(r),prefixCls:X,bordered:re,listHeight:ee,listItemHeight:G,multiple:le,treeIcon:ue,treeLine:me,showArrow:Se,switcherIcon:Q=(q=r.switcherIcon)===null||q===void 0?void 0:q.call(r),fieldNames:te=e.replaceFields,id:de=i.id.value}=e,{isFormItemInput:Y,hasFeedback:ae,feedbackIcon:ce}=l,{suffixIcon:Ce,removeIcon:ye,clearIcon:J}=jb(E(E({},e),{multiple:N.value,showArrow:R.value,hasFeedback:ae,feedbackIcon:ce,prefixCls:u.value}),r);let ne;K!==void 0?ne=K:ne=c("Select");const oe=pt(e,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","bordered","status","onUpdate:value","onUpdate:treeExpandedKeys","onUpdate:searchValue"]),ie=ge(!X&&M.value,{[`${u.value}-lg`]:w.value==="large",[`${u.value}-sm`]:w.value==="small",[`${u.value}-rtl`]:d.value==="rtl",[`${u.value}-borderless`]:!re,[`${u.value}-in-form-item`]:Y},Qn(u.value,s.value,ae),y.value,n.class,F.value),ve={};return e.treeData===void 0&&r.default&&(ve.children=Lt(r.default())),B(P(C(age,j(j(j(j({},n),oe),{},{disabled:S.value,virtual:f.value,dropdownMatchSelectWidth:p.value,id:de,fieldNames:te,ref:_,prefixCls:u.value,class:ie,listHeight:ee,listItemHeight:G,treeLine:!!me,inputIcon:Ce,multiple:le,removeIcon:ye,clearIcon:J,switcherIcon:we=>w5(T.value,Q,we,r.leafIcon,me),showTreeIcon:ue,notFoundContent:ne,getPopupContainer:m==null?void 0:m.value,treeMotion:null,dropdownClassName:I.value,choiceTransitionName:A.value,onChange:L,onBlur:V,onSearch:H,onTreeExpand:k},ve),{},{transitionName:O.value,customSlots:E(E({},r),{treeCheckable:()=>C("span",{class:`${u.value}-tree-checkbox-inner`},null)}),maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,placement:D.value,showArrow:ae||Se}),E(E({},r),{treeCheckable:()=>C("span",{class:`${u.value}-tree-checkbox-inner`},null)}))))}}}),ny=Sw,uge=E(Qh,{TreeNode:Sw,SHOW_ALL:qhe,SHOW_PARENT:P5,SHOW_CHILD:ww,install:e=>(e.component(Qh.name,Qh),e.component(ny.displayName,ny),e)}),eg=()=>({format:String,showNow:Pe(),showHour:Pe(),showMinute:Pe(),showSecond:Pe(),use12Hours:Pe(),hourStep:Number,minuteStep:Number,secondStep:Number,hideDisabledOptions:Pe(),popupClassName:String,status:Ue()});function cge(e){const t=K8(e,E(E({},eg()),{order:{type:Boolean,default:!0}})),{TimePicker:n,RangePicker:r}=t,o=he({name:"ATimePicker",inheritAttrs:!1,props:E(E(E(E({},Sp()),V8()),eg()),{addon:{type:Function}}),slots:Object,setup(i,l){let{slots:s,expose:u,emit:c,attrs:d}=l;const f=i,p=Sn();qt(!(s.addon||f.addon),"TimePicker","`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");const v=be();u({focus:()=>{var w;(w=v.value)===null||w===void 0||w.focus()},blur:()=>{var w;(w=v.value)===null||w===void 0||w.blur()}});const m=(w,b)=>{c("update:value",w),c("change",w,b),p.onFieldChange()},h=w=>{c("update:open",w),c("openChange",w)},g=w=>{c("focus",w)},x=w=>{c("blur",w),p.onFieldBlur()},y=w=>{c("ok",w)};return()=>{const{id:w=p.id.value}=f;return C(n,j(j(j({},d),pt(f,["onUpdate:value","onUpdate:open"])),{},{id:w,dropdownClassName:f.popupClassName,mode:void 0,ref:v,renderExtraFooter:f.addon||s.addon||f.renderExtraFooter||s.renderExtraFooter,onChange:m,onOpenChange:h,onFocus:g,onBlur:x,onOk:y}),s)}}}),a=he({name:"ATimeRangePicker",inheritAttrs:!1,props:E(E(E(E({},Sp()),W8()),eg()),{order:{type:Boolean,default:!0}}),slots:Object,setup(i,l){let{slots:s,expose:u,emit:c,attrs:d}=l;const f=i,p=be(),v=Sn();u({focus:()=>{var S;(S=p.value)===null||S===void 0||S.focus()},blur:()=>{var S;(S=p.value)===null||S===void 0||S.blur()}});const m=(S,$)=>{c("update:value",S),c("change",S,$),v.onFieldChange()},h=S=>{c("update:open",S),c("openChange",S)},g=S=>{c("focus",S)},x=S=>{c("blur",S),v.onFieldBlur()},y=(S,$)=>{c("panelChange",S,$)},w=S=>{c("ok",S)},b=(S,$,D)=>{c("calendarChange",S,$,D)};return()=>{const{id:S=v.id.value}=f;return C(r,j(j(j({},d),pt(f,["onUpdate:open","onUpdate:value"])),{},{id:S,dropdownClassName:f.popupClassName,picker:"time",mode:void 0,ref:p,onChange:m,onOpenChange:h,onFocus:g,onBlur:x,onPanelChange:y,onOk:w,onCalendarChange:b}),s)}}});return{TimePicker:o,TimeRangePicker:a}}const{TimePicker:gd,TimeRangePicker:Df}=cge(E1),dge=E(gd,{TimePicker:gd,TimeRangePicker:Df,install:e=>(e.component(gd.name,gd),e.component(Df.name,Df),e)}),fge=()=>({prefixCls:String,color:String,dot:Z.any,pending:Pe(),position:Z.oneOf(Un("left","right","")).def(""),label:Z.any}),tc=he({compatConfig:{MODE:3},name:"ATimelineItem",props:at(fge(),{color:"blue",pending:!1}),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:r}=He("timeline",e),o=z(()=>({[`${r.value}-item`]:!0,[`${r.value}-item-pending`]:e.pending})),a=z(()=>/blue|red|green|gray/.test(e.color||"")?void 0:e.color||"blue"),i=z(()=>({[`${r.value}-item-head`]:!0,[`${r.value}-item-head-${e.color||"blue"}`]:!a.value}));return()=>{var l,s,u;const{label:c=(l=n.label)===null||l===void 0?void 0:l.call(n),dot:d=(s=n.dot)===null||s===void 0?void 0:s.call(n)}=e;return C("li",{class:o.value},[c&&C("div",{class:`${r.value}-item-label`},[c]),C("div",{class:`${r.value}-item-tail`},null),C("div",{class:[i.value,!!d&&`${r.value}-item-head-custom`],style:{borderColor:a.value,color:a.value}},[d]),C("div",{class:`${r.value}-item-content`},[(u=n.default)===null||u===void 0?void 0:u.call(n)])])}}}),pge=e=>{const{componentCls:t}=e;return{[t]:E(E({},rt(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.timeLineItemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize,insetInlineStart:(e.timeLineItemHeadSize-e.timeLineItemTailWidth)/2,height:`calc(100% - ${e.timeLineItemHeadSize}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px ${e.lineType} ${e.colorSplit}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.timeLineItemHeadSize,height:e.timeLineItemHeadSize,backgroundColor:e.colorBgContainer,border:`${e.timeLineHeadBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize/2,insetInlineStart:e.timeLineItemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}}},[`&${t}-alternate, &${t}-right, &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${e.marginXXS}px`,"&-custom":{marginInlineStart:e.timeLineItemTailWidth/2}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${e.marginXXS}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${e.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail, ${t}-item-head, ${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(e.timeLineItemHeadSize+e.timeLineItemTailWidth)/2}px)`},[`${t}-item-content`]:{width:`calc(100% - ${e.timeLineItemHeadSize+e.marginXS}px)`}}},[`&${t}-pending ${t}-item-last ${t}-item-tail`]:{display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`&${t}-reverse ${t}-item-last ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.timeLineItemTailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},mge=nt("Timeline",e=>{const t=qe(e,{timeLineItemPaddingBottom:e.padding*1.25,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3});return[pge(t)]}),vge=()=>({prefixCls:String,pending:Z.any,pendingDot:Z.any,reverse:Pe(),mode:Z.oneOf(Un("left","alternate","right",""))}),Ou=he({compatConfig:{MODE:3},name:"ATimeline",inheritAttrs:!1,props:at(vge(),{reverse:!1,mode:""}),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("timeline",e),[i,l]=mge(o),s=(u,c)=>{const d=u.props||{};return e.mode==="alternate"?d.position==="right"?`${o.value}-item-right`:d.position==="left"?`${o.value}-item-left`:c%2===0?`${o.value}-item-left`:`${o.value}-item-right`:e.mode==="left"?`${o.value}-item-left`:e.mode==="right"?`${o.value}-item-right`:d.position==="right"?`${o.value}-item-right`:""};return()=>{var u,c,d;const{pending:f=(u=n.pending)===null||u===void 0?void 0:u.call(n),pendingDot:p=(c=n.pendingDot)===null||c===void 0?void 0:c.call(n),reverse:v,mode:m}=e,h=typeof f=="boolean"?null:f,g=nn((d=n.default)===null||d===void 0?void 0:d.call(n)),x=f?C(tc,{pending:!!f,dot:p||C(Lr,null,null)},{default:()=>[h]}):null;x&&g.push(x);const y=v?g.reverse():g,w=y.length,b=`${o.value}-item-last`,S=y.map((O,A)=>{const T=A===w-2?b:"",M=A===w-1?b:"";return ha(O,{class:ge([!v&&f?T:M,s(O,A)])})}),$=y.some(O=>{var A,T;return!!(!((A=O.props)===null||A===void 0)&&A.label||!((T=O.children)===null||T===void 0)&&T.label)}),D=ge(o.value,{[`${o.value}-pending`]:!!f,[`${o.value}-reverse`]:!!v,[`${o.value}-${m}`]:!!m&&!$,[`${o.value}-label`]:$,[`${o.value}-rtl`]:a.value==="rtl"},r.class,l.value);return i(C("ul",j(j({},r),{},{class:D}),[S]))}}});Ou.Item=tc;Ou.install=function(e){return e.component(Ou.name,Ou),e.component(tc.name,tc),e};const hge=(e,t,n,r)=>{const{sizeMarginHeadingVerticalEnd:o,fontWeightStrong:a}=r;return{marginBottom:o,color:n,fontWeight:a,fontSize:e,lineHeight:t}},gge=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` h${r}&, div&-h${r}, div&-h${r} > textarea, h${r} `]=hge(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},yge=e=>{const{componentCls:t}=e;return{"a&, a":E(E({},fm(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"}}})}},bge=()=>({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:T9[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}}),xge=e=>{const{componentCls:t}=e,r=ll(e).inputPaddingVertical+1;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-r,marginBottom:`calc(1em - ${r}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"}}}},wge=e=>({"&-copy-success":{[` &, &:hover, &:focus`]:{color:e.colorSuccess}}}),Sge=()=>({[` a&-ellipsis, span&-ellipsis `]:{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"}}),Cge=e=>{const{componentCls:t,sizeMarginHeadingVerticalStart:n}=e;return{[t]:E(E(E(E(E(E(E(E(E({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"},[` div&, p `]:{marginBottom:"1em"}},gge(e)),{[` & + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t} `]:{marginTop:n},[` div, ul, li, p, h1, h2, h3, h4, h5`]:{[` + h1, + h2, + h3, + h4, + h5 `]:{marginTop:n}}}),bge()),yge(e)),{[` ${t}-expand, ${t}-edit, ${t}-copy `]:E(E({},fm(e)),{marginInlineStart:e.marginXXS})}),xge(e)),wge(e)),Sge()),{"&-rtl":{direction:"rtl"}})}},_5=nt("Typography",e=>[Cge(e)],{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),$ge=()=>({prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String}),Ege=he({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:$ge(),setup(e,t){let{emit:n,slots:r,attrs:o}=t;const{prefixCls:a}=Xr(e),i=_t({current:e.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});Ne(()=>e.value,x=>{i.current=x});const l=be();Qe(()=>{var x;if(l.value){const y=(x=l.value)===null||x===void 0?void 0:x.resizableTextArea,w=y==null?void 0:y.textArea;w.focus();const{length:b}=w.value;w.setSelectionRange(b,b)}});function s(x){l.value=x}function u(x){let{target:{value:y}}=x;i.current=y.replace(/[\r\n]/g,""),n("change",i.current)}function c(){i.inComposition=!0}function d(){i.inComposition=!1}function f(x){const{keyCode:y}=x;y===_e.ENTER&&x.preventDefault(),!i.inComposition&&(i.lastKeyCode=y)}function p(x){const{keyCode:y,ctrlKey:w,altKey:b,metaKey:S,shiftKey:$}=x;i.lastKeyCode===y&&!i.inComposition&&!w&&!b&&!S&&!$&&(y===_e.ENTER?(m(),n("end")):y===_e.ESC&&(i.current=e.originContent,n("cancel")))}function v(){m()}function m(){n("save",i.current.trim())}const[h,g]=_5(a);return()=>{const x=ge({[`${a.value}`]:!0,[`${a.value}-edit-content`]:!0,[`${a.value}-rtl`]:e.direction==="rtl",[e.component?`${a.value}-${e.component}`:""]:!0},o.class,g.value);return h(C("div",j(j({},o),{},{class:x}),[C(lw,{ref:s,maxlength:e.maxlength,value:i.current,onChange:u,onKeydown:f,onKeyup:p,onCompositionstart:c,onCompositionend:d,onBlur:v,rows:1,autoSize:e.autoSize===void 0||e.autoSize},null),r.enterIcon?r.enterIcon({className:`${e.prefixCls}-edit-content-confirm`}):C(fae,{class:`${e.prefixCls}-edit-content-confirm`},null)]))}}}),Dge=Ege,Age=3,Oge=8;let hr;const tg={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function Tge(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function B5(e,t){e.setAttribute("aria-hidden","true");const n=window.getComputedStyle(t),r=Tge(n);e.setAttribute("style",r),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"}function Mge(e){const t=document.createElement("div");B5(t,e),t.appendChild(document.createTextNode("text")),document.body.appendChild(t);const n=t.getBoundingClientRect().height;return document.body.removeChild(t),n}const Nge=(e,t,n,r,o)=>{hr||(hr=document.createElement("div"),hr.setAttribute("aria-hidden","true"),document.body.appendChild(hr));const{rows:a,suffix:i=""}=t,l=Mge(e),s=Math.round(l*a*100)/100;B5(hr,e);const u=ET({render(){return C("div",{style:tg},[C("span",{style:tg},[n,i]),C("span",{style:tg},[r])])}});u.mount(hr);function c(){return Math.round(hr.getBoundingClientRect().height*100)/100-.1<=s}if(c())return u.unmount(),{content:n,text:hr.innerHTML,ellipsis:!1};const d=Array.prototype.slice.apply(hr.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(y=>{let{nodeType:w,data:b}=y;return w!==Oge&&b!==""}),f=Array.prototype.slice.apply(hr.childNodes[0].childNodes[1].cloneNode(!0).childNodes);u.unmount();const p=[];hr.innerHTML="";const v=document.createElement("span");hr.appendChild(v);const m=document.createTextNode(o+i);v.appendChild(m),f.forEach(y=>{hr.appendChild(y)});function h(y){v.insertBefore(y,m)}function g(y,w){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:w.length,$=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const D=Math.floor((b+S)/2),O=w.slice(0,D);if(y.textContent=O,b>=S-1)for(let A=S;A>=b;A-=1){const T=w.slice(0,A);if(y.textContent=T,c()||!T)return A===w.length?{finished:!1,vNode:w}:{finished:!0,vNode:T}}return c()?g(y,w,D,S,D):g(y,w,b,D,$)}function x(y){if(y.nodeType===Age){const b=y.textContent||"",S=document.createTextNode(b);return h(S),g(S,b)}return{finished:!1,vNode:null}}return d.some(y=>{const{finished:w,vNode:b}=x(y);return b&&p.push(b),w}),{content:p,text:hr.innerHTML,ellipsis:!0}};var Pge=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o({prefixCls:String,direction:String,component:String}),_ge=he({name:"ATypography",inheritAttrs:!1,props:Ige(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("typography",e),[i,l]=_5(o);return()=>{var s;const u=E(E({},e),r),{prefixCls:c,direction:d,component:f="article"}=u,p=Pge(u,["prefixCls","direction","component"]);return i(C(f,j(j({},p),{},{class:ge(o.value,{[`${o.value}-rtl`]:a.value==="rtl"},r.class,l.value)}),{default:()=>[(s=n.default)===null||s===void 0?void 0:s.call(n)]}))}}}),gr=_ge,Bge=()=>{const e=document.getSelection();if(!e.rangeCount)return function(){};let t=document.activeElement;const n=[];for(let r=0;r"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();const d=OE[t.format]||OE.default;window.clipboardData.setData(d,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(i),o.selectNodeContents(i),a.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(u){s&&console.error("unable to copy using execCommand: ",u),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(c){s&&console.error("unable to copy using clipboardData: ",c),s&&console.error("falling back to prompt"),n=zge("message"in t?t.message:Rge),window.prompt(n,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),i&&document.body.removeChild(i),r()}return l}var kge=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o({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}),Vge=he({compatConfig:{MODE:3},name:"Base",inheritAttrs:!1,props:Oc(),setup(e,t){let{slots:n,attrs:r,emit:o}=t;const{prefixCls:a,direction:i}=He("typography",e),l=_t({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:""}),s=be(),u=be(),c=z(()=>{const P=e.ellipsis;return P?E({rows:1,expandable:!1},typeof P=="object"?P:null):{}});Qe(()=>{l.clientRendered=!0}),st(()=>{clearTimeout(l.copyId),tt.cancel(l.rafId)}),Ne([()=>c.value.rows,()=>e.content],()=>{ht(()=>{S()})},{flush:"post",deep:!0,immediate:!0}),Je(()=>{e.content===void 0&&(Jt(!e.editable),Jt(!e.ellipsis))});function d(){var P;return e.ellipsis||e.editable?e.content:(P=yr(s.value))===null||P===void 0?void 0:P.innerText}function f(P){const{onExpand:I}=c.value;l.expanded=!0,I==null||I(P)}function p(P){P.preventDefault(),l.originContent=e.content,b(!0)}function v(P){m(P),b(!1)}function m(P){const{onChange:I}=x.value;P!==e.content&&(o("update:content",P),I==null||I(P))}function h(){var P,I;(I=(P=x.value).onCancel)===null||I===void 0||I.call(P),b(!1)}function g(P){P.preventDefault(),P.stopPropagation();const{copyable:I}=e,N=E({},typeof I=="object"?I:null);N.text===void 0&&(N.text=d()),Lge(N.text||""),l.copied=!0,ht(()=>{N.onCopy&&N.onCopy(P),l.copyId=setTimeout(()=>{l.copied=!1},3e3)})}const x=z(()=>{const P=e.editable;return P?E({},typeof P=="object"?P:null):{editing:!1}}),[y,w]=Zt(!1,{value:z(()=>x.value.editing)});function b(P){const{onStart:I}=x.value;P&&I&&I(),w(P)}Ne(y,P=>{var I;P||(I=u.value)===null||I===void 0||I.focus()},{flush:"post"});function S(){tt.cancel(l.rafId),l.rafId=tt(()=>{D()})}const $=z(()=>{const{rows:P,expandable:I,suffix:N,onEllipsis:R,tooltip:_}=c.value;return N||_||e.editable||e.copyable||I||R?!1:P===1?jge:Hge}),D=()=>{const{ellipsisText:P,isEllipsis:I}=l,{rows:N,suffix:R,onEllipsis:_}=c.value;if(!N||N<0||!yr(s.value)||l.expanded||e.content===void 0||$.value)return;const{content:L,text:k,ellipsis:H}=Nge(yr(s.value),{rows:N,suffix:R},e.content,F(!0),TE);(P!==k||l.isEllipsis!==H)&&(l.ellipsisText=k,l.ellipsisContent=L,l.isEllipsis=H,I!==H&&_&&_(H))};function O(P,I){let{mark:N,code:R,underline:_,delete:L,strong:k,keyboard:H}=P,V=I;function U(q,K){if(!q)return;const X=function(){return V}();V=C(K,null,{default:()=>[X]})}return U(k,"strong"),U(_,"u"),U(L,"del"),U(R,"code"),U(N,"mark"),U(H,"kbd"),V}function A(P){const{expandable:I,symbol:N}=c.value;if(!I||!P&&(l.expanded||!l.isEllipsis))return null;const R=(n.ellipsisSymbol?n.ellipsisSymbol():N)||l.expandStr;return C("a",{key:"expand",class:`${a.value}-expand`,onClick:f,"aria-label":l.expandStr},[R])}function T(){if(!e.editable)return;const{tooltip:P,triggerType:I=["icon"]}=e.editable,N=n.editableIcon?n.editableIcon():C(sae,{role:"button"},null),R=n.editableTooltip?n.editableTooltip():l.editStr,_=typeof R=="string"?R:"";return I.indexOf("icon")!==-1?C(Br,{key:"edit",title:P===!1?"":R},{default:()=>[C(Ap,{ref:u,class:`${a.value}-edit`,onClick:p,"aria-label":_},{default:()=>[N]})]}):null}function M(){if(!e.copyable)return;const{tooltip:P}=e.copyable,I=l.copied?l.copiedStr:l.copyStr,N=n.copyableTooltip?n.copyableTooltip({copied:l.copied}):I,R=typeof N=="string"?N:"",_=l.copied?C(Om,null,null):C(Uoe,null,null),L=n.copyableIcon?n.copyableIcon({copied:!!l.copied}):_;return C(Br,{key:"copy",title:P===!1?"":N},{default:()=>[C(Ap,{class:[`${a.value}-copy`,{[`${a.value}-copy-success`]:l.copied}],onClick:g,"aria-label":R},{default:()=>[L]})]})}function B(){const{class:P,style:I}=r,{maxlength:N,autoSize:R,onEnd:_}=x.value;return C(Dge,{class:P,style:I,prefixCls:a.value,value:e.content,originContent:l.originContent,maxlength:N,autoSize:R,onSave:v,onChange:m,onCancel:h,onEnd:_,direction:i.value,component:e.component},{enterIcon:n.editableEnterIcon})}function F(P){return[A(P),T(),M()].filter(I=>I)}return()=>{var P;const{triggerType:I=["icon"]}=x.value,N=e.ellipsis||e.editable?e.content!==void 0?e.content:(P=n.default)===null||P===void 0?void 0:P.call(n):n.default?n.default():e.content;return y.value?B():C(Zi,{componentName:"Text",children:R=>{const _=E(E({},e),r),{type:L,disabled:k,content:H,class:V,style:U}=_,q=kge(_,["type","disabled","content","class","style"]),{rows:K,suffix:X,tooltip:re}=c.value,{edit:ee,copy:G,copied:le,expand:ue}=R;l.editStr=ee,l.copyStr=G,l.copiedStr=le,l.expandStr=ue;const me=pt(q,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","onUpdate:content"]),Se=$.value,Q=K===1&&Se,te=K&&K>1&&Se;let de=N,Y;if(K&&l.isEllipsis&&!l.expanded&&!Se){const{title:Ce}=q;let ye=Ce||"";!Ce&&(typeof N=="string"||typeof N=="number")&&(ye=String(N)),ye=ye==null?void 0:ye.slice(String(l.ellipsisContent||"").length),de=C(dt,null,[un(l.ellipsisContent),C("span",{title:ye,"aria-hidden":"true"},[TE]),X])}else de=C(dt,null,[N,X]);de=O(e,de);const ae=re&&K&&l.isEllipsis&&!l.expanded&&!Se,ce=n.ellipsisTooltip?n.ellipsisTooltip():re;return C(Qr,{onResize:S,disabled:!K},{default:()=>[C(gr,j({ref:s,class:[{[`${a.value}-${L}`]:L,[`${a.value}-disabled`]:k,[`${a.value}-ellipsis`]:K,[`${a.value}-single-line`]:K===1&&!l.isEllipsis,[`${a.value}-ellipsis-single-line`]:Q,[`${a.value}-ellipsis-multiple-line`]:te},V],style:E(E({},U),{WebkitLineClamp:te?K:void 0}),"aria-label":Y,direction:i.value,onClick:I.indexOf("text")!==-1?p:()=>{}},me),{default:()=>[ae?C(Br,{title:re===!0?N:ce},{default:()=>[C("span",null,[de])]}):de,F()]})]})}},null)}}}),Tc=Vge;var Wge=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);opt(E(E({},Oc()),{ellipsis:{type:Boolean,default:void 0}}),["component"]),hv=(e,t)=>{let{slots:n,attrs:r}=t;const o=E(E({},e),r),{ellipsis:a,rel:i}=o,l=Wge(o,["ellipsis","rel"]);Jt();const s=E(E({},l),{rel:i===void 0&&l.target==="_blank"?"noopener noreferrer":i,ellipsis:!!a,component:"a"});return delete s.navigate,C(Tc,s,n)};hv.displayName="ATypographyLink";hv.inheritAttrs=!1;hv.props=Uge();const Cw=hv,Kge=()=>pt(Oc(),["component"]),gv=(e,t)=>{let{slots:n,attrs:r}=t;const o=E(E(E({},e),{component:"div"}),r);return C(Tc,o,n)};gv.displayName="ATypographyParagraph";gv.inheritAttrs=!1;gv.props=Kge();const $w=gv,qge=()=>E(E({},pt(Oc(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}}),yv=(e,t)=>{let{slots:n,attrs:r}=t;const{ellipsis:o}=e;Jt();const a=E(E(E({},e),{ellipsis:o&&typeof o=="object"?pt(o,["expandable","rows"]):o,component:"span"}),r);return C(Tc,a,n)};yv.displayName="ATypographyText";yv.inheritAttrs=!1;yv.props=qge();const Ew=yv;var Gge=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oE(E({},pt(Oc(),["component","strong"])),{level:Number}),bv=(e,t)=>{let{slots:n,attrs:r}=t;const{level:o=1}=e,a=Gge(e,["level"]);let i;Xge.includes(o)?i=`h${o}`:(Jt(),i="h1");const l=E(E(E({},a),{component:i}),r);return C(Tc,l,n)};bv.displayName="ATypographyTitle";bv.inheritAttrs=!1;bv.props=Yge();const Dw=bv;gr.Text=Ew;gr.Title=Dw;gr.Paragraph=$w;gr.Link=Cw;gr.Base=Tc;gr.install=function(e){return e.component(gr.name,gr),e.component(gr.Text.displayName,Ew),e.component(gr.Title.displayName,Dw),e.component(gr.Paragraph.displayName,$w),e.component(gr.Link.displayName,Cw),e};function Zge(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function ME(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Jge(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a)});const n=new FormData;e.data&&Object.keys(e.data).forEach(o=>{const a=e.data[o];if(Array.isArray(a)){a.forEach(i=>{n.append(`${o}[]`,i)});return}n.append(o,a)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(a){e.onError(a)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Zge(e,t),ME(t)):e.onSuccess(ME(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(o=>{r[o]!==null&&t.setRequestHeader(o,r[o])}),t.send(n),{abort(){t.abort()}}}const Qge=+new Date;let e0e=0;function ng(){return`vc-upload-${Qge}-${++e0e}`}const rg=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",a=o.replace(/\/.*$/,"");return n.some(i=>{const l=i.trim();if(/^\*(\/\*)?$/.test(i))return!0;if(l.charAt(0)==="."){const s=r.toLowerCase(),u=l.toLowerCase();let c=[u];return(u===".jpg"||u===".jpeg")&&(c=[".jpg",".jpeg"]),c.some(d=>s.endsWith(d))}return/\/\*$/.test(l)?a===l.replace(/\/.*$/,""):!!(o===l||/^\w+$/.test(l))})}return!0};function t0e(e,t){const n=e.createReader();let r=[];function o(){n.readEntries(a=>{const i=Array.prototype.slice.apply(a);r=r.concat(i),!i.length?t(r):o()})}o()}const n0e=(e,t,n)=>{const r=(o,a)=>{o.path=a||"",o.isFile?o.file(i=>{n(i)&&(o.fullPath&&!i.webkitRelativePath&&(Object.defineProperties(i,{webkitRelativePath:{writable:!0}}),i.webkitRelativePath=o.fullPath.replace(/^\//,""),Object.defineProperties(i,{webkitRelativePath:{writable:!1}})),t([i]))}):o.isDirectory&&t0e(o,i=>{i.forEach(l=>{r(l,`${a}${o.name}/`)})})};e.forEach(o=>{r(o.webkitGetAsEntry())})},r0e=n0e,F5=()=>({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 o0e=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function l(c){try{u(r.next(c))}catch(d){i(d)}}function s(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?a(c.value):o(c.value).then(l,s)}u((r=r.apply(e,t||[])).next())})},a0e=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oo0e(this,void 0,void 0,function*(){const{beforeUpload:w}=e;let b=x;if(w){try{b=yield w(x,y)}catch{b=!1}if(b===!1)return{origin:x,parsedFile:null,action:null,data:null}}const{action:S}=e;let $;typeof S=="function"?$=yield S(x):$=S;const{data:D}=e;let O;typeof D=="function"?O=yield D(x):O=D;const A=(typeof b=="object"||typeof b=="string")&&b?b:x;let T;A instanceof File?T=A:T=new File([A],x.name,{type:x.type});const M=T;return M.uid=x.uid,{origin:x,data:O,parsedFile:M,action:$}}),c=x=>{let{data:y,origin:w,action:b,parsedFile:S}=x;if(!s)return;const{onStart:$,customRequest:D,name:O,headers:A,withCredentials:T,method:M}=e,{uid:B}=w,F=D||Jge,P={action:b,filename:O,data:y,file:S,headers:A,withCredentials:T,method:M||"post",onProgress:I=>{const{onProgress:N}=e;N==null||N(I,S)},onSuccess:(I,N)=>{const{onSuccess:R}=e;R==null||R(I,S,N),delete i[B]},onError:(I,N)=>{const{onError:R}=e;R==null||R(I,N,S),delete i[B]}};$(w),i[B]=F(P)},d=()=>{a.value=ng()},f=x=>{if(x){const y=x.uid?x.uid:x;i[y]&&i[y].abort&&i[y].abort(),delete i[y]}else Object.keys(i).forEach(y=>{i[y]&&i[y].abort&&i[y].abort(),delete i[y]})};Qe(()=>{s=!0}),st(()=>{s=!1,f()});const p=x=>{const y=[...x],w=y.map(b=>(b.uid=ng(),u(b,y)));Promise.all(w).then(b=>{const{onBatchStart:S}=e;S==null||S(b.map($=>{let{origin:D,parsedFile:O}=$;return{file:D,parsedFile:O}})),b.filter($=>$.parsedFile!==null).forEach($=>{c($)})})},v=x=>{const{accept:y,directory:w}=e,{files:b}=x.target,S=[...b].filter($=>!w||rg($,y));p(S),d()},m=x=>{const y=l.value;if(!y)return;const{onClick:w}=e;y.click(),w&&w(x)},h=x=>{x.key==="Enter"&&m(x)},g=x=>{const{multiple:y}=e;if(x.preventDefault(),x.type!=="dragover")if(e.directory)r0e(Array.prototype.slice.call(x.dataTransfer.items),p,w=>rg(w,e.accept));else{const w=Uq(Array.prototype.slice.call(x.dataTransfer.files),$=>rg($,e.accept));let b=w[0];const S=w[1];y===!1&&(b=b.slice(0,1)),p(b),S.length&&e.onReject&&e.onReject(S)}};return o({abort:f}),()=>{var x;const{componentTag:y,prefixCls:w,disabled:b,id:S,multiple:$,accept:D,capture:O,directory:A,openFileDialogOnClick:T,onMouseenter:M,onMouseleave:B}=e,F=a0e(e,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),P={[w]:!0,[`${w}-disabled`]:b,[r.class]:!!r.class},I=A?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return C(y,j(j({},b?{}:{onClick:T?m:()=>{},onKeydown:T?h:()=>{},onMouseenter:M,onMouseleave:B,onDrop:g,onDragover:g,tabindex:"0"}),{},{class:P,role:"button",style:r.style}),{default:()=>[C("input",j(j(j({},ci(F,{aria:!0,data:!0})),{},{id:S,type:"file",ref:l,onClick:R=>R.stopPropagation(),key:a.value,style:{display:"none"},accept:D},I),{},{multiple:$,onChange:v},O!=null?{capture:O}:{}),null),(x=n.default)===null||x===void 0?void 0:x.call(n)]})}}});function og(){}const NE=he({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:at(F5(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:og,onError:og,onSuccess:og,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:n,attrs:r,expose:o}=t;const a=be();return o({abort:l=>{var s;(s=a.value)===null||s===void 0||s.abort(l)}}),()=>C(i0e,j(j(j({},e),r),{},{ref:a}),n)}});function R5(){return{capture:Xe([Boolean,String]),type:Ue(),name:String,defaultFileList:bt(),fileList:bt(),action:Xe([String,Function]),directory:Pe(),data:Xe([Object,Function]),method:Ue(),headers:We(),showUploadList:Xe([Boolean,Object]),multiple:Pe(),accept:String,beforeUpload:Oe(),onChange:Oe(),"onUpdate:fileList":Oe(),onDrop:Oe(),listType:Ue(),onPreview:Oe(),onDownload:Oe(),onReject:Oe(),onRemove:Oe(),remove:Oe(),supportServerRender:Pe(),disabled:Pe(),prefixCls:String,customRequest:Oe(),withCredentials:Pe(),openFileDialogOnClick:Pe(),locale:We(),id:String,previewFile:Oe(),transformFile:Oe(),iconRender:Oe(),isImageUrl:Oe(),progress:We(),itemRender:Oe(),maxCount:Number,height:Xe([Number,String]),removeIcon:Oe(),downloadIcon:Oe(),previewIcon:Oe()}}function l0e(){return{listType:Ue(),onPreview:Oe(),onDownload:Oe(),onRemove:Oe(),items:bt(),progress:We(),prefixCls:Ue(),showRemoveIcon:Pe(),showDownloadIcon:Pe(),showPreviewIcon:Pe(),removeIcon:Oe(),downloadIcon:Oe(),previewIcon:Oe(),locale:We(void 0),previewFile:Oe(),iconRender:Oe(),isImageUrl:Oe(),appendAction:Oe(),appendActionVisible:Pe(),itemRender:Oe()}}function yd(e){return E(E({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function bd(e,t){const n=[...t],r=n.findIndex(o=>{let{uid:a}=o;return a===e.uid});return r===-1?n.push(e):n[r]=e,n}function ag(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function s0e(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(o=>o[n]!==e[n]);return r.length===t.length?null:r}const u0e=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},z5=e=>e.indexOf("image/")===0,c0e=e=>{if(e.type&&!e.thumbUrl)return z5(e.type);const t=e.thumbUrl||e.url||"",n=u0e(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Fa=200;function d0e(e){return new Promise(t=>{if(!e.type||!z5(e.type)){t("");return}const n=document.createElement("canvas");n.width=Fa,n.height=Fa,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Fa}px; height: ${Fa}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:a,height:i}=o;let l=Fa,s=Fa,u=0,c=0;a>i?(s=i*(Fa/a),c=-(s-l)/2):(l=a*(Fa/i),u=-(l-s)/2),r.drawImage(o,u,c,l,s);const d=n.toDataURL();document.body.removeChild(n),t(d)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.addEventListener("load",()=>{a.result&&(o.src=a.result)}),a.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const f0e=()=>({prefixCls:String,locale:We(void 0),file:We(),items:bt(),listType:Ue(),isImgUrl:Oe(),showRemoveIcon:Pe(),showDownloadIcon:Pe(),showPreviewIcon:Pe(),removeIcon:Oe(),downloadIcon:Oe(),previewIcon:Oe(),iconRender:Oe(),actionIconRender:Oe(),itemRender:Oe(),onPreview:Oe(),onClose:Oe(),onDownload:Oe(),progress:We()}),p0e=he({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:f0e(),setup(e,t){let{slots:n,attrs:r}=t;var o;const a=pe(!1),i=pe();Qe(()=>{i.value=setTimeout(()=>{a.value=!0},300)}),st(()=>{clearTimeout(i.value)});const l=pe((o=e.file)===null||o===void 0?void 0:o.status);Ne(()=>{var c;return(c=e.file)===null||c===void 0?void 0:c.status},c=>{c!=="removed"&&(l.value=c)});const{rootPrefixCls:s}=He("upload",e),u=z(()=>to(`${s.value}-fade`));return()=>{var c,d;const{prefixCls:f,locale:p,listType:v,file:m,items:h,progress:g,iconRender:x=n.iconRender,actionIconRender:y=n.actionIconRender,itemRender:w=n.itemRender,isImgUrl:b,showPreviewIcon:S,showRemoveIcon:$,showDownloadIcon:D,previewIcon:O=n.previewIcon,removeIcon:A=n.removeIcon,downloadIcon:T=n.downloadIcon,onPreview:M,onDownload:B,onClose:F}=e,{class:P,style:I}=r,N=x({file:m});let R=C("div",{class:`${f}-text-icon`},[N]);if(v==="picture"||v==="picture-card")if(l.value==="uploading"||!m.thumbUrl&&!m.url){const me={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:l.value!=="uploading"};R=C("div",{class:me},[N])}else{const me=b!=null&&b(m)?C("img",{src:m.thumbUrl||m.url,alt:m.name,class:`${f}-list-item-image`,crossorigin:m.crossOrigin},null):N,Se={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:b&&!b(m)};R=C("a",{class:Se,onClick:Q=>M(m,Q),href:m.url||m.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[me])}const _={[`${f}-list-item`]:!0,[`${f}-list-item-${l.value}`]:!0},L=typeof m.linkProps=="string"?JSON.parse(m.linkProps):m.linkProps,k=$?y({customIcon:A?A({file:m}):C(v8,null,null),callback:()=>F(m),prefixCls:f,title:p.removeFile}):null,H=D&&l.value==="done"?y({customIcon:T?T({file:m}):C(oae,null,null),callback:()=>B(m),prefixCls:f,title:p.downloadFile}):null,V=v!=="picture-card"&&C("span",{key:"download-delete",class:[`${f}-list-item-actions`,{picture:v==="picture"}]},[H,k]),U=`${f}-list-item-name`,q=m.url?[C("a",j(j({key:"view",target:"_blank",rel:"noopener noreferrer",class:U,title:m.name},L),{},{href:m.url,onClick:me=>M(m,me)}),[m.name]),V]:[C("span",{key:"view",class:U,onClick:me=>M(m,me),title:m.name},[m.name]),V],K={pointerEvents:"none",opacity:.5},X=S?C("a",{href:m.url||m.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:m.url||m.thumbUrl?void 0:K,onClick:me=>M(m,me),title:p.previewFile},[O?O({file:m}):C(Px,null,null)]):null,re=v==="picture-card"&&l.value!=="uploading"&&C("span",{class:`${f}-list-item-actions`},[X,l.value==="done"&&H,k]),ee=C("div",{class:_},[R,q,re,a.value&&C(_n,u.value,{default:()=>[vn(C("div",{class:`${f}-list-item-progress`},["percent"in m?C(mw,j(j({},g),{},{type:"line",percent:m.percent}),null):null]),[[ur,l.value==="uploading"]])]})]),G={[`${f}-list-item-container`]:!0,[`${P}`]:!!P},le=m.response&&typeof m.response=="string"?m.response:((c=m.error)===null||c===void 0?void 0:c.statusText)||((d=m.error)===null||d===void 0?void 0:d.message)||p.uploadError,ue=l.value==="error"?C(Br,{title:le,getPopupContainer:me=>me.parentNode},{default:()=>[ee]}):ee;return C("div",{class:G,style:I},[w?w({originNode:ue,file:m,fileList:h,actions:{download:B.bind(null,m),preview:M.bind(null,m),remove:F.bind(null,m)}}):ue])}}}),m0e=(e,t)=>{let{slots:n}=t;var r;return nn((r=n.default)===null||r===void 0?void 0:r.call(n))[0]},v0e=he({compatConfig:{MODE:3},name:"AUploadList",props:at(l0e(),{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:d0e,isImageUrl:c0e,items:[],appendActionVisible:!0}),setup(e,t){let{slots:n,expose:r}=t;const o=pe(!1),a=Kn();Qe(()=>{o.value==!0}),Je(()=>{e.listType!=="picture"&&e.listType!=="picture-card"||(e.items||[]).forEach(m=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(m.originFileObj instanceof File||m.originFileObj instanceof Blob)||m.thumbUrl!==void 0||(m.thumbUrl="",e.previewFile&&e.previewFile(m.originFileObj).then(h=>{m.thumbUrl=h||"",a.update()}))})});const i=(m,h)=>{if(e.onPreview)return h==null||h.preventDefault(),e.onPreview(m)},l=m=>{typeof e.onDownload=="function"?e.onDownload(m):m.url&&window.open(m.url)},s=m=>{var h;(h=e.onRemove)===null||h===void 0||h.call(e,m)},u=m=>{let{file:h}=m;const g=e.iconRender||n.iconRender;if(g)return g({file:h,listType:e.listType});const x=h.status==="uploading",y=e.isImageUrl&&e.isImageUrl(h)?C(Qae,null,null):C(Tae,null,null);let w=x?C(Lr,null,null):C(Xae,null,null);return e.listType==="picture"?w=x?C(Lr,null,null):y:e.listType==="picture-card"&&(w=x?e.locale.uploading:y),w},c=m=>{const{customIcon:h,callback:g,prefixCls:x,title:y}=m,w={type:"text",size:"small",title:y,onClick:()=>{g()},class:`${x}-list-item-action`};return hn(h)?C(dn,w,{icon:()=>h}):C(dn,w,{default:()=>[C("span",null,[h])]})};r({handlePreview:i,handleDownload:l});const{prefixCls:d,rootPrefixCls:f}=He("upload",e),p=z(()=>({[`${d.value}-list`]:!0,[`${d.value}-list-${e.listType}`]:!0})),v=z(()=>{const m=E({},gc(`${f.value}-motion-collapse`));delete m.onAfterAppear,delete m.onAfterEnter,delete m.onAfterLeave;const h=E(E({},Sm(`${d.value}-${e.listType==="picture-card"?"animate-inline":"animate"}`)),{class:p.value,appear:o.value});return e.listType!=="picture-card"?E(E({},m),h):h});return()=>{const{listType:m,locale:h,isImageUrl:g,items:x=[],showPreviewIcon:y,showRemoveIcon:w,showDownloadIcon:b,removeIcon:S,previewIcon:$,downloadIcon:D,progress:O,appendAction:A,itemRender:T,appendActionVisible:M}=e,B=A==null?void 0:A();return C(tm,j(j({},v.value),{},{tag:"div"}),{default:()=>[x.map(F=>{const{uid:P}=F;return C(p0e,{key:P,locale:h,prefixCls:d.value,file:F,items:x,progress:O,listType:m,isImgUrl:g,showPreviewIcon:y,showRemoveIcon:w,showDownloadIcon:b,onPreview:i,onDownload:l,onClose:s,removeIcon:S,previewIcon:$,downloadIcon:D,itemRender:T},E(E({},n),{iconRender:u,actionIconRender:c}))}),A?vn(C(m0e,{key:"__ant_upload_appendAction"},{default:()=>B}),[[ur,!!M]]):null]})}}}),h0e=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}, p${t}-text, p${t}-hint `]:{color:e.colorTextDisabled}}}}}},g0e=h0e,y0e=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:o,lineHeight:a}=e,i=`${t}-list-item`,l=`${i}-actions`,s=`${i}-action`,u=Math.round(o*a);return{[`${t}-wrapper`]:{[`${t}-list`]:E(E({},yo()),{lineHeight:e.lineHeight,[i]:{position:"relative",height:e.lineHeight*o,marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${i}-name`]:E(E({},gn),{padding:`0 ${e.paddingXS}px`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{[s]:{opacity:0},[`${s}${n}-btn-sm`]:{height:u,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` ${s}:focus, &.picture ${s} `]:{opacity:1},[r]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${r}`]:{color:e.colorText}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:o},[`${i}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:o+e.paddingXS,fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${s}`]:{opacity:1,color:e.colorText},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${r}`]:{color:e.colorError},[l]:{[`${r}, ${r}: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:'""'}}})}}},b0e=y0e,PE=new ft("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),IE=new ft("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),x0e=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:PE},[`${n}-leave`]:{animationName:IE}}},PE,IE]},w0e=x0e,S0e=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o}=e,a=`${t}-list`,i=`${a}-item`;return{[`${t}-wrapper`]:{[`${a}${a}-picture, ${a}${a}-picture-card`]:{[i]:{position:"relative",height:r+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${i}-thumbnail`]:E(E({},gn),{width:r,height:r,lineHeight:`${r+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:o,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:r+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:o}}}}}},C0e=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o}=e,a=`${t}-list`,i=`${a}-item`,l=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:E(E({},yo()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:l,height:l,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}},[`${a}${a}-picture-card`]:{[`${a}-item-container`]:{display:"inline-block",width:l,height:l,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% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}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:r,margin:`0 ${e.marginXXS}px`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${i}-actions, ${i}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new $t(o).setAlpha(.65).toRgbString(),"&:hover":{color:o}}},[`${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% - ${e.paddingXS*2}px)`},[`${i}-uploading`]:{[`&${i}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${i}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},$0e=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},E0e=$0e,D0e=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:E(E({},rt(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},A0e=nt("Upload",e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightLG:a}=e,i=Math.round(n*r),l=qe(e,{uploadThumbnailSize:t*2,uploadProgressOffset:i/2+o,uploadPicCardSize:a*2.55});return[D0e(l),g0e(l),S0e(l),C0e(l),b0e(l),w0e(l),E0e(l),hc(l)]});var O0e=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function l(c){try{u(r.next(c))}catch(d){i(d)}}function s(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?a(c.value):o(c.value).then(l,s)}u((r=r.apply(e,t||[])).next())})},T0e=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var T;return(T=d.value)!==null&&T!==void 0?T:s.value}),[p,v]=Zt(e.defaultFileList||[],{value:Ye(e,"fileList"),postState:T=>{const M=Date.now();return(T??[]).map((B,F)=>(!B.uid&&!Object.isFrozen(B)&&(B.uid=`__AUTO__${M}_${F}__`),B))}}),m=be("drop"),h=be(null);Qe(()=>{qt(e.fileList!==void 0||r.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),qt(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),qt(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const g=(T,M,B)=>{var F,P;let I=[...M];e.maxCount===1?I=I.slice(-1):e.maxCount&&(I=I.slice(0,e.maxCount)),v(I);const N={file:T,fileList:I};B&&(N.event=B),(F=e["onUpdate:fileList"])===null||F===void 0||F.call(e,N.fileList),(P=e.onChange)===null||P===void 0||P.call(e,N),a.onFieldChange()},x=(T,M)=>O0e(this,void 0,void 0,function*(){const{beforeUpload:B,transformFile:F}=e;let P=T;if(B){const I=yield B(T,M);if(I===!1)return!1;if(delete T[lu],I===lu)return Object.defineProperty(T,lu,{value:!0,configurable:!0}),!1;typeof I=="object"&&I&&(P=I)}return F&&(P=yield F(P)),P}),y=T=>{const M=T.filter(P=>!P.file[lu]);if(!M.length)return;const B=M.map(P=>yd(P.file));let F=[...p.value];B.forEach(P=>{F=bd(P,F)}),B.forEach((P,I)=>{let N=P;if(M[I].parsedFile)P.status="uploading";else{const{originFileObj:R}=P;let _;try{_=new File([R],R.name,{type:R.type})}catch{_=new Blob([R],{type:R.type}),_.name=R.name,_.lastModifiedDate=new Date,_.lastModified=new Date().getTime()}_.uid=P.uid,N=_}g(N,F)})},w=(T,M,B)=>{try{typeof T=="string"&&(T=JSON.parse(T))}catch{}if(!ag(M,p.value))return;const F=yd(M);F.status="done",F.percent=100,F.response=T,F.xhr=B;const P=bd(F,p.value);g(F,P)},b=(T,M)=>{if(!ag(M,p.value))return;const B=yd(M);B.status="uploading",B.percent=T.percent;const F=bd(B,p.value);g(B,F,T)},S=(T,M,B)=>{if(!ag(B,p.value))return;const F=yd(B);F.error=T,F.response=M,F.status="error";const P=bd(F,p.value);g(F,P)},$=T=>{let M;const B=e.onRemove||e.remove;Promise.resolve(typeof B=="function"?B(T):B).then(F=>{var P,I;if(F===!1)return;const N=s0e(T,p.value);N&&(M=E(E({},T),{status:"removed"}),(P=p.value)===null||P===void 0||P.forEach(R=>{const _=M.uid!==void 0?"uid":"name";R[_]===M[_]&&!Object.isFrozen(R)&&(R.status="removed")}),(I=h.value)===null||I===void 0||I.abort(M),g(M,N))})},D=T=>{var M;m.value=T.type,T.type==="drop"&&((M=e.onDrop)===null||M===void 0||M.call(e,T))};o({onBatchStart:y,onSuccess:w,onProgress:b,onError:S,fileList:p,upload:h});const[O]=ro("Upload",cr.Upload,z(()=>e.locale)),A=(T,M)=>{const{removeIcon:B,previewIcon:F,downloadIcon:P,previewFile:I,onPreview:N,onDownload:R,isImageUrl:_,progress:L,itemRender:k,iconRender:H,showUploadList:V}=e,{showDownloadIcon:U,showPreviewIcon:q,showRemoveIcon:K}=typeof V=="boolean"?{}:V;return V?C(v0e,{prefixCls:i.value,listType:e.listType,items:p.value,previewFile:I,onPreview:N,onDownload:R,onRemove:$,showRemoveIcon:!f.value&&K,showPreviewIcon:q,showDownloadIcon:U,removeIcon:B,previewIcon:F,downloadIcon:P,iconRender:H,locale:O.value,isImageUrl:_,progress:L,itemRender:k,appendActionVisible:M,appendAction:T},E({},n)):T==null?void 0:T()};return()=>{var T,M,B;const{listType:F,type:P}=e,{class:I,style:N}=r,R=T0e(r,["class","style"]),_=E(E(E({onBatchStart:y,onError:S,onProgress:b,onSuccess:w},R),e),{id:(T=e.id)!==null&&T!==void 0?T:a.id.value,prefixCls:i.value,beforeUpload:x,onChange:void 0,disabled:f.value});delete _.remove,(!n.default||f.value)&&delete _.id;const L={[`${i.value}-rtl`]:l.value==="rtl"};if(P==="drag"){const U=ge(i.value,{[`${i.value}-drag`]:!0,[`${i.value}-drag-uploading`]:p.value.some(q=>q.status==="uploading"),[`${i.value}-drag-hover`]:m.value==="dragover",[`${i.value}-disabled`]:f.value,[`${i.value}-rtl`]:l.value==="rtl"},r.class,c.value);return u(C("span",j(j({},r),{},{class:ge(`${i.value}-wrapper`,L,I,c.value)}),[C("div",{class:U,onDrop:D,onDragover:D,onDragleave:D,style:r.style},[C(NE,j(j({},_),{},{ref:h,class:`${i.value}-btn`}),j({default:()=>[C("div",{class:`${i.value}-drag-container`},[(M=n.default)===null||M===void 0?void 0:M.call(n)])]},n))]),A()]))}const k=ge(i.value,{[`${i.value}-select`]:!0,[`${i.value}-select-${F}`]:!0,[`${i.value}-disabled`]:f.value,[`${i.value}-rtl`]:l.value==="rtl"}),H=Lt((B=n.default)===null||B===void 0?void 0:B.call(n)),V=U=>C("div",{class:k,style:U},[C(NE,j(j({},_),{},{ref:h}),n)]);return u(F==="picture-card"?C("span",j(j({},r),{},{class:ge(`${i.value}-wrapper`,`${i.value}-picture-card-wrapper`,L,r.class,c.value)}),[A(V,!!(H&&H.length))]):C("span",j(j({},r),{},{class:ge(`${i.value}-wrapper`,L,r.class,c.value)}),[V(H&&H.length?void 0:{display:"none"}),A()]))}}});var _E=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{height:o}=e,a=_E(e,["height"]),{style:i}=r,l=_E(r,["style"]),s=E(E(E({},a),l),{type:"drag",style:E(E({},i),{height:typeof o=="number"?`${o}px`:o})});return C(Af,s,n)}}}),M0e=Of,N0e=E(Af,{Dragger:Of,LIST_IGNORE:lu,install(e){return e.component(Af.name,Af),e.component(Of.name,Of),e}});function P0e(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function I0e(e){return Object.keys(e).map(t=>`${P0e(t)}: ${e[t]};`).join(" ")}function BE(){return window.devicePixelRatio||1}function ig(e,t,n,r){e.translate(t,n),e.rotate(Math.PI/180*Number(r)),e.translate(-t,-n)}const _0e=(e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some(r=>r===t)),e.type==="attributes"&&e.target===t&&(n=!0),n};var B0e=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o2&&arguments[2]!==void 0?arguments[2]:{};const{window:r=oI}=n,o=B0e(n,["window"]);let a;const i=nI(()=>r&&"MutationObserver"in r),l=()=>{a&&(a.disconnect(),a=void 0)},s=Ne(()=>U1(e),c=>{l(),i.value&&r&&c&&(a=new MutationObserver(t),a.observe(c,o))},{immediate:!0}),u=()=>{l(),s()};return tI(u),{isSupported:i,stop:u}}const lg=2,FE=3,R0e=()=>({zIndex:Number,rotate:Number,width:Number,height:Number,image:String,content:Xe([String,Array]),font:We(),rootClassName:String,gap:bt(),offset:bt()}),z0e=he({name:"AWatermark",inheritAttrs:!1,props:at(R0e(),{zIndex:9,rotate:-22,font:{},gap:[100,100]}),setup(e,t){let{slots:n,attrs:r}=t;const o=pe(),a=pe(),i=pe(!1),l=z(()=>{var O,A;return(A=(O=e.gap)===null||O===void 0?void 0:O[0])!==null&&A!==void 0?A:100}),s=z(()=>{var O,A;return(A=(O=e.gap)===null||O===void 0?void 0:O[1])!==null&&A!==void 0?A:100}),u=z(()=>l.value/2),c=z(()=>s.value/2),d=z(()=>{var O,A;return(A=(O=e.offset)===null||O===void 0?void 0:O[0])!==null&&A!==void 0?A:u.value}),f=z(()=>{var O,A;return(A=(O=e.offset)===null||O===void 0?void 0:O[1])!==null&&A!==void 0?A:c.value}),p=z(()=>{var O,A;return(A=(O=e.font)===null||O===void 0?void 0:O.fontSize)!==null&&A!==void 0?A:16}),v=z(()=>{var O,A;return(A=(O=e.font)===null||O===void 0?void 0:O.fontWeight)!==null&&A!==void 0?A:"normal"}),m=z(()=>{var O,A;return(A=(O=e.font)===null||O===void 0?void 0:O.fontStyle)!==null&&A!==void 0?A:"normal"}),h=z(()=>{var O,A;return(A=(O=e.font)===null||O===void 0?void 0:O.fontFamily)!==null&&A!==void 0?A:"sans-serif"}),g=z(()=>{var O,A;return(A=(O=e.font)===null||O===void 0?void 0:O.color)!==null&&A!==void 0?A:"rgba(0, 0, 0, 0.15)"}),x=z(()=>{var O;const A={zIndex:(O=e.zIndex)!==null&&O!==void 0?O:9,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let T=d.value-u.value,M=f.value-c.value;return T>0&&(A.left=`${T}px`,A.width=`calc(100% - ${T}px)`,T=0),M>0&&(A.top=`${M}px`,A.height=`calc(100% - ${M}px)`,M=0),A.backgroundPosition=`${T}px ${M}px`,A}),y=()=>{a.value&&(a.value.remove(),a.value=void 0)},w=(O,A)=>{var T;o.value&&a.value&&(i.value=!0,a.value.setAttribute("style",I0e(E(E({},x.value),{backgroundImage:`url('${O}')`,backgroundSize:`${(l.value+A)*lg}px`}))),(T=o.value)===null||T===void 0||T.append(a.value),setTimeout(()=>{i.value=!1}))},b=O=>{let A=120,T=64;const M=e.content,B=e.image,F=e.width,P=e.height;if(!B&&O.measureText){O.font=`${Number(p.value)}px ${h.value}`;const I=Array.isArray(M)?M:[M],N=I.map(R=>O.measureText(R).width);A=Math.ceil(Math.max(...N)),T=Number(p.value)*I.length+(I.length-1)*FE}return[F??A,P??T]},S=(O,A,T,M,B)=>{const F=BE(),P=e.content,I=Number(p.value)*F;O.font=`${m.value} normal ${v.value} ${I}px/${B}px ${h.value}`,O.fillStyle=g.value,O.textAlign="center",O.textBaseline="top",O.translate(M/2,0);const N=Array.isArray(P)?P:[P];N==null||N.forEach((R,_)=>{O.fillText(R??"",A,T+_*(I+FE*F))})},$=()=>{var O;const A=document.createElement("canvas"),T=A.getContext("2d"),M=e.image,B=(O=e.rotate)!==null&&O!==void 0?O:-22;if(T){a.value||(a.value=document.createElement("div"));const F=BE(),[P,I]=b(T),N=(l.value+P)*F,R=(s.value+I)*F;A.setAttribute("width",`${N*lg}px`),A.setAttribute("height",`${R*lg}px`);const _=l.value*F/2,L=s.value*F/2,k=P*F,H=I*F,V=(k+l.value*F)/2,U=(H+s.value*F)/2,q=_+N,K=L+R,X=V+N,re=U+R;if(T.save(),ig(T,V,U,B),M){const ee=new Image;ee.onload=()=>{T.drawImage(ee,_,L,k,H),T.restore(),ig(T,X,re,B),T.drawImage(ee,q,K,k,H),w(A.toDataURL(),P)},ee.crossOrigin="anonymous",ee.referrerPolicy="no-referrer",ee.src=M}else S(T,_,L,k,H),T.restore(),ig(T,X,re,B),S(T,q,K,k,H),w(A.toDataURL(),P)}};return Qe(()=>{$()}),Ne(()=>e,()=>{$()},{deep:!0,flush:"post"}),st(()=>{y()}),F0e(o,O=>{i.value||O.forEach(A=>{_0e(A,a.value)&&(y(),$())})},{attributes:!0}),()=>{var O;return C("div",j(j({},r),{},{ref:o,class:[r.class,e.rootClassName],style:[{position:"relative"},r.style]}),[(O=n.default)===null||O===void 0?void 0:O.call(n)])}}}),L0e=rn(z0e);function RE(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function zE(e){return{backgroundColor:e.bgColorSelected,boxShadow:e.boxShadow}}const k0e=E({overflow:"hidden"},gn),H0e=e=>{const{componentCls:t}=e;return{[t]:E(E(E(E(E({},rt(e)),{display:"inline-block",padding:e.segmentedContainerPadding,color:e.labelColor,backgroundColor:e.bgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":E(E({},zE(e)),{color:e.labelColorHover}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.labelColorHover,"&::after":{backgroundColor:e.bgColorHover}},"&-label":E({minHeight:e.controlHeight-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeight-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`},k0e),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:E(E({},zE(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightLG-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightSM-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),RE(`&-disabled ${t}-item`,e)),RE(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},j0e=nt("Segmented",e=>{const{lineWidthBold:t,lineWidth:n,colorTextLabel:r,colorText:o,colorFillSecondary:a,colorBgLayout:i,colorBgElevated:l}=e,s=qe(e,{segmentedPaddingHorizontal:e.controlPaddingHorizontal-n,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-n,segmentedContainerPadding:t,labelColor:r,labelColorHover:o,bgColor:i,bgColorHover:a,bgColorSelected:l});return[H0e(s)]}),LE=e=>e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null,Cl=e=>e!==void 0?`${e}px`:void 0,V0e=he({props:{value:jt(),getValueIndex:jt(),prefixCls:jt(),motionName:jt(),onMotionStart:jt(),onMotionEnd:jt(),direction:jt(),containerRef:jt()},emits:["motionStart","motionEnd"],setup(e,t){let{emit:n}=t;const r=be(),o=v=>{var m;const h=e.getValueIndex(v),g=(m=e.containerRef.value)===null||m===void 0?void 0:m.querySelectorAll(`.${e.prefixCls}-item`)[h];return(g==null?void 0:g.offsetParent)&&g},a=be(null),i=be(null);Ne(()=>e.value,(v,m)=>{const h=o(m),g=o(v),x=LE(h),y=LE(g);a.value=x,i.value=y,n(h&&g?"motionStart":"motionEnd")},{flush:"post"});const l=z(()=>{var v,m;return e.direction==="rtl"?Cl(-((v=a.value)===null||v===void 0?void 0:v.right)):Cl((m=a.value)===null||m===void 0?void 0:m.left)}),s=z(()=>{var v,m;return e.direction==="rtl"?Cl(-((v=i.value)===null||v===void 0?void 0:v.right)):Cl((m=i.value)===null||m===void 0?void 0:m.left)});let u;const c=v=>{clearTimeout(u),ht(()=>{v&&(v.style.transform="translateX(var(--thumb-start-left))",v.style.width="var(--thumb-start-width)")})},d=v=>{u=setTimeout(()=>{v&&(Qg(v,`${e.motionName}-appear-active`),v.style.transform="translateX(var(--thumb-active-left))",v.style.width="var(--thumb-active-width)")})},f=v=>{a.value=null,i.value=null,v&&(v.style.transform=null,v.style.width=null,e0(v,`${e.motionName}-appear-active`)),n("motionEnd")},p=z(()=>{var v,m;return{"--thumb-start-left":l.value,"--thumb-start-width":Cl((v=a.value)===null||v===void 0?void 0:v.width),"--thumb-active-left":s.value,"--thumb-active-width":Cl((m=i.value)===null||m===void 0?void 0:m.width)}});return st(()=>{clearTimeout(u)}),()=>{const v={ref:r,style:p.value,class:[`${e.prefixCls}-thumb`]};return C(_n,{appear:!0,onBeforeEnter:c,onEnter:d,onAfterEnter:f},{default:()=>[!a.value||!i.value?null:C("div",v,null)]})}}}),W0e=V0e;function U0e(e){return e.map(t=>typeof t=="object"&&t!==null?t:{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t})}const K0e=()=>({prefixCls:String,options:bt(),block:Pe(),disabled:Pe(),size:Ue(),value:E(E({},Xe([String,Number])),{required:!0}),motionName:String,onChange:Oe(),"onUpdate:value":Oe()}),L5=(e,t)=>{let{slots:n,emit:r}=t;const{value:o,disabled:a,payload:i,title:l,prefixCls:s,label:u=n.label,checked:c,className:d}=e,f=p=>{a||r("change",p,o)};return C("label",{class:ge({[`${s}-item-disabled`]:a},d)},[C("input",{class:`${s}-item-input`,type:"radio",disabled:a,checked:c,onChange:f},null),C("div",{class:`${s}-item-label`,title:typeof l=="string"?l:""},[typeof u=="function"?u({value:o,disabled:a,payload:i,title:l}):u??o])])};L5.inheritAttrs=!1;const q0e=he({name:"ASegmented",inheritAttrs:!1,props:at(K0e(),{options:[],motionName:"thumb-motion"}),slots:Object,setup(e,t){let{emit:n,slots:r,attrs:o}=t;const{prefixCls:a,direction:i,size:l}=He("segmented",e),[s,u]=j0e(a),c=pe(),d=pe(!1),f=z(()=>U0e(e.options)),p=(v,m)=>{e.disabled||(n("update:value",m),n("change",m))};return()=>{const v=a.value;return s(C("div",j(j({},o),{},{class:ge(v,{[u.value]:!0,[`${v}-block`]:e.block,[`${v}-disabled`]:e.disabled,[`${v}-lg`]:l.value=="large",[`${v}-sm`]:l.value=="small",[`${v}-rtl`]:i.value==="rtl"},o.class),ref:c}),[C("div",{class:`${v}-group`},[C(W0e,{containerRef:c,prefixCls:v,value:e.value,motionName:`${v}-${e.motionName}`,direction:i.value,getValueIndex:m=>f.value.findIndex(h=>h.value===m),onMotionStart:()=>{d.value=!0},onMotionEnd:()=>{d.value=!1}},null),f.value.map(m=>C(L5,j(j({key:m.value,prefixCls:v,checked:m.value===e.value,onChange:p},m),{},{className:ge(m.className,`${v}-item`,{[`${v}-item-selected`]:m.value===e.value&&!d.value}),disabled:!!e.disabled||!!m.disabled}),r))])]))}}}),G0e=rn(q0e),X0e=e=>{const{componentCls:t}=e;return{[t]:E(E({},rt(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,position:"relative",width:"100%",height:"100%",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired`]:{color:e.QRCodeExpiredTextColor}},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent"}}},Y0e=nt("QRCode",e=>X0e(qe(e,{QRCodeExpiredTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"}))),Aw=()=>({size:{type:Number,default:160},value:{type:String,required:!0},type:Ue("canvas"),color:String,bgColor:String,includeMargin:Boolean,imageSettings:We()}),Z0e=()=>E(E({},Aw()),{errorLevel:Ue("M"),icon:String,iconSize:{type:Number,default:40},status:Ue("active"),bordered:{type:Boolean,default:!0}});var Xi;(function(e){class t{static encodeText(l,s){const u=e.QrSegment.makeSegments(l);return t.encodeSegments(u,s)}static encodeBinary(l,s){const u=e.QrSegment.makeBytes(l);return t.encodeSegments([u],s)}static encodeSegments(l,s){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(t.MIN_VERSION<=u&&u<=c&&c<=t.MAX_VERSION)||d<-1||d>7)throw new RangeError("Invalid value");let p,v;for(p=u;;p++){const x=t.getNumDataCodewords(p,s)*8,y=a.getTotalBits(l,p);if(y<=x){v=y;break}if(p>=c)throw new RangeError("Data too long")}for(const x of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])f&&v<=t.getNumDataCodewords(p,x)*8&&(s=x);const m=[];for(const x of l){n(x.mode.modeBits,4,m),n(x.numChars,x.mode.numCharCountBits(p),m);for(const y of x.getData())m.push(y)}o(m.length==v);const h=t.getNumDataCodewords(p,s)*8;o(m.length<=h),n(0,Math.min(4,h-m.length),m),n(0,(8-m.length%8)%8,m),o(m.length%8==0);for(let x=236;m.lengthg[y>>>3]|=x<<7-(y&7)),new t(p,s,g,d)}constructor(l,s,u,c){if(this.version=l,this.errorCorrectionLevel=s,this.modules=[],this.isFunction=[],lt.MAX_VERSION)throw new RangeError("Version value out of range");if(c<-1||c>7)throw new RangeError("Mask value out of range");this.size=l*4+17;const d=[];for(let p=0;p>>9)*1335;const c=(s<<10|u)^21522;o(c>>>15==0);for(let d=0;d<=5;d++)this.setFunctionModule(8,d,r(c,d));this.setFunctionModule(8,7,r(c,6)),this.setFunctionModule(8,8,r(c,7)),this.setFunctionModule(7,8,r(c,8));for(let d=9;d<15;d++)this.setFunctionModule(14-d,8,r(c,d));for(let d=0;d<8;d++)this.setFunctionModule(this.size-1-d,8,r(c,d));for(let d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,r(c,d));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let l=this.version;for(let u=0;u<12;u++)l=l<<1^(l>>>11)*7973;const s=this.version<<12|l;o(s>>>18==0);for(let u=0;u<18;u++){const c=r(s,u),d=this.size-11+u%3,f=Math.floor(u/3);this.setFunctionModule(d,f,c),this.setFunctionModule(f,d,c)}}drawFinderPattern(l,s){for(let u=-4;u<=4;u++)for(let c=-4;c<=4;c++){const d=Math.max(Math.abs(c),Math.abs(u)),f=l+c,p=s+u;0<=f&&f{(x!=v-d||w>=p)&&g.push(y[x])});return o(g.length==f),g}drawCodewords(l){if(l.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let s=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let c=0;c>>3],7-(s&7)),s++)}}o(s==l.length*8)}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let s=0;s5&&l++):(this.finderPenaltyAddHistory(p,v),f||(l+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),f=this.modules[d][m],p=1);l+=this.finderPenaltyTerminateAndCount(f,p,v)*t.PENALTY_N3}for(let d=0;d5&&l++):(this.finderPenaltyAddHistory(p,v),f||(l+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),f=this.modules[m][d],p=1);l+=this.finderPenaltyTerminateAndCount(f,p,v)*t.PENALTY_N3}for(let d=0;df+(p?1:0),s);const u=this.size*this.size,c=Math.ceil(Math.abs(s*20-u*10)/u)-1;return o(0<=c&&c<=9),l+=c*t.PENALTY_N4,o(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return[];{const l=Math.floor(this.version/7)+2,s=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2,u=[6];for(let c=this.size-7;u.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let s=(16*l+128)*l+64;if(l>=2){const u=Math.floor(l/7)+2;s-=(25*u-10)*u-55,l>=7&&(s-=36)}return o(208<=s&&s<=29648),s}static getNumDataCodewords(l,s){return Math.floor(t.getNumRawDataModules(l)/8)-t.ECC_CODEWORDS_PER_BLOCK[s.ordinal][l]*t.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");const s=[];for(let c=0;c0);for(const c of l){const d=c^u.shift();u.push(0),s.forEach((f,p)=>u[p]^=t.reedSolomonMultiply(f,d))}return u}static reedSolomonMultiply(l,s){if(l>>>8||s>>>8)throw new RangeError("Byte out of range");let u=0;for(let c=7;c>=0;c--)u=u<<1^(u>>>7)*285,u^=(s>>>c&1)*l;return o(u>>>8==0),u}finderPenaltyCountPatterns(l){const s=l[1];o(s<=this.size*3);const u=s>0&&l[2]==s&&l[3]==s*3&&l[4]==s&&l[5]==s;return(u&&l[0]>=s*4&&l[6]>=s?1:0)+(u&&l[6]>=s*4&&l[0]>=s?1:0)}finderPenaltyTerminateAndCount(l,s,u){return l&&(this.finderPenaltyAddHistory(s,u),s=0),s+=this.size,this.finderPenaltyAddHistory(s,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(l,s){s[0]==0&&(l+=this.size),s.pop(),s.unshift(l)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(i,l,s){if(l<0||l>31||i>>>l)throw new RangeError("Value out of range");for(let u=l-1;u>=0;u--)s.push(i>>>u&1)}function r(i,l){return(i>>>l&1)!=0}function o(i){if(!i)throw new Error("Assertion error")}class a{static makeBytes(l){const s=[];for(const u of l)n(u,8,s);return new a(a.Mode.BYTE,l.length,s)}static makeNumeric(l){if(!a.isNumeric(l))throw new RangeError("String contains non-numeric characters");const s=[];for(let u=0;u=1<1&&arguments[1]!==void 0?arguments[1]:0;const n=[];return e.forEach(function(r,o){let a=null;r.forEach(function(i,l){if(!i&&a!==null){n.push(`M${a+t} ${o+t}h${l-a}v1H${a+t}z`),a=null;return}if(l===r.length-1){if(!i)return;a===null?n.push(`M${l+t},${o+t} h1v1H${l+t}z`):n.push(`M${a+t},${o+t} h${l+1-a}v1H${a+t}z`);return}i&&a===null&&(a=l)})}),n.join("")}function K5(e,t){return e.slice().map((n,r)=>r=t.y+t.h?n:n.map((o,a)=>a=t.x+t.w?o:!1))}function q5(e,t,n,r){if(r==null)return null;const o=e.length+n*2,a=Math.floor(t*eye),i=o/t,l=(r.width||a)*i,s=(r.height||a)*i,u=r.x==null?e.length/2-l/2:r.x*i,c=r.y==null?e.length/2-s/2:r.y*i;let d=null;if(r.excavate){const f=Math.floor(u),p=Math.floor(c),v=Math.ceil(l+u-f),m=Math.ceil(s+c-p);d={x:f,y:p,w:v,h:m}}return{x:u,y:c,h:s,w:l,excavation:d}}function G5(e,t){return t!=null?Math.floor(t):e?J0e:Q0e}const tye=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),nye=he({name:"QRCodeCanvas",inheritAttrs:!1,props:E(E({},Aw()),{level:String,bgColor:String,fgColor:String,marginSize:Number}),setup(e,t){let{attrs:n,expose:r}=t;const o=z(()=>{var s;return(s=e.imageSettings)===null||s===void 0?void 0:s.src}),a=pe(null),i=pe(null),l=pe(!1);return r({toDataURL:(s,u)=>{var c;return(c=a.value)===null||c===void 0?void 0:c.toDataURL(s,u)}}),Je(()=>{const{value:s,size:u=ry,level:c=H5,bgColor:d=j5,fgColor:f=V5,includeMargin:p=W5,marginSize:v,imageSettings:m}=e;if(a.value!=null){const h=a.value,g=h.getContext("2d");if(!g)return;let x=Ll.QrCode.encodeText(s,k5[c]).getModules();const y=G5(p,v),w=x.length+y*2,b=q5(x,u,y,m),S=i.value,$=l.value&&b!=null&&S!==null&&S.complete&&S.naturalHeight!==0&&S.naturalWidth!==0;$&&b.excavation!=null&&(x=K5(x,b.excavation));const D=window.devicePixelRatio||1;h.height=h.width=u*D;const O=u/w*D;g.scale(O,O),g.fillStyle=d,g.fillRect(0,0,w,w),g.fillStyle=f,tye?g.fill(new Path2D(U5(x,y))):x.forEach(function(A,T){A.forEach(function(M,B){M&&g.fillRect(B+y,T+y,1,1)})}),$&&g.drawImage(S,b.x+y,b.y+y,b.w,b.h)}},{flush:"post"}),Ne(o,()=>{l.value=!1}),()=>{var s;const u=(s=e.size)!==null&&s!==void 0?s:ry,c={height:`${u}px`,width:`${u}px`};let d=null;return o.value!=null&&(d=C("img",{src:o.value,key:o.value,style:{display:"none"},onLoad:()=>{l.value=!0},ref:i},null)),C(dt,null,[C("canvas",j(j({},n),{},{style:[c,n.style],ref:a}),null),d])}}}),rye=he({name:"QRCodeSVG",inheritAttrs:!1,props:E(E({},Aw()),{color:String,level:String,bgColor:String,fgColor:String,marginSize:Number,title:String}),setup(e){let t=null,n=null,r=null,o=null,a=null,i=null;return Je(()=>{const{value:l,size:s=ry,level:u=H5,includeMargin:c=W5,marginSize:d,imageSettings:f}=e;t=Ll.QrCode.encodeText(l,k5[u]).getModules(),n=G5(c,d),r=t.length+n*2,o=q5(t,s,n,f),f!=null&&o!=null&&(o.excavation!=null&&(t=K5(t,o.excavation)),i=C("image",{"xlink:href":f.src,height:o.h,width:o.w,x:o.x+n,y:o.y+n,preserveAspectRatio:"none"},null)),a=U5(t,n)}),()=>{const l=e.bgColor&&j5,s=e.fgColor&&V5;return C("svg",{height:e.size,width:e.size,viewBox:`0 0 ${r} ${r}`},[!!e.title&&C("title",null,[e.title]),C("path",{fill:l,d:`M0,0 h${r}v${r}H0z`,"shape-rendering":"crispEdges"},null),C("path",{fill:s,d:a,"shape-rendering":"crispEdges"},null),i])}}}),oye=he({name:"AQrcode",inheritAttrs:!1,props:Z0e(),emits:["refresh"],setup(e,t){let{emit:n,attrs:r,expose:o}=t;const[a]=ro("QRCode"),{prefixCls:i}=He("qrcode",e),[l,s]=Y0e(i),[,u]=$a(),c=be();o({toDataURL:(f,p)=>{var v;return(v=c.value)===null||v===void 0?void 0:v.toDataURL(f,p)}});const d=z(()=>{const{value:f,icon:p="",size:v=160,iconSize:m=40,color:h=u.value.colorText,bgColor:g="transparent",errorLevel:x="M"}=e,y={src:p,x:void 0,y:void 0,height:m,width:m,excavate:!0};return{value:f,size:v-(u.value.paddingSM+u.value.lineWidth)*2,level:x,bgColor:g,fgColor:h,imageSettings:p?y:void 0}});return()=>{const f=i.value;return l(C("div",j(j({},r),{},{style:[r.style,{width:`${e.size}px`,height:`${e.size}px`,backgroundColor:d.value.bgColor}],class:[s.value,f,{[`${f}-borderless`]:!e.bordered}]}),[e.status!=="active"&&C("div",{class:`${f}-mask`},[e.status==="loading"&&C(Lo,null,null),e.status==="expired"&&C(dt,null,[C("p",{class:`${f}-expired`},[a.value.expired]),C(dn,{type:"link",onClick:p=>n("refresh",p)},{default:()=>[a.value.refresh],icon:()=>C(lie,null,null)})])]),e.type==="canvas"?C(nye,j({ref:c},d.value),null):C(rye,d.value,null)]))}}}),aye=rn(oye);function iye(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:r,right:o,bottom:a,left:i}=e.getBoundingClientRect();return r>=0&&i>=0&&o<=t&&a<=n}function lye(e,t,n,r){const[o,a]=It(void 0);Je(()=>{const c=typeof e.value=="function"?e.value():e.value;a(c||null)},{flush:"post"});const[i,l]=It(null),s=()=>{if(!t.value){l(null);return}if(o.value){!iye(o.value)&&t.value&&o.value.scrollIntoView(r.value);const{left:c,top:d,width:f,height:p}=o.value.getBoundingClientRect(),v={left:c,top:d,width:f,height:p,radius:0};JSON.stringify(i.value)!==JSON.stringify(v)&&l(v)}else l(null)};return Qe(()=>{Ne([t,o],()=>{s()},{flush:"post",immediate:!0}),window.addEventListener("resize",s)}),st(()=>{window.removeEventListener("resize",s)}),[z(()=>{var c,d;if(!i.value)return i.value;const f=((c=n.value)===null||c===void 0?void 0:c.offset)||6,p=((d=n.value)===null||d===void 0?void 0:d.radius)||2;return{left:i.value.left-f,top:i.value.top-f,width:i.value.width+f*2,height:i.value.height+f*2,radius:p}}),o]}const sye=()=>({arrow:Xe([Boolean,Object]),target:Xe([String,Function,Object]),title:Xe([String,Object]),description:Xe([String,Object]),placement:Ue(),mask:Xe([Object,Boolean],!0),className:{type:String},style:We(),scrollIntoViewOptions:Xe([Boolean,Object])}),Ow=()=>E(E({},sye()),{prefixCls:{type:String},total:{type:Number},current:{type:Number},onClose:Oe(),onFinish:Oe(),renderPanel:Oe(),onPrev:Oe(),onNext:Oe()}),uye=he({name:"DefaultPanel",inheritAttrs:!1,props:Ow(),setup(e,t){let{attrs:n}=t;return()=>{const{prefixCls:r,current:o,total:a,title:i,description:l,onClose:s,onPrev:u,onNext:c,onFinish:d}=e;return C("div",j(j({},n),{},{class:ge(`${r}-content`,n.class)}),[C("div",{class:`${r}-inner`},[C("button",{type:"button",onClick:s,"aria-label":"Close",class:`${r}-close`},[C("span",{class:`${r}-close-x`},[sr("×")])]),C("div",{class:`${r}-header`},[C("div",{class:`${r}-title`},[i])]),C("div",{class:`${r}-description`},[l]),C("div",{class:`${r}-footer`},[C("div",{class:`${r}-sliders`},[a>1?[...Array.from({length:a}).keys()].map((f,p)=>C("span",{key:f,class:p===o?"active":""},null)):null]),C("div",{class:`${r}-buttons`},[o!==0?C("button",{class:`${r}-prev-btn`,onClick:u},[sr("Prev")]):null,o===a-1?C("button",{class:`${r}-finish-btn`,onClick:d},[sr("Finish")]):C("button",{class:`${r}-next-btn`,onClick:c},[sr("Next")])])])])])}}}),cye=uye,dye=he({name:"TourStep",inheritAttrs:!1,props:Ow(),setup(e,t){let{attrs:n}=t;return()=>{const{current:r,renderPanel:o}=e;return C(dt,null,[typeof o=="function"?o(E(E({},n),e),r):C(cye,j(j({},n),e),null)])}}}),fye=dye;let kE=0;const pye=Co();function mye(){let e;return pye?(e=kE,kE+=1):e="TEST_OR_SSR",e}function vye(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:be("");const t=`vc_unique_${mye()}`;return e.value||t}const xd={fill:"transparent","pointer-events":"auto"},hye=he({name:"Mask",props:{prefixCls:{type:String},pos:We(),rootClassName:{type:String},showMask:Pe(),fill:{type:String,default:"rgba(0,0,0,0.5)"},open:Pe(),animated:Xe([Boolean,Object]),zIndex:{type:Number}},setup(e,t){let{attrs:n}=t;const r=vye();return()=>{const{prefixCls:o,open:a,rootClassName:i,pos:l,showMask:s,fill:u,animated:c,zIndex:d}=e,f=`${o}-mask-${r}`,p=typeof c=="object"?c==null?void 0:c.placeholder:c;return C(dc,{visible:a,autoLock:!0},{default:()=>a&&C("div",j(j({},n),{},{class:ge(`${o}-mask`,i,n.class),style:[{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:d,pointerEvents:"none"},n.style]}),[s?C("svg",{style:{width:"100%",height:"100%"}},[C("defs",null,[C("mask",{id:f},[C("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"},null),l&&C("rect",{x:l.left,y:l.top,rx:l.radius,width:l.width,height:l.height,fill:"black",class:p?`${o}-placeholder-animated`:""},null)])]),C("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:u,mask:`url(#${f})`},null),l&&C(dt,null,[C("rect",j(j({},xd),{},{x:"0",y:"0",width:"100%",height:l.top}),null),C("rect",j(j({},xd),{},{x:"0",y:"0",width:l.left,height:"100%"}),null),C("rect",j(j({},xd),{},{x:"0",y:l.top+l.height,width:"100%",height:`calc(100vh - ${l.top+l.height}px)`}),null),C("rect",j(j({},xd),{},{x:l.left+l.width,y:"0",width:`calc(100vw - ${l.left+l.width}px)`,height:"100%"}),null)])]):null])})}}}),gye=hye,yye=[0,0],HE={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function X5(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t={};return Object.keys(HE).forEach(n=>{t[n]=E(E({},HE[n]),{autoArrow:e,targetOffset:yye})}),t}X5();var bye=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{builtinPlacements:e,popupAlign:t}=KM();return{builtinPlacements:e,popupAlign:t,steps:bt(),open:Pe(),defaultCurrent:{type:Number},current:{type:Number},onChange:Oe(),onClose:Oe(),onFinish:Oe(),mask:Xe([Boolean,Object],!0),arrow:Xe([Boolean,Object],!0),rootClassName:{type:String},placement:Ue("bottom"),prefixCls:{type:String,default:"rc-tour"},renderPanel:Oe(),gap:We(),animated:Xe([Boolean,Object]),scrollIntoViewOptions:Xe([Boolean,Object],!0),zIndex:{type:Number,default:1001}}},xye=he({name:"Tour",inheritAttrs:!1,props:at(Y5(),{}),setup(e){const{defaultCurrent:t,placement:n,mask:r,scrollIntoViewOptions:o,open:a,gap:i,arrow:l}=Xr(e),s=be(),[u,c]=Zt(0,{value:z(()=>e.current),defaultValue:t.value}),[d,f]=Zt(void 0,{value:z(()=>e.open),postState:$=>u.value<0||u.value>=e.steps.length?!1:$??!0}),p=pe(d.value);Je(()=>{d.value&&!p.value&&c(0),p.value=d.value});const v=z(()=>e.steps[u.value]||{}),m=z(()=>{var $;return($=v.value.placement)!==null&&$!==void 0?$:n.value}),h=z(()=>{var $;return d.value&&(($=v.value.mask)!==null&&$!==void 0?$:r.value)}),g=z(()=>{var $;return($=v.value.scrollIntoViewOptions)!==null&&$!==void 0?$:o.value}),[x,y]=lye(z(()=>v.value.target),a,i,g),w=z(()=>y.value?typeof v.value.arrow>"u"?l.value:v.value.arrow:!1),b=z(()=>typeof w.value=="object"?w.value.pointAtCenter:!1);Ne(b,()=>{var $;($=s.value)===null||$===void 0||$.forcePopupAlign()}),Ne(u,()=>{var $;($=s.value)===null||$===void 0||$.forcePopupAlign()});const S=$=>{var D;c($),(D=e.onChange)===null||D===void 0||D.call(e,$)};return()=>{var $;const{prefixCls:D,steps:O,onClose:A,onFinish:T,rootClassName:M,renderPanel:B,animated:F,zIndex:P}=e,I=bye(e,["prefixCls","steps","onClose","onFinish","rootClassName","renderPanel","animated","zIndex"]);if(y.value===void 0)return null;const N=()=>{f(!1),A==null||A(u.value)},R=typeof h.value=="boolean"?h.value:!!h.value,_=typeof h.value=="boolean"?void 0:h.value,L=()=>y.value||document.body,k=()=>C(fye,j({arrow:w.value,key:"content",prefixCls:D,total:O.length,renderPanel:B,onPrev:()=>{S(u.value-1)},onNext:()=>{S(u.value+1)},onClose:N,current:u.value,onFinish:()=>{N(),T==null||T()}},v.value),null),H=z(()=>{const V=x.value||sg,U={};return Object.keys(V).forEach(q=>{typeof V[q]=="number"?U[q]=`${V[q]}px`:U[q]=V[q]}),U});return d.value?C(dt,null,[C(gye,{zIndex:P,prefixCls:D,pos:x.value,showMask:R,style:_==null?void 0:_.style,fill:_==null?void 0:_.color,open:d.value,animated:F,rootClassName:M},null),C(rl,j(j({},I),{},{builtinPlacements:v.value.target?($=I.builtinPlacements)!==null&&$!==void 0?$:X5(b.value):void 0,ref:s,popupStyle:v.value.target?v.value.style:E(E({},v.value.style),{position:"fixed",left:sg.left,top:sg.top,transform:"translate(-50%, -50%)"}),popupPlacement:m.value,popupVisible:d.value,popupClassName:ge(M,v.value.className),prefixCls:D,popup:k,forceRender:!1,destroyPopupOnHide:!0,zIndex:P,mask:!1,getTriggerDOMNode:L}),{default:()=>[C(dc,{visible:d.value,autoLock:!0},{default:()=>[C("div",{class:ge(M,`${D}-target-placeholder`),style:E(E({},H.value),{position:"fixed",pointerEvents:"none"})},null)]})]})]):null}}}),wye=xye,Sye=()=>E(E({},Y5()),{steps:{type:Array},prefixCls:{type:String},current:{type:Number},type:{type:String},"onUpdate:current":Function}),Cye=()=>E(E({},Ow()),{cover:{type:Object},nextButtonProps:{type:Object},prevButtonProps:{type:Object},current:{type:Number},type:{type:String}}),$ye=he({name:"ATourPanel",inheritAttrs:!1,props:Cye(),setup(e,t){let{attrs:n,slots:r}=t;const{current:o,total:a}=Xr(e),i=z(()=>o.value===a.value-1),l=u=>{var c;const d=e.prevButtonProps;(c=e.onPrev)===null||c===void 0||c.call(e,u),typeof(d==null?void 0:d.onClick)=="function"&&(d==null||d.onClick())},s=u=>{var c,d;const f=e.nextButtonProps;i.value?(c=e.onFinish)===null||c===void 0||c.call(e,u):(d=e.onNext)===null||d===void 0||d.call(e,u),typeof(f==null?void 0:f.onClick)=="function"&&(f==null||f.onClick())};return()=>{const{prefixCls:u,title:c,onClose:d,cover:f,description:p,type:v,arrow:m}=e,h=e.prevButtonProps,g=e.nextButtonProps;let x;c&&(x=C("div",{class:`${u}-header`},[C("div",{class:`${u}-title`},[c])]));let y;p&&(y=C("div",{class:`${u}-description`},[p]));let w;f&&(w=C("div",{class:`${u}-cover`},[f]));let b;r.indicatorsRender?b=r.indicatorsRender({current:o.value,total:a}):b=[...Array.from({length:a.value}).keys()].map((D,O)=>C("span",{key:D,class:ge(O===o.value&&`${u}-indicator-active`,`${u}-indicator`)},null));const S=v==="primary"?"default":"primary",$={type:"default",ghost:v==="primary"};return C(Zi,{componentName:"Tour",defaultLocale:cr.Tour},{default:D=>{var O,A;return C("div",j(j({},n),{},{class:ge(v==="primary"?`${u}-primary`:"",n.class,`${u}-content`)}),[m&&C("div",{class:`${u}-arrow`,key:"arrow"},null),C("div",{class:`${u}-inner`},[C(Hr,{class:`${u}-close`,onClick:d},null),w,x,y,C("div",{class:`${u}-footer`},[a.value>1&&C("div",{class:`${u}-indicators`},[b]),C("div",{class:`${u}-buttons`},[o.value!==0?C(dn,j(j(j({},$),h),{},{onClick:l,size:"small",class:ge(`${u}-prev-btn`,h==null?void 0:h.className)}),{default:()=>[(O=h==null?void 0:h.children)!==null&&O!==void 0?O:D.Previous]}):null,C(dn,j(j({type:S},g),{},{onClick:s,size:"small",class:ge(`${u}-next-btn`,g==null?void 0:g.className)}),{default:()=>[(A=g==null?void 0:g.children)!==null&&A!==void 0?A:i.value?D.Finish:D.Next]})])])])])}})}}}),Eye=$ye,Dye=e=>{let{defaultType:t,steps:n,current:r,defaultCurrent:o}=e;const a=be(o==null?void 0:o.value),i=z(()=>r==null?void 0:r.value);Ne(i,c=>{a.value=c??(o==null?void 0:o.value)},{immediate:!0});const l=c=>{a.value=c},s=z(()=>{var c,d;return typeof a.value=="number"?n&&((d=(c=n.value)===null||c===void 0?void 0:c[a.value])===null||d===void 0?void 0:d.type):t==null?void 0:t.value});return{currentMergedType:z(()=>{var c;return(c=s.value)!==null&&c!==void 0?c:t==null?void 0:t.value}),updateInnerCurrent:l}},Aye=Dye,Oye=e=>{const{componentCls:t,lineHeight:n,padding:r,paddingXS:o,borderRadius:a,borderRadiusXS:i,colorPrimary:l,colorText:s,colorFill:u,indicatorHeight:c,indicatorWidth:d,boxShadowTertiary:f,tourZIndexPopup:p,fontSize:v,colorBgContainer:m,fontWeightStrong:h,marginXS:g,colorTextLightSolid:x,tourBorderRadius:y,colorWhite:w,colorBgTextHover:b,tourCloseSize:S,motionDurationSlow:$,antCls:D}=e;return[{[t]:E(E({},rt(e)),{color:s,position:"absolute",zIndex:p,display:"block",visibility:"visible",fontSize:v,lineHeight:n,width:520,"--antd-arrow-background-color":m,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:y,boxShadow:f,position:"relative",backgroundColor:m,border:"none",backgroundClip:"padding-box",[`${t}-close`]:{position:"absolute",top:r,insetInlineEnd:r,color:e.colorIcon,outline:"none",width:S,height:S,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}},[`${t}-cover`]:{textAlign:"center",padding:`${r+S+o}px ${r}px 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${r}px ${r}px ${o}px`,[`${t}-title`]:{lineHeight:n,fontSize:v,fontWeight:h}},[`${t}-description`]:{padding:`0 ${r}px`,lineHeight:n,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${o}px ${r}px ${r}px`,textAlign:"end",borderRadius:`0 0 ${i}px ${i}px`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:d,height:c,display:"inline-block",borderRadius:"50%",background:u,"&:not(:last-child)":{marginInlineEnd:c},"&-active":{background:l}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${D}-btn`]:{marginInlineStart:g}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":l,[`${t}-inner`]:{color:x,textAlign:"start",textDecoration:"none",backgroundColor:l,borderRadius:a,boxShadow:f,[`${t}-close`]:{color:x},[`${t}-indicators`]:{[`${t}-indicator`]:{background:new $t(x).setAlpha(.15).toRgbString(),"&-active":{background:x}}},[`${t}-prev-btn`]:{color:x,borderColor:new $t(x).setAlpha(.15).toRgbString(),backgroundColor:l,"&:hover":{backgroundColor:new $t(x).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${t}-next-btn`]:{color:l,borderColor:"transparent",background:w,"&:hover":{background:new $t(b).onBackground(w).toRgbString()}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${$}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(y,p1)}}},m1(e,{colorBg:"var(--antd-arrow-background-color)",contentRadius:y,limitVerticalRadius:!0})]},Tye=nt("Tour",e=>{const{borderRadiusLG:t,fontSize:n,lineHeight:r}=e,o=qe(e,{tourZIndexPopup:e.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t,tourCloseSize:n*r});return[Oye(o)]});var Mye=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{steps:m,current:h,type:g,rootClassName:x}=e,y=Mye(e,["steps","current","type","rootClassName"]),w=ge({[`${u.value}-primary`]:p.value==="primary",[`${u.value}-rtl`]:c.value==="rtl"},f.value,x),b=(D,O)=>C(Eye,j(j({},D),{},{type:g,current:O}),{indicatorsRender:o.indicatorsRender}),S=D=>{v(D),r("update:current",D),r("change",D)},$=z(()=>f1({arrowPointAtCenter:!0,autoAdjustOverflow:!0}));return d(C(wye,j(j(j({},n),y),{},{rootClassName:w,prefixCls:u.value,current:h,defaultCurrent:e.defaultCurrent,animated:!0,renderPanel:b,onChange:S,steps:m,builtinPlacements:$.value}),null))}}}),Pye=rn(Nye),jE=Object.freeze(Object.defineProperty({__proto__:null,Affix:MM,Alert:DX,Anchor:Ai,AnchorLink:ub,AutoComplete:GG,AutoCompleteOptGroup:qG,AutoCompleteOption:KG,Avatar:Fi,AvatarGroup:rp,BackTop:Ep,Badge:Yd,BadgeRibbon:op,Breadcrumb:Ri,BreadcrumbItem:Ku,BreadcrumbSeparator:dp,Button:dn,ButtonGroup:up,Calendar:CQ,Card:Yl,CardGrid:gp,CardMeta:hp,Carousel:Cte,Cascader:Vre,CheckableTag:wp,Checkbox:Zr,CheckboxGroup:xp,Col:Xre,Collapse:bu,CollapsePanel:yp,Comment:eoe,Compact:tp,ConfigProvider:iv,DatePicker:Yle,Descriptions:lse,DescriptionsItem:q8,DirectoryTree:wf,Divider:fse,Drawer:Mse,Dropdown:Ro,DropdownButton:Uu,Empty:Ka,FloatButton:ni,FloatButtonGroup:$p,Form:qa,FormItem:i8,FormItemRest:Jf,Grid:Gre,Image:Lue,ImagePreviewGroup:y6,Input:$n,InputGroup:a6,InputNumber:Jue,InputPassword:s6,InputSearch:i6,Layout:dce,LayoutContent:cce,LayoutFooter:sce,LayoutHeader:lce,LayoutSider:uce,List:Gce,ListItem:$6,ListItemMeta:S6,LocaleProvider:c8,Mentions:vde,MentionsOption:gf,Menu:mn,MenuDivider:Gu,MenuItem:zo,MenuItemGroup:qu,Modal:Nn,MonthPicker:sf,PageHeader:qde,Pagination:uv,Popconfirm:Qde,Popover:v1,Progress:mw,QRCode:aye,QuarterPicker:uf,Radio:ar,RadioButton:mp,RadioGroup:K1,RangePicker:cf,Rate:zfe,Result:tpe,Row:npe,Segmented:G0e,Select:xa,SelectOptGroup:VG,SelectOption:jG,Skeleton:Yn,SkeletonAvatar:nx,SkeletonButton:Q1,SkeletonImage:tx,SkeletonInput:ex,SkeletonTitle:Wm,Slider:wpe,Space:H6,Spin:Lo,Statistic:ia,StatisticCountdown:Fde,Step:yf,Steps:Gpe,SubMenu:Ki,Switch:ome,TabPane:vp,Table:hhe,TableColumn:Cf,TableColumnGroup:$f,TableSummary:Ef,TableSummaryCell:Np,TableSummaryRow:Mp,Tabs:zi,Tag:H8,Textarea:lw,TimePicker:dge,TimeRangePicker:Df,Timeline:Ou,TimelineItem:tc,Tooltip:Br,Tour:Pye,Transfer:Lhe,Tree:$5,TreeNode:Sf,TreeSelect:uge,TreeSelectNode:ny,Typography:gr,TypographyLink:Cw,TypographyParagraph:$w,TypographyText:Ew,TypographyTitle:Dw,Upload:N0e,UploadDragger:M0e,Watermark:L0e,WeekPicker:lf,message:cn,notification:ew},Symbol.toStringTag,{value:"Module"})),Ra=(e,t)=>new $t(e).setAlpha(t).toRgbString(),$l=(e,t)=>new $t(e).lighten(t).toHexString(),Iye=e=>{const t=ga(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]}},_ye=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Ra(r,.85),colorTextSecondary:Ra(r,.65),colorTextTertiary:Ra(r,.45),colorTextQuaternary:Ra(r,.25),colorFill:Ra(r,.18),colorFillSecondary:Ra(r,.12),colorFillTertiary:Ra(r,.08),colorFillQuaternary:Ra(r,.04),colorBgElevated:$l(n,12),colorBgContainer:$l(n,8),colorBgLayout:$l(n,0),colorBgSpotlight:$l(n,26),colorBorder:$l(n,26),colorBorderSecondary:$l(n,19)}},Bye=(e,t)=>{const n=Object.keys(rb).map(o=>{const a=ga(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((i,l,s)=>(i[`${o}-${s+1}`]=a[s],i),{})}).reduce((o,a)=>(o=E(E({},o),a),o),{}),r=t??dm(e);return E(E(E({},r),n),yM(e,{generateColorPalettes:Iye,generateNeutralColorPalettes:_ye}))},Fye=Bye;function Rye(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const zye=(e,t)=>{const n=t??dm(e),r=n.fontSizeSM,o=n.controlHeight-4;return E(E(E(E(E({},n),Rye(t??e)),bM(r)),{controlHeight:o}),gM(E(E({},n),{controlHeight:o})))},Lye=zye;function kye(){const[e,t,n]=$a();return{theme:e,token:t,hashId:n}}const Hye={defaultConfig:Vf,defaultSeed:Vf.token,useToken:kye,defaultAlgorithm:dm,darkAlgorithm:Fye,compactAlgorithm:Lye},jye=function(e){return Object.keys(jE).forEach(t=>{const n=jE[t];n.install&&e.use(n)}),e.use(f9.StyleProvider),e.config.globalProperties.$message=cn,e.config.globalProperties.$notification=ew,e.config.globalProperties.$info=Nn.info,e.config.globalProperties.$success=Nn.success,e.config.globalProperties.$error=Nn.error,e.config.globalProperties.$warning=Nn.warning,e.config.globalProperties.$confirm=Nn.confirm,e.config.globalProperties.$destroyAll=Nn.destroyAll,e},Vye={version:pM,install:jye},Wye={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"},Uye=Wye,Kye={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},Z5=Kye,J5={lang:E({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Uye),timePickerLocale:E({},Z5)};J5.lang.ok="确定";const VE=J5,Mr="${label}不是一个有效的${type}",qye={locale:"zh-cn",Pagination:w6,DatePicker:VE,TimePicker:Z5,Calendar:VE,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Mr,method:Mr,array:Mr,object:Mr,number:Mr,date:Mr,boolean:Mr,integer:Mr,float:Mr,regexp:Mr,email:Mr,url:Mr,hex:Mr},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码已过期",refresh:"点击刷新"}},Gye=qye;var WE={},Xye={get exports(){return WE},set exports(e){WE=e}};(function(e,t){(function(n,r){e.exports=r(fp)})(tr,function(n){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=r(n),a={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(i,l){return l==="W"?i+"周":i+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(i,l){var s=100*i+l;return s<600?"凌晨":s<900?"早上":s<1100?"上午":s<1300?"中午":s<1800?"下午":"晚上"}};return o.default.locale(a,null,!0),a})})(Xye);var Yye=!1;/*! * pinia v2.0.33 * (c) 2023 Eduardo San Martin Morote * @license MIT */let Q5;const xv=e=>Q5=e,e_=Symbol();function oy(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Tu;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Tu||(Tu={}));function Zye(){const e=DT(!0),t=e.run(()=>be({}));let n=[],r=[];const o=Bf({install(a){xv(o),o._a=a,a.provide(e_,o),a.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(a){return!this._a&&!Yye?r.push(a):n.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const t_=()=>{};function UE(e,t,n,r=t_){e.push(t);const o=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&CT()&&$T(o),o}function El(e,...t){e.slice().forEach(n=>{n(...t)})}function ay(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];oy(o)&&oy(r)&&e.hasOwnProperty(n)&&!ji(r)&&!Hy(r)?e[n]=ay(o,r):e[n]=r}return e}const Jye=Symbol();function Qye(e){return!oy(e)||!e.hasOwnProperty(Jye)}const{assign:Ha}=Object;function ebe(e){return!!(ji(e)&&e.effect)}function tbe(e,t,n,r){const{state:o,actions:a,getters:i}=t,l=n.state.value[e];let s;function u(){l||(n.state.value[e]=o?o():{});const c=Xr(n.state.value[e]);return Ha(c,a,Object.keys(i||{}).reduce((d,f)=>(d[f]=Bf(z(()=>{xv(n);const p=n._s.get(e);return i[f].call(p,p)})),d),{}))}return s=n_(e,u,t,n,r,!0),s}function n_(e,t,n={},r,o,a){let i;const l=Ha({actions:{}},n),s={deep:!0};let u,c,d=Bf([]),f=Bf([]),p;const v=r.state.value[e];!a&&!v&&(r.state.value[e]={}),be({});let m;function h($){let D;u=c=!1,typeof $=="function"?($(r.state.value[e]),D={type:Tu.patchFunction,storeId:e,events:p}):(ay(r.state.value[e],$),D={type:Tu.patchObject,payload:$,storeId:e,events:p});const O=m=Symbol();ht().then(()=>{m===O&&(u=!0)}),c=!0,El(d,D,r.state.value[e])}const g=a?function(){const{state:D}=n,O=D?D():{};this.$patch(A=>{Ha(A,O)})}:t_;function x(){i.stop(),d=[],f=[],r._s.delete(e)}function y($,D){return function(){xv(r);const O=Array.from(arguments),A=[],T=[];function M(P){A.push(P)}function B(P){T.push(P)}El(f,{args:O,name:$,store:b,after:M,onError:B});let F;try{F=D.apply(this&&this.$id===e?this:b,O)}catch(P){throw El(T,P),P}return F instanceof Promise?F.then(P=>(El(A,P),P)).catch(P=>(El(T,P),Promise.reject(P))):(El(A,F),F)}}const w={_p:r,$id:e,$onAction:UE.bind(null,f),$patch:h,$reset:g,$subscribe($,D={}){const O=UE(d,$,D.detached,()=>A()),A=i.run(()=>Ne(()=>r.state.value[e],T=>{(D.flush==="sync"?c:u)&&$({storeId:e,type:Tu.direct,events:p},T)},Ha({},s,D)));return O},$dispose:x},b=_t(w);r._s.set(e,b);const S=r._e.run(()=>(i=DT(),i.run(()=>t())));for(const $ in S){const D=S[$];if(ji(D)&&!ebe(D)||Hy(D))a||(v&&Qye(D)&&(ji(D)?D.value=v[$]:ay(D,v[$])),r.state.value[e][$]=D);else if(typeof D=="function"){const O=y($,D);S[$]=O,l.actions[$]=D}}return Ha(b,S),Ha(un(b),S),Object.defineProperty(b,"$state",{get:()=>r.state.value[e],set:$=>{h(D=>{Ha(D,$)})}}),r._p.forEach($=>{Ha(b,i.run(()=>$({store:b,app:r._a,pinia:r,options:l})))}),v&&a&&n.hydrate&&n.hydrate(b.$state,v),u=!0,c=!0,b}function r_(e,t,n){let r,o;const a=typeof t=="function";typeof e=="string"?(r=e,o=a?n:t):(o=e,r=e.id);function i(l,s){const u=Kn();return l=l||u&<(e_,null),l&&xv(l),l=Q5,l._s.has(r)||(a?n_(r,t,o,l):tbe(r,o,l)),l._s.get(r)}return i.$id=r,i}function nbe(e){{e=un(e);const t={};for(const n in e){const r=e[n];(ji(r)||Hy(r))&&(t[n]=Ye(e,n))}return t}}const rbe="modulepreload",obe=function(e,t){return new URL(e,t).href},KE={},ze=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(a=>{if(a=obe(a,r),a in KE)return;KE[a]=!0;const i=a.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const d=o[c];if(d.href===a&&(!i||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${l}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":rbe,i||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),i)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t())};function o_(e,t){return function(){return e.apply(t,arguments)}}const{toString:a_}=Object.prototype,{getPrototypeOf:Tw}=Object,Mw=(e=>t=>{const n=a_.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ma=e=>(e=e.toLowerCase(),t=>Mw(t)===e),wv=e=>t=>typeof t===e,{isArray:Rs}=Array,nc=wv("undefined");function abe(e){return e!==null&&!nc(e)&&e.constructor!==null&&!nc(e.constructor)&&ai(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const i_=Ma("ArrayBuffer");function ibe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&i_(e.buffer),t}const lbe=wv("string"),ai=wv("function"),l_=wv("number"),Nw=e=>e!==null&&typeof e=="object",sbe=e=>e===!0||e===!1,Tf=e=>{if(Mw(e)!=="object")return!1;const t=Tw(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ube=Ma("Date"),cbe=Ma("File"),dbe=Ma("Blob"),fbe=Ma("FileList"),pbe=e=>Nw(e)&&ai(e.pipe),mbe=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||a_.call(e)===t||ai(e.toString)&&e.toString()===t)},vbe=Ma("URLSearchParams"),hbe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Mc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Rs(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const u_=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),c_=e=>!nc(e)&&e!==u_;function iy(){const{caseless:e}=c_(this)&&this||{},t={},n=(r,o)=>{const a=e&&s_(t,o)||o;Tf(t[a])&&Tf(r)?t[a]=iy(t[a],r):Tf(r)?t[a]=iy({},r):Rs(r)?t[a]=r.slice():t[a]=r};for(let r=0,o=arguments.length;r(Mc(t,(o,a)=>{n&&ai(o)?e[a]=o_(o,n):e[a]=o},{allOwnKeys:r}),e),ybe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bbe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},xbe=(e,t,n,r)=>{let o,a,i;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Tw(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},wbe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Sbe=e=>{if(!e)return null;if(Rs(e))return e;let t=e.length;if(!l_(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Cbe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Tw(Uint8Array)),$be=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},Ebe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Dbe=Ma("HTMLFormElement"),Abe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),qE=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Obe=Ma("RegExp"),d_=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Mc(n,(o,a)=>{t(o,a,e)!==!1&&(r[a]=o)}),Object.defineProperties(e,r)},Tbe=e=>{d_(e,(t,n)=>{if(ai(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ai(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Mbe=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return Rs(e)?r(e):r(String(e).split(t)),n},Nbe=()=>{},Pbe=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ug="abcdefghijklmnopqrstuvwxyz",GE="0123456789",f_={DIGIT:GE,ALPHA:ug,ALPHA_DIGIT:ug+ug.toUpperCase()+GE},Ibe=(e=16,t=f_.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function _be(e){return!!(e&&ai(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Bbe=e=>{const t=new Array(10),n=(r,o)=>{if(Nw(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const a=Rs(r)?[]:{};return Mc(r,(i,l)=>{const s=n(i,o+1);!nc(s)&&(a[l]=s)}),t[o]=void 0,a}}return r};return n(e,0)},Fe={isArray:Rs,isArrayBuffer:i_,isBuffer:abe,isFormData:mbe,isArrayBufferView:ibe,isString:lbe,isNumber:l_,isBoolean:sbe,isObject:Nw,isPlainObject:Tf,isUndefined:nc,isDate:ube,isFile:cbe,isBlob:dbe,isRegExp:Obe,isFunction:ai,isStream:pbe,isURLSearchParams:vbe,isTypedArray:Cbe,isFileList:fbe,forEach:Mc,merge:iy,extend:gbe,trim:hbe,stripBOM:ybe,inherits:bbe,toFlatObject:xbe,kindOf:Mw,kindOfTest:Ma,endsWith:wbe,toArray:Sbe,forEachEntry:$be,matchAll:Ebe,isHTMLForm:Dbe,hasOwnProperty:qE,hasOwnProp:qE,reduceDescriptors:d_,freezeMethods:Tbe,toObjectSet:Mbe,toCamelCase:Abe,noop:Nbe,toFiniteNumber:Pbe,findKey:s_,global:u_,isContextDefined:c_,ALPHABET:f_,generateString:Ibe,isSpecCompliantForm:_be,toJSONObject:Bbe};function Vt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Fe.inherits(Vt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Fe.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const p_=Vt.prototype,m_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{m_[e]={value:e}});Object.defineProperties(Vt,m_);Object.defineProperty(p_,"isAxiosError",{value:!0});Vt.from=(e,t,n,r,o,a)=>{const i=Object.create(p_);return Fe.toFlatObject(e,i,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),Vt.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const Fbe=null;function ly(e){return Fe.isPlainObject(e)||Fe.isArray(e)}function v_(e){return Fe.endsWith(e,"[]")?e.slice(0,-2):e}function XE(e,t,n){return e?e.concat(t).map(function(o,a){return o=v_(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function Rbe(e){return Fe.isArray(e)&&!e.some(ly)}const zbe=Fe.toFlatObject(Fe,{},null,function(t){return/^is[A-Z]/.test(t)});function Sv(e,t,n){if(!Fe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Fe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!Fe.isUndefined(h[m])});const r=n.metaTokens,o=n.visitor||c,a=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&Fe.isSpecCompliantForm(t);if(!Fe.isFunction(o))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(Fe.isDate(v))return v.toISOString();if(!s&&Fe.isBlob(v))throw new Vt("Blob is not supported. Use a Buffer instead.");return Fe.isArrayBuffer(v)||Fe.isTypedArray(v)?s&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,m,h){let g=v;if(v&&!h&&typeof v=="object"){if(Fe.endsWith(m,"{}"))m=r?m:m.slice(0,-2),v=JSON.stringify(v);else if(Fe.isArray(v)&&Rbe(v)||(Fe.isFileList(v)||Fe.endsWith(m,"[]"))&&(g=Fe.toArray(v)))return m=v_(m),g.forEach(function(y,w){!(Fe.isUndefined(y)||y===null)&&t.append(i===!0?XE([m],w,a):i===null?m:m+"[]",u(y))}),!1}return ly(v)?!0:(t.append(XE(h,m,a),u(v)),!1)}const d=[],f=Object.assign(zbe,{defaultVisitor:c,convertValue:u,isVisitable:ly});function p(v,m){if(!Fe.isUndefined(v)){if(d.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(v),Fe.forEach(v,function(g,x){(!(Fe.isUndefined(g)||g===null)&&o.call(t,g,Fe.isString(x)?x.trim():x,m,f))===!0&&p(g,m?m.concat(x):[x])}),d.pop()}}if(!Fe.isObject(e))throw new TypeError("data must be an object");return p(e),t}function YE(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Pw(e,t){this._pairs=[],e&&Sv(e,this,t)}const h_=Pw.prototype;h_.append=function(t,n){this._pairs.push([t,n])};h_.toString=function(t){const n=t?function(r){return t.call(this,r,YE)}:YE;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Lbe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function g_(e,t,n){if(!t)return e;const r=n&&n.encode||Lbe,o=n&&n.serialize;let a;if(o?a=o(t,n):a=Fe.isURLSearchParams(t)?t.toString():new Pw(t,n).toString(r),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class kbe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Fe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ZE=kbe,y_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Hbe=typeof URLSearchParams<"u"?URLSearchParams:Pw,jbe=typeof FormData<"u"?FormData:null,Vbe=typeof Blob<"u"?Blob:null,Wbe=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Ube=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Bo={isBrowser:!0,classes:{URLSearchParams:Hbe,FormData:jbe,Blob:Vbe},isStandardBrowserEnv:Wbe,isStandardBrowserWebWorkerEnv:Ube,protocols:["http","https","file","blob","url","data"]};function Kbe(e,t){return Sv(e,new Bo.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,a){return Bo.isNode&&Fe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function qbe(e){return Fe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Gbe(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r=n.length;return i=!i&&Fe.isArray(o)?o.length:i,s?(Fe.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!l):((!o[i]||!Fe.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],a)&&Fe.isArray(o[i])&&(o[i]=Gbe(o[i])),!l)}if(Fe.isFormData(e)&&Fe.isFunction(e.entries)){const n={};return Fe.forEachEntry(e,(r,o)=>{t(qbe(r),o,n,0)}),n}return null}const Xbe={"Content-Type":void 0};function Ybe(e,t,n){if(Fe.isString(e))try{return(t||JSON.parse)(e),Fe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Cv={transitional:y_,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=Fe.isObject(t);if(a&&Fe.isHTMLForm(t)&&(t=new FormData(t)),Fe.isFormData(t))return o&&o?JSON.stringify(b_(t)):t;if(Fe.isArrayBuffer(t)||Fe.isBuffer(t)||Fe.isStream(t)||Fe.isFile(t)||Fe.isBlob(t))return t;if(Fe.isArrayBufferView(t))return t.buffer;if(Fe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Kbe(t,this.formSerializer).toString();if((l=Fe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Sv(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),Ybe(t)):t}],transformResponse:[function(t){const n=this.transitional||Cv.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&Fe.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?Vt.from(l,Vt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bo.classes.FormData,Blob:Bo.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Fe.forEach(["delete","get","head"],function(t){Cv.headers[t]={}});Fe.forEach(["post","put","patch"],function(t){Cv.headers[t]=Fe.merge(Xbe)});const Iw=Cv,Zbe=Fe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Jbe=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&Zbe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},JE=Symbol("internals");function tu(e){return e&&String(e).trim().toLowerCase()}function Mf(e){return e===!1||e==null?e:Fe.isArray(e)?e.map(Mf):String(e)}function Qbe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}function e1e(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function cg(e,t,n,r,o){if(Fe.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Fe.isString(t)){if(Fe.isString(r))return t.indexOf(r)!==-1;if(Fe.isRegExp(r))return r.test(t)}}function t1e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function n1e(e,t){const n=Fe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,i){return this[r].call(this,t,o,a,i)},configurable:!0})})}class $v{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,s,u){const c=tu(s);if(!c)throw new Error("header name must be a non-empty string");const d=Fe.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||s]=Mf(l))}const i=(l,s)=>Fe.forEach(l,(u,c)=>a(u,c,s));return Fe.isPlainObject(t)||t instanceof this.constructor?i(t,n):Fe.isString(t)&&(t=t.trim())&&!e1e(t)?i(Jbe(t),n):t!=null&&a(n,t,r),this}get(t,n){if(t=tu(t),t){const r=Fe.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Qbe(o);if(Fe.isFunction(n))return n.call(this,o,r);if(Fe.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=tu(t),t){const r=Fe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||cg(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(i){if(i=tu(i),i){const l=Fe.findKey(r,i);l&&(!n||cg(r,r[l],l,n))&&(delete r[l],o=!0)}}return Fe.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||cg(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return Fe.forEach(this,(o,a)=>{const i=Fe.findKey(r,a);if(i){n[i]=Mf(o),delete n[a];return}const l=t?t1e(a):String(a).trim();l!==a&&delete n[a],n[l]=Mf(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Fe.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Fe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[JE]=this[JE]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=tu(i);r[l]||(n1e(o,i),r[l]=!0)}return Fe.isArray(t)?t.forEach(a):a(t),this}}$v.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Fe.freezeMethods($v.prototype);Fe.freezeMethods($v);const ma=$v;function dg(e,t){const n=this||Iw,r=t||n,o=ma.from(r.headers);let a=r.data;return Fe.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function x_(e){return!!(e&&e.__CANCEL__)}function Nc(e,t,n){Vt.call(this,e??"canceled",Vt.ERR_CANCELED,t,n),this.name="CanceledError"}Fe.inherits(Nc,Vt,{__CANCEL__:!0});function r1e(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Vt("Request failed with status code "+n.status,[Vt.ERR_BAD_REQUEST,Vt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const o1e=Bo.isStandardBrowserEnv?function(){return{write:function(n,r,o,a,i,l){const s=[];s.push(n+"="+encodeURIComponent(r)),Fe.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),Fe.isString(a)&&s.push("path="+a),Fe.isString(i)&&s.push("domain="+i),l===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function a1e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function i1e(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function w_(e,t){return e&&!a1e(t)?i1e(e,t):t}const l1e=Bo.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(a){let i=a;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const l=Fe.isString(i)?o(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function s1e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function u1e(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=r[a];i||(i=u),n[o]=s,r[o]=u;let d=a,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i{const a=o.loaded,i=o.lengthComputable?o.total:void 0,l=a-n,s=r(l),u=a<=i;n=a;const c={loaded:a,total:i,progress:i?a/i:void 0,bytes:l,rate:s||void 0,estimated:s&&i&&u?(i-a)/s:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const c1e=typeof XMLHttpRequest<"u",d1e=c1e&&function(e){return new Promise(function(n,r){let o=e.data;const a=ma.from(e.headers).normalize(),i=e.responseType;let l;function s(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}Fe.isFormData(o)&&(Bo.isStandardBrowserEnv||Bo.isStandardBrowserWebWorkerEnv)&&a.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(p+":"+v))}const c=w_(e.baseURL,e.url);u.open(e.method.toUpperCase(),g_(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function d(){if(!u)return;const p=ma.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),m={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:p,config:e,request:u};r1e(function(g){n(g),s()},function(g){r(g),s()},m),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(r(new Vt("Request aborted",Vt.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new Vt("Network Error",Vt.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||y_;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),r(new Vt(v,m.clarifyTimeoutError?Vt.ETIMEDOUT:Vt.ECONNABORTED,e,u)),u=null},Bo.isStandardBrowserEnv){const p=(e.withCredentials||l1e(c))&&e.xsrfCookieName&&o1e.read(e.xsrfCookieName);p&&a.set(e.xsrfHeaderName,p)}o===void 0&&a.setContentType(null),"setRequestHeader"in u&&Fe.forEach(a.toJSON(),function(v,m){u.setRequestHeader(m,v)}),Fe.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&i!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",QE(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",QE(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=p=>{u&&(r(!p||p.type?new Nc(null,e,u):p),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const f=s1e(c);if(f&&Bo.protocols.indexOf(f)===-1){r(new Vt("Unsupported protocol "+f+":",Vt.ERR_BAD_REQUEST,e));return}u.send(o||null)})},Nf={http:Fbe,xhr:d1e};Fe.forEach(Nf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const f1e={getAdapter:e=>{e=Fe.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof ma?e.toJSON():e;function hs(e,t){t=t||{};const n={};function r(u,c,d){return Fe.isPlainObject(u)&&Fe.isPlainObject(c)?Fe.merge.call({caseless:d},u,c):Fe.isPlainObject(c)?Fe.merge({},c):Fe.isArray(c)?c.slice():c}function o(u,c,d){if(Fe.isUndefined(c)){if(!Fe.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function a(u,c){if(!Fe.isUndefined(c))return r(void 0,c)}function i(u,c){if(Fe.isUndefined(c)){if(!Fe.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const s={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,c)=>o(t4(u),t4(c),!0)};return Fe.forEach(Object.keys(e).concat(Object.keys(t)),function(c){const d=s[c]||o,f=d(e[c],t[c],c);Fe.isUndefined(f)&&d!==l||(n[c]=f)}),n}const S_="1.3.4",_w={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_w[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const n4={};_w.transitional=function(t,n,r){function o(a,i){return"[Axios v"+S_+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return(a,i,l)=>{if(t===!1)throw new Vt(o(i," has been removed"+(n?" in "+n:"")),Vt.ERR_DEPRECATED);return n&&!n4[i]&&(n4[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,i,l):!0}};function p1e(e,t,n){if(typeof e!="object")throw new Vt("options must be an object",Vt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const l=e[a],s=l===void 0||i(l,a,e);if(s!==!0)throw new Vt("option "+a+" must be "+s,Vt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Vt("Unknown option "+a,Vt.ERR_BAD_OPTION)}}const sy={assertOptions:p1e,validators:_w},za=sy.validators;class Pp{constructor(t){this.defaults=t,this.interceptors={request:new ZE,response:new ZE}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=hs(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&sy.assertOptions(r,{silentJSONParsing:za.transitional(za.boolean),forcedJSONParsing:za.transitional(za.boolean),clarifyTimeoutError:za.transitional(za.boolean)},!1),o!==void 0&&sy.assertOptions(o,{encode:za.function,serialize:za.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=a&&Fe.merge(a.common,a[n.method]),i&&Fe.forEach(["delete","get","head","post","put","patch","common"],v=>{delete a[v]}),n.headers=ma.concat(i,a);const l=[];let s=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(s=s&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,d=0,f;if(!s){const v=[e4.bind(this),void 0];for(v.unshift.apply(v,l),v.push.apply(v,u),f=v.length,c=Promise.resolve(n);d{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(l=>{r.subscribe(l),a=l}).then(o);return i.cancel=function(){r.unsubscribe(a)},i},t(function(a,i,l){r.reason||(r.reason=new Nc(a,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new C_(function(o){t=o}),cancel:t}}};const v1e=m1e;function h1e(e){return function(n){return e.apply(null,n)}}function g1e(e){return Fe.isObject(e)&&e.isAxiosError===!0}const uy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(uy).forEach(([e,t])=>{uy[t]=e});const y1e=uy;function $_(e){const t=new Pf(e),n=o_(Pf.prototype.request,t);return Fe.extend(n,Pf.prototype,t,{allOwnKeys:!0}),Fe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return $_(hs(e,o))},n}const Rn=$_(Iw);Rn.Axios=Pf;Rn.CanceledError=Nc;Rn.CancelToken=v1e;Rn.isCancel=x_;Rn.VERSION=S_;Rn.toFormData=Sv;Rn.AxiosError=Vt;Rn.Cancel=Rn.CanceledError;Rn.all=function(t){return Promise.all(t)};Rn.spread=h1e;Rn.isAxiosError=g1e;Rn.mergeConfig=hs;Rn.AxiosHeaders=ma;Rn.formToJSON=e=>b_(Fe.isHTMLForm(e)?new FormData(e):e);Rn.HttpStatusCode=y1e;Rn.default=Rn;const Ev=Rn;var E_={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null};function Pt(e){return typeof e=="number"}function Ot(e){return!e||typeof e!="object"||typeof e.constructor!="function"?!1:e.isBigNumber===!0&&typeof e.constructor.prototype=="object"&&e.constructor.prototype.isBigNumber===!0||typeof e.constructor.isDecimal=="function"&&e.constructor.isDecimal(e)===!0}function vo(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isComplex===!0||!1}function sl(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isFraction===!0||!1}function uo(e){return e&&e.constructor.prototype.isUnit===!0||!1}function Jn(e){return typeof e=="string"}var Ut=Array.isArray;function mt(e){return e&&e.constructor.prototype.isMatrix===!0||!1}function wo(e){return Array.isArray(e)||mt(e)}function rc(e){return e&&e.isDenseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function Za(e){return e&&e.isSparseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function Dv(e){return e&&e.constructor.prototype.isRange===!0||!1}function Pc(e){return e&&e.constructor.prototype.isIndex===!0||!1}function D_(e){return typeof e=="boolean"}function A_(e){return e&&e.constructor.prototype.isResultSet===!0||!1}function Bw(e){return e&&e.constructor.prototype.isHelp===!0||!1}function O_(e){return typeof e=="function"}function T_(e){return e instanceof Date}function M_(e){return e instanceof RegExp}function Av(e){return!!(e&&typeof e=="object"&&e.constructor===Object&&!vo(e)&&!sl(e))}function N_(e){return e===null}function P_(e){return e===void 0}function ii(e){return e&&e.isAccessorNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ir(e){return e&&e.isArrayNode===!0&&e.constructor.prototype.isNode===!0||!1}function I_(e){return e&&e.isAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function __(e){return e&&e.isBlockNode===!0&&e.constructor.prototype.isNode===!0||!1}function B_(e){return e&&e.isConditionalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Rt(e){return e&&e.isConstantNode===!0&&e.constructor.prototype.isNode===!0||!1}function cy(e){return Rt(e)||bn(e)&&e.args.length===1&&Rt(e.args[0])&&"-+~".includes(e.op)}function zs(e){return e&&e.isFunctionAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function Sa(e){return e&&e.isFunctionNode===!0&&e.constructor.prototype.isNode===!0||!1}function ul(e){return e&&e.isIndexNode===!0&&e.constructor.prototype.isNode===!0||!1}function Kt(e){return e&&e.isNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ic(e){return e&&e.isObjectNode===!0&&e.constructor.prototype.isNode===!0||!1}function bn(e){return e&&e.isOperatorNode===!0&&e.constructor.prototype.isNode===!0||!1}function jo(e){return e&&e.isParenthesisNode===!0&&e.constructor.prototype.isNode===!0||!1}function F_(e){return e&&e.isRangeNode===!0&&e.constructor.prototype.isNode===!0||!1}function R_(e){return e&&e.isRelationalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Pn(e){return e&&e.isSymbolNode===!0&&e.constructor.prototype.isNode===!0||!1}function Fw(e){return e&&e.constructor.prototype.isChain===!0||!1}function an(e){var t=typeof e;return t==="object"?e===null?"null":Ot(e)?"BigNumber":e.constructor&&e.constructor.name?e.constructor.name:"Object":t}function ct(e){var t=typeof e;if(t==="number"||t==="string"||t==="boolean"||e===null||e===void 0)return e;if(typeof e.clone=="function")return e.clone();if(Array.isArray(e))return e.map(function(n){return ct(n)});if(e instanceof Date)return new Date(e.valueOf());if(Ot(e))return e;if(e instanceof RegExp)throw new TypeError("Cannot clone "+e);return su(e,ct)}function su(e,t){var n={};for(var r in e)Ke(e,r)&&(n[r]=t(e[r]));return n}function z_(e,t){for(var n in t)Ke(t,n)&&(e[n]=t[n]);return e}function L_(e,t){if(Array.isArray(t))throw new TypeError("Arrays are not supported by deepExtend");for(var n in t)if(Ke(t,n)&&!(n in Object.prototype)&&!(n in Function.prototype))if(t[n]&&t[n].constructor===Object)e[n]===void 0&&(e[n]={}),e[n]&&e[n].constructor===Object?L_(e[n],t[n]):e[n]=t[n];else{if(Array.isArray(t[n]))throw new TypeError("Arrays are not supported by deepExtend");e[n]=t[n]}return e}function oc(e,t){var n,r,o;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(r=0,o=e.length;re[t])}var o4=["Matrix","Array"],a4=["number","BigNumber","Fraction"];function S1e(e,t){function n(r){if(r){var o=su(e,ct);i4(r,"matrix",o4),i4(r,"number",a4),L_(e,r);var a=su(e,ct),i=su(r,ct);return t("config",a,o,i),a}else return su(e,ct)}return n.MATRIX_OPTIONS=o4,n.NUMBER_OPTIONS=a4,Object.keys(E_).forEach(r=>{Object.defineProperty(n,r,{get:()=>e[r],enumerable:!0,configurable:!0})}),n}function C1e(e,t){return e.indexOf(t)!==-1}function i4(e,t,n){e[t]!==void 0&&!C1e(n,e[t])&&console.warn('Warning: Unknown value "'+e[t]+'" for configuration option "'+t+'". Available options: '+n.map(r=>JSON.stringify(r)).join(", ")+".")}function lo(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=$1e(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,l;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return a=u.done,u},e:function(u){i=!0,l=u},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}}}function $1e(e,t){if(e){if(typeof e=="string")return l4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l4(e,t)}}function l4(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:"any",oe=ne?l(ne).index:o.length,ie=[],ve=0;ve1&&arguments[1]!==void 0?arguments[1]:",";return J.map(function(oe){return oe.name}).join(ne)}function g(J){var ne=J.indexOf("...")===0,oe=ne?J.length>3?J.slice(3):"any":J,ie=oe.split("|").map(function(Ae){return l(Ae.trim())}),ve=!1,we=ne?"...":"",$e=ie.map(function(Ae){return ve=Ae.isAny||ve,we+=Ae.name+"|",{name:Ae.name,typeIndex:Ae.index,test:Ae.test,isAny:Ae.isAny,conversion:null,conversionIndex:-1}});return{types:$e,name:we.slice(0,-1),hasAny:ve,hasConversion:!1,restParam:ne}}function x(J){var ne=J.types.map(function($e){return $e.name}),oe=N(ne),ie=J.hasAny,ve=J.name,we=oe.map(function($e){var Ae=l($e.from);return ie=Ae.isAny||ie,ve+="|"+$e.from,{name:$e.from,typeIndex:Ae.index,test:Ae.test,isAny:Ae.isAny,conversion:$e,conversionIndex:$e.index}});return{types:J.types.concat(we),name:ve,hasAny:ie,hasConversion:we.length>0,restParam:J.restParam}}function y(J){return J.typeSet||(J.typeSet=new Set,J.types.forEach(function(ne){return J.typeSet.add(ne.name)})),J.typeSet}function w(J){var ne=[];if(typeof J!="string")throw new TypeError("Signatures must be strings");var oe=J.trim();if(oe==="")return ne;for(var ie=oe.split(","),ve=0;ve=ve+1}}else return J.length===0?function(xe){return xe.length===0}:J.length===1?(oe=S(J[0]),function(xe){return oe(xe[0])&&xe.length===1}):J.length===2?(oe=S(J[0]),ie=S(J[1]),function(xe){return oe(xe[0])&&ie(xe[1])&&xe.length===2}):(ne=J.map(S),function(xe){for(var Ee=0;Ee0){var fe=d(ne[Ae]);return ie=new TypeError("Unexpected type of argument in function "+we+" (expected: "+ve.join(" or ")+", actual: "+fe.join(" | ")+", index: "+Ae+")"),ie.data={category:"wrongType",fn:we,index:Ae,actual:fe,expected:ve},{v:ie}}}else $e=W};for(Ae=0;AeMe)return ie=new TypeError("Too many arguments in function "+we+" (expected: "+Me+", actual: "+ne.length+")"),ie.data={category:"tooManyArgs",fn:we,index:ne.length,expectedLength:Me},ie;for(var Re=[],Be=0;Be0)return 1;var ie=F(J)-F(ne);return ie<0?-1:ie>0?1:0}function I(J,ne){var oe=J.params,ie=ne.params,ve=ee(oe),we=ee(ie),$e=b(oe),Ae=b(ie);if($e&&ve.hasAny){if(!Ae||!we.hasAny)return 1}else if(Ae&&we.hasAny)return-1;var xe=0,Ee=0,Te,Me=lo(oe),Re;try{for(Me.s();!(Re=Me.n()).done;)Te=Re.value,Te.hasAny&&++xe,Te.hasConversion&&++Ee}catch(Ln){Me.e(Ln)}finally{Me.f()}var Be=0,je=0,W=lo(ie),fe;try{for(W.s();!(fe=W.n()).done;)Te=fe.value,Te.hasAny&&++Be,Te.hasConversion&&++je}catch(Ln){W.e(Ln)}finally{W.f()}if(xe!==Be)return xe-Be;if($e&&ve.hasConversion){if(!Ae||!we.hasConversion)return 1}else if(Ae&&we.hasConversion)return-1;if(Ee!==je)return Ee-je;if($e){if(!Ae)return 1}else if(Ae)return-1;var De=(oe.length-ie.length)*($e?-1:1);if(De!==0)return De;for(var Ie=[],Ve=0,Ge=0;Ge1&&ne.sort(function(xe,Ee){return xe.index-Ee.index});var oe=ne[0].conversionsTo;if(J.length===1)return oe;oe=oe.concat([]);for(var ie=new Set(J),ve=1;ve=Te:Be?Te>=Me:Te===Me}function H(J){return J.map(function(ne){return de(ne)?Q(ne.referToSelf.callback):te(ne)?Se(ne.referTo.references,ne.referTo.callback):ne})}function V(J,ne,oe){var ie=[],ve,we=lo(J),$e;try{for(we.s();!($e=we.n()).done;){ve=$e.value;var Ae=oe[ve];if(typeof Ae!="number")throw new TypeError('No definition for referenced signature "'+ve+'"');if(Ae=ne[Ae],typeof Ae!="function")return!1;ie.push(Ae)}}catch(xe){we.e(xe)}finally{we.f()}return ie}function U(J,ne,oe){for(var ie=H(J),ve=new Array(ie.length).fill(!1),we=!0;we;){we=!1;for(var $e=!0,Ae=0;Ae0?1:e<0?-1:0},E1e=Math.log2||function(t){return Math.log(t)/Math.LN2},D1e=Math.log10||function(t){return Math.log(t)/Math.LN10},A1e=Math.log1p||function(e){return Math.log(e+1)},O1e=Math.cbrt||function(t){if(t===0)return t;var n=t<0,r;return n&&(t=-t),isFinite(t)?(r=Math.exp(Math.log(t)/3),r=(t/(r*r)+2*r)/3):r=t,n?-r:r},T1e=Math.expm1||function(t){return t>=2e-4||t<=-2e-4?Math.exp(t)-1:t+t*t/2+t*t*t/6};function pg(e,t,n){var r={2:"0b",8:"0o",16:"0x"},o=r[t],a="";if(n){if(n<1)throw new Error("size must be in greater than 0");if(!ot(n))throw new Error("size must be an integer");if(e>2**(n-1)-1||e<-(2**(n-1)))throw new Error("Value must be in range [-2^".concat(n-1,", 2^").concat(n-1,"-1]"));if(!ot(e))throw new Error("Value must be an integer");e<0&&(e=e+2**n),a="i".concat(n)}var i="";return e<0&&(e=-e,i="-"),"".concat(i).concat(o).concat(e.toString(t)).concat(a)}function Hi(e,t){if(typeof t=="function")return t(e);if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(isNaN(e))return"NaN";var n="auto",r,o;if(t&&(t.notation&&(n=t.notation),Pt(t)?r=t:Pt(t.precision)&&(r=t.precision),t.wordSize&&(o=t.wordSize,typeof o!="number")))throw new Error('Option "wordSize" must be a number');switch(n){case"fixed":return j_(e,r);case"exponential":return V_(e,r);case"engineering":return M1e(e,r);case"bin":return pg(e,2,o);case"oct":return pg(e,8,o);case"hex":return pg(e,16,o);case"auto":return N1e(e,r,t&&t).replace(/((\.\d*?)(0+))($|e)/,function(){var a=arguments[2],i=arguments[4];return a!=="."?a+i:i});default:throw new Error('Unknown notation "'+n+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function Ov(e){var t=String(e).toLowerCase().match(/^(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!t)throw new SyntaxError("Invalid number "+e);var n=t[1],r=t[2],o=parseFloat(t[4]||"0"),a=r.indexOf(".");o+=a!==-1?a-1:r.length-1;var i=r.replace(".","").replace(/^0*/,function(l){return o-=l.length,""}).replace(/0*$/,"").split("").map(function(l){return parseInt(l)});return i.length===0&&(i.push(0),o++),{sign:n,coefficients:i,exponent:o}}function M1e(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=Ov(e),r=Tv(n,t),o=r.exponent,a=r.coefficients,i=o%3===0?o:o<0?o-3-o%3:o-o%3;if(Pt(t))for(;t>a.length||o-i+1>a.length;)a.push(0);else for(var l=Math.abs(o-i)-(a.length-1),s=0;s0;)c++,u--;var d=a.slice(c).join(""),f=Pt(t)&&d.length||d.match(/[1-9]/)?"."+d:"",p=a.slice(0,c).join("")+f+"e"+(o>=0?"+":"")+i.toString();return r.sign+p}function j_(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=Ov(e),r=typeof t=="number"?Tv(n,n.exponent+1+t):n,o=r.coefficients,a=r.exponent+1,i=a+(t||0);return o.length0?"."+o.join(""):"")+"e"+(a>=0?"+":"")+a}function N1e(e,t,n){if(isNaN(e)||!isFinite(e))return String(e);var r=n&&n.lowerExp!==void 0?n.lowerExp:-3,o=n&&n.upperExp!==void 0?n.upperExp:5,a=Ov(e),i=t?Tv(a,t):a;if(i.exponent=o)return V_(e,t);var l=i.coefficients,s=i.exponent;l.length0?s:0;return ut){var o=r.splice(t,r.length-t);if(o[0]>=5){var a=t-1;for(r[a]++;r[a]===10;)r.pop(),a===0&&(r.unshift(0),n.exponent++,a++),a--,r[a]++}}return n}function es(e){for(var t=[],n=0;n0?!0:e<0?!1:1/e===1/0,r=t>0?!0:t<0?!1:1/t===1/0;return n^r?-e:e}function mg(e,t,n){var r=e.constructor,o=new r(2),a="";if(n){if(n<1)throw new Error("size must be in greater than 0");if(!ot(n))throw new Error("size must be an integer");if(e.greaterThan(o.pow(n-1).sub(1))||e.lessThan(o.pow(n-1).mul(-1)))throw new Error("Value must be in range [-2^".concat(n-1,", 2^").concat(n-1,"-1]"));if(!e.isInteger())throw new Error("Value must be an integer");e.lessThan(0)&&(e=e.add(o.pow(n))),a="i".concat(n)}switch(t){case 2:return"".concat(e.toBinary()).concat(a);case 8:return"".concat(e.toOctal()).concat(a);case 16:return"".concat(e.toHexadecimal()).concat(a);default:throw new Error("Base ".concat(t," not supported "))}}function H1e(e,t){if(typeof t=="function")return t(e);if(!e.isFinite())return e.isNaN()?"NaN":e.gt(0)?"Infinity":"-Infinity";var n="auto",r,o;if(t!==void 0&&(t.notation&&(n=t.notation),typeof t=="number"?r=t:t.precision&&(r=t.precision),t.wordSize&&(o=t.wordSize,typeof o!="number")))throw new Error('Option "wordSize" must be a number');switch(n){case"fixed":return V1e(e,r);case"exponential":return c4(e,r);case"engineering":return j1e(e,r);case"bin":return mg(e,2,o);case"oct":return mg(e,8,o);case"hex":return mg(e,16,o);case"auto":{var a=t&&t.lowerExp!==void 0?t.lowerExp:-3,i=t&&t.upperExp!==void 0?t.upperExp:5;if(e.isZero())return"0";var l,s=e.toSignificantDigits(r),u=s.e;return u>=a&&u=0?"+":"")+r.toString()}function c4(e,t){return t!==void 0?e.toExponential(t-1):e.toExponential()}function V1e(e,t){return e.toFixed(t)}function W1e(e,t){var n=e.length-t.length,r=e.length;return e.substring(n,r)===t}function Et(e,t){var n=U1e(e,t);return t&&typeof t=="object"&&"truncate"in t&&n.length>t.truncate?n.substring(0,t.truncate-3)+"...":n}function U1e(e,t){if(typeof e=="number")return Hi(e,t);if(Ot(e))return H1e(e,t);if(K1e(e))return!t||t.fraction!=="decimal"?e.s*e.n+"/"+e.d:e.toString();if(Array.isArray(e))return W_(e,t);if(Jn(e))return'"'+e+'"';if(typeof e=="function")return e.syntax?String(e.syntax):"function";if(e&&typeof e=="object"){if(typeof e.format=="function")return e.format(t);if(e&&e.toString(t)!=={}.toString())return e.toString(t);var n=Object.keys(e).map(r=>'"'+r+'": '+Et(e[r],t));return"{"+n.join(", ")+"}"}return String(e)}function wd(e){for(var t=String(e),n="",r=0;r/g,">"),t}function W_(e,t){if(Array.isArray(e)){for(var n="[",r=e.length,o=0;ot?1:-1}function Dt(e,t,n){if(!(this instanceof Dt))throw new SyntaxError("Constructor must be called with the new operator");this.actual=e,this.expected=t,this.relation=n,this.message="Dimension mismatch ("+(Array.isArray(e)?"["+e.join(", ")+"]":e)+" "+(this.relation||"!=")+" "+(Array.isArray(t)?"["+t.join(", ")+"]":t)+")",this.stack=new Error().stack}Dt.prototype=new RangeError;Dt.prototype.constructor=RangeError;Dt.prototype.name="DimensionError";Dt.prototype.isDimensionError=!0;function oo(e,t,n){if(!(this instanceof oo))throw new SyntaxError("Constructor must be called with the new operator");this.index=e,arguments.length<3?(this.min=0,this.max=t):(this.min=t,this.max=n),this.min!==void 0&&this.index=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=new Error().stack}oo.prototype=new RangeError;oo.prototype.constructor=RangeError;oo.prototype.name="IndexError";oo.prototype.isIndexError=!0;function Mt(e){for(var t=[];Array.isArray(e);)t.push(e.length),e=e[0];return t}function U_(e,t,n){var r,o=e.length;if(o!==t[n])throw new Dt(o,t[n]);if(n")}function d4(e,t){var n=t.length===0;if(n){if(Array.isArray(e))throw new Dt(e.length,0)}else U_(e,t,0)}function Xt(e,t){if(!Pt(e)||!ot(e))throw new TypeError("Index must be an integer (value: "+e+")");if(e<0||typeof t=="number"&&e>=t)throw new oo(e,t)}function gs(e,t,n){if(!Array.isArray(e)||!Array.isArray(t))throw new TypeError("Array expected");if(t.length===0)throw new Error("Resizing to scalar is not supported");t.forEach(function(o){if(!Pt(o)||!ot(o)||o<0)throw new TypeError("Invalid size, must contain positive integers (size: "+Et(t)+")")});var r=n!==void 0?n:0;return py(e,t,0,r),e}function py(e,t,n,r){var o,a,i=e.length,l=t[n],s=Math.min(i,l);if(e.length=l,n=0,s=t%n===0;if(l)if(s)r[a]=-t/n;else throw new Error("Could not replace wildcard, since "+t+" is no multiple of "+-n);return r}function q_(e){return e.reduce((t,n)=>t*n,1)}function q1e(e,t){for(var n=e,r,o=t.length-1;o>0;o--){var a=t[o];r=[];for(var i=n.length/a,l=0;lt.test(n))}function f4(e,t){return Array.prototype.join.call(e,t)}function ys(e){if(!Array.isArray(e))throw new TypeError("Array input expected");if(e.length===0)return e;var t=[],n=0;t[0]={value:e[0],identifier:0};for(var r=1;r!X1e(a)).every(a=>n[a]!==void 0);if(!r){var o=t.filter(a=>n[a]===void 0);throw new Error('Cannot create function "'.concat(e,'", ')+"some dependencies are missing: ".concat(o.map(a=>'"'.concat(a,'"')).join(", "),"."))}}function X1e(e){return e&&e[0]==="?"}function J_(e){return e&&e[0]==="?"?e.slice(1):e}function no(e,t){if(Q_(e)&&zw(e,t))return e[t];throw typeof e[t]=="function"&&Lw(e,t)?new Error('Cannot access method "'+t+'" as a property'):new Error('No access to property "'+t+'"')}function bs(e,t,n){if(Q_(e)&&zw(e,t))return e[t]=n,n;throw new Error('No access to property "'+t+'"')}function Y1e(e,t){return t in e}function zw(e,t){return!e||typeof e!="object"?!1:Ke(J1e,t)?!0:!(t in Object.prototype||t in Function.prototype)}function Z1e(e,t){if(!Lw(e,t))throw new Error('No access to method "'+t+'"')}function Lw(e,t){return e==null||typeof e[t]!="function"||Ke(e,t)&&Object.getPrototypeOf&&t in Object.getPrototypeOf(e)?!1:Ke(Q1e,t)?!0:!(t in Object.prototype||t in Function.prototype)}function Q_(e){return typeof e=="object"&&e&&e.constructor===Object}var J1e={length:!0,name:!0},Q1e={toString:!0,valueOf:!0,toLocaleString:!0};class kw{constructor(t){this.wrappedObject=t}keys(){return Object.keys(this.wrappedObject)}get(t){return no(this.wrappedObject,t)}set(t,n){return bs(this.wrappedObject,t,n),this}has(t){return Y1e(this.wrappedObject,t)}}function xs(){return new Map}function ts(e){if(!e)return xs();if(Hw(e))return e;if(Av(e))return new kw(e);throw new Error("createMap can create maps from objects or Maps")}function exe(e){if(e instanceof kw)return e.wrappedObject;var t={};for(var n of e.keys()){var r=e.get(n);bs(t,n,r)}return t}function Hw(e){return e?e instanceof Map||e instanceof kw||typeof e.set=="function"&&typeof e.get=="function"&&typeof e.keys=="function"&&typeof e.has=="function":!1}function m4(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rJn&&/^(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])*$/.test(l)},{name:"string",test:Jn},{name:"Chain",test:Fw},{name:"Array",test:Ut},{name:"Matrix",test:mt},{name:"DenseMatrix",test:rc},{name:"SparseMatrix",test:Za},{name:"Range",test:Dv},{name:"Index",test:Pc},{name:"boolean",test:D_},{name:"ResultSet",test:A_},{name:"Help",test:Bw},{name:"function",test:O_},{name:"Date",test:T_},{name:"RegExp",test:M_},{name:"null",test:N_},{name:"undefined",test:P_},{name:"AccessorNode",test:ii},{name:"ArrayNode",test:Ir},{name:"AssignmentNode",test:I_},{name:"BlockNode",test:__},{name:"ConditionalNode",test:B_},{name:"ConstantNode",test:Rt},{name:"FunctionNode",test:Sa},{name:"FunctionAssignmentNode",test:zs},{name:"IndexNode",test:ul},{name:"Node",test:Kt},{name:"ObjectNode",test:Ic},{name:"OperatorNode",test:bn},{name:"ParenthesisNode",test:jo},{name:"RangeNode",test:F_},{name:"RelationalNode",test:R_},{name:"SymbolNode",test:Pn},{name:"Map",test:Hw},{name:"Object",test:Av}]),i.addConversions([{from:"number",to:"BigNumber",convert:function(s){if(n||vg(s),P1e(s)>15)throw new TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+s+"). Use function bignumber(x) to convert to BigNumber.");return new n(s)}},{from:"number",to:"Complex",convert:function(s){return r||Sd(s),new r(s,0)}},{from:"BigNumber",to:"Complex",convert:function(s){return r||Sd(s),new r(s.toNumber(),0)}},{from:"Fraction",to:"BigNumber",convert:function(s){throw new TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(s){return r||Sd(s),new r(s.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(s){a||hg(s);var u=new a(s);if(u.valueOf()!==s)throw new TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+s+"). Use function fraction(x) to convert to Fraction.");return u}},{from:"string",to:"number",convert:function(s){var u=Number(s);if(isNaN(u))throw new Error('Cannot convert "'+s+'" to a number');return u}},{from:"string",to:"BigNumber",convert:function(s){n||vg(s);try{return new n(s)}catch{throw new Error('Cannot convert "'+s+'" to BigNumber')}}},{from:"string",to:"Fraction",convert:function(s){a||hg(s);try{return new a(s)}catch{throw new Error('Cannot convert "'+s+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(s){r||Sd(s);try{return new r(s)}catch{throw new Error('Cannot convert "'+s+'" to Complex')}}},{from:"boolean",to:"number",convert:function(s){return+s}},{from:"boolean",to:"BigNumber",convert:function(s){return n||vg(s),new n(+s)}},{from:"boolean",to:"Fraction",convert:function(s){return a||hg(s),new a(+s)}},{from:"boolean",to:"string",convert:function(s){return String(s)}},{from:"Array",to:"Matrix",convert:function(s){return o||rxe(),new o(s)}},{from:"Matrix",to:"Array",convert:function(s){return s.valueOf()}}]),i.onMismatch=(l,s,u)=>{var c=i.createError(l,s,u);if(["wrongType","mismatch"].includes(c.data.category)&&s.length===1&&wo(s[0])&&u.some(f=>!f.params.includes(","))){var d=new TypeError("Function '".concat(l,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(l,")'."));throw d.data=c.data,d}throw c},i.onMismatch=(l,s,u)=>{var c=i.createError(l,s,u);if(["wrongType","mismatch"].includes(c.data.category)&&s.length===1&&wo(s[0])&&u.some(f=>!f.params.includes(","))){var d=new TypeError("Function '".concat(l,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(l,")'."));throw d.data=c.data,d}throw c},i});function vg(e){throw new Error("Cannot convert value ".concat(e," into a BigNumber: no class 'BigNumber' provided"))}function Sd(e){throw new Error("Cannot convert value ".concat(e," into a Complex number: no class 'Complex' provided"))}function rxe(){throw new Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}function hg(e){throw new Error("Cannot convert value ".concat(e," into a Fraction, no class 'Fraction' provided."))}var oxe="ResultSet",axe=[],ixe=se(oxe,axe,()=>{function e(t){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator");this.entries=t||[]}return e.prototype.type="ResultSet",e.prototype.isResultSet=!0,e.prototype.valueOf=function(){return this.entries},e.prototype.toString=function(){return"["+this.entries.join(", ")+"]"},e.prototype.toJSON=function(){return{mathjs:"ResultSet",entries:this.entries}},e.fromJSON=function(t){return new e(t.entries)},e},{isClass:!0});/*! * decimal.js v10.4.3 * An arbitrary-precision Decimal type for JavaScript. * https://github.com/MikeMcl/decimal.js * Copyright (c) 2022 Michael Mclaughlin * MIT Licence */var Hl=9e15,pi=1e9,my="0123456789abcdef",Fp="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Rp="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",vy={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Hl,maxE:Hl,crypto:!1},t7,fa,xt=!0,Nv="[DecimalError] ",li=Nv+"Invalid argument: ",n7=Nv+"Precision limit exceeded",r7=Nv+"crypto unavailable",o7="[object Decimal]",er=Math.floor,Mn=Math.pow,lxe=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,sxe=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,uxe=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,a7=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ho=1e7,gt=7,cxe=9007199254740991,dxe=Fp.length-1,hy=Rp.length-1,ke={toStringTag:o7};ke.absoluteValue=ke.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),ut(e)};ke.ceil=function(){return ut(new this.constructor(this),this.e+1,2)};ke.clampedTo=ke.clamp=function(e,t){var n,r=this,o=r.constructor;if(e=new o(e),t=new o(t),!e.s||!t.s)return new o(NaN);if(e.gt(t))throw Error(li+t);return n=r.cmp(e),n<0?e:r.cmp(t)>0?t:new o(r)};ke.comparedTo=ke.cmp=function(e){var t,n,r,o,a=this,i=a.d,l=(e=new a.constructor(e)).d,s=a.s,u=e.s;if(!i||!l)return!s||!u?NaN:s!==u?s:i===l?0:!i^s<0?1:-1;if(!i[0]||!l[0])return i[0]?s:l[0]?-u:0;if(s!==u)return s;if(a.e!==e.e)return a.e>e.e^s<0?1:-1;for(r=i.length,o=l.length,t=0,n=rl[t]^s<0?1:-1;return r===o?0:r>o^s<0?1:-1};ke.cosine=ke.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+gt,r.rounding=1,n=fxe(r,c7(r,n)),r.precision=e,r.rounding=t,ut(fa==2||fa==3?n.neg():n,e,t,!0)):new r(1):new r(NaN)};ke.cubeRoot=ke.cbrt=function(){var e,t,n,r,o,a,i,l,s,u,c=this,d=c.constructor;if(!c.isFinite()||c.isZero())return new d(c);for(xt=!1,a=c.s*Mn(c.s*c,1/3),!a||Math.abs(a)==1/0?(n=Vn(c.d),e=c.e,(a=(e-n.length+1)%3)&&(n+=a==1||a==-2?"0":"00"),a=Mn(n,1/3),e=er((e+1)/3)-(e%3==(e<0?-1:2)),a==1/0?n="5e"+e:(n=a.toExponential(),n=n.slice(0,n.indexOf("e")+1)+e),r=new d(n),r.s=c.s):r=new d(a.toString()),i=(e=d.precision)+3;;)if(l=r,s=l.times(l).times(l),u=s.plus(c),r=tn(u.plus(c).times(l),u.plus(s),i+2,1),Vn(l.d).slice(0,i)===(n=Vn(r.d)).slice(0,i))if(n=n.slice(i-3,i+1),n=="9999"||!o&&n=="4999"){if(!o&&(ut(l,e+1,0),l.times(l).times(l).eq(c))){r=l;break}i+=4,o=1}else{(!+n||!+n.slice(1)&&n.charAt(0)=="5")&&(ut(r,e+1,1),t=!r.times(r).times(r).eq(c));break}return xt=!0,ut(r,e,d.rounding,t)};ke.decimalPlaces=ke.dp=function(){var e,t=this.d,n=NaN;if(t){if(e=t.length-1,n=(e-er(this.e/gt))*gt,e=t[e],e)for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n};ke.dividedBy=ke.div=function(e){return tn(this,new this.constructor(e))};ke.dividedToIntegerBy=ke.divToInt=function(e){var t=this,n=t.constructor;return ut(tn(t,new n(e),0,1,1),n.precision,n.rounding)};ke.equals=ke.eq=function(e){return this.cmp(e)===0};ke.floor=function(){return ut(new this.constructor(this),this.e+1,3)};ke.greaterThan=ke.gt=function(e){return this.cmp(e)>0};ke.greaterThanOrEqualTo=ke.gte=function(e){var t=this.cmp(e);return t==1||t===0};ke.hyperbolicCosine=ke.cosh=function(){var e,t,n,r,o,a=this,i=a.constructor,l=new i(1);if(!a.isFinite())return new i(a.s?1/0:NaN);if(a.isZero())return l;n=i.precision,r=i.rounding,i.precision=n+Math.max(a.e,a.sd())+4,i.rounding=1,o=a.d.length,o<32?(e=Math.ceil(o/3),t=(1/Iv(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),a=ws(i,1,a.times(t),new i(1),!0);for(var s,u=e,c=new i(8);u--;)s=a.times(a),a=l.minus(s.times(c.minus(s.times(c))));return ut(a,i.precision=n,i.rounding=r,!0)};ke.hyperbolicSine=ke.sinh=function(){var e,t,n,r,o=this,a=o.constructor;if(!o.isFinite()||o.isZero())return new a(o);if(t=a.precision,n=a.rounding,a.precision=t+Math.max(o.e,o.sd())+4,a.rounding=1,r=o.d.length,r<3)o=ws(a,2,o,o,!0);else{e=1.4*Math.sqrt(r),e=e>16?16:e|0,o=o.times(1/Iv(5,e)),o=ws(a,2,o,o,!0);for(var i,l=new a(5),s=new a(16),u=new a(20);e--;)i=o.times(o),o=o.times(l.plus(i.times(s.times(i).plus(u))))}return a.precision=t,a.rounding=n,ut(o,t,n,!0)};ke.hyperbolicTangent=ke.tanh=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,tn(n.sinh(),n.cosh(),r.precision=e,r.rounding=t)):new r(n.s)};ke.inverseCosine=ke.acos=function(){var e,t=this,n=t.constructor,r=t.abs().cmp(1),o=n.precision,a=n.rounding;return r!==-1?r===0?t.isNeg()?po(n,o,a):new n(0):new n(NaN):t.isZero()?po(n,o+4,a).times(.5):(n.precision=o+6,n.rounding=1,t=t.asin(),e=po(n,o+4,a).times(.5),n.precision=o,n.rounding=a,e.minus(t))};ke.inverseHyperbolicCosine=ke.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,xt=!1,n=n.times(n).minus(1).sqrt().plus(n),xt=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)};ke.inverseHyperbolicSine=ke.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,xt=!1,n=n.times(n).plus(1).sqrt().plus(n),xt=!0,r.precision=e,r.rounding=t,n.ln())};ke.inverseHyperbolicTangent=ke.atanh=function(){var e,t,n,r,o=this,a=o.constructor;return o.isFinite()?o.e>=0?new a(o.abs().eq(1)?o.s/0:o.isZero()?o:NaN):(e=a.precision,t=a.rounding,r=o.sd(),Math.max(r,e)<2*-o.e-1?ut(new a(o),e,t,!0):(a.precision=n=r-o.e,o=tn(o.plus(1),new a(1).minus(o),n+e,1),a.precision=e+4,a.rounding=1,o=o.ln(),a.precision=e,a.rounding=t,o.times(.5))):new a(NaN)};ke.inverseSine=ke.asin=function(){var e,t,n,r,o=this,a=o.constructor;return o.isZero()?new a(o):(t=o.abs().cmp(1),n=a.precision,r=a.rounding,t!==-1?t===0?(e=po(a,n+4,r).times(.5),e.s=o.s,e):new a(NaN):(a.precision=n+6,a.rounding=1,o=o.div(new a(1).minus(o.times(o)).sqrt().plus(1)).atan(),a.precision=n,a.rounding=r,o.times(2)))};ke.inverseTangent=ke.atan=function(){var e,t,n,r,o,a,i,l,s,u=this,c=u.constructor,d=c.precision,f=c.rounding;if(u.isFinite()){if(u.isZero())return new c(u);if(u.abs().eq(1)&&d+4<=hy)return i=po(c,d+4,f).times(.25),i.s=u.s,i}else{if(!u.s)return new c(NaN);if(d+4<=hy)return i=po(c,d+4,f).times(.5),i.s=u.s,i}for(c.precision=l=d+10,c.rounding=1,n=Math.min(28,l/gt+2|0),e=n;e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(xt=!1,t=Math.ceil(l/gt),r=1,s=u.times(u),i=new c(u),o=u;e!==-1;)if(o=o.times(s),a=i.minus(o.div(r+=2)),o=o.times(s),i=a.plus(o.div(r+=2)),i.d[t]!==void 0)for(e=t;i.d[e]===a.d[e]&&e--;);return n&&(i=i.times(2<this.d.length-2};ke.isNaN=function(){return!this.s};ke.isNegative=ke.isNeg=function(){return this.s<0};ke.isPositive=ke.isPos=function(){return this.s>0};ke.isZero=function(){return!!this.d&&this.d[0]===0};ke.lessThan=ke.lt=function(e){return this.cmp(e)<0};ke.lessThanOrEqualTo=ke.lte=function(e){return this.cmp(e)<1};ke.logarithm=ke.log=function(e){var t,n,r,o,a,i,l,s,u=this,c=u.constructor,d=c.precision,f=c.rounding,p=5;if(e==null)e=new c(10),t=!0;else{if(e=new c(e),n=e.d,e.s<0||!n||!n[0]||e.eq(1))return new c(NaN);t=e.eq(10)}if(n=u.d,u.s<0||!n||!n[0]||u.eq(1))return new c(n&&!n[0]?-1/0:u.s!=1?NaN:n?0:1/0);if(t)if(n.length>1)a=!0;else{for(o=n[0];o%10===0;)o/=10;a=o!==1}if(xt=!1,l=d+p,i=Qa(u,l),r=t?zp(c,l+10):Qa(e,l),s=tn(i,r,l,1),ic(s.d,o=d,f))do if(l+=10,i=Qa(u,l),r=t?zp(c,l+10):Qa(e,l),s=tn(i,r,l,1),!a){+Vn(s.d).slice(o+1,o+15)+1==1e14&&(s=ut(s,d+1,0));break}while(ic(s.d,o+=10,f));return xt=!0,ut(s,d,f)};ke.minus=ke.sub=function(e){var t,n,r,o,a,i,l,s,u,c,d,f,p=this,v=p.constructor;if(e=new v(e),!p.d||!e.d)return!p.s||!e.s?e=new v(NaN):p.d?e.s=-e.s:e=new v(e.d||p.s!==e.s?p:NaN),e;if(p.s!=e.s)return e.s=-e.s,p.plus(e);if(u=p.d,f=e.d,l=v.precision,s=v.rounding,!u[0]||!f[0]){if(f[0])e.s=-e.s;else if(u[0])e=new v(p);else return new v(s===3?-0:0);return xt?ut(e,l,s):e}if(n=er(e.e/gt),c=er(p.e/gt),u=u.slice(),a=c-n,a){for(d=a<0,d?(t=u,a=-a,i=f.length):(t=f,n=c,i=u.length),r=Math.max(Math.ceil(l/gt),i)+2,a>r&&(a=r,t.length=1),t.reverse(),r=a;r--;)t.push(0);t.reverse()}else{for(r=u.length,i=f.length,d=r0;--r)u[i++]=0;for(r=f.length;r>a;){if(u[--r]i?a+1:i+1,o>i&&(o=i,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(i=u.length,o=c.length,i-o<0&&(o=i,n=c,c=u,u=n),t=0;o;)t=(u[--o]=u[o]+c[o]+t)/ho|0,u[o]%=ho;for(t&&(u.unshift(t),++r),i=u.length;u[--i]==0;)u.pop();return e.d=u,e.e=Pv(u,r),xt?ut(e,l,s):e};ke.precision=ke.sd=function(e){var t,n=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(li+e);return n.d?(t=i7(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t};ke.round=function(){var e=this,t=e.constructor;return ut(new t(e),e.e+1,t.rounding)};ke.sine=ke.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+gt,r.rounding=1,n=mxe(r,c7(r,n)),r.precision=e,r.rounding=t,ut(fa>2?n.neg():n,e,t,!0)):new r(NaN)};ke.squareRoot=ke.sqrt=function(){var e,t,n,r,o,a,i=this,l=i.d,s=i.e,u=i.s,c=i.constructor;if(u!==1||!l||!l[0])return new c(!u||u<0&&(!l||l[0])?NaN:l?i:1/0);for(xt=!1,u=Math.sqrt(+i),u==0||u==1/0?(t=Vn(l),(t.length+s)%2==0&&(t+="0"),u=Math.sqrt(t),s=er((s+1)/2)-(s<0||s%2),u==1/0?t="5e"+s:(t=u.toExponential(),t=t.slice(0,t.indexOf("e")+1)+s),r=new c(t)):r=new c(u.toString()),n=(s=c.precision)+3;;)if(a=r,r=a.plus(tn(i,a,n+2,1)).times(.5),Vn(a.d).slice(0,n)===(t=Vn(r.d)).slice(0,n))if(t=t.slice(n-3,n+1),t=="9999"||!o&&t=="4999"){if(!o&&(ut(a,s+1,0),a.times(a).eq(i))){r=a;break}n+=4,o=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(ut(r,s+1,1),e=!r.times(r).eq(i));break}return xt=!0,ut(r,s,c.rounding,e)};ke.tangent=ke.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,n=n.sin(),n.s=1,n=tn(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,ut(fa==2||fa==4?n.neg():n,e,t,!0)):new r(NaN)};ke.times=ke.mul=function(e){var t,n,r,o,a,i,l,s,u,c=this,d=c.constructor,f=c.d,p=(e=new d(e)).d;if(e.s*=c.s,!f||!f[0]||!p||!p[0])return new d(!e.s||f&&!f[0]&&!p||p&&!p[0]&&!f?NaN:!f||!p?e.s/0:e.s*0);for(n=er(c.e/gt)+er(e.e/gt),s=f.length,u=p.length,s=0;){for(t=0,o=s+r;o>r;)l=a[o]+p[r]*f[o-r-1]+t,a[o--]=l%ho|0,t=l/ho|0;a[o]=(a[o]+t)%ho|0}for(;!a[--i];)a.pop();return t?++n:a.shift(),e.d=a,e.e=Pv(a,n),xt?ut(e,d.precision,d.rounding):e};ke.toBinary=function(e,t){return jw(this,2,e,t)};ke.toDecimalPlaces=ke.toDP=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(wr(e,0,pi),t===void 0?t=r.rounding:wr(t,0,8),ut(n,e+n.e+1,t))};ke.toExponential=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=Vo(r,!0):(wr(e,0,pi),t===void 0?t=o.rounding:wr(t,0,8),r=ut(new o(r),e+1,t),n=Vo(r,!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n};ke.toFixed=function(e,t){var n,r,o=this,a=o.constructor;return e===void 0?n=Vo(o):(wr(e,0,pi),t===void 0?t=a.rounding:wr(t,0,8),r=ut(new a(o),e+o.e+1,t),n=Vo(r,!1,e+r.e+1)),o.isNeg()&&!o.isZero()?"-"+n:n};ke.toFraction=function(e){var t,n,r,o,a,i,l,s,u,c,d,f,p=this,v=p.d,m=p.constructor;if(!v)return new m(p);if(u=n=new m(1),r=s=new m(0),t=new m(r),a=t.e=i7(v)-p.e-1,i=a%gt,t.d[0]=Mn(10,i<0?gt+i:i),e==null)e=a>0?t:u;else{if(l=new m(e),!l.isInt()||l.lt(u))throw Error(li+l);e=l.gt(t)?a>0?t:u:l}for(xt=!1,l=new m(Vn(v)),c=m.precision,m.precision=a=v.length*gt*2;d=tn(l,t,0,1,1),o=n.plus(d.times(r)),o.cmp(e)!=1;)n=r,r=o,o=u,u=s.plus(d.times(o)),s=o,o=t,t=l.minus(d.times(o)),l=o;return o=tn(e.minus(n),r,0,1,1),s=s.plus(o.times(u)),n=n.plus(o.times(r)),s.s=u.s=p.s,f=tn(u,r,a,1).minus(p).abs().cmp(tn(s,n,a,1).minus(p).abs())<1?[u,r]:[s,n],m.precision=c,xt=!0,f};ke.toHexadecimal=ke.toHex=function(e,t){return jw(this,16,e,t)};ke.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),e==null){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),t===void 0?t=r.rounding:wr(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(xt=!1,n=tn(n,e,0,t,1).times(e),xt=!0,ut(n)):(e.s=n.s,n=e),n};ke.toNumber=function(){return+this};ke.toOctal=function(e,t){return jw(this,8,e,t)};ke.toPower=ke.pow=function(e){var t,n,r,o,a,i,l=this,s=l.constructor,u=+(e=new s(e));if(!l.d||!e.d||!l.d[0]||!e.d[0])return new s(Mn(+l,u));if(l=new s(l),l.eq(1))return l;if(r=s.precision,a=s.rounding,e.eq(1))return ut(l,r,a);if(t=er(e.e/gt),t>=e.d.length-1&&(n=u<0?-u:u)<=cxe)return o=l7(s,l,n,r),e.s<0?new s(1).div(o):ut(o,r,a);if(i=l.s,i<0){if(ts.maxE+1||t0?i/0:0):(xt=!1,s.rounding=l.s=1,n=Math.min(12,(t+"").length),o=gy(e.times(Qa(l,r+n)),r),o.d&&(o=ut(o,r+5,1),ic(o.d,r,a)&&(t=r+10,o=ut(gy(e.times(Qa(l,t+n)),t),t+5,1),+Vn(o.d).slice(r+1,r+15)+1==1e14&&(o=ut(o,r+1,0)))),o.s=i,xt=!0,s.rounding=a,ut(o,r,a))};ke.toPrecision=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=Vo(r,r.e<=o.toExpNeg||r.e>=o.toExpPos):(wr(e,1,pi),t===void 0?t=o.rounding:wr(t,0,8),r=ut(new o(r),e,t),n=Vo(r,e<=r.e||r.e<=o.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n};ke.toSignificantDigits=ke.toSD=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(wr(e,1,pi),t===void 0?t=r.rounding:wr(t,0,8)),ut(new r(n),e,t)};ke.toString=function(){var e=this,t=e.constructor,n=Vo(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n};ke.truncated=ke.trunc=function(){return ut(new this.constructor(this),this.e+1,1)};ke.valueOf=ke.toJSON=function(){var e=this,t=e.constructor,n=Vo(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};function Vn(e){var t,n,r,o=e.length-1,a="",i=e[0];if(o>0){for(a+=i,t=1;tn)throw Error(li+e)}function ic(e,t,n,r){var o,a,i,l;for(a=e[0];a>=10;a/=10)--t;return--t<0?(t+=gt,o=0):(o=Math.ceil((t+1)/gt),t%=gt),a=Mn(10,gt-t),l=e[o]%a|0,r==null?t<3?(t==0?l=l/100|0:t==1&&(l=l/10|0),i=n<4&&l==99999||n>3&&l==49999||l==5e4||l==0):i=(n<4&&l+1==a||n>3&&l+1==a/2)&&(e[o+1]/a/100|0)==Mn(10,t-2)-1||(l==a/2||l==0)&&(e[o+1]/a/100|0)==0:t<4?(t==0?l=l/1e3|0:t==1?l=l/100|0:t==2&&(l=l/10|0),i=(r||n<4)&&l==9999||!r&&n>3&&l==4999):i=((r||n<4)&&l+1==a||!r&&n>3&&l+1==a/2)&&(e[o+1]/a/1e3|0)==Mn(10,t-3)-1,i}function _f(e,t,n){for(var r,o=[0],a,i=0,l=e.length;in-1&&(o[r+1]===void 0&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}function fxe(e,t){var n,r,o;if(t.isZero())return t;r=t.d.length,r<32?(n=Math.ceil(r/3),o=(1/Iv(4,n)).toString()):(n=16,o="2.3283064365386962890625e-10"),e.precision+=n,t=ws(e,1,t.times(o),new e(1));for(var a=n;a--;){var i=t.times(t);t=i.times(i).minus(i).times(8).plus(1)}return e.precision-=n,t}var tn=function(){function e(r,o,a){var i,l=0,s=r.length;for(r=r.slice();s--;)i=r[s]*o+l,r[s]=i%a|0,l=i/a|0;return l&&r.unshift(l),r}function t(r,o,a,i){var l,s;if(a!=i)s=a>i?1:-1;else for(l=s=0;lo[l]?1:-1;break}return s}function n(r,o,a,i){for(var l=0;a--;)r[a]-=l,l=r[a]1;)r.shift()}return function(r,o,a,i,l,s){var u,c,d,f,p,v,m,h,g,x,y,w,b,S,$,D,O,A,T,M,B=r.constructor,F=r.s==o.s?1:-1,P=r.d,I=o.d;if(!P||!P[0]||!I||!I[0])return new B(!r.s||!o.s||(P?I&&P[0]==I[0]:!I)?NaN:P&&P[0]==0||!I?F*0:F/0);for(s?(p=1,c=r.e-o.e):(s=ho,p=gt,c=er(r.e/p)-er(o.e/p)),T=I.length,O=P.length,g=new B(F),x=g.d=[],d=0;I[d]==(P[d]||0);d++);if(I[d]>(P[d]||0)&&c--,a==null?(S=a=B.precision,i=B.rounding):l?S=a+(r.e-o.e)+1:S=a,S<0)x.push(1),v=!0;else{if(S=S/p+2|0,d=0,T==1){for(f=0,I=I[0],S++;(d1&&(I=e(I,f,s),P=e(P,f,s),T=I.length,O=P.length),D=T,y=P.slice(0,T),w=y.length;w=s/2&&++A;do f=0,u=t(I,y,T,w),u<0?(b=y[0],T!=w&&(b=b*s+(y[1]||0)),f=b/A|0,f>1?(f>=s&&(f=s-1),m=e(I,f,s),h=m.length,w=y.length,u=t(m,y,h,w),u==1&&(f--,n(m,T=10;f/=10)d++;g.e=d+c*p-1,ut(g,l?a+g.e+1:a,i,v)}return g}}();function ut(e,t,n,r){var o,a,i,l,s,u,c,d,f,p=e.constructor;e:if(t!=null){if(d=e.d,!d)return e;for(o=1,l=d[0];l>=10;l/=10)o++;if(a=t-o,a<0)a+=gt,i=t,c=d[f=0],s=c/Mn(10,o-i-1)%10|0;else if(f=Math.ceil((a+1)/gt),l=d.length,f>=l)if(r){for(;l++<=f;)d.push(0);c=s=0,o=1,a%=gt,i=a-gt+1}else break e;else{for(c=l=d[f],o=1;l>=10;l/=10)o++;a%=gt,i=a-gt+o,s=i<0?0:c/Mn(10,o-i-1)%10|0}if(r=r||t<0||d[f+1]!==void 0||(i<0?c:c%Mn(10,o-i-1)),u=n<4?(s||r)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||r||n==6&&(a>0?i>0?c/Mn(10,o-i):0:d[f-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,u?(t-=e.e+1,d[0]=Mn(10,(gt-t%gt)%gt),e.e=-t||0):d[0]=e.e=0,e;if(a==0?(d.length=f,l=1,f--):(d.length=f+1,l=Mn(10,gt-a),d[f]=i>0?(c/Mn(10,o-i)%Mn(10,i)|0)*l:0),u)for(;;)if(f==0){for(a=1,i=d[0];i>=10;i/=10)a++;for(i=d[0]+=l,l=1;i>=10;i/=10)l++;a!=l&&(e.e++,d[0]==ho&&(d[0]=1));break}else{if(d[f]+=l,d[f]!=ho)break;d[f--]=0,l=1}for(a=d.length;d[--a]===0;)d.pop()}return xt&&(e.e>p.maxE?(e.d=null,e.e=NaN):e.e0?a=a.charAt(0)+"."+a.slice(1)+Va(r):i>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):o<0?(a="0."+Va(-o-1)+a,n&&(r=n-i)>0&&(a+=Va(r))):o>=i?(a+=Va(o+1-i),n&&(r=n-o-1)>0&&(a=a+"."+Va(r))):((r=o+1)0&&(o+1===i&&(a+="."),a+=Va(r))),a}function Pv(e,t){var n=e[0];for(t*=gt;n>=10;n/=10)t++;return t}function zp(e,t,n){if(t>dxe)throw xt=!0,n&&(e.precision=n),Error(n7);return ut(new e(Fp),t,1,!0)}function po(e,t,n){if(t>hy)throw Error(n7);return ut(new e(Rp),t,n,!0)}function i7(e){var t=e.length-1,n=t*gt+1;if(t=e[t],t){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function Va(e){for(var t="";e--;)t+="0";return t}function l7(e,t,n,r){var o,a=new e(1),i=Math.ceil(r/gt+4);for(xt=!1;;){if(n%2&&(a=a.times(t),h4(a.d,i)&&(o=!0)),n=er(n/2),n===0){n=a.d.length-1,o&&a.d[n]===0&&++a.d[n];break}t=t.times(t),h4(t.d,i)}return xt=!0,a}function v4(e){return e.d[e.d.length-1]&1}function s7(e,t,n){for(var r,o=new e(t[0]),a=0;++a17)return new f(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:0/0);for(t==null?(xt=!1,s=v):s=t,l=new f(.03125);e.e>-2;)e=e.times(l),d+=5;for(r=Math.log(Mn(2,d))/Math.LN10*2+5|0,s+=r,n=a=i=new f(1),f.precision=s;;){if(a=ut(a.times(e),s,1),n=n.times(++c),l=i.plus(tn(a,n,s,1)),Vn(l.d).slice(0,s)===Vn(i.d).slice(0,s)){for(o=d;o--;)i=ut(i.times(i),s,1);if(t==null)if(u<3&&ic(i.d,s-r,p,u))f.precision=s+=10,n=a=l=new f(1),c=0,u++;else return ut(i,f.precision=v,p,xt=!0);else return f.precision=v,i}i=l}}function Qa(e,t){var n,r,o,a,i,l,s,u,c,d,f,p=1,v=10,m=e,h=m.d,g=m.constructor,x=g.rounding,y=g.precision;if(m.s<0||!h||!h[0]||!m.e&&h[0]==1&&h.length==1)return new g(h&&!h[0]?-1/0:m.s!=1?NaN:h?0:m);if(t==null?(xt=!1,c=y):c=t,g.precision=c+=v,n=Vn(h),r=n.charAt(0),Math.abs(a=m.e)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)m=m.times(e),n=Vn(m.d),r=n.charAt(0),p++;a=m.e,r>1?(m=new g("0."+n),a++):m=new g(r+"."+n.slice(1))}else return u=zp(g,c+2,y).times(a+""),m=Qa(new g(r+"."+n.slice(1)),c-v).plus(u),g.precision=y,t==null?ut(m,y,x,xt=!0):m;for(d=m,s=i=m=tn(m.minus(1),m.plus(1),c,1),f=ut(m.times(m),c,1),o=3;;){if(i=ut(i.times(f),c,1),u=s.plus(tn(i,new g(o),c,1)),Vn(u.d).slice(0,c)===Vn(s.d).slice(0,c))if(s=s.times(2),a!==0&&(s=s.plus(zp(g,c+2,y).times(a+""))),s=tn(s,new g(p),c,1),t==null)if(ic(s.d,c-v,x,l))g.precision=c+=v,u=i=m=tn(d.minus(1),d.plus(1),c,1),f=ut(m.times(m),c,1),o=l=1;else return ut(s,g.precision=y,x,xt=!0);else return g.precision=y,s;s=u,o+=2}}function u7(e){return String(e.s*e.s/0)}function yy(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;r++);for(o=t.length;t.charCodeAt(o-1)===48;--o);if(t=t.slice(r,o),t){if(o-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%gt,n<0&&(r+=gt),re.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),a7.test(t))return yy(e,t)}else if(t==="Infinity"||t==="NaN")return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(sxe.test(t))n=16,t=t.toLowerCase();else if(lxe.test(t))n=2;else if(uxe.test(t))n=8;else throw Error(li+t);for(a=t.search(/p/i),a>0?(s=+t.slice(a+1),t=t.substring(2,a)):t=t.slice(2),a=t.indexOf("."),i=a>=0,r=e.constructor,i&&(t=t.replace(".",""),l=t.length,a=l-a,o=l7(r,new r(n),a,a*2)),u=_f(t,n,ho),c=u.length-1,a=c;u[a]===0;--a)u.pop();return a<0?new r(e.s*0):(e.e=Pv(u,c),e.d=u,xt=!1,i&&(e=tn(e,o,l*4)),s&&(e=e.times(Math.abs(s)<54?Mn(2,s):si.pow(2,s))),xt=!0,e)}function mxe(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:ws(e,2,t,t);n=1.4*Math.sqrt(r),n=n>16?16:n|0,t=t.times(1/Iv(5,n)),t=ws(e,2,t,t);for(var o,a=new e(5),i=new e(16),l=new e(20);n--;)o=t.times(t),t=t.times(a.plus(o.times(i.times(o).minus(l))));return t}function ws(e,t,n,r,o){var a,i,l,s,u=e.precision,c=Math.ceil(u/gt);for(xt=!1,s=n.times(n),l=new e(r);;){if(i=tn(l.times(s),new e(t++*t++),u,1),l=o?r.plus(i):r.minus(i),r=tn(i.times(s),new e(t++*t++),u,1),i=l.plus(r),i.d[c]!==void 0){for(a=c;i.d[a]===l.d[a]&&a--;);if(a==-1)break}a=l,l=r,r=i,i=a}return xt=!0,i.d.length=c+1,i}function Iv(e,t){for(var n=e;--t;)n*=e;return n}function c7(e,t){var n,r=t.s<0,o=po(e,e.precision,1),a=o.times(.5);if(t=t.abs(),t.lte(a))return fa=r?4:1,t;if(n=t.divToInt(o),n.isZero())fa=r?3:2;else{if(t=t.minus(n.times(o)),t.lte(a))return fa=v4(n)?r?2:3:r?4:1,t;fa=v4(n)?r?1:4:r?3:2}return t.minus(o).abs()}function jw(e,t,n,r){var o,a,i,l,s,u,c,d,f,p=e.constructor,v=n!==void 0;if(v?(wr(n,1,pi),r===void 0?r=p.rounding:wr(r,0,8)):(n=p.precision,r=p.rounding),!e.isFinite())c=u7(e);else{for(c=Vo(e),i=c.indexOf("."),v?(o=2,t==16?n=n*4-3:t==8&&(n=n*3-2)):o=t,i>=0&&(c=c.replace(".",""),f=new p(1),f.e=c.length-i,f.d=_f(Vo(f),10,o),f.e=f.d.length),d=_f(c,10,o),a=s=d.length;d[--s]==0;)d.pop();if(!d[0])c=v?"0p+0":"0";else{if(i<0?a--:(e=new p(e),e.d=d,e.e=a,e=tn(e,f,n,r,0,o),d=e.d,a=e.e,u=t7),i=d[n],l=o/2,u=u||d[n+1]!==void 0,u=r<4?(i!==void 0||u)&&(r===0||r===(e.s<0?3:2)):i>l||i===l&&(r===4||u||r===6&&d[n-1]&1||r===(e.s<0?8:7)),d.length=n,u)for(;++d[--n]>o-1;)d[n]=0,n||(++a,d.unshift(1));for(s=d.length;!d[s-1];--s);for(i=0,c="";i1)if(t==16||t==8){for(i=t==16?4:3,--s;s%i;s++)c+="0";for(d=_f(c,o,t),s=d.length;!d[s-1];--s);for(i=1,c="1.";is)for(a-=s;a--;)c+="0";else at)return e.length=t,!0}function vxe(e){return new this(e).abs()}function hxe(e){return new this(e).acos()}function gxe(e){return new this(e).acosh()}function yxe(e,t){return new this(e).plus(t)}function bxe(e){return new this(e).asin()}function xxe(e){return new this(e).asinh()}function wxe(e){return new this(e).atan()}function Sxe(e){return new this(e).atanh()}function Cxe(e,t){e=new this(e),t=new this(t);var n,r=this.precision,o=this.rounding,a=r+4;return!e.s||!t.s?n=new this(NaN):!e.d&&!t.d?(n=po(this,a,1).times(t.s>0?.25:.75),n.s=e.s):!t.d||e.isZero()?(n=t.s<0?po(this,r,o):new this(0),n.s=e.s):!e.d||t.isZero()?(n=po(this,a,1).times(.5),n.s=e.s):t.s<0?(this.precision=a,this.rounding=1,n=this.atan(tn(e,t,a,1)),t=po(this,a,1),this.precision=r,this.rounding=o,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(tn(e,t,a,1)),n}function $xe(e){return new this(e).cbrt()}function Exe(e){return ut(e=new this(e),e.e+1,2)}function Dxe(e,t,n){return new this(e).clamp(t,n)}function Axe(e){if(!e||typeof e!="object")throw Error(Nv+"Object expected");var t,n,r,o=e.defaults===!0,a=["precision",1,pi,"rounding",0,8,"toExpNeg",-Hl,0,"toExpPos",0,Hl,"maxE",0,Hl,"minE",-Hl,0,"modulo",0,9];for(t=0;t=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(li+n+": "+r);if(n="crypto",o&&(this[n]=vy[n]),(r=e[n])!==void 0)if(r===!0||r===!1||r===0||r===1)if(r)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(r7);else this[n]=!1;else throw Error(li+n+": "+r);return this}function Oxe(e){return new this(e).cos()}function Txe(e){return new this(e).cosh()}function d7(e){var t,n,r;function o(a){var i,l,s,u=this;if(!(u instanceof o))return new o(a);if(u.constructor=o,g4(a)){u.s=a.s,xt?!a.d||a.e>o.maxE?(u.e=NaN,u.d=null):a.e=10;l/=10)i++;xt?i>o.maxE?(u.e=NaN,u.d=null):i=429e7?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:l[a++]=o%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(r*=4);a=214e7?crypto.randomBytes(4).copy(t,a):(l.push(o%1e7),a+=4);a=r/4}else throw Error(r7);else for(;a=10;o/=10)r++;r{var{on:t,config:n}=e,r=si.clone({precision:n.precision,modulo:si.EUCLID});return r.prototype=Object.create(r.prototype),r.prototype.type="BigNumber",r.prototype.isBigNumber=!0,r.prototype.toJSON=function(){return{mathjs:"BigNumber",value:this.toString()}},r.fromJSON=function(o){return new r(o.value)},t&&t("config",function(o,a){o.precision!==a.precision&&r.config({precision:o.precision})}),r},{isClass:!0}),by={},rwe={get exports(){return by},set exports(e){by=e}};/** * @license Complex.js v2.1.1 12/05/2020 * * Copyright (c) 2020, Robert Eisele (robert@xarg.org) * Dual licensed under the MIT or GPL Version 2 licenses. **/(function(e,t){(function(n){var r=Math.cosh||function(d){return Math.abs(d)<1e-9?1-d:(Math.exp(d)+Math.exp(-d))*.5},o=Math.sinh||function(d){return Math.abs(d)<1e-9?d:(Math.exp(d)-Math.exp(-d))*.5},a=function(d){var f=Math.PI/4;if(-f>d||d>f)return Math.cos(d)-1;var p=d*d;return p*(p*(p*(p*(p*(p*(p*(p/20922789888e3-1/87178291200)+1/479001600)-1/3628800)+1/40320)-1/720)+1/24)-1/2)},i=function(d,f){var p=Math.abs(d),v=Math.abs(f);return p<3e3&&v<3e3?Math.sqrt(p*p+v*v):(p0&&l();break;case"number":p.im=0,p.re=d;break;default:l()}return isNaN(p.re)||isNaN(p.im),p};function c(d,f){if(!(this instanceof c))return new c(d,f);var p=u(d,f);this.re=p.re,this.im=p.im}c.prototype={re:0,im:0,sign:function(){var d=this.abs();return new c(this.re/d,this.im/d)},add:function(d,f){var p=new c(d,f);return this.isInfinite()&&p.isInfinite()?c.NAN:this.isInfinite()||p.isInfinite()?c.INFINITY:new c(this.re+p.re,this.im+p.im)},sub:function(d,f){var p=new c(d,f);return this.isInfinite()&&p.isInfinite()?c.NAN:this.isInfinite()||p.isInfinite()?c.INFINITY:new c(this.re-p.re,this.im-p.im)},mul:function(d,f){var p=new c(d,f);return this.isInfinite()&&p.isZero()||this.isZero()&&p.isInfinite()?c.NAN:this.isInfinite()||p.isInfinite()?c.INFINITY:p.im===0&&this.im===0?new c(this.re*p.re,0):new c(this.re*p.re-this.im*p.im,this.re*p.im+this.im*p.re)},div:function(d,f){var p=new c(d,f);if(this.isZero()&&p.isZero()||this.isInfinite()&&p.isInfinite())return c.NAN;if(this.isInfinite()||p.isZero())return c.INFINITY;if(this.isZero()||p.isInfinite())return c.ZERO;d=this.re,f=this.im;var v=p.re,m=p.im,h,g;return m===0?new c(d/v,f/v):Math.abs(v)0)return new c(Math.pow(d,p.re),0);if(d===0)switch((p.re%4+4)%4){case 0:return new c(Math.pow(f,p.re),0);case 1:return new c(0,Math.pow(f,p.re));case 2:return new c(-Math.pow(f,p.re),0);case 3:return new c(0,-Math.pow(f,p.re))}}if(d===0&&f===0&&p.re>0&&p.im>=0)return c.ZERO;var v=Math.atan2(f,d),m=s(d,f);return d=Math.exp(p.re*m-p.im*v),f=p.im*m+p.re*v,new c(d*Math.cos(f),d*Math.sin(f))},sqrt:function(){var d=this.re,f=this.im,p=this.abs(),v,m;if(d>=0){if(f===0)return new c(Math.sqrt(d),0);v=.5*Math.sqrt(2*(p+d))}else v=Math.abs(f)/Math.sqrt(2*(p-d));return d<=0?m=.5*Math.sqrt(2*(p-d)):m=Math.abs(f)/Math.sqrt(2*(p+d)),new c(v,f<0?-m:m)},exp:function(){var d=Math.exp(this.re);return this.im,new c(d*Math.cos(this.im),d*Math.sin(this.im))},expm1:function(){var d=this.re,f=this.im;return new c(Math.expm1(d)*Math.cos(f)+a(f),Math.exp(d)*Math.sin(f))},log:function(){var d=this.re,f=this.im;return new c(s(d,f),Math.atan2(f,d))},abs:function(){return i(this.re,this.im)},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){var d=this.re,f=this.im;return new c(Math.sin(d)*r(f),Math.cos(d)*o(f))},cos:function(){var d=this.re,f=this.im;return new c(Math.cos(d)*r(f),-Math.sin(d)*o(f))},tan:function(){var d=2*this.re,f=2*this.im,p=Math.cos(d)+r(f);return new c(Math.sin(d)/p,o(f)/p)},cot:function(){var d=2*this.re,f=2*this.im,p=Math.cos(d)-r(f);return new c(-Math.sin(d)/p,o(f)/p)},sec:function(){var d=this.re,f=this.im,p=.5*r(2*f)+.5*Math.cos(2*d);return new c(Math.cos(d)*r(f)/p,Math.sin(d)*o(f)/p)},csc:function(){var d=this.re,f=this.im,p=.5*r(2*f)-.5*Math.cos(2*d);return new c(Math.sin(d)*r(f)/p,-Math.cos(d)*o(f)/p)},asin:function(){var d=this.re,f=this.im,p=new c(f*f-d*d+1,-2*d*f).sqrt(),v=new c(p.re-f,p.im+d).log();return new c(v.im,-v.re)},acos:function(){var d=this.re,f=this.im,p=new c(f*f-d*d+1,-2*d*f).sqrt(),v=new c(p.re-f,p.im+d).log();return new c(Math.PI/2-v.im,v.re)},atan:function(){var d=this.re,f=this.im;if(d===0){if(f===1)return new c(0,1/0);if(f===-1)return new c(0,-1/0)}var p=d*d+(1-f)*(1-f),v=new c((1-f*f-d*d)/p,-2*d/p).log();return new c(-.5*v.im,.5*v.re)},acot:function(){var d=this.re,f=this.im;if(f===0)return new c(Math.atan2(1,d),0);var p=d*d+f*f;return p!==0?new c(d/p,-f/p).atan():new c(d!==0?d/0:0,f!==0?-f/0:0).atan()},asec:function(){var d=this.re,f=this.im;if(d===0&&f===0)return new c(0,1/0);var p=d*d+f*f;return p!==0?new c(d/p,-f/p).acos():new c(d!==0?d/0:0,f!==0?-f/0:0).acos()},acsc:function(){var d=this.re,f=this.im;if(d===0&&f===0)return new c(Math.PI/2,1/0);var p=d*d+f*f;return p!==0?new c(d/p,-f/p).asin():new c(d!==0?d/0:0,f!==0?-f/0:0).asin()},sinh:function(){var d=this.re,f=this.im;return new c(o(d)*Math.cos(f),r(d)*Math.sin(f))},cosh:function(){var d=this.re,f=this.im;return new c(r(d)*Math.cos(f),o(d)*Math.sin(f))},tanh:function(){var d=2*this.re,f=2*this.im,p=r(d)+Math.cos(f);return new c(o(d)/p,Math.sin(f)/p)},coth:function(){var d=2*this.re,f=2*this.im,p=r(d)-Math.cos(f);return new c(o(d)/p,-Math.sin(f)/p)},csch:function(){var d=this.re,f=this.im,p=Math.cos(2*f)-r(2*d);return new c(-2*o(d)*Math.cos(f)/p,2*r(d)*Math.sin(f)/p)},sech:function(){var d=this.re,f=this.im,p=Math.cos(2*f)+r(2*d);return new c(2*r(d)*Math.cos(f)/p,-2*o(d)*Math.sin(f)/p)},asinh:function(){var d=this.im;this.im=-this.re,this.re=d;var f=this.asin();return this.re=-this.im,this.im=d,d=f.re,f.re=-f.im,f.im=d,f},acosh:function(){var d=this.acos();if(d.im<=0){var f=d.re;d.re=-d.im,d.im=f}else{var f=d.im;d.im=-d.re,d.re=f}return d},atanh:function(){var d=this.re,f=this.im,p=d>1&&f===0,v=1-d,m=1+d,h=v*v+f*f,g=h!==0?new c((m*v-f*f)/h,(f*v+m*f)/h):new c(d!==-1?d/0:0,f!==0?f/0:0),x=g.re;return g.re=s(g.re,g.im)/2,g.im=Math.atan2(g.im,x)/2,p&&(g.im=-g.im),g},acoth:function(){var d=this.re,f=this.im;if(d===0&&f===0)return new c(0,Math.PI/2);var p=d*d+f*f;return p!==0?new c(d/p,-f/p).atanh():new c(d!==0?d/0:0,f!==0?-f/0:0).atanh()},acsch:function(){var d=this.re,f=this.im;if(f===0)return new c(d!==0?Math.log(d+Math.sqrt(d*d+1)):1/0,0);var p=d*d+f*f;return p!==0?new c(d/p,-f/p).asinh():new c(d!==0?d/0:0,f!==0?-f/0:0).asinh()},asech:function(){var d=this.re,f=this.im;if(this.isZero())return c.INFINITY;var p=d*d+f*f;return p!==0?new c(d/p,-f/p).acosh():new c(d!==0?d/0:0,f!==0?-f/0:0).acosh()},inverse:function(){if(this.isZero())return c.INFINITY;if(this.isInfinite())return c.ZERO;var d=this.re,f=this.im,p=d*d+f*f;return new c(d/p,-f/p)},conjugate:function(){return new c(this.re,-this.im)},neg:function(){return new c(-this.re,-this.im)},ceil:function(d){return d=Math.pow(10,d||0),new c(Math.ceil(this.re*d)/d,Math.ceil(this.im*d)/d)},floor:function(d){return d=Math.pow(10,d||0),new c(Math.floor(this.re*d)/d,Math.floor(this.im*d)/d)},round:function(d){return d=Math.pow(10,d||0),new c(Math.round(this.re*d)/d,Math.round(this.im*d)/d)},equals:function(d,f){var p=new c(d,f);return Math.abs(p.re-this.re)<=c.EPSILON&&Math.abs(p.im-this.im)<=c.EPSILON},clone:function(){return new c(this.re,this.im)},toString:function(){var d=this.re,f=this.im,p="";return this.isNaN()?"NaN":this.isInfinite()?"Infinity":(Math.abs(d)(Object.defineProperty(kn,"name",{value:"Complex"}),kn.prototype.constructor=kn,kn.prototype.type="Complex",kn.prototype.isComplex=!0,kn.prototype.toJSON=function(){return{mathjs:"Complex",re:this.re,im:this.im}},kn.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},kn.prototype.format=function(e){var t="",n=this.im,r=this.re,o=Hi(this.re,e),a=Hi(this.im,e),i=Pt(e)?e:e?e.precision:null;if(i!==null){var l=Math.pow(10,-i);Math.abs(r/n)t.re?1:e.ret.im?1:e.im1&&(m[h]=(m[h]||0)+1):m[v]=(m[v]||0)+1,m}var s=function(v,m){var h=0,g=1,x=1,y=0,w=0,b=0,S=1,$=1,D=0,O=1,A=1,T=1,M=1e7,B;if(v!=null)if(m!==void 0){if(h=v,g=m,x=h*g,h%1!==0||g%1!==0)throw p.NonIntegerParameter}else switch(typeof v){case"object":{if("d"in v&&"n"in v)h=v.n,g=v.d,"s"in v&&(h*=v.s);else if(0 in v)h=v[0],1 in v&&(g=v[1]);else throw p.InvalidParameter;x=h*g;break}case"number":{if(v<0&&(x=v,v=-v),v%1===0)h=v;else if(v>0){for(v>=1&&($=Math.pow(10,Math.floor(1+Math.log(v)/Math.LN10)),v/=$);O<=M&&T<=M;)if(B=(D+A)/(O+T),v===B){O+T<=M?(h=D+A,g=O+T):T>O?(h=A,g=T):(h=D,g=O);break}else v>B?(D+=A,O+=T):(A+=D,T+=O),O>M?(h=A,g=T):(h=D,g=O);h*=$}else(isNaN(v)||isNaN(m))&&(g=h=NaN);break}case"string":{if(O=v.match(/\d+|./g),O===null)throw p.InvalidParameter;if(O[D]==="-"?(x=-1,D++):O[D]==="+"&&D++,O.length===D+1?w=a(O[D++],x):O[D+1]==="."||O[D]==="."?(O[D]!=="."&&(y=a(O[D++],x)),D++,(D+1===O.length||O[D+1]==="("&&O[D+3]===")"||O[D+1]==="'"&&O[D+3]==="'")&&(w=a(O[D],x),S=Math.pow(10,O[D].length),D++),(O[D]==="("&&O[D+2]===")"||O[D]==="'"&&O[D+2]==="'")&&(b=a(O[D+1],x),$=Math.pow(10,O[D+1].length)-1,D+=3)):O[D+1]==="/"||O[D+1]===":"?(w=a(O[D],x),S=a(O[D+2],1),D+=3):O[D+3]==="/"&&O[D+1]===" "&&(y=a(O[D],x),w=a(O[D+2],x),S=a(O[D+4],1),D+=5),O.length<=D){g=S*$,x=h=b+g*y+$*w;break}}default:throw p.InvalidParameter}if(g===0)throw p.DivisionByZero;o.s=x<0?-1:1,o.n=Math.abs(h),o.d=Math.abs(g)};function u(v,m,h){for(var g=1;m>0;v=v*v%h,m>>=1)m&1&&(g=g*v%h);return g}function c(v,m){for(;m%2===0;m/=2);for(;m%5===0;m/=5);if(m===1)return 0;for(var h=10%m,g=1;h!==1;g++)if(h=h*10%m,g>r)return 0;return g}function d(v,m,h){for(var g=1,x=u(10,h,m),y=0;y<300;y++){if(g===x)return y;g=g*10%m,x=x*10%m}return 0}function f(v,m){if(!v)return m;if(!m)return v;for(;;){if(v%=m,!v)return m;if(m%=v,!m)return v}}function p(v,m){if(s(v,m),this instanceof p)v=f(o.d,o.n),this.s=o.s,this.n=o.n/v,this.d=o.d/v;else return i(o.s*o.n,o.d)}p.DivisionByZero=new Error("Division by Zero"),p.InvalidParameter=new Error("Invalid argument"),p.NonIntegerParameter=new Error("Parameters must be integer"),p.prototype={s:1,n:0,d:1,abs:function(){return i(this.n,this.d)},neg:function(){return i(-this.s*this.n,this.d)},add:function(v,m){return s(v,m),i(this.s*this.n*o.d+o.s*this.d*o.n,this.d*o.d)},sub:function(v,m){return s(v,m),i(this.s*this.n*o.d-o.s*this.d*o.n,this.d*o.d)},mul:function(v,m){return s(v,m),i(this.s*o.s*this.n*o.n,this.d*o.d)},div:function(v,m){return s(v,m),i(this.s*o.s*this.n*o.d,this.d*o.n)},clone:function(){return i(this.s*this.n,this.d)},mod:function(v,m){if(isNaN(this.n)||isNaN(this.d))return new p(NaN);if(v===void 0)return i(this.s*this.n%this.d,1);if(s(v,m),o.n===0&&this.d===0)throw p.DivisionByZero;return i(this.s*(o.d*this.n)%(o.n*this.d),o.d*this.d)},gcd:function(v,m){return s(v,m),i(f(o.n,this.n)*f(o.d,this.d),o.d*this.d)},lcm:function(v,m){return s(v,m),o.n===0&&this.n===0?i(0,1):i(o.n*this.n,f(o.n,this.n)*f(o.d,this.d))},ceil:function(v){return v=Math.pow(10,v||0),isNaN(this.n)||isNaN(this.d)?new p(NaN):i(Math.ceil(v*this.s*this.n/this.d),v)},floor:function(v){return v=Math.pow(10,v||0),isNaN(this.n)||isNaN(this.d)?new p(NaN):i(Math.floor(v*this.s*this.n/this.d),v)},round:function(v){return v=Math.pow(10,v||0),isNaN(this.n)||isNaN(this.d)?new p(NaN):i(Math.round(v*this.s*this.n/this.d),v)},inverse:function(){return i(this.s*this.d,this.n)},pow:function(v,m){if(s(v,m),o.d===1)return o.s<0?i(Math.pow(this.s*this.d,o.n),Math.pow(this.n,o.n)):i(Math.pow(this.s*this.n,o.n),Math.pow(this.d,o.n));if(this.s<0)return null;var h=l(this.n),g=l(this.d),x=1,y=1;for(var w in h)if(w!=="1"){if(w==="0"){x=0;break}if(h[w]*=o.n,h[w]%o.d===0)h[w]/=o.d;else return null;x*=Math.pow(w,h[w])}for(var w in g)if(w!=="1"){if(g[w]*=o.n,g[w]%o.d===0)g[w]/=o.d;else return null;y*=Math.pow(w,g[w])}return o.s<0?i(y,x):i(x,y)},equals:function(v,m){return s(v,m),this.s*this.n*o.d===o.s*o.n*this.d},compare:function(v,m){s(v,m);var h=this.s*this.n*o.d-o.s*o.n*this.d;return(0=0;y--)x=x.inverse().add(h[y]);if(x.sub(m).abs().valueOf()0&&(h+=m,h+=" ",g%=x),h+=g,h+="/",h+=x),h},toLatex:function(v){var m,h="",g=this.n,x=this.d;return this.s<0&&(h+="-"),x===1?h+=g:(v&&(m=Math.floor(g/x))>0&&(h+=m,g%=x),h+="\\frac{",h+=g,h+="}{",h+=x,h+="}"),h},toContinued:function(){var v,m=this.n,h=this.d,g=[];if(isNaN(m)||isNaN(h))return g;do g.push(Math.floor(m/h)),v=m%h,m=h,h=v;while(m!==1);return g},toString:function(v){var m=this.n,h=this.d;if(isNaN(m)||isNaN(h))return"NaN";v=v||15;var g=c(m,h),x=d(m,h,g),y=this.s<0?"-":"";if(y+=m/h|0,m%=h,m*=10,m&&(y+="."),g){for(var w=x;w--;)y+=m/h|0,m%=h,m*=10;y+="(";for(var w=g;w--;)y+=m/h|0,m%=h,m*=10;y+=")"}else for(var w=v;m&&w--;)y+=m/h|0,m%=h,m*=10;return y}},Object.defineProperty(p,"__esModule",{value:!0}),p.default=p,p.Fraction=p,e.exports=p})()})(lwe);const Qo=FP(xy);var swe="Fraction",uwe=[],cwe=se(swe,uwe,()=>(Object.defineProperty(Qo,"name",{value:"Fraction"}),Qo.prototype.constructor=Qo,Qo.prototype.type="Fraction",Qo.prototype.isFraction=!0,Qo.prototype.toJSON=function(){return{mathjs:"Fraction",n:this.s*this.n,d:this.d}},Qo.fromJSON=function(e){return new Qo(e)},Qo),{isClass:!0}),dwe="Range",fwe=[],pwe=se(dwe,fwe,()=>{function e(t,n,r){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator");var o=t!=null,a=n!=null,i=r!=null;if(o){if(Ot(t))t=t.toNumber();else if(typeof t!="number")throw new TypeError("Parameter start must be a number")}if(a){if(Ot(n))n=n.toNumber();else if(typeof n!="number")throw new TypeError("Parameter end must be a number")}if(i){if(Ot(r))r=r.toNumber();else if(typeof r!="number")throw new TypeError("Parameter step must be a number")}this.start=o?parseFloat(t):0,this.end=a?parseFloat(n):0,this.step=i?parseFloat(r):1}return e.prototype.type="Range",e.prototype.isRange=!0,e.parse=function(t){if(typeof t!="string")return null;var n=t.split(":"),r=n.map(function(a){return parseFloat(a)}),o=r.some(function(a){return isNaN(a)});if(o)return null;switch(r.length){case 2:return new e(r[0],r[1]);case 3:return new e(r[0],r[2],r[1]);default:return null}},e.prototype.clone=function(){return new e(this.start,this.end,this.step)},e.prototype.size=function(){var t=0,n=this.start,r=this.step,o=this.end,a=o-n;return Ja(r)===Ja(a)?t=Math.ceil(a/r):a===0&&(t=0),isNaN(t)&&(t=0),[t]},e.prototype.min=function(){var t=this.size()[0];if(t>0)return this.step>0?this.start:this.start+(t-1)*this.step},e.prototype.max=function(){var t=this.size()[0];if(t>0)return this.step>0?this.start+(t-1)*this.step:this.start},e.prototype.forEach=function(t){var n=this.start,r=this.step,o=this.end,a=0;if(r>0)for(;no;)t(n,[a],this),n+=r,a++},e.prototype.map=function(t){var n=[];return this.forEach(function(r,o,a){n[o[0]]=t(r,o,a)}),n},e.prototype.toArray=function(){var t=[];return this.forEach(function(n,r){t[r[0]]=n}),t},e.prototype.valueOf=function(){return this.toArray()},e.prototype.format=function(t){var n=Hi(this.start,t);return this.step!==1&&(n+=":"+Hi(this.step,t)),n+=":"+Hi(this.end,t),n},e.prototype.toString=function(){return this.format()},e.prototype.toJSON=function(){return{mathjs:"Range",start:this.start,end:this.end,step:this.step}},e.fromJSON=function(t){return new e(t.start,t.end,t.step)},e},{isClass:!0}),mwe="Matrix",vwe=[],hwe=se(mwe,vwe,()=>{function e(){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator")}return e.prototype.type="Matrix",e.prototype.isMatrix=!0,e.prototype.storage=function(){throw new Error("Cannot invoke storage on a Matrix interface")},e.prototype.datatype=function(){throw new Error("Cannot invoke datatype on a Matrix interface")},e.prototype.create=function(t,n){throw new Error("Cannot invoke create on a Matrix interface")},e.prototype.subset=function(t,n,r){throw new Error("Cannot invoke subset on a Matrix interface")},e.prototype.get=function(t){throw new Error("Cannot invoke get on a Matrix interface")},e.prototype.set=function(t,n,r){throw new Error("Cannot invoke set on a Matrix interface")},e.prototype.resize=function(t,n){throw new Error("Cannot invoke resize on a Matrix interface")},e.prototype.reshape=function(t,n){throw new Error("Cannot invoke reshape on a Matrix interface")},e.prototype.clone=function(){throw new Error("Cannot invoke clone on a Matrix interface")},e.prototype.size=function(){throw new Error("Cannot invoke size on a Matrix interface")},e.prototype.map=function(t,n){throw new Error("Cannot invoke map on a Matrix interface")},e.prototype.forEach=function(t){throw new Error("Cannot invoke forEach on a Matrix interface")},e.prototype[Symbol.iterator]=function(){throw new Error("Cannot iterate a Matrix interface")},e.prototype.toArray=function(){throw new Error("Cannot invoke toArray on a Matrix interface")},e.prototype.valueOf=function(){throw new Error("Cannot invoke valueOf on a Matrix interface")},e.prototype.format=function(t){throw new Error("Cannot invoke format on a Matrix interface")},e.prototype.toString=function(){throw new Error("Cannot invoke toString on a Matrix interface")},e},{isClass:!0});function gwe(e){var t=0,n=1,r=Object.create(null),o=Object.create(null),a=0,i=function(s){var u=o[s];if(u&&(delete r[u],delete o[s],--t,n===u)){if(!t){a=0,n=1;return}for(;!hasOwnProperty.call(r,++n););}};return e=Math.abs(e),{hit:function(s){var u=o[s],c=++a;if(r[c]=s,o[s]=c,!u)return++t,t<=e?void 0:(s=r[n],i(s),s);if(delete r[u],n===u)for(;!hasOwnProperty.call(r,++n););},delete:i,clear:function(){t=a=0,n=1,r=Object.create(null),o=Object.create(null)}}}function _c(e){var{hasher:t,limit:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n=n??Number.POSITIVE_INFINITY,t=t??JSON.stringify,function r(){typeof r.cache!="object"&&(r.cache={values:new Map,lru:gwe(n||Number.POSITIVE_INFINITY)});for(var o=[],a=0;a{var{Matrix:t}=e;function n(c,d){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(d&&!Jn(d))throw new Error("Invalid datatype: "+d);if(mt(c))c.type==="DenseMatrix"?(this._data=ct(c._data),this._size=ct(c._size),this._datatype=d||c._datatype):(this._data=c.toArray(),this._size=c.size(),this._datatype=d||c._datatype);else if(c&&Ut(c.data)&&Ut(c.size))this._data=c.data,this._size=c.size,d4(this._data,this._size),this._datatype=d||c.datatype;else if(Ut(c))this._data=u(c),this._size=Mt(this._data),d4(this._data,this._size),this._datatype=d;else{if(c)throw new TypeError("Unsupported type of data ("+an(c)+")");this._data=[],this._size=[0],this._datatype=d}}n.prototype=new t,n.prototype.createDenseMatrix=function(c,d){return new n(c,d)},Object.defineProperty(n,"name",{value:"DenseMatrix"}),n.prototype.constructor=n,n.prototype.type="DenseMatrix",n.prototype.isDenseMatrix=!0,n.prototype.getDataType=function(){return ac(this._data,an)},n.prototype.storage=function(){return"dense"},n.prototype.datatype=function(){return this._datatype},n.prototype.create=function(c,d){return new n(c,d)},n.prototype.subset=function(c,d,f){switch(arguments.length){case 1:return r(this,c);case 2:case 3:return a(this,c,d,f);default:throw new SyntaxError("Wrong number of arguments")}},n.prototype.get=function(c){if(!Ut(c))throw new TypeError("Array expected");if(c.length!==this._size.length)throw new Dt(c.length,this._size.length);for(var d=0;d");var y=d.max().map(function(S){return S+1});s(c,y,p);var w=v.length,b=0;i(c._data,d,f,w,b)}return c}function i(c,d,f,p,v){var m=v===p-1,h=d.dimension(v);m?h.forEach(function(g,x){Xt(g),c[g]=f[x[0]]}):h.forEach(function(g,x){Xt(g),i(c[g],d,f[x[0]],p,v+1)})}n.prototype.resize=function(c,d,f){if(!wo(c))throw new TypeError("Array or Matrix expected");var p=c.valueOf().map(m=>Array.isArray(m)&&m.length===1?m[0]:m),v=f?this.clone():this;return l(v,p,d)};function l(c,d,f){if(d.length===0){for(var p=c._data;Ut(p);)p=p[0];return p}return c._size=d.slice(0),c._data=gs(c._data,c._size,f),c}n.prototype.reshape=function(c,d){var f=d?this.clone():this;f._data=K_(f._data,c);var p=f._size.reduce((v,m)=>v*m);return f._size=Rw(c,p),f};function s(c,d,f){for(var p=c._size.slice(0),v=!1;p.lengthp[m]&&(p[m]=d[m],v=!0);v&&l(c,p,f)}n.prototype.clone=function(){var c=new n({data:ct(this._data),size:ct(this._size),datatype:this._datatype});return c},n.prototype.size=function(){return this._size.slice(0)},n.prototype.map=function(c){var d=this,f=mi(c),p=function h(g,x){return Ut(g)?g.map(function(y,w){return h(y,x.concat(w))}):f===1?c(g):f===2?c(g,x):c(g,x,d)},v=p(this._data,[]),m=this._datatype!==void 0?ac(v,an):void 0;return new n(v,m)},n.prototype.forEach=function(c){var d=this,f=function p(v,m){Ut(v)?v.forEach(function(h,g){p(h,m.concat(g))}):c(v,m,d)};f(this._data,[])},n.prototype[Symbol.iterator]=function*(){var c=function*d(f,p){if(Ut(f))for(var v=0;v[y[g]]);d.push(new n(x,c._datatype))},m=0;m0?c:0,f=c<0?-c:0,p=this._size[0],v=this._size[1],m=Math.min(p-f,v-d),h=[],g=0;g0?f:0,m=f<0?-f:0,h=c[0],g=c[1],x=Math.min(h-m,g-v),y;if(Ut(d)){if(d.length!==x)throw new Error("Invalid value array length");y=function(D){return d[D]}}else if(mt(d)){var w=d.size();if(w.length!==1||w[0]!==x)throw new Error("Invalid matrix length");y=function(D){return d.get([D])}}else y=function(){return d};p||(p=Ot(y(0))?y(0).mul(0):0);var b=[];if(c.length>0){b=gs(b,c,p);for(var S=0;S{var{typed:t}=e;return t(y4,{any:ct})});function f7(e){var t=e.length,n=e[0].length,r,o,a=[];for(o=0;o=r.length)throw new oo(t,r.length);return mt(e)?e.create(Lp(e.valueOf(),t,n)):Lp(e,t,n)}function Lp(e,t,n){var r,o,a,i;if(t<=0)if(Array.isArray(e[0])){for(i=f7(e),o=[],r=0;r{var{typed:t}=e;return t(x4,{number:ot,BigNumber:function(r){return r.isInt()},Fraction:function(r){return r.d===1&&isFinite(r.n)},"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),Eo="number",cl="number, number";function p7(e){return Math.abs(e)}p7.signature=Eo;function m7(e,t){return e+t}m7.signature=cl;function v7(e,t){return e*t}v7.signature=cl;function h7(e){return-e}h7.signature=Eo;function g7(e){return e}g7.signature=Eo;function uu(e){return O1e(e)}uu.signature=Eo;function y7(e){return e*e*e}y7.signature=Eo;function b7(e){return Math.exp(e)}b7.signature=Eo;function x7(e){return T1e(e)}x7.signature=Eo;function w7(e,t){if(!ot(e)||!ot(t))throw new Error("Parameters in function gcd must be integer numbers");for(var n;t!==0;)n=e%t,e=t,t=n;return e<0?-e:e}w7.signature=cl;function S7(e,t){if(!ot(e)||!ot(t))throw new Error("Parameters in function lcm must be integer numbers");if(e===0||t===0)return 0;for(var n,r=e*t;t!==0;)n=t,t=e%n,e=n;return Math.abs(r/e)}S7.signature=cl;function Ewe(e,t){return t?Math.log(e)/Math.log(t):Math.log(e)}function C7(e){return D1e(e)}C7.signature=Eo;function $7(e){return E1e(e)}$7.signature=Eo;function E7(e,t){if(t>0)return e-t*Math.floor(e/t);if(t===0)return e;throw new Error("Cannot calculate mod for a negative divisor")}E7.signature=cl;function w4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,n=t<0;if(n&&(t=-t),t===0)throw new Error("Root must be non-zero");if(e<0&&Math.abs(t)%2!==1)throw new Error("Root must be odd when a is negative.");if(e===0)return n?1/0:0;if(!isFinite(e))return n?0:e;var r=Math.pow(Math.abs(e),1/t);return r=e<0?-r:r,n?1/r:r}function wy(e){return Ja(e)}wy.signature=Eo;function D7(e){return e*e}D7.signature=Eo;function A7(e,t){var n,r,o,a=0,i=1,l=1,s=0;if(!ot(e)||!ot(t))throw new Error("Parameters in function xgcd must be integer numbers");for(;t;)r=Math.floor(e/t),o=e-r*t,n=a,a=i-r*a,i=n,n=l,l=s-r*l,s=n,e=t,t=o;var u;return e<0?u=[-e,-i,-s]:u=[e,e?i:0,s],u}A7.signature=cl;function O7(e,t){return e*e<1&&t===1/0||e*e>1&&t===-1/0?0:Math.pow(e,t)}O7.signature=cl;function S4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!ot(t)||t<0||t>15)throw new Error("Number of decimals in function round must be an integer from 0 to 15 inclusive");return parseFloat(j_(e,t))}var Dwe="number",ks="number, number";function T7(e,t){if(!ot(e)||!ot(t))throw new Error("Integers expected in function bitAnd");return e&t}T7.signature=ks;function M7(e){if(!ot(e))throw new Error("Integer expected in function bitNot");return~e}M7.signature=Dwe;function N7(e,t){if(!ot(e)||!ot(t))throw new Error("Integers expected in function bitOr");return e|t}N7.signature=ks;function P7(e,t){if(!ot(e)||!ot(t))throw new Error("Integers expected in function bitXor");return e^t}P7.signature=ks;function I7(e,t){if(!ot(e)||!ot(t))throw new Error("Integers expected in function leftShift");return e<>t}_7.signature=ks;function B7(e,t){if(!ot(e)||!ot(t))throw new Error("Integers expected in function rightLogShift");return e>>>t}B7.signature=ks;function pa(e,t){if(t>1;return pa(e,n)*pa(n+1,t)}function F7(e,t){if(!ot(e)||e<0)throw new TypeError("Positive integer value expected in function combinations");if(!ot(t)||t<0)throw new TypeError("Positive integer value expected in function combinations");if(t>e)throw new TypeError("k must be less than or equal to n");for(var n=e-t,r=1,o=t171?1/0:pa(1,e-1);if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*kp(1-e));if(e>=171.35)return 1/0;if(e>85){var n=e*e,r=n*e,o=r*e,a=o*e;return Math.sqrt(2*Math.PI/e)*Math.pow(e/Math.E,e)*(1+1/(12*e)+1/(288*n)-139/(51840*r)-571/(2488320*o)+163879/(209018880*a)+5246819/(75246796800*a*e))}--e,t=ns[0];for(var i=1;i=1;r--)n+=C4[r]/(e+r);return j7+(e+.5)*Math.log(t)-t+Math.log(n)}Hp.signature="number";var nr="number";function V7(e){return _1e(e)}V7.signature=nr;function W7(e){return Math.atan(1/e)}W7.signature=nr;function U7(e){return isFinite(e)?(Math.log((e+1)/e)+Math.log(e/(e-1)))/2:0}U7.signature=nr;function K7(e){return Math.asin(1/e)}K7.signature=nr;function q7(e){var t=1/e;return Math.log(t+Math.sqrt(t*t+1))}q7.signature=nr;function G7(e){return Math.acos(1/e)}G7.signature=nr;function X7(e){var t=1/e,n=Math.sqrt(t*t-1);return Math.log(n+t)}X7.signature=nr;function Y7(e){return B1e(e)}Y7.signature=nr;function Z7(e){return F1e(e)}Z7.signature=nr;function J7(e){return 1/Math.tan(e)}J7.signature=nr;function Q7(e){var t=Math.exp(2*e);return(t+1)/(t-1)}Q7.signature=nr;function eB(e){return 1/Math.sin(e)}eB.signature=nr;function tB(e){return e===0?Number.POSITIVE_INFINITY:Math.abs(2/(Math.exp(e)-Math.exp(-e)))*Ja(e)}tB.signature=nr;function nB(e){return 1/Math.cos(e)}nB.signature=nr;function rB(e){return 2/(Math.exp(e)+Math.exp(-e))}rB.signature=nr;function oB(e){return z1e(e)}oB.signature=nr;var Bv="number";function aB(e){return e<0}aB.signature=Bv;function iB(e){return e>0}iB.signature=Bv;function lB(e){return e===0}lB.signature=Bv;function sB(e){return Number.isNaN(e)}sB.signature=Bv;var $4="isNegative",_we=["typed"],Bwe=se($4,_we,e=>{var{typed:t}=e;return t($4,{number:aB,BigNumber:function(r){return r.isNeg()&&!r.isZero()&&!r.isNaN()},Fraction:function(r){return r.s<0},Unit:t.referToSelf(n=>r=>t.find(n,r.valueType())(r.value)),"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),E4="isNumeric",Fwe=["typed"],Rwe=se(E4,Fwe,e=>{var{typed:t}=e;return t(E4,{"number | BigNumber | Fraction | boolean":()=>!0,"Complex | Unit | string | null | undefined | Node":()=>!1,"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),D4="hasNumericValue",zwe=["typed","isNumeric"],Lwe=se(D4,zwe,e=>{var{typed:t,isNumeric:n}=e;return t(D4,{boolean:()=>!0,string:function(o){return o.trim().length>0&&!isNaN(Number(o))},any:function(o){return n(o)}})}),A4="isPositive",kwe=["typed"],Hwe=se(A4,kwe,e=>{var{typed:t}=e;return t(A4,{number:iB,BigNumber:function(r){return!r.isNeg()&&!r.isZero()&&!r.isNaN()},Fraction:function(r){return r.s>0&&r.n>0},Unit:t.referToSelf(n=>r=>t.find(n,r.valueType())(r.value)),"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),O4="isZero",jwe=["typed"],Vwe=se(O4,jwe,e=>{var{typed:t}=e;return t(O4,{number:lB,BigNumber:function(r){return r.isZero()},Complex:function(r){return r.re===0&&r.im===0},Fraction:function(r){return r.d===1&&r.n===0},Unit:t.referToSelf(n=>r=>t.find(n,r.valueType())(r.value)),"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),T4="isNaN",Wwe=["typed"],Uwe=se(T4,Wwe,e=>{var{typed:t}=e;return t(T4,{number:sB,BigNumber:function(r){return r.isNaN()},Fraction:function(r){return!1},Complex:function(r){return r.isNaN()},Unit:function(r){return Number.isNaN(r.value)},"Array | Matrix":function(r){return Tt(r,Number.isNaN)}})}),M4="typeOf",Kwe=["typed"],qwe=se(M4,Kwe,e=>{var{typed:t}=e;return t(M4,{any:an})});function Wo(e,t,n){if(n==null)return e.eq(t);if(e.eq(t))return!0;if(e.isNaN()||t.isNaN())return!1;if(e.isFinite()&&t.isFinite()){var r=e.minus(t).abs();if(r.isZero())return!0;var o=e.constructor.max(e.abs(),t.abs());return r.lte(o.times(n))}return!1}function Gwe(e,t,n){return kr(e.re,t.re,n)&&kr(e.im,t.im,n)}var Hs=se("compareUnits",["typed"],e=>{var{typed:t}=e;return{"Unit, Unit":t.referToSelf(n=>(r,o)=>{if(!r.equalBase(o))throw new Error("Cannot compare units with different base");return t.find(n,[r.valueType(),o.valueType()])(r.value,o.value)})}}),jp="equalScalar",Xwe=["typed","config"],Ywe=se(jp,Xwe,e=>{var{typed:t,config:n}=e,r=Hs({typed:t});return t(jp,{"boolean, boolean":function(a,i){return a===i},"number, number":function(a,i){return kr(a,i,n.epsilon)},"BigNumber, BigNumber":function(a,i){return a.eq(i)||Wo(a,i,n.epsilon)},"Fraction, Fraction":function(a,i){return a.equals(i)},"Complex, Complex":function(a,i){return Gwe(a,i,n.epsilon)}},r)});se(jp,["typed","config"],e=>{var{typed:t,config:n}=e;return t(jp,{"number, number":function(o,a){return kr(o,a,n.epsilon)}})});var Zwe="SparseMatrix",Jwe=["typed","equalScalar","Matrix"],Qwe=se(Zwe,Jwe,e=>{var{typed:t,equalScalar:n,Matrix:r}=e;function o(m,h){if(!(this instanceof o))throw new SyntaxError("Constructor must be called with the new operator");if(h&&!Jn(h))throw new Error("Invalid datatype: "+h);if(mt(m))a(this,m,h);else if(m&&Ut(m.index)&&Ut(m.ptr)&&Ut(m.size))this._values=m.values,this._index=m.index,this._ptr=m.ptr,this._size=m.size,this._datatype=h||m.datatype;else if(Ut(m))i(this,m,h);else{if(m)throw new TypeError("Unsupported type of data ("+an(m)+")");this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=h}}function a(m,h,g){h.type==="SparseMatrix"?(m._values=h._values?ct(h._values):void 0,m._index=ct(h._index),m._ptr=ct(h._ptr),m._size=ct(h._size),m._datatype=g||h._datatype):i(m,h.valueOf(),g||h._datatype)}function i(m,h,g){m._values=[],m._index=[],m._ptr=[],m._datatype=g;var x=h.length,y=0,w=n,b=0;if(Jn(g)&&(w=t.find(n,[g,g])||n,b=t.convert(0,g)),x>0){var S=0;do{m._ptr.push(m._index.length);for(var $=0;$");if(y.length===1){var D=h.dimension(0);D.forEach(function(T,M){Xt(T),m.set([T,0],g[M[0]],x)})}else{var O=h.dimension(0),A=h.dimension(1);O.forEach(function(T,M){Xt(T),A.forEach(function(B,F){Xt(B),m.set([T,B],g[M[0]][F[0]],x)})})}}return m}o.prototype.get=function(m){if(!Ut(m))throw new TypeError("Array expected");if(m.length!==this._size.length)throw new Dt(m.length,this._size.length);if(!this._values)throw new Error("Cannot invoke get on a Pattern only matrix");var h=m[0],g=m[1];Xt(h,this._size[0]),Xt(g,this._size[1]);var x=u(h,this._ptr[g],this._ptr[g+1],this._index);return xw-1||y>b-1)&&(f(this,Math.max(x+1,w),Math.max(y+1,b),g),w=this._size[0],b=this._size[1]),Xt(x,w),Xt(y,b);var D=u(x,this._ptr[y],this._ptr[y+1],this._index);return DArray.isArray(w)&&w.length===1?w[0]:w);if(x.length!==2)throw new Error("Only two dimensions matrix are supported");x.forEach(function(w){if(!Pt(w)||!ot(w)||w<0)throw new TypeError("Invalid size, must contain positive integers (size: "+Et(x)+")")});var y=g?this.clone():this;return f(y,x[0],x[1],h)};function f(m,h,g,x){var y=x||0,w=n,b=0;Jn(m._datatype)&&(w=t.find(n,[m._datatype,m._datatype])||n,b=t.convert(0,m._datatype),y=t.convert(y,m._datatype));var S=!w(y,b),$=m._size[0],D=m._size[1],O,A,T;if(g>D){for(A=D;A$){if(S){var M=0;for(A=0;Ah-1&&(m._values.splice(T,1),m._index.splice(T,1),F++)}m._ptr[A]=m._values.length}return m._size[0]=h,m._size[1]=g,m}o.prototype.reshape=function(m,h){if(!Ut(m))throw new TypeError("Array expected");if(m.length!==2)throw new Error("Sparse matrices can only be reshaped in two dimensions");m.forEach(function(_){if(!Pt(_)||!ot(_)||_<=-2||_===0)throw new TypeError("Invalid size, must contain positive integers or -1 (size: "+Et(m)+")")});var g=this._size[0]*this._size[1];m=Rw(m,g);var x=m[0]*m[1];if(g!==x)throw new Error("Reshaping sparse matrix will result in the wrong number of elements");var y=h?this.clone():this;if(this._size[0]===m[0]&&this._size[1]===m[1])return y;for(var w=[],b=0;b=h&&I<=g&&T(m._values[P],I-h,M-x)}else{for(var N={},R=B;R "+(this._values?Et(this._values[$],m):"X")}return y},o.prototype.toString=function(){return Et(this.toArray())},o.prototype.toJSON=function(){return{mathjs:"SparseMatrix",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},o.prototype.diagonal=function(m){if(m){if(Ot(m)&&(m=m.toNumber()),!Pt(m)||!ot(m))throw new TypeError("The parameter k must be an integer number")}else m=0;var h=m>0?m:0,g=m<0?-m:0,x=this._size[0],y=this._size[1],w=Math.min(x-g,y-h),b=[],S=[],$=[];$[0]=0;for(var D=h;D0?g:0,$=g<0?-g:0,D=m[0],O=m[1],A=Math.min(D-$,O-S),T;if(Ut(h)){if(h.length!==A)throw new Error("Invalid value array length");T=function(L){return h[L]}}else if(mt(h)){var M=h.size();if(M.length!==1||M[0]!==A)throw new Error("Invalid matrix length");T=function(L){return h.get([L])}}else T=function(){return h};for(var B=[],F=[],P=[],I=0;I=0&&N=$||y[O]!==h)){var T=x?x[D]:void 0;y.splice(O,0,h),x&&x.splice(O,0,T),y.splice(O<=D?D+1:D,1),x&&x.splice(O<=D?D+1:D,1);continue}if(O<$&&y[O]===h&&(D>=$||y[D]!==m)){var M=x?x[O]:void 0;y.splice(D,0,m),x&&x.splice(D,0,M),y.splice(D<=O?O+1:O,1),x&&x.splice(D<=O?O+1:O,1)}}},o},{isClass:!0}),eSe="number",tSe=["typed"];function nSe(e){var t=e.match(/(0[box])([0-9a-fA-F]*)\.([0-9a-fA-F]*)/);if(t){var n={"0b":2,"0o":8,"0x":16}[t[1]],r=t[2],o=t[3];return{input:e,radix:n,integerPart:r,fractionalPart:o}}else return null}function rSe(e){for(var t=parseInt(e.integerPart,e.radix),n=0,r=0;r{var{typed:t}=e,n=t("number",{"":function(){return 0},number:function(o){return o},string:function(o){if(o==="NaN")return NaN;var a=nSe(o);if(a)return rSe(a);var i=0,l=o.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);l&&(i=Number(l[2]),o=l[1]);var s=Number(o);if(isNaN(s))throw new SyntaxError('String "'+o+'" is no valid number');if(l){if(s>2**i-1)throw new SyntaxError('String "'.concat(o,'" is out of range'));s>=2**(i-1)&&(s=s-2**i)}return s},BigNumber:function(o){return o.toNumber()},Fraction:function(o){return o.valueOf()},Unit:function(o){throw new Error("Second argument with valueless unit expected")},null:function(o){return 0},"Unit, string | Unit":function(o,a){return o.toNumber(a)},"Array | Matrix":t.referToSelf(r=>o=>Tt(o,r))});return n.fromJSON=function(r){return parseFloat(r.value)},n}),N4="string",aSe=["typed"],iSe=se(N4,aSe,e=>{var{typed:t}=e;return t(N4,{"":function(){return""},number:Hi,null:function(r){return"null"},boolean:function(r){return r+""},string:function(r){return r},"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n)),any:function(r){return String(r)}})}),P4="boolean",lSe=["typed"],sSe=se(P4,lSe,e=>{var{typed:t}=e;return t(P4,{"":function(){return!1},boolean:function(r){return r},number:function(r){return!!r},null:function(r){return!1},BigNumber:function(r){return!r.isZero()},string:function(r){var o=r.toLowerCase();if(o==="true")return!0;if(o==="false")return!1;var a=Number(r);if(r!==""&&!isNaN(a))return!!a;throw new Error('Cannot convert "'+r+'" to a boolean')},"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),uSe="bignumber",cSe=["typed","BigNumber"],dSe=se(uSe,cSe,e=>{var{typed:t,BigNumber:n}=e;return t("bignumber",{"":function(){return new n(0)},number:function(o){return new n(o+"")},string:function(o){var a=o.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);if(a){var i=a[2],l=n(a[1]),s=new n(2).pow(Number(i));if(l.gt(s.sub(1)))throw new SyntaxError('String "'.concat(o,'" is out of range'));var u=new n(2).pow(Number(i)-1);return l.gte(u)?l.sub(s):l}return new n(o)},BigNumber:function(o){return o},Fraction:function(o){return new n(o.n).div(o.d).times(o.s)},null:function(o){return new n(0)},"Array | Matrix":t.referToSelf(r=>o=>Tt(o,r))})}),fSe="complex",pSe=["typed","Complex"],mSe=se(fSe,pSe,e=>{var{typed:t,Complex:n}=e;return t("complex",{"":function(){return n.ZERO},number:function(o){return new n(o,0)},"number, number":function(o,a){return new n(o,a)},"BigNumber, BigNumber":function(o,a){return new n(o.toNumber(),a.toNumber())},Fraction:function(o){return new n(o.valueOf(),0)},Complex:function(o){return o.clone()},string:function(o){return n(o)},null:function(o){return n(0)},Object:function(o){if("re"in o&&"im"in o)return new n(o.re,o.im);if("r"in o&&"phi"in o||"abs"in o&&"arg"in o)return new n(o);throw new Error("Expected object with properties (re and im) or (r and phi) or (abs and arg)")},"Array | Matrix":t.referToSelf(r=>o=>Tt(o,r))})}),vSe="fraction",hSe=["typed","Fraction"],gSe=se(vSe,hSe,e=>{var{typed:t,Fraction:n}=e;return t("fraction",{number:function(o){if(!isFinite(o)||isNaN(o))throw new Error(o+" cannot be represented as a fraction");return new n(o)},string:function(o){return new n(o)},"number, number":function(o,a){return new n(o,a)},null:function(o){return new n(0)},BigNumber:function(o){return new n(o.toString())},Fraction:function(o){return o},Object:function(o){return new n(o)},"Array | Matrix":t.referToSelf(r=>o=>Tt(o,r))})}),I4="matrix",ySe=["typed","Matrix","DenseMatrix","SparseMatrix"],bSe=se(I4,ySe,e=>{var{typed:t,Matrix:n,DenseMatrix:r,SparseMatrix:o}=e;return t(I4,{"":function(){return a([])},string:function(l){return a([],l)},"string, string":function(l,s){return a([],l,s)},Array:function(l){return a(l)},Matrix:function(l){return a(l,l.storage())},"Array | Matrix, string":a,"Array | Matrix, string, string":a});function a(i,l,s){if(l==="dense"||l==="default"||l===void 0)return new r(i,s);if(l==="sparse")return new o(i,s);throw new TypeError("Unknown matrix type "+JSON.stringify(l)+".")}}),_4="matrixFromFunction",xSe=["typed","matrix","isZero"],wSe=se(_4,xSe,e=>{var{typed:t,matrix:n,isZero:r}=e;return t(_4,{"Array | Matrix, function, string, string":function(i,l,s,u){return o(i,l,s,u)},"Array | Matrix, function, string":function(i,l,s){return o(i,l,s)},"Matrix, function":function(i,l){return o(i,l,"dense")},"Array, function":function(i,l){return o(i,l,"dense").toArray()},"Array | Matrix, string, function":function(i,l,s){return o(i,s,l)},"Array | Matrix, string, string, function":function(i,l,s,u){return o(i,u,l,s)}});function o(a,i,l,s){var u;return s!==void 0?u=n(l,s):u=n(l),u.resize(a),u.forEach(function(c,d){var f=i(d);r(f)||u.set(d,f)}),u}}),B4="matrixFromRows",SSe=["typed","matrix","flatten","size"],CSe=se(B4,SSe,e=>{var{typed:t,matrix:n,flatten:r,size:o}=e;return t(B4,{"...Array":function(s){return a(s)},"...Matrix":function(s){return n(a(s.map(u=>u.toArray())))}});function a(l){if(l.length===0)throw new TypeError("At least one row is needed to construct a matrix.");var s=i(l[0]),u=[];for(var c of l){var d=i(c);if(d!==s)throw new TypeError("The vectors had different length: "+(s|0)+" ≠ "+(d|0));u.push(r(c))}return u}function i(l){var s=o(l);if(s.length===1)return s[0];if(s.length===2){if(s[0]===1)return s[1];if(s[1]===1)return s[0];throw new TypeError("At least one of the arguments is not a vector.")}else throw new TypeError("Only one- or two-dimensional vectors are supported.")}}),F4="matrixFromColumns",$Se=["typed","matrix","flatten","size"],ESe=se(F4,$Se,e=>{var{typed:t,matrix:n,flatten:r,size:o}=e;return t(F4,{"...Array":function(s){return a(s)},"...Matrix":function(s){return n(a(s.map(u=>u.toArray())))}});function a(l){if(l.length===0)throw new TypeError("At least one column is needed to construct a matrix.");for(var s=i(l[0]),u=[],c=0;c{var{typed:t}=e;return t(R4,{"Unit, Array":function(r,o){return r.splitUnit(o)}})}),z4="unaryMinus",OSe=["typed"],TSe=se(z4,OSe,e=>{var{typed:t}=e;return t(z4,{number:h7,"Complex | BigNumber | Fraction":n=>n.neg(),Unit:t.referToSelf(n=>r=>{var o=r.clone();return o.value=t.find(n,o.valueType())(r.value),o}),"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),L4="unaryPlus",MSe=["typed","config","BigNumber"],NSe=se(L4,MSe,e=>{var{typed:t,config:n,BigNumber:r}=e;return t(L4,{number:g7,Complex:function(a){return a},BigNumber:function(a){return a},Fraction:function(a){return a},Unit:function(a){return a.clone()},"Array | Matrix":t.referToSelf(o=>a=>Tt(a,o)),"boolean | string":function(a){return n.number==="BigNumber"?new r(+a):+a}})}),k4="abs",PSe=["typed"],ISe=se(k4,PSe,e=>{var{typed:t}=e;return t(k4,{number:p7,"Complex | BigNumber | Fraction | Unit":n=>n.abs(),"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),H4="apply",_Se=["typed","isInteger"],uB=se(H4,_Se,e=>{var{typed:t,isInteger:n}=e;return t(H4,{"Array | Matrix, number | BigNumber, function":function(o,a,i){if(!n(a))throw new TypeError("Integer number expected for dimension");var l=Array.isArray(o)?Mt(o):o.size();if(a<0||a>=l.length)throw new oo(a,l.length);return mt(o)?o.create(Vp(o.valueOf(),a,i)):Vp(o,a,i)}})});function Vp(e,t,n){var r,o,a;if(t<=0)if(Array.isArray(e[0])){for(a=BSe(e),o=[],r=0;r{var{typed:t}=e;return t(j4,{"number, number":m7,"Complex, Complex":function(r,o){return r.add(o)},"BigNumber, BigNumber":function(r,o){return r.plus(o)},"Fraction, Fraction":function(r,o){return r.add(o)},"Unit, Unit":t.referToSelf(n=>(r,o)=>{if(r.value===null||r.value===void 0)throw new Error("Parameter x contains a unit with undefined value");if(o.value===null||o.value===void 0)throw new Error("Parameter y contains a unit with undefined value");if(!r.equalBase(o))throw new Error("Units do not match");var a=r.clone();return a.value=t.find(n,[a.valueType(),o.valueType()])(a.value,o.value),a.fixPrefix=!1,a})})}),V4="cbrt",zSe=["config","typed","isNegative","unaryMinus","matrix","Complex","BigNumber","Fraction"],LSe=se(V4,zSe,e=>{var{config:t,typed:n,isNegative:r,unaryMinus:o,matrix:a,Complex:i,BigNumber:l,Fraction:s}=e;return n(V4,{number:uu,Complex:u,"Complex, boolean":u,BigNumber:function(f){return f.cbrt()},Unit:c});function u(d,f){var p=d.arg()/3,v=d.abs(),m=new i(uu(v),0).mul(new i(0,p).exp());if(f){var h=[m,new i(uu(v),0).mul(new i(0,p+Math.PI*2/3).exp()),new i(uu(v),0).mul(new i(0,p-Math.PI*2/3).exp())];return t.matrix==="Array"?h:a(h)}else return m}function c(d){if(d.value&&vo(d.value)){var f=d.clone();return f.value=1,f=f.pow(1/3),f.value=u(d.value),f}else{var p=r(d.value);p&&(d.value=o(d.value));var v;Ot(d.value)?v=new l(1).div(3):sl(d.value)?v=new s(1,3):v=1/3;var m=d.pow(v);return p&&(m.value=o(m.value)),m}}}),kSe="matAlgo11xS0s",HSe=["typed","equalScalar"],qn=se(kSe,HSe,e=>{var{typed:t,equalScalar:n}=e;return function(o,a,i,l){var s=o._values,u=o._index,c=o._ptr,d=o._size,f=o._datatype;if(!s)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var p=d[0],v=d[1],m,h=n,g=0,x=i;typeof f=="string"&&(m=f,h=t.find(n,[m,m]),g=t.convert(0,m),a=t.convert(a,m),x=t.find(i,[m,m]));for(var y=[],w=[],b=[],S=0;S{var{typed:t,DenseMatrix:n}=e;return function(o,a,i,l){var s=o._values,u=o._index,c=o._ptr,d=o._size,f=o._datatype;if(!s)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var p=d[0],v=d[1],m,h=i;typeof f=="string"&&(m=f,a=t.convert(a,m),h=t.find(i,[m,m]));for(var g=[],x=[],y=[],w=0;w{var{typed:t}=e;return function(o,a,i,l){var s=o._data,u=o._size,c=o._datatype,d,f=i;typeof c=="string"&&(d=c,a=t.convert(a,d),f=t.find(i,[d,d]));var p=u.length>0?n(f,0,u,u[0],s,a,l):[];return o.createDenseMatrix({data:p,size:ct(u),datatype:d})};function n(r,o,a,i,l,s,u){var c=[];if(o===a.length-1)for(var d=0;d{var{typed:t,config:n,round:r}=e;return t(Sy,{number:function(a){return kr(a,r(a),n.epsilon)?r(a):Math.ceil(a)},"number, number":function(a,i){if(kr(a,r(a,i),n.epsilon))return r(a,i);var[l,s]="".concat(a,"e").split("e"),u=Math.ceil(Number("".concat(l,"e").concat(Number(s)+i)));return[l,s]="".concat(u,"e").split("e"),Number("".concat(l,"e").concat(Number(s)-i))}})}),GSe=se(Sy,KSe,e=>{var{typed:t,config:n,round:r,matrix:o,equalScalar:a,zeros:i,DenseMatrix:l}=e,s=qn({typed:t,equalScalar:a}),u=zn({typed:t,DenseMatrix:l}),c=Do({typed:t}),d=qSe({typed:t,config:n,round:r});return t("ceil",{number:d.signatures.number,"number,number":d.signatures["number,number"],Complex:function(p){return p.ceil()},"Complex, number":function(p,v){return p.ceil(v)},"Complex, BigNumber":function(p,v){return p.ceil(v.toNumber())},BigNumber:function(p){return Wo(p,r(p),n.epsilon)?r(p):p.ceil()},"BigNumber, BigNumber":function(p,v){return Wo(p,r(p,v),n.epsilon)?r(p,v):p.toDecimalPlaces(v.toNumber(),si.ROUND_CEIL)},Fraction:function(p){return p.ceil()},"Fraction, number":function(p,v){return p.ceil(v)},"Fraction, BigNumber":function(p,v){return p.ceil(v.toNumber())},"Array | Matrix":t.referToSelf(f=>p=>Tt(p,f)),"Array, number | BigNumber":t.referToSelf(f=>(p,v)=>Tt(p,m=>f(m,v))),"SparseMatrix, number | BigNumber":t.referToSelf(f=>(p,v)=>s(p,v,f,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(f=>(p,v)=>c(p,v,f,!1)),"number | Complex | Fraction | BigNumber, Array":t.referToSelf(f=>(p,v)=>c(o(v),p,f,!0).valueOf()),"number | Complex | Fraction | BigNumber, Matrix":t.referToSelf(f=>(p,v)=>a(p,0)?i(v.size(),v.storage()):v.storage()==="dense"?c(v,p,f,!0):u(v,p,f,!0))})}),W4="cube",XSe=["typed"],YSe=se(W4,XSe,e=>{var{typed:t}=e;return t(W4,{number:y7,Complex:function(r){return r.mul(r).mul(r)},BigNumber:function(r){return r.times(r).times(r)},Fraction:function(r){return r.pow(3)},Unit:function(r){return r.pow(3)}})}),U4="exp",ZSe=["typed"],JSe=se(U4,ZSe,e=>{var{typed:t}=e;return t(U4,{number:b7,Complex:function(r){return r.exp()},BigNumber:function(r){return r.exp()}})}),K4="expm1",QSe=["typed","Complex"],eCe=se(K4,QSe,e=>{var{typed:t,Complex:n}=e;return t(K4,{number:x7,Complex:function(o){var a=Math.exp(o.re);return new n(a*Math.cos(o.im)-1,a*Math.sin(o.im))},BigNumber:function(o){return o.exp().minus(1)}})}),Cy="fix",tCe=["typed","Complex","matrix","ceil","floor","equalScalar","zeros","DenseMatrix"],nCe=se(Cy,["typed","ceil","floor"],e=>{var{typed:t,ceil:n,floor:r}=e;return t(Cy,{number:function(a){return a>0?r(a):n(a)},"number, number":function(a,i){return a>0?r(a,i):n(a,i)}})}),rCe=se(Cy,tCe,e=>{var{typed:t,Complex:n,matrix:r,ceil:o,floor:a,equalScalar:i,zeros:l,DenseMatrix:s}=e,u=zn({typed:t,DenseMatrix:s}),c=Do({typed:t}),d=nCe({typed:t,ceil:o,floor:a});return t("fix",{number:d.signatures.number,"number, number | BigNumber":d.signatures["number,number"],Complex:function(p){return new n(p.re>0?Math.floor(p.re):Math.ceil(p.re),p.im>0?Math.floor(p.im):Math.ceil(p.im))},"Complex, number":function(p,v){return new n(p.re>0?a(p.re,v):o(p.re,v),p.im>0?a(p.im,v):o(p.im,v))},"Complex, BigNumber":function(p,v){var m=v.toNumber();return new n(p.re>0?a(p.re,m):o(p.re,m),p.im>0?a(p.im,m):o(p.im,m))},BigNumber:function(p){return p.isNegative()?o(p):a(p)},"BigNumber, number | BigNumber":function(p,v){return p.isNegative()?o(p,v):a(p,v)},Fraction:function(p){return p.s<0?p.ceil():p.floor()},"Fraction, number | BigNumber":function(p,v){return p.s<0?o(p,v):a(p,v)},"Array | Matrix":t.referToSelf(f=>p=>Tt(p,f)),"Array | Matrix, number | BigNumber":t.referToSelf(f=>(p,v)=>Tt(p,m=>f(m,v))),"number | Complex | Fraction | BigNumber, Array":t.referToSelf(f=>(p,v)=>c(r(v),p,f,!0).valueOf()),"number | Complex | Fraction | BigNumber, Matrix":t.referToSelf(f=>(p,v)=>i(p,0)?l(v.size(),v.storage()):v.storage()==="dense"?c(v,p,f,!0):u(v,p,f,!0))})}),$y="floor",oCe=["typed","config","round","matrix","equalScalar","zeros","DenseMatrix"],aCe=se($y,["typed","config","round"],e=>{var{typed:t,config:n,round:r}=e;return t($y,{number:function(a){return kr(a,r(a),n.epsilon)?r(a):Math.floor(a)},"number, number":function(a,i){if(kr(a,r(a,i),n.epsilon))return r(a,i);var[l,s]="".concat(a,"e").split("e"),u=Math.floor(Number("".concat(l,"e").concat(Number(s)+i)));return[l,s]="".concat(u,"e").split("e"),Number("".concat(l,"e").concat(Number(s)-i))}})}),iCe=se($y,oCe,e=>{var{typed:t,config:n,round:r,matrix:o,equalScalar:a,zeros:i,DenseMatrix:l}=e,s=qn({typed:t,equalScalar:a}),u=zn({typed:t,DenseMatrix:l}),c=Do({typed:t}),d=aCe({typed:t,config:n,round:r});return t("floor",{number:d.signatures.number,"number,number":d.signatures["number,number"],Complex:function(p){return p.floor()},"Complex, number":function(p,v){return p.floor(v)},"Complex, BigNumber":function(p,v){return p.floor(v.toNumber())},BigNumber:function(p){return Wo(p,r(p),n.epsilon)?r(p):p.floor()},"BigNumber, BigNumber":function(p,v){return Wo(p,r(p,v),n.epsilon)?r(p,v):p.toDecimalPlaces(v.toNumber(),si.ROUND_FLOOR)},Fraction:function(p){return p.floor()},"Fraction, number":function(p,v){return p.floor(v)},"Fraction, BigNumber":function(p,v){return p.floor(v.toNumber())},"Array | Matrix":t.referToSelf(f=>p=>Tt(p,f)),"Array, number | BigNumber":t.referToSelf(f=>(p,v)=>Tt(p,m=>f(m,v))),"SparseMatrix, number | BigNumber":t.referToSelf(f=>(p,v)=>s(p,v,f,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(f=>(p,v)=>c(p,v,f,!1)),"number | Complex | Fraction | BigNumber, Array":t.referToSelf(f=>(p,v)=>c(o(v),p,f,!0).valueOf()),"number | Complex | Fraction | BigNumber, Matrix":t.referToSelf(f=>(p,v)=>a(p,0)?i(v.size(),v.storage()):v.storage()==="dense"?c(v,p,f,!0):u(v,p,f,!0))})}),lCe="matAlgo01xDSid",sCe=["typed"],vi=se(lCe,sCe,e=>{var{typed:t}=e;return function(r,o,a,i){var l=r._data,s=r._size,u=r._datatype,c=o._values,d=o._index,f=o._ptr,p=o._size,v=o._datatype;if(s.length!==p.length)throw new Dt(s.length,p.length);if(s[0]!==p[0]||s[1]!==p[1])throw new RangeError("Dimension mismatch. Matrix A ("+s+") must match Matrix B ("+p+")");if(!c)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var m=s[0],h=s[1],g=typeof u=="string"&&u===v?u:void 0,x=g?t.find(a,[g,g]):a,y,w,b=[];for(y=0;y{var{typed:t,equalScalar:n}=e;return function(o,a,i){var l=o._values,s=o._index,u=o._ptr,c=o._size,d=o._datatype,f=a._values,p=a._index,v=a._ptr,m=a._size,h=a._datatype;if(c.length!==m.length)throw new Dt(c.length,m.length);if(c[0]!==m[0]||c[1]!==m[1])throw new RangeError("Dimension mismatch. Matrix A ("+c+") must match Matrix B ("+m+")");var g=c[0],x=c[1],y,w=n,b=0,S=i;typeof d=="string"&&d===h&&(y=d,w=t.find(n,[y,y]),b=t.convert(0,y),S=t.find(i,[y,y]));var $=l&&f?[]:void 0,D=[],O=[],A=l&&f?[]:void 0,T=l&&f?[]:void 0,M=[],B=[],F,P,I,N,R;for(P=0;P{var{typed:t,DenseMatrix:n}=e;return function(o,a,i,l){var s=o._values,u=o._index,c=o._ptr,d=o._size,f=o._datatype;if(!s)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var p=d[0],v=d[1],m,h=i;typeof f=="string"&&(m=f,a=t.convert(a,m),h=t.find(i,[m,m]));for(var g=[],x=[],y=[],w=0;w{var{typed:t}=e;return function(o,a,i){var l=o._data,s=o._size,u=o._datatype,c=a._data,d=a._size,f=a._datatype,p=[];if(s.length!==d.length)throw new Dt(s.length,d.length);for(var v=0;v0?n(h,0,p,p[0],l,c):[];return o.createDenseMatrix({data:g,size:p,datatype:m})};function n(r,o,a,i,l,s){var u=[];if(o===a.length-1)for(var c=0;c{var{concat:t}=e;return function(a,i){var l=Math.max(a._size.length,i._size.length);if(a._size.length===i._size.length&&a._size.every((h,g)=>h===i._size[g]))return[a,i];for(var s=n(a._size,l,0),u=n(i._size,l,0),c=[],d=0;d1)throw new Error("shape missmatch: missmatch is found in arg with shape (".concat(a,") not possible to broadcast dimension ").concat(l," with size ").concat(a[l]," to size ").concat(i[l]))}}),bCe="matrixAlgorithmSuite",xCe=["typed","matrix","concat"],Qt=se(bCe,xCe,e=>{var{typed:t,matrix:n,concat:r}=e,o=vCe({typed:t}),a=Do({typed:t}),i=yCe({concat:r});return function(s){var u=s.elop,c=s.SD||s.DS,d;u?(d={"DenseMatrix, DenseMatrix":(m,h)=>o(...i(m,h),u),"Array, Array":(m,h)=>o(...i(n(m),n(h)),u).valueOf(),"Array, DenseMatrix":(m,h)=>o(...i(n(m),h),u),"DenseMatrix, Array":(m,h)=>o(...i(m,n(h)),u)},s.SS&&(d["SparseMatrix, SparseMatrix"]=(m,h)=>s.SS(...i(m,h),u,!1)),s.DS&&(d["DenseMatrix, SparseMatrix"]=(m,h)=>s.DS(...i(m,h),u,!1),d["Array, SparseMatrix"]=(m,h)=>s.DS(...i(n(m),h),u,!1)),c&&(d["SparseMatrix, DenseMatrix"]=(m,h)=>c(...i(h,m),u,!0),d["SparseMatrix, Array"]=(m,h)=>c(...i(n(h),m),u,!0))):(d={"DenseMatrix, DenseMatrix":t.referToSelf(m=>(h,g)=>o(...i(h,g),m)),"Array, Array":t.referToSelf(m=>(h,g)=>o(...i(n(h),n(g)),m).valueOf()),"Array, DenseMatrix":t.referToSelf(m=>(h,g)=>o(...i(n(h),g),m)),"DenseMatrix, Array":t.referToSelf(m=>(h,g)=>o(...i(h,n(g)),m))},s.SS&&(d["SparseMatrix, SparseMatrix"]=t.referToSelf(m=>(h,g)=>s.SS(...i(h,g),m,!1))),s.DS&&(d["DenseMatrix, SparseMatrix"]=t.referToSelf(m=>(h,g)=>s.DS(...i(h,g),m,!1)),d["Array, SparseMatrix"]=t.referToSelf(m=>(h,g)=>s.DS(...i(n(h),g),m,!1))),c&&(d["SparseMatrix, DenseMatrix"]=t.referToSelf(m=>(h,g)=>c(...i(g,h),m,!0)),d["SparseMatrix, Array"]=t.referToSelf(m=>(h,g)=>c(...i(n(g),h),m,!0))));var f=s.scalar||"any",p=s.Ds||s.Ss;p&&(u?(d["DenseMatrix,"+f]=(m,h)=>a(m,h,u,!1),d[f+", DenseMatrix"]=(m,h)=>a(h,m,u,!0),d["Array,"+f]=(m,h)=>a(n(m),h,u,!1).valueOf(),d[f+", Array"]=(m,h)=>a(n(h),m,u,!0).valueOf()):(d["DenseMatrix,"+f]=t.referToSelf(m=>(h,g)=>a(h,g,m,!1)),d[f+", DenseMatrix"]=t.referToSelf(m=>(h,g)=>a(g,h,m,!0)),d["Array,"+f]=t.referToSelf(m=>(h,g)=>a(n(h),g,m,!1).valueOf()),d[f+", Array"]=t.referToSelf(m=>(h,g)=>a(n(g),h,m,!0).valueOf())));var v=s.sS!==void 0?s.sS:s.Ss;return u?(s.Ss&&(d["SparseMatrix,"+f]=(m,h)=>s.Ss(m,h,u,!1)),v&&(d[f+", SparseMatrix"]=(m,h)=>v(h,m,u,!0))):(s.Ss&&(d["SparseMatrix,"+f]=t.referToSelf(m=>(h,g)=>s.Ss(h,g,m,!1))),v&&(d[f+", SparseMatrix"]=t.referToSelf(m=>(h,g)=>v(g,h,m,!0)))),u&&u.signatures&&z_(d,u.signatures),d}});function Na(e,t,n,r){if(!(this instanceof Na))throw new SyntaxError("Constructor must be called with the new operator");this.fn=e,this.count=t,this.min=n,this.max=r,this.message="Wrong number of arguments in function "+e+" ("+t+" provided, "+n+(r!=null?"-"+r:"")+" expected)",this.stack=new Error().stack}Na.prototype=new Error;Na.prototype.constructor=Error;Na.prototype.name="ArgumentsError";Na.prototype.isArgumentsError=!0;var q4="gcd",wCe=["typed","matrix","equalScalar","BigNumber","DenseMatrix","concat"],gg="number | BigNumber | Fraction | Matrix | Array",SCe="".concat(gg,", ").concat(gg,", ...").concat(gg);function G4(e){return!e.some(t=>Array.isArray(t))}var CCe=se(q4,wCe,e=>{var{typed:t,matrix:n,equalScalar:r,BigNumber:o,DenseMatrix:a,concat:i}=e,l=vi({typed:t}),s=Ww({typed:t,equalScalar:r}),u=dl({typed:t,DenseMatrix:a}),c=Qt({typed:t,matrix:n,concat:i});return t(q4,{"number, number":w7,"BigNumber, BigNumber":d,"Fraction, Fraction":(f,p)=>f.gcd(p)},c({SS:s,DS:l,Ss:u}),{[SCe]:t.referToSelf(f=>(p,v,m)=>{for(var h=f(p,v),g=0;gp=>{if(p.length===1&&Array.isArray(p[0])&&G4(p[0]))return f(...p[0]);if(G4(p))return f(...p);throw new Na("gcd() supports only 1d matrices!")}),Matrix:t.referToSelf(f=>p=>f(p.toArray()))});function d(f,p){if(!f.isInt()||!p.isInt())throw new Error("Parameters in function gcd must be integer numbers");for(var v=new o(0);!p.isZero();){var m=f.mod(p);f=p,p=m}return f.lt(v)?f.neg():f}}),$Ce="matAlgo02xDS0",ECe=["typed","equalScalar"],Ao=se($Ce,ECe,e=>{var{typed:t,equalScalar:n}=e;return function(o,a,i,l){var s=o._data,u=o._size,c=o._datatype,d=a._values,f=a._index,p=a._ptr,v=a._size,m=a._datatype;if(u.length!==v.length)throw new Dt(u.length,v.length);if(u[0]!==v[0]||u[1]!==v[1])throw new RangeError("Dimension mismatch. Matrix A ("+u+") must match Matrix B ("+v+")");if(!d)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var h=u[0],g=u[1],x,y=n,w=0,b=i;typeof c=="string"&&c===m&&(x=c,y=t.find(n,[x,x]),w=t.convert(0,x),b=t.find(i,[x,x]));for(var S=[],$=[],D=[],O=0;O{var{typed:t,equalScalar:n}=e;return function(o,a,i){var l=o._values,s=o._size,u=o._datatype,c=a._values,d=a._size,f=a._datatype;if(s.length!==d.length)throw new Dt(s.length,d.length);if(s[0]!==d[0]||s[1]!==d[1])throw new RangeError("Dimension mismatch. Matrix A ("+s+") must match Matrix B ("+d+")");var p=s[0],v=s[1],m,h=n,g=0,x=i;typeof u=="string"&&u===f&&(m=u,h=t.find(n,[m,m]),g=t.convert(0,m),x=t.find(i,[m,m]));for(var y=l&&c?[]:void 0,w=[],b=[],S=y?[]:void 0,$=[],D=[],O=0;O{var{typed:t,matrix:n,equalScalar:r,concat:o}=e,a=Ao({typed:t,equalScalar:r}),i=Fv({typed:t,equalScalar:r}),l=qn({typed:t,equalScalar:r}),s=Qt({typed:t,matrix:n,concat:o}),u="number | BigNumber | Fraction | Matrix | Array",c={};return c["".concat(u,", ").concat(u,", ...").concat(u)]=t.referToSelf(f=>(p,v,m)=>{for(var h=f(p,v),g=0;gf.lcm(p)},s({SS:i,DS:a,Ss:l}),c);function d(f,p){if(!f.isInt()||!p.isInt())throw new Error("Parameters in function lcm must be integer numbers");if(f.isZero())return f;if(p.isZero())return p;for(var v=f.times(p);!p.isZero();){var m=p;p=f.mod(m),f=m}return v.div(f).abs()}}),Y4="log10",MCe=["typed","config","Complex"],NCe=se(Y4,MCe,e=>{var{typed:t,config:n,Complex:r}=e;return t(Y4,{number:function(a){return a>=0||n.predictable?C7(a):new r(a,0).log().div(Math.LN10)},Complex:function(a){return new r(a).log().div(Math.LN10)},BigNumber:function(a){return!a.isNegative()||n.predictable?a.log():new r(a.toNumber(),0).log().div(Math.LN10)},"Array | Matrix":t.referToSelf(o=>a=>Tt(a,o))})}),Z4="log2",PCe=["typed","config","Complex"],ICe=se(Z4,PCe,e=>{var{typed:t,config:n,Complex:r}=e;return t(Z4,{number:function(i){return i>=0||n.predictable?$7(i):o(new r(i,0))},Complex:o,BigNumber:function(i){return!i.isNegative()||n.predictable?i.log(2):o(new r(i.toNumber(),0))},"Array | Matrix":t.referToSelf(a=>i=>Tt(i,a))});function o(a){var i=Math.sqrt(a.re*a.re+a.im*a.im);return new r(Math.log2?Math.log2(i):Math.log(i)/Math.LN2,Math.atan2(a.im,a.re)/Math.LN2)}}),_Ce="matAlgo03xDSf",BCe=["typed"],fr=se(_Ce,BCe,e=>{var{typed:t}=e;return function(r,o,a,i){var l=r._data,s=r._size,u=r._datatype,c=o._values,d=o._index,f=o._ptr,p=o._size,v=o._datatype;if(s.length!==p.length)throw new Dt(s.length,p.length);if(s[0]!==p[0]||s[1]!==p[1])throw new RangeError("Dimension mismatch. Matrix A ("+s+") must match Matrix B ("+p+")");if(!c)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var m=s[0],h=s[1],g,x=0,y=a;typeof u=="string"&&u===v&&(g=u,x=t.convert(0,g),y=t.find(a,[g,g]));for(var w=[],b=0;b{var{typed:t,equalScalar:n}=e;return function(o,a,i){var l=o._values,s=o._index,u=o._ptr,c=o._size,d=o._datatype,f=a._values,p=a._index,v=a._ptr,m=a._size,h=a._datatype;if(c.length!==m.length)throw new Dt(c.length,m.length);if(c[0]!==m[0]||c[1]!==m[1])throw new RangeError("Dimension mismatch. Matrix A ("+c+") must match Matrix B ("+m+")");var g=c[0],x=c[1],y,w=n,b=0,S=i;typeof d=="string"&&d===h&&(y=d,w=t.find(n,[y,y]),b=t.convert(0,y),S=t.find(i,[y,y]));var $=l&&f?[]:void 0,D=[],O=[],A=$?[]:void 0,T=$?[]:void 0,M=[],B=[],F,P,I,N;for(P=0;P{var{typed:t,matrix:n,equalScalar:r,DenseMatrix:o,concat:a}=e,i=Ao({typed:t,equalScalar:r}),l=fr({typed:t}),s=Rv({typed:t,equalScalar:r}),u=qn({typed:t,equalScalar:r}),c=zn({typed:t,DenseMatrix:o}),d=Qt({typed:t,matrix:n,concat:a});return t(J4,{"number, number":E7,"BigNumber, BigNumber":function(p,v){if(v.isNeg())throw new Error("Cannot calculate mod for a negative divisor");return v.isZero()?p:p.mod(v)},"Fraction, Fraction":function(p,v){if(v.compare(0)<0)throw new Error("Cannot calculate mod for a negative divisor");return p.compare(0)>=0?p.mod(v):p.mod(v).add(v).mod(v)}},d({SS:s,DS:l,SD:i,Ss:u,sS:c}))}),kCe="multiplyScalar",HCe=["typed"],jCe=se(kCe,HCe,e=>{var{typed:t}=e;return t("multiplyScalar",{"number, number":v7,"Complex, Complex":function(r,o){return r.mul(o)},"BigNumber, BigNumber":function(r,o){return r.times(o)},"Fraction, Fraction":function(r,o){return r.mul(o)},"number | Fraction | BigNumber | Complex, Unit":(n,r)=>r.multiply(n),"Unit, number | Fraction | BigNumber | Complex | Unit":(n,r)=>n.multiply(r)})}),Q4="multiply",VCe=["typed","matrix","addScalar","multiplyScalar","equalScalar","dot"],WCe=se(Q4,VCe,e=>{var{typed:t,matrix:n,addScalar:r,multiplyScalar:o,equalScalar:a,dot:i}=e,l=qn({typed:t,equalScalar:a}),s=Do({typed:t});function u(b,S){switch(b.length){case 1:switch(S.length){case 1:if(b[0]!==S[0])throw new RangeError("Dimension mismatch in multiplication. Vectors must have the same length");break;case 2:if(b[0]!==S[0])throw new RangeError("Dimension mismatch in multiplication. Vector length ("+b[0]+") must match Matrix rows ("+S[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+S.length+" dimensions)")}break;case 2:switch(S.length){case 1:if(b[1]!==S[0])throw new RangeError("Dimension mismatch in multiplication. Matrix columns ("+b[1]+") must match Vector length ("+S[0]+")");break;case 2:if(b[1]!==S[0])throw new RangeError("Dimension mismatch in multiplication. Matrix A columns ("+b[1]+") must match Matrix B rows ("+S[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+S.length+" dimensions)")}break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix A has "+b.length+" dimensions)")}}function c(b,S,$){if($===0)throw new Error("Cannot multiply two empty vectors");return i(b,S)}function d(b,S){if(S.storage()!=="dense")throw new Error("Support for SparseMatrix not implemented");return f(b,S)}function f(b,S){var $=b._data,D=b._size,O=b._datatype,A=S._data,T=S._size,M=S._datatype,B=D[0],F=T[1],P,I=r,N=o;O&&M&&O===M&&typeof O=="string"&&(P=O,I=t.find(r,[P,P]),N=t.find(o,[P,P]));for(var R=[],_=0;_X)for(var ee=0,G=0;G(S,$)=>{u(Mt(S),Mt($));var D=b(n(S),n($));return mt(D)?D.valueOf():D}),"Matrix, Matrix":function(S,$){var D=S.size(),O=$.size();return u(D,O),D.length===1?O.length===1?c(S,$,D[0]):d(S,$):O.length===1?p(S,$):v(S,$)},"Matrix, Array":t.referTo("Matrix,Matrix",b=>(S,$)=>b(S,n($))),"Array, Matrix":t.referToSelf(b=>(S,$)=>b(n(S,$.storage()),$)),"SparseMatrix, any":function(S,$){return l(S,$,o,!1)},"DenseMatrix, any":function(S,$){return s(S,$,o,!1)},"any, SparseMatrix":function(S,$){return l($,S,o,!0)},"any, DenseMatrix":function(S,$){return s($,S,o,!0)},"Array, any":function(S,$){return s(n(S),$,o,!1).valueOf()},"any, Array":function(S,$){return s(n($),S,o,!0).valueOf()},"any, any":o,"any, any, ...any":t.referToSelf(b=>(S,$,D)=>{for(var O=b(S,$),A=0;A{var{typed:t,matrix:n,equalScalar:r,BigNumber:o,concat:a}=e,i=vi({typed:t}),l=Ao({typed:t,equalScalar:r}),s=Fv({typed:t,equalScalar:r}),u=qn({typed:t,equalScalar:r}),c=Qt({typed:t,matrix:n,concat:a});function d(){throw new Error("Complex number not supported in function nthRoot. Use nthRoots instead.")}return t(eD,{number:w4,"number, number":w4,BigNumber:p=>f(p,new o(2)),"BigNumber, BigNumber":f,Complex:d,"Complex, number":d,Array:t.referTo("DenseMatrix,number",p=>v=>p(n(v),2).valueOf()),DenseMatrix:t.referTo("DenseMatrix,number",p=>v=>p(v,2)),SparseMatrix:t.referTo("SparseMatrix,number",p=>v=>p(v,2)),"SparseMatrix, SparseMatrix":t.referToSelf(p=>(v,m)=>{if(m.density()===1)return s(v,m,p);throw new Error("Root must be non-zero")}),"DenseMatrix, SparseMatrix":t.referToSelf(p=>(v,m)=>{if(m.density()===1)return i(v,m,p,!1);throw new Error("Root must be non-zero")}),"Array, SparseMatrix":t.referTo("DenseMatrix,SparseMatrix",p=>(v,m)=>p(n(v),m)),"number | BigNumber, SparseMatrix":t.referToSelf(p=>(v,m)=>{if(m.density()===1)return u(m,v,p,!0);throw new Error("Root must be non-zero")})},c({scalar:"number | BigNumber",SD:l,Ss:u,sS:!1}));function f(p,v){var m=o.precision,h=o.clone({precision:m+2}),g=new o(0),x=new h(1),y=v.isNegative();if(y&&(v=v.neg()),v.isZero())throw new Error("Root must be non-zero");if(p.isNegative()&&!v.abs().mod(2).equals(1))throw new Error("Root must be odd when a is negative.");if(p.isZero())return y?new h(1/0):0;if(!p.isFinite())return y?g:p;var w=p.abs().pow(x.div(v));return w=p.isNeg()?w.neg():w,new o((y?x.div(w):w).toPrecision(m))}}),tD="sign",qCe=["typed","BigNumber","Fraction","complex"],GCe=se(tD,qCe,e=>{var{typed:t,BigNumber:n,complex:r,Fraction:o}=e;return t(tD,{number:wy,Complex:function(i){return i.im===0?r(wy(i.re)):i.sign()},BigNumber:function(i){return new n(i.cmp(0))},Fraction:function(i){return new o(i.s,1)},"Array | Matrix":t.referToSelf(a=>i=>Tt(i,a)),Unit:t.referToSelf(a=>i=>{if(!i._isDerived()&&i.units[0].unit.offset!==0)throw new TypeError("sign is ambiguous for units with offset");return t.find(a,i.valueType())(i.value)})})}),XCe="sqrt",YCe=["config","typed","Complex"],ZCe=se(XCe,YCe,e=>{var{config:t,typed:n,Complex:r}=e;return n("sqrt",{number:o,Complex:function(i){return i.sqrt()},BigNumber:function(i){return!i.isNegative()||t.predictable?i.sqrt():o(i.toNumber())},Unit:function(i){return i.pow(.5)}});function o(a){return isNaN(a)?NaN:a>=0||t.predictable?Math.sqrt(a):new r(a,0).sqrt()}}),nD="square",JCe=["typed"],QCe=se(nD,JCe,e=>{var{typed:t}=e;return t(nD,{number:D7,Complex:function(r){return r.mul(r)},BigNumber:function(r){return r.times(r)},Fraction:function(r){return r.mul(r)},Unit:function(r){return r.pow(2)}})}),rD="subtract",e$e=["typed","matrix","equalScalar","addScalar","unaryMinus","DenseMatrix","concat"],t$e=se(rD,e$e,e=>{var{typed:t,matrix:n,equalScalar:r,addScalar:o,unaryMinus:a,DenseMatrix:i,concat:l}=e,s=vi({typed:t}),u=fr({typed:t}),c=Rv({typed:t,equalScalar:r}),d=dl({typed:t,DenseMatrix:i}),f=zn({typed:t,DenseMatrix:i}),p=Qt({typed:t,matrix:n,concat:l});return t(rD,{"number, number":(v,m)=>v-m,"Complex, Complex":(v,m)=>v.sub(m),"BigNumber, BigNumber":(v,m)=>v.minus(m),"Fraction, Fraction":(v,m)=>v.sub(m),"Unit, Unit":t.referToSelf(v=>(m,h)=>{if(m.value===null)throw new Error("Parameter x contains a unit with undefined value");if(h.value===null)throw new Error("Parameter y contains a unit with undefined value");if(!m.equalBase(h))throw new Error("Units do not match");var g=m.clone();return g.value=t.find(v,[g.valueType(),h.valueType()])(g.value,h.value),g.fixPrefix=!1,g})},p({SS:c,DS:s,SD:u,Ss:f,sS:d}))}),oD="xgcd",n$e=["typed","config","matrix","BigNumber"],r$e=se(oD,n$e,e=>{var{typed:t,config:n,matrix:r,BigNumber:o}=e;return t(oD,{"number, number":function(l,s){var u=A7(l,s);return n.matrix==="Array"?u:r(u)},"BigNumber, BigNumber":a});function a(i,l){var s,u,c,d=new o(0),f=new o(1),p=d,v=f,m=f,h=d;if(!i.isInt()||!l.isInt())throw new Error("Parameters in function xgcd must be integer numbers");for(;!l.isZero();)u=i.div(l).floor(),c=i.mod(l),s=p,p=v.minus(u.times(p)),v=s,s=m,m=h.minus(u.times(m)),h=s,i=l,l=c;var g;return i.lt(d)?g=[i.neg(),v.neg(),h.neg()]:g=[i,i.isZero()?0:v,h],n.matrix==="Array"?g:r(g)}}),aD="invmod",o$e=["typed","config","BigNumber","xgcd","equal","smaller","mod","add","isInteger"],a$e=se(aD,o$e,e=>{var{typed:t,config:n,BigNumber:r,xgcd:o,equal:a,smaller:i,mod:l,add:s,isInteger:u}=e;return t(aD,{"number, number":c,"BigNumber, BigNumber":c});function c(d,f){if(!u(d)||!u(f))throw new Error("Parameters in function invmod must be integer numbers");if(d=l(d,f),a(f,0))throw new Error("Divisor must be non zero");var p=o(d,f);p=p.valueOf();var[v,m]=p;return a(v,r(1))?(m=l(m,f),i(m,r(0))&&(m=s(m,f)),m):NaN}}),i$e="matAlgo09xS0Sf",l$e=["typed","equalScalar"],cB=se(i$e,l$e,e=>{var{typed:t,equalScalar:n}=e;return function(o,a,i){var l=o._values,s=o._index,u=o._ptr,c=o._size,d=o._datatype,f=a._values,p=a._index,v=a._ptr,m=a._size,h=a._datatype;if(c.length!==m.length)throw new Dt(c.length,m.length);if(c[0]!==m[0]||c[1]!==m[1])throw new RangeError("Dimension mismatch. Matrix A ("+c+") must match Matrix B ("+m+")");var g=c[0],x=c[1],y,w=n,b=0,S=i;typeof d=="string"&&d===h&&(y=d,w=t.find(n,[y,y]),b=t.convert(0,y),S=t.find(i,[y,y]));var $=l&&f?[]:void 0,D=[],O=[],A=$?[]:void 0,T=[],M,B,F,P,I;for(B=0;B{var{typed:t,matrix:n,equalScalar:r,multiplyScalar:o,concat:a}=e,i=Ao({typed:t,equalScalar:r}),l=cB({typed:t,equalScalar:r}),s=qn({typed:t,equalScalar:r}),u=Qt({typed:t,matrix:n,concat:a});return t(iD,u({elop:o,SS:l,DS:i,Ss:s}))});function c$e(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function bitAnd");var n=e.constructor;if(e.isNaN()||t.isNaN())return new n(NaN);if(e.isZero()||t.eq(-1)||e.eq(t))return e;if(t.isZero()||e.eq(-1))return t;if(!e.isFinite()||!t.isFinite()){if(!e.isFinite()&&!t.isFinite())return e.isNegative()===t.isNegative()?e:new n(0);if(!e.isFinite())return t.isNegative()?e:e.isNegative()?new n(0):t;if(!t.isFinite())return e.isNegative()?t:t.isNegative()?new n(0):e}return Uw(e,t,function(r,o){return r&o})}function lc(e){if(e.isFinite()&&!e.isInteger())throw new Error("Integer expected in function bitNot");var t=e.constructor,n=t.precision;t.config({precision:1e9});var r=e.plus(new t(1));return r.s=-r.s||null,t.config({precision:n}),r}function d$e(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function bitOr");var n=e.constructor;if(e.isNaN()||t.isNaN())return new n(NaN);var r=new n(-1);return e.isZero()||t.eq(r)||e.eq(t)?t:t.isZero()||e.eq(r)?e:!e.isFinite()||!t.isFinite()?!e.isFinite()&&!e.isNegative()&&t.isNegative()||e.isNegative()&&!t.isNegative()&&!t.isFinite()?r:e.isNegative()&&t.isNegative()?e.isFinite()?e:t:e.isFinite()?t:e:Uw(e,t,function(o,a){return o|a})}function Uw(e,t,n){var r=e.constructor,o,a,i=+(e.s<0),l=+(t.s<0);if(i){o=Cd(lc(e));for(var s=0;s0;)n(c[--p],d[--v])===m&&(h=h.plus(g)),g=g.times(x);for(;v>0;)n(f,d[--v])===m&&(h=h.plus(g)),g=g.times(x);return r.config({precision:y}),m===0&&(h.s=-h.s),h}function Cd(e){for(var t=e.d,n=t[0]+"",r=1;r0)if(++l>u)for(l-=u;l--;)s+="0";else l1&&((c[p+1]===null||c[p+1]===void 0)&&(c[p+1]=0),c[p+1]+=c[p]>>1,c[p]&=1)}return c.reverse()}function f$e(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function bitXor");var n=e.constructor;if(e.isNaN()||t.isNaN())return new n(NaN);if(e.isZero())return t;if(t.isZero())return e;if(e.eq(t))return new n(0);var r=new n(-1);return e.eq(r)?lc(t):t.eq(r)?lc(e):!e.isFinite()||!t.isFinite()?!e.isFinite()&&!t.isFinite()?r:new n(e.isNegative()===t.isNegative()?1/0:-1/0):Uw(e,t,function(o,a){return o^a})}function p$e(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function leftShift");var n=e.constructor;return e.isNaN()||t.isNaN()||t.isNegative()&&!t.isZero()?new n(NaN):e.isZero()||t.isZero()?e:!e.isFinite()&&!t.isFinite()?new n(NaN):t.lt(55)?e.times(Math.pow(2,t.toNumber())+""):e.times(new n(2).pow(t))}function m$e(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function rightArithShift");var n=e.constructor;return e.isNaN()||t.isNaN()||t.isNegative()&&!t.isZero()?new n(NaN):e.isZero()||t.isZero()?e:t.isFinite()?t.lt(55)?e.div(Math.pow(2,t.toNumber())+"").floor():e.div(new n(2).pow(t)).floor():e.isNegative()?new n(-1):e.isFinite()?new n(0):new n(NaN)}var lD="bitAnd",v$e=["typed","matrix","equalScalar","concat"],h$e=se(lD,v$e,e=>{var{typed:t,matrix:n,equalScalar:r,concat:o}=e,a=Ao({typed:t,equalScalar:r}),i=Fv({typed:t,equalScalar:r}),l=qn({typed:t,equalScalar:r}),s=Qt({typed:t,matrix:n,concat:o});return t(lD,{"number, number":T7,"BigNumber, BigNumber":c$e},s({SS:i,DS:a,Ss:l}))}),sD="bitNot",g$e=["typed"],y$e=se(sD,g$e,e=>{var{typed:t}=e;return t(sD,{number:M7,BigNumber:lc,"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),uD="bitOr",b$e=["typed","matrix","equalScalar","DenseMatrix","concat"],x$e=se(uD,b$e,e=>{var{typed:t,matrix:n,equalScalar:r,DenseMatrix:o,concat:a}=e,i=vi({typed:t}),l=Ww({typed:t,equalScalar:r}),s=dl({typed:t,DenseMatrix:o}),u=Qt({typed:t,matrix:n,concat:a});return t(uD,{"number, number":N7,"BigNumber, BigNumber":d$e},u({SS:l,DS:i,Ss:s}))}),w$e="matAlgo07xSSf",S$e=["typed","DenseMatrix"],qo=se(w$e,S$e,e=>{var{typed:t,DenseMatrix:n}=e;return function(a,i,l){var s=a._size,u=a._datatype,c=i._size,d=i._datatype;if(s.length!==c.length)throw new Dt(s.length,c.length);if(s[0]!==c[0]||s[1]!==c[1])throw new RangeError("Dimension mismatch. Matrix A ("+s+") must match Matrix B ("+c+")");var f=s[0],p=s[1],v,m=0,h=l;typeof u=="string"&&u===d&&(v=u,m=t.convert(0,v),h=t.find(l,[v,v]));var g,x,y=[];for(g=0;g{var{typed:t,matrix:n,DenseMatrix:r,concat:o}=e,a=fr({typed:t}),i=qo({typed:t,DenseMatrix:r}),l=zn({typed:t,DenseMatrix:r}),s=Qt({typed:t,matrix:n,concat:o});return t(cD,{"number, number":P7,"BigNumber, BigNumber":f$e},s({SS:i,DS:a,Ss:l}))}),dD="arg",E$e=["typed"],D$e=se(dD,E$e,e=>{var{typed:t}=e;return t(dD,{number:function(r){return Math.atan2(0,r)},BigNumber:function(r){return r.constructor.atan2(0,r)},Complex:function(r){return r.arg()},"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),fD="conj",A$e=["typed"],O$e=se(fD,A$e,e=>{var{typed:t}=e;return t(fD,{"number | BigNumber | Fraction":n=>n,Complex:n=>n.conjugate(),"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),pD="im",T$e=["typed"],M$e=se(pD,T$e,e=>{var{typed:t}=e;return t(pD,{number:()=>0,"BigNumber | Fraction":n=>n.mul(0),Complex:n=>n.im,"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),mD="re",N$e=["typed"],P$e=se(mD,N$e,e=>{var{typed:t}=e;return t(mD,{"number | BigNumber | Fraction":n=>n,Complex:n=>n.re,"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),vD="not",I$e=["typed"],_$e=se(vD,I$e,e=>{var{typed:t}=e;return t(vD,{"null | undefined":()=>!0,number:R7,Complex:function(r){return r.re===0&&r.im===0},BigNumber:function(r){return r.isZero()||r.isNaN()},Unit:t.referToSelf(n=>r=>t.find(n,r.valueType())(r.value)),"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),hD="or",B$e=["typed","matrix","equalScalar","DenseMatrix","concat"],F$e=se(hD,B$e,e=>{var{typed:t,matrix:n,equalScalar:r,DenseMatrix:o,concat:a}=e,i=fr({typed:t}),l=Rv({typed:t,equalScalar:r}),s=zn({typed:t,DenseMatrix:o}),u=Qt({typed:t,matrix:n,concat:a});return t(hD,{"number, number":z7,"Complex, Complex":function(d,f){return d.re!==0||d.im!==0||f.re!==0||f.im!==0},"BigNumber, BigNumber":function(d,f){return!d.isZero()&&!d.isNaN()||!f.isZero()&&!f.isNaN()},"Unit, Unit":t.referToSelf(c=>(d,f)=>c(d.value||0,f.value||0))},u({SS:l,DS:i,Ss:s}))}),gD="xor",R$e=["typed","matrix","DenseMatrix","concat"],z$e=se(gD,R$e,e=>{var{typed:t,matrix:n,DenseMatrix:r,concat:o}=e,a=fr({typed:t}),i=qo({typed:t,DenseMatrix:r}),l=zn({typed:t,DenseMatrix:r}),s=Qt({typed:t,matrix:n,concat:o});return t(gD,{"number, number":L7,"Complex, Complex":function(c,d){return(c.re!==0||c.im!==0)!=(d.re!==0||d.im!==0)},"BigNumber, BigNumber":function(c,d){return(!c.isZero()&&!c.isNaN())!=(!d.isZero()&&!d.isNaN())},"Unit, Unit":t.referToSelf(u=>(c,d)=>u(c.value||0,d.value||0))},s({SS:i,DS:a,Ss:l}))}),yD="concat",L$e=["typed","matrix","isInteger"],dB=se(yD,L$e,e=>{var{typed:t,matrix:n,isInteger:r}=e;return t(yD,{"...Array | Matrix | number | BigNumber":function(a){var i,l=a.length,s=-1,u,c=!1,d=[];for(i=0;i0&&s>u)throw new oo(s,u+1)}else{var p=ct(f).valueOf(),v=Mt(p);if(d[i]=p,u=s,s=v.length-1,i>0&&s!==u)throw new Dt(u+1,s+1)}}if(d.length===0)throw new SyntaxError("At least one matrix expected");for(var m=d.shift();d.length;)m=fB(m,d.shift(),s,0);return c?n(m):m},"...string":function(a){return a.join("")}})});function fB(e,t,n,r){if(r{var{typed:t,Index:n,matrix:r,range:o}=e;return t(bD,{"Matrix, number":a,"Array, number":function(l,s){return a(r(ct(l)),s).valueOf()}});function a(i,l){if(i.size().length!==2)throw new Error("Only two dimensional matrix is supported");Xt(l,i.size()[1]);var s=o(0,i.size()[0]),u=new n(s,l),c=i.subset(u);return mt(c)?c:r([[c]])}}),xD="count",H$e=["typed","size","prod"],j$e=se(xD,H$e,e=>{var{typed:t,size:n,prod:r}=e;return t(xD,{string:function(a){return a.length},"Matrix | Array":function(a){return r(n(a))}})}),wD="cross",V$e=["typed","matrix","subtract","multiply"],W$e=se(wD,V$e,e=>{var{typed:t,matrix:n,subtract:r,multiply:o}=e;return t(wD,{"Matrix, Matrix":function(l,s){return n(a(l.toArray(),s.toArray()))},"Matrix, Array":function(l,s){return n(a(l.toArray(),s))},"Array, Matrix":function(l,s){return n(a(l,s.toArray()))},"Array, Array":a});function a(i,l){var s=Math.max(Mt(i).length,Mt(l).length);i=Ip(i),l=Ip(l);var u=Mt(i),c=Mt(l);if(u.length!==1||c.length!==1||u[0]!==3||c[0]!==3)throw new RangeError("Vectors with length 3 expected (Size A = ["+u.join(", ")+"], B = ["+c.join(", ")+"])");var d=[r(o(i[1],l[2]),o(i[2],l[1])),r(o(i[2],l[0]),o(i[0],l[2])),r(o(i[0],l[1]),o(i[1],l[0]))];return s>1?[d]:d}}),SD="diag",U$e=["typed","matrix","DenseMatrix","SparseMatrix"],K$e=se(SD,U$e,e=>{var{typed:t,matrix:n,DenseMatrix:r,SparseMatrix:o}=e;return t(SD,{Array:function(u){return a(u,0,Mt(u),null)},"Array, number":function(u,c){return a(u,c,Mt(u),null)},"Array, BigNumber":function(u,c){return a(u,c.toNumber(),Mt(u),null)},"Array, string":function(u,c){return a(u,0,Mt(u),c)},"Array, number, string":function(u,c,d){return a(u,c,Mt(u),d)},"Array, BigNumber, string":function(u,c,d){return a(u,c.toNumber(),Mt(u),d)},Matrix:function(u){return a(u,0,u.size(),u.storage())},"Matrix, number":function(u,c){return a(u,c,u.size(),u.storage())},"Matrix, BigNumber":function(u,c){return a(u,c.toNumber(),u.size(),u.storage())},"Matrix, string":function(u,c){return a(u,0,u.size(),c)},"Matrix, number, string":function(u,c,d){return a(u,c,u.size(),d)},"Matrix, BigNumber, string":function(u,c,d){return a(u,c.toNumber(),u.size(),d)}});function a(s,u,c,d){if(!ot(u))throw new TypeError("Second parameter in function diag must be an integer");var f=u>0?u:0,p=u<0?-u:0;switch(c.length){case 1:return i(s,u,d,c[0],p,f);case 2:return l(s,u,d,c,p,f)}throw new RangeError("Matrix for function diag must be 2 dimensional")}function i(s,u,c,d,f,p){var v=[d+f,d+p];if(c&&c!=="sparse"&&c!=="dense")throw new TypeError("Unknown matrix type ".concat(c,'"'));var m=c==="sparse"?o.diagonal(v,s,u):r.diagonal(v,s,u);return c!==null?m:m.valueOf()}function l(s,u,c,d,f,p){if(mt(s)){var v=s.diagonal(u);return c!==null?c!==v.storage()?n(v,c):v:v.valueOf()}for(var m=Math.min(d[0]-f,d[1]-p),h=[],g=0;g{var{typed:t}=e;return t("filter",{"Array, function":CD,"Matrix, function":function(r,o){return r.create(CD(r.toArray(),o))},"Array, RegExp":_p,"Matrix, RegExp":function(r,o){return r.create(_p(r.toArray(),o))}})});function CD(e,t){var n=mi(t);return Z_(e,function(r,o,a){return n===1?t(r):n===2?t(r,[o]):t(r,[o],a)})}var $D="flatten",Y$e=["typed","matrix"],Z$e=se($D,Y$e,e=>{var{typed:t,matrix:n}=e;return t($D,{Array:function(o){return Ht(o)},Matrix:function(o){var a=Ht(o.toArray());return n(a)}})}),ED="forEach",J$e=["typed"],Q$e=se(ED,J$e,e=>{var{typed:t}=e;return t(ED,{"Array, function":e2e,"Matrix, function":function(r,o){r.forEach(o)}})});function e2e(e,t){var n=mi(t),r=function o(a,i){Array.isArray(a)?Mv(a,function(l,s){o(l,i.concat(s))}):n===1?t(a):n===2?t(a,i):t(a,i,e)};r(e,[])}var DD="getMatrixDataType",t2e=["typed"],n2e=se(DD,t2e,e=>{var{typed:t}=e;return t(DD,{Array:function(r){return ac(r,an)},Matrix:function(r){return r.getDataType()}})}),AD="identity",r2e=["typed","config","matrix","BigNumber","DenseMatrix","SparseMatrix"],o2e=se(AD,r2e,e=>{var{typed:t,config:n,matrix:r,BigNumber:o,DenseMatrix:a,SparseMatrix:i}=e;return t(AD,{"":function(){return n.matrix==="Matrix"?r([]):[]},string:function(c){return r(c)},"number | BigNumber":function(c){return s(c,c,n.matrix==="Matrix"?"dense":void 0)},"number | BigNumber, string":function(c,d){return s(c,c,d)},"number | BigNumber, number | BigNumber":function(c,d){return s(c,d,n.matrix==="Matrix"?"dense":void 0)},"number | BigNumber, number | BigNumber, string":function(c,d,f){return s(c,d,f)},Array:function(c){return l(c)},"Array, string":function(c,d){return l(c,d)},Matrix:function(c){return l(c.valueOf(),c.storage())},"Matrix, string":function(c,d){return l(c.valueOf(),d)}});function l(u,c){switch(u.length){case 0:return c?r(c):[];case 1:return s(u[0],u[0],c);case 2:return s(u[0],u[1],c);default:throw new Error("Vector containing two values expected")}}function s(u,c,d){var f=Ot(u)||Ot(c)?o:null;if(Ot(u)&&(u=u.toNumber()),Ot(c)&&(c=c.toNumber()),!ot(u)||u<1)throw new Error("Parameters in function identity must be positive integers");if(!ot(c)||c<1)throw new Error("Parameters in function identity must be positive integers");var p=f?new o(1):1,v=f?new f(0):0,m=[u,c];if(d){if(d==="sparse")return i.diagonal(m,p,0,v);if(d==="dense")return a.diagonal(m,p,0,v);throw new TypeError('Unknown matrix type "'.concat(d,'"'))}for(var h=gs([],m,v),g=u{var{typed:t,matrix:n,multiplyScalar:r}=e;return t(OD,{"Matrix, Matrix":function(i,l){return n(o(i.toArray(),l.toArray()))},"Matrix, Array":function(i,l){return n(o(i.toArray(),l))},"Array, Matrix":function(i,l){return n(o(i,l.toArray()))},"Array, Array":o});function o(a,i){if(Mt(a).length===1&&(a=[a]),Mt(i).length===1&&(i=[i]),Mt(a).length>2||Mt(i).length>2)throw new RangeError("Vectors with dimensions greater then 2 are not supported expected (Size x = "+JSON.stringify(a.length)+", y = "+JSON.stringify(i.length)+")");var l=[],s=[];return a.map(function(u){return i.map(function(c){return s=[],l.push(s),u.map(function(d){return c.map(function(f){return s.push(r(d,f))})})})})&&l}}),TD="map",l2e=["typed"],s2e=se(TD,l2e,e=>{var{typed:t}=e;return t(TD,{"Array, function":u2e,"Matrix, function":function(r,o){return r.map(o)}})});function u2e(e,t){var n=mi(t),r=function o(a,i){if(Array.isArray(a))return a.map(function(u,c){return o(u,i.concat(c))});try{return n===1?t(a):n===2?t(a,i):t(a,i,e)}catch(u){if(u instanceof TypeError&&"data"in u&&u.data.category==="wrongType"){var l="map attempted to call '".concat(u.data.fn,"(").concat(a),s=JSON.stringify(i);throw n===2?l+=","+s:n!==1&&(l+=",".concat(s,",").concat(e)),l+=")' but argument ".concat(u.data.index+1," of type "),l+="".concat(u.data.actual," does not match expected type "),l+=u.data.expected.join(" or "),new TypeError(l)}throw u}};return r(e,[])}var MD="diff",c2e=["typed","matrix","subtract","number"],mB=se(MD,c2e,e=>{var{typed:t,matrix:n,subtract:r,number:o}=e;return t(MD,{"Array | Matrix":function(c){return mt(c)?n(i(c.toArray())):i(c)},"Array | Matrix, number":function(c,d){if(!ot(d))throw new RangeError("Dimension must be a whole number");return mt(c)?n(a(c.toArray(),d)):a(c,d)},"Array, BigNumber":t.referTo("Array,number",u=>(c,d)=>u(c,o(d))),"Matrix, BigNumber":t.referTo("Matrix,number",u=>(c,d)=>u(c,o(d)))});function a(u,c){if(mt(u)&&(u=u.toArray()),!Array.isArray(u))throw RangeError("Array/Matrix does not have that many dimensions");if(c>0){var d=[];return u.forEach(f=>{d.push(a(f,c-1))}),d}else{if(c===0)return i(u);throw RangeError("Cannot have negative dimension")}}function i(u){for(var c=[],d=u.length,f=1;f{var{typed:t,config:n,matrix:r,BigNumber:o}=e;return t("ones",{"":function(){return n.matrix==="Array"?a([]):a([],"default")},"...number | BigNumber | string":function(u){var c=u[u.length-1];if(typeof c=="string"){var d=u.pop();return a(u,d)}else return n.matrix==="Array"?a(u):a(u,"default")},Array:a,Matrix:function(u){var c=u.storage();return a(u.valueOf(),c)},"Array | Matrix, string":function(u,c){return a(u.valueOf(),c)}});function a(s,u){var c=i(s),d=c?new o(1):1;if(l(s),u){var f=r(u);return s.length>0?f.resize(s,d):f}else{var p=[];return s.length>0?gs(p,s,d):p}}function i(s){var u=!1;return s.forEach(function(c,d,f){Ot(c)&&(u=!0,f[d]=c.toNumber())}),u}function l(s){s.forEach(function(u){if(typeof u!="number"||!ot(u)||u<0)throw new Error("Parameters in function ones must be positive integers")})}});function Kw(){throw new Error('No "bignumber" implementation available')}function vB(){throw new Error('No "fraction" implementation available')}function hB(){throw new Error('No "matrix" implementation available')}var ND="range",m2e=["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq"],gB=se(ND,m2e,e=>{var{typed:t,config:n,matrix:r,bignumber:o,smaller:a,smallerEq:i,larger:l,largerEq:s}=e;return t(ND,{string:c,"string, boolean":c,"number, number":function(g,x){return u(d(g,x,1))},"number, number, number":function(g,x,y){return u(d(g,x,y))},"number, number, boolean":function(g,x,y){return u(y?f(g,x,1):d(g,x,1))},"number, number, number, boolean":function(g,x,y,w){return u(w?f(g,x,y):d(g,x,y))},"BigNumber, BigNumber":function(g,x){var y=g.constructor;return u(p(g,x,new y(1)))},"BigNumber, BigNumber, BigNumber":function(g,x,y){return u(p(g,x,y))},"BigNumber, BigNumber, boolean":function(g,x,y){var w=g.constructor;return u(y?v(g,x,new w(1)):p(g,x,new w(1)))},"BigNumber, BigNumber, BigNumber, boolean":function(g,x,y,w){return u(w?v(g,x,y):p(g,x,y))}});function u(h){return n.matrix==="Matrix"?r?r(h):hB():h}function c(h,g){var x=m(h);if(!x)throw new SyntaxError('String "'+h+'" is no valid range');var y;return n.number==="BigNumber"?(o===void 0&&Kw(),y=g?v:p,u(y(o(x.start),o(x.end),o(x.step)))):(y=g?f:d,u(y(x.start,x.end,x.step)))}function d(h,g,x){var y=[],w=h;if(x>0)for(;a(w,g);)y.push(w),w+=x;else if(x<0)for(;l(w,g);)y.push(w),w+=x;return y}function f(h,g,x){var y=[],w=h;if(x>0)for(;i(w,g);)y.push(w),w+=x;else if(x<0)for(;s(w,g);)y.push(w),w+=x;return y}function p(h,g,x){var y=o(0),w=[],b=h;if(x.gt(y))for(;a(b,g);)w.push(b),b=b.plus(x);else if(x.lt(y))for(;l(b,g);)w.push(b),b=b.plus(x);return w}function v(h,g,x){var y=o(0),w=[],b=h;if(x.gt(y))for(;i(b,g);)w.push(b),b=b.plus(x);else if(x.lt(y))for(;s(b,g);)w.push(b),b=b.plus(x);return w}function m(h){var g=h.split(":"),x=g.map(function(w){return Number(w)}),y=x.some(function(w){return isNaN(w)});if(y)return null;switch(x.length){case 2:return{start:x[0],end:x[1],step:1};case 3:return{start:x[0],end:x[2],step:x[1]};default:return null}}}),PD="reshape",v2e=["typed","isInteger","matrix"],h2e=se(PD,v2e,e=>{var{typed:t,isInteger:n}=e;return t(PD,{"Matrix, Array":function(o,a){return o.reshape(a,!0)},"Array, Array":function(o,a){return a.forEach(function(i){if(!n(i))throw new TypeError("Invalid size for dimension: "+i)}),K_(o,a)}})}),g2e="resize",y2e=["config","matrix"],b2e=se(g2e,y2e,e=>{var{config:t,matrix:n}=e;return function(a,i,l){if(arguments.length!==2&&arguments.length!==3)throw new Na("resize",arguments.length,2,3);if(mt(i)&&(i=i.valueOf()),Ot(i[0])&&(i=i.map(function(c){return Ot(c)?c.toNumber():c})),mt(a))return a.resize(i,l,!0);if(typeof a=="string")return r(a,i,l);var s=Array.isArray(a)?!1:t.matrix!=="Array";if(i.length===0){for(;Array.isArray(a);)a=a[0];return ct(a)}else{Array.isArray(a)||(a=[a]),a=ct(a);var u=gs(a,i,l);return s?n(u):u}};function r(o,a,i){if(i!==void 0){if(typeof i!="string"||i.length!==1)throw new TypeError("Single character expected as defaultValue")}else i=" ";if(a.length!==1)throw new Dt(a.length,1);var l=a[0];if(typeof l!="number"||!ot(l))throw new TypeError("Invalid size, must contain positive integers (size: "+Et(a)+")");if(o.length>l)return o.substring(0,l);if(o.length{var{typed:t,multiply:n,rotationMatrix:r}=e;return t(ID,{"Array , number | BigNumber | Complex | Unit":function(i,l){o(i,2);var s=n(r(l),i);return s.toArray()},"Matrix , number | BigNumber | Complex | Unit":function(i,l){return o(i,2),n(r(l),i)},"Array, number | BigNumber | Complex | Unit, Array | Matrix":function(i,l,s){o(i,3);var u=n(r(l,s),i);return u},"Matrix, number | BigNumber | Complex | Unit, Array | Matrix":function(i,l,s){return o(i,3),n(r(l,s),i)}});function o(a,i){var l=Array.isArray(a)?Mt(a):a.size();if(l.length>2)throw new RangeError("Vector must be of dimensions 1x".concat(i));if(l.length===2&&l[1]!==1)throw new RangeError("Vector must be of dimensions 1x".concat(i));if(l[0]!==i)throw new RangeError("Vector must be of dimensions 1x".concat(i))}}),_D="rotationMatrix",S2e=["typed","config","multiplyScalar","addScalar","unaryMinus","norm","matrix","BigNumber","DenseMatrix","SparseMatrix","cos","sin"],C2e=se(_D,S2e,e=>{var{typed:t,config:n,multiplyScalar:r,addScalar:o,unaryMinus:a,norm:i,BigNumber:l,matrix:s,DenseMatrix:u,SparseMatrix:c,cos:d,sin:f}=e;return t(_D,{"":function(){return n.matrix==="Matrix"?s([]):[]},string:function(y){return s(y)},"number | BigNumber | Complex | Unit":function(y){return p(y,n.matrix==="Matrix"?"dense":void 0)},"number | BigNumber | Complex | Unit, string":function(y,w){return p(y,w)},"number | BigNumber | Complex | Unit, Array":function(y,w){var b=s(w);return v(b),g(y,b,void 0)},"number | BigNumber | Complex | Unit, Matrix":function(y,w){v(w);var b=w.storage()||(n.matrix==="Matrix"?"dense":void 0);return g(y,w,b)},"number | BigNumber | Complex | Unit, Array, string":function(y,w,b){var S=s(w);return v(S),g(y,S,b)},"number | BigNumber | Complex | Unit, Matrix, string":function(y,w,b){return v(w),g(y,w,b)}});function p(x,y){var w=Ot(x),b=w?new l(-1):-1,S=d(x),$=f(x),D=[[S,r(b,$)],[$,S]];return h(D,y)}function v(x){var y=x.size();if(y.length<1||y[0]!==3)throw new RangeError("Vector must be of dimensions 1x3")}function m(x){return x.reduce((y,w)=>r(y,w))}function h(x,y){if(y){if(y==="sparse")return new c(x);if(y==="dense")return new u(x);throw new TypeError('Unknown matrix type "'.concat(y,'"'))}return x}function g(x,y,w){var b=i(y);if(b===0)throw new RangeError("Rotation around zero vector");var S=Ot(x)?l:null,$=S?new S(1):1,D=S?new S(-1):-1,O=S?new S(y.get([0])/b):y.get([0])/b,A=S?new S(y.get([1])/b):y.get([1])/b,T=S?new S(y.get([2])/b):y.get([2])/b,M=d(x),B=o($,a(M)),F=f(x),P=o(M,m([O,O,B])),I=o(m([O,A,B]),m([D,T,F])),N=o(m([O,T,B]),m([A,F])),R=o(m([O,A,B]),m([T,F])),_=o(M,m([A,A,B])),L=o(m([A,T,B]),m([D,O,F])),k=o(m([O,T,B]),m([D,A,F])),H=o(m([A,T,B]),m([O,F])),V=o(M,m([T,T,B])),U=[[P,I,N],[R,_,L],[k,H,V]];return h(U,w)}}),BD="row",$2e=["typed","Index","matrix","range"],yB=se(BD,$2e,e=>{var{typed:t,Index:n,matrix:r,range:o}=e;return t(BD,{"Matrix, number":a,"Array, number":function(l,s){return a(r(ct(l)),s).valueOf()}});function a(i,l){if(i.size().length!==2)throw new Error("Only two dimensional matrix is supported");Xt(l,i.size()[0]);var s=o(0,i.size()[1]),u=new n(l,s),c=i.subset(u);return mt(c)?c:r([[c]])}}),FD="size",E2e=["typed","config","?matrix"],D2e=se(FD,E2e,e=>{var{typed:t,config:n,matrix:r}=e;return t(FD,{Matrix:function(a){return a.create(a.size())},Array:Mt,string:function(a){return n.matrix==="Array"?[a.length]:r([a.length])},"number | Complex | BigNumber | Unit | boolean | null":function(a){return n.matrix==="Array"?[]:r?r([]):hB()}})}),RD="squeeze",A2e=["typed","matrix"],O2e=se(RD,A2e,e=>{var{typed:t,matrix:n}=e;return t(RD,{Array:function(o){return Ip(ct(o))},Matrix:function(o){var a=Ip(o.toArray());return Array.isArray(a)?n(a):a},any:function(o){return ct(o)}})}),zD="subset",T2e=["typed","matrix"],bB=se(zD,T2e,e=>{var{typed:t,matrix:n}=e;return t(zD,{"Array, Index":function(o,a){var i=n(o),l=i.subset(a);return a.isScalar()?l:l.valueOf()},"Matrix, Index":function(o,a){return o.subset(a)},"Object, Index":N2e,"string, Index":M2e,"Array, Index, any":function(o,a,i){return n(ct(o)).subset(a,i,void 0).valueOf()},"Array, Index, any, any":function(o,a,i,l){return n(ct(o)).subset(a,i,l).valueOf()},"Matrix, Index, any":function(o,a,i){return o.clone().subset(a,i)},"Matrix, Index, any, any":function(o,a,i,l){return o.clone().subset(a,i,l)},"string, Index, string":LD,"string, Index, string, string":LD,"Object, Index, any":P2e})});function M2e(e,t){if(!Pc(t))throw new TypeError("Index expected");if(t.size().length!==1)throw new Dt(t.size().length,1);var n=e.length;Xt(t.min()[0],n),Xt(t.max()[0],n);var r=t.dimension(0),o="";return r.forEach(function(a){o+=e.charAt(a)}),o}function LD(e,t,n,r){if(!t||t.isIndex!==!0)throw new TypeError("Index expected");if(t.size().length!==1)throw new Dt(t.size().length,1);if(r!==void 0){if(typeof r!="string"||r.length!==1)throw new TypeError("Single character expected as defaultValue")}else r=" ";var o=t.dimension(0),a=o.size()[0];if(a!==n.length)throw new Dt(o.size()[0],n.length);var i=e.length;Xt(t.min()[0]),Xt(t.max()[0]);for(var l=[],s=0;si)for(var u=i-1,c=l.length;u{var{typed:t,matrix:n}=e;return t(kD,{Array:i=>r(n(i)).valueOf(),Matrix:r,any:ct});function r(i){var l=i.size(),s;switch(l.length){case 1:s=i.clone();break;case 2:{var u=l[0],c=l[1];if(c===0)throw new RangeError("Cannot transpose a 2D matrix with no columns (size: "+Et(l)+")");switch(i.storage()){case"dense":s=o(i,u,c);break;case"sparse":s=a(i,u,c);break}}break;default:throw new RangeError("Matrix must be a vector or two dimensional (size: "+Et(l)+")")}return s}function o(i,l,s){for(var u=i._data,c=[],d,f=0;f{var{typed:t,transpose:n,conj:r}=e;return t(HD,{any:function(a){return r(n(a))}})}),jD="zeros",R2e=["typed","config","matrix","BigNumber"],z2e=se(jD,R2e,e=>{var{typed:t,config:n,matrix:r,BigNumber:o}=e;return t(jD,{"":function(){return n.matrix==="Array"?a([]):a([],"default")},"...number | BigNumber | string":function(u){var c=u[u.length-1];if(typeof c=="string"){var d=u.pop();return a(u,d)}else return n.matrix==="Array"?a(u):a(u,"default")},Array:a,Matrix:function(u){var c=u.storage();return a(u.valueOf(),c)},"Array | Matrix, string":function(u,c){return a(u.valueOf(),c)}});function a(s,u){var c=i(s),d=c?new o(0):0;if(l(s),u){var f=r(u);return s.length>0?f.resize(s,d):f}else{var p=[];return s.length>0?gs(p,s,d):p}}function i(s){var u=!1;return s.forEach(function(c,d,f){Ot(c)&&(u=!0,f[d]=c.toNumber())}),u}function l(s){s.forEach(function(u){if(typeof u!="number"||!ot(u)||u<0)throw new Error("Parameters in function zeros must be positive integers")})}}),VD="fft",L2e=["typed","matrix","addScalar","multiplyScalar","divideScalar","exp","tau","i","dotDivide","conj","pow","ceil","log2"],k2e=se(VD,L2e,e=>{var{typed:t,matrix:n,addScalar:r,multiplyScalar:o,divideScalar:a,exp:i,tau:l,i:s,dotDivide:u,conj:c,pow:d,ceil:f,log2:p}=e;return t(VD,{Array:v,Matrix:function(y){return y.create(v(y.toArray()))}});function v(x){var y=Mt(x);return y.length===1?g(x,y[0]):m(x.map(w=>v(w,y.slice(1))),0)}function m(x,y){var w=Mt(x);if(y!==0)return new Array(w[0]).fill(0).map((S,$)=>m(x[$],y-1));if(w.length===1)return g(x);function b(S){var $=Mt(S);return new Array($[1]).fill(0).map((D,O)=>new Array($[0]).fill(0).map((A,T)=>S[T][O]))}return b(m(b(x),1))}function h(x){for(var y=x.length,w=i(a(o(-1,o(s,l)),y)),b=[],S=1-y;So(x[N],b[y-1+N])),...new Array($-y).fill(0)],O=[...new Array(y+y-1).fill(0).map((I,N)=>a(1,b[N])),...new Array($-(y+y-1)).fill(0)],A=g(D),T=g(O),M=new Array($).fill(0).map((I,N)=>o(A[N],T[N])),B=u(c(v(c(M))),$),F=[],P=y-1;PO%2===0)),...g(x.filter((D,O)=>O%2===1))],b=0;b{var{typed:t,fft:n,dotDivide:r,conj:o}=e;return t(WD,{"Array | Matrix":function(i){var l=mt(i)?i.size():Mt(i);return r(o(n(o(i))),l.reduce((s,u)=>s*u,1))}})}),V2e="erf",W2e=["typed"],U2e=se(V2e,W2e,e=>{var{typed:t}=e;return t("name",{number:function(i){var l=Math.abs(i);return l>=G2e?Ja(i):l<=K2e?Ja(i)*n(l):l<=4?Ja(i)*(1-r(l)):Ja(i)*(1-o(l))},"Array | Matrix":t.referToSelf(a=>i=>Tt(i,a))});function n(a){var i=a*a,l=ea[0][4]*i,s=i,u;for(u=0;u<3;u+=1)l=(l+ea[0][u])*i,s=(s+Al[0][u])*i;return a*(l+ea[0][3])/(s+Al[0][3])}function r(a){var i=ea[1][8]*a,l=a,s;for(s=0;s<7;s+=1)i=(i+ea[1][s])*a,l=(l+Al[1][s])*a;var u=(i+ea[1][7])/(l+Al[1][7]),c=parseInt(a*16)/16,d=(a-c)*(a+c);return Math.exp(-c*c)*Math.exp(-d)*u}function o(a){var i=1/(a*a),l=ea[2][5]*i,s=i,u;for(u=0;u<4;u+=1)l=(l+ea[2][u])*i,s=(s+Al[2][u])*i;var c=i*(l+ea[2][4])/(s+Al[2][4]);c=(q2e-c)/a,i=parseInt(a*16)/16;var d=(a-i)*(a+i);return Math.exp(-i*i)*Math.exp(-d)*c}}),K2e=.46875,q2e=.5641895835477563,ea=[[3.1611237438705655,113.86415415105016,377.485237685302,3209.3775891384694,.18577770618460315],[.5641884969886701,8.883149794388377,66.11919063714163,298.6351381974001,881.952221241769,1712.0476126340707,2051.0783778260716,1230.3393547979972,21531153547440383e-24],[.30532663496123236,.36034489994980445,.12578172611122926,.016083785148742275,.0006587491615298378,.016315387137302097]],Al=[[23.601290952344122,244.02463793444417,1282.6165260773723,2844.236833439171],[15.744926110709835,117.6939508913125,537.1811018620099,1621.3895745666903,3290.7992357334597,4362.619090143247,3439.3676741437216,1230.3393548037495],[2.568520192289822,1.8729528499234604,.5279051029514285,.06051834131244132,.0023352049762686918]],G2e=Math.pow(2,53),UD="mode",X2e=["typed","isNaN","isNumeric"],Y2e=se(UD,X2e,e=>{var{typed:t,isNaN:n,isNumeric:r}=e;return t(UD,{"Array | Matrix":o,"...":function(i){return o(i)}});function o(a){a=Ht(a.valueOf());var i=a.length;if(i===0)throw new Error("Cannot calculate mode of an empty array");for(var l={},s=[],u=0,c=0;cu&&(u=l[d],s=[d])}return s}});function dr(e,t,n){var r;return String(e).indexOf("Unexpected type")!==-1?(r=arguments.length>2?" (type: "+an(n)+", value: "+JSON.stringify(n)+")":" (type: "+e.data.actual+")",new TypeError("Cannot calculate "+t+", unexpected type of argument"+r)):String(e).indexOf("complex numbers")!==-1?(r=arguments.length>2?" (type: "+an(n)+", value: "+JSON.stringify(n)+")":"",new TypeError("Cannot calculate "+t+", no ordering relation is defined for complex numbers"+r)):e}var KD="prod",Z2e=["typed","config","multiplyScalar","numeric"],J2e=se(KD,Z2e,e=>{var{typed:t,config:n,multiplyScalar:r,numeric:o}=e;return t(KD,{"Array | Matrix":a,"Array | Matrix, number | BigNumber":function(l,s){throw new Error("prod(A, dim) is not yet supported")},"...":function(l){return a(l)}});function a(i){var l;if(Ca(i,function(s){try{l=l===void 0?s:r(l,s)}catch(u){throw dr(u,"prod",s)}}),typeof l=="string"&&(l=o(l,n.number)),l===void 0)throw new Error("Cannot calculate prod of an empty array");return l}}),qD="format",Q2e=["typed"],e3e=se(qD,Q2e,e=>{var{typed:t}=e;return t(qD,{any:Et,"any, Object | function | number":Et})}),GD="bin",t3e=["typed","format"],n3e=se(GD,t3e,e=>{var{typed:t,format:n}=e;return t(GD,{"number | BigNumber":function(o){return n(o,{notation:"bin"})},"number | BigNumber, number":function(o,a){return n(o,{notation:"bin",wordSize:a})}})}),XD="oct",r3e=["typed","format"],o3e=se(XD,r3e,e=>{var{typed:t,format:n}=e;return t(XD,{"number | BigNumber":function(o){return n(o,{notation:"oct"})},"number | BigNumber, number":function(o,a){return n(o,{notation:"oct",wordSize:a})}})}),YD="hex",a3e=["typed","format"],i3e=se(YD,a3e,e=>{var{typed:t,format:n}=e;return t(YD,{"number | BigNumber":function(o){return n(o,{notation:"hex"})},"number | BigNumber, number":function(o,a){return n(o,{notation:"hex",wordSize:a})}})}),ZD="print",l3e=["typed"],s3e=se(ZD,l3e,e=>{var{typed:t}=e;return t(ZD,{"string, Object | Array":JD,"string, Object | Array, number | Object":JD})});function JD(e,t,n){return e.replace(/\$([\w.]+)/g,function(r,o){for(var a=o.split("."),i=t[a.shift()];a.length&&i!==void 0;){var l=a.shift();i=l?i[l]:i+"."}return i!==void 0?Jn(i)?i:Et(i,n):r})}var QD="to",u3e=["typed","matrix","concat"],c3e=se(QD,u3e,e=>{var{typed:t,matrix:n,concat:r}=e,o=Qt({typed:t,matrix:n,concat:r});return t(QD,{"Unit, Unit | string":(a,i)=>a.to(i)},o({Ds:!0}))}),eA="isPrime",d3e=["typed"],f3e=se(eA,d3e,e=>{var{typed:t}=e;return t(eA,{number:function(r){if(r*0!==0)return!1;if(r<=3)return r>1;if(r%2===0||r%3===0)return!1;for(var o=5;o*o<=r;o+=6)if(r%o===0||r%(o+2)===0)return!1;return!0},BigNumber:function(r){if(r.toNumber()*0!==0)return!1;if(r.lte(3))return r.gt(1);if(r.mod(2).eq(0)||r.mod(3).eq(0))return!1;if(r.lt(Math.pow(2,32))){for(var o=r.toNumber(),a=5;a*a<=o;a+=6)if(o%a===0||o%(a+2)===0)return!1;return!0}function i(x,y,w){for(var b=1;!y.eq(0);)y.mod(2).eq(0)?(y=y.div(2),x=x.mul(x).mod(w)):(y=y.sub(1),b=x.mul(b).mod(w));return b}var l=r.constructor.clone({precision:r.toFixed(0).length*2});r=new l(r);for(var s=0,u=r.sub(1);u.mod(2).eq(0);)u=u.div(2),s+=1;var c=null;if(r.lt("3317044064679887385961981"))c=[2,3,5,7,11,13,17,19,23,29,31,37,41].filter(x=>xr=>Tt(r,n))})}),p3e="numeric",m3e=["number","?bignumber","?fraction"],v3e=se(p3e,m3e,e=>{var{number:t,bignumber:n,fraction:r}=e,o={string:!0,number:!0,BigNumber:!0,Fraction:!0},a={number:i=>t(i),BigNumber:n?i=>n(i):Kw,Fraction:r?i=>r(i):vB};return function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"number",u=arguments.length>2?arguments[2]:void 0;if(u!==void 0)throw new SyntaxError("numeric() takes one or two arguments");var c=an(l);if(!(c in o))throw new TypeError("Cannot convert "+l+' of type "'+c+'"; valid input types are '+Object.keys(o).join(", "));if(!(s in a))throw new TypeError("Cannot convert "+l+' to type "'+s+'"; valid output types are '+Object.keys(a).join(", "));return s===c?l:a[s](l)}}),tA="divideScalar",h3e=["typed","numeric"],g3e=se(tA,h3e,e=>{var{typed:t,numeric:n}=e;return t(tA,{"number, number":function(o,a){return o/a},"Complex, Complex":function(o,a){return o.div(a)},"BigNumber, BigNumber":function(o,a){return o.div(a)},"Fraction, Fraction":function(o,a){return o.div(a)},"Unit, number | Complex | Fraction | BigNumber | Unit":(r,o)=>r.divide(o),"number | Fraction | Complex | BigNumber, Unit":(r,o)=>o.divideInto(r)})}),nA="pow",y3e=["typed","config","identity","multiply","matrix","inv","fraction","number","Complex"],b3e=se(nA,y3e,e=>{var{typed:t,config:n,identity:r,multiply:o,matrix:a,inv:i,number:l,fraction:s,Complex:u}=e;return t(nA,{"number, number":c,"Complex, Complex":function(v,m){return v.pow(m)},"BigNumber, BigNumber":function(v,m){return m.isInteger()||v>=0||n.predictable?v.pow(m):new u(v.toNumber(),0).pow(m.toNumber(),0)},"Fraction, Fraction":function(v,m){var h=v.pow(m);if(h!=null)return h;if(n.predictable)throw new Error("Result of pow is non-rational and cannot be expressed as a fraction");return c(v.valueOf(),m.valueOf())},"Array, number":d,"Array, BigNumber":function(v,m){return d(v,m.toNumber())},"Matrix, number":f,"Matrix, BigNumber":function(v,m){return f(v,m.toNumber())},"Unit, number | BigNumber":function(v,m){return v.pow(m)}});function c(p,v){if(n.predictable&&!ot(v)&&p<0)try{var m=s(v),h=l(m);if((v===h||Math.abs((v-h)/v)<1e-14)&&m.d%2===1)return(m.n%2===0?1:-1)*Math.pow(-p,v)}catch{}return n.predictable&&(p<-1&&v===1/0||p>-1&&p<0&&v===-1/0)?NaN:ot(v)||p>=0||n.predictable?O7(p,v):p*p<1&&v===1/0||p*p>1&&v===-1/0?0:new u(p,0).pow(v,0)}function d(p,v){if(!ot(v))throw new TypeError("For A^b, b must be an integer (value is "+v+")");var m=Mt(p);if(m.length!==2)throw new Error("For A^b, A must be 2 dimensional (A has "+m.length+" dimensions)");if(m[0]!==m[1])throw new Error("For A^b, A must be square (size is "+m[0]+"x"+m[1]+")");if(v<0)try{return d(i(p),-v)}catch(x){throw x.message==="Cannot calculate inverse, determinant is zero"?new TypeError("For A^b, when A is not invertible, b must be a positive integer (value is "+v+")"):x}for(var h=r(m[0]).valueOf(),g=p;v>=1;)(v&1)===1&&(h=o(g,h)),v>>=1,g=o(g,g);return h}function f(p,v){return a(d(p.valueOf(),v))}}),Ol="Number of decimals in function round must be an integer",rA="round",x3e=["typed","matrix","equalScalar","zeros","BigNumber","DenseMatrix"],w3e=se(rA,x3e,e=>{var{typed:t,matrix:n,equalScalar:r,zeros:o,BigNumber:a,DenseMatrix:i}=e,l=qn({typed:t,equalScalar:r}),s=zn({typed:t,DenseMatrix:i}),u=Do({typed:t});return t(rA,{number:S4,"number, number":S4,"number, BigNumber":function(d,f){if(!f.isInteger())throw new TypeError(Ol);return new a(d).toDecimalPlaces(f.toNumber())},Complex:function(d){return d.round()},"Complex, number":function(d,f){if(f%1)throw new TypeError(Ol);return d.round(f)},"Complex, BigNumber":function(d,f){if(!f.isInteger())throw new TypeError(Ol);var p=f.toNumber();return d.round(p)},BigNumber:function(d){return d.toDecimalPlaces(0)},"BigNumber, BigNumber":function(d,f){if(!f.isInteger())throw new TypeError(Ol);return d.toDecimalPlaces(f.toNumber())},Fraction:function(d){return d.round()},"Fraction, number":function(d,f){if(f%1)throw new TypeError(Ol);return d.round(f)},"Fraction, BigNumber":function(d,f){if(!f.isInteger())throw new TypeError(Ol);return d.round(f.toNumber())},"Array | Matrix":t.referToSelf(c=>d=>Tt(d,c)),"SparseMatrix, number | BigNumber":t.referToSelf(c=>(d,f)=>l(d,f,c,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(c=>(d,f)=>u(d,f,c,!1)),"Array, number | BigNumber":t.referToSelf(c=>(d,f)=>u(n(d),f,c,!1).valueOf()),"number | Complex | BigNumber | Fraction, SparseMatrix":t.referToSelf(c=>(d,f)=>r(d,0)?o(f.size(),f.storage()):s(f,d,c,!0)),"number | Complex | BigNumber | Fraction, DenseMatrix":t.referToSelf(c=>(d,f)=>r(d,0)?o(f.size(),f.storage()):u(f,d,c,!0)),"number | Complex | BigNumber | Fraction, Array":t.referToSelf(c=>(d,f)=>u(n(f),d,c,!0).valueOf())})}),oA="log",S3e=["config","typed","divideScalar","Complex"],C3e=se(oA,S3e,e=>{var{typed:t,config:n,divideScalar:r,Complex:o}=e;return t(oA,{number:function(i){return i>=0||n.predictable?Ewe(i):new o(i,0).log()},Complex:function(i){return i.log()},BigNumber:function(i){return!i.isNegative()||n.predictable?i.ln():new o(i.toNumber(),0).log()},"any, any":t.referToSelf(a=>(i,l)=>r(a(i),a(l)))})}),aA="log1p",$3e=["typed","config","divideScalar","log","Complex"],E3e=se(aA,$3e,e=>{var{typed:t,config:n,divideScalar:r,log:o,Complex:a}=e;return t(aA,{number:function(s){return s>=-1||n.predictable?A1e(s):i(new a(s,0))},Complex:i,BigNumber:function(s){var u=s.plus(1);return!u.isNegative()||n.predictable?u.ln():i(new a(s.toNumber(),0))},"Array | Matrix":t.referToSelf(l=>s=>Tt(s,l)),"any, any":t.referToSelf(l=>(s,u)=>r(l(s),o(u)))});function i(l){var s=l.re+1;return new a(Math.log(Math.sqrt(s*s+l.im*l.im)),Math.atan2(l.im,s))}}),iA="nthRoots",D3e=["config","typed","divideScalar","Complex"],A3e=se(iA,D3e,e=>{var{typed:t,config:n,divideScalar:r,Complex:o}=e,a=[function(s){return new o(s,0)},function(s){return new o(0,s)},function(s){return new o(-s,0)},function(s){return new o(0,-s)}];function i(l,s){if(s<0)throw new Error("Root must be greater than zero");if(s===0)throw new Error("Root must be non-zero");if(s%1!==0)throw new Error("Root must be an integer");if(l===0||l.abs()===0)return[new o(0,0)];var u=typeof l=="number",c;(u||l.re===0||l.im===0)&&(u?c=2*+(l<0):l.im===0?c=2*+(l.re<0):c=2*+(l.im<0)+1);for(var d=l.arg(),f=l.abs(),p=[],v=Math.pow(f,1/s),m=0;m{var{typed:t,equalScalar:n,matrix:r,pow:o,DenseMatrix:a,concat:i}=e,l=fr({typed:t}),s=qo({typed:t,DenseMatrix:a}),u=qn({typed:t,equalScalar:n}),c=zn({typed:t,DenseMatrix:a}),d=Qt({typed:t,matrix:r,concat:i}),f={};for(var p in o.signatures)Object.prototype.hasOwnProperty.call(o.signatures,p)&&!p.includes("Matrix")&&!p.includes("Array")&&(f[p]=o.signatures[p]);var v=t(f);return t(lA,d({elop:v,SS:s,DS:l,Ss:u,sS:c}))}),sA="dotDivide",M3e=["typed","matrix","equalScalar","divideScalar","DenseMatrix","concat"],N3e=se(sA,M3e,e=>{var{typed:t,matrix:n,equalScalar:r,divideScalar:o,DenseMatrix:a,concat:i}=e,l=Ao({typed:t,equalScalar:r}),s=fr({typed:t}),u=qo({typed:t,DenseMatrix:a}),c=qn({typed:t,equalScalar:r}),d=zn({typed:t,DenseMatrix:a}),f=Qt({typed:t,matrix:n,concat:i});return t(sA,f({elop:o,SS:u,DS:s,SD:l,Ss:c,sS:d}))});function Bc(e){var{DenseMatrix:t}=e;return function(r,o,a){var i=r.size();if(i.length!==2)throw new RangeError("Matrix must be two dimensional (size: "+Et(i)+")");var l=i[0],s=i[1];if(l!==s)throw new RangeError("Matrix must be square (size: "+Et(i)+")");var u=[];if(mt(o)){var c=o.size(),d=o._data;if(c.length===1){if(c[0]!==l)throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");for(var f=0;f{var{typed:t,matrix:n,divideScalar:r,multiplyScalar:o,subtract:a,equalScalar:i,DenseMatrix:l}=e,s=Bc({DenseMatrix:l});return t(uA,{"SparseMatrix, Array | Matrix":function(f,p){return c(f,p)},"DenseMatrix, Array | Matrix":function(f,p){return u(f,p)},"Array, Array | Matrix":function(f,p){var v=n(f),m=u(v,p);return m.valueOf()}});function u(d,f){f=s(d,f,!0);for(var p=f._data,v=d._size[0],m=d._size[1],h=[],g=d._data,x=0;xw&&($.push(h[T]),D.push(M))}if(i(S,0))throw new Error("Linear system cannot be solved since matrix is singular");for(var B=r(b,S),F=0,P=D.length;F{var{typed:t,matrix:n,divideScalar:r,multiplyScalar:o,subtract:a,equalScalar:i,DenseMatrix:l}=e,s=Bc({DenseMatrix:l});return t(cA,{"SparseMatrix, Array | Matrix":function(f,p){return c(f,p)},"DenseMatrix, Array | Matrix":function(f,p){return u(f,p)},"Array, Array | Matrix":function(f,p){var v=n(f),m=u(v,p);return m.valueOf()}});function u(d,f){f=s(d,f,!0);for(var p=f._data,v=d._size[0],m=d._size[1],h=[],g=d._data,x=m-1;x>=0;x--){var y=p[x][0]||0,w=void 0;if(i(y,0))w=0;else{var b=g[x][x];if(i(b,0))throw new Error("Linear system cannot be solved since matrix is singular");w=r(y,b);for(var S=x-1;S>=0;S--)p[S]=[a(p[S][0]||0,o(w,g[S][x]))]}h[x]=[w]}return new l({data:h,size:[v,1]})}function c(d,f){f=s(d,f,!0);for(var p=f._data,v=d._size[0],m=d._size[1],h=d._values,g=d._index,x=d._ptr,y=[],w=m-1;w>=0;w--){var b=p[w][0]||0;if(i(b,0))y[w]=[0];else{for(var S=0,$=[],D=[],O=x[w],A=x[w+1],T=A-1;T>=O;T--){var M=g[T];M===w?S=h[T]:M{var{typed:t,matrix:n,divideScalar:r,multiplyScalar:o,subtract:a,equalScalar:i,DenseMatrix:l}=e,s=Bc({DenseMatrix:l});return t(dA,{"SparseMatrix, Array | Matrix":function(f,p){return c(f,p)},"DenseMatrix, Array | Matrix":function(f,p){return u(f,p)},"Array, Array | Matrix":function(f,p){var v=n(f),m=u(v,p);return m.map(h=>h.valueOf())}});function u(d,f){for(var p=[s(d,f,!0)._data.map(D=>D[0])],v=d._data,m=d._size[0],h=d._size[1],g=0;gnew l({data:D.map(O=>[O]),size:[m,1]}))}function c(d,f){for(var p=[s(d,f,!0)._data.map(k=>k[0])],v=d._size[0],m=d._size[1],h=d._values,g=d._index,x=d._ptr,y=0;yy&&($.push(h[M]),D.push(B))}if(i(T,0))if(i(S[y],0)){if(b===0){var N=[...S];N[y]=1;for(var R=0,_=D.length;R<_;R++){var L=D[R];N[L]=a(N[L],$[R])}p.push(N)}}else{if(b===0)return[];p.splice(b,1),b-=1,w-=1}else{S[y]=r(S[y],T);for(var F=0,P=D.length;Fnew l({data:k.map(H=>[H]),size:[v,1]}))}}),fA="usolveAll",z3e=["typed","matrix","divideScalar","multiplyScalar","subtract","equalScalar","DenseMatrix"],L3e=se(fA,z3e,e=>{var{typed:t,matrix:n,divideScalar:r,multiplyScalar:o,subtract:a,equalScalar:i,DenseMatrix:l}=e,s=Bc({DenseMatrix:l});return t(fA,{"SparseMatrix, Array | Matrix":function(f,p){return c(f,p)},"DenseMatrix, Array | Matrix":function(f,p){return u(f,p)},"Array, Array | Matrix":function(f,p){var v=n(f),m=u(v,p);return m.map(h=>h.valueOf())}});function u(d,f){for(var p=[s(d,f,!0)._data.map(D=>D[0])],v=d._data,m=d._size[0],h=d._size[1],g=h-1;g>=0;g--)for(var x=p.length,y=0;y=0;$--)S[$]=a(S[$],v[$][g]);p.push(S)}}else{if(y===0)return[];p.splice(y,1),y-=1,x-=1}else{w[g]=r(w[g],v[g][g]);for(var b=g-1;b>=0;b--)w[b]=a(w[b],o(w[g],v[b][g]))}}return p.map(D=>new l({data:D.map(O=>[O]),size:[m,1]}))}function c(d,f){for(var p=[s(d,f,!0)._data.map(k=>k[0])],v=d._size[0],m=d._size[1],h=d._values,g=d._index,x=d._ptr,y=m-1;y>=0;y--)for(var w=p.length,b=0;b=O;M--){var B=g[M];B===y?T=h[M]:Bnew l({data:k.map(H=>[H]),size:[v,1]}))}}),k3e="matAlgo08xS0Sid",H3e=["typed","equalScalar"],qw=se(k3e,H3e,e=>{var{typed:t,equalScalar:n}=e;return function(o,a,i){var l=o._values,s=o._index,u=o._ptr,c=o._size,d=o._datatype,f=a._values,p=a._index,v=a._ptr,m=a._size,h=a._datatype;if(c.length!==m.length)throw new Dt(c.length,m.length);if(c[0]!==m[0]||c[1]!==m[1])throw new RangeError("Dimension mismatch. Matrix A ("+c+") must match Matrix B ("+m+")");if(!l||!f)throw new Error("Cannot perform operation on Pattern Sparse Matrices");var g=c[0],x=c[1],y,w=n,b=0,S=i;typeof d=="string"&&d===h&&(y=d,w=t.find(n,[y,y]),b=t.convert(0,y),S=t.find(i,[y,y]));for(var $=[],D=[],O=[],A=[],T=[],M,B,F,P,I=0;I{var{typed:t,matrix:n}=e;return{"Array, number":t.referTo("DenseMatrix, number",r=>(o,a)=>r(n(o),a).valueOf()),"Array, BigNumber":t.referTo("DenseMatrix, BigNumber",r=>(o,a)=>r(n(o),a).valueOf()),"number, Array":t.referTo("number, DenseMatrix",r=>(o,a)=>r(o,n(a)).valueOf()),"BigNumber, Array":t.referTo("BigNumber, DenseMatrix",r=>(o,a)=>r(o,n(a)).valueOf())}}),pA="leftShift",j3e=["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],V3e=se(pA,j3e,e=>{var{typed:t,matrix:n,equalScalar:r,zeros:o,DenseMatrix:a,concat:i}=e,l=vi({typed:t}),s=Ao({typed:t,equalScalar:r}),u=qw({typed:t,equalScalar:r}),c=dl({typed:t,DenseMatrix:a}),d=qn({typed:t,equalScalar:r}),f=Do({typed:t}),p=Qt({typed:t,matrix:n,concat:i}),v=Gw({typed:t,matrix:n});return t(pA,{"number, number":I7,"BigNumber, BigNumber":p$e,"SparseMatrix, number | BigNumber":t.referToSelf(m=>(h,g)=>r(g,0)?h.clone():d(h,g,m,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(m=>(h,g)=>r(g,0)?h.clone():f(h,g,m,!1)),"number | BigNumber, SparseMatrix":t.referToSelf(m=>(h,g)=>r(h,0)?o(g.size(),g.storage()):c(g,h,m,!0)),"number | BigNumber, DenseMatrix":t.referToSelf(m=>(h,g)=>r(h,0)?o(g.size(),g.storage()):f(g,h,m,!0))},v,p({SS:u,DS:l,SD:s}))}),mA="rightArithShift",W3e=["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],U3e=se(mA,W3e,e=>{var{typed:t,matrix:n,equalScalar:r,zeros:o,DenseMatrix:a,concat:i}=e,l=vi({typed:t}),s=Ao({typed:t,equalScalar:r}),u=qw({typed:t,equalScalar:r}),c=dl({typed:t,DenseMatrix:a}),d=qn({typed:t,equalScalar:r}),f=Do({typed:t}),p=Qt({typed:t,matrix:n,concat:i}),v=Gw({typed:t,matrix:n});return t(mA,{"number, number":_7,"BigNumber, BigNumber":m$e,"SparseMatrix, number | BigNumber":t.referToSelf(m=>(h,g)=>r(g,0)?h.clone():d(h,g,m,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(m=>(h,g)=>r(g,0)?h.clone():f(h,g,m,!1)),"number | BigNumber, SparseMatrix":t.referToSelf(m=>(h,g)=>r(h,0)?o(g.size(),g.storage()):c(g,h,m,!0)),"number | BigNumber, DenseMatrix":t.referToSelf(m=>(h,g)=>r(h,0)?o(g.size(),g.storage()):f(g,h,m,!0))},v,p({SS:u,DS:l,SD:s}))}),vA="rightLogShift",K3e=["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],q3e=se(vA,K3e,e=>{var{typed:t,matrix:n,equalScalar:r,zeros:o,DenseMatrix:a,concat:i}=e,l=vi({typed:t}),s=Ao({typed:t,equalScalar:r}),u=qw({typed:t,equalScalar:r}),c=dl({typed:t,DenseMatrix:a}),d=qn({typed:t,equalScalar:r}),f=Do({typed:t}),p=Qt({typed:t,matrix:n,concat:i}),v=Gw({typed:t,matrix:n});return t(vA,{"number, number":B7,"SparseMatrix, number | BigNumber":t.referToSelf(m=>(h,g)=>r(g,0)?h.clone():d(h,g,m,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(m=>(h,g)=>r(g,0)?h.clone():f(h,g,m,!1)),"number | BigNumber, SparseMatrix":t.referToSelf(m=>(h,g)=>r(h,0)?o(g.size(),g.storage()):c(g,h,m,!0)),"number | BigNumber, DenseMatrix":t.referToSelf(m=>(h,g)=>r(h,0)?o(g.size(),g.storage()):f(g,h,m,!0))},v,p({SS:u,DS:l,SD:s}))}),hA="and",G3e=["typed","matrix","equalScalar","zeros","not","concat"],X3e=se(hA,G3e,e=>{var{typed:t,matrix:n,equalScalar:r,zeros:o,not:a,concat:i}=e,l=Ao({typed:t,equalScalar:r}),s=Fv({typed:t,equalScalar:r}),u=qn({typed:t,equalScalar:r}),c=Do({typed:t}),d=Qt({typed:t,matrix:n,concat:i});return t(hA,{"number, number":k7,"Complex, Complex":function(p,v){return(p.re!==0||p.im!==0)&&(v.re!==0||v.im!==0)},"BigNumber, BigNumber":function(p,v){return!p.isZero()&&!v.isZero()&&!p.isNaN()&&!v.isNaN()},"Unit, Unit":t.referToSelf(f=>(p,v)=>f(p.value||0,v.value||0)),"SparseMatrix, any":t.referToSelf(f=>(p,v)=>a(v)?o(p.size(),p.storage()):u(p,v,f,!1)),"DenseMatrix, any":t.referToSelf(f=>(p,v)=>a(v)?o(p.size(),p.storage()):c(p,v,f,!1)),"any, SparseMatrix":t.referToSelf(f=>(p,v)=>a(p)?o(p.size(),p.storage()):u(v,p,f,!0)),"any, DenseMatrix":t.referToSelf(f=>(p,v)=>a(p)?o(p.size(),p.storage()):c(v,p,f,!0)),"Array, any":t.referToSelf(f=>(p,v)=>f(n(p),v).valueOf()),"any, Array":t.referToSelf(f=>(p,v)=>f(p,n(v)).valueOf())},d({SS:s,DS:l}))}),Wp="compare",Y3e=["typed","config","matrix","equalScalar","BigNumber","Fraction","DenseMatrix","concat"],Z3e=se(Wp,Y3e,e=>{var{typed:t,config:n,equalScalar:r,matrix:o,BigNumber:a,Fraction:i,DenseMatrix:l,concat:s}=e,u=fr({typed:t}),c=Rv({typed:t,equalScalar:r}),d=zn({typed:t,DenseMatrix:l}),f=Qt({typed:t,matrix:o,concat:s}),p=Hs({typed:t});return t(Wp,J3e({typed:t,config:n}),{"boolean, boolean":function(m,h){return m===h?0:m>h?1:-1},"BigNumber, BigNumber":function(m,h){return Wo(m,h,n.epsilon)?new a(0):new a(m.cmp(h))},"Fraction, Fraction":function(m,h){return new i(m.compare(h))},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")}},p,f({SS:c,DS:u,Ss:d}))}),J3e=se(Wp,["typed","config"],e=>{var{typed:t,config:n}=e;return t(Wp,{"number, number":function(o,a){return kr(o,a,n.epsilon)?0:o>a?1:-1}})}),Tl=function e(t,n){var r=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,o=/(^[ ]*|[ ]*$)/g,a=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,i=/^0x[0-9a-f]+$/i,l=/^0/,s=function(y){return e.insensitive&&(""+y).toLowerCase()||""+y},u=s(t).replace(o,"")||"",c=s(n).replace(o,"")||"",d=u.replace(r,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),f=c.replace(r,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),p=parseInt(u.match(i),16)||d.length!==1&&u.match(a)&&Date.parse(u),v=parseInt(c.match(i),16)||p&&c.match(a)&&Date.parse(c)||null,m,h;if(v){if(pv)return 1}for(var g=0,x=Math.max(d.length,f.length);gh)return 1}return 0},gA="compareNatural",Q3e=["typed","compare"],eEe=se(gA,Q3e,e=>{var{typed:t,compare:n}=e,r=n.signatures["boolean,boolean"];return t(gA,{"any, any":o});function o(s,u){var c=an(s),d=an(u),f;if((c==="number"||c==="BigNumber"||c==="Fraction")&&(d==="number"||d==="BigNumber"||d==="Fraction"))return f=n(s,u),f.toString()!=="0"?f>0?1:-1:Tl(c,d);var p=["Array","DenseMatrix","SparseMatrix"];if(p.includes(c)||p.includes(d))return f=a(o,s,u),f!==0?f:Tl(c,d);if(c!==d)return Tl(c,d);if(c==="Complex")return tEe(s,u);if(c==="Unit")return s.equalBase(u)?o(s.value,u.value):i(o,s.formatUnits(),u.formatUnits());if(c==="boolean")return r(s,u);if(c==="string")return Tl(s,u);if(c==="Object")return l(o,s,u);if(c==="null"||c==="undefined")return 0;throw new TypeError('Unsupported type of value "'+c+'"')}function a(s,u,c){return Za(u)&&Za(c)?i(s,u.toJSON().values,c.toJSON().values):Za(u)?a(s,u.toArray(),c):Za(c)?a(s,u,c.toArray()):rc(u)?a(s,u.toJSON().data,c):rc(c)?a(s,u,c.toJSON().data):Array.isArray(u)?Array.isArray(c)?i(s,u,c):a(s,u,[c]):a(s,[u],c)}function i(s,u,c){for(var d=0,f=Math.min(u.length,c.length);dc.length?1:u.lengtht.re?1:e.ret.im?1:e.im{var{typed:t,matrix:n,concat:r}=e,o=Qt({typed:t,matrix:n,concat:r});return t(yA,fy,o({elop:fy,Ds:!0}))}),Up="equal",oEe=["typed","matrix","equalScalar","DenseMatrix","concat"],aEe=se(Up,oEe,e=>{var{typed:t,matrix:n,equalScalar:r,DenseMatrix:o,concat:a}=e,i=fr({typed:t}),l=qo({typed:t,DenseMatrix:o}),s=zn({typed:t,DenseMatrix:o}),u=Qt({typed:t,matrix:n,concat:a});return t(Up,iEe({typed:t,equalScalar:r}),u({elop:r,SS:l,DS:i,Ss:s}))}),iEe=se(Up,["typed","equalScalar"],e=>{var{typed:t,equalScalar:n}=e;return t(Up,{"any, any":function(o,a){return o===null?a===null:a===null?o===null:o===void 0?a===void 0:a===void 0?o===void 0:n(o,a)}})}),bA="equalText",lEe=["typed","compareText","isZero"],sEe=se(bA,lEe,e=>{var{typed:t,compareText:n,isZero:r}=e;return t(bA,{"any, any":function(a,i){return r(n(a,i))}})}),Kp="smaller",uEe=["typed","config","matrix","DenseMatrix","concat"],cEe=se(Kp,uEe,e=>{var{typed:t,config:n,matrix:r,DenseMatrix:o,concat:a}=e,i=fr({typed:t}),l=qo({typed:t,DenseMatrix:o}),s=zn({typed:t,DenseMatrix:o}),u=Qt({typed:t,matrix:r,concat:a}),c=Hs({typed:t});return t(Kp,dEe({typed:t,config:n}),{"boolean, boolean":(d,f)=>dd.compare(f)===-1,"Complex, Complex":function(f,p){throw new TypeError("No ordering relation is defined for complex numbers")}},c,u({SS:l,DS:i,Ss:s}))}),dEe=se(Kp,["typed","config"],e=>{var{typed:t,config:n}=e;return t(Kp,{"number, number":function(o,a){return o{var{typed:t,config:n,matrix:r,DenseMatrix:o,concat:a}=e,i=fr({typed:t}),l=qo({typed:t,DenseMatrix:o}),s=zn({typed:t,DenseMatrix:o}),u=Qt({typed:t,matrix:r,concat:a}),c=Hs({typed:t});return t(qp,mEe({typed:t,config:n}),{"boolean, boolean":(d,f)=>d<=f,"BigNumber, BigNumber":function(f,p){return f.lte(p)||Wo(f,p,n.epsilon)},"Fraction, Fraction":(d,f)=>d.compare(f)!==1,"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")}},c,u({SS:l,DS:i,Ss:s}))}),mEe=se(qp,["typed","config"],e=>{var{typed:t,config:n}=e;return t(qp,{"number, number":function(o,a){return o<=a||kr(o,a,n.epsilon)}})}),Gp="larger",vEe=["typed","config","matrix","DenseMatrix","concat"],hEe=se(Gp,vEe,e=>{var{typed:t,config:n,matrix:r,DenseMatrix:o,concat:a}=e,i=fr({typed:t}),l=qo({typed:t,DenseMatrix:o}),s=zn({typed:t,DenseMatrix:o}),u=Qt({typed:t,matrix:r,concat:a}),c=Hs({typed:t});return t(Gp,gEe({typed:t,config:n}),{"boolean, boolean":(d,f)=>d>f,"BigNumber, BigNumber":function(f,p){return f.gt(p)&&!Wo(f,p,n.epsilon)},"Fraction, Fraction":(d,f)=>d.compare(f)===1,"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")}},c,u({SS:l,DS:i,Ss:s}))}),gEe=se(Gp,["typed","config"],e=>{var{typed:t,config:n}=e;return t(Gp,{"number, number":function(o,a){return o>a&&!kr(o,a,n.epsilon)}})}),Xp="largerEq",yEe=["typed","config","matrix","DenseMatrix","concat"],bEe=se(Xp,yEe,e=>{var{typed:t,config:n,matrix:r,DenseMatrix:o,concat:a}=e,i=fr({typed:t}),l=qo({typed:t,DenseMatrix:o}),s=zn({typed:t,DenseMatrix:o}),u=Qt({typed:t,matrix:r,concat:a}),c=Hs({typed:t});return t(Xp,xEe({typed:t,config:n}),{"boolean, boolean":(d,f)=>d>=f,"BigNumber, BigNumber":function(f,p){return f.gte(p)||Wo(f,p,n.epsilon)},"Fraction, Fraction":(d,f)=>d.compare(f)!==-1,"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")}},c,u({SS:l,DS:i,Ss:s}))}),xEe=se(Xp,["typed","config"],e=>{var{typed:t,config:n}=e;return t(Xp,{"number, number":function(o,a){return o>=a||kr(o,a,n.epsilon)}})}),xA="deepEqual",wEe=["typed","equal"],SEe=se(xA,wEe,e=>{var{typed:t,equal:n}=e;return t(xA,{"any, any":function(a,i){return r(a.valueOf(),i.valueOf())}});function r(o,a){if(Array.isArray(o))if(Array.isArray(a)){var i=o.length;if(i!==a.length)return!1;for(var l=0;l{var{typed:t,config:n,equalScalar:r,matrix:o,DenseMatrix:a,concat:i}=e,l=fr({typed:t}),s=qo({typed:t,DenseMatrix:a}),u=zn({typed:t,DenseMatrix:a}),c=Qt({typed:t,matrix:o,concat:i});return t(Yp,EEe({typed:t,equalScalar:r}),c({elop:d,SS:s,DS:l,Ss:u}));function d(f,p){return!r(f,p)}}),EEe=se(Yp,["typed","equalScalar"],e=>{var{typed:t,equalScalar:n}=e;return t(Yp,{"any, any":function(o,a){return o===null?a!==null:a===null?o!==null:o===void 0?a!==void 0:a===void 0?o!==void 0:!n(o,a)}})}),wA="partitionSelect",DEe=["typed","isNumeric","isNaN","compare"],AEe=se(wA,DEe,e=>{var{typed:t,isNumeric:n,isNaN:r,compare:o}=e,a=o,i=(u,c)=>-o(u,c);return t(wA,{"Array | Matrix, number":function(c,d){return l(c,d,a)},"Array | Matrix, number, string":function(c,d,f){if(f==="asc")return l(c,d,a);if(f==="desc")return l(c,d,i);throw new Error('Compare string must be "asc" or "desc"')},"Array | Matrix, number, function":l});function l(u,c,d){if(!ot(c)||c<0)throw new Error("k must be a non-negative integer");if(mt(u)){var f=u.size();if(f.length>1)throw new Error("Only one dimensional matrices supported");return s(u.valueOf(),c,d)}if(Array.isArray(u))return s(u,c,d)}function s(u,c,d){if(c>=u.length)throw new Error("k out of bounds");for(var f=0;f=0){var x=u[h];u[h]=u[m],u[m]=x,--h}else++m;d(u[m],g)>0&&--m,c<=m?v=m:p=m+1}return u[c]}}),SA="sort",OEe=["typed","matrix","compare","compareNatural"],TEe=se(SA,OEe,e=>{var{typed:t,matrix:n,compare:r,compareNatural:o}=e,a=r,i=(c,d)=>-r(c,d);return t(SA,{Array:function(d){return s(d),d.sort(a)},Matrix:function(d){return u(d),n(d.toArray().sort(a),d.storage())},"Array, function":function(d,f){return s(d),d.sort(f)},"Matrix, function":function(d,f){return u(d),n(d.toArray().sort(f),d.storage())},"Array, string":function(d,f){return s(d),d.sort(l(f))},"Matrix, string":function(d,f){return u(d),n(d.toArray().sort(l(f)),d.storage())}});function l(c){if(c==="asc")return a;if(c==="desc")return i;if(c==="natural")return o;throw new Error('String "asc", "desc", or "natural" expected')}function s(c){if(Mt(c).length!==1)throw new Error("One dimensional array expected")}function u(c){if(c.size().length!==1)throw new Error("One dimensional matrix expected")}}),CA="max",MEe=["typed","config","numeric","larger"],xB=se(CA,MEe,e=>{var{typed:t,config:n,numeric:r,larger:o}=e;return t(CA,{"Array | Matrix":i,"Array | Matrix, number | BigNumber":function(s,u){return _v(s,u.valueOf(),a)},"...":function(s){if(Ls(s))throw new TypeError("Scalar values expected in function max");return i(s)}});function a(l,s){try{return o(l,s)?l:s}catch(u){throw dr(u,"max",s)}}function i(l){var s;if(Ca(l,function(u){try{isNaN(u)&&typeof u=="number"?s=NaN:(s===void 0||o(u,s))&&(s=u)}catch(c){throw dr(c,"max",u)}}),s===void 0)throw new Error("Cannot calculate max of an empty array");return typeof s=="string"&&(s=r(s,n.number)),s}}),$A="min",NEe=["typed","config","numeric","smaller"],wB=se($A,NEe,e=>{var{typed:t,config:n,numeric:r,smaller:o}=e;return t($A,{"Array | Matrix":i,"Array | Matrix, number | BigNumber":function(s,u){return _v(s,u.valueOf(),a)},"...":function(s){if(Ls(s))throw new TypeError("Scalar values expected in function min");return i(s)}});function a(l,s){try{return o(l,s)?l:s}catch(u){throw dr(u,"min",s)}}function i(l){var s;if(Ca(l,function(u){try{isNaN(u)&&typeof u=="number"?s=NaN:(s===void 0||o(u,s))&&(s=u)}catch(c){throw dr(c,"min",u)}}),s===void 0)throw new Error("Cannot calculate min of an empty array");return typeof s=="string"&&(s=r(s,n.number)),s}}),PEe="ImmutableDenseMatrix",IEe=["smaller","DenseMatrix"],_Ee=se(PEe,IEe,e=>{var{smaller:t,DenseMatrix:n}=e;function r(o,a){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(a&&!Jn(a))throw new Error("Invalid datatype: "+a);if(mt(o)||Ut(o)){var i=new n(o,a);this._data=i._data,this._size=i._size,this._datatype=i._datatype,this._min=null,this._max=null}else if(o&&Ut(o.data)&&Ut(o.size))this._data=o.data,this._size=o.size,this._datatype=o.datatype,this._min=typeof o.min<"u"?o.min:null,this._max=typeof o.max<"u"?o.max:null;else{if(o)throw new TypeError("Unsupported type of data ("+an(o)+")");this._data=[],this._size=[0],this._datatype=a,this._min=null,this._max=null}}return r.prototype=new n,r.prototype.type="ImmutableDenseMatrix",r.prototype.isImmutableDenseMatrix=!0,r.prototype.subset=function(o){switch(arguments.length){case 1:{var a=n.prototype.subset.call(this,o);return mt(a)?new r({data:a._data,size:a._size,datatype:a._datatype}):a}case 2:case 3:throw new Error("Cannot invoke set subset on an Immutable Matrix instance");default:throw new SyntaxError("Wrong number of arguments")}},r.prototype.set=function(){throw new Error("Cannot invoke set on an Immutable Matrix instance")},r.prototype.resize=function(){throw new Error("Cannot invoke resize on an Immutable Matrix instance")},r.prototype.reshape=function(){throw new Error("Cannot invoke reshape on an Immutable Matrix instance")},r.prototype.clone=function(){return new r({data:ct(this._data),size:ct(this._size),datatype:this._datatype})},r.prototype.toJSON=function(){return{mathjs:"ImmutableDenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},r.fromJSON=function(o){return new r(o)},r.prototype.swapRows=function(){throw new Error("Cannot invoke swapRows on an Immutable Matrix instance")},r.prototype.min=function(){if(this._min===null){var o=null;this.forEach(function(a){(o===null||t(a,o))&&(o=a)}),this._min=o!==null?o:void 0}return this._min},r.prototype.max=function(){if(this._max===null){var o=null;this.forEach(function(a){(o===null||t(o,a))&&(o=a)}),this._max=o!==null?o:void 0}return this._max},r},{isClass:!0}),BEe="Index",FEe=["ImmutableDenseMatrix"],REe=se(BEe,FEe,e=>{var{ImmutableDenseMatrix:t}=e;function n(o){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");this._dimensions=[],this._isScalar=!0;for(var a=0,i=arguments.length;a{var{smaller:t,larger:n}=e,r=1/Math.log((1+Math.sqrt(5))/2);function o(){if(!(this instanceof o))throw new SyntaxError("Constructor must be called with the new operator");this._minimum=null,this._size=0}o.prototype.type="FibonacciHeap",o.prototype.isFibonacciHeap=!0,o.prototype.insert=function(c,d){var f={key:c,value:d,degree:0};if(this._minimum){var p=this._minimum;f.left=p,f.right=p.right,p.right=f,f.right.left=f,t(c,p.key)&&(this._minimum=f)}else f.left=f,f.right=f,this._minimum=f;return this._size++,f},o.prototype.size=function(){return this._size},o.prototype.clear=function(){this._minimum=null,this._size=0},o.prototype.isEmpty=function(){return this._size===0},o.prototype.extractMinimum=function(){var c=this._minimum;if(c===null)return c;for(var d=this._minimum,f=c.degree,p=c.child;f>0;){var v=p.right;p.left.right=p.right,p.right.left=p.left,p.left=d,p.right=d.right,d.right=p,p.right.left=p,p.parent=null,p=v,f--}return c.left.right=c.right,c.right.left=c.left,c===c.right?d=null:(d=c.right,d=u(d,this._size)),this._size--,this._minimum=d,c},o.prototype.remove=function(c){this._minimum=a(this._minimum,c,-1),this.extractMinimum()};function a(c,d,f){d.key=f;var p=d.parent;return p&&t(d.key,p.key)&&(i(c,d,p),l(c,p)),t(d.key,c.key)&&(c=d),c}function i(c,d,f){d.left.right=d.right,d.right.left=d.left,f.degree--,f.child===d&&(f.child=d.right),f.degree===0&&(f.child=null),d.left=c,d.right=c.right,c.right=d,d.right.left=d,d.parent=null,d.mark=!1}function l(c,d){var f=d.parent;f&&(d.mark?(i(c,d,f),l(f)):d.mark=!0)}var s=function(d,f){d.left.right=d.right,d.right.left=d.left,d.parent=f,f.child?(d.left=f.child,d.right=f.child.right,f.child.right=d,d.right.left=d):(f.child=d,d.right=d,d.left=d),f.degree++,d.mark=!1};function u(c,d){var f=Math.floor(Math.log(d)*r)+1,p=new Array(f),v=0,m=c;if(m)for(v++,m=m.right;m!==c;)v++,m=m.right;for(var h;v>0;){for(var g=m.degree,x=m.right;h=p[g],!!h;){if(n(m.key,h.key)){var y=h;h=m,m=y}s(h,m),p[g]=null,g++}p[g]=m,m=x,v--}c=null;for(var w=0;w{var{addScalar:t,equalScalar:n,FibonacciHeap:r}=e;function o(){if(!(this instanceof o))throw new SyntaxError("Constructor must be called with the new operator");this._values=[],this._heap=new r}return o.prototype.type="Spa",o.prototype.isSpa=!0,o.prototype.set=function(a,i){if(this._values[a])this._values[a].value=i;else{var l=this._heap.insert(a,i);this._values[a]=l}},o.prototype.get=function(a){var i=this._values[a];return i?i.value:0},o.prototype.accumulate=function(a,i){var l=this._values[a];l?l.value=t(l.value,i):(l=this._heap.insert(a,i),this._values[a]=l)},o.prototype.forEach=function(a,i,l){var s=this._heap,u=this._values,c=[],d=s.extractMinimum();for(d&&c.push(d);d&&d.key<=i;)d.key>=a&&(n(d.value,0)||l(d.key,d.value,this)),d=s.extractMinimum(),d&&c.push(d);for(var f=0;f{var{on:t,config:n,addScalar:r,subtract:o,multiplyScalar:a,divideScalar:i,pow:l,abs:s,fix:u,round:c,equal:d,isNumeric:f,format:p,number:v,Complex:m,BigNumber:h,Fraction:g}=e,x=v;function y(Q,te){if(!(this instanceof y))throw new Error("Constructor must be called with the new operator");if(!(Q==null||f(Q)||vo(Q)))throw new TypeError("First parameter in Unit constructor must be number, BigNumber, Fraction, Complex, or undefined");if(this.fixPrefix=!1,this.skipAutomaticSimplification=!0,te===void 0)this.units=[],this.dimensions=R.map(Y=>0);else if(typeof te=="string"){var de=y.parse(te);this.units=de.units,this.dimensions=de.dimensions}else if(uo(te)&&te.value===null)this.fixPrefix=te.fixPrefix,this.skipAutomaticSimplification=te.skipAutomaticSimplification,this.dimensions=te.dimensions.slice(0),this.units=te.units.map(Y=>E({},Y));else throw new TypeError("Second parameter in Unit constructor must be a string or valueless Unit");this.value=this._normalize(Q)}Object.defineProperty(y,"name",{value:"Unit"}),y.prototype.constructor=y,y.prototype.type="Unit",y.prototype.isUnit=!0;var w,b,S;function $(){for(;S===" "||S===" ";)A()}function D(Q){return Q>="0"&&Q<="9"||Q==="."}function O(Q){return Q>="0"&&Q<="9"}function A(){b++,S=w.charAt(b)}function T(Q){b=Q,S=w.charAt(b)}function M(){var Q="",te=b;if(S==="+"?A():S==="-"&&(Q+=S,A()),!D(S))return T(te),null;if(S==="."){if(Q+=S,A(),!O(S))return T(te),null}else{for(;O(S);)Q+=S,A();S==="."&&(Q+=S,A())}for(;O(S);)Q+=S,A();if(S==="E"||S==="e"){var de="",Y=b;if(de+=S,A(),(S==="+"||S==="-")&&(de+=S,A()),!O(S))return T(Y),Q;for(Q=Q+de;O(S);)Q+=S,A()}return Q}function B(){for(var Q="";O(S)||y.isValidAlpha(S);)Q+=S,A();var te=Q.charAt(0);return y.isValidAlpha(te)?Q:null}function F(Q){return S===Q?(A(),Q):null}y.parse=function(Q,te){if(te=te||{},w=Q,b=-1,S="",typeof w!="string")throw new TypeError("Invalid argument in Unit.parse, string expected");var de=new y;de.units=[];var Y=1,ae=!1;A(),$();var ce=M(),Ce=null;if(ce){if(n.number==="BigNumber")Ce=new h(ce);else if(n.number==="Fraction")try{Ce=new g(ce)}catch{Ce=parseFloat(ce)}else Ce=parseFloat(ce);$(),F("*")?(Y=1,ae=!0):F("/")&&(Y=-1,ae=!0)}for(var ye=[],J=1;;){for($();S==="(";)ye.push(Y),J*=Y,Y=1,A(),$();var ne=void 0;if(S){var oe=S;if(ne=B(),ne===null)throw new SyntaxError('Unexpected "'+oe+'" in "'+w+'" at index '+b.toString())}else break;var ie=P(ne);if(ie===null)throw new SyntaxError('Unit "'+ne+'" not found.');var ve=Y*J;if($(),F("^")){$();var we=M();if(we===null)throw new SyntaxError('In "'+Q+'", "^" must be followed by a floating-point number');ve*=we}de.units.push({unit:ie.unit,prefix:ie.prefix,power:ve});for(var $e=0;$e1||Math.abs(this.units[0].power-1)>1e-15},y.prototype._normalize=function(Q){if(Q==null||this.units.length===0)return Q;for(var te=Q,de=y._getNumberConverter(an(Q)),Y=0;Y{if(Ke(V,Q)){var te=V[Q],de=te.prefixes[""];return{unit:te,prefix:de}}for(var Y in V)if(Ke(V,Y)&&W1e(Q,Y)){var ae=V[Y],ce=Q.length-Y.length,Ce=Q.substring(0,ce),ye=Ke(ae.prefixes,Ce)?ae.prefixes[Ce]:void 0;if(ye!==void 0)return{unit:ae,prefix:ye}}return null},{hasher:Q=>Q[0],limit:100});y.isValuelessUnit=function(Q){return P(Q)!==null},y.prototype.hasBase=function(Q){if(typeof Q=="string"&&(Q=_[Q]),!Q)return!1;for(var te=0;te1e-12)return!1;return!0},y.prototype.equalBase=function(Q){for(var te=0;te1e-12)return!1;return!0},y.prototype.equals=function(Q){return this.equalBase(Q)&&d(this.value,Q.value)},y.prototype.multiply=function(Q){for(var te=this.clone(),de=uo(Q)?Q:new y(Q),Y=0;Y1e-12&&(Ke(X,ye)?te.push({unit:X[ye].unit,prefix:X[ye].prefix,power:Q.dimensions[Ce]||0}):ce=!0)}te.length1e-12)if(Ke(K.si,Y))te.push({unit:K.si[Y].unit,prefix:K.si[Y].prefix,power:Q.dimensions[de]||0});else throw new Error("Cannot express custom unit "+Y+" in SI units")}return Q.units=te,Q.fixPrefix=!0,Q.skipAutomaticSimplification=!0,Q},y.prototype.formatUnits=function(){for(var Q="",te="",de=0,Y=0,ae=0;ae0?(de++,Q+=" "+this.units[ae].prefix.name+this.units[ae].unit.name,Math.abs(this.units[ae].power-1)>1e-15&&(Q+="^"+this.units[ae].power)):this.units[ae].power<0&&Y++;if(Y>0)for(var ce=0;ce0?(te+=" "+this.units[ce].prefix.name+this.units[ce].unit.name,Math.abs(this.units[ce].power+1)>1e-15&&(te+="^"+-this.units[ce].power)):(te+=" "+this.units[ce].prefix.name+this.units[ce].unit.name,te+="^"+this.units[ce].power));Q=Q.substr(1),te=te.substr(1),de>1&&Y>0&&(Q="("+Q+")"),Y>1&&de>0&&(te="("+te+")");var Ce=Q;return de>0&&Y>0&&(Ce+=" / "),Ce+=te,Ce},y.prototype.format=function(Q){var te=this.skipAutomaticSimplification||this.value===null?this.clone():this.simplify(),de=!1;typeof te.value<"u"&&te.value!==null&&vo(te.value)&&(de=Math.abs(te.value.re)<1e-14);for(var Y in te.units)Ke(te.units,Y)&&te.units[Y].unit&&(te.units[Y].unit.name==="VA"&&de?te.units[Y].unit=V.VAR:te.units[Y].unit.name==="VAR"&&!de&&(te.units[Y].unit=V.VA));te.units.length===1&&!te.fixPrefix&&Math.abs(te.units[0].power-Math.round(te.units[0].power))<1e-14&&(te.units[0].prefix=te._bestPrefix());var ae=te._denormalize(te.value),ce=te.value!==null?p(ae,Q||{}):"",Ce=te.formatUnits();return te.value&&vo(te.value)&&(ce="("+ce+")"),Ce.length>0&&ce.length>0&&(ce+=" "),ce+=Ce,ce},y.prototype._bestPrefix=function(){if(this.units.length!==1)throw new Error("Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!");if(Math.abs(this.units[0].power-Math.round(this.units[0].power))>=1e-14)throw new Error("Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!");var Q=this.value!==null?s(this.value):0,te=s(this.units[0].unit.value),de=this.units[0].prefix;if(Q===0)return de;var Y=this.units[0].power,ae=Math.log(Q/Math.pow(de.value*te,Y))/Math.LN10-1.2;if(ae>-2.200001&&ae<1.800001)return de;ae=Math.abs(ae);var ce=this.units[0].unit.prefixes;for(var Ce in ce)if(Ke(ce,Ce)){var ye=ce[Ce];if(ye.scientific){var J=Math.abs(Math.log(Q/Math.pow(ye.value*te,Y))/Math.LN10-1.2);(J0)},V={meter:{name:"meter",base:_.LENGTH,prefixes:N.LONG,value:1,offset:0},inch:{name:"inch",base:_.LENGTH,prefixes:N.NONE,value:.0254,offset:0},foot:{name:"foot",base:_.LENGTH,prefixes:N.NONE,value:.3048,offset:0},yard:{name:"yard",base:_.LENGTH,prefixes:N.NONE,value:.9144,offset:0},mile:{name:"mile",base:_.LENGTH,prefixes:N.NONE,value:1609.344,offset:0},link:{name:"link",base:_.LENGTH,prefixes:N.NONE,value:.201168,offset:0},rod:{name:"rod",base:_.LENGTH,prefixes:N.NONE,value:5.0292,offset:0},chain:{name:"chain",base:_.LENGTH,prefixes:N.NONE,value:20.1168,offset:0},angstrom:{name:"angstrom",base:_.LENGTH,prefixes:N.NONE,value:1e-10,offset:0},m:{name:"m",base:_.LENGTH,prefixes:N.SHORT,value:1,offset:0},in:{name:"in",base:_.LENGTH,prefixes:N.NONE,value:.0254,offset:0},ft:{name:"ft",base:_.LENGTH,prefixes:N.NONE,value:.3048,offset:0},yd:{name:"yd",base:_.LENGTH,prefixes:N.NONE,value:.9144,offset:0},mi:{name:"mi",base:_.LENGTH,prefixes:N.NONE,value:1609.344,offset:0},li:{name:"li",base:_.LENGTH,prefixes:N.NONE,value:.201168,offset:0},rd:{name:"rd",base:_.LENGTH,prefixes:N.NONE,value:5.02921,offset:0},ch:{name:"ch",base:_.LENGTH,prefixes:N.NONE,value:20.1168,offset:0},mil:{name:"mil",base:_.LENGTH,prefixes:N.NONE,value:254e-7,offset:0},m2:{name:"m2",base:_.SURFACE,prefixes:N.SQUARED,value:1,offset:0},sqin:{name:"sqin",base:_.SURFACE,prefixes:N.NONE,value:64516e-8,offset:0},sqft:{name:"sqft",base:_.SURFACE,prefixes:N.NONE,value:.09290304,offset:0},sqyd:{name:"sqyd",base:_.SURFACE,prefixes:N.NONE,value:.83612736,offset:0},sqmi:{name:"sqmi",base:_.SURFACE,prefixes:N.NONE,value:2589988110336e-6,offset:0},sqrd:{name:"sqrd",base:_.SURFACE,prefixes:N.NONE,value:25.29295,offset:0},sqch:{name:"sqch",base:_.SURFACE,prefixes:N.NONE,value:404.6873,offset:0},sqmil:{name:"sqmil",base:_.SURFACE,prefixes:N.NONE,value:64516e-14,offset:0},acre:{name:"acre",base:_.SURFACE,prefixes:N.NONE,value:4046.86,offset:0},hectare:{name:"hectare",base:_.SURFACE,prefixes:N.NONE,value:1e4,offset:0},m3:{name:"m3",base:_.VOLUME,prefixes:N.CUBIC,value:1,offset:0},L:{name:"L",base:_.VOLUME,prefixes:N.SHORT,value:.001,offset:0},l:{name:"l",base:_.VOLUME,prefixes:N.SHORT,value:.001,offset:0},litre:{name:"litre",base:_.VOLUME,prefixes:N.LONG,value:.001,offset:0},cuin:{name:"cuin",base:_.VOLUME,prefixes:N.NONE,value:16387064e-12,offset:0},cuft:{name:"cuft",base:_.VOLUME,prefixes:N.NONE,value:.028316846592,offset:0},cuyd:{name:"cuyd",base:_.VOLUME,prefixes:N.NONE,value:.764554857984,offset:0},teaspoon:{name:"teaspoon",base:_.VOLUME,prefixes:N.NONE,value:5e-6,offset:0},tablespoon:{name:"tablespoon",base:_.VOLUME,prefixes:N.NONE,value:15e-6,offset:0},drop:{name:"drop",base:_.VOLUME,prefixes:N.NONE,value:5e-8,offset:0},gtt:{name:"gtt",base:_.VOLUME,prefixes:N.NONE,value:5e-8,offset:0},minim:{name:"minim",base:_.VOLUME,prefixes:N.NONE,value:6161152e-14,offset:0},fluiddram:{name:"fluiddram",base:_.VOLUME,prefixes:N.NONE,value:36966911e-13,offset:0},fluidounce:{name:"fluidounce",base:_.VOLUME,prefixes:N.NONE,value:2957353e-11,offset:0},gill:{name:"gill",base:_.VOLUME,prefixes:N.NONE,value:.0001182941,offset:0},cc:{name:"cc",base:_.VOLUME,prefixes:N.NONE,value:1e-6,offset:0},cup:{name:"cup",base:_.VOLUME,prefixes:N.NONE,value:.0002365882,offset:0},pint:{name:"pint",base:_.VOLUME,prefixes:N.NONE,value:.0004731765,offset:0},quart:{name:"quart",base:_.VOLUME,prefixes:N.NONE,value:.0009463529,offset:0},gallon:{name:"gallon",base:_.VOLUME,prefixes:N.NONE,value:.003785412,offset:0},beerbarrel:{name:"beerbarrel",base:_.VOLUME,prefixes:N.NONE,value:.1173478,offset:0},oilbarrel:{name:"oilbarrel",base:_.VOLUME,prefixes:N.NONE,value:.1589873,offset:0},hogshead:{name:"hogshead",base:_.VOLUME,prefixes:N.NONE,value:.238481,offset:0},fldr:{name:"fldr",base:_.VOLUME,prefixes:N.NONE,value:36966911e-13,offset:0},floz:{name:"floz",base:_.VOLUME,prefixes:N.NONE,value:2957353e-11,offset:0},gi:{name:"gi",base:_.VOLUME,prefixes:N.NONE,value:.0001182941,offset:0},cp:{name:"cp",base:_.VOLUME,prefixes:N.NONE,value:.0002365882,offset:0},pt:{name:"pt",base:_.VOLUME,prefixes:N.NONE,value:.0004731765,offset:0},qt:{name:"qt",base:_.VOLUME,prefixes:N.NONE,value:.0009463529,offset:0},gal:{name:"gal",base:_.VOLUME,prefixes:N.NONE,value:.003785412,offset:0},bbl:{name:"bbl",base:_.VOLUME,prefixes:N.NONE,value:.1173478,offset:0},obl:{name:"obl",base:_.VOLUME,prefixes:N.NONE,value:.1589873,offset:0},g:{name:"g",base:_.MASS,prefixes:N.SHORT,value:.001,offset:0},gram:{name:"gram",base:_.MASS,prefixes:N.LONG,value:.001,offset:0},ton:{name:"ton",base:_.MASS,prefixes:N.SHORT,value:907.18474,offset:0},t:{name:"t",base:_.MASS,prefixes:N.SHORT,value:1e3,offset:0},tonne:{name:"tonne",base:_.MASS,prefixes:N.LONG,value:1e3,offset:0},grain:{name:"grain",base:_.MASS,prefixes:N.NONE,value:6479891e-11,offset:0},dram:{name:"dram",base:_.MASS,prefixes:N.NONE,value:.0017718451953125,offset:0},ounce:{name:"ounce",base:_.MASS,prefixes:N.NONE,value:.028349523125,offset:0},poundmass:{name:"poundmass",base:_.MASS,prefixes:N.NONE,value:.45359237,offset:0},hundredweight:{name:"hundredweight",base:_.MASS,prefixes:N.NONE,value:45.359237,offset:0},stick:{name:"stick",base:_.MASS,prefixes:N.NONE,value:.115,offset:0},stone:{name:"stone",base:_.MASS,prefixes:N.NONE,value:6.35029318,offset:0},gr:{name:"gr",base:_.MASS,prefixes:N.NONE,value:6479891e-11,offset:0},dr:{name:"dr",base:_.MASS,prefixes:N.NONE,value:.0017718451953125,offset:0},oz:{name:"oz",base:_.MASS,prefixes:N.NONE,value:.028349523125,offset:0},lbm:{name:"lbm",base:_.MASS,prefixes:N.NONE,value:.45359237,offset:0},cwt:{name:"cwt",base:_.MASS,prefixes:N.NONE,value:45.359237,offset:0},s:{name:"s",base:_.TIME,prefixes:N.SHORT,value:1,offset:0},min:{name:"min",base:_.TIME,prefixes:N.NONE,value:60,offset:0},h:{name:"h",base:_.TIME,prefixes:N.NONE,value:3600,offset:0},second:{name:"second",base:_.TIME,prefixes:N.LONG,value:1,offset:0},sec:{name:"sec",base:_.TIME,prefixes:N.LONG,value:1,offset:0},minute:{name:"minute",base:_.TIME,prefixes:N.NONE,value:60,offset:0},hour:{name:"hour",base:_.TIME,prefixes:N.NONE,value:3600,offset:0},day:{name:"day",base:_.TIME,prefixes:N.NONE,value:86400,offset:0},week:{name:"week",base:_.TIME,prefixes:N.NONE,value:7*86400,offset:0},month:{name:"month",base:_.TIME,prefixes:N.NONE,value:2629800,offset:0},year:{name:"year",base:_.TIME,prefixes:N.NONE,value:31557600,offset:0},decade:{name:"decade",base:_.TIME,prefixes:N.NONE,value:315576e3,offset:0},century:{name:"century",base:_.TIME,prefixes:N.NONE,value:315576e4,offset:0},millennium:{name:"millennium",base:_.TIME,prefixes:N.NONE,value:315576e5,offset:0},hertz:{name:"Hertz",base:_.FREQUENCY,prefixes:N.LONG,value:1,offset:0,reciprocal:!0},Hz:{name:"Hz",base:_.FREQUENCY,prefixes:N.SHORT,value:1,offset:0,reciprocal:!0},rad:{name:"rad",base:_.ANGLE,prefixes:N.SHORT,value:1,offset:0},radian:{name:"radian",base:_.ANGLE,prefixes:N.LONG,value:1,offset:0},deg:{name:"deg",base:_.ANGLE,prefixes:N.SHORT,value:null,offset:0},degree:{name:"degree",base:_.ANGLE,prefixes:N.LONG,value:null,offset:0},grad:{name:"grad",base:_.ANGLE,prefixes:N.SHORT,value:null,offset:0},gradian:{name:"gradian",base:_.ANGLE,prefixes:N.LONG,value:null,offset:0},cycle:{name:"cycle",base:_.ANGLE,prefixes:N.NONE,value:null,offset:0},arcsec:{name:"arcsec",base:_.ANGLE,prefixes:N.NONE,value:null,offset:0},arcmin:{name:"arcmin",base:_.ANGLE,prefixes:N.NONE,value:null,offset:0},A:{name:"A",base:_.CURRENT,prefixes:N.SHORT,value:1,offset:0},ampere:{name:"ampere",base:_.CURRENT,prefixes:N.LONG,value:1,offset:0},K:{name:"K",base:_.TEMPERATURE,prefixes:N.SHORT,value:1,offset:0},degC:{name:"degC",base:_.TEMPERATURE,prefixes:N.SHORT,value:1,offset:273.15},degF:{name:"degF",base:_.TEMPERATURE,prefixes:N.SHORT,value:1/1.8,offset:459.67},degR:{name:"degR",base:_.TEMPERATURE,prefixes:N.SHORT,value:1/1.8,offset:0},kelvin:{name:"kelvin",base:_.TEMPERATURE,prefixes:N.LONG,value:1,offset:0},celsius:{name:"celsius",base:_.TEMPERATURE,prefixes:N.LONG,value:1,offset:273.15},fahrenheit:{name:"fahrenheit",base:_.TEMPERATURE,prefixes:N.LONG,value:1/1.8,offset:459.67},rankine:{name:"rankine",base:_.TEMPERATURE,prefixes:N.LONG,value:1/1.8,offset:0},mol:{name:"mol",base:_.AMOUNT_OF_SUBSTANCE,prefixes:N.SHORT,value:1,offset:0},mole:{name:"mole",base:_.AMOUNT_OF_SUBSTANCE,prefixes:N.LONG,value:1,offset:0},cd:{name:"cd",base:_.LUMINOUS_INTENSITY,prefixes:N.SHORT,value:1,offset:0},candela:{name:"candela",base:_.LUMINOUS_INTENSITY,prefixes:N.LONG,value:1,offset:0},N:{name:"N",base:_.FORCE,prefixes:N.SHORT,value:1,offset:0},newton:{name:"newton",base:_.FORCE,prefixes:N.LONG,value:1,offset:0},dyn:{name:"dyn",base:_.FORCE,prefixes:N.SHORT,value:1e-5,offset:0},dyne:{name:"dyne",base:_.FORCE,prefixes:N.LONG,value:1e-5,offset:0},lbf:{name:"lbf",base:_.FORCE,prefixes:N.NONE,value:4.4482216152605,offset:0},poundforce:{name:"poundforce",base:_.FORCE,prefixes:N.NONE,value:4.4482216152605,offset:0},kip:{name:"kip",base:_.FORCE,prefixes:N.LONG,value:4448.2216,offset:0},kilogramforce:{name:"kilogramforce",base:_.FORCE,prefixes:N.NONE,value:9.80665,offset:0},J:{name:"J",base:_.ENERGY,prefixes:N.SHORT,value:1,offset:0},joule:{name:"joule",base:_.ENERGY,prefixes:N.SHORT,value:1,offset:0},erg:{name:"erg",base:_.ENERGY,prefixes:N.NONE,value:1e-7,offset:0},Wh:{name:"Wh",base:_.ENERGY,prefixes:N.SHORT,value:3600,offset:0},BTU:{name:"BTU",base:_.ENERGY,prefixes:N.BTU,value:1055.05585262,offset:0},eV:{name:"eV",base:_.ENERGY,prefixes:N.SHORT,value:1602176565e-28,offset:0},electronvolt:{name:"electronvolt",base:_.ENERGY,prefixes:N.LONG,value:1602176565e-28,offset:0},W:{name:"W",base:_.POWER,prefixes:N.SHORT,value:1,offset:0},watt:{name:"watt",base:_.POWER,prefixes:N.LONG,value:1,offset:0},hp:{name:"hp",base:_.POWER,prefixes:N.NONE,value:745.6998715386,offset:0},VAR:{name:"VAR",base:_.POWER,prefixes:N.SHORT,value:m.I,offset:0},VA:{name:"VA",base:_.POWER,prefixes:N.SHORT,value:1,offset:0},Pa:{name:"Pa",base:_.PRESSURE,prefixes:N.SHORT,value:1,offset:0},psi:{name:"psi",base:_.PRESSURE,prefixes:N.NONE,value:6894.75729276459,offset:0},atm:{name:"atm",base:_.PRESSURE,prefixes:N.NONE,value:101325,offset:0},bar:{name:"bar",base:_.PRESSURE,prefixes:N.SHORTLONG,value:1e5,offset:0},torr:{name:"torr",base:_.PRESSURE,prefixes:N.NONE,value:133.322,offset:0},mmHg:{name:"mmHg",base:_.PRESSURE,prefixes:N.NONE,value:133.322,offset:0},mmH2O:{name:"mmH2O",base:_.PRESSURE,prefixes:N.NONE,value:9.80665,offset:0},cmH2O:{name:"cmH2O",base:_.PRESSURE,prefixes:N.NONE,value:98.0665,offset:0},coulomb:{name:"coulomb",base:_.ELECTRIC_CHARGE,prefixes:N.LONG,value:1,offset:0},C:{name:"C",base:_.ELECTRIC_CHARGE,prefixes:N.SHORT,value:1,offset:0},farad:{name:"farad",base:_.ELECTRIC_CAPACITANCE,prefixes:N.LONG,value:1,offset:0},F:{name:"F",base:_.ELECTRIC_CAPACITANCE,prefixes:N.SHORT,value:1,offset:0},volt:{name:"volt",base:_.ELECTRIC_POTENTIAL,prefixes:N.LONG,value:1,offset:0},V:{name:"V",base:_.ELECTRIC_POTENTIAL,prefixes:N.SHORT,value:1,offset:0},ohm:{name:"ohm",base:_.ELECTRIC_RESISTANCE,prefixes:N.SHORTLONG,value:1,offset:0},henry:{name:"henry",base:_.ELECTRIC_INDUCTANCE,prefixes:N.LONG,value:1,offset:0},H:{name:"H",base:_.ELECTRIC_INDUCTANCE,prefixes:N.SHORT,value:1,offset:0},siemens:{name:"siemens",base:_.ELECTRIC_CONDUCTANCE,prefixes:N.LONG,value:1,offset:0},S:{name:"S",base:_.ELECTRIC_CONDUCTANCE,prefixes:N.SHORT,value:1,offset:0},weber:{name:"weber",base:_.MAGNETIC_FLUX,prefixes:N.LONG,value:1,offset:0},Wb:{name:"Wb",base:_.MAGNETIC_FLUX,prefixes:N.SHORT,value:1,offset:0},tesla:{name:"tesla",base:_.MAGNETIC_FLUX_DENSITY,prefixes:N.LONG,value:1,offset:0},T:{name:"T",base:_.MAGNETIC_FLUX_DENSITY,prefixes:N.SHORT,value:1,offset:0},b:{name:"b",base:_.BIT,prefixes:N.BINARY_SHORT,value:1,offset:0},bits:{name:"bits",base:_.BIT,prefixes:N.BINARY_LONG,value:1,offset:0},B:{name:"B",base:_.BIT,prefixes:N.BINARY_SHORT,value:8,offset:0},bytes:{name:"bytes",base:_.BIT,prefixes:N.BINARY_LONG,value:8,offset:0}},U={meters:"meter",inches:"inch",feet:"foot",yards:"yard",miles:"mile",links:"link",rods:"rod",chains:"chain",angstroms:"angstrom",lt:"l",litres:"litre",liter:"litre",liters:"litre",teaspoons:"teaspoon",tablespoons:"tablespoon",minims:"minim",fluiddrams:"fluiddram",fluidounces:"fluidounce",gills:"gill",cups:"cup",pints:"pint",quarts:"quart",gallons:"gallon",beerbarrels:"beerbarrel",oilbarrels:"oilbarrel",hogsheads:"hogshead",gtts:"gtt",grams:"gram",tons:"ton",tonnes:"tonne",grains:"grain",drams:"dram",ounces:"ounce",poundmasses:"poundmass",hundredweights:"hundredweight",sticks:"stick",lb:"lbm",lbs:"lbm",kips:"kip",kgf:"kilogramforce",acres:"acre",hectares:"hectare",sqfeet:"sqft",sqyard:"sqyd",sqmile:"sqmi",sqmiles:"sqmi",mmhg:"mmHg",mmh2o:"mmH2O",cmh2o:"cmH2O",seconds:"second",secs:"second",minutes:"minute",mins:"minute",hours:"hour",hr:"hour",hrs:"hour",days:"day",weeks:"week",months:"month",years:"year",decades:"decade",centuries:"century",millennia:"millennium",hertz:"hertz",radians:"radian",degrees:"degree",gradians:"gradian",cycles:"cycle",arcsecond:"arcsec",arcseconds:"arcsec",arcminute:"arcmin",arcminutes:"arcmin",BTUs:"BTU",watts:"watt",joules:"joule",amperes:"ampere",amps:"ampere",amp:"ampere",coulombs:"coulomb",volts:"volt",ohms:"ohm",farads:"farad",webers:"weber",teslas:"tesla",electronvolts:"electronvolt",moles:"mole",bit:"bits",byte:"bytes"};function q(Q){if(Q.number==="BigNumber"){var te=Xw(h);V.rad.value=new h(1),V.deg.value=te.div(180),V.grad.value=te.div(200),V.cycle.value=te.times(2),V.arcsec.value=te.div(648e3),V.arcmin.value=te.div(10800)}else V.rad.value=1,V.deg.value=Math.PI/180,V.grad.value=Math.PI/200,V.cycle.value=Math.PI*2,V.arcsec.value=Math.PI/648e3,V.arcmin.value=Math.PI/10800;V.radian.value=V.rad.value,V.degree.value=V.deg.value,V.gradian.value=V.grad.value}q(n),t&&t("config",function(Q,te){Q.number!==te.number&&q(Q)});var K={si:{NONE:{unit:H,prefix:N.NONE[""]},LENGTH:{unit:V.m,prefix:N.SHORT[""]},MASS:{unit:V.g,prefix:N.SHORT.k},TIME:{unit:V.s,prefix:N.SHORT[""]},CURRENT:{unit:V.A,prefix:N.SHORT[""]},TEMPERATURE:{unit:V.K,prefix:N.SHORT[""]},LUMINOUS_INTENSITY:{unit:V.cd,prefix:N.SHORT[""]},AMOUNT_OF_SUBSTANCE:{unit:V.mol,prefix:N.SHORT[""]},ANGLE:{unit:V.rad,prefix:N.SHORT[""]},BIT:{unit:V.bits,prefix:N.SHORT[""]},FORCE:{unit:V.N,prefix:N.SHORT[""]},ENERGY:{unit:V.J,prefix:N.SHORT[""]},POWER:{unit:V.W,prefix:N.SHORT[""]},PRESSURE:{unit:V.Pa,prefix:N.SHORT[""]},ELECTRIC_CHARGE:{unit:V.C,prefix:N.SHORT[""]},ELECTRIC_CAPACITANCE:{unit:V.F,prefix:N.SHORT[""]},ELECTRIC_POTENTIAL:{unit:V.V,prefix:N.SHORT[""]},ELECTRIC_RESISTANCE:{unit:V.ohm,prefix:N.SHORT[""]},ELECTRIC_INDUCTANCE:{unit:V.H,prefix:N.SHORT[""]},ELECTRIC_CONDUCTANCE:{unit:V.S,prefix:N.SHORT[""]},MAGNETIC_FLUX:{unit:V.Wb,prefix:N.SHORT[""]},MAGNETIC_FLUX_DENSITY:{unit:V.T,prefix:N.SHORT[""]},FREQUENCY:{unit:V.Hz,prefix:N.SHORT[""]}}};K.cgs=JSON.parse(JSON.stringify(K.si)),K.cgs.LENGTH={unit:V.m,prefix:N.SHORT.c},K.cgs.MASS={unit:V.g,prefix:N.SHORT[""]},K.cgs.FORCE={unit:V.dyn,prefix:N.SHORT[""]},K.cgs.ENERGY={unit:V.erg,prefix:N.NONE[""]},K.us=JSON.parse(JSON.stringify(K.si)),K.us.LENGTH={unit:V.ft,prefix:N.NONE[""]},K.us.MASS={unit:V.lbm,prefix:N.NONE[""]},K.us.TEMPERATURE={unit:V.degF,prefix:N.NONE[""]},K.us.FORCE={unit:V.lbf,prefix:N.NONE[""]},K.us.ENERGY={unit:V.BTU,prefix:N.BTU[""]},K.us.POWER={unit:V.hp,prefix:N.NONE[""]},K.us.PRESSURE={unit:V.psi,prefix:N.NONE[""]},K.auto=JSON.parse(JSON.stringify(K.si));var X=K.auto;y.setUnitSystem=function(Q){if(Ke(K,Q))X=K[Q];else throw new Error("Unit system "+Q+" does not exist. Choices are: "+Object.keys(K).join(", "))},y.getUnitSystem=function(){for(var Q in K)if(Ke(K,Q)&&K[Q]===X)return Q},y.typeConverters={BigNumber:function(te){return new h(te+"")},Fraction:function(te){return new g(te)},Complex:function(te){return te},number:function(te){return te}},y.prototype._numberConverter=function(){var Q=y.typeConverters[this.valueType()];if(Q)return Q;throw new TypeError('Unsupported Unit value type "'+this.valueType()+'"')},y._getNumberConverter=function(Q){if(!y.typeConverters[Q])throw new TypeError('Unsupported type "'+Q+'"');return y.typeConverters[Q]};for(var re in V)if(Ke(V,re)){var ee=V[re];ee.dimensions=ee.base.dimensions}for(var G in U)if(Ke(U,G)){var le=V[U[G]],ue={};for(var me in le)Ke(le,me)&&(ue[me]=le[me]);ue.name=G,V[G]=ue}y.isValidAlpha=function(te){return/^[a-zA-Z]$/.test(te)};function Se(Q){for(var te=0;te0&&!(y.isValidAlpha(S)||O(S)))throw new Error('Invalid unit name (only alphanumeric characters are allowed): "'+Q+'"')}}return y.createUnit=function(Q,te){if(typeof Q!="object")throw new TypeError("createUnit expects first parameter to be of type 'Object'");if(te&&te.override){for(var de in Q)if(Ke(Q,de)&&y.deleteUnit(de),Q[de].aliases)for(var Y=0;Y"u"||te===null)&&(te={}),typeof Q!="string")throw new TypeError("createUnitSingle expects first parameter to be of type 'string'");if(Ke(V,Q))throw new Error('Cannot create unit "'+Q+'": a unit with that name already exists');Se(Q);var de=null,Y=[],ae=0,ce,Ce,ye;if(te&&te.type==="Unit")de=te.clone();else if(typeof te=="string")te!==""&&(ce=te);else if(typeof te=="object")ce=te.definition,Ce=te.prefixes,ae=te.offset,ye=te.baseName,te.aliases&&(Y=te.aliases.valueOf());else throw new TypeError('Cannot create unit "'+Q+'" from "'+te.toString()+'": expecting "string" or "Unit" or "Object"');if(Y){for(var J=0;J1e-12){Ae=!1;break}if(Ae){we=!0,ne.base=_[$e];break}}if(!we){ye=ye||Q+"_STUFF";var Ee={dimensions:de.dimensions.slice(0)};Ee.key=ye,_[ye]=Ee,X[ye]={unit:ne,prefix:N.NONE[""]},ne.base=_[ye]}}else{if(ye=ye||Q+"_STUFF",R.indexOf(ye)>=0)throw new Error('Cannot create new base unit "'+Q+'": a base unit with that name already exists (and cannot be overridden)');R.push(ye);for(var oe in _)Ke(_,oe)&&(_[oe].dimensions[R.length-1]=0);for(var ie={dimensions:[]},ve=0;ve{var{typed:t,Unit:n}=e;return t(DA,{Unit:function(o){return o.clone()},string:function(o){return n.isValuelessUnit(o)?new n(null,o):n.parse(o,{allowNoUnits:!0})},"number | BigNumber | Fraction | Complex, string | Unit":function(o,a){return new n(o,a)},"number | BigNumber | Fraction":function(o){return new n(o)},"Array | Matrix":t.referToSelf(r=>o=>Tt(o,r))})}),AA="sparse",JEe=["typed","SparseMatrix"],QEe=se(AA,JEe,e=>{var{typed:t,SparseMatrix:n}=e;return t(AA,{"":function(){return new n([])},string:function(o){return new n([],o)},"Array | Matrix":function(o){return new n(o)},"Array | Matrix, string":function(o,a){return new n(o,a)}})}),OA="createUnit",e4e=["typed","Unit"],t4e=se(OA,e4e,e=>{var{typed:t,Unit:n}=e;return t(OA,{"Object, Object":function(o,a){return n.createUnit(o,a)},Object:function(o){return n.createUnit(o,{})},"string, Unit | string | Object, Object":function(o,a,i){var l={};return l[o]=a,n.createUnit(l,i)},"string, Unit | string | Object":function(o,a){var i={};return i[o]=a,n.createUnit(i,{})},string:function(o){var a={};return a[o]={},n.createUnit(a,{})}})}),TA="acos",n4e=["typed","config","Complex"],r4e=se(TA,n4e,e=>{var{typed:t,config:n,Complex:r}=e;return t(TA,{number:function(a){return a>=-1&&a<=1||n.predictable?Math.acos(a):new r(a,0).acos()},Complex:function(a){return a.acos()},BigNumber:function(a){return a.acos()}})}),MA="acosh",o4e=["typed","config","Complex"],a4e=se(MA,o4e,e=>{var{typed:t,config:n,Complex:r}=e;return t(MA,{number:function(a){return a>=1||n.predictable?V7(a):a<=-1?new r(Math.log(Math.sqrt(a*a-1)-a),Math.PI):new r(a,0).acosh()},Complex:function(a){return a.acosh()},BigNumber:function(a){return a.acosh()}})}),NA="acot",i4e=["typed","BigNumber"],l4e=se(NA,i4e,e=>{var{typed:t,BigNumber:n}=e;return t(NA,{number:W7,Complex:function(o){return o.acot()},BigNumber:function(o){return new n(1).div(o).atan()}})}),PA="acoth",s4e=["typed","config","Complex","BigNumber"],u4e=se(PA,s4e,e=>{var{typed:t,config:n,Complex:r,BigNumber:o}=e;return t(PA,{number:function(i){return i>=1||i<=-1||n.predictable?U7(i):new r(i,0).acoth()},Complex:function(i){return i.acoth()},BigNumber:function(i){return new o(1).div(i).atanh()}})}),IA="acsc",c4e=["typed","config","Complex","BigNumber"],d4e=se(IA,c4e,e=>{var{typed:t,config:n,Complex:r,BigNumber:o}=e;return t(IA,{number:function(i){return i<=-1||i>=1||n.predictable?K7(i):new r(i,0).acsc()},Complex:function(i){return i.acsc()},BigNumber:function(i){return new o(1).div(i).asin()}})}),_A="acsch",f4e=["typed","BigNumber"],p4e=se(_A,f4e,e=>{var{typed:t,BigNumber:n}=e;return t(_A,{number:q7,Complex:function(o){return o.acsch()},BigNumber:function(o){return new n(1).div(o).asinh()}})}),BA="asec",m4e=["typed","config","Complex","BigNumber"],v4e=se(BA,m4e,e=>{var{typed:t,config:n,Complex:r,BigNumber:o}=e;return t(BA,{number:function(i){return i<=-1||i>=1||n.predictable?G7(i):new r(i,0).asec()},Complex:function(i){return i.asec()},BigNumber:function(i){return new o(1).div(i).acos()}})}),FA="asech",h4e=["typed","config","Complex","BigNumber"],g4e=se(FA,h4e,e=>{var{typed:t,config:n,Complex:r,BigNumber:o}=e;return t(FA,{number:function(i){if(i<=1&&i>=-1||n.predictable){var l=1/i;if(l>0||n.predictable)return X7(i);var s=Math.sqrt(l*l-1);return new r(Math.log(s-l),Math.PI)}return new r(i,0).asech()},Complex:function(i){return i.asech()},BigNumber:function(i){return new o(1).div(i).acosh()}})}),RA="asin",y4e=["typed","config","Complex"],b4e=se(RA,y4e,e=>{var{typed:t,config:n,Complex:r}=e;return t(RA,{number:function(a){return a>=-1&&a<=1||n.predictable?Math.asin(a):new r(a,0).asin()},Complex:function(a){return a.asin()},BigNumber:function(a){return a.asin()}})}),x4e="asinh",w4e=["typed"],S4e=se(x4e,w4e,e=>{var{typed:t}=e;return t("asinh",{number:Y7,Complex:function(r){return r.asinh()},BigNumber:function(r){return r.asinh()}})}),C4e="atan",$4e=["typed"],E4e=se(C4e,$4e,e=>{var{typed:t}=e;return t("atan",{number:function(r){return Math.atan(r)},Complex:function(r){return r.atan()},BigNumber:function(r){return r.atan()}})}),zA="atan2",D4e=["typed","matrix","equalScalar","BigNumber","DenseMatrix","concat"],A4e=se(zA,D4e,e=>{var{typed:t,matrix:n,equalScalar:r,BigNumber:o,DenseMatrix:a,concat:i}=e,l=Ao({typed:t,equalScalar:r}),s=fr({typed:t}),u=cB({typed:t,equalScalar:r}),c=qn({typed:t,equalScalar:r}),d=zn({typed:t,DenseMatrix:a}),f=Qt({typed:t,matrix:n,concat:i});return t(zA,{"number, number":Math.atan2,"BigNumber, BigNumber":(p,v)=>o.atan2(p,v)},f({scalar:"number | BigNumber",SS:u,DS:s,SD:l,Ss:c,sS:d}))}),LA="atanh",O4e=["typed","config","Complex"],T4e=se(LA,O4e,e=>{var{typed:t,config:n,Complex:r}=e;return t(LA,{number:function(a){return a<=1&&a>=-1||n.predictable?Z7(a):new r(a,0).atanh()},Complex:function(a){return a.atanh()},BigNumber:function(a){return a.atanh()}})}),js=se("trigUnit",["typed"],e=>{var{typed:t}=e;return{Unit:t.referToSelf(n=>r=>{if(!r.hasBase(r.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function cot is no angle");return t.find(n,r.valueType())(r.value)})}}),kA="cos",M4e=["typed"],N4e=se(kA,M4e,e=>{var{typed:t}=e,n=js({typed:t});return t(kA,{number:Math.cos,"Complex | BigNumber":r=>r.cos()},n)}),HA="cosh",P4e=["typed"],I4e=se(HA,P4e,e=>{var{typed:t}=e;return t(HA,{number:R1e,"Complex | BigNumber":n=>n.cosh()})}),jA="cot",_4e=["typed","BigNumber"],B4e=se(jA,_4e,e=>{var{typed:t,BigNumber:n}=e,r=js({typed:t});return t(jA,{number:J7,Complex:o=>o.cot(),BigNumber:o=>new n(1).div(o.tan())},r)}),VA="coth",F4e=["typed","BigNumber"],R4e=se(VA,F4e,e=>{var{typed:t,BigNumber:n}=e;return t(VA,{number:Q7,Complex:r=>r.coth(),BigNumber:r=>new n(1).div(r.tanh())})}),WA="csc",z4e=["typed","BigNumber"],L4e=se(WA,z4e,e=>{var{typed:t,BigNumber:n}=e,r=js({typed:t});return t(WA,{number:eB,Complex:o=>o.csc(),BigNumber:o=>new n(1).div(o.sin())},r)}),UA="csch",k4e=["typed","BigNumber"],H4e=se(UA,k4e,e=>{var{typed:t,BigNumber:n}=e;return t(UA,{number:tB,Complex:r=>r.csch(),BigNumber:r=>new n(1).div(r.sinh())})}),KA="sec",j4e=["typed","BigNumber"],V4e=se(KA,j4e,e=>{var{typed:t,BigNumber:n}=e,r=js({typed:t});return t(KA,{number:nB,Complex:o=>o.sec(),BigNumber:o=>new n(1).div(o.cos())},r)}),qA="sech",W4e=["typed","BigNumber"],U4e=se(qA,W4e,e=>{var{typed:t,BigNumber:n}=e;return t(qA,{number:rB,Complex:r=>r.sech(),BigNumber:r=>new n(1).div(r.cosh())})}),GA="sin",K4e=["typed"],q4e=se(GA,K4e,e=>{var{typed:t}=e,n=js({typed:t});return t(GA,{number:Math.sin,"Complex | BigNumber":r=>r.sin()},n)}),XA="sinh",G4e=["typed"],X4e=se(XA,G4e,e=>{var{typed:t}=e;return t(XA,{number:oB,"Complex | BigNumber":n=>n.sinh()})}),YA="tan",Y4e=["typed"],Z4e=se(YA,Y4e,e=>{var{typed:t}=e,n=js({typed:t});return t(YA,{number:Math.tan,"Complex | BigNumber":r=>r.tan()},n)}),J4e="tanh",Q4e=["typed"],eDe=se(J4e,Q4e,e=>{var{typed:t}=e;return t("tanh",{number:L1e,"Complex | BigNumber":n=>n.tanh()})}),ZA="setCartesian",tDe=["typed","size","subset","compareNatural","Index","DenseMatrix"],nDe=se(ZA,tDe,e=>{var{typed:t,size:n,subset:r,compareNatural:o,Index:a,DenseMatrix:i}=e;return t(ZA,{"Array | Matrix, Array | Matrix":function(s,u){var c=[];if(r(n(s),new a(0))!==0&&r(n(u),new a(0))!==0){var d=Ht(Array.isArray(s)?s:s.toArray()).sort(o),f=Ht(Array.isArray(u)?u:u.toArray()).sort(o);c=[];for(var p=0;p{var{typed:t,size:n,subset:r,compareNatural:o,Index:a,DenseMatrix:i}=e;return t(JA,{"Array | Matrix, Array | Matrix":function(s,u){var c;if(r(n(s),new a(0))===0)c=[];else{if(r(n(u),new a(0))===0)return Ht(s.toArray());var d=ys(Ht(Array.isArray(s)?s:s.toArray()).sort(o)),f=ys(Ht(Array.isArray(u)?u:u.toArray()).sort(o));c=[];for(var p,v=0;v{var{typed:t,size:n,subset:r,compareNatural:o,Index:a,DenseMatrix:i}=e;return t(QA,{"Array | Matrix":function(s){var u;if(r(n(s),new a(0))===0)u=[];else{var c=Ht(Array.isArray(s)?s:s.toArray()).sort(o);u=[],u.push(c[0]);for(var d=1;d{var{typed:t,size:n,subset:r,compareNatural:o,Index:a,DenseMatrix:i}=e;return t(eO,{"Array | Matrix, Array | Matrix":function(s,u){var c;if(r(n(s),new a(0))===0||r(n(u),new a(0))===0)c=[];else{var d=ys(Ht(Array.isArray(s)?s:s.toArray()).sort(o)),f=ys(Ht(Array.isArray(u)?u:u.toArray()).sort(o));c=[];for(var p=0;p{var{typed:t,size:n,subset:r,compareNatural:o,Index:a}=e;return t(tO,{"Array | Matrix, Array | Matrix":function(l,s){if(r(n(l),new a(0))===0)return!0;if(r(n(s),new a(0))===0)return!1;for(var u=ys(Ht(Array.isArray(l)?l:l.toArray()).sort(o)),c=ys(Ht(Array.isArray(s)?s:s.toArray()).sort(o)),d,f=0;f{var{typed:t,size:n,subset:r,compareNatural:o,Index:a}=e;return t(nO,{"number | BigNumber | Fraction | Complex, Array | Matrix":function(l,s){if(r(n(s),new a(0))===0)return 0;for(var u=Ht(Array.isArray(s)?s:s.toArray()),c=0,d=0;d{var{typed:t,size:n,subset:r,compareNatural:o,Index:a}=e;return t(rO,{"Array | Matrix":function(u){if(r(n(u),new a(0))===0)return[];for(var c=Ht(Array.isArray(u)?u:u.toArray()).sort(o),d=[],f=0;f.toString(2).length<=c.length;)d.push(i(c,f.toString(2).split("").reverse())),f++;return l(d)}});function i(s,u){for(var c=[],d=0;d0;c--)for(var d=0;ds[d+1].length&&(u=s[d],s[d]=s[d+1],s[d+1]=u);return s}}),oO="setSize",vDe=["typed","compareNatural"],hDe=se(oO,vDe,e=>{var{typed:t,compareNatural:n}=e;return t(oO,{"Array | Matrix":function(o){return Array.isArray(o)?Ht(o).length:Ht(o.toArray()).length},"Array | Matrix, boolean":function(o,a){if(a===!1||o.length===0)return Array.isArray(o)?Ht(o).length:Ht(o.toArray()).length;for(var i=Ht(Array.isArray(o)?o:o.toArray()).sort(n),l=1,s=1;s{var{typed:t,size:n,concat:r,subset:o,setDifference:a,Index:i}=e;return t(aO,{"Array | Matrix, Array | Matrix":function(s,u){if(o(n(s),new i(0))===0)return Ht(u);if(o(n(u),new i(0))===0)return Ht(s);var c=Ht(s),d=Ht(u);return r(a(c,d),a(d,c))}})}),iO="setUnion",bDe=["typed","size","concat","subset","setIntersect","setSymDifference","Index"],xDe=se(iO,bDe,e=>{var{typed:t,size:n,concat:r,subset:o,setIntersect:a,setSymDifference:i,Index:l}=e;return t(iO,{"Array | Matrix, Array | Matrix":function(u,c){if(o(n(u),new l(0))===0)return Ht(c);if(o(n(c),new l(0))===0)return Ht(u);var d=Ht(u),f=Ht(c);return r(i(d,f),a(d,f))}})}),lO="add",wDe=["typed","matrix","addScalar","equalScalar","DenseMatrix","SparseMatrix","concat"],SDe=se(lO,wDe,e=>{var{typed:t,matrix:n,addScalar:r,equalScalar:o,DenseMatrix:a,SparseMatrix:i,concat:l}=e,s=vi({typed:t}),u=Ww({typed:t,equalScalar:o}),c=dl({typed:t,DenseMatrix:a}),d=Qt({typed:t,matrix:n,concat:l});return t(lO,{"any, any":r,"any, any, ...any":t.referToSelf(f=>(p,v,m)=>{for(var h=f(p,v),g=0;g{var{typed:t,abs:n,addScalar:r,divideScalar:o,multiplyScalar:a,sqrt:i,smaller:l,isPositive:s}=e;return t(sO,{"... number | BigNumber":u,Array:u,Matrix:c=>u(Ht(c.toArray()))});function u(c){for(var d=0,f=0,p=0;p{var{typed:t,abs:n,add:r,pow:o,conj:a,sqrt:i,multiply:l,equalScalar:s,larger:u,smaller:c,matrix:d,ctranspose:f,eigs:p}=e;return t(uO,{number:Math.abs,Complex:function(D){return D.abs()},BigNumber:function(D){return D.abs()},boolean:function(D){return Math.abs(D)},Array:function(D){return S(d(D),2)},Matrix:function(D){return S(D,2)},"Array, number | BigNumber | string":function(D,O){return S(d(D),O)},"Matrix, number | BigNumber | string":function(D,O){return S(D,O)}});function v($){var D=0;return $.forEach(function(O){var A=n(O);u(A,D)&&(D=A)},!0),D}function m($){var D;return $.forEach(function(O){var A=n(O);(!D||c(A,D))&&(D=A)},!0),D||0}function h($,D){if(D===Number.POSITIVE_INFINITY||D==="inf")return v($);if(D===Number.NEGATIVE_INFINITY||D==="-inf")return m($);if(D==="fro")return S($,2);if(typeof D=="number"&&!isNaN(D)){if(!s(D,0)){var O=0;return $.forEach(function(A){O=r(o(n(A),D),O)},!0),o(O,1/D)}return Number.POSITIVE_INFINITY}throw new Error("Unsupported parameter value")}function g($){var D=0;return $.forEach(function(O,A){D=r(D,l(O,a(O)))}),n(i(D))}function x($){var D=[],O=0;return $.forEach(function(A,T){var M=T[1],B=r(D[M]||0,n(A));u(B,O)&&(O=B),D[M]=B},!0),O}function y($){var D=$.size();if(D[0]!==D[1])throw new RangeError("Invalid matrix dimensions");var O=f($),A=l(O,$),T=p(A).values.toArray(),M=T[T.length-1];return n(i(M))}function w($){var D=[],O=0;return $.forEach(function(A,T){var M=T[0],B=r(D[M]||0,n(A));u(B,O)&&(O=B),D[M]=B},!0),O}function b($,D){if(D===1)return x($);if(D===Number.POSITIVE_INFINITY||D==="inf")return w($);if(D==="fro")return g($);if(D===2)return y($);throw new Error("Unsupported parameter value "+D)}function S($,D){var O=$.size();if(O.length===1)return h($,D);if(O.length===2){if(O[0]&&O[1])return b($,D);throw new RangeError("Invalid matrix dimensions")}}}),cO="dot",ADe=["typed","addScalar","multiplyScalar","conj","size"],ODe=se(cO,ADe,e=>{var{typed:t,addScalar:n,multiplyScalar:r,conj:o,size:a}=e;return t(cO,{"Array | DenseMatrix, Array | DenseMatrix":l,"SparseMatrix, SparseMatrix":s});function i(c,d){var f=u(c),p=u(d),v,m;if(f.length===1)v=f[0];else if(f.length===2&&f[1]===1)v=f[0];else throw new RangeError("Expected a column vector, instead got a matrix of size ("+f.join(", ")+")");if(p.length===1)m=p[0];else if(p.length===2&&p[1]===1)m=p[0];else throw new RangeError("Expected a column vector, instead got a matrix of size ("+p.join(", ")+")");if(v!==m)throw new RangeError("Vectors must have equal length ("+v+" != "+m+")");if(v===0)throw new RangeError("Cannot calculate the dot product of empty vectors");return v}function l(c,d){var f=i(c,d),p=mt(c)?c._data:c,v=mt(c)?c._datatype:void 0,m=mt(d)?d._data:d,h=mt(d)?d._datatype:void 0,g=u(c).length===2,x=u(d).length===2,y=n,w=r;if(v&&h&&v===h&&typeof v=="string"){var b=v;y=t.find(n,[b,b]),w=t.find(r,[b,b])}if(!g&&!x){for(var S=w(o(p[0]),m[0]),$=1;$S){w++;continue}b===S&&(h=g(h,x(p[y],m[w])),y++,w++)}return h}function u(c){return mt(c)?c.size():a(c)}}),TDe="trace",MDe=["typed","matrix","add"],NDe=se(TDe,MDe,e=>{var{typed:t,matrix:n,add:r}=e;return t("trace",{Array:function(l){return o(n(l))},SparseMatrix:a,DenseMatrix:o,any:ct});function o(i){var l=i._size,s=i._data;switch(l.length){case 1:if(l[0]===1)return ct(s[0]);throw new RangeError("Matrix must be square (size: "+Et(l)+")");case 2:{var u=l[0],c=l[1];if(u===c){for(var d=0,f=0;f0)for(var v=0;vv)break}return p}throw new RangeError("Matrix must be square (size: "+Et(c)+")")}}),dO="index",PDe=["typed","Index"],IDe=se(dO,PDe,e=>{var{typed:t,Index:n}=e;return t(dO,{"...number | string | BigNumber | Range | Array | Matrix":function(o){var a=o.map(function(l){return Ot(l)?l.toNumber():Array.isArray(l)||mt(l)?l.map(function(s){return Ot(s)?s.toNumber():s}):l}),i=new n;return n.apply(i,a),i}})}),SB=new Set(["end"]),_De="Node",BDe=["mathWithTransform"],FDe=se(_De,BDe,e=>{var{mathWithTransform:t}=e;function n(o){for(var a of[...SB])if(o.has(a))throw new Error('Scope contains an illegal symbol, "'+a+'" is a reserved keyword')}class r{get type(){return"Node"}get isNode(){return!0}evaluate(a){return this.compile().evaluate(a)}compile(){var a=this._compile(t,{}),i={},l=null;function s(u){var c=ts(u);return n(c),a(c,i,l)}return{evaluate:s}}_compile(a,i){throw new Error("Method _compile must be implemented by type "+this.type)}forEach(a){throw new Error("Cannot run forEach on a Node interface")}map(a){throw new Error("Cannot run map on a Node interface")}_ifNode(a){if(!Kt(a))throw new TypeError("Callback function must return a Node");return a}traverse(a){a(this,null,null);function i(l,s){l.forEach(function(u,c,d){s(u,c,d),i(u,s)})}i(this,a)}transform(a){function i(l,s,u){var c=a(l,s,u);return c!==l?c:l.map(i)}return i(this,null,null)}filter(a){var i=[];return this.traverse(function(l,s,u){a(l,s,u)&&i.push(l)}),i}clone(){throw new Error("Cannot clone a Node interface")}cloneDeep(){return this.map(function(a){return a.cloneDeep()})}equals(a){return a?this.type===a.type&&oc(this,a):!1}toString(a){var i=this._getCustomString(a);return typeof i<"u"?i:this._toString(a)}toJSON(){throw new Error("Cannot serialize object: toJSON not implemented by "+this.type)}toHTML(a){var i=this._getCustomString(a);return typeof i<"u"?i:this.toHTML(a)}_toString(){throw new Error("_toString not implemented for "+this.type)}toTex(a){var i=this._getCustomString(a);return typeof i<"u"?i:this._toTex(a)}_toTex(a){throw new Error("_toTex not implemented for "+this.type)}_getCustomString(a){if(a&&typeof a=="object")switch(typeof a.handler){case"object":case"undefined":return;case"function":return a.handler(this,a);default:throw new TypeError("Object or function expected as callback")}}getIdentifier(){return this.type}getContent(){return this}}return r},{isClass:!0,isNode:!0});function pr(e){return e&&e.isIndexError?new oo(e.index+1,e.min+1,e.max!==void 0?e.max+1:void 0):e}function CB(e){var{subset:t}=e;return function(r,o){try{if(Array.isArray(r))return t(r,o);if(r&&typeof r.subset=="function")return r.subset(o);if(typeof r=="string")return t(r,o);if(typeof r=="object"){if(!o.isObjectProperty())throw new TypeError("Cannot apply a numeric index as object property");return no(r,o.getObjectProperty())}else throw new TypeError("Cannot apply index: unsupported type of object")}catch(a){throw pr(a)}}}var $d="AccessorNode",RDe=["subset","Node"],zDe=se($d,RDe,e=>{var{subset:t,Node:n}=e,r=CB({subset:t});function o(i){return!(ii(i)||Ir(i)||Rt(i)||Sa(i)||Ic(i)||jo(i)||Pn(i))}class a extends n{constructor(l,s){if(super(),!Kt(l))throw new TypeError('Node expected for parameter "object"');if(!ul(s))throw new TypeError('IndexNode expected for parameter "index"');this.object=l,this.index=s}get name(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}get type(){return $d}get isAccessorNode(){return!0}_compile(l,s){var u=this.object._compile(l,s),c=this.index._compile(l,s);if(this.index.isObjectProperty()){var d=this.index.getObjectProperty();return function(p,v,m){return no(u(p,v,m),d)}}else return function(p,v,m){var h=u(p,v,m),g=c(p,v,h);return r(h,g)}}forEach(l){l(this.object,"object",this),l(this.index,"index",this)}map(l){return new a(this._ifNode(l(this.object,"object",this)),this._ifNode(l(this.index,"index",this)))}clone(){return new a(this.object,this.index)}_toString(l){var s=this.object.toString(l);return o(this.object)&&(s="("+s+")"),s+this.index.toString(l)}toHTML(l){var s=this.object.toHTML(l);return o(this.object)&&(s='('+s+')'),s+this.index.toHTML(l)}_toTex(l){var s=this.object.toTex(l);return o(this.object)&&(s="\\left(' + object + '\\right)"),s+this.index.toTex(l)}toJSON(){return{mathjs:$d,object:this.object,index:this.index}}static fromJSON(l){return new a(l.object,l.index)}}return In(a,"name",$d),a},{isClass:!0,isNode:!0}),Ed="ArrayNode",LDe=["Node"],kDe=se(Ed,LDe,e=>{var{Node:t}=e;class n extends t{constructor(o){if(super(),this.items=o||[],!Array.isArray(this.items)||!this.items.every(Kt))throw new TypeError("Array containing Nodes expected")}get type(){return Ed}get isArrayNode(){return!0}_compile(o,a){var i=va(this.items,function(u){return u._compile(o,a)}),l=o.config.matrix!=="Array";if(l){var s=o.matrix;return function(c,d,f){return s(va(i,function(p){return p(c,d,f)}))}}else return function(c,d,f){return va(i,function(p){return p(c,d,f)})}}forEach(o){for(var a=0;a['+a.join(',')+']'}_toTex(o){function a(i,l){var s=i.some(Ir)&&!i.every(Ir),u=l||s,c=u?"&":"\\\\",d=i.map(function(f){return f.items?a(f.items,!l):f.toTex(o)}).join(c);return s||!u||u&&!l?"\\begin{bmatrix}"+d+"\\end{bmatrix}":d}return a(this.items,!1)}}return In(n,"name",Ed),n},{isClass:!0,isNode:!0});function HDe(e){var{subset:t,matrix:n}=e;return function(o,a,i){try{if(Array.isArray(o))return n(o).subset(a,i).valueOf();if(o&&typeof o.subset=="function")return o.subset(a,i);if(typeof o=="string")return t(o,a,i);if(typeof o=="object"){if(!a.isObjectProperty())throw TypeError("Cannot apply a numeric index as object property");return bs(o,a.getObjectProperty(),i),o}else throw new TypeError("Cannot apply index: unsupported type of object")}catch(l){throw pr(l)}}}var co=[{AssignmentNode:{},FunctionAssignmentNode:{}},{ConditionalNode:{latexLeftParens:!1,latexRightParens:!1,latexParens:!1}},{"OperatorNode:or":{op:"or",associativity:"left",associativeWith:[]}},{"OperatorNode:xor":{op:"xor",associativity:"left",associativeWith:[]}},{"OperatorNode:and":{op:"and",associativity:"left",associativeWith:[]}},{"OperatorNode:bitOr":{op:"|",associativity:"left",associativeWith:[]}},{"OperatorNode:bitXor":{op:"^|",associativity:"left",associativeWith:[]}},{"OperatorNode:bitAnd":{op:"&",associativity:"left",associativeWith:[]}},{"OperatorNode:equal":{op:"==",associativity:"left",associativeWith:[]},"OperatorNode:unequal":{op:"!=",associativity:"left",associativeWith:[]},"OperatorNode:smaller":{op:"<",associativity:"left",associativeWith:[]},"OperatorNode:larger":{op:">",associativity:"left",associativeWith:[]},"OperatorNode:smallerEq":{op:"<=",associativity:"left",associativeWith:[]},"OperatorNode:largerEq":{op:">=",associativity:"left",associativeWith:[]},RelationalNode:{associativity:"left",associativeWith:[]}},{"OperatorNode:leftShift":{op:"<<",associativity:"left",associativeWith:[]},"OperatorNode:rightArithShift":{op:">>",associativity:"left",associativeWith:[]},"OperatorNode:rightLogShift":{op:">>>",associativity:"left",associativeWith:[]}},{"OperatorNode:to":{op:"to",associativity:"left",associativeWith:[]}},{RangeNode:{}},{"OperatorNode:add":{op:"+",associativity:"left",associativeWith:["OperatorNode:add","OperatorNode:subtract"]},"OperatorNode:subtract":{op:"-",associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{op:"*",associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]},"OperatorNode:divide":{op:"/",associativity:"left",associativeWith:[],latexLeftParens:!1,latexRightParens:!1,latexParens:!1},"OperatorNode:dotMultiply":{op:".*",associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","OperatorNode:dotMultiply","OperatorNode:doDivide"]},"OperatorNode:dotDivide":{op:"./",associativity:"left",associativeWith:[]},"OperatorNode:mod":{op:"mod",associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]}},{"OperatorNode:unaryPlus":{op:"+",associativity:"right"},"OperatorNode:unaryMinus":{op:"-",associativity:"right"},"OperatorNode:bitNot":{op:"~",associativity:"right"},"OperatorNode:not":{op:"not",associativity:"right"}},{"OperatorNode:pow":{op:"^",associativity:"right",associativeWith:[],latexRightParens:!1},"OperatorNode:dotPow":{op:".^",associativity:"right",associativeWith:[]}},{"OperatorNode:factorial":{op:"!",associativity:"left"}},{"OperatorNode:ctranspose":{op:"'",associativity:"left"}}];function Dd(e,t){if(!t||t!=="auto")return e;for(var n=e;jo(n);)n=n.content;return n}function Yt(e,t,n,r){var o=e;t!=="keep"&&(o=e.getContent());for(var a=o.getIdentifier(),i=null,l=0;l{var{subset:t,matrix:n,Node:r}=e,o=CB({subset:t}),a=HDe({subset:t,matrix:n});function i(s,u,c){u||(u="keep");var d=Yt(s,u,c),f=Yt(s.value,u,c);return u==="all"||f!==null&&f<=d}class l extends r{constructor(u,c,d){if(super(),this.object=u,this.index=d?c:null,this.value=d||c,!Pn(u)&&!ii(u))throw new TypeError('SymbolNode or AccessorNode expected as "object"');if(Pn(u)&&u.name==="end")throw new Error('Cannot assign to symbol "end"');if(this.index&&!ul(this.index))throw new TypeError('IndexNode expected as "index"');if(!Kt(this.value))throw new TypeError('Node expected as "value"')}get name(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}get type(){return Ad}get isAssignmentNode(){return!0}_compile(u,c){var d=this.object._compile(u,c),f=this.index?this.index._compile(u,c):null,p=this.value._compile(u,c),v=this.object.name;if(this.index)if(this.index.isObjectProperty()){var m=this.index.getObjectProperty();return function(w,b,S){var $=d(w,b,S),D=p(w,b,S);return bs($,m,D),D}}else{if(Pn(this.object))return function(w,b,S){var $=d(w,b,S),D=p(w,b,S),O=f(w,b,$);return w.set(v,a($,O,D)),D};var h=this.object.object._compile(u,c);if(this.object.index.isObjectProperty()){var g=this.object.index.getObjectProperty();return function(w,b,S){var $=h(w,b,S),D=no($,g),O=f(w,b,D),A=p(w,b,S);return bs($,g,a(D,O,A)),A}}else{var x=this.object.index._compile(u,c);return function(w,b,S){var $=h(w,b,S),D=x(w,b,$),O=o($,D),A=f(w,b,O),T=p(w,b,S);return a($,D,a(O,A,T)),T}}}else{if(!Pn(this.object))throw new TypeError("SymbolNode expected as object");return function(w,b,S){var $=p(w,b,S);return w.set(v,$),$}}}forEach(u){u(this.object,"object",this),this.index&&u(this.index,"index",this),u(this.value,"value",this)}map(u){var c=this._ifNode(u(this.object,"object",this)),d=this.index?this._ifNode(u(this.index,"index",this)):null,f=this._ifNode(u(this.value,"value",this));return new l(c,d,f)}clone(){return new l(this.object,this.index,this.value)}_toString(u){var c=this.object.toString(u),d=this.index?this.index.toString(u):"",f=this.value.toString(u);return i(this,u&&u.parenthesis,u&&u.implicit)&&(f="("+f+")"),c+d+" = "+f}toJSON(){return{mathjs:Ad,object:this.object,index:this.index,value:this.value}}static fromJSON(u){return new l(u.object,u.index,u.value)}toHTML(u){var c=this.object.toHTML(u),d=this.index?this.index.toHTML(u):"",f=this.value.toHTML(u);return i(this,u&&u.parenthesis,u&&u.implicit)&&(f='('+f+')'),c+d+'='+f}_toTex(u){var c=this.object.toTex(u),d=this.index?this.index.toTex(u):"",f=this.value.toTex(u);return i(this,u&&u.parenthesis,u&&u.implicit)&&(f="\\left(".concat(f,"\\right)")),c+d+":="+f}}return In(l,"name",Ad),l},{isClass:!0,isNode:!0}),Od="BlockNode",UDe=["ResultSet","Node"],KDe=se(Od,UDe,e=>{var{ResultSet:t,Node:n}=e;class r extends n{constructor(a){if(super(),!Array.isArray(a))throw new Error("Array expected");this.blocks=a.map(function(i){var l=i&&i.node,s=i&&i.visible!==void 0?i.visible:!0;if(!Kt(l))throw new TypeError('Property "node" must be a Node');if(typeof s!="boolean")throw new TypeError('Property "visible" must be a boolean');return{node:l,visible:s}})}get type(){return Od}get isBlockNode(){return!0}_compile(a,i){var l=va(this.blocks,function(s){return{evaluate:s.node._compile(a,i),visible:s.visible}});return function(u,c,d){var f=[];return Mv(l,function(v){var m=v.evaluate(u,c,d);v.visible&&f.push(m)}),new t(f)}}forEach(a){for(var i=0;i;')}).join('
')}_toTex(a){return this.blocks.map(function(i){return i.node.toTex(a)+(i.visible?"":";")}).join(`\\;\\; `)}}return In(r,"name",Od),r},{isClass:!0,isNode:!0}),Td="ConditionalNode",qDe=["Node"],GDe=se(Td,qDe,e=>{var{Node:t}=e;function n(o){if(typeof o=="number"||typeof o=="boolean"||typeof o=="string")return!!o;if(o){if(Ot(o))return!o.isZero();if(vo(o))return!!(o.re||o.im);if(uo(o))return!!o.value}if(o==null)return!1;throw new TypeError('Unsupported type of condition "'+an(o)+'"')}class r extends t{constructor(a,i,l){if(super(),!Kt(a))throw new TypeError("Parameter condition must be a Node");if(!Kt(i))throw new TypeError("Parameter trueExpr must be a Node");if(!Kt(l))throw new TypeError("Parameter falseExpr must be a Node");this.condition=a,this.trueExpr=i,this.falseExpr=l}get type(){return Td}get isConditionalNode(){return!0}_compile(a,i){var l=this.condition._compile(a,i),s=this.trueExpr._compile(a,i),u=this.falseExpr._compile(a,i);return function(d,f,p){return n(l(d,f,p))?s(d,f,p):u(d,f,p)}}forEach(a){a(this.condition,"condition",this),a(this.trueExpr,"trueExpr",this),a(this.falseExpr,"falseExpr",this)}map(a){return new r(this._ifNode(a(this.condition,"condition",this)),this._ifNode(a(this.trueExpr,"trueExpr",this)),this._ifNode(a(this.falseExpr,"falseExpr",this)))}clone(){return new r(this.condition,this.trueExpr,this.falseExpr)}_toString(a){var i=a&&a.parenthesis?a.parenthesis:"keep",l=Yt(this,i,a&&a.implicit),s=this.condition.toString(a),u=Yt(this.condition,i,a&&a.implicit);(i==="all"||this.condition.type==="OperatorNode"||u!==null&&u<=l)&&(s="("+s+")");var c=this.trueExpr.toString(a),d=Yt(this.trueExpr,i,a&&a.implicit);(i==="all"||this.trueExpr.type==="OperatorNode"||d!==null&&d<=l)&&(c="("+c+")");var f=this.falseExpr.toString(a),p=Yt(this.falseExpr,i,a&&a.implicit);return(i==="all"||this.falseExpr.type==="OperatorNode"||p!==null&&p<=l)&&(f="("+f+")"),s+" ? "+c+" : "+f}toJSON(){return{mathjs:Td,condition:this.condition,trueExpr:this.trueExpr,falseExpr:this.falseExpr}}static fromJSON(a){return new r(a.condition,a.trueExpr,a.falseExpr)}toHTML(a){var i=a&&a.parenthesis?a.parenthesis:"keep",l=Yt(this,i,a&&a.implicit),s=this.condition.toHTML(a),u=Yt(this.condition,i,a&&a.implicit);(i==="all"||this.condition.type==="OperatorNode"||u!==null&&u<=l)&&(s='('+s+')');var c=this.trueExpr.toHTML(a),d=Yt(this.trueExpr,i,a&&a.implicit);(i==="all"||this.trueExpr.type==="OperatorNode"||d!==null&&d<=l)&&(c='('+c+')');var f=this.falseExpr.toHTML(a),p=Yt(this.falseExpr,i,a&&a.implicit);return(i==="all"||this.falseExpr.type==="OperatorNode"||p!==null&&p<=l)&&(f='('+f+')'),s+'?'+c+':'+f}_toTex(a){return"\\begin{cases} {"+this.trueExpr.toTex(a)+"}, &\\quad{\\text{if }\\;"+this.condition.toTex(a)+"}\\\\{"+this.falseExpr.toTex(a)+"}, &\\quad{\\text{otherwise}}\\end{cases}"}}return In(r,"name",Td),r},{isClass:!0,isNode:!0}),Ey=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},n=t.preserveFormatting,r=n===void 0?!1:n,o=t.escapeMapFn,a=o===void 0?ZDe:o,i=String(e),l="",s=a(Ey({},XDe),r?Ey({},YDe):{}),u=Object.keys(s),c=function(){var f=!1;u.forEach(function(p,v){f||i.length>=p.length&&i.slice(0,p.length)===p&&(l+=s[u[v]],i=i.slice(p.length,i.length),f=!0)}),f||(l+=i.slice(0,1),i=i.slice(1,i.length))};i;)c();return l};const QDe=JDe;var Dy={Alpha:"A",alpha:"\\alpha",Beta:"B",beta:"\\beta",Gamma:"\\Gamma",gamma:"\\gamma",Delta:"\\Delta",delta:"\\delta",Epsilon:"E",epsilon:"\\epsilon",varepsilon:"\\varepsilon",Zeta:"Z",zeta:"\\zeta",Eta:"H",eta:"\\eta",Theta:"\\Theta",theta:"\\theta",vartheta:"\\vartheta",Iota:"I",iota:"\\iota",Kappa:"K",kappa:"\\kappa",varkappa:"\\varkappa",Lambda:"\\Lambda",lambda:"\\lambda",Mu:"M",mu:"\\mu",Nu:"N",nu:"\\nu",Xi:"\\Xi",xi:"\\xi",Omicron:"O",omicron:"o",Pi:"\\Pi",pi:"\\pi",varpi:"\\varpi",Rho:"P",rho:"\\rho",varrho:"\\varrho",Sigma:"\\Sigma",sigma:"\\sigma",varsigma:"\\varsigma",Tau:"T",tau:"\\tau",Upsilon:"\\Upsilon",upsilon:"\\upsilon",Phi:"\\Phi",phi:"\\phi",varphi:"\\varphi",Chi:"X",chi:"\\chi",Psi:"\\Psi",psi:"\\psi",Omega:"\\Omega",omega:"\\omega",true:"\\mathrm{True}",false:"\\mathrm{False}",i:"i",inf:"\\infty",Inf:"\\infty",infinity:"\\infty",Infinity:"\\infty",oo:"\\infty",lim:"\\lim",undefined:"\\mathbf{?}"},kt={transpose:"^\\top",ctranspose:"^H",factorial:"!",pow:"^",dotPow:".^\\wedge",unaryPlus:"+",unaryMinus:"-",bitNot:"\\~",not:"\\neg",multiply:"\\cdot",divide:"\\frac",dotMultiply:".\\cdot",dotDivide:".:",mod:"\\mod",add:"+",subtract:"-",to:"\\rightarrow",leftShift:"<<",rightArithShift:">>",rightLogShift:">>>",equal:"=",unequal:"\\neq",smaller:"<",larger:">",smallerEq:"\\leq",largerEq:"\\geq",bitAnd:"\\&",bitXor:"\\underline{|}",bitOr:"|",and:"\\wedge",xor:"\\veebar",or:"\\vee"},fO={abs:{1:"\\left|${args[0]}\\right|"},add:{2:"\\left(${args[0]}".concat(kt.add,"${args[1]}\\right)")},cbrt:{1:"\\sqrt[3]{${args[0]}}"},ceil:{1:"\\left\\lceil${args[0]}\\right\\rceil"},cube:{1:"\\left(${args[0]}\\right)^3"},divide:{2:"\\frac{${args[0]}}{${args[1]}}"},dotDivide:{2:"\\left(${args[0]}".concat(kt.dotDivide,"${args[1]}\\right)")},dotMultiply:{2:"\\left(${args[0]}".concat(kt.dotMultiply,"${args[1]}\\right)")},dotPow:{2:"\\left(${args[0]}".concat(kt.dotPow,"${args[1]}\\right)")},exp:{1:"\\exp\\left(${args[0]}\\right)"},expm1:"\\left(e".concat(kt.pow,"{${args[0]}}-1\\right)"),fix:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},floor:{1:"\\left\\lfloor${args[0]}\\right\\rfloor"},gcd:"\\gcd\\left(${args}\\right)",hypot:"\\hypot\\left(${args}\\right)",log:{1:"\\ln\\left(${args[0]}\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}\\right)"},log10:{1:"\\log_{10}\\left(${args[0]}\\right)"},log1p:{1:"\\ln\\left(${args[0]}+1\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}+1\\right)"},log2:"\\log_{2}\\left(${args[0]}\\right)",mod:{2:"\\left(${args[0]}".concat(kt.mod,"${args[1]}\\right)")},multiply:{2:"\\left(${args[0]}".concat(kt.multiply,"${args[1]}\\right)")},norm:{1:"\\left\\|${args[0]}\\right\\|",2:void 0},nthRoot:{2:"\\sqrt[${args[1]}]{${args[0]}}"},nthRoots:{2:"\\{y : $y^{args[1]} = {${args[0]}}\\}"},pow:{2:"\\left(${args[0]}\\right)".concat(kt.pow,"{${args[1]}}")},round:{1:"\\left\\lfloor${args[0]}\\right\\rceil",2:void 0},sign:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},sqrt:{1:"\\sqrt{${args[0]}}"},square:{1:"\\left(${args[0]}\\right)^2"},subtract:{2:"\\left(${args[0]}".concat(kt.subtract,"${args[1]}\\right)")},unaryMinus:{1:"".concat(kt.unaryMinus,"\\left(${args[0]}\\right)")},unaryPlus:{1:"".concat(kt.unaryPlus,"\\left(${args[0]}\\right)")},bitAnd:{2:"\\left(${args[0]}".concat(kt.bitAnd,"${args[1]}\\right)")},bitNot:{1:kt.bitNot+"\\left(${args[0]}\\right)"},bitOr:{2:"\\left(${args[0]}".concat(kt.bitOr,"${args[1]}\\right)")},bitXor:{2:"\\left(${args[0]}".concat(kt.bitXor,"${args[1]}\\right)")},leftShift:{2:"\\left(${args[0]}".concat(kt.leftShift,"${args[1]}\\right)")},rightArithShift:{2:"\\left(${args[0]}".concat(kt.rightArithShift,"${args[1]}\\right)")},rightLogShift:{2:"\\left(${args[0]}".concat(kt.rightLogShift,"${args[1]}\\right)")},bellNumbers:{1:"\\mathrm{B}_{${args[0]}}"},catalan:{1:"\\mathrm{C}_{${args[0]}}"},stirlingS2:{2:"\\mathrm{S}\\left(${args}\\right)"},arg:{1:"\\arg\\left(${args[0]}\\right)"},conj:{1:"\\left(${args[0]}\\right)^*"},im:{1:"\\Im\\left\\lbrace${args[0]}\\right\\rbrace"},re:{1:"\\Re\\left\\lbrace${args[0]}\\right\\rbrace"},and:{2:"\\left(${args[0]}".concat(kt.and,"${args[1]}\\right)")},not:{1:kt.not+"\\left(${args[0]}\\right)"},or:{2:"\\left(${args[0]}".concat(kt.or,"${args[1]}\\right)")},xor:{2:"\\left(${args[0]}".concat(kt.xor,"${args[1]}\\right)")},cross:{2:"\\left(${args[0]}\\right)\\times\\left(${args[1]}\\right)"},ctranspose:{1:"\\left(${args[0]}\\right)".concat(kt.ctranspose)},det:{1:"\\det\\left(${args[0]}\\right)"},dot:{2:"\\left(${args[0]}\\cdot${args[1]}\\right)"},expm:{1:"\\exp\\left(${args[0]}\\right)"},inv:{1:"\\left(${args[0]}\\right)^{-1}"},pinv:{1:"\\left(${args[0]}\\right)^{+}"},sqrtm:{1:"{${args[0]}}".concat(kt.pow,"{\\frac{1}{2}}")},trace:{1:"\\mathrm{tr}\\left(${args[0]}\\right)"},transpose:{1:"\\left(${args[0]}\\right)".concat(kt.transpose)},combinations:{2:"\\binom{${args[0]}}{${args[1]}}"},combinationsWithRep:{2:"\\left(\\!\\!{\\binom{${args[0]}}{${args[1]}}}\\!\\!\\right)"},factorial:{1:"\\left(${args[0]}\\right)".concat(kt.factorial)},gamma:{1:"\\Gamma\\left(${args[0]}\\right)"},lgamma:{1:"\\ln\\Gamma\\left(${args[0]}\\right)"},equal:{2:"\\left(${args[0]}".concat(kt.equal,"${args[1]}\\right)")},larger:{2:"\\left(${args[0]}".concat(kt.larger,"${args[1]}\\right)")},largerEq:{2:"\\left(${args[0]}".concat(kt.largerEq,"${args[1]}\\right)")},smaller:{2:"\\left(${args[0]}".concat(kt.smaller,"${args[1]}\\right)")},smallerEq:{2:"\\left(${args[0]}".concat(kt.smallerEq,"${args[1]}\\right)")},unequal:{2:"\\left(${args[0]}".concat(kt.unequal,"${args[1]}\\right)")},erf:{1:"erf\\left(${args[0]}\\right)"},max:"\\max\\left(${args}\\right)",min:"\\min\\left(${args}\\right)",variance:"\\mathrm{Var}\\left(${args}\\right)",acos:{1:"\\cos^{-1}\\left(${args[0]}\\right)"},acosh:{1:"\\cosh^{-1}\\left(${args[0]}\\right)"},acot:{1:"\\cot^{-1}\\left(${args[0]}\\right)"},acoth:{1:"\\coth^{-1}\\left(${args[0]}\\right)"},acsc:{1:"\\csc^{-1}\\left(${args[0]}\\right)"},acsch:{1:"\\mathrm{csch}^{-1}\\left(${args[0]}\\right)"},asec:{1:"\\sec^{-1}\\left(${args[0]}\\right)"},asech:{1:"\\mathrm{sech}^{-1}\\left(${args[0]}\\right)"},asin:{1:"\\sin^{-1}\\left(${args[0]}\\right)"},asinh:{1:"\\sinh^{-1}\\left(${args[0]}\\right)"},atan:{1:"\\tan^{-1}\\left(${args[0]}\\right)"},atan2:{2:"\\mathrm{atan2}\\left(${args}\\right)"},atanh:{1:"\\tanh^{-1}\\left(${args[0]}\\right)"},cos:{1:"\\cos\\left(${args[0]}\\right)"},cosh:{1:"\\cosh\\left(${args[0]}\\right)"},cot:{1:"\\cot\\left(${args[0]}\\right)"},coth:{1:"\\coth\\left(${args[0]}\\right)"},csc:{1:"\\csc\\left(${args[0]}\\right)"},csch:{1:"\\mathrm{csch}\\left(${args[0]}\\right)"},sec:{1:"\\sec\\left(${args[0]}\\right)"},sech:{1:"\\mathrm{sech}\\left(${args[0]}\\right)"},sin:{1:"\\sin\\left(${args[0]}\\right)"},sinh:{1:"\\sinh\\left(${args[0]}\\right)"},tan:{1:"\\tan\\left(${args[0]}\\right)"},tanh:{1:"\\tanh\\left(${args[0]}\\right)"},to:{2:"\\left(${args[0]}".concat(kt.to,"${args[1]}\\right)")},numeric:function(t,n){return t.args[0].toTex()},number:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"},string:{0:'\\mathtt{""}',1:"\\mathrm{string}\\left(${args[0]}\\right)"},bignumber:{0:"0",1:"\\left(${args[0]}\\right)"},complex:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)+".concat(Dy.i,"\\cdot\\left(${args[1]}\\right)\\right)")},matrix:{0:"\\begin{bmatrix}\\end{bmatrix}",1:"\\left(${args[0]}\\right)",2:"\\left(${args[0]}\\right)"},sparse:{0:"\\begin{bsparse}\\end{bsparse}",1:"\\left(${args[0]}\\right)"},unit:{1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"}},eAe="\\mathrm{${name}}\\left(${args}\\right)",pO={deg:"^\\circ"};function Ay(e){return QDe(e,{preserveFormatting:!0})}function $B(e,t){return t=typeof t>"u"?!1:t,t?Ke(pO,e)?pO[e]:"\\mathrm{"+Ay(e)+"}":Ke(Dy,e)?Dy[e]:Ay(e)}var Md="ConstantNode",tAe=["Node"],nAe=se(Md,tAe,e=>{var{Node:t}=e;class n extends t{constructor(o){super(),this.value=o}get type(){return Md}get isConstantNode(){return!0}_compile(o,a){var i=this.value;return function(){return i}}forEach(o){}map(o){return this.clone()}clone(){return new n(this.value)}_toString(o){return Et(this.value,o)}toHTML(o){var a=this._toString(o);switch(an(this.value)){case"number":case"BigNumber":case"Fraction":return''+a+"";case"string":return''+a+"";case"boolean":return''+a+"";case"null":return''+a+"";case"undefined":return''+a+"";default:return''+a+""}}toJSON(){return{mathjs:Md,value:this.value}}static fromJSON(o){return new n(o.value)}_toTex(o){var a=this._toString(o);switch(an(this.value)){case"string":return"\\mathtt{"+Ay(a)+"}";case"number":case"BigNumber":{if(!isFinite(this.value))return this.value.valueOf()<0?"-\\infty":"\\infty";var i=a.toLowerCase().indexOf("e");if(i!==-1)return a.substring(0,i)+"\\cdot10^{"+a.substring(i+1)+"}"}return a;case"Fraction":return this.value.toLatex();default:return a}}}return In(n,"name",Md),n},{isClass:!0,isNode:!0}),Nd="FunctionAssignmentNode",rAe=["typed","Node"],oAe=se(Nd,rAe,e=>{var{typed:t,Node:n}=e;function r(a,i,l){var s=Yt(a,i,l),u=Yt(a.expr,i,l);return i==="all"||u!==null&&u<=s}class o extends n{constructor(i,l,s){if(super(),typeof i!="string")throw new TypeError('String expected for parameter "name"');if(!Array.isArray(l))throw new TypeError('Array containing strings or objects expected for parameter "params"');if(!Kt(s))throw new TypeError('Node expected for parameter "expr"');if(SB.has(i))throw new Error('Illegal function name, "'+i+'" is a reserved keyword');var u=new Set;for(var c of l){var d=typeof c=="string"?c:c.name;if(u.has(d))throw new Error('Duplicate parameter name "'.concat(d,'"'));u.add(d)}this.name=i,this.params=l.map(function(f){return f&&f.name||f}),this.types=l.map(function(f){return f&&f.type||"any"}),this.expr=s}get type(){return Nd}get isFunctionAssignmentNode(){return!0}_compile(i,l){var s=Object.create(l);Mv(this.params,function(v){s[v]=!0});var u=this.expr._compile(i,s),c=this.name,d=this.params,f=f4(this.types,","),p=c+"("+f4(this.params,", ")+")";return function(m,h,g){var x={};x[f]=function(){for(var w=Object.create(h),b=0;b'+Gr(this.params[u])+"");var c=this.expr.toHTML(i);return r(this,l,i&&i.implicit)&&(c='('+c+')'),''+Gr(this.name)+'('+s.join(',')+')='+c}_toTex(i){var l=i&&i.parenthesis?i.parenthesis:"keep",s=this.expr.toTex(i);return r(this,l,i&&i.implicit)&&(s="\\left(".concat(s,"\\right)")),"\\mathrm{"+this.name+"}\\left("+this.params.map($B).join(",")+"\\right):="+s}}return In(o,"name",Nd),o},{isClass:!0,isNode:!0}),Pd="IndexNode",aAe=["Node","size"],iAe=se(Pd,aAe,e=>{var{Node:t,size:n}=e;class r extends t{constructor(a,i){if(super(),this.dimensions=a,this.dotNotation=i||!1,!Array.isArray(a)||!a.every(Kt))throw new TypeError('Array containing Nodes expected for parameter "dimensions"');if(this.dotNotation&&!this.isObjectProperty())throw new Error("dotNotation only applicable for object properties")}get type(){return Pd}get isIndexNode(){return!0}_compile(a,i){var l=va(this.dimensions,function(u,c){var d=u.filter(v=>v.isSymbolNode&&v.name==="end").length>0;if(d){var f=Object.create(i);f.end=!0;var p=u._compile(a,f);return function(m,h,g){if(!mt(g)&&!Ut(g)&&!Jn(g))throw new TypeError('Cannot resolve "end": context must be a Matrix, Array, or string but is '+an(g));var x=n(g).valueOf(),y=Object.create(h);return y.end=x[c],p(m,y,g)}}else return u._compile(a,i)}),s=no(a,"index");return function(c,d,f){var p=va(l,function(v){return v(c,d,f)});return s(...p)}}forEach(a){for(var i=0;i.'+Gr(this.getObjectProperty())+"":'['+i.join(',')+']'}_toTex(a){var i=this.dimensions.map(function(l){return l.toTex(a)});return this.dotNotation?"."+this.getObjectProperty():"_{"+i.join(",")+"}"}}return In(r,"name",Pd),r},{isClass:!0,isNode:!0}),Id="ObjectNode",lAe=["Node"],sAe=se(Id,lAe,e=>{var{Node:t}=e;class n extends t{constructor(o){if(super(),this.properties=o||{},o&&(typeof o!="object"||!Object.keys(o).every(function(a){return Kt(o[a])})))throw new TypeError("Object containing Nodes expected")}get type(){return Id}get isObjectNode(){return!0}_compile(o,a){var i={};for(var l in this.properties)if(Ke(this.properties,l)){var s=wd(l),u=JSON.parse(s);if(!zw(this.properties,u))throw new Error('No access to property "'+u+'"');i[u]=this.properties[l]._compile(o,a)}return function(d,f,p){var v={};for(var m in i)Ke(i,m)&&(v[m]=i[m](d,f,p));return v}}forEach(o){for(var a in this.properties)Ke(this.properties,a)&&o(this.properties[a],"properties["+wd(a)+"]",this)}map(o){var a={};for(var i in this.properties)Ke(this.properties,i)&&(a[i]=this._ifNode(o(this.properties[i],"properties["+wd(i)+"]",this)));return new n(a)}clone(){var o={};for(var a in this.properties)Ke(this.properties,a)&&(o[a]=this.properties[a]);return new n(o)}_toString(o){var a=[];for(var i in this.properties)Ke(this.properties,i)&&a.push(wd(i)+": "+this.properties[i].toString(o));return"{"+a.join(", ")+"}"}toJSON(){return{mathjs:Id,properties:this.properties}}static fromJSON(o){return new n(o.properties)}toHTML(o){var a=[];for(var i in this.properties)Ke(this.properties,i)&&a.push(''+Gr(i)+':'+this.properties[i].toHTML(o));return'{'+a.join(',')+'}'}_toTex(o){var a=[];for(var i in this.properties)Ke(this.properties,i)&&a.push("\\mathbf{"+i+":} & "+this.properties[i].toTex(o)+"\\\\");var l="\\left\\{\\begin{array}{ll}"+a.join(` `)+"\\end{array}\\right\\}";return l}}return In(n,"name",Id),n},{isClass:!0,isNode:!0}),_d="OperatorNode",uAe=["Node"],cAe=se(_d,uAe,e=>{var{Node:t}=e;function n(a,i){var l=a;if(i==="auto")for(;jo(l);)l=l.content;return Rt(l)?!0:bn(l)?n(l.args[0],i):!1}function r(a,i,l,s,u){var c=Yt(a,i,l),d=nu(a,i);if(i==="all"||s.length>2&&a.getIdentifier()!=="OperatorNode:add"&&a.getIdentifier()!=="OperatorNode:multiply")return s.map(function(A){switch(A.getContent().type){case"ArrayNode":case"ConstantNode":case"SymbolNode":case"ParenthesisNode":return!1;default:return!0}});var f;switch(s.length){case 0:f=[];break;case 1:{var p=Yt(s[0],i,l,a);if(u&&p!==null){var v,m;if(i==="keep"?(v=s[0].getIdentifier(),m=a.getIdentifier()):(v=s[0].getContent().getIdentifier(),m=a.getContent().getIdentifier()),co[c][m].latexLeftParens===!1){f=[!1];break}if(co[p][v].latexParens===!1){f=[!1];break}}if(p===null){f=[!1];break}if(p<=c){f=[!0];break}f=[!1]}break;case 2:{var h,g=Yt(s[0],i,l,a),x=bg(a,s[0],i);g===null?h=!1:g===c&&d==="right"&&!x||g=2&&a.getIdentifier()==="OperatorNode:multiply"&&a.implicit&&i!=="all"&&l==="hide")for(var O=1;O2&&(this.getIdentifier()==="OperatorNode:add"||this.getIdentifier()==="OperatorNode:multiply")){var h=u.map(function(g,x){return g=g.toString(i),c[x]&&(g="("+g+")"),g});return this.implicit&&this.getIdentifier()==="OperatorNode:multiply"&&s==="hide"?h.join(" "):h.join(" "+this.op+" ")}else return this.fn+"("+this.args.join(", ")+")"}toJSON(){return{mathjs:_d,op:this.op,fn:this.fn,args:this.args,implicit:this.implicit,isPercentage:this.isPercentage}}static fromJSON(i){return new o(i.op,i.fn,i.args,i.implicit,i.isPercentage)}toHTML(i){var l=i&&i.parenthesis?i.parenthesis:"keep",s=i&&i.implicit?i.implicit:"hide",u=this.args,c=r(this,l,s,u,!1);if(u.length===1){var d=nu(this,l),f=u[0].toHTML(i);return c[0]&&(f='('+f+')'),d==="right"?''+Gr(this.op)+""+f:f+''+Gr(this.op)+""}else if(u.length===2){var p=u[0].toHTML(i),v=u[1].toHTML(i);return c[0]&&(p='('+p+')'),c[1]&&(v='('+v+')'),this.implicit&&this.getIdentifier()==="OperatorNode:multiply"&&s==="hide"?p+''+v:p+''+Gr(this.op)+""+v}else{var m=u.map(function(h,g){return h=h.toHTML(i),c[g]&&(h='('+h+')'),h});return u.length>2&&(this.getIdentifier()==="OperatorNode:add"||this.getIdentifier()==="OperatorNode:multiply")?this.implicit&&this.getIdentifier()==="OperatorNode:multiply"&&s==="hide"?m.join(''):m.join(''+Gr(this.op)+""):''+Gr(this.fn)+'('+m.join(',')+')'}}_toTex(i){var l=i&&i.parenthesis?i.parenthesis:"keep",s=i&&i.implicit?i.implicit:"hide",u=this.args,c=r(this,l,s,u,!0),d=kt[this.fn];if(d=typeof d>"u"?this.op:d,u.length===1){var f=nu(this,l),p=u[0].toTex(i);return c[0]&&(p="\\left(".concat(p,"\\right)")),f==="right"?d+p:p+d}else if(u.length===2){var v=u[0],m=v.toTex(i);c[0]&&(m="\\left(".concat(m,"\\right)"));var h=u[1],g=h.toTex(i);c[1]&&(g="\\left(".concat(g,"\\right)"));var x;switch(l==="keep"?x=v.getIdentifier():x=v.getContent().getIdentifier(),this.getIdentifier()){case"OperatorNode:divide":return d+"{"+m+"}{"+g+"}";case"OperatorNode:pow":switch(m="{"+m+"}",g="{"+g+"}",x){case"ConditionalNode":case"OperatorNode:divide":m="\\left(".concat(m,"\\right)")}break;case"OperatorNode:multiply":if(this.implicit&&s==="hide")return m+"~"+g}return m+d+g}else if(u.length>2&&(this.getIdentifier()==="OperatorNode:add"||this.getIdentifier()==="OperatorNode:multiply")){var y=u.map(function(w,b){return w=w.toTex(i),c[b]&&(w="\\left(".concat(w,"\\right)")),w});return this.getIdentifier()==="OperatorNode:multiply"&&this.implicit&&s==="hide"?y.join("~"):y.join(d)}else return"\\mathrm{"+this.fn+"}\\left("+u.map(function(w){return w.toTex(i)}).join(",")+"\\right)"}getIdentifier(){return this.type+":"+this.fn}}return In(o,"name",_d),o},{isClass:!0,isNode:!0}),Bd="ParenthesisNode",dAe=["Node"],fAe=se(Bd,dAe,e=>{var{Node:t}=e;class n extends t{constructor(o){if(super(),!Kt(o))throw new TypeError('Node expected for parameter "content"');this.content=o}get type(){return Bd}get isParenthesisNode(){return!0}_compile(o,a){return this.content._compile(o,a)}getContent(){return this.content.getContent()}forEach(o){o(this.content,"content",this)}map(o){var a=o(this.content,"content",this);return new n(a)}clone(){return new n(this.content)}_toString(o){return!o||o&&!o.parenthesis||o&&o.parenthesis==="keep"?"("+this.content.toString(o)+")":this.content.toString(o)}toJSON(){return{mathjs:Bd,content:this.content}}static fromJSON(o){return new n(o.content)}toHTML(o){return!o||o&&!o.parenthesis||o&&o.parenthesis==="keep"?'('+this.content.toHTML(o)+')':this.content.toHTML(o)}_toTex(o){return!o||o&&!o.parenthesis||o&&o.parenthesis==="keep"?"\\left(".concat(this.content.toTex(o),"\\right)"):this.content.toTex(o)}}return In(n,"name",Bd),n},{isClass:!0,isNode:!0}),Fd="RangeNode",pAe=["Node"],mAe=se(Fd,pAe,e=>{var{Node:t}=e;function n(o,a,i){var l=Yt(o,a,i),s={},u=Yt(o.start,a,i);if(s.start=u!==null&&u<=l||a==="all",o.step){var c=Yt(o.step,a,i);s.step=c!==null&&c<=l||a==="all"}var d=Yt(o.end,a,i);return s.end=d!==null&&d<=l||a==="all",s}class r extends t{constructor(a,i,l){if(super(),!Kt(a))throw new TypeError("Node expected");if(!Kt(i))throw new TypeError("Node expected");if(l&&!Kt(l))throw new TypeError("Node expected");if(arguments.length>3)throw new Error("Too many arguments");this.start=a,this.end=i,this.step=l||null}get type(){return Fd}get isRangeNode(){return!0}needsEnd(){var a=this.filter(function(i){return Pn(i)&&i.name==="end"});return a.length>0}_compile(a,i){var l=a.range,s=this.start._compile(a,i),u=this.end._compile(a,i);if(this.step){var c=this.step._compile(a,i);return function(f,p,v){return l(s(f,p,v),u(f,p,v),c(f,p,v))}}else return function(f,p,v){return l(s(f,p,v),u(f,p,v))}}forEach(a){a(this.start,"start",this),a(this.end,"end",this),this.step&&a(this.step,"step",this)}map(a){return new r(this._ifNode(a(this.start,"start",this)),this._ifNode(a(this.end,"end",this)),this.step&&this._ifNode(a(this.step,"step",this)))}clone(){return new r(this.start,this.end,this.step&&this.step)}_toString(a){var i=a&&a.parenthesis?a.parenthesis:"keep",l=n(this,i,a&&a.implicit),s,u=this.start.toString(a);if(l.start&&(u="("+u+")"),s=u,this.step){var c=this.step.toString(a);l.step&&(c="("+c+")"),s+=":"+c}var d=this.end.toString(a);return l.end&&(d="("+d+")"),s+=":"+d,s}toJSON(){return{mathjs:Fd,start:this.start,end:this.end,step:this.step}}static fromJSON(a){return new r(a.start,a.end,a.step)}toHTML(a){var i=a&&a.parenthesis?a.parenthesis:"keep",l=n(this,i,a&&a.implicit),s,u=this.start.toHTML(a);if(l.start&&(u='('+u+')'),s=u,this.step){var c=this.step.toHTML(a);l.step&&(c='('+c+')'),s+=':'+c}var d=this.end.toHTML(a);return l.end&&(d='('+d+')'),s+=':'+d,s}_toTex(a){var i=a&&a.parenthesis?a.parenthesis:"keep",l=n(this,i,a&&a.implicit),s=this.start.toTex(a);if(l.start&&(s="\\left(".concat(s,"\\right)")),this.step){var u=this.step.toTex(a);l.step&&(u="\\left(".concat(u,"\\right)")),s+=":"+u}var c=this.end.toTex(a);return l.end&&(c="\\left(".concat(c,"\\right)")),s+=":"+c,s}}return In(r,"name",Fd),r},{isClass:!0,isNode:!0}),Rd="RelationalNode",vAe=["Node"],hAe=se(Rd,vAe,e=>{var{Node:t}=e,n={equal:"==",unequal:"!=",smaller:"<",larger:">",smallerEq:"<=",largerEq:">="};class r extends t{constructor(a,i){if(super(),!Array.isArray(a))throw new TypeError("Parameter conditionals must be an array");if(!Array.isArray(i))throw new TypeError("Parameter params must be an array");if(a.length!==i.length-1)throw new TypeError("Parameter params must contain exactly one more element than parameter conditionals");this.conditionals=a,this.params=i}get type(){return Rd}get isRelationalNode(){return!0}_compile(a,i){var l=this,s=this.params.map(u=>u._compile(a,i));return function(c,d,f){for(var p,v=s[0](c,d,f),m=0;ma(i,"params["+l+"]",this),this)}map(a){return new r(this.conditionals.slice(),this.params.map((i,l)=>this._ifNode(a(i,"params["+l+"]",this)),this))}clone(){return new r(this.conditionals,this.params)}_toString(a){for(var i=a&&a.parenthesis?a.parenthesis:"keep",l=Yt(this,i,a&&a.implicit),s=this.params.map(function(d,f){var p=Yt(d,i,a&&a.implicit);return i==="all"||p!==null&&p<=l?"("+d.toString(a)+")":d.toString(a)}),u=s[0],c=0;c('+d.toHTML(a)+')':d.toHTML(a)}),u=s[0],c=0;c'+Gr(n[this.conditionals[c]])+""+s[c+1];return u}_toTex(a){for(var i=a&&a.parenthesis?a.parenthesis:"keep",l=Yt(this,i,a&&a.implicit),s=this.params.map(function(d,f){var p=Yt(d,i,a&&a.implicit);return i==="all"||p!==null&&p<=l?"\\left("+d.toTex(a)+"\right)":d.toTex(a)}),u=s[0],c=0;c{var{math:t,Unit:n,Node:r}=e;function o(i){return n?n.isValuelessUnit(i):!1}class a extends r{constructor(l){if(super(),typeof l!="string")throw new TypeError('String expected for parameter "name"');this.name=l}get type(){return"SymbolNode"}get isSymbolNode(){return!0}_compile(l,s){var u=this.name;if(s[u]===!0)return function(d,f,p){return f[u]};if(u in l)return function(d,f,p){return d.has(u)?d.get(u):no(l,u)};var c=o(u);return function(d,f,p){return d.has(u)?d.get(u):c?new n(null,u):a.onUndefinedSymbol(u)}}forEach(l){}map(l){return this.clone()}static onUndefinedSymbol(l){throw new Error("Undefined symbol "+l)}clone(){return new a(this.name)}_toString(l){return this.name}toHTML(l){var s=Gr(this.name);return s==="true"||s==="false"?''+s+"":s==="i"?''+s+"":s==="Infinity"?''+s+"":s==="NaN"?''+s+"":s==="null"?''+s+"":s==="undefined"?''+s+"":''+s+""}toJSON(){return{mathjs:"SymbolNode",name:this.name}}static fromJSON(l){return new a(l.name)}_toTex(l){var s=!1;typeof t[this.name]>"u"&&o(this.name)&&(s=!0);var u=$B(this.name,s);return u[0]==="\\"?u:" "+u}}return a},{isClass:!0,isNode:!0});function cu(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{var{math:t,Node:n,SymbolNode:r}=e,o=l=>Et(l,{truncate:78});function a(l,s,u){for(var c="",d=/\$(?:\{([a-z_][a-z_0-9]*)(?:\[([0-9]+)\])?\}|\$)/gi,f=0,p;(p=d.exec(l))!==null;)if(c+=l.substring(f,p.index),f=p.index,p[0]==="$$")c+="$",f++;else{f+=p[0].length;var v=s[p[1]];if(!v)throw new ReferenceError("Template: Property "+p[1]+" does not exist.");if(p[2]===void 0)switch(typeof v){case"string":c+=v;break;case"object":if(Kt(v))c+=v.toTex(u);else if(Array.isArray(v))c+=v.map(function(m,h){if(Kt(m))return m.toTex(u);throw new TypeError("Template: "+p[1]+"["+h+"] is not a Node.")}).join(",");else throw new TypeError("Template: "+p[1]+" has to be a Node, String or array of Nodes");break;default:throw new TypeError("Template: "+p[1]+" has to be a Node, String or array of Nodes")}else if(Kt(v[p[2]]&&v[p[2]]))c+=v[p[2]].toTex(u);else throw new TypeError("Template: "+p[1]+"["+p[2]+"] is not a Node.")}return c+=l.slice(f),c}class i extends n{constructor(s,u){if(super(),typeof s=="string"&&(s=new r(s)),!Kt(s))throw new TypeError('Node expected as parameter "fn"');if(!Array.isArray(u)||!u.every(Kt))throw new TypeError('Array containing Nodes expected for parameter "args"');this.fn=s,this.args=u||[]}get name(){return this.fn.name||""}get type(){return zd}get isFunctionNode(){return!0}_compile(s,u){var c=this.args.map($=>$._compile(s,u));if(Pn(this.fn)){var d=this.fn.name;if(u[d]){var h=this.args;return function(D,O,A){var T=O[d];if(typeof T!="function")throw new TypeError("Argument '".concat(d,"' was not a function; received: ").concat(o(T)));if(T.rawArgs)return T(h,s,cu(D,O),D);var M=c.map(B=>B(D,O,A));return T.apply(T,M)}}else{var f=d in s?no(s,d):void 0,p=typeof f=="function"&&f.rawArgs===!0,v=$=>{var D;if($.has(d))D=$.get(d);else if(d in s)D=no(s,d);else return i.onUndefinedFunction(d);if(typeof D=="function")return D;throw new TypeError("'".concat(d,`' is not a function; its value is: `).concat(o(D)))};if(p){var m=this.args;return function(D,O,A){var T=v(D);return T(m,s,cu(D,O),D)}}else switch(c.length){case 0:return function(D,O,A){var T=v(D);return T()};case 1:return function(D,O,A){var T=v(D),M=c[0];return T(M(D,O,A))};case 2:return function(D,O,A){var T=v(D),M=c[0],B=c[1];return T(M(D,O,A),B(D,O,A))};default:return function(D,O,A){var T=v(D),M=c.map(B=>B(D,O,A));return T(...M)}}}}else if(ii(this.fn)&&ul(this.fn.index)&&this.fn.index.isObjectProperty()){var g=this.fn.object._compile(s,u),x=this.fn.index.getObjectProperty(),y=this.args;return function(D,O,A){var T=g(D,O,A);Z1e(T,x);var M=T[x]&&T[x].rawArgs;if(M)return T[x](y,s,cu(D,O),D);var B=c.map(F=>F(D,O,A));return T[x].apply(T,B)}}else{var w=this.fn.toString(),b=this.fn._compile(s,u),S=this.args;return function(D,O,A){var T=b(D,O,A);if(typeof T!="function")throw new TypeError("Expression '".concat(w,"' did not evaluate to a function; value is:")+` `.concat(o(T)));if(T.rawArgs)return T(S,s,cu(D,O),D);var M=c.map(B=>B(D,O,A));return T.apply(T,M)}}}forEach(s){s(this.fn,"fn",this);for(var u=0;u'+Gr(this.fn)+'('+u.join(',')+')'}toTex(s){var u;return s&&typeof s.handler=="object"&&Ke(s.handler,this.name)&&(u=s.handler[this.name](this,s)),typeof u<"u"?u:super.toTex(s)}_toTex(s){var u=this.args.map(function(f){return f.toTex(s)}),c;fO[this.name]&&(c=fO[this.name]),t[this.name]&&(typeof t[this.name].toTex=="function"||typeof t[this.name].toTex=="object"||typeof t[this.name].toTex=="string")&&(c=t[this.name].toTex);var d;switch(typeof c){case"function":d=c(this,s);break;case"string":d=a(c,this,s);break;case"object":switch(typeof c[u.length]){case"function":d=c[u.length](this,s);break;case"string":d=a(c[u.length],this,s);break}}return typeof d<"u"?d:a(eAe,this,s)}getIdentifier(){return this.type+":"+this.name}}return In(i,"name",zd),In(i,"onUndefinedFunction",function(l){throw new Error("Undefined function "+l)}),In(i,"fromJSON",function(l){return new i(l.fn,l.args)}),i},{isClass:!0,isNode:!0}),mO="parse",SAe=["typed","numeric","config","AccessorNode","ArrayNode","AssignmentNode","BlockNode","ConditionalNode","ConstantNode","FunctionAssignmentNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","RangeNode","RelationalNode","SymbolNode"],CAe=se(mO,SAe,e=>{var{typed:t,numeric:n,config:r,AccessorNode:o,ArrayNode:a,AssignmentNode:i,BlockNode:l,ConditionalNode:s,ConstantNode:u,FunctionAssignmentNode:c,FunctionNode:d,IndexNode:f,ObjectNode:p,OperatorNode:v,ParenthesisNode:m,RangeNode:h,RelationalNode:g,SymbolNode:x}=e,y=t(mO,{string:function(fe){return L(fe,{})},"Array | Matrix":function(fe){return w(fe,{})},"string, Object":function(fe,De){var Ie=De.nodes!==void 0?De.nodes:{};return L(fe,Ie)},"Array | Matrix, Object":w});function w(W){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},De=fe.nodes!==void 0?fe.nodes:{};return Tt(W,function(Ie){if(typeof Ie!="string")throw new TypeError("String expected");return L(Ie,De)})}var b={NULL:0,DELIMITER:1,NUMBER:2,SYMBOL:3,UNKNOWN:4},S={",":!0,"(":!0,")":!0,"[":!0,"]":!0,"{":!0,"}":!0,'"':!0,"'":!0,";":!0,"+":!0,"-":!0,"*":!0,".*":!0,"/":!0,"./":!0,"%":!0,"^":!0,".^":!0,"~":!0,"!":!0,"&":!0,"|":!0,"^|":!0,"=":!0,":":!0,"?":!0,"==":!0,"!=":!0,"<":!0,">":!0,"<=":!0,">=":!0,"<<":!0,">>":!0,">>>":!0},$={mod:!0,to:!0,in:!0,and:!0,xor:!0,or:!0,not:!0},D={true:!0,false:!1,null:null,undefined:void 0},O=["NaN","Infinity"];function A(){return{extraNodes:{},expression:"",comment:"",index:0,token:"",tokenType:b.NULL,nestingLevel:0,conditionalLevel:null}}function T(W,fe){return W.expression.substr(W.index,fe)}function M(W){return T(W,1)}function B(W){W.index++}function F(W){return W.expression.charAt(W.index-1)}function P(W){return W.expression.charAt(W.index+1)}function I(W){for(W.tokenType=b.NULL,W.token="",W.comment="";;){if(M(W)==="#")for(;M(W)!==` `&&M(W)!=="";)W.comment+=M(W),B(W);if(y.isWhitespace(M(W),W.nestingLevel))B(W);else break}if(M(W)===""){W.tokenType=b.DELIMITER;return}if(M(W)===` `&&!W.nestingLevel){W.tokenType=b.DELIMITER,W.token=M(W),B(W);return}var fe=M(W),De=T(W,2),Ie=T(W,3);if(Ie.length===3&&S[Ie]){W.tokenType=b.DELIMITER,W.token=Ie,B(W),B(W),B(W);return}if(De.length===2&&S[De]){W.tokenType=b.DELIMITER,W.token=De,B(W),B(W);return}if(S[fe]){W.tokenType=b.DELIMITER,W.token=fe,B(W);return}if(y.isDigitDot(fe)){W.tokenType=b.NUMBER;var Ve=T(W,2);if(Ve==="0b"||Ve==="0o"||Ve==="0x"){for(W.token+=M(W),B(W),W.token+=M(W),B(W);y.isHexDigit(M(W));)W.token+=M(W),B(W);if(M(W)===".")for(W.token+=".",B(W);y.isHexDigit(M(W));)W.token+=M(W),B(W);else if(M(W)==="i")for(W.token+="i",B(W);y.isDigit(M(W));)W.token+=M(W),B(W);return}if(M(W)==="."){if(W.token+=M(W),B(W),!y.isDigit(M(W))){W.tokenType=b.DELIMITER;return}}else{for(;y.isDigit(M(W));)W.token+=M(W),B(W);y.isDecimalMark(M(W),P(W))&&(W.token+=M(W),B(W))}for(;y.isDigit(M(W));)W.token+=M(W),B(W);if(M(W)==="E"||M(W)==="e"){if(y.isDigit(P(W))||P(W)==="-"||P(W)==="+"){if(W.token+=M(W),B(W),(M(W)==="+"||M(W)==="-")&&(W.token+=M(W),B(W)),!y.isDigit(M(W)))throw Be(W,'Digit expected, got "'+M(W)+'"');for(;y.isDigit(M(W));)W.token+=M(W),B(W);if(y.isDecimalMark(M(W),P(W)))throw Be(W,'Digit expected, got "'+M(W)+'"')}else if(P(W)===".")throw B(W),Be(W,'Digit expected, got "'+M(W)+'"')}return}if(y.isAlpha(M(W),F(W),P(W))){for(;y.isAlpha(M(W),F(W),P(W))||y.isDigit(M(W));)W.token+=M(W),B(W);Ke($,W.token)?W.tokenType=b.DELIMITER:W.tokenType=b.SYMBOL;return}for(W.tokenType=b.UNKNOWN;M(W)!=="";)W.token+=M(W),B(W);throw Be(W,'Syntax error in part "'+W.token+'"')}function N(W){do I(W);while(W.token===` `)}function R(W){W.nestingLevel++}function _(W){W.nestingLevel--}y.isAlpha=function(fe,De,Ie){return y.isValidLatinOrGreek(fe)||y.isValidMathSymbol(fe,Ie)||y.isValidMathSymbol(De,fe)},y.isValidLatinOrGreek=function(fe){return/^[a-zA-Z_$\u00C0-\u02AF\u0370-\u03FF\u2100-\u214F]$/.test(fe)},y.isValidMathSymbol=function(fe,De){return/^[\uD835]$/.test(fe)&&/^[\uDC00-\uDFFF]$/.test(De)&&/^[^\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDFCC\uDFCD]$/.test(De)},y.isWhitespace=function(fe,De){return fe===" "||fe===" "||fe===` `&&De>0},y.isDecimalMark=function(fe,De){return fe==="."&&De!=="/"&&De!=="*"&&De!=="^"},y.isDigitDot=function(fe){return fe>="0"&&fe<="9"||fe==="."},y.isDigit=function(fe){return fe>="0"&&fe<="9"},y.isHexDigit=function(fe){return fe>="0"&&fe<="9"||fe>="a"&&fe<="f"||fe>="A"&&fe<="F"};function L(W,fe){var De=A();E(De,{expression:W,extraNodes:fe}),I(De);var Ie=k(De);if(De.token!=="")throw De.tokenType===b.DELIMITER?je(De,"Unexpected operator "+De.token):Be(De,'Unexpected part "'+De.token+'"');return Ie}function k(W){var fe,De=[],Ie;for(W.token!==""&&W.token!==` `&&W.token!==";"&&(fe=H(W),W.comment&&(fe.comment=W.comment));W.token===` `||W.token===";";)De.length===0&&fe&&(Ie=W.token!==";",De.push({node:fe,visible:Ie})),I(W),W.token!==` `&&W.token!==";"&&W.token!==""&&(fe=H(W),W.comment&&(fe.comment=W.comment),Ie=W.token!==";",De.push({node:fe,visible:Ie}));return De.length>0?new l(De):(fe||(fe=new u(void 0),W.comment&&(fe.comment=W.comment)),fe)}function H(W){var fe,De,Ie,Ve,Ge=V(W);if(W.token==="="){if(Pn(Ge))return fe=Ge.name,N(W),Ie=H(W),new i(new x(fe),Ie);if(ii(Ge))return N(W),Ie=H(W),new i(Ge.object,Ge.index,Ie);if(Sa(Ge)&&Pn(Ge.fn)&&(Ve=!0,De=[],fe=Ge.name,Ge.args.forEach(function(Ct,Nt){Pn(Ct)?De[Nt]=Ct.name:Ve=!1}),Ve))return N(W),Ie=H(W),new c(fe,De,Ie);throw Be(W,"Invalid left hand side of assignment operator =")}return Ge}function V(W){for(var fe=U(W);W.token==="?";){var De=W.conditionalLevel;W.conditionalLevel=W.nestingLevel,N(W);var Ie=fe,Ve=H(W);if(W.token!==":")throw Be(W,"False part of conditional expression expected");W.conditionalLevel=null,N(W);var Ge=H(W);fe=new s(Ie,Ve,Ge),W.conditionalLevel=De}return fe}function U(W){for(var fe=q(W);W.token==="or";)N(W),fe=new v("or","or",[fe,q(W)]);return fe}function q(W){for(var fe=K(W);W.token==="xor";)N(W),fe=new v("xor","xor",[fe,K(W)]);return fe}function K(W){for(var fe=X(W);W.token==="and";)N(W),fe=new v("and","and",[fe,X(W)]);return fe}function X(W){for(var fe=re(W);W.token==="|";)N(W),fe=new v("|","bitOr",[fe,re(W)]);return fe}function re(W){for(var fe=ee(W);W.token==="^|";)N(W),fe=new v("^|","bitXor",[fe,ee(W)]);return fe}function ee(W){for(var fe=G(W);W.token==="&";)N(W),fe=new v("&","bitAnd",[fe,G(W)]);return fe}function G(W){for(var fe=[le(W)],De=[],Ie={"==":"equal","!=":"unequal","<":"smaller",">":"larger","<=":"smallerEq",">=":"largerEq"};Ke(Ie,W.token);){var Ve={name:W.token,fn:Ie[W.token]};De.push(Ve),N(W),fe.push(le(W))}return fe.length===1?fe[0]:fe.length===2?new v(De[0].name,De[0].fn,fe):new g(De.map(Ge=>Ge.fn),fe)}function le(W){var fe,De,Ie,Ve;fe=ue(W);for(var Ge={"<<":"leftShift",">>":"rightArithShift",">>>":"rightLogShift"};Ke(Ge,W.token);)De=W.token,Ie=Ge[De],N(W),Ve=[fe,ue(W)],fe=new v(De,Ie,Ve);return fe}function ue(W){var fe,De,Ie,Ve;fe=me(W);for(var Ge={to:"to",in:"to"};Ke(Ge,W.token);)De=W.token,Ie=Ge[De],N(W),De==="in"&&W.token===""?fe=new v("*","multiply",[fe,new x("in")],!0):(Ve=[fe,me(W)],fe=new v(De,Ie,Ve));return fe}function me(W){var fe,De=[];if(W.token===":"?fe=new u(1):fe=Se(W),W.token===":"&&W.conditionalLevel!==W.nestingLevel){for(De.push(fe);W.token===":"&&De.length<3;)N(W),W.token===")"||W.token==="]"||W.token===","||W.token===""?De.push(new x("end")):De.push(Se(W));De.length===3?fe=new h(De[0],De[2],De[1]):fe=new h(De[0],De[1])}return fe}function Se(W){var fe,De,Ie,Ve;fe=Q(W);for(var Ge={"+":"add","-":"subtract"};Ke(Ge,W.token);){De=W.token,Ie=Ge[De],N(W);var Ct=Q(W);Ct.isPercentage?Ve=[fe,new v("*","multiply",[fe,Ct])]:Ve=[fe,Ct],fe=new v(De,Ie,Ve)}return fe}function Q(W){var fe,De,Ie,Ve;fe=te(W),De=fe;for(var Ge={"*":"multiply",".*":"dotMultiply","/":"divide","./":"dotDivide"};Ke(Ge,W.token);)Ie=W.token,Ve=Ge[Ie],N(W),De=te(W),fe=new v(Ie,Ve,[fe,De]);return fe}function te(W){var fe,De;for(fe=de(W),De=fe;W.tokenType===b.SYMBOL||W.token==="in"&&Rt(fe)||W.tokenType===b.NUMBER&&!Rt(De)&&(!bn(De)||De.op==="!")||W.token==="(";)De=de(W),fe=new v("*","multiply",[fe,De],!0);return fe}function de(W){for(var fe=Y(W),De=fe,Ie=[];W.token==="/"&&cy(De);)if(Ie.push(E({},W)),N(W),W.tokenType===b.NUMBER)if(Ie.push(E({},W)),N(W),W.tokenType===b.SYMBOL||W.token==="(")E(W,Ie.pop()),Ie.pop(),De=Y(W),fe=new v("/","divide",[fe,De]);else{Ie.pop(),E(W,Ie.pop());break}else{E(W,Ie.pop());break}return fe}function Y(W){var fe,De,Ie,Ve;fe=ae(W);for(var Ge={"%":"mod",mod:"mod"};Ke(Ge,W.token);)De=W.token,Ie=Ge[De],N(W),De==="%"&&W.tokenType===b.DELIMITER&&W.token!=="("?fe=new v("/","divide",[fe,new u(100)],!1,!0):(Ve=[fe,ae(W)],fe=new v(De,Ie,Ve));return fe}function ae(W){var fe,De,Ie,Ve={"-":"unaryMinus","+":"unaryPlus","~":"bitNot",not:"not"};return Ke(Ve,W.token)?(Ie=Ve[W.token],fe=W.token,N(W),De=[ae(W)],new v(fe,Ie,De)):ce(W)}function ce(W){var fe,De,Ie,Ve;return fe=Ce(W),(W.token==="^"||W.token===".^")&&(De=W.token,Ie=De==="^"?"pow":"dotPow",N(W),Ve=[fe,ae(W)],fe=new v(De,Ie,Ve)),fe}function Ce(W){var fe,De,Ie,Ve;fe=ye(W);for(var Ge={"!":"factorial","'":"ctranspose"};Ke(Ge,W.token);)De=W.token,Ie=Ge[De],I(W),Ve=[fe],fe=new v(De,Ie,Ve),fe=ne(W,fe);return fe}function ye(W){var fe=[];if(W.tokenType===b.SYMBOL&&Ke(W.extraNodes,W.token)){var De=W.extraNodes[W.token];if(I(W),W.token==="("){if(fe=[],R(W),I(W),W.token!==")")for(fe.push(H(W));W.token===",";)I(W),fe.push(H(W));if(W.token!==")")throw Be(W,"Parenthesis ) expected");_(W),I(W)}return new De(fe)}return J(W)}function J(W){var fe,De;return W.tokenType===b.SYMBOL||W.tokenType===b.DELIMITER&&W.token in $?(De=W.token,I(W),Ke(D,De)?fe=new u(D[De]):O.indexOf(De)!==-1?fe=new u(n(De,"number")):fe=new x(De),fe=ne(W,fe),fe):oe(W)}function ne(W,fe,De){for(var Ie;(W.token==="("||W.token==="["||W.token===".")&&(!De||De.indexOf(W.token)!==-1);)if(Ie=[],W.token==="(")if(Pn(fe)||ii(fe)){if(R(W),I(W),W.token!==")")for(Ie.push(H(W));W.token===",";)I(W),Ie.push(H(W));if(W.token!==")")throw Be(W,"Parenthesis ) expected");_(W),I(W),fe=new d(fe,Ie)}else return fe;else if(W.token==="["){if(R(W),I(W),W.token!=="]")for(Ie.push(H(W));W.token===",";)I(W),Ie.push(H(W));if(W.token!=="]")throw Be(W,"Parenthesis ] expected");_(W),I(W),fe=new o(fe,new f(Ie))}else{if(I(W),W.tokenType!==b.SYMBOL)throw Be(W,"Property name expected after dot");Ie.push(new u(W.token)),I(W);var Ve=!0;fe=new o(fe,new f(Ie,Ve))}return fe}function oe(W){var fe,De;return W.token==='"'?(De=ie(W),fe=new u(De),fe=ne(W,fe),fe):ve(W)}function ie(W){for(var fe="";M(W)!==""&&M(W)!=='"';)M(W)==="\\"&&(fe+=M(W),B(W)),fe+=M(W),B(W);if(I(W),W.token!=='"')throw Be(W,'End of string " expected');return I(W),JSON.parse('"'+fe+'"')}function ve(W){var fe,De;return W.token==="'"?(De=we(W),fe=new u(De),fe=ne(W,fe),fe):$e(W)}function we(W){for(var fe="";M(W)!==""&&M(W)!=="'";)M(W)==="\\"&&(fe+=M(W),B(W)),fe+=M(W),B(W);if(I(W),W.token!=="'")throw Be(W,"End of string ' expected");return I(W),JSON.parse('"'+fe+'"')}function $e(W){var fe,De,Ie,Ve;if(W.token==="["){if(R(W),I(W),W.token!=="]"){var Ge=Ae(W);if(W.token===";"){for(Ie=1,De=[Ge];W.token===";";)I(W),De[Ie]=Ae(W),Ie++;if(W.token!=="]")throw Be(W,"End of matrix ] expected");_(W),I(W),Ve=De[0].items.length;for(var Ct=1;Ct{var{typed:t,parse:n}=e;return t(vO,{string:function(o){return n(o).compile()},"Array | Matrix":function(o){return Tt(o,function(a){return n(a).compile()})}})}),hO="evaluate",DAe=["typed","parse"],AAe=se(hO,DAe,e=>{var{typed:t,parse:n}=e;return t(hO,{string:function(o){var a=xs();return n(o).compile().evaluate(a)},"string, Map | Object":function(o,a){return n(o).compile().evaluate(a)},"Array | Matrix":function(o){var a=xs();return Tt(o,function(i){return n(i).compile().evaluate(a)})},"Array | Matrix, Map | Object":function(o,a){return Tt(o,function(i){return n(i).compile().evaluate(a)})}})}),OAe="Parser",TAe=["evaluate"],MAe=se(OAe,TAe,e=>{var{evaluate:t}=e;function n(){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");Object.defineProperty(this,"scope",{value:xs(),writable:!1})}return n.prototype.type="Parser",n.prototype.isParser=!0,n.prototype.evaluate=function(r){return t(r,this.scope)},n.prototype.get=function(r){if(this.scope.has(r))return this.scope.get(r)},n.prototype.getAll=function(){return exe(this.scope)},n.prototype.getAllAsMap=function(){return this.scope},n.prototype.set=function(r,o){return this.scope.set(r,o),o},n.prototype.remove=function(r){this.scope.delete(r)},n.prototype.clear=function(){this.scope.clear()},n},{isClass:!0}),gO="parser",NAe=["typed","Parser"],PAe=se(gO,NAe,e=>{var{typed:t,Parser:n}=e;return t(gO,{"":function(){return new n}})}),yO="lup",IAe=["typed","matrix","abs","addScalar","divideScalar","multiplyScalar","subtract","larger","equalScalar","unaryMinus","DenseMatrix","SparseMatrix","Spa"],_Ae=se(yO,IAe,e=>{var{typed:t,matrix:n,abs:r,addScalar:o,divideScalar:a,multiplyScalar:i,subtract:l,larger:s,equalScalar:u,unaryMinus:c,DenseMatrix:d,SparseMatrix:f,Spa:p}=e;return t(yO,{DenseMatrix:function(g){return v(g)},SparseMatrix:function(g){return m(g)},Array:function(g){var x=n(g),y=v(x);return{L:y.L.valueOf(),U:y.U.valueOf(),p:y.p}}});function v(h){var g=h._size[0],x=h._size[1],y=Math.min(g,x),w=ct(h._data),b=[],S=[g,y],$=[],D=[y,x],O,A,T,M=[];for(O=0;O0)for(O=0;O0&&V.forEach(0,I-1,function(ee,G){f._forEachRow(ee,$,D,O,function(le,ue){le>ee&&V.accumulate(le,c(i(ue,G)))})});var K=I,X=V.get(I),re=r(X);V.forEach(I+1,g-1,function(ee,G){var le=r(G);s(le,re)&&(K=ee,re=le,X=G)}),I!==K&&(f._swapRows(I,K,A[1],$,D,O),f._swapRows(I,K,F[1],T,M,B),V.swap(I,K),L(I,K)),V.forEach(0,g-1,function(ee,G){ee<=I?(T.push(G),M.push(ee)):(G=a(G,X),u(G,0)||($.push(G),D.push(ee)))})};for(I=0;I{var{typed:t,matrix:n,zeros:r,identity:o,isZero:a,equal:i,sign:l,sqrt:s,conj:u,unaryMinus:c,addScalar:d,divideScalar:f,multiplyScalar:p,subtract:v,complex:m}=e;return E(t(bO,{DenseMatrix:function(w){return g(w)},SparseMatrix:function(w){return x()},Array:function(w){var b=n(w),S=g(b);return{Q:S.Q.valueOf(),R:S.R.valueOf()}}}),{_denseQRimpl:h});function h(y){var w=y._size[0],b=y._size[1],S=o([w],"dense"),$=S._data,D=y.clone(),O=D._data,A,T,M,B=r([w],"");for(M=0;M0)for(var S=b[0][0].type==="Complex"?m(0):0,$=0;$=0;){var s=n[i+l],u=n[r+s];u===-1?(l--,a[t++]=s):(n[r+s]=n[o+u],++l,n[i+l]=u)}return t}function zAe(e,t){if(!e)return null;var n=0,r,o=[],a=[],i=0,l=t,s=2*t;for(r=0;r=0;r--)e[r]!==-1&&(a[l+r]=a[i+e[r]],a[i+e[r]]=r);for(r=0;r{var{add:t,multiply:n,transpose:r}=e;return function(c,d){if(!d||c<=0||c>3)return null;var f=d._size,p=f[0],v=f[1],m=0,h=Math.max(16,10*Math.sqrt(v));h=Math.min(v-2,h);var g=o(c,d,p,v,h);kAe(g,s,null);for(var x=g._index,y=g._ptr,w=y[v],b=[],S=[],$=0,D=v+1,O=2*(v+1),A=3*(v+1),T=4*(v+1),M=5*(v+1),B=6*(v+1),F=7*(v+1),P=b,I=a(v,y,S,$,A,P,O,F,D,B,T,M),N=i(v,y,S,M,T,B,h,D,A,P,O),R=0,_,L,k,H,V,U,q,K,X,re,ee,G,le,ue,me,Se;NQ?(U=k,q=Y,K=S[$+k]-Q):(U=x[Y++],q=y[U],K=S[$+U]),V=1;V<=K;V++)_=x[q++],!((X=S[D+_])<=0)&&(de+=X,S[D+_]=-X,x[ce++]=_,S[O+_]!==-1&&(P[S[O+_]]=P[_]),P[_]!==-1?S[O+P[_]]=S[O+_]:S[A+S[M+_]]=S[O+_]);U!==k&&(y[U]=Wa(k),S[B+U]=0)}for(Q!==0&&(w=ce),S[M+k]=de,y[k]=ae,S[$+k]=ce-ae,S[T+k]=-2,I=l(I,m,S,B,v),re=ae;re=I?S[B+U]-=X:S[B+U]!==0&&(S[B+U]=S[M+U]+Ce)}for(re=ae;re0?(Se+=ye,x[ue++]=U,me+=U):(y[U]=Wa(k),S[B+U]=0)}S[T+_]=ue-G+1;var J=ue,ne=G+S[$+_];for(Y=le+1;Y=0))for(me=P[_],_=S[F+me],S[F+me]=-1;_!==-1&&S[O+_]!==-1;_=S[O+_],I++){for(K=S[$+_],ee=S[T+_],Y=y[_]+1;Y<=y[_]+K-1;Y++)S[B+x[Y]]=I;var ie=_;for(L=S[O+_];L!==-1;){var ve=S[$+L]===K&&S[T+L]===ee;for(Y=y[L]+1;ve&&Y<=y[L]+K-1;Y++)S[B+x[Y]]!==I&&(ve=0);ve?(y[L]=Wa(_),S[D+_]+=S[D+L],S[D+L]=0,S[T+L]=-1,L=S[O+L],S[O+ie]=L):(ie=L,L=S[O+L])}}for(Y=ae,re=ae;re=0;L--)S[D+L]>0||(S[O+L]=S[A+y[L]],S[A+y[L]]=L);for(U=v;U>=0;U--)S[D+U]<=0||y[U]!==-1&&(S[O+U]=S[A+y[U]],S[A+y[U]]=U);for(k=0,_=0;_<=v;_++)y[_]===-1&&(k=EB(_,k,S,A,O,b,B));return b.splice(b.length-1,1),b};function o(u,c,d,f,p){var v=r(c);if(u===1&&f===d)return t(c,v);if(u===2){for(var m=v._index,h=v._ptr,g=0,x=0;xp))for(var w=h[x+1];ym)d[h+b]=0,d[p+b]=-1,w++,c[b]=Wa(u),d[h+u]++;else{var $=d[g+S];$!==-1&&(x[$]=b),d[y+b]=d[g+S],d[g+S]=b}}return w}function l(u,c,d,f,p){if(u<2||u+c<0){for(var v=0;v{var{transpose:t}=e;return function(n,r,o,a){if(!n||!r||!o)return null;var i=n._size,l=i[0],s=i[1],u,c,d,f,p,v,m,h=4*s+(a?s+l+1:0),g=[],x=0,y=s,w=2*s,b=3*s,S=4*s,$=5*s+1;for(d=0;d=1&&D[c]++,M.jleaf===2&&D[M.q]--}r[c]!==-1&&(g[x+c]=r[c])}for(c=0;c{var{add:t,multiply:n,transpose:r}=e,o=VAe({add:t,multiply:n,transpose:r}),a=qAe({transpose:r});return function(s,u,c){var d=u._ptr,f=u._size,p=f[1],v,m={};if(m.q=o(s,u),s&&!m.q)return null;if(c){var h=s?RAe(u,null,m.q,0):u;m.parent=LAe(h,1);var g=zAe(m.parent,p);if(m.cp=a(h,m.parent,g,1),h&&m.parent&&m.cp&&i(h,m))for(m.unz=0,v=0;v=0;$--)for(O=u[$],A=u[$+1],D=O;D=0;S--)m[S]=-1,$=h[S],$!==-1&&(g[b+$]++===0&&(g[w+$]=S),g[x+S]=g[y+$],g[y+$]=S);for(s.lnz=0,s.m2=f,$=0;$=0;){e=r[f];var p=o?o[e]:e;Oy(i,e)||(DB(i,e),r[s+f]=p<0?0:xO(i[p]));var v=1;for(c=r[s+f],d=p<0?0:xO(i[p+1]);c{var{divideScalar:t,multiply:n,subtract:r}=e;return function(a,i,l,s,u,c,d){var f=a._values,p=a._index,v=a._ptr,m=a._size,h=m[1],g=i._values,x=i._index,y=i._ptr,w,b,S,$,D=JAe(a,i,l,s,c);for(w=D;w{var{abs:t,divideScalar:n,multiply:r,subtract:o,larger:a,largerEq:i,SparseMatrix:l}=e,s=tOe({divideScalar:n,multiply:r,subtract:o});return function(c,d,f){if(!c)return null;var p=c._size,v=p[1],m,h=100,g=100;d&&(m=d.q,h=d.lnz||h,g=d.unz||g);var x=[],y=[],w=[],b=new l({values:x,index:y,ptr:w,size:[v,v]}),S=[],$=[],D=[],O=new l({values:S,index:$,ptr:D,size:[v,v]}),A=[],T,M,B=[],F=[];for(T=0;T{var{typed:t,abs:n,add:r,multiply:o,transpose:a,divideScalar:i,subtract:l,larger:s,largerEq:u,SparseMatrix:c}=e,d=YAe({add:r,multiply:o,transpose:a}),f=oOe({abs:n,divideScalar:i,multiply:o,subtract:l,larger:s,largerEq:u,SparseMatrix:c});return t(wO,{"SparseMatrix, number, number":function(v,m,h){if(!ot(m)||m<0||m>3)throw new Error("Symbolic Ordering and Analysis order must be an integer number in the interval [0, 3]");if(h<0||h>1)throw new Error("Partial pivoting threshold must be a number from 0 to 1");var g=d(m,v,!1),x=f(v,g,h);return{L:x.L,U:x.U,p:x.pinv,q:g.q,toString:function(){return"L: "+this.L.toString()+` U: `+this.U.toString()+` p: `+this.p.toString()+(this.q?` q: `+this.q.toString():"")+` `}}}})});function SO(e,t){var n,r=t.length,o=[];if(e)for(n=0;n{var{typed:t,matrix:n,lup:r,slu:o,usolve:a,lsolve:i,DenseMatrix:l}=e,s=Bc({DenseMatrix:l});return t(CO,{"Array, Array | Matrix":function(f,p){f=n(f);var v=r(f),m=c(v.L,v.U,v.p,null,p);return m.valueOf()},"DenseMatrix, Array | Matrix":function(f,p){var v=r(f);return c(v.L,v.U,v.p,null,p)},"SparseMatrix, Array | Matrix":function(f,p){var v=r(f);return c(v.L,v.U,v.p,null,p)},"SparseMatrix, Array | Matrix, number, number":function(f,p,v,m){var h=o(f,v,m);return c(h.L,h.U,h.p,h.q,p)},"Object, Array | Matrix":function(f,p){return c(f.L,f.U,f.p,f.q,p)}});function u(d){if(mt(d))return d;if(Ut(d))return n(d);throw new TypeError("Invalid Matrix LU decomposition")}function c(d,f,p,v,m){d=u(d),f=u(f),p&&(m=s(d,m,!0),m._data=SO(p,m._data));var h=i(d,m),g=a(f,h);return v&&(g._data=SO(v,g._data)),g}}),$O="polynomialRoot",uOe=["typed","isZero","equalScalar","add","subtract","multiply","divide","sqrt","unaryMinus","cbrt","typeOf","im","re"],cOe=se($O,uOe,e=>{var{typed:t,isZero:n,equalScalar:r,add:o,subtract:a,multiply:i,divide:l,sqrt:s,unaryMinus:u,cbrt:c,typeOf:d,im:f,re:p}=e;return t($O,{"number|Complex, ...number|Complex":(v,m)=>{for(var h=[v,...m];h.length>0&&n(h[h.length-1]);)h.pop();if(h.length<2)throw new RangeError("Polynomial [".concat(v,", ").concat(m,"] must have a non-zero non-constant coefficient"));switch(h.length){case 2:return[u(l(h[0],h[1]))];case 3:{var[g,x,y]=h,w=i(2,y),b=i(x,x),S=i(4,y,g);if(r(b,S))return[l(u(x),w)];var $=s(a(b,S));return[l(a($,x),w),l(a(u($),x),w)]}case 4:{var[D,O,A,T]=h,M=u(i(3,T)),B=i(A,A),F=i(3,T,O),P=o(i(2,A,A,A),i(27,T,T,D)),I=i(9,T,A,O);if(r(B,F)&&r(P,I))return[l(A,M)];var N=a(B,F),R=a(P,I),_=o(i(18,T,A,O,D),i(A,A,O,O)),L=o(i(4,A,A,A,D),i(4,T,O,O,O),i(27,T,T,D,D));if(r(_,L))return[l(a(i(4,T,A,O),o(i(9,T,T,D),i(A,A,A))),i(T,N)),l(a(i(9,T,D),i(A,O)),i(2,N))];var k;r(B,F)?k=R:k=l(o(R,s(a(i(R,R),i(4,N,N,N)))),2);var H=!0,V=c(k,H).toArray().map(U=>l(o(A,U,l(N,U)),M));return V.map(U=>d(U)==="Complex"&&r(p(U),p(U)+f(U))?p(U):U)}default:throw new RangeError("only implemented for cubic or lower-order polynomials, not ".concat(h))}}})}),dOe="Help",fOe=["parse"],pOe=se(dOe,fOe,e=>{var{parse:t}=e;function n(r){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(!r)throw new Error('Argument "doc" missing');this.doc=r}return n.prototype.type="Help",n.prototype.isHelp=!0,n.prototype.toString=function(){var r=this.doc||{},o=` `;if(r.name&&(o+="Name: "+r.name+` `),r.category&&(o+="Category: "+r.category+` `),r.description&&(o+=`Description: `+r.description+` `),r.syntax&&(o+=`Syntax: `+r.syntax.join(` `)+` `),r.examples){o+=`Examples: `;for(var a={},i=0;ia!=="mathjs").forEach(a=>{o[a]=r[a]}),new n(o)},n.prototype.valueOf=n.prototype.toString,n},{isClass:!0}),mOe="Chain",vOe=["?on","math","typed"],hOe=se(mOe,vOe,e=>{var{on:t,math:n,typed:r}=e;function o(u){if(!(this instanceof o))throw new SyntaxError("Constructor must be called with the new operator");Fw(u)?this.value=u.value:this.value=u}o.prototype.type="Chain",o.prototype.isChain=!0,o.prototype.done=function(){return this.value},o.prototype.valueOf=function(){return this.value},o.prototype.toString=function(){return Et(this.value)},o.prototype.toJSON=function(){return{mathjs:"Chain",value:this.value}},o.fromJSON=function(u){return new o(u.value)};function a(u,c){typeof c=="function"&&(o.prototype[u]=l(c))}function i(u,c){If(o.prototype,u,function(){var f=c();if(typeof f=="function")return l(f)})}function l(u){return function(){if(arguments.length===0)return new o(u(this.value));for(var c=[this.value],d=0;du[v])};for(var f in u)d(f)}};var s={expression:!0,docs:!0,type:!0,classes:!0,json:!0,error:!0,isChain:!0};return o.createProxy(n),t&&t("import",function(u,c,d){d||i(u,c)}),o},{isClass:!0}),EO={name:"e",category:"Constants",syntax:["e"],description:"Euler's number, the base of the natural logarithm. Approximately equal to 2.71828",examples:["e","e ^ 2","exp(2)","log(e)"],seealso:["exp"]},gOe={name:"false",category:"Constants",syntax:["false"],description:"Boolean value false",examples:["false"],seealso:["true"]},yOe={name:"i",category:"Constants",syntax:["i"],description:"Imaginary unit, defined as i*i=-1. A complex number is described as a + b*i, where a is the real part, and b is the imaginary part.",examples:["i","i * i","sqrt(-1)"],seealso:[]},bOe={name:"Infinity",category:"Constants",syntax:["Infinity"],description:"Infinity, a number which is larger than the maximum number that can be handled by a floating point number.",examples:["Infinity","1 / 0"],seealso:[]},xOe={name:"LN10",category:"Constants",syntax:["LN10"],description:"Returns the natural logarithm of 10, approximately equal to 2.302",examples:["LN10","log(10)"],seealso:[]},wOe={name:"LN2",category:"Constants",syntax:["LN2"],description:"Returns the natural logarithm of 2, approximately equal to 0.693",examples:["LN2","log(2)"],seealso:[]},SOe={name:"LOG10E",category:"Constants",syntax:["LOG10E"],description:"Returns the base-10 logarithm of E, approximately equal to 0.434",examples:["LOG10E","log(e, 10)"],seealso:[]},COe={name:"LOG2E",category:"Constants",syntax:["LOG2E"],description:"Returns the base-2 logarithm of E, approximately equal to 1.442",examples:["LOG2E","log(e, 2)"],seealso:[]},$Oe={name:"NaN",category:"Constants",syntax:["NaN"],description:"Not a number",examples:["NaN","0 / 0"],seealso:[]},EOe={name:"null",category:"Constants",syntax:["null"],description:"Value null",examples:["null"],seealso:["true","false"]},DOe={name:"phi",category:"Constants",syntax:["phi"],description:"Phi is the golden ratio. Two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Phi is defined as `(1 + sqrt(5)) / 2` and is approximately 1.618034...",examples:["phi"],seealso:[]},DO={name:"pi",category:"Constants",syntax:["pi"],description:"The number pi is a mathematical constant that is the ratio of a circle's circumference to its diameter, and is approximately equal to 3.14159",examples:["pi","sin(pi/2)"],seealso:["tau"]},AOe={name:"SQRT1_2",category:"Constants",syntax:["SQRT1_2"],description:"Returns the square root of 1/2, approximately equal to 0.707",examples:["SQRT1_2","sqrt(1/2)"],seealso:[]},OOe={name:"SQRT2",category:"Constants",syntax:["SQRT2"],description:"Returns the square root of 2, approximately equal to 1.414",examples:["SQRT2","sqrt(2)"],seealso:[]},TOe={name:"tau",category:"Constants",syntax:["tau"],description:"Tau is the ratio constant of a circle's circumference to radius, equal to 2 * pi, approximately 6.2832.",examples:["tau","2 * pi"],seealso:["pi"]},MOe={name:"true",category:"Constants",syntax:["true"],description:"Boolean value true",examples:["true"],seealso:["false"]},NOe={name:"version",category:"Constants",syntax:["version"],description:"A string with the version number of math.js",examples:["version"],seealso:[]},POe={name:"bignumber",category:"Construction",syntax:["bignumber(x)"],description:"Create a big number from a number or string.",examples:["0.1 + 0.2","bignumber(0.1) + bignumber(0.2)",'bignumber("7.2")','bignumber("7.2e500")',"bignumber([0.1, 0.2, 0.3])"],seealso:["boolean","complex","fraction","index","matrix","string","unit"]},IOe={name:"boolean",category:"Construction",syntax:["x","boolean(x)"],description:"Convert a string or number into a boolean.",examples:["boolean(0)","boolean(1)","boolean(3)",'boolean("true")','boolean("false")',"boolean([1, 0, 1, 1])"],seealso:["bignumber","complex","index","matrix","number","string","unit"]},_Oe={name:"complex",category:"Construction",syntax:["complex()","complex(re, im)","complex(string)"],description:"Create a complex number.",examples:["complex()","complex(2, 3)",'complex("7 - 2i")'],seealso:["bignumber","boolean","index","matrix","number","string","unit"]},BOe={name:"createUnit",category:"Construction",syntax:["createUnit(definitions)","createUnit(name, definition)"],description:"Create a user-defined unit and register it with the Unit type.",examples:['createUnit("foo")','createUnit("knot", {definition: "0.514444444 m/s", aliases: ["knots", "kt", "kts"]})','createUnit("mph", "1 mile/hour")'],seealso:["unit","splitUnit"]},FOe={name:"fraction",category:"Construction",syntax:["fraction(num)","fraction(matrix)","fraction(num,den)","fraction({n: num, d: den})"],description:"Create a fraction from a number or from integer numerator and denominator.",examples:["fraction(0.125)","fraction(1, 3) + fraction(2, 5)","fraction({n: 333, d: 53})","fraction([sqrt(9), sqrt(10), sqrt(11)])"],seealso:["bignumber","boolean","complex","index","matrix","string","unit"]},ROe={name:"index",category:"Construction",syntax:["[start]","[start:end]","[start:step:end]","[start1, start 2, ...]","[start1:end1, start2:end2, ...]","[start1:step1:end1, start2:step2:end2, ...]"],description:"Create an index to get or replace a subset of a matrix",examples:["[1, 2, 3]","A = [1, 2, 3; 4, 5, 6]","A[1, :]","A[1, 2] = 50","A[1:2, 1:2] = ones(2, 2)"],seealso:["bignumber","boolean","complex","matrix,","number","range","string","unit"]},zOe={name:"matrix",category:"Construction",syntax:["[]","[a1, b1, ...; a2, b2, ...]","matrix()",'matrix("dense")',"matrix([...])"],description:"Create a matrix.",examples:["[]","[1, 2, 3]","[1, 2, 3; 4, 5, 6]","matrix()","matrix([3, 4])",'matrix([3, 4; 5, 6], "sparse")','matrix([3, 4; 5, 6], "sparse", "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","sparse"]},LOe={name:"number",category:"Construction",syntax:["x","number(x)","number(unit, valuelessUnit)"],description:"Create a number or convert a string or boolean into a number.",examples:["2","2e3","4.05","number(2)",'number("7.2")',"number(true)","number([true, false, true, true])",'number(unit("52cm"), "m")'],seealso:["bignumber","boolean","complex","fraction","index","matrix","string","unit"]},kOe={name:"sparse",category:"Construction",syntax:["sparse()","sparse([a1, b1, ...; a1, b2, ...])",'sparse([a1, b1, ...; a1, b2, ...], "number")'],description:"Create a sparse matrix.",examples:["sparse()","sparse([3, 4; 5, 6])",'sparse([3, 0; 5, 0], "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","matrix"]},HOe={name:"splitUnit",category:"Construction",syntax:["splitUnit(unit: Unit, parts: Unit[])"],description:"Split a unit in an array of units whose sum is equal to the original unit.",examples:['splitUnit(1 m, ["feet", "inch"])'],seealso:["unit","createUnit"]},jOe={name:"string",category:"Construction",syntax:['"text"',"string(x)"],description:"Create a string or convert a value to a string",examples:['"Hello World!"',"string(4.2)","string(3 + 2i)"],seealso:["bignumber","boolean","complex","index","matrix","number","unit"]},VOe={name:"unit",category:"Construction",syntax:["value unit","unit(value, unit)","unit(string)"],description:"Create a unit.",examples:["5.5 mm","3 inch",'unit(7.1, "kilogram")','unit("23 deg")'],seealso:["bignumber","boolean","complex","index","matrix","number","string"]},WOe={name:"config",category:"Core",syntax:["config()","config(options)"],description:"Get configuration or change configuration.",examples:["config()","1/3 + 1/4",'config({number: "Fraction"})',"1/3 + 1/4"],seealso:[]},UOe={name:"import",category:"Core",syntax:["import(functions)","import(functions, options)"],description:"Import functions or constants from an object.",examples:["import({myFn: f(x)=x^2, myConstant: 32 })","myFn(2)","myConstant"],seealso:[]},KOe={name:"typed",category:"Core",syntax:["typed(signatures)","typed(name, signatures)"],description:"Create a typed function.",examples:['double = typed({ "number": f(x)=x+x })',"double(2)",'double("hello")'],seealso:[]},qOe={name:"derivative",category:"Algebra",syntax:["derivative(expr, variable)","derivative(expr, variable, {simplify: boolean})"],description:"Takes the derivative of an expression expressed in parser Nodes. The derivative will be taken over the supplied variable in the second parameter. If there are multiple variables in the expression, it will return a partial derivative.",examples:['derivative("2x^3", "x")','derivative("2x^3", "x", {simplify: false})','derivative("2x^2 + 3x + 4", "x")','derivative("sin(2x)", "x")','f = parse("x^2 + x")','x = parse("x")',"df = derivative(f, x)","df.evaluate({x: 3})"],seealso:["simplify","parse","evaluate"]},GOe={name:"leafCount",category:"Algebra",syntax:["leafCount(expr)"],description:"Computes the number of leaves in the parse tree of the given expression",examples:['leafCount("e^(i*pi)-1")','leafCount(parse("{a: 22/7, b: 10^(1/2)}"))'],seealso:["simplify"]},XOe={name:"lsolve",category:"Algebra",syntax:["x=lsolve(L, b)"],description:"Finds one solution of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolveAll","lup","lusolve","usolve","matrix","sparse"]},YOe={name:"lsolveAll",category:"Algebra",syntax:["x=lsolveAll(L, b)"],description:"Finds all solutions of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolve","lup","lusolve","usolve","matrix","sparse"]},ZOe={name:"lup",category:"Algebra",syntax:["lup(m)"],description:"Calculate the Matrix LU decomposition with partial pivoting. Matrix A is decomposed in three matrices (L, U, P) where P * A = L * U",examples:["lup([[2, 1], [1, 4]])","lup(matrix([[2, 1], [1, 4]]))","lup(sparse([[2, 1], [1, 4]]))"],seealso:["lusolve","lsolve","usolve","matrix","sparse","slu","qr"]},JOe={name:"lusolve",category:"Algebra",syntax:["x=lusolve(A, b)","x=lusolve(lu, b)"],description:"Solves the linear system A * x = b where A is an [n x n] matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lusolve(a, b)"],seealso:["lup","slu","lsolve","usolve","matrix","sparse"]},QOe={name:"polynomialRoot",category:"Algebra",syntax:["x=polynomialRoot(-6, 3)","x=polynomialRoot(4, -4, 1)","x=polynomialRoot(-8, 12, -6, 1)"],description:"Finds the roots of a univariate polynomial given by its coefficients starting from constant, linear, and so on, increasing in degree.",examples:["a = polynomialRoot(-6, 11, -6 1)"],seealso:["cbrt","sqrt"]},eTe={name:"qr",category:"Algebra",syntax:["qr(A)"],description:"Calculates the Matrix QR decomposition. Matrix `A` is decomposed in two matrices (`Q`, `R`) where `Q` is an orthogonal matrix and `R` is an upper triangular matrix.",examples:["qr([[1, -1, 4], [1, 4, -2], [1, 4, 2], [1, -1, 0]])"],seealso:["lup","slu","matrix"]},tTe={name:"rationalize",category:"Algebra",syntax:["rationalize(expr)","rationalize(expr, scope)","rationalize(expr, scope, detailed)"],description:"Transform a rationalizable expression in a rational fraction. If rational fraction is one variable polynomial then converts the numerator and denominator in canonical form, with decreasing exponents, returning the coefficients of numerator.",examples:['rationalize("2x/y - y/(x+1)")','rationalize("2x/y - y/(x+1)", true)'],seealso:["simplify"]},nTe={name:"resolve",category:"Algebra",syntax:["resolve(node, scope)"],description:"Recursively substitute variables in an expression tree.",examples:['resolve(parse("1 + x"), { x: 7 })','resolve(parse("size(text)"), { text: "Hello World" })','resolve(parse("x + y"), { x: parse("3z") })','resolve(parse("3x"), { x: parse("y+z"), z: parse("w^y") })'],seealso:["simplify","evaluate"],mayThrow:["ReferenceError"]},rTe={name:"simplify",category:"Algebra",syntax:["simplify(expr)","simplify(expr, rules)"],description:"Simplify an expression tree.",examples:['simplify("3 + 2 / 4")','simplify("2x + x")','f = parse("x * (x + 2 + x)")',"simplified = simplify(f)","simplified.evaluate({x: 2})"],seealso:["simplifyCore","derivative","evaluate","parse","rationalize","resolve"]},oTe={name:"simplifyConstant",category:"Algebra",syntax:["simplifyConstant(expr)","simplifyConstant(expr, options)"],description:"Replace constant subexpressions of node with their values.",examples:['simplifyConatant("(3-3)*x")','simplifyConstant(parse("z-cos(tau/8)"))'],seealso:["simplify","simplifyCore","evaluate"]},aTe={name:"simplifyCore",category:"Algebra",syntax:["simplifyCore(node)"],description:"Perform simple one-pass simplifications on an expression tree.",examples:['simplifyCore(parse("0*x"))','simplifyCore(parse("(x+0)*2"))'],seealso:["simplify","simplifyConstant","evaluate"]},iTe={name:"slu",category:"Algebra",syntax:["slu(A, order, threshold)"],description:"Calculate the Matrix LU decomposition with full pivoting. Matrix A is decomposed in two matrices (L, U) and two permutation vectors (pinv, q) where P * A * Q = L * U",examples:["slu(sparse([4.5, 0, 3.2, 0; 3.1, 2.9, 0, 0.9; 0, 1.7, 3, 0; 3.5, 0.4, 0, 1]), 1, 0.001)"],seealso:["lusolve","lsolve","usolve","matrix","sparse","lup","qr"]},lTe={name:"symbolicEqual",category:"Algebra",syntax:["symbolicEqual(expr1, expr2)","symbolicEqual(expr1, expr2, options)"],description:"Returns true if the difference of the expressions simplifies to 0",examples:['symbolicEqual("x*y","y*x")','symbolicEqual("abs(x^2)", "x^2")','symbolicEqual("abs(x)", "x", {context: {abs: {trivial: true}}})'],seealso:["simplify","evaluate"]},sTe={name:"usolve",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds one solution of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolveAll","lup","lusolve","lsolve","matrix","sparse"]},uTe={name:"usolveAll",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds all solutions of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolve","lup","lusolve","lsolve","matrix","sparse"]},cTe={name:"abs",category:"Arithmetic",syntax:["abs(x)"],description:"Compute the absolute value.",examples:["abs(3.5)","abs(-4.2)"],seealso:["sign"]},dTe={name:"add",category:"Operators",syntax:["x + y","add(x, y)"],description:"Add two values.",examples:["a = 2.1 + 3.6","a - 3.6","3 + 2i","3 cm + 2 inch",'"2.3" + "4"'],seealso:["subtract"]},fTe={name:"cbrt",category:"Arithmetic",syntax:["cbrt(x)","cbrt(x, allRoots)"],description:"Compute the cubic root value. If x = y * y * y, then y is the cubic root of x. When `x` is a number or complex number, an optional second argument `allRoots` can be provided to return all three cubic roots. If not provided, the principal root is returned",examples:["cbrt(64)","cube(4)","cbrt(-8)","cbrt(2 + 3i)","cbrt(8i)","cbrt(8i, true)","cbrt(27 m^3)"],seealso:["square","sqrt","cube","multiply"]},pTe={name:"ceil",category:"Arithmetic",syntax:["ceil(x)"],description:"Round a value towards plus infinity. If x is complex, both real and imaginary part are rounded towards plus infinity.",examples:["ceil(3.2)","ceil(3.8)","ceil(-4.2)"],seealso:["floor","fix","round"]},mTe={name:"cube",category:"Arithmetic",syntax:["cube(x)"],description:"Compute the cube of a value. The cube of x is x * x * x.",examples:["cube(2)","2^3","2 * 2 * 2"],seealso:["multiply","square","pow"]},vTe={name:"divide",category:"Operators",syntax:["x / y","divide(x, y)"],description:"Divide two values.",examples:["a = 2 / 3","a * 3","4.5 / 2","3 + 4 / 2","(3 + 4) / 2","18 km / 4.5"],seealso:["multiply"]},hTe={name:"dotDivide",category:"Operators",syntax:["x ./ y","dotDivide(x, y)"],description:"Divide two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a ./ b"],seealso:["multiply","dotMultiply","divide"]},gTe={name:"dotMultiply",category:"Operators",syntax:["x .* y","dotMultiply(x, y)"],description:"Multiply two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a .* b"],seealso:["multiply","divide","dotDivide"]},yTe={name:"dotPow",category:"Operators",syntax:["x .^ y","dotPow(x, y)"],description:"Calculates the power of x to y element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","a .^ 2"],seealso:["pow"]},bTe={name:"exp",category:"Arithmetic",syntax:["exp(x)"],description:"Calculate the exponent of a value.",examples:["exp(1.3)","e ^ 1.3","log(exp(1.3))","x = 2.4","(exp(i*x) == cos(x) + i*sin(x)) # Euler's formula"],seealso:["expm","expm1","pow","log"]},xTe={name:"expm",category:"Arithmetic",syntax:["exp(x)"],description:"Compute the matrix exponential, expm(A) = e^A. The matrix must be square. Not to be confused with exp(a), which performs element-wise exponentiation.",examples:["expm([[0,2],[0,0]])"],seealso:["exp"]},wTe={name:"expm1",category:"Arithmetic",syntax:["expm1(x)"],description:"Calculate the value of subtracting 1 from the exponential value.",examples:["expm1(2)","pow(e, 2) - 1","log(expm1(2) + 1)"],seealso:["exp","pow","log"]},STe={name:"fix",category:"Arithmetic",syntax:["fix(x)"],description:"Round a value towards zero. If x is complex, both real and imaginary part are rounded towards zero.",examples:["fix(3.2)","fix(3.8)","fix(-4.2)","fix(-4.8)"],seealso:["ceil","floor","round"]},CTe={name:"floor",category:"Arithmetic",syntax:["floor(x)"],description:"Round a value towards minus infinity.If x is complex, both real and imaginary part are rounded towards minus infinity.",examples:["floor(3.2)","floor(3.8)","floor(-4.2)"],seealso:["ceil","fix","round"]},$Te={name:"gcd",category:"Arithmetic",syntax:["gcd(a, b)","gcd(a, b, c, ...)"],description:"Compute the greatest common divisor.",examples:["gcd(8, 12)","gcd(-4, 6)","gcd(25, 15, -10)"],seealso:["lcm","xgcd"]},ETe={name:"hypot",category:"Arithmetic",syntax:["hypot(a, b, c, ...)","hypot([a, b, c, ...])"],description:"Calculate the hypotenusa of a list with values. ",examples:["hypot(3, 4)","sqrt(3^2 + 4^2)","hypot(-2)","hypot([3, 4, 5])"],seealso:["abs","norm"]},DTe={name:"invmod",category:"Arithmetic",syntax:["invmod(a, b)"],description:"Calculate the (modular) multiplicative inverse of a modulo b. Solution to the equation ax ≣ 1 (mod b)",examples:["invmod(8, 12)=NaN","invmod(7, 13)=2","invmod(15151, 15122)=10429"],seealso:["gcd","xgcd"]},ATe={name:"lcm",category:"Arithmetic",syntax:["lcm(x, y)"],description:"Compute the least common multiple.",examples:["lcm(4, 6)","lcm(6, 21)","lcm(6, 21, 5)"],seealso:["gcd"]},OTe={name:"log",category:"Arithmetic",syntax:["log(x)","log(x, base)"],description:"Compute the logarithm of a value. If no base is provided, the natural logarithm of x is calculated. If base if provided, the logarithm is calculated for the specified base. log(x, base) is defined as log(x) / log(base).",examples:["log(3.5)","a = log(2.4)","exp(a)","10 ^ 4","log(10000, 10)","log(10000) / log(10)","b = log(1024, 2)","2 ^ b"],seealso:["exp","log1p","log2","log10"]},TTe={name:"log10",category:"Arithmetic",syntax:["log10(x)"],description:"Compute the 10-base logarithm of a value.",examples:["log10(0.00001)","log10(10000)","10 ^ 4","log(10000) / log(10)","log(10000, 10)"],seealso:["exp","log"]},MTe={name:"log1p",category:"Arithmetic",syntax:["log1p(x)","log1p(x, base)"],description:"Calculate the logarithm of a `value+1`",examples:["log1p(2.5)","exp(log1p(1.4))","pow(10, 4)","log1p(9999, 10)","log1p(9999) / log(10)"],seealso:["exp","log","log2","log10"]},NTe={name:"log2",category:"Arithmetic",syntax:["log2(x)"],description:"Calculate the 2-base of a value. This is the same as calculating `log(x, 2)`.",examples:["log2(0.03125)","log2(16)","log2(16) / log2(2)","pow(2, 4)"],seealso:["exp","log1p","log","log10"]},PTe={name:"mod",category:"Operators",syntax:["x % y","x mod y","mod(x, y)"],description:"Calculates the modulus, the remainder of an integer division.",examples:["7 % 3","11 % 2","10 mod 4","isOdd(x) = x % 2","isOdd(2)","isOdd(3)"],seealso:["divide"]},ITe={name:"multiply",category:"Operators",syntax:["x * y","multiply(x, y)"],description:"multiply two values.",examples:["a = 2.1 * 3.4","a / 3.4","2 * 3 + 4","2 * (3 + 4)","3 * 2.1 km"],seealso:["divide"]},_Te={name:"norm",category:"Arithmetic",syntax:["norm(x)","norm(x, p)"],description:"Calculate the norm of a number, vector or matrix.",examples:["abs(-3.5)","norm(-3.5)","norm(3 - 4i)","norm([1, 2, -3], Infinity)","norm([1, 2, -3], -Infinity)","norm([3, 4], 2)","norm([[1, 2], [3, 4]], 1)",'norm([[1, 2], [3, 4]], "inf")','norm([[1, 2], [3, 4]], "fro")']},BTe={name:"nthRoot",category:"Arithmetic",syntax:["nthRoot(a)","nthRoot(a, root)"],description:'Calculate the nth root of a value. The principal nth root of a positive real number A, is the positive real solution of the equation "x^root = A".',examples:["4 ^ 3","nthRoot(64, 3)","nthRoot(9, 2)","sqrt(9)"],seealso:["nthRoots","pow","sqrt"]},FTe={name:"nthRoots",category:"Arithmetic",syntax:["nthRoots(A)","nthRoots(A, root)"],description:'Calculate the nth roots of a value. An nth root of a positive real number A, is a positive real solution of the equation "x^root = A". This function returns an array of complex values.',examples:["nthRoots(1)","nthRoots(1, 3)"],seealso:["sqrt","pow","nthRoot"]},RTe={name:"pow",category:"Operators",syntax:["x ^ y","pow(x, y)"],description:"Calculates the power of x to y, x^y.",examples:["2^3","2*2*2","1 + e ^ (pi * i)","pow([[1, 2], [4, 3]], 2)","pow([[1, 2], [4, 3]], -1)"],seealso:["multiply","nthRoot","nthRoots","sqrt"]},zTe={name:"round",category:"Arithmetic",syntax:["round(x)","round(x, n)"],description:"round a value towards the nearest integer.If x is complex, both real and imaginary part are rounded towards the nearest integer. When n is specified, the value is rounded to n decimals.",examples:["round(3.2)","round(3.8)","round(-4.2)","round(-4.8)","round(pi, 3)","round(123.45678, 2)"],seealso:["ceil","floor","fix"]},LTe={name:"sign",category:"Arithmetic",syntax:["sign(x)"],description:"Compute the sign of a value. The sign of a value x is 1 when x>1, -1 when x<0, and 0 when x=0.",examples:["sign(3.5)","sign(-4.2)","sign(0)"],seealso:["abs"]},kTe={name:"sqrt",category:"Arithmetic",syntax:["sqrt(x)"],description:"Compute the square root value. If x = y * y, then y is the square root of x.",examples:["sqrt(25)","5 * 5","sqrt(-1)"],seealso:["square","sqrtm","multiply","nthRoot","nthRoots","pow"]},HTe={name:"sqrtm",category:"Arithmetic",syntax:["sqrtm(x)"],description:"Calculate the principal square root of a square matrix. The principal square root matrix `X` of another matrix `A` is such that `X * X = A`.",examples:["sqrtm([[33, 24], [48, 57]])"],seealso:["sqrt","abs","square","multiply"]},jTe={name:"sylvester",category:"Matrix",syntax:["sylvester(A,B,C)"],description:"Solves the real-valued Sylvester equation AX+XB=C for X",examples:["sylvester([[-1, -2], [1, 1]], [[-2, 1], [-1, 2]], [[-3, 2], [3, 0]])","sylvester(A,B,C)"],seealso:["schur","lyap"]},VTe={name:"schur",category:"Matrix",syntax:["schur(A)"],description:"Performs a real Schur decomposition of the real matrix A = UTU'",examples:["schur([[1, 0], [-4, 3]])","schur(A)"],seealso:["lyap","sylvester"]},WTe={name:"lyap",category:"Matrix",syntax:["lyap(A,Q)"],description:"Solves the Continuous-time Lyapunov equation AP+PA'+Q=0 for P",examples:["lyap([[-2, 0], [1, -4]], [[3, 1], [1, 3]])","lyap(A,Q)"],seealso:["schur","sylvester"]},UTe={name:"square",category:"Arithmetic",syntax:["square(x)"],description:"Compute the square of a value. The square of x is x * x.",examples:["square(3)","sqrt(9)","3^2","3 * 3"],seealso:["multiply","pow","sqrt","cube"]},KTe={name:"subtract",category:"Operators",syntax:["x - y","subtract(x, y)"],description:"subtract two values.",examples:["a = 5.3 - 2","a + 2","2/3 - 1/6","2 * 3 - 3","2.1 km - 500m"],seealso:["add"]},qTe={name:"unaryMinus",category:"Operators",syntax:["-x","unaryMinus(x)"],description:"Inverse the sign of a value. Converts booleans and strings to numbers.",examples:["-4.5","-(-5.6)",'-"22"'],seealso:["add","subtract","unaryPlus"]},GTe={name:"unaryPlus",category:"Operators",syntax:["+x","unaryPlus(x)"],description:"Converts booleans and strings to numbers.",examples:["+true",'+"2"'],seealso:["add","subtract","unaryMinus"]},XTe={name:"xgcd",category:"Arithmetic",syntax:["xgcd(a, b)"],description:"Calculate the extended greatest common divisor for two values. The result is an array [d, x, y] with 3 entries, where d is the greatest common divisor, and d = x * a + y * b.",examples:["xgcd(8, 12)","gcd(8, 12)","xgcd(36163, 21199)"],seealso:["gcd","lcm"]},YTe={name:"bitAnd",category:"Bitwise",syntax:["x & y","bitAnd(x, y)"],description:"Bitwise AND operation. Performs the logical AND operation on each pair of the corresponding bits of the two given values by multiplying them. If both bits in the compared position are 1, the bit in the resulting binary representation is 1, otherwise, the result is 0",examples:["5 & 3","bitAnd(53, 131)","[1, 12, 31] & 42"],seealso:["bitNot","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},ZTe={name:"bitNot",category:"Bitwise",syntax:["~x","bitNot(x)"],description:"Bitwise NOT operation. Performs a logical negation on each bit of the given value. Bits that are 0 become 1, and those that are 1 become 0.",examples:["~1","~2","bitNot([2, -3, 4])"],seealso:["bitAnd","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},JTe={name:"bitOr",category:"Bitwise",syntax:["x | y","bitOr(x, y)"],description:"Bitwise OR operation. Performs the logical inclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if the first bit is 1 or the second bit is 1 or both bits are 1, otherwise, the result is 0.",examples:["5 | 3","bitOr([1, 2, 3], 4)"],seealso:["bitAnd","bitNot","bitXor","leftShift","rightArithShift","rightLogShift"]},QTe={name:"bitXor",category:"Bitwise",syntax:["bitXor(x, y)"],description:"Bitwise XOR operation, exclusive OR. Performs the logical exclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if only the first bit is 1 or only the second bit is 1, but will be 0 if both are 0 or both are 1.",examples:["bitOr(1, 2)","bitXor([2, 3, 4], 4)"],seealso:["bitAnd","bitNot","bitOr","leftShift","rightArithShift","rightLogShift"]},eMe={name:"leftShift",category:"Bitwise",syntax:["x << y","leftShift(x, y)"],description:"Bitwise left logical shift of a value x by y number of bits.",examples:["4 << 1","8 >> 1"],seealso:["bitAnd","bitNot","bitOr","bitXor","rightArithShift","rightLogShift"]},tMe={name:"rightArithShift",category:"Bitwise",syntax:["x >> y","rightArithShift(x, y)"],description:"Bitwise right arithmetic shift of a value x by y number of bits.",examples:["8 >> 1","4 << 1","-12 >> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightLogShift"]},nMe={name:"rightLogShift",category:"Bitwise",syntax:["x >>> y","rightLogShift(x, y)"],description:"Bitwise right logical shift of a value x by y number of bits.",examples:["8 >>> 1","4 << 1","-12 >>> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightArithShift"]},rMe={name:"bellNumbers",category:"Combinatorics",syntax:["bellNumbers(n)"],description:"The Bell Numbers count the number of partitions of a set. A partition is a pairwise disjoint subset of S whose union is S. `bellNumbers` only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["bellNumbers(3)","bellNumbers(8)"],seealso:["stirlingS2"]},oMe={name:"catalan",category:"Combinatorics",syntax:["catalan(n)"],description:"The Catalan Numbers enumerate combinatorial structures of many different types. catalan only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["catalan(3)","catalan(8)"],seealso:["bellNumbers"]},aMe={name:"composition",category:"Combinatorics",syntax:["composition(n, k)"],description:"The composition counts of n into k parts. composition only takes integer arguments. The following condition must be enforced: k <= n.",examples:["composition(5, 3)"],seealso:["combinations"]},iMe={name:"stirlingS2",category:"Combinatorics",syntax:["stirlingS2(n, k)"],description:"he Stirling numbers of the second kind, counts the number of ways to partition a set of n labelled objects into k nonempty unlabelled subsets. `stirlingS2` only takes integer arguments. The following condition must be enforced: k <= n. If n = k or k = 1, then s(n,k) = 1.",examples:["stirlingS2(5, 3)"],seealso:["bellNumbers"]},lMe={name:"arg",category:"Complex",syntax:["arg(x)"],description:"Compute the argument of a complex value. If x = a+bi, the argument is computed as atan2(b, a).",examples:["arg(2 + 2i)","atan2(3, 2)","arg(2 + 3i)"],seealso:["re","im","conj","abs"]},sMe={name:"conj",category:"Complex",syntax:["conj(x)"],description:"Compute the complex conjugate of a complex value. If x = a+bi, the complex conjugate is a-bi.",examples:["conj(2 + 3i)","conj(2 - 3i)","conj(-5.2i)"],seealso:["re","im","abs","arg"]},uMe={name:"im",category:"Complex",syntax:["im(x)"],description:"Get the imaginary part of a complex number.",examples:["im(2 + 3i)","re(2 + 3i)","im(-5.2i)","im(2.4)"],seealso:["re","conj","abs","arg"]},cMe={name:"re",category:"Complex",syntax:["re(x)"],description:"Get the real part of a complex number.",examples:["re(2 + 3i)","im(2 + 3i)","re(-5.2i)","re(2.4)"],seealso:["im","conj","abs","arg"]},dMe={name:"evaluate",category:"Expression",syntax:["evaluate(expression)","evaluate([expr1, expr2, expr3, ...])"],description:"Evaluate an expression or an array with expressions.",examples:['evaluate("2 + 3")','evaluate("sqrt(" + 4 + ")")'],seealso:[]},fMe={name:"help",category:"Expression",syntax:["help(object)","help(string)"],description:"Display documentation on a function or data type.",examples:["help(sqrt)",'help("complex")'],seealso:[]},pMe={name:"distance",category:"Geometry",syntax:["distance([x1, y1], [x2, y2])","distance([[x1, y1], [x2, y2]])"],description:"Calculates the Euclidean distance between two points.",examples:["distance([0,0], [4,4])","distance([[0,0], [4,4]])"],seealso:[]},mMe={name:"intersect",category:"Geometry",syntax:["intersect(expr1, expr2, expr3, expr4)","intersect(expr1, expr2, expr3)"],description:"Computes the intersection point of lines and/or planes.",examples:["intersect([0, 0], [10, 10], [10, 0], [0, 10])","intersect([1, 0, 1], [4, -2, 2], [1, 1, 1, 6])"],seealso:[]},vMe={name:"and",category:"Logical",syntax:["x and y","and(x, y)"],description:"Logical and. Test whether two values are both defined with a nonzero/nonempty value.",examples:["true and false","true and true","2 and 4"],seealso:["not","or","xor"]},hMe={name:"not",category:"Logical",syntax:["not x","not(x)"],description:"Logical not. Flips the boolean value of given argument.",examples:["not true","not false","not 2","not 0"],seealso:["and","or","xor"]},gMe={name:"or",category:"Logical",syntax:["x or y","or(x, y)"],description:"Logical or. Test if at least one value is defined with a nonzero/nonempty value.",examples:["true or false","false or false","0 or 4"],seealso:["not","and","xor"]},yMe={name:"xor",category:"Logical",syntax:["x xor y","xor(x, y)"],description:"Logical exclusive or, xor. Test whether one and only one value is defined with a nonzero/nonempty value.",examples:["true xor false","false xor false","true xor true","0 xor 4"],seealso:["not","and","or"]},bMe={name:"column",category:"Matrix",syntax:["column(x, index)"],description:"Return a column from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","column(A, 1)","column(A, 2)"],seealso:["row","matrixFromColumns"]},xMe={name:"concat",category:"Matrix",syntax:["concat(A, B, C, ...)","concat(A, B, C, ..., dim)"],description:"Concatenate matrices. By default, the matrices are concatenated by the last dimension. The dimension on which to concatenate can be provided as last argument.",examples:["A = [1, 2; 5, 6]","B = [3, 4; 7, 8]","concat(A, B)","concat(A, B, 1)","concat(A, B, 2)"],seealso:["det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},wMe={name:"count",category:"Matrix",syntax:["count(x)"],description:"Count the number of elements of a matrix, array or string.",examples:["a = [1, 2; 3, 4; 5, 6]","count(a)","size(a)",'count("hello world")'],seealso:["size"]},SMe={name:"cross",category:"Matrix",syntax:["cross(A, B)"],description:"Calculate the cross product for two vectors in three dimensional space.",examples:["cross([1, 1, 0], [0, 1, 1])","cross([3, -3, 1], [4, 9, 2])","cross([2, 3, 4], [5, 6, 7])"],seealso:["multiply","dot"]},CMe={name:"ctranspose",category:"Matrix",syntax:["x'","ctranspose(x)"],description:"Complex Conjugate and Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","ctranspose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},$Me={name:"det",category:"Matrix",syntax:["det(x)"],description:"Calculate the determinant of a matrix",examples:["det([1, 2; 3, 4])","det([-2, 2, 3; -1, 1, 3; 2, 0, -1])"],seealso:["concat","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},EMe={name:"diag",category:"Matrix",syntax:["diag(x)","diag(x, k)"],description:"Create a diagonal matrix or retrieve the diagonal of a matrix. When x is a vector, a matrix with the vector values on the diagonal will be returned. When x is a matrix, a vector with the diagonal values of the matrix is returned. When k is provided, the k-th diagonal will be filled in or retrieved, if k is positive, the values are placed on the super diagonal. When k is negative, the values are placed on the sub diagonal.",examples:["diag(1:3)","diag(1:3, 1)","a = [1, 2, 3; 4, 5, 6; 7, 8, 9]","diag(a)"],seealso:["concat","det","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},DMe={name:"diff",category:"Matrix",syntax:["diff(arr)","diff(arr, dim)"],description:["Create a new matrix or array with the difference of the passed matrix or array.","Dim parameter is optional and used to indicant the dimension of the array/matrix to apply the difference","If no dimension parameter is passed it is assumed as dimension 0","Dimension is zero-based in javascript and one-based in the parser","Arrays must be 'rectangular' meaning arrays like [1, 2]","If something is passed as a matrix it will be returned as a matrix but other than that all matrices are converted to arrays"],examples:["diff([1, 2, 4, 7, 0])","diff([1, 2, 4, 7, 0], 0)","diff(matrix([1, 2, 4, 7, 0]))","diff([[1, 2], [3, 4]])","diff([[1, 2], [3, 4]], 0)","diff([[1, 2], [3, 4]], 1)","diff([[1, 2], [3, 4]], bignumber(1))","diff(matrix([[1, 2], [3, 4]]), 1)","diff([[1, 2], matrix([3, 4])], 1)"],seealso:["subtract","partitionSelect"]},AMe={name:"dot",category:"Matrix",syntax:["dot(A, B)","A * B"],description:"Calculate the dot product of two vectors. The dot product of A = [a1, a2, a3, ..., an] and B = [b1, b2, b3, ..., bn] is defined as dot(A, B) = a1 * b1 + a2 * b2 + a3 * b3 + ... + an * bn",examples:["dot([2, 4, 1], [2, 2, 3])","[2, 4, 1] * [2, 2, 3]"],seealso:["multiply","cross"]},OMe={name:"eigs",category:"Matrix",syntax:["eigs(x)"],description:"Calculate the eigenvalues and eigenvectors of a real symmetric matrix",examples:["eigs([[5, 2.3], [2.3, 1]])"],seealso:["inv"]},TMe={name:"filter",category:"Matrix",syntax:["filter(x, test)"],description:"Filter items in a matrix.",examples:["isPositive(x) = x > 0","filter([6, -2, -1, 4, 3], isPositive)","filter([6, -2, 0, 1, 0], x != 0)"],seealso:["sort","map","forEach"]},MMe={name:"flatten",category:"Matrix",syntax:["flatten(x)"],description:"Flatten a multi dimensional matrix into a single dimensional matrix.",examples:["a = [1, 2, 3; 4, 5, 6]","size(a)","b = flatten(a)","size(b)"],seealso:["concat","resize","size","squeeze"]},NMe={name:"forEach",category:"Matrix",syntax:["forEach(x, callback)"],description:"Iterates over all elements of a matrix/array, and executes the given callback function.",examples:["numberOfPets = {}","addPet(n) = numberOfPets[n] = (numberOfPets[n] ? numberOfPets[n]:0 ) + 1;",'forEach(["Dog","Cat","Cat"], addPet)',"numberOfPets"],seealso:["map","sort","filter"]},PMe={name:"getMatrixDataType",category:"Matrix",syntax:["getMatrixDataType(x)"],description:'Find the data type of all elements in a matrix or array, for example "number" if all items are a number and "Complex" if all values are complex numbers. If a matrix contains more than one data type, it will return "mixed".',examples:["getMatrixDataType([1, 2, 3])","getMatrixDataType([[5 cm], [2 inch]])",'getMatrixDataType([1, "text"])',"getMatrixDataType([1, bignumber(4)])"],seealso:["matrix","sparse","typeOf"]},IMe={name:"identity",category:"Matrix",syntax:["identity(n)","identity(m, n)","identity([m, n])"],description:"Returns the identity matrix with size m-by-n. The matrix has ones on the diagonal and zeros elsewhere.",examples:["identity(3)","identity(3, 5)","a = [1, 2, 3; 4, 5, 6]","identity(size(a))"],seealso:["concat","det","diag","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},_Me={name:"inv",category:"Matrix",syntax:["inv(x)"],description:"Calculate the inverse of a matrix",examples:["inv([1, 2; 3, 4])","inv(4)","1 / 4"],seealso:["concat","det","diag","identity","ones","range","size","squeeze","subset","trace","transpose","zeros"]},BMe={name:"pinv",category:"Matrix",syntax:["pinv(x)"],description:"Calculate the Moore–Penrose inverse of a matrix",examples:["pinv([1, 2; 3, 4])","pinv([[1, 0], [0, 1], [0, 1]])","pinv(4)"],seealso:["inv"]},FMe={name:"kron",category:"Matrix",syntax:["kron(x, y)"],description:"Calculates the kronecker product of 2 matrices or vectors.",examples:["kron([[1, 0], [0, 1]], [[1, 2], [3, 4]])","kron([1,1], [2,3,4])"],seealso:["multiply","dot","cross"]},RMe={name:"map",category:"Matrix",syntax:["map(x, callback)"],description:"Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array.",examples:["map([1, 2, 3], square)"],seealso:["filter","forEach"]},zMe={name:"matrixFromColumns",category:"Matrix",syntax:["matrixFromColumns(...arr)","matrixFromColumns(row1, row2)","matrixFromColumns(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual columns.",examples:["matrixFromColumns([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromRows","matrixFromFunction","zeros"]},LMe={name:"matrixFromFunction",category:"Matrix",syntax:["matrixFromFunction(size, fn)","matrixFromFunction(size, fn, format)","matrixFromFunction(size, fn, format, datatype)","matrixFromFunction(size, format, fn)","matrixFromFunction(size, format, datatype, fn)"],description:"Create a matrix by evaluating a generating function at each index.",examples:["f(I) = I[1] - I[2]","matrixFromFunction([3,3], f)","g(I) = I[1] - I[2] == 1 ? 4 : 0",'matrixFromFunction([100, 100], "sparse", g)',"matrixFromFunction([5], random)"],seealso:["matrix","matrixFromRows","matrixFromColumns","zeros"]},kMe={name:"matrixFromRows",category:"Matrix",syntax:["matrixFromRows(...arr)","matrixFromRows(row1, row2)","matrixFromRows(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual rows.",examples:["matrixFromRows([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromColumns","matrixFromFunction","zeros"]},HMe={name:"ones",category:"Matrix",syntax:["ones(m)","ones(m, n)","ones(m, n, p, ...)","ones([m])","ones([m, n])","ones([m, n, p, ...])"],description:"Create a matrix containing ones.",examples:["ones(3)","ones(3, 5)","ones([2,3]) * 4.5","a = [1, 2, 3; 4, 5, 6]","ones(size(a))"],seealso:["concat","det","diag","identity","inv","range","size","squeeze","subset","trace","transpose","zeros"]},jMe={name:"partitionSelect",category:"Matrix",syntax:["partitionSelect(x, k)","partitionSelect(x, k, compare)"],description:"Partition-based selection of an array or 1D matrix. Will find the kth smallest value, and mutates the input array. Uses Quickselect.",examples:["partitionSelect([5, 10, 1], 2)",'partitionSelect(["C", "B", "A", "D"], 1, compareText)',"arr = [5, 2, 1]","partitionSelect(arr, 0) # returns 1, arr is now: [1, 2, 5]","arr","partitionSelect(arr, 1, 'desc') # returns 2, arr is now: [5, 2, 1]","arr"],seealso:["sort"]},VMe={name:"range",category:"Type",syntax:["start:end","start:step:end","range(start, end)","range(start, end, step)","range(string)"],description:"Create a range. Lower bound of the range is included, upper bound is excluded.",examples:["1:5","3:-1:-3","range(3, 7)","range(0, 12, 2)",'range("4:10")',"a = [1, 2, 3, 4; 5, 6, 7, 8]","a[1:2, 1:2]"],seealso:["concat","det","diag","identity","inv","ones","size","squeeze","subset","trace","transpose","zeros"]},WMe={name:"reshape",category:"Matrix",syntax:["reshape(x, sizes)"],description:"Reshape a multi dimensional array to fit the specified dimensions.",examples:["reshape([1, 2, 3, 4, 5, 6], [2, 3])","reshape([[1, 2], [3, 4]], [1, 4])","reshape([[1, 2], [3, 4]], [4])","reshape([1, 2, 3, 4], [-1, 2])"],seealso:["size","squeeze","resize"]},UMe={name:"resize",category:"Matrix",syntax:["resize(x, size)","resize(x, size, defaultValue)"],description:"Resize a matrix.",examples:["resize([1,2,3,4,5], [3])","resize([1,2,3], [5])","resize([1,2,3], [5], -1)","resize(2, [2, 3])",'resize("hello", [8], "!")'],seealso:["size","subset","squeeze","reshape"]},KMe={name:"rotate",category:"Matrix",syntax:["rotate(w, theta)","rotate(w, theta, v)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotate([1, 0], pi / 2)",'rotate(matrix([1, 0]), unit("35deg"))','rotate([1, 0, 0], unit("90deg"), [0, 0, 1])','rotate(matrix([1, 0, 0]), unit("90deg"), matrix([0, 0, 1]))'],seealso:["matrix","rotationMatrix"]},qMe={name:"rotationMatrix",category:"Matrix",syntax:["rotationMatrix(theta)","rotationMatrix(theta, v)","rotationMatrix(theta, v, format)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotationMatrix(pi / 2)",'rotationMatrix(unit("45deg"), [0, 0, 1])','rotationMatrix(1, matrix([0, 0, 1]), "sparse")'],seealso:["cos","sin"]},GMe={name:"row",category:"Matrix",syntax:["row(x, index)"],description:"Return a row from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","row(A, 1)","row(A, 2)"],seealso:["column","matrixFromRows"]},XMe={name:"size",category:"Matrix",syntax:["size(x)"],description:"Calculate the size of a matrix.",examples:["size(2.3)",'size("hello world")',"a = [1, 2; 3, 4; 5, 6]","size(a)","size(1:6)"],seealso:["concat","count","det","diag","identity","inv","ones","range","squeeze","subset","trace","transpose","zeros"]},YMe={name:"sort",category:"Matrix",syntax:["sort(x)","sort(x, compare)"],description:'Sort the items in a matrix. Compare can be a string "asc", "desc", "natural", or a custom sort function.',examples:["sort([5, 10, 1])",'sort(["C", "B", "A", "D"], "natural")',"sortByLength(a, b) = size(a)[1] - size(b)[1]",'sort(["Langdon", "Tom", "Sara"], sortByLength)','sort(["10", "1", "2"], "natural")'],seealso:["map","filter","forEach"]},ZMe={name:"squeeze",category:"Matrix",syntax:["squeeze(x)"],description:"Remove inner and outer singleton dimensions from a matrix.",examples:["a = zeros(3,2,1)","size(squeeze(a))","b = zeros(1,1,3)","size(squeeze(b))"],seealso:["concat","det","diag","identity","inv","ones","range","size","subset","trace","transpose","zeros"]},JMe={name:"subset",category:"Matrix",syntax:["value(index)","value(index) = replacement","subset(value, [index])","subset(value, [index], replacement)"],description:"Get or set a subset of the entries of a matrix or characters of a string. Indexes are one-based. There should be one index specification for each dimension of the target. Each specification can be a single index, a list of indices, or a range in colon notation `l:u`. In a range, both the lower bound l and upper bound u are included; and if a bound is omitted it defaults to the most extreme valid value. The cartesian product of the indices specified in each dimension determines the target of the operation.",examples:["d = [1, 2; 3, 4]","e = []","e[1, 1:2] = [5, 6]","e[2, :] = [7, 8]","f = d * e","f[2, 1]","f[:, 1]","f[[1,2], [1,3]] = [9, 10; 11, 12]","f"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","trace","transpose","zeros"]},QMe={name:"trace",category:"Matrix",syntax:["trace(A)"],description:"Calculate the trace of a matrix: the sum of the elements on the main diagonal of a square matrix.",examples:["A = [1, 2, 3; -1, 2, 3; 2, 0, 3]","trace(A)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","transpose","zeros"]},eNe={name:"transpose",category:"Matrix",syntax:["x'","transpose(x)"],description:"Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","transpose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},tNe={name:"zeros",category:"Matrix",syntax:["zeros(m)","zeros(m, n)","zeros(m, n, p, ...)","zeros([m])","zeros([m, n])","zeros([m, n, p, ...])"],description:"Create a matrix containing zeros.",examples:["zeros(3)","zeros(3, 5)","a = [1, 2, 3; 4, 5, 6]","zeros(size(a))"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose"]},nNe={name:"fft",category:"Matrix",syntax:["fft(x)"],description:"Calculate N-dimensional fourier transform",examples:["fft([[1, 0], [1, 0]])"],seealso:["ifft"]},rNe={name:"ifft",category:"Matrix",syntax:["ifft(x)"],description:"Calculate N-dimensional inverse fourier transform",examples:["ifft([[2, 2], [0, 0]])"],seealso:["fft"]},oNe={name:"combinations",category:"Probability",syntax:["combinations(n, k)"],description:"Compute the number of combinations of n items taken k at a time",examples:["combinations(7, 5)"],seealso:["combinationsWithRep","permutations","factorial"]},aNe={name:"combinationsWithRep",category:"Probability",syntax:["combinationsWithRep(n, k)"],description:"Compute the number of combinations of n items taken k at a time with replacements.",examples:["combinationsWithRep(7, 5)"],seealso:["combinations","permutations","factorial"]},iNe={name:"factorial",category:"Probability",syntax:["n!","factorial(n)"],description:"Compute the factorial of a value",examples:["5!","5 * 4 * 3 * 2 * 1","3!"],seealso:["combinations","combinationsWithRep","permutations","gamma"]},lNe={name:"gamma",category:"Probability",syntax:["gamma(n)"],description:"Compute the gamma function. For small values, the Lanczos approximation is used, and for large values the extended Stirling approximation.",examples:["gamma(4)","3!","gamma(1/2)","sqrt(pi)"],seealso:["factorial"]},sNe={name:"lgamma",category:"Probability",syntax:["lgamma(n)"],description:"Logarithm of the gamma function for real, positive numbers and complex numbers, using Lanczos approximation for numbers and Stirling series for complex numbers.",examples:["lgamma(4)","lgamma(1/2)","lgamma(i)","lgamma(complex(1.1, 2))"],seealso:["gamma"]},uNe={name:"kldivergence",category:"Probability",syntax:["kldivergence(x, y)"],description:"Calculate the Kullback-Leibler (KL) divergence between two distributions.",examples:["kldivergence([0.7,0.5,0.4], [0.2,0.9,0.5])"],seealso:[]},cNe={name:"multinomial",category:"Probability",syntax:["multinomial(A)"],description:"Multinomial Coefficients compute the number of ways of picking a1, a2, ..., ai unordered outcomes from `n` possibilities. multinomial takes one array of integers as an argument. The following condition must be enforced: every ai > 0.",examples:["multinomial([1, 2, 1])"],seealso:["combinations","factorial"]},dNe={name:"permutations",category:"Probability",syntax:["permutations(n)","permutations(n, k)"],description:"Compute the number of permutations of n items taken k at a time",examples:["permutations(5)","permutations(5, 3)"],seealso:["combinations","combinationsWithRep","factorial"]},fNe={name:"pickRandom",category:"Probability",syntax:["pickRandom(array)","pickRandom(array, number)","pickRandom(array, weights)","pickRandom(array, number, weights)","pickRandom(array, weights, number)"],description:"Pick a random entry from a given array.",examples:["pickRandom(0:10)","pickRandom([1, 3, 1, 6])","pickRandom([1, 3, 1, 6], 2)","pickRandom([1, 3, 1, 6], [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], 2, [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], [2, 3, 2, 1], 2)"],seealso:["random","randomInt"]},pNe={name:"random",category:"Probability",syntax:["random()","random(max)","random(min, max)","random(size)","random(size, max)","random(size, min, max)"],description:"Return a random number.",examples:["random()","random(10, 20)","random([2, 3])"],seealso:["pickRandom","randomInt"]},mNe={name:"randomInt",category:"Probability",syntax:["randomInt(max)","randomInt(min, max)","randomInt(size)","randomInt(size, max)","randomInt(size, min, max)"],description:"Return a random integer number",examples:["randomInt(10, 20)","randomInt([2, 3], 10)"],seealso:["pickRandom","random"]},vNe={name:"compare",category:"Relational",syntax:["compare(x, y)"],description:"Compare two values. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compare(2, 3)","compare(3, 2)","compare(2, 2)","compare(5cm, 40mm)","compare(2, [1, 2, 3])"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compareNatural","compareText"]},hNe={name:"compareNatural",category:"Relational",syntax:["compareNatural(x, y)"],description:"Compare two values of any type in a deterministic, natural way. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compareNatural(2, 3)","compareNatural(3, 2)","compareNatural(2, 2)","compareNatural(5cm, 40mm)",'compareNatural("2", "10")',"compareNatural(2 + 3i, 2 + 4i)","compareNatural([1, 2, 4], [1, 2, 3])","compareNatural([1, 5], [1, 2, 3])","compareNatural([1, 2], [1, 2])","compareNatural({a: 2}, {a: 4})"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare","compareText"]},gNe={name:"compareText",category:"Relational",syntax:["compareText(x, y)"],description:"Compare two strings lexically. Comparison is case sensitive. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:['compareText("B", "A")','compareText("A", "B")','compareText("A", "A")','compareText("2", "10")','compare("2", "10")',"compare(2, 10)",'compareNatural("2", "10")','compareText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural"]},yNe={name:"deepEqual",category:"Relational",syntax:["deepEqual(x, y)"],description:"Check equality of two matrices element wise. Returns true if the size of both matrices is equal and when and each of the elements are equal.",examples:["deepEqual([1,3,4], [1,3,4])","deepEqual([1,3,4], [1,3])"],seealso:["equal","unequal","smaller","larger","smallerEq","largerEq","compare"]},bNe={name:"equal",category:"Relational",syntax:["x == y","equal(x, y)"],description:"Check equality of two values. Returns true if the values are equal, and false if not.",examples:["2+2 == 3","2+2 == 4","a = 3.2","b = 6-2.8","a == b","50cm == 0.5m"],seealso:["unequal","smaller","larger","smallerEq","largerEq","compare","deepEqual","equalText"]},xNe={name:"equalText",category:"Relational",syntax:["equalText(x, y)"],description:"Check equality of two strings. Comparison is case sensitive. Returns true if the values are equal, and false if not.",examples:['equalText("Hello", "Hello")','equalText("a", "A")','equal("2e3", "2000")','equalText("2e3", "2000")','equalText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural","compareText","equal"]},wNe={name:"larger",category:"Relational",syntax:["x > y","larger(x, y)"],description:"Check if value x is larger than y. Returns true if x is larger than y, and false if not.",examples:["2 > 3","5 > 2*2","a = 3.3","b = 6-2.8","(a > b)","(b < a)","5 cm > 2 inch"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare"]},SNe={name:"largerEq",category:"Relational",syntax:["x >= y","largerEq(x, y)"],description:"Check if value x is larger or equal to y. Returns true if x is larger or equal to y, and false if not.",examples:["2 >= 1+1","2 > 1+1","a = 3.2","b = 6-2.8","(a >= b)"],seealso:["equal","unequal","smallerEq","smaller","compare"]},CNe={name:"smaller",category:"Relational",syntax:["x < y","smaller(x, y)"],description:"Check if value x is smaller than value y. Returns true if x is smaller than y, and false if not.",examples:["2 < 3","5 < 2*2","a = 3.3","b = 6-2.8","(a < b)","5 cm < 2 inch"],seealso:["equal","unequal","larger","smallerEq","largerEq","compare"]},$Ne={name:"smallerEq",category:"Relational",syntax:["x <= y","smallerEq(x, y)"],description:"Check if value x is smaller or equal to value y. Returns true if x is smaller than y, and false if not.",examples:["2 <= 1+1","2 < 1+1","a = 3.2","b = 6-2.8","(a <= b)"],seealso:["equal","unequal","larger","smaller","largerEq","compare"]},ENe={name:"unequal",category:"Relational",syntax:["x != y","unequal(x, y)"],description:"Check unequality of two values. Returns true if the values are unequal, and false if they are equal.",examples:["2+2 != 3","2+2 != 4","a = 3.2","b = 6-2.8","a != b","50cm != 0.5m","5 cm != 2 inch"],seealso:["equal","smaller","larger","smallerEq","largerEq","compare","deepEqual"]},DNe={name:"setCartesian",category:"Set",syntax:["setCartesian(set1, set2)"],description:"Create the cartesian product of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays and the values will be sorted in ascending order before the operation.",examples:["setCartesian([1, 2], [3, 4])"],seealso:["setUnion","setIntersect","setDifference","setPowerset"]},ANe={name:"setDifference",category:"Set",syntax:["setDifference(set1, set2)"],description:"Create the difference of two (multi)sets: every element of set1, that is not the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setDifference([1, 2, 3, 4], [3, 4, 5, 6])","setDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setSymDifference"]},ONe={name:"setDistinct",category:"Set",syntax:["setDistinct(set)"],description:"Collect the distinct elements of a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setDistinct([1, 1, 1, 2, 2, 3])"],seealso:["setMultiplicity"]},TNe={name:"setIntersect",category:"Set",syntax:["setIntersect(set1, set2)"],description:"Create the intersection of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIntersect([1, 2, 3, 4], [3, 4, 5, 6])","setIntersect([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setDifference"]},MNe={name:"setIsSubset",category:"Set",syntax:["setIsSubset(set1, set2)"],description:"Check whether a (multi)set is a subset of another (multi)set: every element of set1 is the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIsSubset([1, 2], [3, 4, 5, 6])","setIsSubset([3, 4], [3, 4, 5, 6])"],seealso:["setUnion","setIntersect","setDifference"]},NNe={name:"setMultiplicity",category:"Set",syntax:["setMultiplicity(element, set)"],description:"Count the multiplicity of an element in a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setMultiplicity(1, [1, 2, 2, 4])","setMultiplicity(2, [1, 2, 2, 4])"],seealso:["setDistinct","setSize"]},PNe={name:"setPowerset",category:"Set",syntax:["setPowerset(set)"],description:"Create the powerset of a (multi)set: the powerset contains very possible subsets of a (multi)set. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setPowerset([1, 2, 3])"],seealso:["setCartesian"]},INe={name:"setSize",category:"Set",syntax:["setSize(set)","setSize(set, unique)"],description:'Count the number of elements of a (multi)set. When the second parameter "unique" is true, count only the unique values. A multi-dimension array will be converted to a single-dimension array before the operation.',examples:["setSize([1, 2, 2, 4])","setSize([1, 2, 2, 4], true)"],seealso:["setUnion","setIntersect","setDifference"]},_Ne={name:"setSymDifference",category:"Set",syntax:["setSymDifference(set1, set2)"],description:"Create the symmetric difference of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setSymDifference([1, 2, 3, 4], [3, 4, 5, 6])","setSymDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setDifference"]},BNe={name:"setUnion",category:"Set",syntax:["setUnion(set1, set2)"],description:"Create the union of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setUnion([1, 2, 3, 4], [3, 4, 5, 6])","setUnion([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setIntersect","setDifference"]},FNe={name:"erf",category:"Special",syntax:["erf(x)"],description:"Compute the erf function of a value using a rational Chebyshev approximations for different intervals of x",examples:["erf(0.2)","erf(-0.5)","erf(4)"],seealso:[]},RNe={name:"mad",category:"Statistics",syntax:["mad(a, b, c, ...)","mad(A)"],description:"Compute the median absolute deviation of a matrix or a list with values. The median absolute deviation is defined as the median of the absolute deviations from the median.",examples:["mad(10, 20, 30)","mad([1, 2, 3])"],seealso:["mean","median","std","abs"]},zNe={name:"max",category:"Statistics",syntax:["max(a, b, c, ...)","max(A)","max(A, dimension)"],description:"Compute the maximum value of a list of values.",examples:["max(2, 3, 4, 1)","max([2, 3, 4, 1])","max([2, 5; 4, 3])","max([2, 5; 4, 3], 1)","max([2, 5; 4, 3], 2)","max(2.7, 7.1, -4.5, 2.0, 4.1)","min(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["mean","median","min","prod","std","sum","variance"]},LNe={name:"mean",category:"Statistics",syntax:["mean(a, b, c, ...)","mean(A)","mean(A, dimension)"],description:"Compute the arithmetic mean of a list of values.",examples:["mean(2, 3, 4, 1)","mean([2, 3, 4, 1])","mean([2, 5; 4, 3])","mean([2, 5; 4, 3], 1)","mean([2, 5; 4, 3], 2)","mean([1.0, 2.7, 3.2, 4.0])"],seealso:["max","median","min","prod","std","sum","variance"]},kNe={name:"median",category:"Statistics",syntax:["median(a, b, c, ...)","median(A)"],description:"Compute the median of all values. The values are sorted and the middle value is returned. In case of an even number of values, the average of the two middle values is returned.",examples:["median(5, 2, 7)","median([3, -1, 5, 7])"],seealso:["max","mean","min","prod","std","sum","variance","quantileSeq"]},HNe={name:"min",category:"Statistics",syntax:["min(a, b, c, ...)","min(A)","min(A, dimension)"],description:"Compute the minimum value of a list of values.",examples:["min(2, 3, 4, 1)","min([2, 3, 4, 1])","min([2, 5; 4, 3])","min([2, 5; 4, 3], 1)","min([2, 5; 4, 3], 2)","min(2.7, 7.1, -4.5, 2.0, 4.1)","max(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["max","mean","median","prod","std","sum","variance"]},jNe={name:"mode",category:"Statistics",syntax:["mode(a, b, c, ...)","mode(A)","mode(A, a, b, B, c, ...)"],description:"Computes the mode of all values as an array. In case mode being more than one, multiple values are returned in an array.",examples:["mode(2, 1, 4, 3, 1)","mode([1, 2.7, 3.2, 4, 2.7])","mode(1, 4, 6, 1, 6)"],seealso:["max","mean","min","median","prod","std","sum","variance"]},VNe={name:"prod",category:"Statistics",syntax:["prod(a, b, c, ...)","prod(A)"],description:"Compute the product of all values.",examples:["prod(2, 3, 4)","prod([2, 3, 4])","prod([2, 5; 4, 3])"],seealso:["max","mean","min","median","min","std","sum","variance"]},WNe={name:"quantileSeq",category:"Statistics",syntax:["quantileSeq(A, prob[, sorted])","quantileSeq(A, [prob1, prob2, ...][, sorted])","quantileSeq(A, N[, sorted])"],description:`Compute the prob order quantile of a matrix or a list with values. The sequence is sorted and the middle value is returned. Supported types of sequence values are: Number, BigNumber, Unit Supported types of probablity are: Number, BigNumber. In case of a (multi dimensional) array or matrix, the prob order quantile of all elements will be calculated.`,examples:["quantileSeq([3, -1, 5, 7], 0.5)","quantileSeq([3, -1, 5, 7], [1/3, 2/3])","quantileSeq([3, -1, 5, 7], 2)","quantileSeq([-1, 3, 5, 7], 0.5, true)"],seealso:["mean","median","min","max","prod","std","sum","variance"]},UNe={name:"std",category:"Statistics",syntax:["std(a, b, c, ...)","std(A)","std(A, dimension)","std(A, normalization)","std(A, dimension, normalization)"],description:'Compute the standard deviation of all values, defined as std(A) = sqrt(variance(A)). Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["std(2, 4, 6)","std([2, 4, 6, 8])",'std([2, 4, 6, 8], "uncorrected")','std([2, 4, 6, 8], "biased")',"std([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","prod","sum","variance"]},KNe={name:"cumsum",category:"Statistics",syntax:["cumsum(a, b, c, ...)","cumsum(A)"],description:"Compute the cumulative sum of all values.",examples:["cumsum(2, 3, 4, 1)","cumsum([2, 3, 4, 1])","cumsum([1, 2; 3, 4])","cumsum([1, 2; 3, 4], 1)","cumsum([1, 2; 3, 4], 2)"],seealso:["max","mean","median","min","prod","std","sum","variance"]},qNe={name:"sum",category:"Statistics",syntax:["sum(a, b, c, ...)","sum(A)","sum(A, dimension)"],description:"Compute the sum of all values.",examples:["sum(2, 3, 4, 1)","sum([2, 3, 4, 1])","sum([2, 5; 4, 3])"],seealso:["max","mean","median","min","prod","std","sum","variance"]},GNe={name:"variance",category:"Statistics",syntax:["variance(a, b, c, ...)","variance(A)","variance(A, dimension)","variance(A, normalization)","variance(A, dimension, normalization)"],description:'Compute the variance of all values. Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["variance(2, 4, 6)","variance([2, 4, 6, 8])",'variance([2, 4, 6, 8], "uncorrected")','variance([2, 4, 6, 8], "biased")',"variance([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","min","prod","std","sum"]},XNe={name:"acos",category:"Trigonometry",syntax:["acos(x)"],description:"Compute the inverse cosine of a value in radians.",examples:["acos(0.5)","acos(cos(2.3))"],seealso:["cos","atan","asin"]},YNe={name:"acosh",category:"Trigonometry",syntax:["acosh(x)"],description:"Calculate the hyperbolic arccos of a value, defined as `acosh(x) = ln(sqrt(x^2 - 1) + x)`.",examples:["acosh(1.5)"],seealso:["cosh","asinh","atanh"]},ZNe={name:"acot",category:"Trigonometry",syntax:["acot(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acot(0.5)","acot(cot(0.5))","acot(2)"],seealso:["cot","atan"]},JNe={name:"acoth",category:"Trigonometry",syntax:["acoth(x)"],description:"Calculate the hyperbolic arccotangent of a value, defined as `acoth(x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.",examples:["acoth(2)","acoth(0.5)"],seealso:["acsch","asech"]},QNe={name:"acsc",category:"Trigonometry",syntax:["acsc(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acsc(2)","acsc(csc(0.5))","acsc(0.5)"],seealso:["csc","asin","asec"]},ePe={name:"acsch",category:"Trigonometry",syntax:["acsch(x)"],description:"Calculate the hyperbolic arccosecant of a value, defined as `acsch(x) = ln(1/x + sqrt(1/x^2 + 1))`.",examples:["acsch(0.5)"],seealso:["asech","acoth"]},tPe={name:"asec",category:"Trigonometry",syntax:["asec(x)"],description:"Calculate the inverse secant of a value.",examples:["asec(0.5)","asec(sec(0.5))","asec(2)"],seealso:["acos","acot","acsc"]},nPe={name:"asech",category:"Trigonometry",syntax:["asech(x)"],description:"Calculate the inverse secant of a value.",examples:["asech(0.5)"],seealso:["acsch","acoth"]},rPe={name:"asin",category:"Trigonometry",syntax:["asin(x)"],description:"Compute the inverse sine of a value in radians.",examples:["asin(0.5)","asin(sin(0.5))"],seealso:["sin","acos","atan"]},oPe={name:"asinh",category:"Trigonometry",syntax:["asinh(x)"],description:"Calculate the hyperbolic arcsine of a value, defined as `asinh(x) = ln(x + sqrt(x^2 + 1))`.",examples:["asinh(0.5)"],seealso:["acosh","atanh"]},aPe={name:"atan",category:"Trigonometry",syntax:["atan(x)"],description:"Compute the inverse tangent of a value in radians.",examples:["atan(0.5)","atan(tan(0.5))"],seealso:["tan","acos","asin"]},iPe={name:"atan2",category:"Trigonometry",syntax:["atan2(y, x)"],description:"Computes the principal value of the arc tangent of y/x in radians.",examples:["atan2(2, 2) / pi","angle = 60 deg in rad","x = cos(angle)","y = sin(angle)","atan2(y, x)"],seealso:["sin","cos","tan"]},lPe={name:"atanh",category:"Trigonometry",syntax:["atanh(x)"],description:"Calculate the hyperbolic arctangent of a value, defined as `atanh(x) = ln((1 + x)/(1 - x)) / 2`.",examples:["atanh(0.5)"],seealso:["acosh","asinh"]},sPe={name:"cos",category:"Trigonometry",syntax:["cos(x)"],description:"Compute the cosine of x in radians.",examples:["cos(2)","cos(pi / 4) ^ 2","cos(180 deg)","cos(60 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["acos","sin","tan"]},uPe={name:"cosh",category:"Trigonometry",syntax:["cosh(x)"],description:"Compute the hyperbolic cosine of x in radians.",examples:["cosh(0.5)"],seealso:["sinh","tanh","coth"]},cPe={name:"cot",category:"Trigonometry",syntax:["cot(x)"],description:"Compute the cotangent of x in radians. Defined as 1/tan(x)",examples:["cot(2)","1 / tan(2)"],seealso:["sec","csc","tan"]},dPe={name:"coth",category:"Trigonometry",syntax:["coth(x)"],description:"Compute the hyperbolic cotangent of x in radians.",examples:["coth(2)","1 / tanh(2)"],seealso:["sech","csch","tanh"]},fPe={name:"csc",category:"Trigonometry",syntax:["csc(x)"],description:"Compute the cosecant of x in radians. Defined as 1/sin(x)",examples:["csc(2)","1 / sin(2)"],seealso:["sec","cot","sin"]},pPe={name:"csch",category:"Trigonometry",syntax:["csch(x)"],description:"Compute the hyperbolic cosecant of x in radians. Defined as 1/sinh(x)",examples:["csch(2)","1 / sinh(2)"],seealso:["sech","coth","sinh"]},mPe={name:"sec",category:"Trigonometry",syntax:["sec(x)"],description:"Compute the secant of x in radians. Defined as 1/cos(x)",examples:["sec(2)","1 / cos(2)"],seealso:["cot","csc","cos"]},vPe={name:"sech",category:"Trigonometry",syntax:["sech(x)"],description:"Compute the hyperbolic secant of x in radians. Defined as 1/cosh(x)",examples:["sech(2)","1 / cosh(2)"],seealso:["coth","csch","cosh"]},hPe={name:"sin",category:"Trigonometry",syntax:["sin(x)"],description:"Compute the sine of x in radians.",examples:["sin(2)","sin(pi / 4) ^ 2","sin(90 deg)","sin(30 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["asin","cos","tan"]},gPe={name:"sinh",category:"Trigonometry",syntax:["sinh(x)"],description:"Compute the hyperbolic sine of x in radians.",examples:["sinh(0.5)"],seealso:["cosh","tanh"]},yPe={name:"tan",category:"Trigonometry",syntax:["tan(x)"],description:"Compute the tangent of x in radians.",examples:["tan(0.5)","sin(0.5) / cos(0.5)","tan(pi / 4)","tan(45 deg)"],seealso:["atan","sin","cos"]},bPe={name:"tanh",category:"Trigonometry",syntax:["tanh(x)"],description:"Compute the hyperbolic tangent of x in radians.",examples:["tanh(0.5)","sinh(0.5) / cosh(0.5)"],seealso:["sinh","cosh"]},xPe={name:"to",category:"Units",syntax:["x to unit","to(x, unit)"],description:"Change the unit of a value.",examples:["5 inch to cm","3.2kg to g","16 bytes in bits"],seealso:[]},wPe={name:"bin",category:"Utils",syntax:["bin(value)"],description:"Format a number as binary",examples:["bin(2)"],seealso:["oct","hex"]},SPe={name:"clone",category:"Utils",syntax:["clone(x)"],description:"Clone a variable. Creates a copy of primitive variables,and a deep copy of matrices",examples:["clone(3.5)","clone(2 - 4i)","clone(45 deg)","clone([1, 2; 3, 4])",'clone("hello world")'],seealso:[]},CPe={name:"format",category:"Utils",syntax:["format(value)","format(value, precision)"],description:"Format a value of any type as string.",examples:["format(2.3)","format(3 - 4i)","format([])","format(pi, 3)"],seealso:["print"]},$Pe={name:"hasNumericValue",category:"Utils",syntax:["hasNumericValue(x)"],description:"Test whether a value is an numeric value. In case of a string, true is returned if the string contains a numeric value.",examples:["hasNumericValue(2)",'hasNumericValue("2")','isNumeric("2")',"hasNumericValue(0)","hasNumericValue(bignumber(500))","hasNumericValue(fraction(0.125))","hasNumericValue(2 + 3i)",'hasNumericValue([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","isNumeric"]},EPe={name:"hex",category:"Utils",syntax:["hex(value)"],description:"Format a number as hexadecimal",examples:["hex(240)"],seealso:["bin","oct"]},DPe={name:"isInteger",category:"Utils",syntax:["isInteger(x)"],description:"Test whether a value is an integer number.",examples:["isInteger(2)","isInteger(3.5)","isInteger([3, 0.5, -2])"],seealso:["isNegative","isNumeric","isPositive","isZero"]},APe={name:"isNaN",category:"Utils",syntax:["isNaN(x)"],description:"Test whether a value is NaN (not a number)",examples:["isNaN(2)","isNaN(0 / 0)","isNaN(NaN)","isNaN(Infinity)"],seealso:["isNegative","isNumeric","isPositive","isZero"]},OPe={name:"isNegative",category:"Utils",syntax:["isNegative(x)"],description:"Test whether a value is negative: smaller than zero.",examples:["isNegative(2)","isNegative(0)","isNegative(-4)","isNegative([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isPositive","isZero"]},TPe={name:"isNumeric",category:"Utils",syntax:["isNumeric(x)"],description:"Test whether a value is a numeric value. Returns true when the input is a number, BigNumber, Fraction, or boolean.",examples:["isNumeric(2)",'isNumeric("2")','hasNumericValue("2")',"isNumeric(0)","isNumeric(bignumber(500))","isNumeric(fraction(0.125))","isNumeric(2 + 3i)",'isNumeric([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","hasNumericValue"]},MPe={name:"isPositive",category:"Utils",syntax:["isPositive(x)"],description:"Test whether a value is positive: larger than zero.",examples:["isPositive(2)","isPositive(0)","isPositive(-4)","isPositive([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},NPe={name:"isPrime",category:"Utils",syntax:["isPrime(x)"],description:"Test whether a value is prime: has no divisors other than itself and one.",examples:["isPrime(3)","isPrime(-2)","isPrime([2, 17, 100])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},PPe={name:"isZero",category:"Utils",syntax:["isZero(x)"],description:"Test whether a value is zero.",examples:["isZero(2)","isZero(0)","isZero(-4)","isZero([3, 0, -2, 0])"],seealso:["isInteger","isNumeric","isNegative","isPositive"]},IPe={name:"numeric",category:"Utils",syntax:["numeric(x)"],description:"Convert a numeric input to a specific numeric type: number, BigNumber, or Fraction.",examples:['numeric("4")','numeric("4", "number")','numeric("4", "BigNumber")','numeric("4", "Fraction)','numeric(4, "Fraction")','numeric(fraction(2, 5), "number)'],seealso:["number","fraction","bignumber","string","format"]},_Pe={name:"oct",category:"Utils",syntax:["oct(value)"],description:"Format a number as octal",examples:["oct(56)"],seealso:["bin","hex"]},BPe={name:"print",category:"Utils",syntax:["print(template, values)","print(template, values, precision)"],description:"Interpolate values into a string template.",examples:['print("Lucy is $age years old", {age: 5})','print("The value of pi is $pi", {pi: pi}, 3)','print("Hello, $user.name!", {user: {name: "John"}})','print("Values: $0, $1, $2", [6, 9, 4])'],seealso:["format"]},FPe={name:"typeOf",category:"Utils",syntax:["typeOf(x)"],description:"Get the type of a variable.",examples:["typeOf(3.5)","typeOf(2 - 4i)","typeOf(45 deg)",'typeOf("hello world")'],seealso:["getMatrixDataType"]},RPe={bignumber:POe,boolean:IOe,complex:_Oe,createUnit:BOe,fraction:FOe,index:ROe,matrix:zOe,number:LOe,sparse:kOe,splitUnit:HOe,string:jOe,unit:VOe,e:EO,E:EO,false:gOe,i:yOe,Infinity:bOe,LN2:wOe,LN10:xOe,LOG2E:COe,LOG10E:SOe,NaN:$Oe,null:EOe,pi:DO,PI:DO,phi:DOe,SQRT1_2:AOe,SQRT2:OOe,tau:TOe,true:MOe,version:NOe,speedOfLight:{description:"Speed of light in vacuum",examples:["speedOfLight"]},gravitationConstant:{description:"Newtonian constant of gravitation",examples:["gravitationConstant"]},planckConstant:{description:"Planck constant",examples:["planckConstant"]},reducedPlanckConstant:{description:"Reduced Planck constant",examples:["reducedPlanckConstant"]},magneticConstant:{description:"Magnetic constant (vacuum permeability)",examples:["magneticConstant"]},electricConstant:{description:"Electric constant (vacuum permeability)",examples:["electricConstant"]},vacuumImpedance:{description:"Characteristic impedance of vacuum",examples:["vacuumImpedance"]},coulomb:{description:"Coulomb's constant",examples:["coulomb"]},elementaryCharge:{description:"Elementary charge",examples:["elementaryCharge"]},bohrMagneton:{description:"Borh magneton",examples:["bohrMagneton"]},conductanceQuantum:{description:"Conductance quantum",examples:["conductanceQuantum"]},inverseConductanceQuantum:{description:"Inverse conductance quantum",examples:["inverseConductanceQuantum"]},magneticFluxQuantum:{description:"Magnetic flux quantum",examples:["magneticFluxQuantum"]},nuclearMagneton:{description:"Nuclear magneton",examples:["nuclearMagneton"]},klitzing:{description:"Von Klitzing constant",examples:["klitzing"]},bohrRadius:{description:"Borh radius",examples:["bohrRadius"]},classicalElectronRadius:{description:"Classical electron radius",examples:["classicalElectronRadius"]},electronMass:{description:"Electron mass",examples:["electronMass"]},fermiCoupling:{description:"Fermi coupling constant",examples:["fermiCoupling"]},fineStructure:{description:"Fine-structure constant",examples:["fineStructure"]},hartreeEnergy:{description:"Hartree energy",examples:["hartreeEnergy"]},protonMass:{description:"Proton mass",examples:["protonMass"]},deuteronMass:{description:"Deuteron Mass",examples:["deuteronMass"]},neutronMass:{description:"Neutron mass",examples:["neutronMass"]},quantumOfCirculation:{description:"Quantum of circulation",examples:["quantumOfCirculation"]},rydberg:{description:"Rydberg constant",examples:["rydberg"]},thomsonCrossSection:{description:"Thomson cross section",examples:["thomsonCrossSection"]},weakMixingAngle:{description:"Weak mixing angle",examples:["weakMixingAngle"]},efimovFactor:{description:"Efimov factor",examples:["efimovFactor"]},atomicMass:{description:"Atomic mass constant",examples:["atomicMass"]},avogadro:{description:"Avogadro's number",examples:["avogadro"]},boltzmann:{description:"Boltzmann constant",examples:["boltzmann"]},faraday:{description:"Faraday constant",examples:["faraday"]},firstRadiation:{description:"First radiation constant",examples:["firstRadiation"]},loschmidt:{description:"Loschmidt constant at T=273.15 K and p=101.325 kPa",examples:["loschmidt"]},gasConstant:{description:"Gas constant",examples:["gasConstant"]},molarPlanckConstant:{description:"Molar Planck constant",examples:["molarPlanckConstant"]},molarVolume:{description:"Molar volume of an ideal gas at T=273.15 K and p=101.325 kPa",examples:["molarVolume"]},sackurTetrode:{description:"Sackur-Tetrode constant at T=1 K and p=101.325 kPa",examples:["sackurTetrode"]},secondRadiation:{description:"Second radiation constant",examples:["secondRadiation"]},stefanBoltzmann:{description:"Stefan-Boltzmann constant",examples:["stefanBoltzmann"]},wienDisplacement:{description:"Wien displacement law constant",examples:["wienDisplacement"]},molarMass:{description:"Molar mass constant",examples:["molarMass"]},molarMassC12:{description:"Molar mass constant of carbon-12",examples:["molarMassC12"]},gravity:{description:"Standard acceleration of gravity (standard acceleration of free-fall on Earth)",examples:["gravity"]},planckLength:{description:"Planck length",examples:["planckLength"]},planckMass:{description:"Planck mass",examples:["planckMass"]},planckTime:{description:"Planck time",examples:["planckTime"]},planckCharge:{description:"Planck charge",examples:["planckCharge"]},planckTemperature:{description:"Planck temperature",examples:["planckTemperature"]},derivative:qOe,lsolve:XOe,lsolveAll:YOe,lup:ZOe,lusolve:JOe,leafCount:GOe,polynomialRoot:QOe,resolve:nTe,simplify:rTe,simplifyConstant:oTe,simplifyCore:aTe,symbolicEqual:lTe,rationalize:tTe,slu:iTe,usolve:sTe,usolveAll:uTe,qr:eTe,abs:cTe,add:dTe,cbrt:fTe,ceil:pTe,cube:mTe,divide:vTe,dotDivide:hTe,dotMultiply:gTe,dotPow:yTe,exp:bTe,expm:xTe,expm1:wTe,fix:STe,floor:CTe,gcd:$Te,hypot:ETe,lcm:ATe,log:OTe,log2:NTe,log1p:MTe,log10:TTe,mod:PTe,multiply:ITe,norm:_Te,nthRoot:BTe,nthRoots:FTe,pow:RTe,round:zTe,sign:LTe,sqrt:kTe,sqrtm:HTe,square:UTe,subtract:KTe,unaryMinus:qTe,unaryPlus:GTe,xgcd:XTe,invmod:DTe,bitAnd:YTe,bitNot:ZTe,bitOr:JTe,bitXor:QTe,leftShift:eMe,rightArithShift:tMe,rightLogShift:nMe,bellNumbers:rMe,catalan:oMe,composition:aMe,stirlingS2:iMe,config:WOe,import:UOe,typed:KOe,arg:lMe,conj:sMe,re:cMe,im:uMe,evaluate:dMe,help:fMe,distance:pMe,intersect:mMe,and:vMe,not:hMe,or:gMe,xor:yMe,concat:xMe,count:wMe,cross:SMe,column:bMe,ctranspose:CMe,det:$Me,diag:EMe,diff:DMe,dot:AMe,getMatrixDataType:PMe,identity:IMe,filter:TMe,flatten:MMe,forEach:NMe,inv:_Me,pinv:BMe,eigs:OMe,kron:FMe,matrixFromFunction:LMe,matrixFromRows:kMe,matrixFromColumns:zMe,map:RMe,ones:HMe,partitionSelect:jMe,range:VMe,resize:UMe,reshape:WMe,rotate:KMe,rotationMatrix:qMe,row:GMe,size:XMe,sort:YMe,squeeze:ZMe,subset:JMe,trace:QMe,transpose:eNe,zeros:tNe,fft:nNe,ifft:rNe,sylvester:jTe,schur:VTe,lyap:WTe,combinations:oNe,combinationsWithRep:aNe,factorial:iNe,gamma:lNe,kldivergence:uNe,lgamma:sNe,multinomial:cNe,permutations:dNe,pickRandom:fNe,random:pNe,randomInt:mNe,compare:vNe,compareNatural:hNe,compareText:gNe,deepEqual:yNe,equal:bNe,equalText:xNe,larger:wNe,largerEq:SNe,smaller:CNe,smallerEq:$Ne,unequal:ENe,setCartesian:DNe,setDifference:ANe,setDistinct:ONe,setIntersect:TNe,setIsSubset:MNe,setMultiplicity:NNe,setPowerset:PNe,setSize:INe,setSymDifference:_Ne,setUnion:BNe,erf:FNe,cumsum:KNe,mad:RNe,max:zNe,mean:LNe,median:kNe,min:HNe,mode:jNe,prod:VNe,quantileSeq:WNe,std:UNe,sum:qNe,variance:GNe,acos:XNe,acosh:YNe,acot:ZNe,acoth:JNe,acsc:QNe,acsch:ePe,asec:tPe,asech:nPe,asin:rPe,asinh:oPe,atan:aPe,atanh:lPe,atan2:iPe,cos:sPe,cosh:uPe,cot:cPe,coth:dPe,csc:fPe,csch:pPe,sec:mPe,sech:vPe,sin:hPe,sinh:gPe,tan:yPe,tanh:bPe,to:xPe,clone:SPe,format:CPe,bin:wPe,oct:_Pe,hex:EPe,isNaN:APe,isInteger:DPe,isNegative:OPe,isNumeric:TPe,hasNumericValue:$Pe,isPositive:MPe,isPrime:NPe,isZero:PPe,print:BPe,typeOf:FPe,numeric:IPe},AO="help",zPe=["typed","mathWithTransform","Help"],LPe=se(AO,zPe,e=>{var{typed:t,mathWithTransform:n,Help:r}=e;return t(AO,{any:function(a){var i,l=a;if(typeof a!="string"){for(i in n)if(Ke(n,i)&&a===n[i]){l=i;break}}var s=no(RPe,l);if(!s){var u=typeof l=="function"?l.name:l;throw new Error('No documentation found on "'+u+'"')}return new r(s)}})}),OO="chain",kPe=["typed","Chain"],HPe=se(OO,kPe,e=>{var{typed:t,Chain:n}=e;return t(OO,{"":function(){return new n},any:function(o){return new n(o)}})}),TO="det",jPe=["typed","matrix","subtract","multiply","divideScalar","isZero","unaryMinus"],VPe=se(TO,jPe,e=>{var{typed:t,matrix:n,subtract:r,multiply:o,divideScalar:a,isZero:i,unaryMinus:l}=e;return t(TO,{any:function(c){return ct(c)},"Array | Matrix":function(c){var d;switch(mt(c)?d=c.size():Array.isArray(c)?(c=n(c),d=c.size()):d=[],d.length){case 0:return ct(c);case 1:if(d[0]===1)return ct(c.valueOf()[0]);if(d[0]===0)return 1;throw new RangeError("Matrix must be square (size: "+Et(d)+")");case 2:{var f=d[0],p=d[1];if(f===p)return s(c.clone().valueOf(),f);if(p===0)return 1;throw new RangeError("Matrix must be square (size: "+Et(d)+")")}default:throw new RangeError("Matrix must be two dimensional (size: "+Et(d)+")")}}});function s(u,c,d){if(c===1)return ct(u[0][0]);if(c===2)return r(o(u[0][0],u[1][1]),o(u[1][0],u[0][1]));for(var f=!1,p=new Array(c).fill(0).map(($,D)=>D),v=0;v{var{typed:t,matrix:n,divideScalar:r,addScalar:o,multiply:a,unaryMinus:i,det:l,identity:s,abs:u}=e;return t(MO,{"Array | Matrix":function(f){var p=mt(f)?f.size():Mt(f);switch(p.length){case 1:if(p[0]===1)return mt(f)?n([r(1,f.valueOf()[0])]):[r(1,f[0])];throw new RangeError("Matrix must be square (size: "+Et(p)+")");case 2:{var v=p[0],m=p[1];if(v===m)return mt(f)?n(c(f.valueOf(),v,m),f.storage()):c(f,v,m);throw new RangeError("Matrix must be square (size: "+Et(p)+")")}default:throw new RangeError("Matrix must be two dimensional (size: "+Et(p)+")")}},any:function(f){return r(1,f)}});function c(d,f,p){var v,m,h,g,x;if(f===1){if(g=d[0][0],g===0)throw Error("Cannot calculate inverse, determinant is zero");return[[r(1,g)]]}else if(f===2){var y=l(d);if(y===0)throw Error("Cannot calculate inverse, determinant is zero");return[[r(d[1][1],y),r(i(d[0][1]),y)],[r(i(d[1][0]),y),r(d[0][0],y)]]}else{var w=d.concat();for(v=0;v$&&($=u(w[v][S]),D=v),v++;if($===0)throw Error("Cannot calculate inverse, determinant is zero");v=D,v!==S&&(x=w[S],w[S]=w[v],w[v]=x,x=b[S],b[S]=b[v],b[v]=x);var O=w[S],A=b[S];for(v=0;v{var{typed:t,matrix:n,inv:r,deepEqual:o,equal:a,dotDivide:i,dot:l,ctranspose:s,divideScalar:u,multiply:c,add:d,Complex:f}=e;return t(NO,{"Array | Matrix":function(y){var w=mt(y)?y.size():Mt(y);switch(w.length){case 1:return g(y)?s(y):w[0]===1?r(y):i(s(y),l(y,y));case 2:{if(g(y))return s(y);var b=w[0],S=w[1];if(b===S)try{return r(y)}catch($){if(!($ instanceof Error&&$.message.match(/Cannot calculate inverse, determinant is zero/)))throw $}return mt(y)?n(p(y.valueOf(),b,S),y.storage()):p(y,b,S)}default:throw new RangeError("Matrix must be two dimensional (size: "+Et(w)+")")}},any:function(y){return a(y,0)?ct(y):u(1,y)}});function p(x,y,w){var{C:b,F:S}=m(x,y,w),$=c(r(c(s(b),b)),s(b)),D=c(s(S),r(c(S,s(S))));return c(D,$)}function v(x,y,w){for(var b=ct(x),S=0,$=0;$D.filter((A,T)=>T!h(l(b[O],b[O])));return{C:S,F:$}}function h(x){return a(d(x,f(1,1)),d(0,f(1,1)))}function g(x){return o(d(x,f(1,1)),d(c(x,0),f(1,1)))}});function GPe(e){var{addScalar:t,subtract:n,flatten:r,multiply:o,multiplyScalar:a,divideScalar:i,sqrt:l,abs:s,bignumber:u,diag:c,inv:d,qr:f,usolve:p,usolveAll:v,equal:m,complex:h,larger:g,smaller:x,matrixFromColumns:y,dot:w}=e;function b(L,k,H,V,U){U===void 0&&(U=!0);var q=S(L,k,H,V,U);$(L,k,H,V,U,q);var{values:K,C:X}=D(L,k,H,V,U),re;return U&&(re=O(L,k,X,q,K,H,V),re=y(...re)),{values:K,vectors:re}}function S(L,k,H,V,U){var q=V==="BigNumber",K=V==="Complex",X=q?u(0):0,re=q?u(1):K?h(1):1,ee=q?u(1):1,G=q?u(10):2,le=a(G,G),ue;U&&(ue=Array(k).fill(re));for(var me=!1;!me;){me=!0;for(var Se=0;Se1&&(me=c(Array(G-1).fill(X)))),G-=1,re.pop();for(var ce=0;ce2&&(me=c(Array(G-2).fill(X)))),G-=2,re.pop(),re.pop();for(var ye=0;ye+n(s(oe),s(ie))),Se>100){var J=Error("The eigenvalues failed to converge. Only found these eigenvalues: "+ee.join(", "));throw J.values=ee,J.vectors=[],J}var ne=U?o(ue,B(le,k)):void 0;return{values:ee,C:ne}}function O(L,k,H,V,U,q,K){var X=d(H),re=o(X,L,H),ee=K==="BigNumber",G=K==="Complex",le=ee?u(0):G?h(0):0,ue=ee?u(1):G?h(1):1,me=[],Se=[];for(var Q of U){var te=F(me,Q,m);te===-1?(me.push(Q),Se.push(1)):Se[te]+=1}for(var de=[],Y=me.length,ae=Array(k).fill(le),ce=c(Array(k).fill(ue)),Ce=[],ye=function(){var ie=me[J],ve=n(re,o(ie,ce)),we=v(ve,ae);for(we.shift();we.lengtho(Ae,xe)),de.push(...we.map(xe=>r(xe)))},J=0;J=5)return null;for(X=0;;){var re=p(L,K);if(x(R(N(K,[re])),V))break;if(++X>=10)return null;K=_(re)}return K}function I(L,k,H){var V=H==="BigNumber",U=H==="Complex",q=Array(L).fill(0).map(K=>2*Math.random()-1);return V&&(q=q.map(K=>u(K))),U&&(q=q.map(K=>h(K))),q=N(q,k),_(q,H)}function N(L,k){for(var H of k)L=n(L,o(i(w(H,L),w(H,H)),H));return L}function R(L){return s(l(w(L,L)))}function _(L,k){var H=k==="BigNumber",V=k==="Complex",U=H?u(1):V?h(1):1;return o(i(U,R(L)),L)}return b}function XPe(e){var{config:t,addScalar:n,subtract:r,abs:o,atan:a,cos:i,sin:l,multiplyScalar:s,inv:u,bignumber:c,multiply:d,add:f}=e;function p(A,T){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.epsilon,B=arguments.length>3?arguments[3]:void 0;if(B==="number")return v(A,M);if(B==="BigNumber")return m(A,M);throw TypeError("Unsupported data type: "+B)}function v(A,T){for(var M=A.length,B=Math.abs(T/M),F,P=new Array(M),I=0;I=Math.abs(B);){var R=N[0][0],_=N[0][1];F=h(A[R][R],A[_][_],A[R][_]),A=b(A,F,R,_),P=x(P,F,R,_),N=S(A)}for(var L=O(M,0),k=0;k=o(B);){var R=N[0][0],_=N[0][1];F=g(A[R][R],A[_][_],A[R][_]),A=w(A,F,R,_),P=y(P,F,R,_),N=$(A)}for(var L=O(M,0),k=0;k{var{config:t,typed:n,matrix:r,addScalar:o,subtract:a,equal:i,abs:l,atan:s,cos:u,sin:c,multiplyScalar:d,divideScalar:f,inv:p,bignumber:v,multiply:m,add:h,larger:g,column:x,flatten:y,number:w,complex:b,sqrt:S,diag:$,qr:D,usolve:O,usolveAll:A,im:T,re:M,smaller:B,matrixFromColumns:F,dot:P}=e,I=XPe({config:t,addScalar:o,subtract:a,column:x,flatten:y,equal:i,abs:l,atan:s,cos:u,sin:c,multiplyScalar:d,inv:p,bignumber:v,complex:b,multiply:m,add:h}),N=GPe({config:t,addScalar:o,subtract:a,multiply:m,multiplyScalar:d,flatten:y,divideScalar:f,sqrt:S,abs:l,bignumber:v,diag:$,qr:D,inv:p,usolve:O,usolveAll:A,equal:i,complex:b,larger:g,smaller:B,matrixFromColumns:F,dot:P});return n("eigs",{Array:function(U){var q=r(U);return R(q)},"Array, number|BigNumber":function(U,q){var K=r(U);return R(K,q)},Matrix:function(U){var{values:q,vectors:K}=R(U);return{values:r(q),vectors:r(K)}},"Matrix, number|BigNumber":function(U,q){var{values:K,vectors:X}=R(U,q);return{values:r(K),vectors:r(X)}}});function R(V,U){U===void 0&&(U=t.epsilon);var q=V.size();if(q.length!==2||q[0]!==q[1])throw new RangeError("Matrix must be square (size: "+Et(q)+")");var K=V.toArray(),X=q[0];if(L(K,X,U)&&(k(K,X),_(K,X,U))){var re=H(V,K,X);return I(K,X,U,re)}var ee=H(V,K,X);return N(K,X,U,ee)}function _(V,U,q){for(var K=0;K{var{typed:t,abs:n,add:r,identity:o,inv:a,multiply:i}=e;return t(PO,{Matrix:function(d){var f=d.size();if(f.length!==2||f[0]!==f[1])throw new RangeError("Matrix must be square (size: "+Et(f)+")");for(var p=f[0],v=1e-15,m=l(d),h=s(m,v),g=h.q,x=h.j,y=i(d,Math.pow(2,-x)),w=o(p),b=o(p),S=1,$=y,D=-1,O=1;O<=g;O++)O>1&&($=i($,y),D=-D),S=S*(g-O+1)/((2*g-O+1)*O),w=r(w,i(S,$)),b=r(b,i(S*D,$));for(var A=i(a(b),w),T=0;T{var{typed:t,abs:n,add:r,multiply:o,map:a,sqrt:i,subtract:l,inv:s,size:u,max:c,identity:d}=e,f=1e3,p=1e-6;function v(m){var h,g=0,x=m,y=d(u(m));do{var w=x;if(x=o(.5,r(w,s(y))),y=o(.5,r(y,s(w))),h=c(n(l(x,w))),h>p&&++g>f)throw new Error("computing square root of matrix: iterative method could not converge")}while(h>p);return x}return t(IO,{"Array | Matrix":function(h){var g=mt(h)?h.size():Mt(h);switch(g.length){case 1:if(g[0]===1)return a(h,i);throw new RangeError("Matrix must be square (size: "+Et(g)+")");case 2:{var x=g[0],y=g[1];if(x===y)return v(h);throw new RangeError("Matrix must be square (size: "+Et(g)+")")}default:throw new RangeError("Matrix must be at most two dimensional (size: "+Et(g)+")")}}})}),_O="sylvester",rIe=["typed","schur","matrixFromColumns","matrix","multiply","range","concat","transpose","index","subset","add","subtract","identity","lusolve","abs"],oIe=se(_O,rIe,e=>{var{typed:t,schur:n,matrixFromColumns:r,matrix:o,multiply:a,range:i,concat:l,transpose:s,index:u,subset:c,add:d,subtract:f,identity:p,lusolve:v,abs:m}=e;return t(_O,{"Matrix, Matrix, Matrix":h,"Array, Matrix, Matrix":function(x,y,w){return h(o(x),y,w)},"Array, Array, Matrix":function(x,y,w){return h(o(x),o(y),w)},"Array, Matrix, Array":function(x,y,w){return h(o(x),y,o(w))},"Matrix, Array, Matrix":function(x,y,w){return h(x,o(y),w)},"Matrix, Array, Array":function(x,y,w){return h(x,o(y),o(w))},"Matrix, Matrix, Array":function(x,y,w){return h(x,y,o(w))},"Array, Array, Array":function(x,y,w){return h(o(x),o(y),o(w)).toArray()}});function h(g,x,y){for(var w=x.size()[0],b=g.size()[0],S=n(g),$=S.T,D=S.U,O=n(a(-1,x)),A=O.T,T=O.U,M=a(a(s(D),y),T),B=i(0,b),F=[],P=(ue,me)=>l(ue,me,1),I=(ue,me)=>l(ue,me,0),N=0;N1e-5){for(var R=I(c(M,u(B,N)),c(M,u(B,N+1))),_=0;_{var{typed:t,matrix:n,identity:r,multiply:o,qr:a,norm:i,subtract:l}=e;return t(BO,{Array:function(c){var d=s(n(c));return{U:d.U.valueOf(),T:d.T.valueOf()}},Matrix:function(c){return s(c)}});function s(u){var c=u.size()[0],d=u,f=r(c),p=0,v;do{v=d;var m=a(d),h=m.Q,g=m.R;if(d=o(g,h),f=o(f,h),p++>100)break}while(i(l(d,v))>1e-4);return{U:f,T:d}}}),FO="lyap",lIe=["typed","matrix","sylvester","multiply","transpose"],sIe=se(FO,lIe,e=>{var{typed:t,matrix:n,sylvester:r,multiply:o,transpose:a}=e;return t(FO,{"Matrix, Matrix":function(l,s){return r(l,a(l),o(-1,s))},"Array, Matrix":function(l,s){return r(n(l),a(n(l)),o(-1,s))},"Matrix, Array":function(l,s){return r(l,a(n(l)),n(o(-1,s)))},"Array, Array":function(l,s){return r(n(l),a(n(l)),n(o(-1,s))).toArray()}})}),uIe="divide",cIe=["typed","matrix","multiply","equalScalar","divideScalar","inv"],dIe=se(uIe,cIe,e=>{var{typed:t,matrix:n,multiply:r,equalScalar:o,divideScalar:a,inv:i}=e,l=qn({typed:t,equalScalar:o}),s=Do({typed:t});return t("divide",z_({"Array | Matrix, Array | Matrix":function(c,d){return r(c,i(d))},"DenseMatrix, any":function(c,d){return s(c,d,a,!1)},"SparseMatrix, any":function(c,d){return l(c,d,a,!1)},"Array, any":function(c,d){return s(n(c),d,a,!1).valueOf()},"any, Array | Matrix":function(c,d){return r(c,i(d))}},a.signatures))}),RO="distance",fIe=["typed","addScalar","subtract","divideScalar","multiplyScalar","unaryMinus","sqrt","abs"],pIe=se(RO,fIe,e=>{var{typed:t,addScalar:n,subtract:r,multiplyScalar:o,divideScalar:a,unaryMinus:i,sqrt:l,abs:s}=e;return t(RO,{"Array, Array, Array":function(b,S,$){if(b.length===2&&S.length===2&&$.length===2){if(!c(b))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!c(S))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!c($))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");var D=a(r($[1],$[0]),r(S[1],S[0])),O=o(o(D,D),S[0]),A=i(o(D,S[0])),T=b[1];return h(b[0],b[1],O,A,T)}else throw new TypeError("Invalid Arguments: Try again")},"Object, Object, Object":function(b,S,$){if(Object.keys(b).length===2&&Object.keys(S).length===2&&Object.keys($).length===2){if(!c(b))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!c(S))throw new TypeError("Values of lineOnePtX and lineOnePtY should be numbers or BigNumbers");if(!c($))throw new TypeError("Values of lineTwoPtX and lineTwoPtY should be numbers or BigNumbers");if("pointX"in b&&"pointY"in b&&"lineOnePtX"in S&&"lineOnePtY"in S&&"lineTwoPtX"in $&&"lineTwoPtY"in $){var D=a(r($.lineTwoPtY,$.lineTwoPtX),r(S.lineOnePtY,S.lineOnePtX)),O=o(o(D,D),S.lineOnePtX),A=i(o(D,S.lineOnePtX)),T=b.pointX;return h(b.pointX,b.pointY,O,A,T)}else throw new TypeError("Key names do not match")}else throw new TypeError("Invalid Arguments: Try again")},"Array, Array":function(b,S){if(b.length===2&&S.length===3){if(!c(b))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!d(S))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");return h(b[0],b[1],S[0],S[1],S[2])}else if(b.length===3&&S.length===6){if(!d(b))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!p(S))throw new TypeError("Array with 6 numbers or BigNumbers expected for second argument");return g(b[0],b[1],b[2],S[0],S[1],S[2],S[3],S[4],S[5])}else if(b.length===S.length&&b.length>0){if(!f(b))throw new TypeError("All values of an array should be numbers or BigNumbers");if(!f(S))throw new TypeError("All values of an array should be numbers or BigNumbers");return x(b,S)}else throw new TypeError("Invalid Arguments: Try again")},"Object, Object":function(b,S){if(Object.keys(b).length===2&&Object.keys(S).length===3){if(!c(b))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!d(S))throw new TypeError("Values of xCoeffLine, yCoeffLine and constant should be numbers or BigNumbers");if("pointX"in b&&"pointY"in b&&"xCoeffLine"in S&&"yCoeffLine"in S&&"constant"in S)return h(b.pointX,b.pointY,S.xCoeffLine,S.yCoeffLine,S.constant);throw new TypeError("Key names do not match")}else if(Object.keys(b).length===3&&Object.keys(S).length===6){if(!d(b))throw new TypeError("Values of pointX, pointY and pointZ should be numbers or BigNumbers");if(!p(S))throw new TypeError("Values of x0, y0, z0, a, b and c should be numbers or BigNumbers");if("pointX"in b&&"pointY"in b&&"x0"in S&&"y0"in S&&"z0"in S&&"a"in S&&"b"in S&&"c"in S)return g(b.pointX,b.pointY,b.pointZ,S.x0,S.y0,S.z0,S.a,S.b,S.c);throw new TypeError("Key names do not match")}else if(Object.keys(b).length===2&&Object.keys(S).length===2){if(!c(b))throw new TypeError("Values of pointOneX and pointOneY should be numbers or BigNumbers");if(!c(S))throw new TypeError("Values of pointTwoX and pointTwoY should be numbers or BigNumbers");if("pointOneX"in b&&"pointOneY"in b&&"pointTwoX"in S&&"pointTwoY"in S)return x([b.pointOneX,b.pointOneY],[S.pointTwoX,S.pointTwoY]);throw new TypeError("Key names do not match")}else if(Object.keys(b).length===3&&Object.keys(S).length===3){if(!d(b))throw new TypeError("Values of pointOneX, pointOneY and pointOneZ should be numbers or BigNumbers");if(!d(S))throw new TypeError("Values of pointTwoX, pointTwoY and pointTwoZ should be numbers or BigNumbers");if("pointOneX"in b&&"pointOneY"in b&&"pointOneZ"in b&&"pointTwoX"in S&&"pointTwoY"in S&&"pointTwoZ"in S)return x([b.pointOneX,b.pointOneY,b.pointOneZ],[S.pointTwoX,S.pointTwoY,S.pointTwoZ]);throw new TypeError("Key names do not match")}else throw new TypeError("Invalid Arguments: Try again")},Array:function(b){if(!m(b))throw new TypeError("Incorrect array format entered for pairwise distance calculation");return y(b)}});function u(w){return typeof w=="number"||Ot(w)}function c(w){return w.constructor!==Array&&(w=v(w)),u(w[0])&&u(w[1])}function d(w){return w.constructor!==Array&&(w=v(w)),u(w[0])&&u(w[1])&&u(w[2])}function f(w){return Array.isArray(w)||(w=v(w)),w.every(u)}function p(w){return w.constructor!==Array&&(w=v(w)),u(w[0])&&u(w[1])&&u(w[2])&&u(w[3])&&u(w[4])&&u(w[5])}function v(w){for(var b=Object.keys(w),S=[],$=0;$b.length!==2||!u(b[0])||!u(b[1])))return!1}else if(w[0].length===3&&u(w[0][0])&&u(w[0][1])&&u(w[0][2])){if(w.some(b=>b.length!==3||!u(b[0])||!u(b[1])||!u(b[2])))return!1}else return!1;return!0}function h(w,b,S,$,D){var O=s(n(n(o(S,w),o($,b)),D)),A=l(n(o(S,S),o($,$)));return a(O,A)}function g(w,b,S,$,D,O,A,T,M){var B=[r(o(r(D,b),M),o(r(O,S),T)),r(o(r(O,S),A),o(r($,w),M)),r(o(r($,w),T),o(r(D,b),A))];B=l(n(n(o(B[0],B[0]),o(B[1],B[1])),o(B[2],B[2])));var F=l(n(n(o(A,A),o(T,T)),o(M,M)));return a(B,F)}function x(w,b){for(var S=w.length,$=0,D=0,O=0;O{var{typed:t,config:n,abs:r,add:o,addScalar:a,matrix:i,multiply:l,multiplyScalar:s,divideScalar:u,subtract:c,smaller:d,equalScalar:f,flatten:p,isZero:v,isNumeric:m}=e;return t("intersect",{"Array, Array, Array":h,"Array, Array, Array, Array":g,"Matrix, Matrix, Matrix":function(T,M,B){var F=h(T.valueOf(),M.valueOf(),B.valueOf());return F===null?null:i(F)},"Matrix, Matrix, Matrix, Matrix":function(T,M,B,F){var P=g(T.valueOf(),M.valueOf(),B.valueOf(),F.valueOf());return P===null?null:i(P)}});function h(A,T,M){if(A=x(A),T=x(T),M=x(M),!w(A))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!w(T))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!b(M))throw new TypeError("Array with 4 numbers expected as third argument");return O(A[0],A[1],A[2],T[0],T[1],T[2],M[0],M[1],M[2],M[3])}function g(A,T,M,B){if(A=x(A),T=x(T),M=x(M),B=x(B),A.length===2){if(!y(A))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!y(T))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!y(M))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(!y(B))throw new TypeError("Array with 2 numbers or BigNumbers expected for fourth argument");return S(A,T,M,B)}else if(A.length===3){if(!w(A))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!w(T))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!w(M))throw new TypeError("Array with 3 numbers or BigNumbers expected for third argument");if(!w(B))throw new TypeError("Array with 3 numbers or BigNumbers expected for fourth argument");return D(A[0],A[1],A[2],T[0],T[1],T[2],M[0],M[1],M[2],B[0],B[1],B[2])}else throw new TypeError("Arrays with two or thee dimensional points expected")}function x(A){return A.length===1?A[0]:A.length>1&&Array.isArray(A[0])&&A.every(T=>Array.isArray(T)&&T.length===1)?p(A):A}function y(A){return A.length===2&&m(A[0])&&m(A[1])}function w(A){return A.length===3&&m(A[0])&&m(A[1])&&m(A[2])}function b(A){return A.length===4&&m(A[0])&&m(A[1])&&m(A[2])&&m(A[3])}function S(A,T,M,B){var F=A,P=M,I=c(F,T),N=c(P,B),R=c(s(I[0],N[1]),s(N[0],I[1]));if(v(R)||d(r(R),n.epsilon))return null;var _=s(N[0],F[1]),L=s(N[1],F[0]),k=s(N[0],P[1]),H=s(N[1],P[0]),V=u(a(c(c(_,L),k),H),R);return o(l(I,V),F)}function $(A,T,M,B,F,P,I,N,R,_,L,k){var H=s(c(A,T),c(M,B)),V=s(c(F,P),c(I,N)),U=s(c(R,_),c(L,k));return a(a(H,V),U)}function D(A,T,M,B,F,P,I,N,R,_,L,k){var H=$(A,I,_,I,T,N,L,N,M,R,k,R),V=$(_,I,B,A,L,N,F,T,k,R,P,M),U=$(A,I,B,A,T,N,F,T,M,R,P,M),q=$(_,I,_,I,L,N,L,N,k,R,k,R),K=$(B,A,B,A,F,T,F,T,P,M,P,M),X=c(s(H,V),s(U,q)),re=c(s(K,q),s(V,V));if(v(re))return null;var ee=u(X,re),G=u(a(H,s(ee,V)),q),le=a(A,s(ee,c(B,A))),ue=a(T,s(ee,c(F,T))),me=a(M,s(ee,c(P,M))),Se=a(I,s(G,c(_,I))),Q=a(N,s(G,c(L,N))),te=a(R,s(G,c(k,R)));return f(le,Se)&&f(ue,Q)&&f(me,te)?[le,ue,me]:null}function O(A,T,M,B,F,P,I,N,R,_){var L=s(A,I),k=s(B,I),H=s(T,N),V=s(F,N),U=s(M,R),q=s(P,R),K=c(c(c(_,L),H),U),X=c(c(c(a(a(k,V),q),L),H),U),re=u(K,X),ee=a(A,s(re,c(B,A))),G=a(T,s(re,c(F,T))),le=a(M,s(re,c(P,M)));return[ee,G,le]}}),zO="sum",gIe=["typed","config","add","numeric"],AB=se(zO,gIe,e=>{var{typed:t,config:n,add:r,numeric:o}=e;return t(zO,{"Array | Matrix":a,"Array | Matrix, number | BigNumber":i,"...":function(s){if(Ls(s))throw new TypeError("Scalar values expected in function sum");return a(s)}});function a(l){var s;return Ca(l,function(u){try{s=s===void 0?u:r(s,u)}catch(c){throw dr(c,"sum",u)}}),s===void 0&&(s=o(0,n.number)),typeof s=="string"&&(s=o(s,n.number)),s}function i(l,s){try{var u=_v(l,s,r);return u}catch(c){throw dr(c,"sum")}}}),Ld="cumsum",yIe=["typed","add","unaryPlus"],OB=se(Ld,yIe,e=>{var{typed:t,add:n,unaryPlus:r}=e;return t(Ld,{Array:o,Matrix:function(u){return u.create(o(u.valueOf()))},"Array, number | BigNumber":i,"Matrix, number | BigNumber":function(u,c){return u.create(i(u.valueOf(),c))},"...":function(u){if(Ls(u))throw new TypeError("All values expected to be scalar in function cumsum");return o(u)}});function o(s){try{return a(s)}catch(u){throw dr(u,Ld)}}function a(s){if(s.length===0)return[];for(var u=[r(s[0])],c=1;c=c.length)throw new oo(u,c.length);try{return l(s,u)}catch(d){throw dr(d,Ld)}}function l(s,u){var c,d,f;if(u<=0){var p=s[0][0];if(Array.isArray(p)){for(f=f7(s),d=[],c=0;c{var{typed:t,add:n,divide:r}=e;return t(LO,{"Array | Matrix":a,"Array | Matrix, number | BigNumber":o,"...":function(l){if(Ls(l))throw new TypeError("Scalar values expected in function mean");return a(l)}});function o(i,l){try{var s=_v(i,l,n),u=Array.isArray(i)?Mt(i):i.size();return r(s,u[l])}catch(c){throw dr(c,"mean")}}function a(i){var l,s=0;if(Ca(i,function(u){try{l=l===void 0?u:n(l,u),s++}catch(c){throw dr(c,"mean",u)}}),s===0)throw new Error("Cannot calculate the mean of an empty array");return r(l,s)}}),kO="median",xIe=["typed","add","divide","compare","partitionSelect"],wIe=se(kO,xIe,e=>{var{typed:t,add:n,divide:r,compare:o,partitionSelect:a}=e;function i(u){try{u=Ht(u.valueOf());var c=u.length;if(c===0)throw new Error("Cannot calculate median of an empty array");if(c%2===0){for(var d=c/2-1,f=a(u,d+1),p=u[d],v=0;v0&&(p=u[v]);return s(p,f)}else{var m=a(u,(c-1)/2);return l(m)}}catch(h){throw dr(h,"median")}}var l=t({"number | BigNumber | Complex | Unit":function(c){return c}}),s=t({"number | BigNumber | Complex | Unit, number | BigNumber | Complex | Unit":function(c,d){return r(n(c,d),2)}});return t(kO,{"Array | Matrix":i,"Array | Matrix, number | BigNumber":function(c,d){throw new Error("median(A, dim) is not yet supported")},"...":function(c){if(Ls(c))throw new TypeError("Scalar values expected in function median");return i(c)}})}),HO="mad",SIe=["typed","abs","map","median","subtract"],CIe=se(HO,SIe,e=>{var{typed:t,abs:n,map:r,median:o,subtract:a}=e;return t(HO,{"Array | Matrix":i,"...":function(s){return i(s)}});function i(l){if(l=Ht(l.valueOf()),l.length===0)throw new Error("Cannot calculate median absolute deviation (mad) of an empty array");try{var s=o(l);return o(r(l,function(u){return n(a(u,s))}))}catch(u){throw u instanceof TypeError&&u.message.indexOf("median")!==-1?new TypeError(u.message.replace("median","mad")):dr(u,"mad")}}}),xg="unbiased",jO="variance",$Ie=["typed","add","subtract","multiply","divide","apply","isNaN"],MB=se(jO,$Ie,e=>{var{typed:t,add:n,subtract:r,multiply:o,divide:a,apply:i,isNaN:l}=e;return t(jO,{"Array | Matrix":function(d){return s(d,xg)},"Array | Matrix, string":s,"Array | Matrix, number | BigNumber":function(d,f){return u(d,f,xg)},"Array | Matrix, number | BigNumber, string":u,"...":function(d){return s(d,xg)}});function s(c,d){var f,p=0;if(c.length===0)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");if(Ca(c,function(h){try{f=f===void 0?h:n(f,h),p++}catch(g){throw dr(g,"variance",h)}}),p===0)throw new Error("Cannot calculate variance of an empty array");var v=a(f,p);if(f=void 0,Ca(c,function(h){var g=r(h,v);f=f===void 0?o(g,g):n(f,o(g,g))}),l(f))return f;switch(d){case"uncorrected":return a(f,p);case"biased":return a(f,p+1);case"unbiased":{var m=Ot(f)?f.mul(0):0;return p===1?m:a(f,p-1)}default:throw new Error('Unknown normalization "'+d+'". Choose "unbiased" (default), "uncorrected", or "biased".')}}function u(c,d,f){try{if(c.length===0)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");return i(c,d,p=>s(p,f))}catch(p){throw dr(p,"variance")}}}),EIe="quantileSeq",DIe=["typed","add","multiply","partitionSelect","compare"],AIe=se(EIe,DIe,e=>{var{typed:t,add:n,multiply:r,partitionSelect:o,compare:a}=e;function i(u,c,d){var f,p,v;if(arguments.length<2||arguments.length>3)throw new SyntaxError("Function quantileSeq requires two or three parameters");if(wo(u)){if(d=d||!1,typeof d=="boolean"){if(p=u.valueOf(),Pt(c)){if(c<0)throw new Error("N/prob must be non-negative");if(c<=1)return l(p,c,d);if(c>1){if(!ot(c))throw new Error("N must be a positive integer");var m=c+1;f=new Array(c);for(var h=0;h4294967295)throw new Error("N must be less than or equal to 2^32-1, as that is the maximum length of an Array");var y=new g(x+1);f=new Array(x);for(var w=0;w1)throw new Error("Probability must be between 0 and 1, inclusive")}else if(Ot($)){if(v=new $.constructor(1),$.isNegative()||$.gt(v))throw new Error("Probability must be between 0 and 1, inclusive")}else throw new TypeError("Unexpected type of argument in function quantileSeq");f[S]=l(p,$,d)}return f}throw new TypeError("Unexpected type of argument in function quantileSeq")}throw new TypeError("Unexpected type of argument in function quantileSeq")}throw new TypeError("Unexpected type of argument in function quantileSeq")}function l(u,c,d){var f=Ht(u),p=f.length;if(p===0)throw new Error("Cannot calculate quantile of an empty sequence");if(Pt(c)){var v=c*(p-1),m=v%1;if(m===0){var h=d?f[v]:o(f,v);return s(h),h}var g=Math.floor(v),x,y;if(d)x=f[g],y=f[g+1];else{y=o(f,g+1),x=f[g];for(var w=0;w0&&(x=f[w])}return s(x),s(y),n(r(x,1-m),r(y,m))}var b=c.times(p-1);if(b.isInteger()){b=b.toNumber();var S=d?f[b]:o(f,b);return s(S),S}var $=b.floor(),D=b.minus($),O=$.toNumber(),A,T;if(d)A=f[O],T=f[O+1];else{T=o(f,O+1),A=f[O];for(var M=0;M0&&(A=f[M])}s(A),s(T);var B=new D.constructor(1);return n(r(A,B.minus(D)),r(T,D))}var s=t({"number | BigNumber | Unit":function(c){return c}});return i}),VO="std",OIe=["typed","map","sqrt","variance"],NB=se(VO,OIe,e=>{var{typed:t,map:n,sqrt:r,variance:o}=e;return t(VO,{"Array | Matrix":a,"Array | Matrix, string":a,"Array | Matrix, number | BigNumber":a,"Array | Matrix, number | BigNumber, string":a,"...":function(l){return a(l)}});function a(i,l){if(i.length===0)throw new SyntaxError("Function std requires one or more parameters (0 provided)");try{var s=o.apply(null,arguments);return wo(s)?n(s,r):r(s)}catch(u){throw u instanceof TypeError&&u.message.indexOf(" variance")!==-1?new TypeError(u.message.replace(" variance"," std")):u}}}),WO="combinations",TIe=["typed"],MIe=se(WO,TIe,e=>{var{typed:t}=e;return t(WO,{"number, number":F7,"BigNumber, BigNumber":function(r,o){var a=r.constructor,i,l,s=r.minus(o),u=new a(1);if(!UO(r)||!UO(o))throw new TypeError("Positive integer value expected in function combinations");if(o.gt(r))throw new TypeError("k must be less than n in function combinations");if(i=u,o.lt(s))for(l=u;l.lte(s);l=l.plus(u))i=i.times(o.plus(l)).dividedBy(l);else for(l=u;l.lte(o);l=l.plus(u))i=i.times(s.plus(l)).dividedBy(l);return i}})});function UO(e){return e.isInteger()&&e.gte(0)}var KO="combinationsWithRep",NIe=["typed"],PIe=se(KO,NIe,e=>{var{typed:t}=e;return t(KO,{"number, number":function(r,o){if(!ot(r)||r<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(!ot(o)||o<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(r<1)throw new TypeError("k must be less than or equal to n + k - 1");if(o{var{typed:t,config:n,multiplyScalar:r,pow:o,BigNumber:a,Complex:i}=e;function l(u){if(u.im===0)return kp(u.re);if(u.re<.5){var c=new i(1-u.re,-u.im),d=new i(Math.PI*u.re,Math.PI*u.im);return new i(Math.PI).div(d.sin()).div(l(c))}u=new i(u.re-1,u.im);for(var f=new i(ns[0],0),p=1;p2;)f-=2,v+=f,p=p.times(v);return new a(p.toPrecision(a.precision))}}),XO="lgamma",BIe=["Complex","typed"],FIe=se(XO,BIe,e=>{var{Complex:t,typed:n}=e,r=7,o=7,a=[-.029550653594771242,.00641025641025641,-.0019175269175269176,.0008417508417508417,-.0005952380952380953,.0007936507936507937,-.002777777777777778,.08333333333333333];return n(XO,{number:Hp,Complex:i,BigNumber:function(){throw new Error("mathjs doesn't yet provide an implementation of the algorithm lgamma for BigNumber")}});function i(u){var c=6.283185307179586,d=1.1447298858494002,f=.1;if(u.isNaN())return new t(NaN,NaN);if(u.im===0)return new t(Hp(u.re),0);if(u.re>=r||Math.abs(u.im)>=o)return l(u);if(u.re<=f){var p=k1e(c,u.im)*Math.floor(.5*u.re+.25),v=u.mul(Math.PI).sin().log(),m=i(new t(1-u.re,-u.im));return new t(d,p).sub(v).sub(m)}else return u.im>=0?s(u):s(u.conjugate()).conjugate()}function l(u){for(var c=u.sub(.5).mul(u.log()).sub(u).add(j7),d=new t(1,0).div(u),f=d.div(u),p=a[0],v=a[1],m=2*f.re,h=f.re*f.re+f.im*f.im,g=2;g<8;g++){var x=v;v=-h*p+a[g],p=m*p+x}var y=d.mul(f.mul(p).add(v));return c.add(y)}function s(u){var c=0,d=0,f=u;for(u=u.add(1);u.re<=r;){f=f.mul(u);var p=f.im<0?1:0;p!==0&&d===0&&c++,d=p,u=u.add(1)}return l(u).sub(f.log()).sub(new t(0,c*2*Math.PI*1))}}),YO="factorial",RIe=["typed","gamma"],zIe=se(YO,RIe,e=>{var{typed:t,gamma:n}=e;return t(YO,{number:function(o){if(o<0)throw new Error("Value must be non-negative");return n(o+1)},BigNumber:function(o){if(o.isNegative())throw new Error("Value must be non-negative");return n(o.plus(1))},"Array | Matrix":t.referToSelf(r=>o=>Tt(o,r))})}),ZO="kldivergence",LIe=["typed","matrix","divide","sum","multiply","map","dotDivide","log","isNumeric"],kIe=se(ZO,LIe,e=>{var{typed:t,matrix:n,divide:r,sum:o,multiply:a,map:i,dotDivide:l,log:s,isNumeric:u}=e;return t(ZO,{"Array, Array":function(f,p){return c(n(f),n(p))},"Matrix, Array":function(f,p){return c(f,n(p))},"Array, Matrix":function(f,p){return c(n(f),p)},"Matrix, Matrix":function(f,p){return c(f,p)}});function c(d,f){var p=f.size().length,v=d.size().length;if(p>1)throw new Error("first object must be one dimensional");if(v>1)throw new Error("second object must be one dimensional");if(p!==v)throw new Error("Length of two vectors must be equal");var m=o(d);if(m===0)throw new Error("Sum of elements in first object must be non zero");var h=o(f);if(h===0)throw new Error("Sum of elements in second object must be non zero");var g=r(d,o(d)),x=r(f,o(f)),y=o(a(g,i(l(g,x),w=>s(w))));return u(y)?y:Number.NaN}}),JO="multinomial",HIe=["typed","add","divide","multiply","factorial","isInteger","isPositive"],jIe=se(JO,HIe,e=>{var{typed:t,add:n,divide:r,multiply:o,factorial:a,isInteger:i,isPositive:l}=e;return t(JO,{"Array | Matrix":function(u){var c=0,d=1;return Ca(u,function(f){if(!i(f)||!l(f))throw new TypeError("Positive integer value expected in function multinomial");c=n(c,f),d=o(d,a(f))}),r(a(c),d)}})}),QO="permutations",VIe=["typed","factorial"],WIe=se(QO,VIe,e=>{var{typed:t,factorial:n}=e;return t(QO,{"number | BigNumber":n,"number, number":function(o,a){if(!ot(o)||o<0)throw new TypeError("Positive integer value expected in function permutations");if(!ot(a)||a<0)throw new TypeError("Positive integer value expected in function permutations");if(a>o)throw new TypeError("second argument k must be less than or equal to first argument n");return pa(o-a+1,o)},"BigNumber, BigNumber":function(o,a){var i,l;if(!eT(o)||!eT(a))throw new TypeError("Positive integer value expected in function permutations");if(a.gt(o))throw new TypeError("second argument k must be less than or equal to first argument n");var s=o.mul(0).add(1);for(i=s,l=o.minus(a).plus(1);l.lte(o);l=l.plus(1))i=i.times(l);return i}})});function eT(e){return e.isInteger()&&e.gte(0)}var Ty={},UIe={get exports(){return Ty},set exports(e){Ty=e}};(function(e){(function(t,n,r){function o(s){var u=this,c=l();u.next=function(){var d=2091639*u.s0+u.c*23283064365386963e-26;return u.s0=u.s1,u.s1=u.s2,u.s2=d-(u.c=d|0)},u.c=1,u.s0=c(" "),u.s1=c(" "),u.s2=c(" "),u.s0-=c(s),u.s0<0&&(u.s0+=1),u.s1-=c(s),u.s1<0&&(u.s1+=1),u.s2-=c(s),u.s2<0&&(u.s2+=1),c=null}function a(s,u){return u.c=s.c,u.s0=s.s0,u.s1=s.s1,u.s2=s.s2,u}function i(s,u){var c=new o(s),d=u&&u.state,f=c.next;return f.int32=function(){return c.next()*4294967296|0},f.double=function(){return f()+(f()*2097152|0)*11102230246251565e-32},f.quick=f,d&&(typeof d=="object"&&a(d,c),f.state=function(){return a(c,{})}),f}function l(){var s=4022871197,u=function(c){c=String(c);for(var d=0;d>>0,f-=s,f*=s,s=f>>>0,f-=s,s+=f*4294967296}return(s>>>0)*23283064365386963e-26};return u}n&&n.exports?n.exports=i:r&&r.amd?r(function(){return i}):this.alea=i})(tr,e,!1)})(UIe);var My={},KIe={get exports(){return My},set exports(e){My=e}};(function(e){(function(t,n,r){function o(l){var s=this,u="";s.x=0,s.y=0,s.z=0,s.w=0,s.next=function(){var d=s.x^s.x<<11;return s.x=s.y,s.y=s.z,s.z=s.w,s.w^=s.w>>>19^d^d>>>8},l===(l|0)?s.x=l:u+=l;for(var c=0;c>>0)/4294967296};return d.double=function(){do var f=u.next()>>>11,p=(u.next()>>>0)/4294967296,v=(f+p)/(1<<21);while(v===0);return v},d.int32=u.next,d.quick=d,c&&(typeof c=="object"&&a(c,u),d.state=function(){return a(u,{})}),d}n&&n.exports?n.exports=i:r&&r.amd?r(function(){return i}):this.xor128=i})(tr,e,!1)})(KIe);var Ny={},qIe={get exports(){return Ny},set exports(e){Ny=e}};(function(e){(function(t,n,r){function o(l){var s=this,u="";s.next=function(){var d=s.x^s.x>>>2;return s.x=s.y,s.y=s.z,s.z=s.w,s.w=s.v,(s.d=s.d+362437|0)+(s.v=s.v^s.v<<4^(d^d<<1))|0},s.x=0,s.y=0,s.z=0,s.w=0,s.v=0,l===(l|0)?s.x=l:u+=l;for(var c=0;c>>4),s.next()}function a(l,s){return s.x=l.x,s.y=l.y,s.z=l.z,s.w=l.w,s.v=l.v,s.d=l.d,s}function i(l,s){var u=new o(l),c=s&&s.state,d=function(){return(u.next()>>>0)/4294967296};return d.double=function(){do var f=u.next()>>>11,p=(u.next()>>>0)/4294967296,v=(f+p)/(1<<21);while(v===0);return v},d.int32=u.next,d.quick=d,c&&(typeof c=="object"&&a(c,u),d.state=function(){return a(u,{})}),d}n&&n.exports?n.exports=i:r&&r.amd?r(function(){return i}):this.xorwow=i})(tr,e,!1)})(qIe);var Py={},GIe={get exports(){return Py},set exports(e){Py=e}};(function(e){(function(t,n,r){function o(l){var s=this;s.next=function(){var c=s.x,d=s.i,f,p;return f=c[d],f^=f>>>7,p=f^f<<24,f=c[d+1&7],p^=f^f>>>10,f=c[d+3&7],p^=f^f>>>3,f=c[d+4&7],p^=f^f<<7,f=c[d+7&7],f=f^f<<13,p^=f^f<<9,c[d]=p,s.i=d+1&7,p};function u(c,d){var f,p=[];if(d===(d|0))p[0]=d;else for(d=""+d,f=0;f0;--f)c.next()}u(s,l)}function a(l,s){return s.x=l.x.slice(),s.i=l.i,s}function i(l,s){l==null&&(l=+new Date);var u=new o(l),c=s&&s.state,d=function(){return(u.next()>>>0)/4294967296};return d.double=function(){do var f=u.next()>>>11,p=(u.next()>>>0)/4294967296,v=(f+p)/(1<<21);while(v===0);return v},d.int32=u.next,d.quick=d,c&&(c.x&&a(c,u),d.state=function(){return a(u,{})}),d}n&&n.exports?n.exports=i:r&&r.amd?r(function(){return i}):this.xorshift7=i})(tr,e,!1)})(GIe);var Iy={},XIe={get exports(){return Iy},set exports(e){Iy=e}};(function(e){(function(t,n,r){function o(l){var s=this;s.next=function(){var c=s.w,d=s.X,f=s.i,p,v;return s.w=c=c+1640531527|0,v=d[f+34&127],p=d[f=f+1&127],v^=v<<13,p^=p<<17,v^=v>>>15,p^=p>>>12,v=d[f]=v^p,s.i=f,v+(c^c>>>16)|0};function u(c,d){var f,p,v,m,h,g=[],x=128;for(d===(d|0)?(p=d,d=null):(d=d+"\0",p=0,x=Math.max(x,d.length)),v=0,m=-32;m>>15,p^=p<<4,p^=p>>>13,m>=0&&(h=h+1640531527|0,f=g[m&127]^=p+h,v=f==0?v+1:0);for(v>=128&&(g[(d&&d.length||0)&127]=-1),v=127,m=4*128;m>0;--m)p=g[v+34&127],f=g[v=v+1&127],p^=p<<13,f^=f<<17,p^=p>>>15,f^=f>>>12,g[v]=p^f;c.w=h,c.X=g,c.i=v}u(s,l)}function a(l,s){return s.i=l.i,s.w=l.w,s.X=l.X.slice(),s}function i(l,s){l==null&&(l=+new Date);var u=new o(l),c=s&&s.state,d=function(){return(u.next()>>>0)/4294967296};return d.double=function(){do var f=u.next()>>>11,p=(u.next()>>>0)/4294967296,v=(f+p)/(1<<21);while(v===0);return v},d.int32=u.next,d.quick=d,c&&(c.X&&a(c,u),d.state=function(){return a(u,{})}),d}n&&n.exports?n.exports=i:r&&r.amd?r(function(){return i}):this.xor4096=i})(tr,e,!1)})(XIe);var _y={},YIe={get exports(){return _y},set exports(e){_y=e}};(function(e){(function(t,n,r){function o(l){var s=this,u="";s.next=function(){var d=s.b,f=s.c,p=s.d,v=s.a;return d=d<<25^d>>>7^f,f=f-p|0,p=p<<24^p>>>8^v,v=v-d|0,s.b=d=d<<20^d>>>12^f,s.c=f=f-p|0,s.d=p<<16^f>>>16^v,s.a=v-d|0},s.a=0,s.b=0,s.c=-1640531527,s.d=1367130551,l===Math.floor(l)?(s.a=l/4294967296|0,s.b=l|0):u+=l;for(var c=0;c>>0)/4294967296};return d.double=function(){do var f=u.next()>>>11,p=(u.next()>>>0)/4294967296,v=(f+p)/(1<<21);while(v===0);return v},d.int32=u.next,d.quick=d,c&&(typeof c=="object"&&a(c,u),d.state=function(){return a(u,{})}),d}n&&n.exports?n.exports=i:r&&r.amd?r(function(){return i}):this.tychei=i})(tr,e,!1)})(YIe);var By={},ZIe={get exports(){return By},set exports(e){By=e}};const JIe={},QIe=Object.freeze(Object.defineProperty({__proto__:null,default:JIe},Symbol.toStringTag,{value:"Module"})),e8e=UZ(QIe);(function(e){(function(t,n,r){var o=256,a=6,i=52,l="random",s=r.pow(o,a),u=r.pow(2,i),c=u*2,d=o-1,f;function p(w,b,S){var $=[];b=b==!0?{entropy:!0}:b||{};var D=g(h(b.entropy?[w,y(n)]:w??x(),3),$),O=new v($),A=function(){for(var T=O.g(a),M=s,B=0;T=c;)T/=2,M/=2,B>>>=1;return(T+B)/M};return A.int32=function(){return O.g(4)|0},A.quick=function(){return O.g(4)/4294967296},A.double=A,g(y(O.S),n),(b.pass||S||function(T,M,B,F){return F&&(F.S&&m(F,O),T.state=function(){return m(O,{})}),B?(r[l]=T,M):T})(A,D,"global"in b?b.global:this==r,b.state)}function v(w){var b,S=w.length,$=this,D=0,O=$.i=$.j=0,A=$.S=[];for(S||(w=[S++]);D{var{typed:t,config:n,on:r}=e,o=Ss(n.randomSeed);return r&&r("config",function(i,l){i.randomSeed!==l.randomSeed&&(o=Ss(i.randomSeed))}),t(tT,{"Array | Matrix":function(l){return a(l,{})},"Array | Matrix, Object":function(l,s){return a(l,s)},"Array | Matrix, number":function(l,s){return a(l,{number:s})},"Array | Matrix, Array | Matrix":function(l,s){return a(l,{weights:s})},"Array | Matrix, Array | Matrix, number":function(l,s,u){return a(l,{number:u,weights:s})},"Array | Matrix, number, Array | Matrix":function(l,s,u){return a(l,{number:s,weights:u})}});function a(i,l){var{number:s,weights:u,elementWise:c=!0}=l,d=typeof s>"u";d&&(s=1);var f=mt(i)?i.create:mt(u)?u.create:null;i=i.valueOf(),u&&(u=u.valueOf()),c===!0&&(i=Ht(i),u=Ht(u));var p=0;if(typeof u<"u"){if(u.length!==i.length)throw new Error("Weights must have the same length as possibles");for(var v=0,m=u.length;v"u")x=i[Math.floor(o()*h)];else for(var y=o()*p,w=0,b=i.length;w1)for(var r=0,o=e.shift();r{var{typed:t,config:n,on:r}=e,o=Ss(n.randomSeed);return r&&r("config",function(l,s){l.randomSeed!==s.randomSeed&&(o=Ss(l.randomSeed))}),t(nT,{"":()=>i(0,1),number:l=>i(0,l),"number, number":(l,s)=>i(l,s),"Array | Matrix":l=>a(l,0,1),"Array | Matrix, number":(l,s)=>a(l,0,s),"Array | Matrix, number, number":(l,s,u)=>a(l,s,u)});function a(l,s,u){var c=Yw(l.valueOf(),()=>i(s,u));return mt(l)?l.create(c):c}function i(l,s){return l+o()*(s-l)}}),rT="randomInt",f8e=["typed","config","?on"],p8e=se(rT,f8e,e=>{var{typed:t,config:n,on:r}=e,o=Ss(n.randomSeed);return r&&r("config",function(l,s){l.randomSeed!==s.randomSeed&&(o=Ss(l.randomSeed))}),t(rT,{"":()=>i(0,1),number:l=>i(0,l),"number, number":(l,s)=>i(l,s),"Array | Matrix":l=>a(l,0,1),"Array | Matrix, number":(l,s)=>a(l,0,s),"Array | Matrix, number, number":(l,s,u)=>a(l,s,u)});function a(l,s,u){var c=Yw(l.valueOf(),()=>i(s,u));return mt(l)?l.create(c):c}function i(l,s){return Math.floor(l+o()*(s-l))}}),oT="stirlingS2",m8e=["typed","addScalar","subtract","multiplyScalar","divideScalar","pow","factorial","combinations","isNegative","isInteger","number","?bignumber","larger"],v8e=se(oT,m8e,e=>{var{typed:t,addScalar:n,subtract:r,multiplyScalar:o,divideScalar:a,pow:i,factorial:l,combinations:s,isNegative:u,isInteger:c,number:d,bignumber:f,larger:p}=e,v=[],m=[];return t(oT,{"number | BigNumber, number | BigNumber":function(g,x){if(!c(g)||u(g)||!c(x)||u(x))throw new TypeError("Non-negative integer value expected in function stirlingS2");if(p(x,g))throw new TypeError("k must be less than or equal to n in function stirlingS2");var y=!(Pt(g)&&Pt(x)),w=y?m:v,b=y?f:d,S=d(g),$=d(x);if(w[S]&&w[S].length>$)return w[S][$];for(var D=0;D<=S;++D)if(w[D]||(w[D]=[b(D===0?1:0)]),D!==0)for(var O=w[D],A=w[D-1],T=O.length;T<=D&&T<=$;++T)T===D?O[T]=1:O[T]=n(o(b(T),A[T]),A[T-1]);return w[S][$]}})}),aT="bellNumbers",h8e=["typed","addScalar","isNegative","isInteger","stirlingS2"],g8e=se(aT,h8e,e=>{var{typed:t,addScalar:n,isNegative:r,isInteger:o,stirlingS2:a}=e;return t(aT,{"number | BigNumber":function(l){if(!o(l)||r(l))throw new TypeError("Non-negative integer value expected in function bellNumbers");for(var s=0,u=0;u<=l;u++)s=n(s,a(l,u));return s}})}),iT="catalan",y8e=["typed","addScalar","divideScalar","multiplyScalar","combinations","isNegative","isInteger"],b8e=se(iT,y8e,e=>{var{typed:t,addScalar:n,divideScalar:r,multiplyScalar:o,combinations:a,isNegative:i,isInteger:l}=e;return t(iT,{"number | BigNumber":function(u){if(!l(u)||i(u))throw new TypeError("Non-negative integer value expected in function catalan");return r(a(o(u,2),u),n(u,1))}})}),lT="composition",x8e=["typed","addScalar","combinations","isNegative","isPositive","isInteger","larger"],w8e=se(lT,x8e,e=>{var{typed:t,addScalar:n,combinations:r,isPositive:o,isNegative:a,isInteger:i,larger:l}=e;return t(lT,{"number | BigNumber, number | BigNumber":function(u,c){if(!i(u)||!o(u)||!i(c)||!o(c))throw new TypeError("Positive integer value expected in function composition");if(l(c,u))throw new TypeError("k must be less than or equal to n in function composition");return r(n(u,-1),n(c,-1))}})}),sT="leafCount",S8e=["parse","typed"],C8e=se(sT,S8e,e=>{var{parse:t,typed:n}=e;function r(o){var a=0;return o.forEach(i=>{a+=r(i)}),a||1}return n(sT,{Node:function(a){return r(a)}})});function uT(e){return Rt(e)||bn(e)&&e.isUnary()&&Rt(e.args[0])}function Zp(e){return!!(Rt(e)||(Sa(e)||bn(e))&&e.args.every(Zp)||jo(e)&&Zp(e.content))}function cT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function wg(e){for(var t=1;t{var{FunctionNode:t,OperatorNode:n,SymbolNode:r}=e,o=!0,a=!1,i="defaultF",l={add:{trivial:o,total:o,commutative:o,associative:o},unaryPlus:{trivial:o,total:o,commutative:o,associative:o},subtract:{trivial:a,total:o,commutative:a,associative:a},multiply:{trivial:o,total:o,commutative:o,associative:o},divide:{trivial:a,total:o,commutative:a,associative:a},paren:{trivial:o,total:o,commutative:o,associative:a},defaultF:{trivial:a,total:o,commutative:a,associative:a}},s={divide:{total:a},log:{total:a}},u={subtract:{total:a},abs:{trivial:o},log:{total:o}};function c(y,w){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l,S=i;if(typeof y=="string"?S=y:bn(y)?S=y.fn.toString():Sa(y)?S=y.name:jo(y)&&(S="paren"),Ke(b,S)){var $=b[S];if(Ke($,w))return $[w];if(Ke(l,S))return l[S][w]}if(Ke(b,i)){var D=b[i];return Ke(D,w)?D[w]:l[i][w]}if(Ke(l,S)){var O=l[S];if(Ke(O,w))return O[w]}return l[i][w]}function d(y){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;return c(y,"commutative",w)}function f(y){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;return c(y,"associative",w)}function p(y,w){var b=wg({},y);for(var S in w)Ke(y,S)?b[S]=wg(wg({},w[S]),y[S]):b[S]=w[S];return b}function v(y,w){if(!y.args||y.args.length===0)return y;y.args=m(y,w);for(var b=0;b2&&f(y,w)){for(var D=y.args.pop();y.args.length>0;)D=b([y.args.pop(),D]);y.args=D.args}}}function g(y,w){if(!(!y.args||y.args.length===0)){for(var b=x(y),S=y.args.length,$=0;$2&&f(y,w)){for(var D=y.args.shift();y.args.length>0;)D=b([D,y.args.shift()]);y.args=D.args}}}function x(y){return bn(y)?function(w){try{return new n(y.op,y.fn,w,y.implicit)}catch(b){return console.error(b),[]}}:function(w){return new t(new r(y.name),w)}}return{createMakeNodeFunction:x,hasProperty:c,isCommutative:d,isAssociative:f,mergeContext:p,flatten:v,allChildren:m,unflattenr:h,unflattenl:g,defaultContext:l,realContext:s,positiveContext:u}}),D8e="simplify",A8e=["config","typed","parse","add","subtract","multiply","divide","pow","isZero","equal","resolve","simplifyConstant","simplifyCore","?fraction","?bignumber","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],O8e=se(D8e,A8e,e=>{var{config:t,typed:n,parse:r,add:o,subtract:a,multiply:i,divide:l,pow:s,isZero:u,equal:c,resolve:d,simplifyConstant:f,simplifyCore:p,fraction:v,bignumber:m,mathWithTransform:h,matrix:g,AccessorNode:x,ArrayNode:y,ConstantNode:w,FunctionNode:b,IndexNode:S,ObjectNode:$,OperatorNode:D,ParenthesisNode:O,SymbolNode:A}=e,{hasProperty:T,isCommutative:M,isAssociative:B,mergeContext:F,flatten:P,unflattenr:I,unflattenl:N,createMakeNodeFunction:R,defaultContext:_,realContext:L,positiveContext:k}=Zw({FunctionNode:b,OperatorNode:D,SymbolNode:A});n.addConversion({from:"Object",to:"Map",convert:ts});var H=n("simplify",{Node:ee,"Node, Map":(Y,ae)=>ee(Y,!1,ae),"Node, Map, Object":(Y,ae,ce)=>ee(Y,!1,ae,ce),"Node, Array":ee,"Node, Array, Map":ee,"Node, Array, Map, Object":ee});n.removeConversion({from:"Object",to:"Map",convert:ts}),H.defaultContext=_,H.realContext=L,H.positiveContext=k;function V(Y){return Y.transform(function(ae,ce,Ce){return jo(ae)?V(ae.content):ae})}var U={true:!0,false:!0,e:!0,i:!0,Infinity:!0,LN2:!0,LN10:!0,LOG2E:!0,LOG10E:!0,NaN:!0,phi:!0,pi:!0,SQRT1_2:!0,SQRT2:!0,tau:!0};H.rules=[p,{l:"log(e)",r:"1"},{s:"n-n1 -> n+-n1",assuming:{subtract:{total:!0}}},{s:"n-n -> 0",assuming:{subtract:{total:!1}}},{s:"-(cl*v) -> v * (-cl)",assuming:{multiply:{commutative:!0},subtract:{total:!0}}},{s:"-(cl*v) -> (-cl) * v",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{s:"-(v*cl) -> v * (-cl)",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{l:"-(n1/n2)",r:"-n1/n2"},{l:"-v",r:"v * (-1)"},{l:"(n1 + n2)*(-1)",r:"n1*(-1) + n2*(-1)",repeat:!0},{l:"n/n1^n2",r:"n*n1^-n2"},{l:"n/n1",r:"n*n1^-1"},{s:"(n1*n2)^n3 -> n1^n3 * n2^n3",assuming:{multiply:{commutative:!0}}},{s:"(n1*n2)^(-1) -> n2^(-1) * n1^(-1)",assuming:{multiply:{commutative:!1}}},{s:"(n ^ n1) ^ n2 -> n ^ (n1 * n2)",assuming:{divide:{total:!0}}},{l:" vd * ( vd * n1 + n2)",r:"vd^2 * n1 + vd * n2"},{s:" vd * (vd^n4 * n1 + n2) -> vd^(1+n4) * n1 + vd * n2",assuming:{divide:{total:!0}}},{s:"vd^n3 * ( vd * n1 + n2) -> vd^(n3+1) * n1 + vd^n3 * n2",assuming:{divide:{total:!0}}},{s:"vd^n3 * (vd^n4 * n1 + n2) -> vd^(n3+n4) * n1 + vd^n3 * n2",assuming:{divide:{total:!0}}},{l:"n*n",r:"n^2"},{s:"n * n^n1 -> n^(n1+1)",assuming:{divide:{total:!0}}},{s:"n^n1 * n^n2 -> n^(n1+n2)",assuming:{divide:{total:!0}}},f,{s:"n+n -> 2*n",assuming:{add:{total:!0}}},{l:"n+-n",r:"0"},{l:"vd*n + vd",r:"vd*(n+1)"},{l:"n3*n1 + n3*n2",r:"n3*(n1+n2)"},{l:"n3^(-n4)*n1 + n3 * n2",r:"n3^(-n4)*(n1 + n3^(n4+1) *n2)"},{l:"n3^(-n4)*n1 + n3^n5 * n2",r:"n3^(-n4)*(n1 + n3^(n4+n5)*n2)"},{s:"n*vd + vd -> (n+1)*vd",assuming:{multiply:{commutative:!1}}},{s:"vd + n*vd -> (1+n)*vd",assuming:{multiply:{commutative:!1}}},{s:"n1*n3 + n2*n3 -> (n1+n2)*n3",assuming:{multiply:{commutative:!1}}},{s:"n^n1 * n -> n^(n1+1)",assuming:{divide:{total:!0},multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3 -> (n1 + n2*n3^(n4 + 1))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3^n5 -> (n1 + n2*n3^(n4 + n5))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{l:"n*cd + cd",r:"(n+1)*cd"},{s:"cd*n + cd -> cd*(n+1)",assuming:{multiply:{commutative:!1}}},{s:"cd + cd*n -> cd*(1+n)",assuming:{multiply:{commutative:!1}}},f,{s:"(-n)*n1 -> -(n*n1)",assuming:{subtract:{total:!0}}},{s:"n1*(-n) -> -(n1*n)",assuming:{subtract:{total:!0},multiply:{commutative:!1}}},{s:"ce+ve -> ve+ce",assuming:{add:{commutative:!0}},imposeContext:{add:{commutative:!1}}},{s:"vd*cd -> cd*vd",assuming:{multiply:{commutative:!0}},imposeContext:{multiply:{commutative:!1}}},{l:"n+-n1",r:"n-n1"},{s:"n*(n1^-1) -> n/n1",assuming:{multiply:{commutative:!0}}},{s:"n*n1^-n2 -> n/n1^n2",assuming:{multiply:{commutative:!0}}},{s:"n^-1 -> 1/n",assuming:{multiply:{commutative:!0}}},{l:"n^1",r:"n"},{s:"n*(n1/n2) -> (n*n1)/n2",assuming:{multiply:{associative:!0}}},{s:"n-(n1+n2) -> n-n1-n2",assuming:{addition:{associative:!0,commutative:!0}}},{l:"1*n",r:"n",imposeContext:{multiply:{commutative:!0}}},{s:"n1/(n2/n3) -> (n1*n3)/n2",assuming:{multiply:{associative:!0}}},{l:"n1/(-n2)",r:"-n1/n2"}];function q(Y,ae){var ce={};if(Y.s){var Ce=Y.s.split("->");if(Ce.length===2)ce.l=Ce[0],ce.r=Ce[1];else throw SyntaxError("Could not parse rule: "+Y.s)}else ce.l=Y.l,ce.r=Y.r;ce.l=V(r(ce.l)),ce.r=V(r(ce.r));for(var ye of["imposeContext","repeat","assuming"])ye in Y&&(ce[ye]=Y[ye]);if(Y.evaluate&&(ce.evaluate=r(Y.evaluate)),B(ce.l,ae)){var J=!M(ce.l,ae),ne;J&&(ne=re());var oe=R(ce.l),ie=re();ce.expanded={},ce.expanded.l=oe([ce.l,ie]),P(ce.expanded.l,ae),I(ce.expanded.l,ae),ce.expanded.r=oe([ce.r,ie]),J&&(ce.expandedNC1={},ce.expandedNC1.l=oe([ne,ce.l]),ce.expandedNC1.r=oe([ne,ce.r]),ce.expandedNC2={},ce.expandedNC2.l=oe([ne,ce.expanded.l]),ce.expandedNC2.r=oe([ne,ce.expanded.r]))}return ce}function K(Y,ae){for(var ce=[],Ce=0;Ce2&&arguments[2]!==void 0?arguments[2]:xs(),Ce=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},ye=Ce.consoleDebug;ae=K(ae||H.rules,Ce.context);var J=d(Y,ce);J=V(J);for(var ne={},oe=J.toString({parenthesis:"all"});!ne[oe];){ne[oe]=!0,X=0;var ie=oe;ye&&console.log("Working on: ",oe);for(var ve=0;ve ").concat(ae[ve].r.toString()))),ye){var $e=J.toString({parenthesis:"all"});$e!==ie&&(console.log("Applying",we,"produced",$e),ie=$e)}N(J,Ce.context)}oe=J.toString({parenthesis:"all"})}return J}function G(Y,ae,ce){var Ce=Y;if(Y)for(var ye=0;ye1&&(ie=J(Y.args.slice(0,oe))),ye=Y.args.slice(oe),Ce=ye.length===1?ye[0]:J(ye),ce.push(J([ie,Ce]))}return ce}function me(Y,ae){var ce={placeholders:{}};if(!Y.placeholders&&!ae.placeholders)return ce;if(Y.placeholders){if(!ae.placeholders)return Y}else return ae;for(var Ce in Y.placeholders)if(Ke(Y.placeholders,Ce)&&(ce.placeholders[Ce]=Y.placeholders[Ce],Ke(ae.placeholders,Ce)&&!de(Y.placeholders[Ce],ae.placeholders[Ce])))return null;for(var ye in ae.placeholders)Ke(ae.placeholders,ye)&&(ce.placeholders[ye]=ae.placeholders[ye]);return ce}function Se(Y,ae){var ce=[];if(Y.length===0||ae.length===0)return ce;for(var Ce,ye=0;ye2)throw new Error("permuting >2 commutative non-associative rule arguments not yet implemented");var ie=te(Y.args[0],ae.args[1],ce);if(ie.length===0)return[];var ve=te(Y.args[1],ae.args[0],ce);if(ve.length===0)return[];J=[ie,ve]}ye=Q(J)}else if(ae.args.length>=2&&Y.args.length===2){for(var we=ue(ae,ce),$e=[],Ae=0;Ae2)throw Error("Unexpected non-binary associative function: "+Y.toString());return[]}}else if(Y instanceof A){if(Y.name.length===0)throw new Error("Symbol in rule has 0 length...!?");if(U[Y.name]){if(Y.name!==ae.name)return[]}else switch(Y.name[1]>="a"&&Y.name[1]<="z"?Y.name.substring(0,2):Y.name[0]){case"n":case"_p":ye[0].placeholders[Y.name]=ae;break;case"c":case"cl":if(Rt(ae))ye[0].placeholders[Y.name]=ae;else return[];break;case"v":if(!Rt(ae))ye[0].placeholders[Y.name]=ae;else return[];break;case"vl":if(Pn(ae))ye[0].placeholders[Y.name]=ae;else return[];break;case"cd":if(uT(ae))ye[0].placeholders[Y.name]=ae;else return[];break;case"vd":if(!uT(ae))ye[0].placeholders[Y.name]=ae;else return[];break;case"ce":if(Zp(ae))ye[0].placeholders[Y.name]=ae;else return[];break;case"ve":if(!Zp(ae))ye[0].placeholders[Y.name]=ae;else return[];break;default:throw new Error("Invalid symbol in rule: "+Y.name)}}else if(Y instanceof w){if(!c(Y.value,ae.value))return[]}else return[];return ye}function de(Y,ae){if(Y instanceof w&&ae instanceof w){if(!c(Y.value,ae.value))return!1}else if(Y instanceof A&&ae instanceof A){if(Y.name!==ae.name)return!1}else if(Y instanceof D&&ae instanceof D||Y instanceof b&&ae instanceof b){if(Y instanceof D){if(Y.op!==ae.op||Y.fn!==ae.fn)return!1}else if(Y instanceof b&&Y.name!==ae.name)return!1;if(Y.args.length!==ae.args.length)return!1;for(var ce=0;ce{var{typed:t,config:n,mathWithTransform:r,matrix:o,fraction:a,bignumber:i,AccessorNode:l,ArrayNode:s,ConstantNode:u,FunctionNode:c,IndexNode:d,ObjectNode:f,OperatorNode:p,SymbolNode:v}=e,{isCommutative:m,isAssociative:h,allChildren:g,createMakeNodeFunction:x}=Zw({FunctionNode:c,OperatorNode:p,SymbolNode:v}),y=t("simplifyConstant",{Node:P=>$(F(P,{})),"Node, Object":function(I,N){return $(F(I,N))}});function w(P){return sl(P)?P.valueOf():P instanceof Array?P.map(w):mt(P)?o(w(P.valueOf())):P}function b(P,I,N){try{return r[P].apply(null,I)}catch{return I=I.map(w),O(r[P].apply(null,I),N)}}var S=t({Fraction:T,number:function(I){return I<0?A(new u(-I)):new u(I)},BigNumber:function(I){return I<0?A(new u(-I)):new u(I)},Complex:function(I){throw new Error("Cannot convert Complex number to Node")},string:function(I){return new u(I)},Matrix:function(I){return new s(I.valueOf().map(N=>S(N)))}});function $(P){return Kt(P)?P:S(P)}function D(P,I){var N=I&&I.exactFractions!==!1;if(N&&isFinite(P)&&a){var R=a(P),_=I&&typeof I.fractionsLimit=="number"?I.fractionsLimit:1/0;if(R.valueOf()===P&&R.n<_&&R.d<_)return R}return P}var O=t({"string, Object":function(I,N){if(n.number==="BigNumber")return i===void 0&&Kw(),i(I);if(n.number==="Fraction")return a===void 0&&vB(),a(I);var R=parseFloat(I);return D(R,N)},"Fraction, Object":function(I,N){return I},"BigNumber, Object":function(I,N){return I},"number, Object":function(I,N){return D(I,N)},"Complex, Object":function(I,N){return I.im!==0?I:D(I.re,N)},"Matrix, Object":function(I,N){return o(D(I.valueOf()))},"Array, Object":function(I,N){return I.map(D)}});function A(P){return new p("-","unaryMinus",[P])}function T(P){var I,N=P.s*P.n;return N<0?I=new p("-","unaryMinus",[new u(-N)]):I=new u(N),P.d===1?I:new p("/","divide",[I,new u(P.d)])}function M(P,I,N){if(!ul(I))return new l($(P),$(I));if(Ir(P)||mt(P)){for(var R=Array.from(I.dimensions);R.length>0;)if(Rt(R[0])&&typeof R[0].value!="string"){var _=O(R.shift().value,N);Ir(P)?P=P.items[_-1]:(P=P.valueOf()[_-1],P instanceof Array&&(P=o(P)))}else if(R.length>1&&Rt(R[1])&&typeof R[1].value!="string"){var L=O(R[1].value,N),k=[],H=Ir(P)?P.items:P.valueOf();for(var V of H)if(Ir(V))k.push(V.items[L-1]);else if(mt(P))k.push(V[L-1]);else break;if(k.length===H.length)Ir(P)?P=new s(k):P=o(k),R.splice(1,1);else break}else break;return R.length===I.dimensions.length?new l($(P),I):R.length>0?(I=new d(R),new l($(P),I)):P}if(Ic(P)&&I.dimensions.length===1&&Rt(I.dimensions[0])){var U=I.dimensions[0].value;return U in P.properties?P.properties[U]:new u}return new l($(P),I)}function B(P,I,N,R){var _=I.shift(),L=I.reduce((k,H)=>{if(!Kt(H)){var V=k.pop();if(Kt(V))return[V,H];try{return k.push(b(P,[V,H],R)),k}catch{k.push(V)}}k.push($(k.pop()));var U=k.length===1?k[0]:N(k);return[N([U,$(H)])]},[_]);return L.length===1?L[0]:N([L[0],S(L[1])])}function F(P,I){switch(P.type){case"SymbolNode":return P;case"ConstantNode":switch(typeof P.value){case"number":return O(P.value,I);case"string":return P.value;default:if(!isNaN(P.value))return O(P.value,I)}return P;case"FunctionNode":if(r[P.name]&&r[P.name].rawArgs)return P;{var N=["add","multiply"];if(N.indexOf(P.name)===-1){var R=P.args.map(le=>F(le,I));if(!R.some(Kt))try{return b(P.name,R,I)}catch{}if(P.name==="size"&&R.length===1&&Ir(R[0])){for(var _=[],L=R[0];Ir(L);)_.push(L.items.length),L=L.items[0];return o(_)}return new c(P.name,R.map($))}}case"OperatorNode":{var k=P.fn.toString(),H,V,U=x(P);if(bn(P)&&P.isUnary())H=[F(P.args[0],I)],Kt(H[0])?V=U(H):V=b(k,H,I);else if(h(P,I.context))if(H=g(P,I.context),H=H.map(le=>F(le,I)),m(k,I.context)){for(var q=[],K=[],X=0;X1?(V=B(k,q,U,I),K.unshift(V),V=B(k,K,U,I)):V=B(k,H,U,I)}else V=B(k,H,U,I);else H=P.args.map(le=>F(le,I)),V=B(k,H,U,I);return V}case"ParenthesisNode":return F(P.content,I);case"AccessorNode":return M(F(P.object,I),F(P.index,I),I);case"ArrayNode":{var re=P.items.map(le=>F(le,I));return re.some(Kt)?new s(re.map($)):o(re)}case"IndexNode":return new d(P.dimensions.map(le=>y(le,I)));case"ObjectNode":{var ee={};for(var G in P.properties)ee[G]=y(P.properties[G],I);return new f(ee)}case"AssignmentNode":case"BlockNode":case"FunctionAssignmentNode":case"RangeNode":case"ConditionalNode":default:throw new Error("Unimplemented node type in simplifyConstant: ".concat(P.type))}}return y}),dT="simplifyCore",P8e=["typed","parse","equal","isZero","add","subtract","multiply","divide","pow","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],I8e=se(dT,P8e,e=>{var{typed:t,parse:n,equal:r,isZero:o,add:a,subtract:i,multiply:l,divide:s,pow:u,AccessorNode:c,ArrayNode:d,ConstantNode:f,FunctionNode:p,IndexNode:v,ObjectNode:m,OperatorNode:h,ParenthesisNode:g,SymbolNode:x}=e,y=new f(0),w=new f(1),b=new f(!0),S=new f(!1);function $(T){return bn(T)&&["and","not","or"].includes(T.op)}var{hasProperty:D,isCommutative:O}=Zw({FunctionNode:p,OperatorNode:h,SymbolNode:x});function A(T){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=M?M.context:void 0;if(D(T,"trivial",B)){if(Sa(T)&&T.args.length===1)return A(T.args[0],M);var F=!1,P=0;if(T.forEach(K=>{++P,P===1&&(F=A(K,M))}),P===1)return F}var I=T;if(Sa(I)){var N=jDe(I.name);if(N){if(I.args.length>2&&D(I,"associative",B))for(;I.args.length>2;){var R=I.args.pop(),_=I.args.pop();I.args.push(new h(N,I.name,[R,_]))}I=new h(N,I.name,I.args)}else return new p(A(I.fn),I.args.map(K=>A(K,M)))}if(bn(I)&&I.isUnary()){var L=A(I.args[0],M);if(I.op==="~"&&bn(L)&&L.isUnary()&&L.op==="~"||I.op==="not"&&bn(L)&&L.isUnary()&&L.op==="not"&&$(L.args[0]))return L.args[0];var k=!0;if(I.op==="-"&&bn(L)&&(L.isBinary()&&L.fn==="subtract"&&(I=new h("-","subtract",[L.args[1],L.args[0]]),k=!1),L.isUnary()&&L.op==="-"))return L.args[0];if(k)return new h(I.op,I.fn,[L])}if(bn(I)&&I.isBinary()){var H=A(I.args[0],M),V=A(I.args[1],M);if(I.op==="+"){if(Rt(H)&&o(H.value))return V;if(Rt(V)&&o(V.value))return H;bn(V)&&V.isUnary()&&V.op==="-"&&(V=V.args[0],I=new h("-","subtract",[H,V]))}if(I.op==="-")return bn(V)&&V.isUnary()&&V.op==="-"?A(new h("+","add",[H,V.args[0]]),M):Rt(H)&&o(H.value)?A(new h("-","unaryMinus",[V])):Rt(V)&&o(V.value)?H:new h(I.op,I.fn,[H,V]);if(I.op==="*"){if(Rt(H)){if(o(H.value))return y;if(r(H.value,1))return V}if(Rt(V)){if(o(V.value))return y;if(r(V.value,1))return H;if(O(I,B))return new h(I.op,I.fn,[V,H],I.implicit)}return new h(I.op,I.fn,[H,V],I.implicit)}if(I.op==="/")return Rt(H)&&o(H.value)?y:Rt(V)&&r(V.value,1)?H:new h(I.op,I.fn,[H,V]);if(I.op==="^"&&Rt(V)){if(o(V.value))return w;if(r(V.value,1))return H}if(I.op==="and"){if(Rt(H))if(H.value){if($(V))return V}else return S;if(Rt(V))if(V.value){if($(H))return H}else return S}if(I.op==="or"){if(Rt(H)){if(H.value)return b;if($(V))return V}if(Rt(V)){if(V.value)return b;if($(H))return H}}return new h(I.op,I.fn,[H,V])}if(bn(I))return new h(I.op,I.fn,I.args.map(K=>A(K,M)));if(Ir(I))return new d(I.items.map(K=>A(K,M)));if(ii(I))return new c(A(I.object,M),A(I.index,M));if(ul(I))return new v(I.dimensions.map(K=>A(K,M)));if(Ic(I)){var U={};for(var q in I.properties)U[q]=A(I.properties[q],M);return new m(U)}return I}return t(dT,{Node:A,"Node,Object":A})}),_8e="resolve",B8e=["typed","parse","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode"],F8e=se(_8e,B8e,e=>{var{typed:t,parse:n,ConstantNode:r,FunctionNode:o,OperatorNode:a,ParenthesisNode:i}=e;function l(s,u){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Set;if(!u)return s;if(Pn(s)){if(c.has(s.name)){var d=Array.from(c).join(", ");throw new ReferenceError("recursive loop of variable definitions among {".concat(d,"}"))}var f=u.get(s.name);if(Kt(f)){var p=new Set(c);return p.add(s.name),l(f,u,p)}else return typeof f=="number"?n(String(f)):f!==void 0?new r(f):s}else if(bn(s)){var v=s.args.map(function(h){return l(h,u,c)});return new a(s.op,s.fn,v,s.implicit)}else{if(jo(s))return new i(l(s.content,u,c));if(Sa(s)){var m=s.args.map(function(h){return l(h,u,c)});return new o(s.name,m)}}return s.map(h=>l(h,u,c))}return t("resolve",{Node:l,"Node, Map | null | undefined":l,"Node, Object":(s,u)=>l(s,ts(u)),"Array | Matrix":t.referToSelf(s=>u=>u.map(c=>s(c))),"Array | Matrix, null | undefined":t.referToSelf(s=>u=>u.map(c=>s(c))),"Array, Object":t.referTo("Array,Map",s=>(u,c)=>s(u,ts(c))),"Matrix, Object":t.referTo("Matrix,Map",s=>(u,c)=>s(u,ts(c))),"Array | Matrix, Map":t.referToSelf(s=>(u,c)=>u.map(d=>s(d,c)))})}),fT="symbolicEqual",R8e=["parse","simplify","typed","OperatorNode"],z8e=se(fT,R8e,e=>{var{parse:t,simplify:n,typed:r,OperatorNode:o}=e;function a(i,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=new o("-","subtract",[i,l]),c=n(u,{},s);return Rt(c)&&!c.value}return r(fT,{"Node, Node":a,"Node, Node, Object":a})}),pT="derivative",L8e=["typed","config","parse","simplify","equal","isZero","numeric","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode","SymbolNode"],k8e=se(pT,L8e,e=>{var{typed:t,config:n,parse:r,simplify:o,equal:a,isZero:i,numeric:l,ConstantNode:s,FunctionNode:u,OperatorNode:c,ParenthesisNode:d,SymbolNode:f}=e;function p(w,b){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{simplify:!0},$={};h($,w,b.name);var D=g(w,$);return S.simplify?o(D):D}t.addConversion({from:"identifier",to:"SymbolNode",convert:r});var v=t(pT,{"Node, SymbolNode":p,"Node, SymbolNode, Object":p});t.removeConversion({from:"identifier",to:"SymbolNode",convert:r}),v._simplify=!0,v.toTex=function(w){return m.apply(null,w.args)};var m=t("_derivTex",{"Node, SymbolNode":function(b,S){return Rt(b)&&an(b.value)==="string"?m(r(b.value).toString(),S.toString(),1):m(b.toTex(),S.toString(),1)},"Node, ConstantNode":function(b,S){if(an(S.value)==="string")return m(b,r(S.value));throw new Error("The second parameter to 'derivative' is a non-string constant")},"Node, SymbolNode, ConstantNode":function(b,S,$){return m(b.toString(),S.name,$.value)},"string, string, number":function(b,S,$){var D;return $===1?D="{d\\over d"+S+"}":D="{d^{"+$+"}\\over d"+S+"^{"+$+"}}",D+"\\left[".concat(b,"\\right]")}}),h=t("constTag",{"Object, ConstantNode, string":function(b,S){return b[S]=!0,!0},"Object, SymbolNode, string":function(b,S,$){return S.name!==$?(b[S]=!0,!0):!1},"Object, ParenthesisNode, string":function(b,S,$){return h(b,S.content,$)},"Object, FunctionAssignmentNode, string":function(b,S,$){return S.params.indexOf($)===-1?(b[S]=!0,!0):h(b,S.expr,$)},"Object, FunctionNode | OperatorNode, string":function(b,S,$){if(S.args.length>0){for(var D=h(b,S.args[0],$),O=1;O0){var D=b.args.filter(function(I){return S[I]===void 0}),O=D.length===1?D[0]:new c("*","multiply",D),A=$.concat(g(O,S));return new c("*","multiply",A)}return new c("+","add",b.args.map(function(I){return new c("*","multiply",b.args.map(function(N){return N===I?g(N,S):N.clone()}))}))}if(b.op==="/"&&b.isBinary()){var T=b.args[0],M=b.args[1];return S[M]!==void 0?new c("/","divide",[g(T,S),M]):S[T]!==void 0?new c("*","multiply",[new c("-","unaryMinus",[T]),new c("/","divide",[g(M,S),new c("^","pow",[M.clone(),y(2)])])]):new c("/","divide",[new c("-","subtract",[new c("*","multiply",[g(T,S),M.clone()]),new c("*","multiply",[T.clone(),g(M,S)])]),new c("^","pow",[M.clone(),y(2)])])}if(b.op==="^"&&b.isBinary()){var B=b.args[0],F=b.args[1];if(S[B]!==void 0)return Rt(B)&&(i(B.value)||a(B.value,1))?y(0):new c("*","multiply",[b,new c("*","multiply",[new u("log",[B.clone()]),g(F.clone(),S)])]);if(S[F]!==void 0){if(Rt(F)){if(i(F.value))return y(0);if(a(F.value,1))return g(B,S)}var P=new c("^","pow",[B.clone(),new c("-","subtract",[F,y(1)])]);return new c("*","multiply",[F.clone(),new c("*","multiply",[g(B,S),P])])}return new c("*","multiply",[new c("^","pow",[B.clone(),F.clone()]),new c("+","add",[new c("*","multiply",[g(B,S),new c("/","divide",[F.clone(),B.clone()])]),new c("*","multiply",[g(F,S),new u("log",[B.clone()])])])])}throw new Error('Operator "'+b.op+'" is not supported by derivative, or a wrong number of arguments is passed')}});function x(w){if(!((w.name==="log"||w.name==="nthRoot"||w.name==="pow")&&w.args.length===2)){for(var b=0;b{var{config:t,typed:n,equal:r,isZero:o,add:a,subtract:i,multiply:l,divide:s,pow:u,parse:c,simplifyConstant:d,simplifyCore:f,simplify:p,fraction:v,bignumber:m,mathWithTransform:h,matrix:g,AccessorNode:x,ArrayNode:y,ConstantNode:w,FunctionNode:b,IndexNode:S,ObjectNode:$,OperatorNode:D,SymbolNode:O,ParenthesisNode:A}=e;function T(I){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_=B(),L=M(I,N,!0,_.firstRules),k=L.variables.length,H={exactFractions:!1},V={exactFractions:!0};if(I=L.expression,k>=1){I=F(I);var U,q,K=!0,X=!1;I=p(I,_.firstRules,{},H);for(var re;q=K?_.distrDivRules:_.sucDivRules,I=p(I,q,{},V),K=!K,re=I.toString(),re!==U;)X=!0,U=re;X&&(I=p(I,_.firstRulesAgain,{},H)),I=p(I,_.finalRules,{},H)}var ee=[],G={};return I.type==="OperatorNode"&&I.isBinary()&&I.op==="/"?(k===1&&(I.args[0]=P(I.args[0],ee),I.args[1]=P(I.args[1])),R&&(G.numerator=I.args[0],G.denominator=I.args[1])):(k===1&&(I=P(I,ee)),R&&(G.numerator=I,G.denominator=null)),R?(G.coefficients=ee,G.variables=L.variables,G.expression=I,G):I}return n(mT,{Node:T,"Node, boolean":(I,N)=>T(I,{},N),"Node, Object":T,"Node, Object, boolean":T});function M(I,N,R,_){var L=[],k=p(I,_,N,{exactFractions:!1});R=!!R;var H="+-*"+(R?"/":"");U(k);var V={};return V.expression=k,V.variables=L,V;function U(q){var K=q.type;if(K==="FunctionNode")throw new Error("There is an unsolved function call");if(K==="OperatorNode")if(q.op==="^"){if(q.args[1].type!=="ConstantNode"||!ot(parseFloat(q.args[1].value)))throw new Error("There is a non-integer exponent");U(q.args[0])}else{if(H.indexOf(q.op)===-1)throw new Error("Operator "+q.op+" invalid in polynomial expression");for(var X=0;X1;if(_==="OperatorNode"&&I.isBinary()){var k=!1,H;if(I.op==="^"&&(I.args[0].type==="ParenthesisNode"||I.args[0].type==="OperatorNode")&&I.args[1].type==="ConstantNode"&&(H=parseFloat(I.args[1].value),k=H>=2&&ot(H)),k){if(H>2){var V=I.args[0],U=new D("^","pow",[I.args[0].cloneDeep(),new w(H-1)]);I=new D("*","multiply",[V,U])}else I=new D("*","multiply",[I.args[0],I.args[0].cloneDeep()]);L&&(R==="content"?N.content=I:N.args[R]=I)}}if(_==="ParenthesisNode")F(I.content,I,"content");else if(_!=="ConstantNode"&&_!=="SymbolNode")for(var q=0;q=0;V--)if(N[V]!==0){var U=new w(k?N[V]:Math.abs(N[V])),q=N[V]<0?"-":"+";if(V>0){var K=new O(L);if(V>1){var X=new w(V);K=new D("^","pow",[K,X])}N[V]===-1&&k?U=new D("-","unaryMinus",[K]):Math.abs(N[V])===1?U=K:U=new D("*","multiply",[U,K])}k?H=U:q==="+"?H=new D("+","add",[H,U]):H=new D("-","subtract",[H,U]),k=!1}if(k)return new w(0);return H;function re(ee,G,le){var ue=ee.type;if(ue==="FunctionNode")throw new Error("There is an unsolved function call");if(ue==="OperatorNode"){if("+-*^".indexOf(ee.op)===-1)throw new Error("Operator "+ee.op+" invalid");if(G!==null){if((ee.fn==="unaryMinus"||ee.fn==="pow")&&G.fn!=="add"&&G.fn!=="subtract"&&G.fn!=="multiply")throw new Error("Invalid "+ee.op+" placing");if((ee.fn==="subtract"||ee.fn==="add"||ee.fn==="multiply")&&G.fn!=="add"&&G.fn!=="subtract")throw new Error("Invalid "+ee.op+" placing");if((ee.fn==="subtract"||ee.fn==="add"||ee.fn==="unaryMinus")&&le.noFil!==0)throw new Error("Invalid "+ee.op+" placing")}(ee.op==="^"||ee.op==="*")&&(le.fire=ee.op);for(var me=0;me_&&(N[Se]=0),N[Se]+=le.cte*(le.oper==="+"?1:-1),_=Math.max(Se,_);return}le.cte=Se,le.fire===""&&(N[0]+=le.cte*(le.oper==="+"?1:-1))}else throw new Error("Type "+ue+" is not allowed")}}}),V8e="reviver",W8e=["classes"],U8e=se(V8e,W8e,e=>{var{classes:t}=e;return function(r,o){var a=t[o&&o.mathjs];return a&&typeof a.fromJSON=="function"?a.fromJSON(o):o}}),K8e="replacer",q8e=[],G8e=se(K8e,q8e,()=>function(t,n){return typeof n=="number"&&(!isFinite(n)||isNaN(n))?{mathjs:"number",value:String(n)}:n}),X8e="11.8.0",Y8e=se("true",[],()=>!0),Z8e=se("false",[],()=>!1),J8e=se("null",[],()=>null),Q8e=jr("Infinity",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?new n(1/0):1/0}),e6e=jr("NaN",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?new n(NaN):NaN}),t6e=jr("pi",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?Xw(n):Awe}),n6e=jr("tau",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?KEe(n):Owe}),r6e=jr("e",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?WEe(n):Twe}),o6e=jr("phi",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?UEe(n):Mwe}),a6e=jr("LN2",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?new n(2).ln():Math.LN2}),i6e=jr("LN10",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?new n(10).ln():Math.LN10}),l6e=jr("LOG2E",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?new n(1).div(new n(2).ln()):Math.LOG2E}),s6e=jr("LOG10E",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?new n(1).div(new n(10).ln()):Math.LOG10E}),u6e=jr("SQRT1_2",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?new n("0.5").sqrt():Math.SQRT1_2}),c6e=jr("SQRT2",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?new n(2).sqrt():Math.SQRT2}),d6e=jr("i",["Complex"],e=>{var{Complex:t}=e;return t.I}),f6e=se("PI",["pi"],e=>{var{pi:t}=e;return t}),p6e=se("E",["e"],e=>{var{e:t}=e;return t}),m6e=se("version",[],()=>X8e);function jr(e,t,n){return se(e,t,n,{recreateOnConfigChange:!0})}var v6e=wt("speedOfLight","299792458","m s^-1"),h6e=wt("gravitationConstant","6.67430e-11","m^3 kg^-1 s^-2"),g6e=wt("planckConstant","6.62607015e-34","J s"),y6e=wt("reducedPlanckConstant","1.0545718176461565e-34","J s"),b6e=wt("magneticConstant","1.25663706212e-6","N A^-2"),x6e=wt("electricConstant","8.8541878128e-12","F m^-1"),w6e=wt("vacuumImpedance","376.730313667","ohm"),S6e=wt("coulomb","8.987551792261171e9","N m^2 C^-2"),C6e=wt("elementaryCharge","1.602176634e-19","C"),$6e=wt("bohrMagneton","9.2740100783e-24","J T^-1"),E6e=wt("conductanceQuantum","7.748091729863649e-5","S"),D6e=wt("inverseConductanceQuantum","12906.403729652257","ohm"),A6e=wt("magneticFluxQuantum","2.0678338484619295e-15","Wb"),O6e=wt("nuclearMagneton","5.0507837461e-27","J T^-1"),T6e=wt("klitzing","25812.807459304513","ohm"),M6e=wt("bohrRadius","5.29177210903e-11","m"),N6e=wt("classicalElectronRadius","2.8179403262e-15","m"),P6e=wt("electronMass","9.1093837015e-31","kg"),I6e=wt("fermiCoupling","1.1663787e-5","GeV^-2"),_6e=Lv("fineStructure",.0072973525693),B6e=wt("hartreeEnergy","4.3597447222071e-18","J"),F6e=wt("protonMass","1.67262192369e-27","kg"),R6e=wt("deuteronMass","3.3435830926e-27","kg"),z6e=wt("neutronMass","1.6749271613e-27","kg"),L6e=wt("quantumOfCirculation","3.6369475516e-4","m^2 s^-1"),k6e=wt("rydberg","10973731.568160","m^-1"),H6e=wt("thomsonCrossSection","6.6524587321e-29","m^2"),j6e=Lv("weakMixingAngle",.2229),V6e=Lv("efimovFactor",22.7),W6e=wt("atomicMass","1.66053906660e-27","kg"),U6e=wt("avogadro","6.02214076e23","mol^-1"),K6e=wt("boltzmann","1.380649e-23","J K^-1"),q6e=wt("faraday","96485.33212331001","C mol^-1"),G6e=wt("firstRadiation","3.7417718521927573e-16","W m^2"),X6e=wt("loschmidt","2.686780111798444e25","m^-3"),Y6e=wt("gasConstant","8.31446261815324","J K^-1 mol^-1"),Z6e=wt("molarPlanckConstant","3.990312712893431e-10","J s mol^-1"),J6e=wt("molarVolume","0.022413969545014137","m^3 mol^-1"),Q6e=Lv("sackurTetrode",-1.16487052358),e5e=wt("secondRadiation","0.014387768775039337","m K"),t5e=wt("stefanBoltzmann","5.67037441918443e-8","W m^-2 K^-4"),n5e=wt("wienDisplacement","2.897771955e-3","m K"),r5e=wt("molarMass","0.99999999965e-3","kg mol^-1"),o5e=wt("molarMassC12","11.9999999958e-3","kg mol^-1"),a5e=wt("gravity","9.80665","m s^-2"),i5e=wt("planckLength","1.616255e-35","m"),l5e=wt("planckMass","2.176435e-8","kg"),s5e=wt("planckTime","5.391245e-44","s"),u5e=wt("planckCharge","1.87554603778e-18","C"),c5e=wt("planckTemperature","1.416785e+32","K");function wt(e,t,n){var r=["config","Unit","BigNumber"];return se(e,r,o=>{var{config:a,Unit:i,BigNumber:l}=o,s=a.number==="BigNumber"?new l(t):parseFloat(t),u=new i(s,n);return u.fixPrefix=!0,u})}function Lv(e,t){var n=["config","BigNumber"];return se(e,n,r=>{var{config:o,BigNumber:a}=r;return o.number==="BigNumber"?new a(t):t})}var d5e="apply",f5e=["typed","isInteger"],p5e=se(d5e,f5e,e=>{var{typed:t,isInteger:n}=e,r=uB({typed:t,isInteger:n});return t("apply",{"...any":function(a){var i=a[1];Pt(i)?a[1]=i-1:Ot(i)&&(a[1]=i.minus(1));try{return r.apply(null,a)}catch(l){throw pr(l)}}})},{isTransformFunction:!0}),m5e="column",v5e=["typed","Index","matrix","range"],h5e=se(m5e,v5e,e=>{var{typed:t,Index:n,matrix:r,range:o}=e,a=pB({typed:t,Index:n,matrix:r,range:o});return t("column",{"...any":function(l){var s=l.length-1,u=l[s];Pt(u)&&(l[s]=u-1);try{return a.apply(null,l)}catch(c){throw pr(c)}}})},{isTransformFunction:!0});function Jw(e,t,n){var r=e.filter(function(l){return Pn(l)&&!(l.name in t)&&!n.has(l.name)})[0];if(!r)throw new Error('No undefined variable found in inline expression "'+e+'"');var o=r.name,a=cu(n),i=e.compile();return function(s){return a.set(o,s),i.evaluate(a)}}var g5e="filter",y5e=["typed"],b5e=se(g5e,y5e,e=>{var{typed:t}=e;function n(o,a,i){var l,s;return o[0]&&(l=o[0].compile().evaluate(i)),o[1]&&(Pn(o[1])||zs(o[1])?s=o[1].compile().evaluate(i):s=Jw(o[1],a,i)),r(l,s)}n.rawArgs=!0;var r=t("filter",{"Array, function":vT,"Matrix, function":function(a,i){return a.create(vT(a.toArray(),i))},"Array, RegExp":_p,"Matrix, RegExp":function(a,i){return a.create(_p(a.toArray(),i))}});return n},{isTransformFunction:!0});function vT(e,t){var n=mi(t);return Z_(e,function(r,o,a){return n===1?t(r):n===2?t(r,[o+1]):t(r,[o+1],a)})}var x5e="forEach",w5e=["typed"],S5e=se(x5e,w5e,e=>{var{typed:t}=e;function n(o,a,i){var l,s;return o[0]&&(l=o[0].compile().evaluate(i)),o[1]&&(Pn(o[1])||zs(o[1])?s=o[1].compile().evaluate(i):s=Jw(o[1],a,i)),r(l,s)}n.rawArgs=!0;var r=t("forEach",{"Array | Matrix, function":function(a,i){var l=mi(i),s=function u(c,d){Array.isArray(c)?Mv(c,function(f,p){u(f,d.concat(p+1))}):l===1?i(c):l===2?i(c,d):i(c,d,a)};s(a.valueOf(),[])}});return n},{isTransformFunction:!0}),C5e="index",$5e=["Index"],E5e=se(C5e,$5e,e=>{var{Index:t}=e;return function(){for(var r=[],o=0,a=arguments.length;o0?0:2;else if(i&&i.isSet===!0)i=i.map(function(s){return s-1});else if(Ut(i)||mt(i))i=i.map(function(s){return s-1});else if(Pt(i))i--;else if(Ot(i))i=i.toNumber()-1;else if(typeof i!="string")throw new TypeError("Dimension must be an Array, Matrix, number, string, or Range");r[o]=i}var l=new t;return t.apply(l,r),l}},{isTransformFunction:!0}),D5e="map",A5e=["typed"],O5e=se(D5e,A5e,e=>{var{typed:t}=e;function n(o,a,i){var l,s;return o[0]&&(l=o[0].compile().evaluate(i)),o[1]&&(Pn(o[1])||zs(o[1])?s=o[1].compile().evaluate(i):s=Jw(o[1],a,i)),r(l,s)}n.rawArgs=!0;var r=t("map",{"Array, function":function(a,i){return hT(a,i,a)},"Matrix, function":function(a,i){return a.create(hT(a.valueOf(),i,a))}});return n},{isTransformFunction:!0});function hT(e,t,n){var r=mi(t);function o(a,i){return Array.isArray(a)?va(a,function(l,s){return o(l,i.concat(s+1))}):r===1?t(a):r===2?t(a,i):t(a,i,n)}return o(e,[])}function pl(e){if(e.length===2&&wo(e[0])){e=e.slice();var t=e[1];Pt(t)?e[1]=t-1:Ot(t)&&(e[1]=t.minus(1))}return e}var T5e="max",M5e=["typed","config","numeric","larger"],N5e=se(T5e,M5e,e=>{var{typed:t,config:n,numeric:r,larger:o}=e,a=xB({typed:t,config:n,numeric:r,larger:o});return t("max",{"...any":function(l){l=pl(l);try{return a.apply(null,l)}catch(s){throw pr(s)}}})},{isTransformFunction:!0}),P5e="mean",I5e=["typed","add","divide"],_5e=se(P5e,I5e,e=>{var{typed:t,add:n,divide:r}=e,o=TB({typed:t,add:n,divide:r});return t("mean",{"...any":function(i){i=pl(i);try{return o.apply(null,i)}catch(l){throw pr(l)}}})},{isTransformFunction:!0}),B5e="min",F5e=["typed","config","numeric","smaller"],R5e=se(B5e,F5e,e=>{var{typed:t,config:n,numeric:r,smaller:o}=e,a=wB({typed:t,config:n,numeric:r,smaller:o});return t("min",{"...any":function(l){l=pl(l);try{return a.apply(null,l)}catch(s){throw pr(s)}}})},{isTransformFunction:!0}),z5e="range",L5e=["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq"],k5e=se(z5e,L5e,e=>{var{typed:t,config:n,matrix:r,bignumber:o,smaller:a,smallerEq:i,larger:l,largerEq:s}=e,u=gB({typed:t,config:n,matrix:r,bignumber:o,smaller:a,smallerEq:i,larger:l,largerEq:s});return t("range",{"...any":function(d){var f=d.length-1,p=d[f];return typeof p!="boolean"&&d.push(!0),u.apply(null,d)}})},{isTransformFunction:!0}),H5e="row",j5e=["typed","Index","matrix","range"],V5e=se(H5e,j5e,e=>{var{typed:t,Index:n,matrix:r,range:o}=e,a=yB({typed:t,Index:n,matrix:r,range:o});return t("row",{"...any":function(l){var s=l.length-1,u=l[s];Pt(u)&&(l[s]=u-1);try{return a.apply(null,l)}catch(c){throw pr(c)}}})},{isTransformFunction:!0}),W5e="subset",U5e=["typed","matrix"],K5e=se(W5e,U5e,e=>{var{typed:t,matrix:n}=e,r=bB({typed:t,matrix:n});return t("subset",{"...any":function(a){try{return r.apply(null,a)}catch(i){throw pr(i)}}})},{isTransformFunction:!0}),q5e="concat",G5e=["typed","matrix","isInteger"],X5e=se(q5e,G5e,e=>{var{typed:t,matrix:n,isInteger:r}=e,o=dB({typed:t,matrix:n,isInteger:r});return t("concat",{"...any":function(i){var l=i.length-1,s=i[l];Pt(s)?i[l]=s-1:Ot(s)&&(i[l]=s.minus(1));try{return o.apply(null,i)}catch(u){throw pr(u)}}})},{isTransformFunction:!0}),gT="diff",Y5e=["typed","matrix","subtract","number","bignumber"],Z5e=se(gT,Y5e,e=>{var{typed:t,matrix:n,subtract:r,number:o,bignumber:a}=e,i=mB({typed:t,matrix:n,subtract:r,number:o,bignumber:a});return t(gT,{"...any":function(s){s=pl(s);try{return i.apply(null,s)}catch(u){throw pr(u)}}})},{isTransformFunction:!0}),J5e="std",Q5e=["typed","map","sqrt","variance"],e_e=se(J5e,Q5e,e=>{var{typed:t,map:n,sqrt:r,variance:o}=e,a=NB({typed:t,map:n,sqrt:r,variance:o});return t("std",{"...any":function(l){l=pl(l);try{return a.apply(null,l)}catch(s){throw pr(s)}}})},{isTransformFunction:!0}),yT="sum",t_e=["typed","config","add","numeric"],n_e=se(yT,t_e,e=>{var{typed:t,config:n,add:r,numeric:o}=e,a=AB({typed:t,config:n,add:r,numeric:o});return t(yT,{"...any":function(l){l=pl(l);try{return a.apply(null,l)}catch(s){throw pr(s)}}})},{isTransformFunction:!0}),bT="cumsum",r_e=["typed","add","unaryPlus"],o_e=se(bT,r_e,e=>{var{typed:t,add:n,unaryPlus:r}=e,o=OB({typed:t,add:n,unaryPlus:r});return t(bT,{"...any":function(i){if(i.length===2&&wo(i[0])){var l=i[1];Pt(l)?i[1]=l-1:Ot(l)&&(i[1]=l.minus(1))}try{return o.apply(null,i)}catch(s){throw pr(s)}}})},{isTransformFunction:!0}),xT="variance",a_e=["typed","add","subtract","multiply","divide","apply","isNaN"],i_e=se(xT,a_e,e=>{var{typed:t,add:n,subtract:r,multiply:o,divide:a,apply:i,isNaN:l}=e,s=MB({typed:t,add:n,subtract:r,multiply:o,divide:a,apply:i,isNaN:l});return t(xT,{"...any":function(c){c=pl(c);try{return s.apply(null,c)}catch(d){throw pr(d)}}})},{isTransformFunction:!0});const l_e=Object.freeze(Object.defineProperty({__proto__:null,createAbs:ISe,createAccessorNode:zDe,createAcos:r4e,createAcosh:a4e,createAcot:l4e,createAcoth:u4e,createAcsc:d4e,createAcsch:p4e,createAdd:SDe,createAddScalar:RSe,createAnd:X3e,createApply:uB,createApplyTransform:p5e,createArg:D$e,createArrayNode:kDe,createAsec:v4e,createAsech:g4e,createAsin:b4e,createAsinh:S4e,createAssignmentNode:WDe,createAtan:E4e,createAtan2:A4e,createAtanh:T4e,createAtomicMass:W6e,createAvogadro:U6e,createBellNumbers:g8e,createBigNumberClass:nwe,createBignumber:dSe,createBin:n3e,createBitAnd:h$e,createBitNot:y$e,createBitOr:x$e,createBitXor:$$e,createBlockNode:KDe,createBohrMagneton:$6e,createBohrRadius:M6e,createBoltzmann:K6e,createBoolean:sSe,createCatalan:b8e,createCbrt:LSe,createCeil:GSe,createChain:HPe,createChainClass:hOe,createClassicalElectronRadius:N6e,createClone:Swe,createColumn:pB,createColumnTransform:h5e,createCombinations:MIe,createCombinationsWithRep:PIe,createCompare:Z3e,createCompareNatural:eEe,createCompareText:rEe,createCompile:EAe,createComplex:mSe,createComplexClass:iwe,createComposition:w8e,createConcat:dB,createConcatTransform:X5e,createConditionalNode:GDe,createConductanceQuantum:E6e,createConj:O$e,createConstantNode:nAe,createCos:N4e,createCosh:I4e,createCot:B4e,createCoth:R4e,createCoulomb:S6e,createCount:j$e,createCreateUnit:t4e,createCross:W$e,createCsc:L4e,createCsch:H4e,createCtranspose:F2e,createCube:YSe,createCumSum:OB,createCumSumTransform:o_e,createDeepEqual:SEe,createDenseMatrixClass:xwe,createDerivative:k8e,createDet:VPe,createDeuteronMass:R6e,createDiag:K$e,createDiff:mB,createDiffTransform:Z5e,createDistance:pIe,createDivide:dIe,createDivideScalar:g3e,createDot:ODe,createDotDivide:N3e,createDotMultiply:u$e,createDotPow:T3e,createE:r6e,createEfimovFactor:V6e,createEigs:JPe,createElectricConstant:x6e,createElectronMass:P6e,createElementaryCharge:C6e,createEqual:aEe,createEqualScalar:Ywe,createEqualText:sEe,createErf:U2e,createEvaluate:AAe,createExp:JSe,createExpm:eIe,createExpm1:eCe,createFactorial:zIe,createFalse:Z8e,createFaraday:q6e,createFermiCoupling:I6e,createFft:k2e,createFibonacciHeapClass:kEe,createFilter:X$e,createFilterTransform:b5e,createFineStructure:_6e,createFirstRadiation:G6e,createFix:rCe,createFlatten:Z$e,createFloor:iCe,createForEach:Q$e,createForEachTransform:S5e,createFormat:e3e,createFraction:gSe,createFractionClass:cwe,createFunctionAssignmentNode:oAe,createFunctionNode:wAe,createGamma:_Ie,createGasConstant:Y6e,createGcd:CCe,createGetMatrixDataType:n2e,createGravitationConstant:h6e,createGravity:a5e,createHartreeEnergy:B6e,createHasNumericValue:Lwe,createHelp:LPe,createHelpClass:pOe,createHex:i3e,createHypot:$De,createI:d6e,createIdentity:o2e,createIfft:j2e,createIm:M$e,createImmutableDenseMatrixClass:_Ee,createIndex:IDe,createIndexClass:REe,createIndexNode:iAe,createIndexTransform:E5e,createInfinity:Q8e,createIntersect:hIe,createInv:UPe,createInverseConductanceQuantum:D6e,createInvmod:a$e,createIsInteger:$we,createIsNaN:Uwe,createIsNegative:Bwe,createIsNumeric:Rwe,createIsPositive:Hwe,createIsPrime:f3e,createIsZero:Vwe,createKldivergence:kIe,createKlitzing:T6e,createKron:i2e,createLN10:i6e,createLN2:a6e,createLOG10E:s6e,createLOG2E:l6e,createLarger:hEe,createLargerEq:bEe,createLcm:TCe,createLeafCount:C8e,createLeftShift:V3e,createLgamma:FIe,createLog:C3e,createLog10:NCe,createLog1p:E3e,createLog2:ICe,createLoschmidt:X6e,createLsolve:I3e,createLsolveAll:R3e,createLup:_Ae,createLusolve:sOe,createLyap:sIe,createMad:CIe,createMagneticConstant:b6e,createMagneticFluxQuantum:A6e,createMap:s2e,createMapTransform:O5e,createMatrix:bSe,createMatrixClass:hwe,createMatrixFromColumns:ESe,createMatrixFromFunction:wSe,createMatrixFromRows:CSe,createMax:xB,createMaxTransform:N5e,createMean:TB,createMeanTransform:_5e,createMedian:wIe,createMin:wB,createMinTransform:R5e,createMod:LCe,createMode:Y2e,createMolarMass:r5e,createMolarMassC12:o5e,createMolarPlanckConstant:Z6e,createMolarVolume:J6e,createMultinomial:jIe,createMultiply:WCe,createMultiplyScalar:jCe,createNaN:e6e,createNeutronMass:z6e,createNode:FDe,createNorm:DDe,createNot:_$e,createNthRoot:KCe,createNthRoots:A3e,createNuclearMagneton:O6e,createNull:J8e,createNumber:oSe,createNumeric:v3e,createObjectNode:sAe,createOct:o3e,createOnes:p2e,createOperatorNode:cAe,createOr:F$e,createParenthesisNode:fAe,createParse:CAe,createParser:PAe,createParserClass:MAe,createPartitionSelect:AEe,createPermutations:WIe,createPhi:o6e,createPi:t6e,createPickRandom:u8e,createPinv:qPe,createPlanckCharge:u5e,createPlanckConstant:g6e,createPlanckLength:i5e,createPlanckMass:l5e,createPlanckTemperature:c5e,createPlanckTime:s5e,createPolynomialRoot:cOe,createPow:b3e,createPrint:s3e,createProd:J2e,createProtonMass:F6e,createQr:FAe,createQuantileSeq:AIe,createQuantumOfCirculation:L6e,createRandom:d8e,createRandomInt:p8e,createRange:gB,createRangeClass:pwe,createRangeNode:mAe,createRangeTransform:k5e,createRationalize:j8e,createRe:P$e,createReducedPlanckConstant:y6e,createRelationalNode:hAe,createReplacer:G8e,createReshape:h2e,createResize:b2e,createResolve:F8e,createResultSet:ixe,createReviver:U8e,createRightArithShift:U3e,createRightLogShift:q3e,createRotate:w2e,createRotationMatrix:C2e,createRound:w3e,createRow:yB,createRowTransform:V5e,createRydberg:k6e,createSQRT1_2:u6e,createSQRT2:c6e,createSackurTetrode:Q6e,createSchur:iIe,createSec:V4e,createSech:U4e,createSecondRadiation:e5e,createSetCartesian:nDe,createSetDifference:oDe,createSetDistinct:iDe,createSetIntersect:sDe,createSetIsSubset:cDe,createSetMultiplicity:fDe,createSetPowerset:mDe,createSetSize:hDe,createSetSymDifference:yDe,createSetUnion:xDe,createSign:GCe,createSimplify:O8e,createSimplifyConstant:N8e,createSimplifyCore:I8e,createSin:q4e,createSinh:X4e,createSize:D2e,createSlu:iOe,createSmaller:cEe,createSmallerEq:pEe,createSort:TEe,createSpaClass:VEe,createSparse:QEe,createSparseMatrixClass:Qwe,createSpeedOfLight:v6e,createSplitUnit:ASe,createSqrt:ZCe,createSqrtm:nIe,createSquare:QCe,createSqueeze:O2e,createStd:NB,createStdTransform:e_e,createStefanBoltzmann:t5e,createStirlingS2:v8e,createString:iSe,createSubset:bB,createSubsetTransform:K5e,createSubtract:t$e,createSum:AB,createSumTransform:n_e,createSylvester:oIe,createSymbolNode:bAe,createSymbolicEqual:z8e,createTan:Z4e,createTanh:eDe,createTau:n6e,createThomsonCrossSection:H6e,createTo:c3e,createTrace:NDe,createTranspose:_2e,createTrue:Y8e,createTypeOf:qwe,createTyped:nxe,createUnaryMinus:TSe,createUnaryPlus:NSe,createUnequal:$Ee,createUnitClass:XEe,createUnitFunction:ZEe,createUppercaseE:p6e,createUppercasePi:f6e,createUsolve:B3e,createUsolveAll:L3e,createVacuumImpedance:w6e,createVariance:MB,createVarianceTransform:i_e,createVersion:m6e,createWeakMixingAngle:j6e,createWienDisplacement:n5e,createXgcd:r$e,createXor:z$e,createZeros:z2e},Symbol.toStringTag,{value:"Module"}));var s_e=l_e,Jp={},u_e={get exports(){return Jp},set exports(e){Jp=e}};function Qw(){}Qw.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;for(r;ry($,M));else if(typeof D=="object")for(var A in D)Ke(D,A)&&y($,D[A],A);else if(Mu(D)||O!==void 0){var T=Mu(D)?v(D)?D.fn+".transform":D.fn:O;if(Ke($,T)&&$[T]!==D&&!g.silent)throw new Error('Cannot import "'+T+'" twice');$[T]=D}else if(!g.silent)throw new TypeError("Factory, Object, or Array expected")}var w={};y(w,h);for(var b in w)if(Ke(w,b)){var S=w[b];if(Mu(S))u(S,g);else if(c(S))a(b,S,g);else if(!g.silent)throw new TypeError("Factory, Object, or Array expected")}}function a(h,g,x){if(x.wrap&&typeof g=="function"&&(g=s(g)),d(g)&&(g=e(h,{[g.signature]:g})),e.isTypedFunction(n[h])&&e.isTypedFunction(g)){x.override?g=e(h,g.signatures):g=e(n[h],g),n[h]=g,delete r[h],i(h,g),n.emit("import",h,function(){return g});return}if(n[h]===void 0||x.override){n[h]=g,delete r[h],i(h,g),n.emit("import",h,function(){return g});return}if(!x.silent)throw new Error('Cannot import "'+h+'": already exists')}function i(h,g){g&&typeof g.transform=="function"?(n.expression.transform[h]=g.transform,f(h)&&(n.expression.mathWithTransform[h]=g.transform)):(delete n.expression.transform[h],f(h)&&(n.expression.mathWithTransform[h]=g))}function l(h){delete n.expression.transform[h],f(h)?n.expression.mathWithTransform[h]=n[h]:delete n.expression.mathWithTransform[h]}function s(h){var g=function(){for(var y=[],w=0,b=arguments.length;w2&&arguments[2]!==void 0?arguments[2]:h.fn;if(p4(x,"."))throw new Error("Factory name should not contain a nested path. Name: "+JSON.stringify(x));var y=v(h)?n.expression.transform:n,w=x in n.expression.transform,b=Ke(y,x)?y[x]:void 0,S=function(){var D={};h.dependencies.map(J_).forEach(A=>{if(p4(A,"."))throw new Error("Factory dependency should not contain a nested path. Name: "+JSON.stringify(A));A==="math"?D.math=n:A==="mathWithTransform"?D.mathWithTransform=n.expression.mathWithTransform:A==="classes"?D.classes=n:D[A]=n[A]});var O=h(D);if(O&&typeof O.transform=="function")throw new Error('Transforms cannot be attached to factory functions. Please create a separate function for it with exports.path="expression.transform"');if(b===void 0||g.override)return O;if(e.isTypedFunction(b)&&e.isTypedFunction(O))return e(b,O);if(g.silent)return b;throw new Error('Cannot import "'+x+'": already exists')};!h.meta||h.meta.lazy!==!1?(If(y,x,S),b&&w?l(x):(v(h)||p(h))&&If(n.expression.mathWithTransform,x,()=>y[x])):(y[x]=S(),b&&w?l(x):(v(h)||p(h))&&If(n.expression.mathWithTransform,x,()=>y[x])),r[x]=h,n.emit("import",x,S)}function c(h){return typeof h=="function"||typeof h=="number"||typeof h=="string"||typeof h=="boolean"||h===null||uo(h)||vo(h)||Ot(h)||sl(h)||mt(h)||Array.isArray(h)}function d(h){return typeof h=="function"&&typeof h.signature=="string"}function f(h){return!Ke(m,h)}function p(h){return h.fn.indexOf(".")===-1&&!Ke(m,h.fn)&&(!h.meta||!h.meta.isClass)}function v(h){return h!==void 0&&h.meta!==void 0&&h.meta.isTransformFunction===!0||!1}var m={expression:!0,type:!0,docs:!0,error:!0,json:!0,chain:!0};return o}function IB(e,t){var n=E({},E_,t);if(typeof Object.create!="function")throw new Error("ES5 not supported by this JavaScript engine. Please load the es5-shim and es5-sham library for compatibility.");var r=c_e({isNumber:Pt,isComplex:vo,isBigNumber:Ot,isFraction:sl,isUnit:uo,isString:Jn,isArray:Ut,isMatrix:mt,isCollection:wo,isDenseMatrix:rc,isSparseMatrix:Za,isRange:Dv,isIndex:Pc,isBoolean:D_,isResultSet:A_,isHelp:Bw,isFunction:O_,isDate:T_,isRegExp:M_,isObject:Av,isNull:N_,isUndefined:P_,isAccessorNode:ii,isArrayNode:Ir,isAssignmentNode:I_,isBlockNode:__,isConditionalNode:B_,isConstantNode:Rt,isFunctionAssignmentNode:zs,isFunctionNode:Sa,isIndexNode:ul,isNode:Kt,isObjectNode:Ic,isOperatorNode:bn,isParenthesisNode:jo,isRangeNode:F_,isRelationalNode:R_,isSymbolNode:Pn,isChain:Fw});r.config=S1e(n,r.emit),r.expression={transform:{},mathWithTransform:{config:r.config}};var o=[],a=[];function i(c){if(Mu(c))return c(r);var d=c[Object.keys(c)[0]];if(Mu(d))return d(r);if(!x1e(c))throw console.warn("Factory object with properties `type`, `name`, and `factory` expected",c),new Error("Factory object with properties `type`, `name`, and `factory` expected");var f=o.indexOf(c),p;return f===-1?(c.math===!0?p=c.factory(r.type,n,i,r.typed,r):p=c.factory(r.type,n,i,r.typed),o.push(c),a.push(p)):p=a[f],p}var l={};function s(){for(var c=arguments.length,d=new Array(c),f=0;f{r4(l).forEach(c=>{c&&c.meta&&c.meta.recreateOnConfigChange&&u(c,{override:!0})})}),r.create=IB.bind(null,e),r.factory=se,r.import(r4(b1e(e))),r.ArgumentsError=Na,r.DimensionError=Dt,r.IndexError=oo,r}const f_e={number:"BigNumber",precision:20},p_e=IB(s_e,f_e);let Sg=null,wT=[];const eS={hasAuth(e){return!!e},hasPermission(e){let t=!0,r=la().app,o=r.meta.auth;if(r.meta.auth)return t=o.some(a=>a.option==e),t},TBLayout(e,t){try{const n=la(),r=n.hiddenSensitiveFields;let o=n.app;if(o.meta.tables[e])return o.meta.tables[e].tablecols.map(i=>({title:i.title,filter:i.filter,sortable:i.sortable,dataIndex:i.columnname,sort:0,align:i.align?i.align:"left",width:i.width==0?"150":i.width,fixed:i.freezetype&&i.freezetype!==""?i.freezetype:!1,fn:i.script!==""?(l,s)=>{try{return new Function("data","hideAmount",i.script)(l,r)}catch(u){console.log(u)}}:null,ellipsis:!0}))}catch(n){console.log(n,"tool")}},FormLayout(e,t){var n=this;let r=(o,a)=>{if(o&&o.type&&o.type!==""&&o.type!=="none")switch(o.type){case"number":return n.formatAmount(a);case"mapping":return o.mapping.some(i=>{a==i.value&&(a=i.label)}),a}else return a};try{let a=la().app;if(a.meta.forms[e])return a.meta.forms[e].formcols.map(l=>({label:l.title,value:r(l.dataformat,t[l.columnname]),key:l.columnname,span:l.span,style:l.script!==""?()=>{try{return new Function("data","that",l.script)(t,n)}catch(s){console.log(s)}}:null}))}catch(o){console.log(o,"tool")}},TBLayoutID(e){try{let n=la().app;if(n.meta.tables[e])return n.meta.tables[e].tableid}catch(t){console.log(t,"tool")}},hideFields(e,t){let a=la().app.meta.forms[e].formcols.some(i=>t==i.columnname);return console.log(a,"isShow"),a},isDisabled(e,t,n){let r=!1;return n||(r=t.some(o=>o==e),r)},message(e,t,n){if(!e)return!1;e.code===1?(t&&cn.success({content:t,key:1}),Sg!==null&&clearTimeout(Sg),Sg=setTimeout(()=>{n&&n()},500)):(console.log(e),cn.error({content:e.data+":"+e.msg,key:1}))},formatAmount(e,t){if(console.log(t),t&&!this.hideFields(t.name,t.key))return"****";let n=p_e.format(Number(e),{notation:"fixed",precision:2});const r=String(n),o=/\B(?=(?:\d{3})+$)/g;if(r.indexOf(".")>-1){const i=r.substring(0,r.indexOf(".")),l=r.substring(r.length,r.indexOf("."));return`${i.replace(o,",")}${l}`}else return r.replace(o,",")},validateInputNumber(e,t,n){return new Promise((r,o)=>{if(console.log(e,t),!t)return r(e);if((t*100-e*100)%(n*100)===0)r(t);else{cn.error(t?`输入的值${t}不符合增量规则,已修正!`:"输入的值不能为空!");let a=t-(t-e)%n;r(a)}})},statusAndColor(e){let t=[{st:"新建",cl:"#1677ff"},{st:"提交",cl:"#646cff"},{st:"审核",cl:"#ff5656"},{st:"关闭",cl:"#acbdc5"},{st:"预提交",cl:"#005792"},{st:"确认",cl:"#01352c"},{st:"复核",cl:"#ff9234"},{st:"启用",cl:"#1890ff"},{st:"停用",cl:"#acbdc5"},{st:"发布",cl:"#52c41a"}];return t.find(n=>n.st==e)?t.find(n=>n.st==e).cl:"#333"},questArray:wT,anti_shake(e,t){const n=new Date().getTime(),r=JSON.parse(sessionStorage.getItem("request_url"));if(sessionStorage.setItem("request_url",JSON.stringify({url:e.type,time:new Date().getTime()})),r===null)return!0;if(e.type=="post"&&(sc().canPointer=!1),e.data.id&&wT.push(Number(e.data.id)),n-r.time<500&&e.type=="post"){let o;return e.cancelToken=new t.CancelToken(a=>{o=a}),cn.error({content:"请求过于频繁,请稍后再试!",duration:1,key:1}),sc().canPointer=!0,o(`${e.url}请求被中断`),!1}else return!0},messageLoading:{hide:()=>{cn.loading({content:"操作正在执行,请稍等..",duration:10})}},date:{yearStart:`${new Date().getFullYear()-1}-01-01`,yearEnd:`${new Date().getFullYear()}-12-31`}};let m_e=Ev.CancelToken,v_e=m_e.source();const h_e=()=>{for(var e=window.location.href,t=e.indexOf("/"),n=0;t!==-1;)if(n++,t=e.indexOf("/",t+1),n++===3)return e.slice(0,t)},jl=Ev.create({baseURL:h_e(),timeout:20*1e3});jl.interceptors.request.use(e=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(function(r){let o=r.coords.latitude,a=r.coords.longitude;console.log("Latitude: "+o+" Longitude: "+a)},function(r){console.log("Error occurred. Error code: "+r.code)}):console.log("Geolocation is not supported by this browser."),navigator.connection?sc().connection=navigator.connection.downlink:console.log("浏览器不支持 navigator.connection API"),e.type;const t=sessionStorage.getItem("token")?sessionStorage.getItem("token"):"",n=la().app?la().app.systemappid:"";return e.data.accesstoken=t,e.data.systemappid=n,e.headers||(e.headers={}),e.headers["Content-Type"]||(e.headers["Content-Type"]="application/json;charset=UTF-8"),eS.anti_shake(e,Ev),e},e=>{Promise.reject(e)});jl.interceptors.response.use(e=>{if(e.data.code==-1)cn.error({content:e.data.msg,key:1}),BB.push({name:"login"}),setTimeout(()=>{window.location.reload()},500);else return sc().canPointer=!0,e.data},e=>{if(e&&e.response)switch(e.response.status){case 400:cn.error("错误请求");break;case 401:cn.error("未授权,请重新登录");break;case 403:cn.error("拒绝访问");break;case 404:cn.error("请求错误,未找到该资源");break;case 405:cn.error("请求方法未允许");break;case 408:cn.error("请求超时");break;case 500:cn.error({content:"服务器端出错",key:"服务器端出错"});break;case 501:cn.error("网络未实现");break;case 502:cn.error("网络错误");break;case 503:cn.error("服务不可用");break;case 504:cn.error("网络超时");break;case 505:cn.error("http版本不支持该请求");break;default:cn.error=`连接错误${e.response.status}`}else v_e.cancel("停止请求");return Promise.resolve(e.response)});const g_e=Ev.create({timeout:3600*1e3,withCredentials:!1,validateStatus:function(e){return e>=200},maxRedirects:0,responseType:"text",onUploadProgress:function(e){}}),y_e={upload(e,t,n){return g_e.put(e,t,n)}},La={get(e,t){const n={method:"get",url:e};return t&&(n.params=t),jl(n)},post(e,t,n){const r={method:"post",type:n,url:e};if(t)return r.data=t,jl(r)},put(e,t){const n={method:"put",url:e};return t&&(n.data=t),jl(n)},delete(e,t){const n={method:"delete",url:e};return t&&(n.params=t),jl(n)},upload(e,t,n,r){return y_e(e,t,{headers:{"Content-Type":n},transformRequest:[function(a){return a}],onUploadProgress:a=>{let i=a.loaded/a.total*100|0;r(i)}})}},rs={loginCode(e){return La.post("/yos/rest/index/getpassword",e,"get")},login(e){return La.post("/yos/rest/index/login",e,"post")},loginout(e){return La.post("/yos/rest/index/logout",e,"post")},loginbyaccount(e){return La.post("/yos/rest/index/loginbyaccount",e,"post")},requested(e){return La.post("/yos/rest/index",e,"get")},post(e){return eS.messageLoading.hide(),La.post("/yos/rest/index",e,"post")},delete(e){return La.post("/yos/rest/index",e,"get")},optionstype(e,t,n){let r={};return t&&n&&(r[t]=n),La.post("/yos/rest/index",{classname:"sysmanage.develop.optiontype.optiontype",method:"optiontypeselect",content:{pageNumber:1,pageSize:1e3,typename:e,parameter:r}},"get")}},la=r_("auth",{state:()=>({isRefresh:!0,accountList:[],nowAccount:{},system:[],actSystem:"",mods:[],app:{},actMod:{},current:[],tableConfigs:{},hiddenSensitiveFields:!1}),persist:{enabled:!0,strategies:[{storage:localStorage,paths:["system","mods","app","accountList","nowAccount","actSystem","current","tableConfigs","hiddenSensitiveFields"]}]},getters:{},actions:{systemAuthData(){return new Promise(async(e,t)=>{let n={classname:"sysmanage.develop.userauthforweb.userauth",method:"query_userauth",content:{place:1},systemappid:""};const r=await rs.requested(n);this.system=r.data,this.actSystem=r.data[0],this.mods=r.data[0].modules,e(this.mods)})},async hideKeyWords(e){let t=e;(await rs.requested({classname:"sysmanage.develop.optiontype.optiontype",method:"optiontypeselect",content:{pageNumber:1,pageSize:20,typename:"shieldrole",parameter:{siteid:t.siteid,userid:t.userid}}})).data.length>0?this.hiddenSensitiveFields=!0:this.hiddenSensitiveFields=!1},modulesData(e){this.mods=e.modules},findAppByName(e,t){let n=null;function r(o){for(let a=0;a0&&r(i.modules),i.apps){const l=i.apps.find(s=>s.name===t);if(l){n=l;break}}}}return r(e),n},appData(e){this.app=this.findAppByName(this.system,e)},hasAppData(e){return!!this.findAppByName(this.system,e)},async getConfig(){const e=await rs.requested({classname:"sysmanage.develop.users.users",method:"queryClientConfig",content:{}});e.data.config?this.tableConfigs=JSON.parse(e.data.config):this.tableConfigs={}},async defaultAccount(e,t){e?this.nowAccount=e:this.nowAccount,sessionStorage.setItem("token",this.nowAccount.token),this.getConfig(),this.hideKeyWords(e);const n=await this.systemAuthData();t(n)},reloadPage(e){this.isRefresh=!1,setTimeout(()=>{this.isRefresh=!0},1e3)}}}),b_e=[{path:"/productmag",name:"productmag",meta:{title:"商品管理",name:"productmag",keepAlive:!0},component:()=>ze(()=>import("./index-113f9c87.js"),["./index-113f9c87.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-d2240e58.js","./index-a6ea55cb.css","./index-8b12cc67.css"],import.meta.url)},{path:"/productmagDetail",name:"productmagDetail",meta:{title:"商品详情",name:"productmag",keepAlive:!0},component:()=>ze(()=>import("./index-a2140a2f.js"),["./index-a2140a2f.js","./index-27f812b1.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./routeTabs-94eec434.js","./_plugin-vue_export-helper-c27b6911.js","./index-11660e9d.css","./index-e134ab6a.js","./InboxOutlined-d9b43bc2.js","./index-f5642791.css","./index-93881f83.css"],import.meta.url)},{path:"/productgroupmag",name:"productgroupmag",meta:{title:"商品组管理",name:"productgroupmag",keepAlive:!0},component:()=>ze(()=>import("./index-ceb8531e.js"),["./index-ceb8531e.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/pGroupdetail",name:"pGroupdetail",meta:{title:"商品组详情",name:"productgroupmag",keepAlive:!0},component:()=>ze(()=>import("./index-f9e0a7b7.js"),["./index-f9e0a7b7.js","./index-27f812b1.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./routeTabs-94eec434.js","./_plugin-vue_export-helper-c27b6911.js","./index-11660e9d.css","./index-d525afe4.js","./index-ff730465.css","./index-d2240e58.js","./fullScreen-0e37daa2.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./index-a6ea55cb.css","./index-e134ab6a.js","./InboxOutlined-d9b43bc2.js","./index-f5642791.css","./index-16e2254c.css"],import.meta.url)},{path:"/ordermag",name:"ordermag",meta:{name:"ordermag",title:"订单管理",keepAlive:!0},component:()=>ze(()=>import("./index-29074707.js"),["./index-29074707.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-359bce56.js","./index-3cf06861.css","./index-36320cc5.js"],import.meta.url)},{path:"/orderdetail",name:"orderdetail",meta:{title:"订单详情",name:"ordermag",keepAlive:!0},component:()=>ze(()=>import("./index-e7ec7d06.js"),["./index-e7ec7d06.js","./vue-7f5e2b1b.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-94e27af9.js","./InboxOutlined-d9b43bc2.js","./index-aca81af8.css","./index-d525afe4.js","./index-ff730465.css","./index-359bce56.js","./index-3cf06861.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css","./index-eee61705.js","./index-2d9e740b.css","./index-36320cc5.js","./index-edb47c6f.css","./index-e0ac862f.css","./index-7dc2fef0.css"],import.meta.url),InnerPage:()=>ze(()=>import("./index-e7ec7d06.js"),["./index-e7ec7d06.js","./vue-7f5e2b1b.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-94e27af9.js","./InboxOutlined-d9b43bc2.js","./index-aca81af8.css","./index-d525afe4.js","./index-ff730465.css","./index-359bce56.js","./index-3cf06861.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css","./index-eee61705.js","./index-2d9e740b.css","./index-36320cc5.js","./index-edb47c6f.css","./index-e0ac862f.css","./index-7dc2fef0.css"],import.meta.url)},{path:"/orderMx",name:"orderMx",meta:{title:"订单明细",name:"orderMx",keepAlive:!0},component:()=>ze(()=>import("./index-374e5b88.js"),["./index-374e5b88.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/brandmag",name:"brandmag",meta:{title:"品牌与分类",name:"brandmag",keepAlive:!0},component:()=>ze(()=>import("./index-836528ac.js"),["./index-836528ac.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/brandDetail",name:"brandDetail",meta:{title:"品牌详情",name:"brandmag",keepAlive:!0},component:()=>ze(()=>import("./index-34882ea2.js"),["./index-34882ea2.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./index-27f812b1.js","./routeTabs-94eec434.js","./_plugin-vue_export-helper-c27b6911.js","./index-11660e9d.css","./index-7c73767b.css","./index-5fe53e06.css"],import.meta.url)},{path:"/marketing_area",name:"marketing_area",meta:{title:"营销区域",name:"marketing_area",keepAlive:!0},component:()=>ze(()=>import("./index-4b213622.js"),["./index-4b213622.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-0cb495e8.css"],import.meta.url)},{path:"/agentManage",name:"agentManage",meta:{title:"经销商档案",name:"agentManage",keepAlive:!0},component:()=>ze(()=>import("./index-93ce3d2e.js"),["./index-93ce3d2e.js","./fullScreen-0e37daa2.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./index-9d0abe40.js","./vue-router-e2815956.js","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-359bce56.js","./index-3cf06861.css","./index-66feca94.css","./index-7dc2fef0.css"],import.meta.url)},{path:"/agent_detail",name:"agent_detail",meta:{title:"经销商档案详情",name:"agentManage",keepAlive:!0},component:()=>ze(()=>import("./index-33dcd725.js"),["./index-33dcd725.js","./index-27f812b1.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./routeTabs-94eec434.js","./_plugin-vue_export-helper-c27b6911.js","./index-11660e9d.css","./index-359bce56.js","./index-3cf06861.css","./index-d2240e58.js","./fullScreen-0e37daa2.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./index-a6ea55cb.css","./index-6b0fce9d.css","./index-7dc2fef0.css"],import.meta.url)},{path:"/EnterpriseArchives",name:"EnterpriseArchives",meta:{title:"企业档案",name:"EnterpriseArchives",keepAlive:!0},component:()=>ze(()=>import("./index-c3618cfc.js"),["./index-c3618cfc.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-db7dd677.js","./index-8754bf92.css"],import.meta.url)},{path:"/enterpriseDetail",name:"enterpriseDetail",meta:{title:"企业档案详情",name:"EnterpriseArchives",keepAlive:!0},component:()=>ze(()=>import("./index-c4e148c4.js"),["./index-c4e148c4.js","./index-27f812b1.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./routeTabs-94eec434.js","./_plugin-vue_export-helper-c27b6911.js","./index-11660e9d.css","./index-db7dd677.js","./index-8754bf92.css"],import.meta.url)},{path:"/salerManage",name:"salerManage",meta:{title:"区域管理",name:"salerManage",keepAlive:!0},component:()=>ze(()=>import("./index-f1ebc0e7.js"),["./index-f1ebc0e7.js","./fullScreen-0e37daa2.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./index-9d0abe40.js","./vue-router-e2815956.js","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-c183d923.js","./index-7dc2fef0.css","./index-77a5a61d.css","./index-3cf06861.css"],import.meta.url)},{path:"/promotion",name:"promotion",meta:{title:"促销管理",name:"promotion",keepAlive:!0},component:()=>ze(()=>import("./index-9771ab08.js"),["./index-9771ab08.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-7b96176f.js","./index-c2ef4b2c.css","./index-94b4af80.css"],import.meta.url)},{path:"/promotionMagDetail",name:"promotionMagDetail",meta:{title:"促销详情",name:"promotion",keepAlive:!0},component:()=>ze(()=>import("./index-9b789dcd.js"),["./index-9b789dcd.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-94e27af9.js","./InboxOutlined-d9b43bc2.js","./index-aca81af8.css","./index-d525afe4.js","./index-ff730465.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css","./index-7b96176f.js","./index-c2ef4b2c.css","./index-359bce56.js","./index-3cf06861.css","./index-e134ab6a.js","./index-f5642791.css","./index-3c7b3c4f.css"],import.meta.url)},{path:"/productMoneyOdd",name:"productMoneyOdd",meta:{title:"商品调价",name:"productMoneyOdd",keepAlive:!0},component:()=>ze(()=>import("./index-ee36b8ac.js"),["./index-ee36b8ac.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-94e27af9.js","./InboxOutlined-d9b43bc2.js","./index-aca81af8.css"],import.meta.url)},{path:"/priceAdjustmentDetail",name:"priceAdjustmentDetail",meta:{title:"商品调价详情",name:"productMoneyOdd",keepAlive:!0},component:()=>ze(()=>import("./index-5b428edd.js"),["./index-5b428edd.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-d525afe4.js","./index-ff730465.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css","./index-2adbee7a.css"],import.meta.url)},{path:"/accountmoney",name:"accountmoney",meta:{title:"账户余额",name:"accountmoney",keepAlive:!0},component:()=>ze(()=>import("./index-1bc46854.js"),["./index-1bc46854.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-d2240e58.js","./index-a6ea55cb.css"],import.meta.url)},{path:"/payvoucher",name:"payvoucher",meta:{title:"支出凭证",name:"payvoucher",keepAlive:!0},component:()=>ze(()=>import("./index-69a13884.js"),["./index-69a13884.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-94e27af9.js","./InboxOutlined-d9b43bc2.js","./index-aca81af8.css","./index-359bce56.js","./index-3cf06861.css"],import.meta.url)},{path:"/dVoucherDetail",name:"dVoucherDetail",meta:{title:"支出凭证详情",name:"payvoucher",keepAlive:!0},component:()=>ze(()=>import("./index-307cfa31.js"),["./index-307cfa31.js","./index-27f812b1.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./routeTabs-94eec434.js","./_plugin-vue_export-helper-c27b6911.js","./index-11660e9d.css","./index-359bce56.js","./index-3cf06861.css"],import.meta.url)},{path:"/recvoucher",name:"recvoucher",meta:{title:"收入凭证",name:"recvoucher",keepAlive:!0},component:()=>ze(()=>import("./index-1da4fa08.js"),["./index-1da4fa08.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-94e27af9.js","./InboxOutlined-d9b43bc2.js","./index-aca81af8.css","./index-359bce56.js","./index-3cf06861.css"],import.meta.url)},{path:"/cVoucherDetail",name:"cVoucherDetail",meta:{title:"收入凭证详情",name:"recvoucher",keepAlive:!0},component:()=>ze(()=>import("./index-5aa54868.js"),["./index-5aa54868.js","./index-27f812b1.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./routeTabs-94eec434.js","./_plugin-vue_export-helper-c27b6911.js","./index-11660e9d.css","./index-359bce56.js","./index-3cf06861.css"],import.meta.url)},{path:"/creditbilladj",name:"creditbilladj",meta:{title:"信用调整",name:"creditbilladj",keepAlive:!0},component:()=>ze(()=>import("./index-452a2941.js"),["./index-452a2941.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/creditbilladjDetail",name:"creditbilladjDetail",meta:{title:"信用调整详情",name:"creditbilladj",keepAlive:!0},component:()=>ze(()=>import("./index-f03df63a.js"),["./index-f03df63a.js","./vue-7f5e2b1b.js","./index-359bce56.js","./_plugin-vue_export-helper-c27b6911.js","./index-3cf06861.css","./index-d2240e58.js","./fullScreen-0e37daa2.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css"],import.meta.url)},{path:"/accountclass",name:"accountclass",meta:{title:"账户管理",name:"accountclass",keepAlive:!0},component:()=>ze(()=>import("./index-33c2e17e.js"),["./index-33c2e17e.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/accountChange",name:"accountChange",meta:{title:"账户转账",name:"accountChange",keepAlive:!0},component:()=>ze(()=>import("./index-19e9c76e.js"),["./index-19e9c76e.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-359bce56.js","./index-3cf06861.css"],import.meta.url)},{path:"/accountChangeDtail",name:"accountChangeDtail",meta:{title:"转账单详情",name:"accountChange",keepAlive:!0},component:()=>ze(()=>import("./index-c6edf1da.js"),["./index-c6edf1da.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css","./index-3cf06861.css"],import.meta.url)},{path:"/dispatch",name:"dispatch",meta:{title:"发货通知单",name:"dispatch",keepAlive:!0},component:()=>ze(()=>import("./index-5a278e17.js"),["./index-5a278e17.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-359bce56.js","./index-3cf06861.css","./index-d2240e58.js","./index-a6ea55cb.css","./SnippetsOutlined-375ed380.js"],import.meta.url)},{path:"/dispatchDetail",name:"dispatchDetail",meta:{title:"发货通知单详情",name:"dispatch",keepAlive:!0},component:()=>ze(()=>import("./index-31a50209.js"),["./index-31a50209.js","./index-359bce56.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./index-3cf06861.css","./vue-router-e2815956.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./index-a6ea55cb.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css","./index-d525afe4.js","./index-ff730465.css","./index-b625723a.css"],import.meta.url)},{path:"/store",name:"store",meta:{title:"欠货库存查询",name:"store",keepAlive:!0},component:()=>ze(()=>import("./index-64d16cbe.js"),["./index-64d16cbe.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-d2240e58.js","./index-a6ea55cb.css"],import.meta.url)},{path:"/dispatchMx",name:"dispatchMx",meta:{title:"发货明细查询",name:"dispatchMx",keepAlive:!0},component:()=>ze(()=>import("./index-8a4e0e8e.js"),["./index-8a4e0e8e.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/aftersalesmag",name:"aftersalesmag",meta:{title:"退货管理",name:"aftersalesmag",keepAlive:!0},component:()=>ze(()=>import("./index-3dd550d7.js"),["./index-3dd550d7.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-359bce56.js","./index-3cf06861.css","./index-d2240e58.js","./index-a6ea55cb.css","./SnippetsOutlined-375ed380.js"],import.meta.url)},{path:"/returnedPurchaseDtail",name:"returnedPurchaseDtail",meta:{title:"退货管理详情",name:"aftersalesmag",keepAlive:!0},component:()=>ze(()=>import("./index-12e0e935.js"),["./index-12e0e935.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css","./index-d525afe4.js","./index-ff730465.css","./index-b8369cd8.css","./index-3cf06861.css"],import.meta.url)},{path:"/saleOutBill",name:"saleOutBill",meta:{title:"销售出库单",name:"saleOutBill",keepAlive:!0},component:()=>ze(()=>import("./index-c8670c93.js"),["./index-c8670c93.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/saleOutBillDetail",name:"saleOutBillDetail",meta:{title:"出库单详情",name:"saleOutBill",keepAlive:!0},component:()=>ze(()=>import("./index-21a84e61.js"),["./index-21a84e61.js","./fullScreen-0e37daa2.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./index-d2240e58.js","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css"],import.meta.url)},{path:"/logisticsOrder",name:"logisticsOrder",meta:{title:"物流管理",name:"logisticsOrder",keepAlive:!0},component:()=>ze(()=>import("./index-7f0be853.js"),["./index-7f0be853.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-359bce56.js","./index-3cf06861.css"],import.meta.url)},{path:"/logisticsOrderDetail",name:"logisticsOrderDetail",meta:{title:"物流单详情",name:"logisticsOrder",keepAlive:!0},component:()=>ze(()=>import("./index-140ad5af.js"),["./index-140ad5af.js","./index-359bce56.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./index-3cf06861.css","./index-d525afe4.js","./vue-router-e2815956.js","./index-ff730465.css","./index-d2240e58.js","./fullScreen-0e37daa2.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./index-a6ea55cb.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css"],import.meta.url)},{path:"/account_manage",name:"users",meta:{title:"用户管理",name:"users",keepAlive:!0},component:()=>ze(()=>import("./index-e6dd9687.js"),["./index-e6dd9687.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-359bce56.js","./index-3cf06861.css"],import.meta.url)},{path:"/accountManageDetail",name:"accountManageDetail",meta:{title:"用户详情",name:"users",keepAlive:!0},component:()=>ze(()=>import("./index-7ce1b75e.js"),["./index-7ce1b75e.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css","./index-359bce56.js","./index-3cf06861.css"],import.meta.url)},{path:"/role_manage",name:"roles",meta:{title:"角色管理",name:"roles",keepAlive:!0},component:()=>ze(()=>import("./index-7ff2dee5.js"),["./index-7ff2dee5.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/roleManageDetail",name:"roleManageDetail",meta:{title:"角色管理详情",name:"roles",keepAlive:!0},component:()=>ze(()=>import("./index-253bc051.js"),["./index-253bc051.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css","./index-e9daf0a9.css"],import.meta.url)},{path:"/depManage",name:"depManage",meta:{title:"组织架构",name:"depManage",keepAlive:!0},component:()=>ze(()=>import("./index-54ed1b1f.js"),["./index-54ed1b1f.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-f29a0b80.css"],import.meta.url)},{path:"/userDetail",name:"userDetail",meta:{title:"组织架构详情",name:"depManage",keepAlive:!0},component:()=>ze(()=>import("./index-8271ac68.js"),["./index-8271ac68.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./index-27f812b1.js","./routeTabs-94eec434.js","./_plugin-vue_export-helper-c27b6911.js","./index-11660e9d.css","./index-d2240e58.js","./fullScreen-0e37daa2.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./index-a6ea55cb.css","./index-5fe53e06.css"],import.meta.url)},{path:"/mediaStatistics",name:"mediaStatistics",meta:{title:"数据看板",keepAlive:!0},component:()=>ze(()=>import("./index-32dd5a23.js"),["./index-32dd5a23.js","./index-51e6ee25.js","./ext-f73e3415.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./vue-router-e2815956.js","./index-fc6e3576.css"],import.meta.url)},{path:"/rebatebill",name:"rebatebill",meta:{title:"返利结算单",name:"rebatebill",keepAlive:!0},component:()=>ze(()=>import("./index-15050c9d.js"),["./index-15050c9d.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/programme",name:"programme",meta:{title:"返利方案",name:"programme",keepAlive:!0},component:()=>ze(()=>import("./index-541d6a95.js"),["./index-541d6a95.js","./routeTabs-94eec434.js","./_plugin-vue_export-helper-c27b6911.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./vue-7f5e2b1b.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-d525afe4.js","./index-ff730465.css","./index-027fa393.css","./index-11660e9d.css"],import.meta.url)},{path:"/rebatebillDetail",name:"rebatebillDetail",meta:{title:"结算单详情",name:"rebatebill",keepAlive:!0},component:()=>ze(()=>import("./index-d76a51f1.js"),["./index-d76a51f1.js","./fullScreen-0e37daa2.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./index-d2240e58.js","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css"],import.meta.url)},{path:"/customizedSolution",name:"customizedSolution",meta:{title:"商品选项",name:"customizedSolution",keepAlive:!0},component:()=>ze(()=>import("./index-9c9d6470.js"),["./index-9c9d6470.js","./upload-42c971f1.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/customizedSizeScheme",name:"customizedSizeScheme",meta:{title:"尺寸定制方案",name:"customizedSizeScheme",keepAlive:!0},component:()=>ze(()=>import("./index-c2b4b460.js"),["./index-c2b4b460.js","./upload-42c971f1.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/sizeSchemeDetail",name:"sizeSchemeDetail",meta:{title:"定制方案详情",name:"customizedSizeScheme",keepAlive:!0},component:()=>ze(()=>import("./index-7babd44b.js"),["./index-7babd44b.js","./index-27f812b1.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./routeTabs-94eec434.js","./_plugin-vue_export-helper-c27b6911.js","./index-11660e9d.css","./index-d2240e58.js","./fullScreen-0e37daa2.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./index-a6ea55cb.css"],import.meta.url)},{path:"/systemNotice",name:"systemNotice",meta:{title:"发布通告",name:"systemNotice",keepAlive:!0},component:()=>ze(()=>import("./index-202047ae.js"),["./index-202047ae.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/systemNoticeDetail",name:"systemNoticeDetail",meta:{title:"系统通告详情",name:"systemNotice",keepAlive:!0},component:()=>ze(()=>import("./index-759a867f.js"),["./index-759a867f.js","./vue-7f5e2b1b.js","./index-27f812b1.js","./vue-router-e2815956.js","./routeTabs-94eec434.js","./_plugin-vue_export-helper-c27b6911.js","./index-11660e9d.css","./index-7d2f31d1.css"],import.meta.url)},{path:"/performanceGoals",name:"performanceGoals",meta:{title:"营销业绩目标管理",name:"performanceGoals",keepAlive:!0},component:()=>ze(()=>import("./index-1e62aa33.js"),["./index-1e62aa33.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/performanceGoalsDetails",name:"performanceGoalsDetails",meta:{title:"业绩目标详情",name:"performanceGoals",keepAlive:!0},component:()=>ze(()=>import("./index-b5acadf0.js"),["./index-b5acadf0.js","./index-94e27af9.js","./_plugin-vue_export-helper-c27b6911.js","./vue-7f5e2b1b.js","./InboxOutlined-d9b43bc2.js","./index-aca81af8.css","./vue-router-e2815956.js","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css","./index-c1692003.css"],import.meta.url)},{path:"/customerGoals",name:"customerGoals",meta:{title:"经销商目标管理",name:"customerGoals",keepAlive:!0},component:()=>ze(()=>import("./index-0a2dfdf0.js"),["./index-0a2dfdf0.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-3cf06861.css"],import.meta.url)},{path:"/customerGoalsDetails",name:"customerGoalsDetails",meta:{title:"经销商目标详情",name:"customerGoals",keepAlive:!0},component:()=>ze(()=>import("./index-3388c3d9.js"),["./index-3388c3d9.js","./index-94e27af9.js","./_plugin-vue_export-helper-c27b6911.js","./vue-7f5e2b1b.js","./InboxOutlined-d9b43bc2.js","./index-aca81af8.css","./vue-router-e2815956.js","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css","./index-5882eb54.css","./index-3cf06861.css"],import.meta.url)},{path:"/calcMethod",name:"calcMethod",meta:{title:"定制方案管理",name:"calcMethod",keepAlive:!0},component:()=>ze(()=>import("./index-37594595.js"),["./index-37594595.js","./_plugin-vue_export-helper-c27b6911.js","./vue-7f5e2b1b.js","./index-9d0abe40.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-0ef80c0c.css"],import.meta.url)},{path:"/methodDetail",name:"methodDetail",meta:{title:"定制方案管理详情",name:"calcMethod",keepAlive:!0},component:()=>ze(()=>import("./index-35342575.js"),["./index-35342575.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./index-27f812b1.js","./routeTabs-94eec434.js","./_plugin-vue_export-helper-c27b6911.js","./index-11660e9d.css","./index-d2240e58.js","./fullScreen-0e37daa2.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./index-a6ea55cb.css"],import.meta.url)},{path:"/productReplenishmentAnalysis",name:"productReplenishmentAnalysis",meta:{title:"商品补货分析",name:"productReplenishmentAnalysis",keepAlive:!0},component:()=>ze(()=>import("./index-b3569511.js"),["./index-b3569511.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)}],x_e=[{path:"/order",name:"order",meta:{title:"订货订单",name:"order",keepAlive:!0},component:()=>ze(()=>import("./index-1403ac02.js"),["./index-1403ac02.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-a681bc7a.css"],import.meta.url)},{path:"/agent_orderDetails",name:"agent_orderDetails",meta:{title:"订单详情",name:"order",keepAlive:!0},component:()=>ze(()=>import("./index-1d4efecb.js"),["./index-1d4efecb.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-d525afe4.js","./index-ff730465.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css","./index-c183d923.js","./index-7dc2fef0.css","./index-359bce56.js","./index-3cf06861.css","./index-eee61705.js","./index-2d9e740b.css","./index-31fa5ee9.css"],import.meta.url)},{path:"/orderMxAgent",name:"orderMxAgent",meta:{title:"订单明细",name:"orderMxAgent",keepAlive:!0},component:()=>ze(()=>import("./index-e2b98025.js"),["./index-e2b98025.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/productgroup",name:"productgroup",meta:{title:"商城",name:"productgroup",keepAlive:!0},component:()=>ze(()=>import("./index-b57605a5.js"),["./index-b57605a5.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./vue-router-e2815956.js","./StarOutlined-23b965dd.js","./ShoppingCartOutlined-fc4bdef6.js","./index-a0fc088d.css"],import.meta.url)},{path:"/groupDetail",name:"groupDetail",meta:{title:"商品组详情",name:"productgroup",keepAlive:!0},component:()=>ze(()=>import("./index-f6418d9e.js"),["./index-f6418d9e.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./_plugin-vue_export-helper-c27b6911.js","./StarOutlined-23b965dd.js","./ShoppingCartOutlined-fc4bdef6.js","./index-ce4f2ba0.css"],import.meta.url)},{path:"/shopCart",name:"shopCart",meta:{title:"购物车",name:"shopCart",keepAlive:!0},component:()=>ze(()=>import("./index-b885db06.js"),["./index-b885db06.js","./vue-7f5e2b1b.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-8895bb89.css"],import.meta.url)},{path:"/collection",name:"collection",meta:{title:"收藏夹",name:"shopCart",keepAlive:!0},component:()=>ze(()=>import("./index-66449c14.js"),["./index-66449c14.js","./vue-7f5e2b1b.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-a07871e7.css"],import.meta.url)},{path:"/salerPromotion",name:"salerPromotion",meta:{title:"促销方案",name:"salerPromotion",keepAlive:!0},component:()=>ze(()=>import("./index-1222e120.js"),["./index-1222e120.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./index-66e1985c.css"],import.meta.url)},{path:"/promotionDetail",name:"promotionDetail",meta:{title:"促销方案详情",name:"salerPromotion",keepAlive:!0},component:()=>ze(()=>import("./index-8de33025.js"),["./index-8de33025.js","./vue-7f5e2b1b.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-cb58ad21.css"],import.meta.url)},{path:"/promotionShopCart",name:"promotionShopCart",meta:{title:"促销购物车",name:"salerPromotion",keepAlive:!0},component:()=>ze(()=>import("./index-34ef0e72.js"),["./index-34ef0e72.js","./vue-7f5e2b1b.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-2e0d9a58.css"],import.meta.url)},{path:"/remitvoucher",name:"remitvoucher",meta:{title:"打款凭证",name:"remitvoucher",keepAlive:!0},component:()=>ze(()=>import("./index-367d044c.js"),["./index-367d044c.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-a41eb3bb.css"],import.meta.url)},{path:"/remitvoucherDetail",name:"remitvoucherDetail",meta:{title:"打款凭证详情",name:"remitvoucher",keepAlive:!0},component:()=>ze(()=>import("./index-23748ab9.js"),["./index-23748ab9.js","./index-27f812b1.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./routeTabs-94eec434.js","./_plugin-vue_export-helper-c27b6911.js","./index-11660e9d.css","./index-7285eee7.css"],import.meta.url)},{path:"/myaccountclass",name:"myaccountclass",meta:{title:"我的账户",name:"myaccountclass",keepAlive:!1},component:()=>ze(()=>import("./index-8ad7ee1c.js"),["./index-8ad7ee1c.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-b0268962.css"],import.meta.url)},{path:"/logisticsOrderAgent",name:"logisticsOrderAgent",meta:{title:"物流信息",name:"logisticsOrderAgent",keepAlive:!0},component:()=>ze(()=>import("./index-07781650.js"),["./index-07781650.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/logisticsOrderDetailAgent",name:"logisticsOrderDetailAgent",meta:{title:"物流详情",name:"logisticsOrderAgent",keepAlive:!0},component:()=>ze(()=>import("./index-9fb5679b.js"),["./index-9fb5679b.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css"],import.meta.url)},{path:"/dispatch_agent",name:"dispatch_agent",meta:{title:"发货单",name:"dispatch_agent",keepAlive:!0},component:()=>ze(()=>import("./index-488b08f8.js"),["./index-488b08f8.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/dispatchdetail_agent",name:"dispatchdetail_agent",meta:{title:"发货单详情",name:"dispatch_agent",keepAlive:!0},component:()=>ze(()=>import("./index-88df7574.js"),["./index-88df7574.js","./vue-7f5e2b1b.js","./index-27f812b1.js","./vue-router-e2815956.js","./routeTabs-94eec434.js","./_plugin-vue_export-helper-c27b6911.js","./index-11660e9d.css","./index-5e2381a8.js","./index-5fe53e06.css","./index-d680cfe0.css"],import.meta.url)},{path:"/dispatchMxAgent",name:"dispatchMxAgent",meta:{title:"订单明细",name:"dispatchMxAgent",keepAlive:!0},component:()=>ze(()=>import("./index-43539279.js"),["./index-43539279.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/salerafterbill",name:"salerafterbill",meta:{title:"返退单",name:"salerafterbill",keepAlive:!0},component:()=>ze(()=>import("./index-fb546d94.js"),["./index-fb546d94.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-d2240e58.js","./index-a6ea55cb.css","./SnippetsOutlined-375ed380.js","./index-3cf06861.css"],import.meta.url)},{path:"/aftersalesBillDetail",name:"aftersalesBillDetail",meta:{title:"返退单详情",name:"salerafterbill",keepAlive:!0},component:()=>ze(()=>import("./index-43ed0100.js"),["./index-43ed0100.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css","./index-d525afe4.js","./index-ff730465.css","./index-fb6b65bd.css","./index-3cf06861.css"],import.meta.url)},{path:"/message",name:"msgcenter",meta:{title:"消息中心",name:"msgcenter",keepAlive:!0},component:()=>ze(()=>import("./index-628d86ac.js"),["./index-628d86ac.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./index-26d7e777.css"],import.meta.url),children:[]},{path:"/team_managent",name:"teamManagent",meta:{title:"团队管理",name:"teamManagent",keepAlive:!0},component:()=>ze(()=>import("./index-26329b2a.js"),["./index-26329b2a.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/ftMxAgent",name:"ftMxAgent",meta:{title:"工厂发退明细",name:"ftMxAgent",keepAlive:!0},component:()=>ze(()=>import("./index-3375ee71.js"),["./index-3375ee71.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/saleTarget",name:"saleTarget",meta:{title:"业绩目标",name:"saleTarget",keepAlive:!0},component:()=>ze(()=>import("./index-5d25702f.js"),["./index-5d25702f.js","./index-51e6ee25.js","./ext-f73e3415.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./vue-router-e2815956.js","./index-158b2524.css"],import.meta.url)},{path:"/performanceGoals_saler",name:"performanceGoals_saler",meta:{title:"业绩目标",name:"performanceGoals_saler",keepAlive:!0},component:()=>ze(()=>import("./index-5e61e7bd.js"),["./index-5e61e7bd.js","./index-51e6ee25.js","./ext-f73e3415.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./vue-router-e2815956.js","./index-24e1e10d.css"],import.meta.url)},{path:"/modulesPayOrder",name:"modulesPayOrder",meta:{title:"付费订单",name:"modulesPayOrder",keepAlive:!0},component:()=>ze(()=>import("./index-e3bbd0b5.js"),["./index-e3bbd0b5.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./UnlockOutlined-d0202708.js","./index-fef571c5.css"],import.meta.url)},{path:"/modulesOrderDetails",name:"modulesOrderDetails",meta:{title:"付费订单详情",name:"modulesPayOrder",keepAlive:!0},component:()=>ze(()=>import("./index-4e9c5500.js"),["./index-4e9c5500.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css"],import.meta.url)}],w_e=[{path:"/product",name:"product",meta:{title:"商城",name:"product",keepAlive:!0},component:()=>ze(()=>import("./index-c5ccffbf.js"),["./index-c5ccffbf.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./vue-router-e2815956.js","./index-3f2fcfc7.css"],import.meta.url)},{path:"/a_productDtail",name:"a_productDtail",meta:{title:"商城",name:"product",keepAlive:!0},component:()=>ze(()=>import("./index-d7537abf.js"),["./index-d7537abf.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./_plugin-vue_export-helper-c27b6911.js","./index-9290e446.css"],import.meta.url)},{path:"/promotionmag",name:"promotionmag",meta:{title:"促销活动",name:"promotionmag",keepAlive:!0},component:()=>ze(()=>import("./index-2e440252.js"),["./index-2e440252.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./index-fe119d59.css"],import.meta.url)},{path:"/arpromotionmagDetail",name:"arpromotionmagDetail",meta:{title:"促销活动详情",name:"promotionmag",keepAlive:!0},component:()=>ze(()=>import("./index-162d35da.js"),["./index-162d35da.js","./vue-7f5e2b1b.js","./index-5e2381a8.js","./vue-router-e2815956.js","./_plugin-vue_export-helper-c27b6911.js","./index-5fe53e06.css","./index-da9ca38b.css"],import.meta.url)},{path:"/ordersaler",name:"ordersaler",meta:{title:"订货业务",name:"ordersaler",keepAlive:!0},component:()=>ze(()=>import("./index-f4f780b3.js"),["./index-f4f780b3.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/ordersalerDetail",name:"ordersalerDetail",meta:{title:"订货详情",name:"ordersaler",keepAlive:!0},component:()=>ze(()=>import("./index-337ce7e9.js"),["./index-337ce7e9.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css","./index-05a407f0.css"],import.meta.url)},{path:"/dispatchmag",name:"dispatchmag",meta:{title:"工厂发退明细",name:"dispatchmag",keepAlive:!0},component:()=>ze(()=>import("./index-7ef4ebde.js"),["./index-7ef4ebde.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/logistics",name:"logistics",meta:{title:"物流单",name:"logistics",keepAlive:!0},component:()=>ze(()=>import("./index-1548a140.js"),["./index-1548a140.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css"],import.meta.url)},{path:"/logisticsDetail",name:"logisticsDetail",meta:{title:"物流单详情",name:"logistics",keepAlive:!0},component:()=>ze(()=>import("./index-f40d6648.js"),["./index-f40d6648.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css"],import.meta.url)}],S_e=[{path:"/ordermag_cucu",name:"ordermag_cucu",meta:{title:"订单管理",name:"ordermag_cucu",keepAlive:!0},component:()=>ze(()=>import("./index-44e1c364.js"),["./index-44e1c364.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-359bce56.js","./index-3cf06861.css","./index-36320cc5.js"],import.meta.url)},{path:"/orderDetail_cucu",name:"orderDetail_cucu",meta:{title:"订单详情",name:"ordermag_cucu",keepAlive:!0},component:()=>ze(()=>import("./index-7e4ae577.js"),["./index-7e4ae577.js","./vue-7f5e2b1b.js","./index-d2240e58.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./vue-router-e2815956.js","./index-a6ea55cb.css","./index-94e27af9.js","./InboxOutlined-d9b43bc2.js","./index-aca81af8.css","./index-d525afe4.js","./index-ff730465.css","./index-359bce56.js","./index-3cf06861.css","./index-27f812b1.js","./routeTabs-94eec434.js","./index-11660e9d.css","./index-eee61705.js","./index-2d9e740b.css","./index-36320cc5.js","./index-7f704274.css","./index-e0ac862f.css","./index-7dc2fef0.css"],import.meta.url)}],Fy=[{path:"/",name:"login",component:()=>ze(()=>import("./login-82ac674c.js"),["./login-82ac674c.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./md5-66f68c50.js","./routeTabs-94eec434.js","./_plugin-vue_export-helper-c27b6911.js","./login-3a4f3f70.css"],import.meta.url)},{path:"/home",name:"home",component:()=>ze(()=>import("./index-dab981a5.js"),["./index-dab981a5.js","./vue-7f5e2b1b.js","./ext-f73e3415.js","./routeTabs-94eec434.js","./vue-router-e2815956.js","./changePasd-0d524576.js","./md5-66f68c50.js","./_plugin-vue_export-helper-c27b6911.js","./ShoppingCartOutlined-fc4bdef6.js","./index-f5adc09e.css"],import.meta.url),redirect:"/dataDashboard",children:[{path:"/dataDashboard",name:"dataDashboard",meta:{title:"数据看板",name:"dataDashboard",keepAlive:!0},component:()=>ze(()=>import("./index-e6b9bb8d.js"),["./index-e6b9bb8d.js","./_plugin-vue_export-helper-c27b6911.js","./vue-7f5e2b1b.js","./index-51e6ee25.js","./ext-f73e3415.js","./vue-router-e2815956.js","./index-84b8ada0.css"],import.meta.url)},{path:"/reportcenter",name:"reportcenter",meta:{title:"报表中心",name:"reportcenter",keepAlive:!0},component:()=>ze(()=>import("./index-681f0d1e.js"),["./index-681f0d1e.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-01f2f1b9.css"],import.meta.url)},{path:"/custom_option",name:"custom_option",meta:{title:"自定义选项分类",name:"custom_option",keepAlive:!0},component:()=>ze(()=>import("./index-b7bbe1d1.js"),["./index-b7bbe1d1.js","./index-9d0abe40.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-0e37daa2.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-a4cee3df.js","./fullScreen-764ffdff.css","./routeTabs-94eec434.js","./index-4ccc3e65.css","./index-d2240e58.js","./index-a6ea55cb.css"],import.meta.url)},{path:"/securityConfig",name:"companyInformation",meta:{title:"企业设置",name:"companyInformation",keepAlive:!0},component:()=>ze(()=>import("./index-2fa1a4e8.js"),["./index-2fa1a4e8.js","./vue-7f5e2b1b.js","./md5-66f68c50.js","./index-e134ab6a.js","./_plugin-vue_export-helper-c27b6911.js","./InboxOutlined-d9b43bc2.js","./index-f5642791.css","./SettingOutlined-a4cee3df.js","./vue-router-e2815956.js","./index-9cbcaa0f.css"],import.meta.url)},{path:"/setenterpriseInfo",name:"setenterpriseInfo",meta:{title:"企业信息",name:"setenterpriseInfo",keepAlive:!0},component:()=>ze(()=>import("./index-01c1b22c.js"),["./index-01c1b22c.js","./_plugin-vue_export-helper-c27b6911.js","./vue-7f5e2b1b.js","./changePasd-0d524576.js","./md5-66f68c50.js","./vue-router-e2815956.js","./index-888e7caf.css"],import.meta.url)},{path:"/modulesPay",name:"modulesPay",meta:{title:"模块购买",name:"modulesPay",keepAlive:!0},component:()=>ze(()=>import("./index-25274e88.js"),["./index-25274e88.js","./_plugin-vue_export-helper-c27b6911.js","./vue-7f5e2b1b.js","./UnlockOutlined-d0202708.js","./vue-router-e2815956.js","./index-bef234cb.css"],import.meta.url)}]},{path:"/404",name:"404",component:()=>ze(()=>import("./404-6a71546a.js"),["./404-6a71546a.js","./_plugin-vue_export-helper-c27b6911.js","./vue-7f5e2b1b.js","./404-0653601a.css"],import.meta.url)},{path:"/:catchAll(.*)",redirect:"/404"}];Fy[1].children=[...Fy[1].children,...b_e,...x_e,...w_e,...S_e];const _B=qB({history:GB(),routes:Fy});_B.beforeEach((e,t,n)=>{la().appData(e.meta.name);let r=la().app;if(e.name!=="404"&&e.name!=="login")if(!eS.hasAuth(r))cn.error("未授权该应用,无法访问!");else{if(r&&r.isneedpay)return{name:"modulesPay"};n()}else n()});const BB=_B,sc=r_("base",{state:()=>({router:XB(),classAct:null,Provinces:[],tableRecord:[],colMap:new Map,fullscreen:!1,siteInfo:{},themeAlgorithm:"defaultAlgorithm",canPointer:!0,open:!1,num:0,currentComponent:null,connection:0}),persist:{enabled:!0,strategies:[{storage:localStorage,paths:["themeAlgorithm"]}]},getters:{},actions:{async siteData(){const e=await rs.requested({classname:"webmanage.site.site",method:"querySite",content:{}});this.siteInfo=e.data},async ProvincesData(){const e=await rs.requested({classname:"system.tools",method:"query_arealist",content:{}});e.data;function t(n){let r=Object.keys(n).map((o,a,i)=>{var l={label:o,value:o,item:n[o]};return l});return r.forEach(o=>{o.item instanceof Array?(o.children=[],o.item.forEach(a=>{o.children.push({label:a,value:a})})):Object.keys(o.item).length!==0&&(o.children=t(o.item))}),r}return t(e.data)},changeLayout(){this.themeAlgorithm=="defaultAlgorithm"?this.themeAlgorithm="compactAlgorithm":this.themeAlgorithm="defaultAlgorithm"},async shopCartNum(){const e=await rs.requested({id:20220927093202,content:{}});this.num=e.data.num},async openDrawerPage(e,t){this.router.push({name:this.router.currentRoute.name,query:{id:t}});const r=await this.router.getRoutes().filter(o=>o.name==e)[0].components.default();this.currentComponent=r.default,this.open=!this.open}}});const C_e={__name:"App",setup(e){const t=sc();let{themeAlgorithm:n,canPointer:r}=nbe(t);return En.locale("zh"),Qe(()=>{}),(o,a)=>{const i=iS("router-view"),l=iS("a-config-provider");return VB(),WB("div",{class:KB(xn(r)?"":"stop_pionet")},[C(l,{theme:{algorithm:xn(Hye)[xn(n)]},csp:{nonce:"YourNonceCode"},"component-shape":"round",locale:xn(Gye)},{default:UB(()=>[C(i)]),_:1},8,["theme","locale"])],2)}}};const ST=(e,t)=>{const n=e.storage||sessionStorage,r=e.key||t.$id;if(e.paths){const o=e.paths.reduce((a,i)=>(a[i]=t.$state[i],a),{});n.setItem(r,JSON.stringify(o))}else n.setItem(r,JSON.stringify(t.$state))};var $_e=({options:e,store:t})=>{var n,r,o,a;if((n=e.persist)!=null&&n.enabled){const i=[{key:t.$id,storage:sessionStorage}],l=(o=(r=e.persist)==null?void 0:r.strategies)!=null&&o.length?(a=e.persist)==null?void 0:a.strategies:i;l.forEach(s=>{const u=s.storage||sessionStorage,c=s.key||t.$id,d=u.getItem(c);d&&(t.$patch(JSON.parse(d)),ST(s,t))}),t.$subscribe(()=>{l.forEach(s=>{ST(s,t)})})}};const FB=Zye();FB.use($_e);const Fc=ET(C_e);cn.config({rtl:!0,maxCount:1,getContainer:()=>document.getElementById("app")});Fc.use(FB);Fc.use(BB);Fc.use(Vye);Fc.use(iv);Fc.mount("#app");export{rs as A,rP as C,pc as D,tP as E,oi as L,Nn as M,zQ as P,xo as R,Cie as S,y_e as U,vt as a,sc as b,eS as c,sae as d,v8 as e,tr as f,UZ as g,eP as h,Aa as i,r_ as j,zr as k,oae as l,cn as m,ew as n,voe as o,Ev as p,bie as q,BB as r,nbe as s,Hye as t,la as u,V2 as v};