LengthCalculator-388f4970.js 94.5 KB
import{a4 as oe,f as D,e as _e,al as dt,_ as C,aD as Bt,aE as sn,aF as Hn,aG as jn,aH as Vn,aI as Xn,aJ as Gn,aK as Un,aL as $t,aM as un,aN as Yn,aO as qn,aP as Zn,aQ as Qn,K as We,i as Jn,aR as cn,a6 as qe,aS as eo,A as dn,aT as je,aU as Tt,T as to,ax as Le,ap as Me,am as Ot,ak as Ne,an as no,aV as Dt,aW as vn,aX as oo,aY as fn,g as mn,m as wt,J as Lt,aZ as lo,a as ao,at as Nt,r as Pt,Q as io,u as pn,a_ as ro,a$ as xe,b0 as Pe,b1 as et,as as gn,c as bn,o as so,a5 as rt,b2 as uo,b3 as co,b4 as vo,b5 as fo,b6 as mo,D as po,ai as go,aC as bo,aB as ho}from"./index-f6e62ac7.js";import{d as ce,p as He,a as y,I as Ae,r as _,e as yo,c as s,s as V,w as de,u as nt,h as Fe,J as St,F as vt,K as Ft,l as Ve,j as hn,m as $o,i as xo,v as _o,o as at,T as wo,k as So,x as Co,y as Io,B as N,A as d,E as j,D as $e}from"./index-99afc993.js";const yn=Symbol("OverflowContextProviderKey"),Ct=ce({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return He(yn,y(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),To=()=>Ae(yn,y(()=>null));var Oo=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]]);return n};const Ge=void 0,ut=ce({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:oe.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:oe.any,invalidate:Boolean},setup(e,t){let{slots:n,expose:o}=t;const l=y(()=>e.responsive&&!e.display),i=_();o({itemNodeRef:i});function a(r){e.registerSize(e.itemKey,r)}return yo(()=>{a(null)}),()=>{var r;const{prefixCls:u,invalidate:f,item:v,renderItem:c,responsive:b,registerSize:m,itemKey:h,display:I,order:O,component:k="div"}=e,A=Oo(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),X=(r=n.default)===null||r===void 0?void 0:r.call(n),Y=c&&v!==Ge?c(v):X;let p;f||(p={opacity:l.value?0:1,height:l.value?0:Ge,overflowY:l.value?"hidden":Ge,order:b?O:Ge,pointerEvents:l.value?"none":Ge,position:l.value?"absolute":Ge});const w={};return l.value&&(w["aria-hidden"]=!0),s(dt,{disabled:!b,onResize:x=>{let{offsetWidth:E}=x;a(E)}},{default:()=>s(k,D(D(D({class:_e(!f&&u),style:p},w),A),{},{ref:i}),{default:()=>[Y]})})}}});var xt=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]]);return n};const Po=ce({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:oe.any,title:oe.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},role:String,tabindex:Number},setup(e,t){let{slots:n,attrs:o}=t;const l=To();return()=>{var i;if(!l.value){const{component:c="div"}=e,b=xt(e,["component"]);return s(c,D(D({},b),o),{default:()=>[(i=n.default)===null||i===void 0?void 0:i.call(n)]})}const a=l.value,{className:r}=a,u=xt(a,["className"]),{class:f}=o,v=xt(o,["class"]);return s(Ct,{value:null},{default:()=>[s(ut,D(D(D({class:_e(r,f)},u),v),e),n)]})}}});var Mo=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]]);return n};const $n="responsive",xn="invalidate";function ko(e){return`+ ${e.length} ...`}const Ao=()=>({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:oe.any,component:String,itemComponent:oe.any,onVisibleChange:Function,ssr:String,onMousedown:Function}),ht=ce({name:"Overflow",inheritAttrs:!1,props:Ao(),emits:["visibleChange"],setup(e,t){let{attrs:n,emit:o,slots:l}=t;const i=y(()=>e.ssr==="full"),a=V(null),r=y(()=>a.value||0),u=V(new Map),f=V(0),v=V(0),c=V(0),b=V(null),m=V(null),h=y(()=>m.value===null&&i.value?Number.MAX_SAFE_INTEGER:m.value||0),I=V(!1),O=y(()=>`${e.prefixCls}-item`),k=y(()=>Math.max(f.value,v.value)),A=y(()=>!!(e.data.length&&e.maxCount===$n)),X=y(()=>e.maxCount===xn),Y=y(()=>A.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount),p=y(()=>{let T=e.data;return A.value?a.value===null&&i.value?T=e.data:T=e.data.slice(0,Math.min(e.data.length,r.value/e.itemWidth)):typeof e.maxCount=="number"&&(T=e.data.slice(0,e.maxCount)),T}),w=y(()=>A.value?e.data.slice(h.value+1):e.data.slice(p.value.length)),x=(T,F)=>{var z;return typeof e.itemKey=="function"?e.itemKey(T):(z=e.itemKey&&(T==null?void 0:T[e.itemKey]))!==null&&z!==void 0?z:F},E=y(()=>e.renderItem||(T=>T)),H=(T,F)=>{m.value=T,F||(I.value=T<e.data.length-1,o("visibleChange",T))},K=(T,F)=>{a.value=F.clientWidth},ee=(T,F)=>{const z=new Map(u.value);F===null?z.delete(T):z.set(T,F),u.value=z},le=(T,F)=>{f.value=v.value,v.value=F},se=(T,F)=>{c.value=F},ve=T=>u.value.get(x(p.value[T],T));return de([r,u,v,c,()=>e.itemKey,p],()=>{if(r.value&&k.value&&p.value){let T=c.value;const F=p.value.length,z=F-1;if(!F){H(0),b.value=null;return}for(let J=0;J<F;J+=1){const q=ve(J);if(q===void 0){H(J-1,!0);break}if(T+=q,z===0&&T<=r.value||J===z-1&&T+ve(z)<=r.value){H(z),b.value=null;break}else if(T+k.value>r.value){H(J-1),b.value=T-q-c.value+v.value;break}}e.suffix&&ve(0)+c.value>r.value&&(b.value=null)}}),()=>{const T=I.value&&!!w.value.length,{itemComponent:F,renderRawItem:z,renderRawRest:J,renderRest:q,prefixCls:pe="rc-overflow",suffix:R,component:te="div",id:ae,onMousedown:fe}=e,{class:he,style:$}=n,g=Mo(n,["class","style"]);let P={};b.value!==null&&A.value&&(P={position:"absolute",left:`${b.value}px`,top:0});const B={prefixCls:O.value,responsive:A.value,component:F,invalidate:X.value},Q=z?(ue,ye)=>{const Se=x(ue,ye);return s(Ct,{key:Se,value:C(C({},B),{order:ye,item:ue,itemKey:Se,registerSize:ee,display:ye<=h.value})},{default:()=>[z(ue,ye)]})}:(ue,ye)=>{const Se=x(ue,ye);return s(ut,D(D({},B),{},{order:ye,key:Se,item:ue,renderItem:E.value,itemKey:Se,registerSize:ee,display:ye<=h.value}),null)};let ie=()=>null;const ne={order:T?h.value:Number.MAX_SAFE_INTEGER,className:`${O.value} ${O.value}-rest`,registerSize:le,display:T};if(J)J&&(ie=()=>s(Ct,{value:C(C({},B),ne)},{default:()=>[J(w.value)]}));else{const ue=q||ko;ie=()=>s(ut,D(D({},B),ne),{default:()=>typeof ue=="function"?ue(w.value):ue})}const S=()=>{var ue;return s(te,D({id:ae,class:_e(!X.value&&pe,he),style:$,onMousedown:fe},g),{default:()=>[p.value.map(Q),Y.value?ie():null,R&&s(ut,D(D({},B),{},{order:h.value,class:`${O.value}-suffix`,registerSize:se,display:!0,style:P}),{default:()=>R}),(ue=l.default)===null||ue===void 0?void 0:ue.call(l)]})};return s(dt,{disabled:!A.value,onResize:K},{default:S})}}});ht.Item=Po;ht.RESPONSIVE=$n;ht.INVALIDATE=xn;const ot=ht;function zt(e,t){const{defaultValue:n,value:o=_()}=t||{};let l=typeof e=="function"?e():e;o.value!==void 0&&(l=nt(o)),n!==void 0&&(l=typeof n=="function"?n():n);const i=_(l),a=_(l);Fe(()=>{let u=o.value!==void 0?o.value:i.value;t.postState&&(u=t.postState(u)),a.value=u});function r(u){const f=a.value;i.value=u,St(a.value)!==u&&t.onChange&&t.onChange(u,f)}return de(o,()=>{i.value=o.value}),[a,r]}function Eo(){}function Ro(e,t,n,o){if(!Bt(e))return e;t=sn(t,e);for(var l=-1,i=t.length,a=i-1,r=e;r!=null&&++l<i;){var u=Hn(t[l]),f=n;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(l!=a){var v=r[u];f=o?o(v,u,r):void 0,f===void 0&&(f=Bt(v)?v:jn(t[l+1])?[]:{})}Vn(r,u,f),r=r[u]}return e}function Ko(e,t,n){for(var o=-1,l=t.length,i={};++o<l;){var a=t[o],r=Xn(e,a);n(r,a)&&Ro(i,sn(a,e),r)}return i}function Bo(e,t){return Ko(e,t,function(n,o){return Gn(e,o)})}var Do=Un(function(e,t){return e==null?{}:Bo(e,t)});const _n=Do;var Lo=1/0,No=$t&&1/un(new $t([,-0]))[1]==Lo?function(e){return new $t(e)}:Eo;const Fo=No;var zo=200;function Wo(e,t,n){var o=-1,l=qn,i=e.length,a=!0,r=[],u=r;if(n)a=!1,l=Zn;else if(i>=zo){var f=t?null:Fo(e);if(f)return un(f);a=!1,l=Qn,u=new Yn}else u=t?[]:r;e:for(;++o<i;){var v=e[o],c=t?t(v):v;if(v=n||v!==0?v:0,a&&c===c){for(var b=u.length;b--;)if(u[b]===c)continue e;t&&u.push(c),r.push(v)}else l(u,c,n)||(u!==r&&u.push(c),r.push(v))}return r}function _t(e){return e&&e.length?Wo(e):[]}const Ho=new We("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),jo=new We("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Vo=new We("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Xo=new We("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Go=new We("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Uo=new We("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Yo=new We("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),qo=new We("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Zo={"slide-up":{inKeyframes:Ho,outKeyframes:jo},"slide-down":{inKeyframes:Vo,outKeyframes:Xo},"slide-left":{inKeyframes:Go,outKeyframes:Uo},"slide-right":{inKeyframes:Yo,outKeyframes:qo}},ft=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:l,outKeyframes:i}=Zo[t];return[Jn(o,l,i,e.motionDurationMid),{[`
      ${o}-enter,
      ${o}-appear
    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Ue={adjustX:1,adjustY:1},Ye=[0,0],Qo={topLeft:{points:["bl","tl"],overflow:Ue,offset:[0,-4],targetOffset:Ye},topCenter:{points:["bc","tc"],overflow:Ue,offset:[0,-4],targetOffset:Ye},topRight:{points:["br","tr"],overflow:Ue,offset:[0,-4],targetOffset:Ye},bottomLeft:{points:["tl","bl"],overflow:Ue,offset:[0,4],targetOffset:Ye},bottomCenter:{points:["tc","bc"],overflow:Ue,offset:[0,4],targetOffset:Ye},bottomRight:{points:["tr","br"],overflow:Ue,offset:[0,4],targetOffset:Ye}},Jo=Qo;var el=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]]);return n};const tl=ce({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:oe.string.def("rc-dropdown"),transitionName:String,overlayClassName:oe.string.def(""),openClassName:String,animation:oe.any,align:oe.object,overlayStyle:{type:Object,default:void 0},placement:oe.string.def("bottomLeft"),overlay:oe.any,trigger:oe.oneOfType([oe.string,oe.arrayOf(oe.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:oe.array,hideAction:oe.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:oe.number.def(.15),mouseLeaveDelay:oe.number.def(.1)},emits:["visibleChange","overlayClick"],setup(e,t){let{slots:n,emit:o,expose:l}=t;const i=_(!!e.visible);de(()=>e.visible,m=>{m!==void 0&&(i.value=m)});const a=_();l({triggerRef:a});const r=m=>{e.visible===void 0&&(i.value=!1),o("overlayClick",m)},u=m=>{e.visible===void 0&&(i.value=m),o("visibleChange",m)},f=()=>{var m;const h=(m=n.overlay)===null||m===void 0?void 0:m.call(n),I={prefixCls:`${e.prefixCls}-menu`,onClick:r};return s(vt,{key:eo},[e.arrow&&s("div",{class:`${e.prefixCls}-arrow`},null),qe(h,I,!1)])},v=y(()=>{const{minOverlayWidthMatchTrigger:m=!e.alignPoint}=e;return m}),c=()=>{var m;const h=(m=n.default)===null||m===void 0?void 0:m.call(n);return i.value&&h?qe(h[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):h},b=y(()=>!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction);return()=>{const{prefixCls:m,arrow:h,showAction:I,overlayStyle:O,trigger:k,placement:A,align:X,getPopupContainer:Y,transitionName:p,animation:w,overlayClassName:x}=e,E=el(e,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return s(cn,D(D({},E),{},{prefixCls:m,ref:a,popupClassName:_e(x,{[`${m}-show-arrow`]:h}),popupStyle:O,builtinPlacements:Jo,action:k,showAction:I,hideAction:b.value||[],popupPlacement:A,popupAlign:X,popupTransitionName:p,popupAnimation:w,popupVisible:i.value,stretch:v.value?"minWidth":"",onPopupVisibleChange:u,getPopupContainer:Y}),{popup:f,default:c})}}});var nl={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 ol=nl;function Wt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){ll(e,l,n[l])})}return e}function ll(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mt=function(t,n){var o=Wt({},t,n.attrs);return s(dn,Wt({},o,{icon:ol}),null)};Mt.displayName="EllipsisOutlined";Mt.inheritAttrs=!1;const wn=Mt,Sn=Symbol("OverrideContextKey"),Cn=()=>Ae(Sn,void 0),al=e=>{var t,n,o;const{prefixCls:l,mode:i,selectable:a,validator:r,onClick:u,expandIcon:f}=Cn()||{};He(Sn,{prefixCls:y(()=>{var v,c;return(c=(v=e.prefixCls)===null||v===void 0?void 0:v.value)!==null&&c!==void 0?c:l==null?void 0:l.value}),mode:y(()=>{var v,c;return(c=(v=e.mode)===null||v===void 0?void 0:v.value)!==null&&c!==void 0?c:i==null?void 0:i.value}),selectable:y(()=>{var v,c;return(c=(v=e.selectable)===null||v===void 0?void 0:v.value)!==null&&c!==void 0?c:a==null?void 0:a.value}),validator:(t=e.validator)!==null&&t!==void 0?t:r,onClick:(n=e.onClick)!==null&&n!==void 0?n:u,expandIcon:(o=e.expandIcon)!==null&&o!==void 0?o:f==null?void 0:f.value})};function il(e,t,n,o){let l=n?n.call(o,e,t):void 0;if(l!==void 0)return!!l;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const r=Object.prototype.hasOwnProperty.bind(t);for(let u=0;u<i.length;u++){const f=i[u];if(!r(f))return!1;const v=e[f],c=t[f];if(l=n?n.call(o,v,c,f):void 0,l===!1||l===void 0&&v!==c)return!1}return!0}function tt(e,t){return il(St(e),St(t))}const In=Symbol("menuContextKey"),Tn=e=>{He(In,e)},Ee=()=>Ae(In),On=Symbol("ForceRenderKey"),rl=e=>{He(On,e)},Pn=()=>Ae(On,!1),Mn=Symbol("menuFirstLevelContextKey"),kn=e=>{He(Mn,e)},sl=()=>Ae(Mn,!0),mt=ce({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t;const o=Ee(),l=C({},o);return e.mode!==void 0&&(l.mode=Ft(e,"mode")),e.overflowDisabled!==void 0&&(l.overflowDisabled=Ft(e,"overflowDisabled")),Tn(l),()=>{var i;return(i=n.default)===null||i===void 0?void 0:i.call(n)}}}),ul=Tn,cl=Symbol("siderCollapsed"),st="$$__vc-menu-more__key",An=Symbol("KeyPathContext"),kt=()=>Ae(An,{parentEventKeys:y(()=>[]),parentKeys:y(()=>[]),parentInfo:{}}),dl=(e,t,n)=>{const{parentEventKeys:o,parentKeys:l}=kt(),i=y(()=>[...o.value,e]),a=y(()=>[...l.value,t]);return He(An,{parentEventKeys:i,parentKeys:a,parentInfo:n}),a},En=Symbol("measure"),Ht=ce({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return He(En,!0),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),At=()=>Ae(En,!1),vl=dl;function Rn(e){const{mode:t,rtl:n,inlineIndent:o}=Ee();return y(()=>t.value!=="inline"?null:n.value?{paddingRight:`${e.value*o.value}px`}:{paddingLeft:`${e.value*o.value}px`})}let fl=0;const ml=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:oe.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:Le()}),Ze=ce({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:ml(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:l}=t;const i=hn(),a=At(),r=typeof i.vnode.key=="symbol"?String(i.vnode.key):i.vnode.key;je(typeof i.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(r)}"\` not support Symbol type`);const u=`menu_item_${++fl}_$$_${r}`,{parentEventKeys:f,parentKeys:v}=kt(),{prefixCls:c,activeKeys:b,disabled:m,changeActiveKeys:h,rtl:I,inlineCollapsed:O,siderCollapsed:k,onItemClick:A,selectedKeys:X,registerMenuInfo:Y,unRegisterMenuInfo:p}=Ee(),w=sl(),x=V(!1),E=y(()=>[...v.value,r]);Y(u,{eventKey:u,key:r,parentEventKeys:f,parentKeys:v,isLeaf:!0}),Ve(()=>{p(u)}),de(b,()=>{x.value=!!b.value.find(R=>R===r)},{immediate:!0});const K=y(()=>m.value||e.disabled),ee=y(()=>X.value.includes(r)),le=y(()=>{const R=`${c.value}-item`;return{[`${R}`]:!0,[`${R}-danger`]:e.danger,[`${R}-active`]:x.value,[`${R}-selected`]:ee.value,[`${R}-disabled`]:K.value}}),se=R=>({key:r,eventKey:u,keyPath:E.value,eventKeyPath:[...f.value,u],domEvent:R,item:C(C({},e),l)}),ve=R=>{if(K.value)return;const te=se(R);o("click",R),A(te)},T=R=>{K.value||(h(E.value),o("mouseenter",R))},F=R=>{K.value||(h([]),o("mouseleave",R))},z=R=>{if(o("keydown",R),R.which===Me.ENTER){const te=se(R);o("click",R),A(te)}},J=R=>{h(E.value),o("focus",R)},q=(R,te)=>{const ae=s("span",{class:`${c.value}-title-content`},[te]);return(!R||Ot(te)&&te.type==="span")&&te&&O.value&&w&&typeof te=="string"?s("div",{class:`${c.value}-inline-collapsed-noicon`},[te.charAt(0)]):ae},pe=Rn(y(()=>E.value.length));return()=>{var R,te,ae,fe,he;if(a)return null;const $=(R=e.title)!==null&&R!==void 0?R:(te=n.title)===null||te===void 0?void 0:te.call(n),g=Tt((ae=n.default)===null||ae===void 0?void 0:ae.call(n)),P=g.length;let B=$;typeof $>"u"?B=w&&P?g:"":$===!1&&(B="");const Q={title:B};!k.value&&!O.value&&(Q.title=null,Q.open=!1);const ie={};e.role==="option"&&(ie["aria-selected"]=ee.value);const ne=(fe=e.icon)!==null&&fe!==void 0?fe:(he=n.icon)===null||he===void 0?void 0:he.call(n,e);return s(to,D(D({},Q),{},{placement:I.value?"left":"right",overlayClassName:`${c.value}-inline-collapsed-tooltip`}),{default:()=>[s(ot.Item,D(D(D({component:"li"},l),{},{id:e.id,style:C(C({},l.style||{}),pe.value),class:[le.value,{[`${l.class}`]:!!l.class,[`${c.value}-item-only-child`]:(ne?P+1:P)===1}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":r,"aria-disabled":e.disabled},ie),{},{onMouseenter:T,onMouseleave:F,onClick:ve,onKeydown:z,onFocus:J,title:typeof $=="string"?$:void 0}),{default:()=>[qe(typeof ne=="function"?ne(e.originItemValue):ne,{class:`${c.value}-item-icon`},!1),q(ne,g)]})]})}}}),De={adjustX:1,adjustY:1},pl={topLeft:{points:["bl","tl"],overflow:De,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:De,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:De,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:De,offset:[4,0]}},gl={topLeft:{points:["bl","tl"],overflow:De,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:De,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:De,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:De,offset:[4,0]}},bl={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},jt=ce({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:o}=t;const l=V(!1),{getPopupContainer:i,rtl:a,subMenuOpenDelay:r,subMenuCloseDelay:u,builtinPlacements:f,triggerSubMenuAction:v,forceSubMenuRender:c,motion:b,defaultMotions:m,rootClassName:h}=Ee(),I=Pn(),O=y(()=>a.value?C(C({},gl),f.value):C(C({},pl),f.value)),k=y(()=>bl[e.mode]),A=V();de(()=>e.visible,p=>{Ne.cancel(A.value),A.value=Ne(()=>{l.value=p})},{immediate:!0}),Ve(()=>{Ne.cancel(A.value)});const X=p=>{o("visibleChange",p)},Y=y(()=>{var p,w;const x=b.value||((p=m.value)===null||p===void 0?void 0:p[e.mode])||((w=m.value)===null||w===void 0?void 0:w.other),E=typeof x=="function"?x():x;return E?no(E.name,{css:!0}):void 0});return()=>{const{prefixCls:p,popupClassName:w,mode:x,popupOffset:E,disabled:H}=e;return s(cn,{prefixCls:p,popupClassName:_e(`${p}-popup`,{[`${p}-rtl`]:a.value},w,h.value),stretch:x==="horizontal"?"minWidth":null,getPopupContainer:i.value,builtinPlacements:O.value,popupPlacement:k.value,popupVisible:l.value,popupAlign:E&&{offset:E},action:H?[]:[v.value],mouseEnterDelay:r.value,mouseLeaveDelay:u.value,onPopupVisibleChange:X,forceRender:I||c.value,popupAnimation:Y.value},{popup:n.popup,default:n.default})}}}),Kn=(e,t)=>{let{slots:n,attrs:o}=t;var l;const{prefixCls:i,mode:a}=Ee();return s("ul",D(D({},o),{},{class:_e(i.value,`${i.value}-sub`,`${i.value}-${a.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(l=n.default)===null||l===void 0?void 0:l.call(n)])};Kn.displayName="SubMenuList";const Bn=Kn,hl=ce({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t;const o=y(()=>"inline"),{motion:l,mode:i,defaultMotions:a}=Ee(),r=y(()=>i.value===o.value),u=_(!r.value),f=y(()=>r.value?e.open:!1);de(i,()=>{r.value&&(u.value=!1)},{flush:"post"});const v=y(()=>{var c,b;const m=l.value||((c=a.value)===null||c===void 0?void 0:c[o.value])||((b=a.value)===null||b===void 0?void 0:b.other),h=typeof m=="function"?m():m;return C(C({},h),{appear:e.keyPath.length<=1})});return()=>{var c;return u.value?null:s(mt,{mode:o.value},{default:()=>[s($o,v.value,{default:()=>[xo(s(Bn,{id:e.id},{default:()=>[(c=n.default)===null||c===void 0?void 0:c.call(n)]}),[[_o,f.value]])]})]})}}});let Vt=0;const yl=()=>({icon:oe.any,title:oe.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:Le()}),Qe=ce({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:yl(),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:l}=t;var i,a;kn(!1);const r=At(),u=hn(),f=typeof u.vnode.key=="symbol"?String(u.vnode.key):u.vnode.key;je(typeof u.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(f)}"\` not support Symbol type`);const v=Dt(f)?f:`sub_menu_${++Vt}_$$_not_set_key`,c=(i=e.eventKey)!==null&&i!==void 0?i:Dt(f)?`sub_menu_${++Vt}_$$_${f}`:v,{parentEventKeys:b,parentInfo:m,parentKeys:h}=kt(),I=y(()=>[...h.value,v]),O=V([]),k={eventKey:c,key:v,parentEventKeys:b,childrenEventKeys:O,parentKeys:h};(a=m.childrenEventKeys)===null||a===void 0||a.value.push(c),Ve(()=>{var M;m.childrenEventKeys&&(m.childrenEventKeys.value=(M=m.childrenEventKeys)===null||M===void 0?void 0:M.value.filter(W=>W!=c))}),vl(c,v,k);const{prefixCls:A,activeKeys:X,disabled:Y,changeActiveKeys:p,mode:w,inlineCollapsed:x,openKeys:E,overflowDisabled:H,onOpenChange:K,registerMenuInfo:ee,unRegisterMenuInfo:le,selectedSubMenuKeys:se,expandIcon:ve,theme:T}=Ee(),F=f!=null,z=!r&&(Pn()||!F);rl(z),(r&&F||!r&&!F||z)&&(ee(c,k),Ve(()=>{le(c)}));const J=y(()=>`${A.value}-submenu`),q=y(()=>Y.value||e.disabled),pe=V(),R=V(),te=y(()=>E.value.includes(v)),ae=y(()=>!H.value&&te.value),fe=y(()=>se.value.includes(v)),he=V(!1);de(X,()=>{he.value=!!X.value.find(M=>M===v)},{immediate:!0});const $=M=>{q.value||(l("titleClick",M,v),w.value==="inline"&&K(v,!te.value))},g=M=>{q.value||(p(I.value),l("mouseenter",M))},P=M=>{q.value||(p([]),l("mouseleave",M))},B=Rn(y(()=>I.value.length)),Q=M=>{w.value!=="inline"&&K(v,M)},ie=()=>{p(I.value)},ne=c&&`${c}-popup`,S=y(()=>_e(A.value,`${A.value}-${e.theme||T.value}`,e.popupClassName)),ue=(M,W)=>{if(!W)return x.value&&!h.value.length&&M&&typeof M=="string"?s("div",{class:`${A.value}-inline-collapsed-noicon`},[M.charAt(0)]):s("span",{class:`${A.value}-title-content`},[M]);const re=Ot(M)&&M.type==="span";return s(vt,null,[qe(typeof W=="function"?W(e.originItemValue):W,{class:`${A.value}-item-icon`},!1),re?M:s("span",{class:`${A.value}-title-content`},[M])])},ye=y(()=>w.value!=="inline"&&I.value.length>1?"vertical":w.value),Se=y(()=>w.value==="horizontal"?"vertical":w.value),G=y(()=>ye.value==="horizontal"?"vertical":ye.value),L=()=>{var M,W;const re=J.value,me=(M=e.icon)!==null&&M!==void 0?M:(W=n.icon)===null||W===void 0?void 0:W.call(n,e),Ce=e.expandIcon||n.expandIcon||ve.value,ge=ue(vn(n,e,"title"),me);return s("div",{style:B.value,class:`${re}-title`,tabindex:q.value?null:-1,ref:pe,title:typeof ge=="string"?ge:null,"data-menu-id":v,"aria-expanded":ae.value,"aria-haspopup":!0,"aria-controls":ne,"aria-disabled":q.value,onClick:$,onFocus:ie},[ge,w.value!=="horizontal"&&Ce?Ce(C(C({},e),{isOpen:ae.value})):s("i",{class:`${re}-arrow`},null)])};return()=>{var M;if(r)return F?(M=n.default)===null||M===void 0?void 0:M.call(n):null;const W=J.value;let re=()=>null;if(!H.value&&w.value!=="inline"){const me=w.value==="horizontal"?[0,8]:[10,0];re=()=>s(jt,{mode:ye.value,prefixCls:W,visible:!e.internalPopupClose&&ae.value,popupClassName:S.value,popupOffset:e.popupOffset||me,disabled:q.value,onVisibleChange:Q},{default:()=>[L()],popup:()=>s(mt,{mode:G.value},{default:()=>[s(Bn,{id:ne,ref:R},{default:n.default})]})})}else re=()=>s(jt,null,{default:L});return s(mt,{mode:Se.value},{default:()=>[s(ot.Item,D(D({component:"li"},o),{},{role:"none",class:_e(W,`${W}-${w.value}`,o.class,{[`${W}-open`]:ae.value,[`${W}-active`]:he.value,[`${W}-selected`]:fe.value,[`${W}-disabled`]:q.value}),onMouseenter:g,onMouseleave:P,"data-submenu-id":v}),{default:()=>s(vt,null,[re(),!H.value&&s(hl,{id:ne,open:ae.value,keyPath:I.value},{default:n.default})])})]})}}}),$l=()=>({title:oe.any,originItemValue:Le()}),pt=ce({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:$l(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:l}=Ee(),i=y(()=>`${l.value}-item-group`),a=At();return()=>{var r,u;return a?(r=n.default)===null||r===void 0?void 0:r.call(n):s("li",D(D({},o),{},{onClick:f=>f.stopPropagation(),class:i.value}),[s("div",{title:typeof e.title=="string"?e.title:void 0,class:`${i.value}-title`},[vn(n,e,"title")]),s("ul",{class:`${i.value}-list`},[(u=n.default)===null||u===void 0?void 0:u.call(n)])])}}}),xl=()=>({prefixCls:String,dashed:Boolean}),gt=ce({compatConfig:{MODE:3},name:"AMenuDivider",props:xl(),setup(e){const{prefixCls:t}=Ee(),n=y(()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed}));return()=>s("li",{class:n.value},null)}});var _l=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]]);return n};function It(e,t,n){return(e||[]).map((o,l)=>{if(o&&typeof o=="object"){const i=o,{label:a,children:r,key:u,type:f}=i,v=_l(i,["label","children","key","type"]),c=u??`tmp-${l}`,b=n?n.parentKeys.slice():[],m=[],h={eventKey:c,key:c,parentEventKeys:_(b),parentKeys:_(b),childrenEventKeys:_(m),isLeaf:!1};if(r||f==="group"){if(f==="group"){const O=It(r,t,n);return s(pt,D(D({key:c},v),{},{title:a,originItemValue:o}),{default:()=>[O]})}t.set(c,h),n&&n.childrenEventKeys.push(c);const I=It(r,t,{childrenEventKeys:m,parentKeys:[].concat(b,c)});return s(Qe,D(D({key:c},v),{},{title:a,originItemValue:o}),{default:()=>[I]})}return f==="divider"?s(gt,D({key:c},v),null):(h.isLeaf=!0,t.set(c,h),s(Ze,D(D({key:c},v),{},{originItemValue:o}),{default:()=>[a]}))}return null}).filter(o=>o)}function wl(e){const t=V([]),n=V(!1),o=V(new Map);return de(()=>e.items,()=>{const l=new Map;n.value=!1,e.items?(n.value=!0,t.value=It(e.items,l)):t.value=void 0,o.value=l},{immediate:!0,deep:!0}),{itemsNodes:t,store:o,hasItmes:n}}const Sl=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:o,colorSplit:l,lineWidth:i,lineType:a,menuItemPaddingInline:r}=e;return{[`${t}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${i}px ${a} ${l}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:r},[`> ${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"}}}},Cl=Sl,Il=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})`}}}}},Tl=Il,Xt=e=>C({},oo(e)),Ol=(e,t)=>{const{componentCls:n,colorItemText:o,colorItemTextSelected:l,colorGroupTitle:i,colorItemBg:a,colorSubItemBg:r,colorItemBgSelected:u,colorActiveBarHeight:f,colorActiveBarWidth:v,colorActiveBarBorderSize:c,motionDurationSlow:b,motionEaseInOut:m,motionEaseOut:h,menuItemPaddingInline:I,motionDurationMid:O,colorItemTextHover:k,lineType:A,colorSplit:X,colorItemTextDisabled:Y,colorDangerItemText:p,colorDangerItemTextHover:w,colorDangerItemTextSelected:x,colorDangerItemBgActive:E,colorDangerItemBgSelected:H,colorItemBgHover:K,menuSubMenuBg:ee,colorItemTextSelectedHorizontal:le,colorItemBgSelectedHorizontal:se}=e;return{[`${n}-${t}`]:{color:o,background:a,[`&${n}-root:focus-visible`]:C({},Xt(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:l}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${Y} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:k}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:K},"&:active":{backgroundColor:u}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:K},"&:active":{backgroundColor:u}}},[`${n}-item-danger`]:{color:p,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:l,[`&${n}-item-danger`]:{color:x},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:u,[`&${n}-item-danger`]:{backgroundColor:H}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:C({},Xt(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:ee},[`&${n}-popup > ${n}`]:{backgroundColor:a},[`&${n}-horizontal`]:C(C({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:c,marginTop:-c,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:I,bottom:0,borderBottom:`${f}px solid transparent`,transition:`border-color ${b} ${m}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:f,borderBottomColor:le}},"&-selected":{color:le,backgroundColor:se,"&::after":{borderBottomWidth:f,borderBottomColor:le}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${c}px ${A} ${X}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:r},[`${n}-item, ${n}-submenu-title`]:c&&v?{width:`calc(100% + ${c}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${v}px solid ${l}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${O} ${h}`,`opacity ${O} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:x}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${O} ${m}`,`opacity ${O} ${m}`].join(",")}}}}}},Gt=Ol,Ut=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:o,padding:l,menuArrowSize:i,marginXS:a,marginXXS:r}=e,u=l+i+a;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:l,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:r,width:`calc(100% - ${o*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:u}}},Pl=e=>{const{componentCls:t,iconCls:n,menuItemHeight:o,colorTextLightSolid:l,dropdownWidth:i,controlHeightLG:a,motionDurationMid:r,motionEaseOut:u,paddingXL:f,fontSizeSM:v,fontSizeLG:c,motionDurationSlow:b,paddingXS:m,boxShadowSecondary:h}=e,I={height:o,lineHeight:`${o}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":C({[`&${t}-root`]:{boxShadow:"none"}},Ut(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:C(C({},Ut(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${a*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 ${b}`,`background ${b}`,`padding ${r} ${u}`].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`]:I,[`& ${t}-item-group-title`]:{paddingInlineStart:f}},[`${t}-item`]:I}},{[`${t}-inline-collapsed`]:{width:o*2,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:c,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% - ${v}px)`,textOverflow:"clip",[`
            ${t}-submenu-arrow,
            ${t}-submenu-expand-icon
          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:c,lineHeight:`${o}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:l}},[`${t}-item-group-title`]:C(C({},fn),{paddingInline:m})}}]},Ml=Pl,Yt=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:o,motionDurationMid:l,motionEaseInOut:i,motionEaseOut:a,iconCls:r,controlHeightSM:u}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${i}`].join(","),[`${t}-item-icon, ${r}`]:{minWidth:n,fontSize:n,transition:[`font-size ${l} ${a}`,`margin ${o} ${i}`,`color ${o}`].join(","),"+ span":{marginInlineStart:u-n,opacity:1,transition:[`opacity ${o} ${i}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:C({},io()),[`&${t}-item-only-child`]:{[`> ${r}, > ${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"}}}},qt=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:l,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:i*.6,height:i*.15,backgroundColor:"currentcolor",borderRadius:l,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},kl=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:l,motionDurationMid:i,motionEaseInOut:a,lineHeight:r,paddingXS:u,padding:f,colorSplit:v,lineWidth:c,zIndexPopup:b,borderRadiusLG:m,radiusSubMenuItem:h,menuArrowSize:I,menuArrowOffset:O,lineType:k,menuPanelMaskInset:A}=e;return[{"":{[`${n}`]:C(C({},Nt()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:C(C(C(C(C(C(C({},Pt(e)),Nt()),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${l} 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:`${u}px ${f}px`,fontSize:o,lineHeight:r,transition:`all ${l}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${l} ${a}`,`background ${l} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${l} ${a}`,`background ${l} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${l} ${a}`,`padding ${l} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${l}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:v,borderStyle:k,borderWidth:0,borderTopWidth:c,marginBlock:c,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Yt(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${o*2}px ${f}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:b,background:"transparent",borderRadius:m,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${A}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:A},[`> ${n}`]:C(C(C({borderRadius:m},Yt(e)),qt(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${l} ${a}`}})}}),qt(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${O})`},"&::after":{transform:`rotate(45deg) translateX(-${O})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${I*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${O})`},"&::before":{transform:`rotate(45deg) translateX(${O})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Al=(e,t)=>mn("Menu",(o,l)=>{let{overrideComponentToken:i}=l;if((t==null?void 0:t.value)===!1)return[];const{colorBgElevated:a,colorPrimary:r,colorError:u,colorErrorHover:f,colorTextLightSolid:v}=o,{controlHeightLG:c,fontSize:b}=o,m=b/7*5,h=wt(o,{menuItemHeight:c,menuItemPaddingInline:o.margin,menuArrowSize:m,menuHorizontalHeight:c*1.15,menuArrowOffset:`${m*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:a}),I=new Lt(v).setAlpha(.65).toRgbString(),O=wt(h,{colorItemText:I,colorItemTextHover:v,colorGroupTitle:I,colorItemTextSelected:v,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:r,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new Lt(v).setAlpha(.25).toRgbString(),colorDangerItemText:u,colorDangerItemTextHover:f,colorDangerItemTextSelected:v,colorDangerItemBgActive:u,colorDangerItemBgSelected:u,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:v,colorItemBgSelectedHorizontal:r},C({},i));return[kl(h),Cl(h),Ml(h),Gt(h,"light"),Gt(O,"dark"),Tl(h),lo(h),ft(h,"slide-up"),ft(h,"slide-down"),ao(h,"zoom-big")]},o=>{const{colorPrimary:l,colorError:i,colorTextDisabled:a,colorErrorBg:r,colorText:u,colorTextDescription:f,colorBgContainer:v,colorFillAlter:c,colorFillContent:b,lineWidth:m,lineWidthBold:h,controlItemBgActive:I,colorBgTextHover:O}=o;return{dropdownWidth:160,zIndexPopup:o.zIndexPopupBase+50,radiusItem:o.borderRadiusLG,radiusSubMenuItem:o.borderRadiusSM,colorItemText:u,colorItemTextHover:u,colorItemTextHoverHorizontal:l,colorGroupTitle:f,colorItemTextSelected:l,colorItemTextSelectedHorizontal:l,colorItemBg:v,colorItemBgHover:O,colorItemBgActive:b,colorSubItemBg:c,colorItemBgSelected:I,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:h,colorActiveBarBorderSize:m,colorItemTextDisabled:a,colorDangerItemText:i,colorDangerItemTextHover:i,colorDangerItemTextSelected:i,colorDangerItemBgActive:r,colorDangerItemBgSelected:r,itemMarginInline:o.marginXXS}})(e),El=()=>({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}),Zt=[],ze=ce({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:El(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:l}=t;const{direction:i,getPrefixCls:a}=pn("menu",e),r=Cn(),u=y(()=>{var $;return a("menu",e.prefixCls||(($=r==null?void 0:r.prefixCls)===null||$===void 0?void 0:$.value))}),[f,v]=Al(u,y(()=>!r)),c=V(new Map),b=Ae(cl,_(void 0)),m=y(()=>b.value!==void 0?b.value:e.inlineCollapsed),{itemsNodes:h}=wl(e),I=V(!1);at(()=>{I.value=!0}),Fe(()=>{je(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),je(!(b.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});const O=_([]),k=_([]),A=_({});de(c,()=>{const $={};for(const g of c.value.values())$[g.key]=g;A.value=$},{flush:"post"}),Fe(()=>{if(e.activeKey!==void 0){let $=[];const g=e.activeKey?A.value[e.activeKey]:void 0;g&&e.activeKey!==void 0?$=_t([].concat(nt(g.parentKeys),e.activeKey)):$=[],tt(O.value,$)||(O.value=$)}}),de(()=>e.selectedKeys,$=>{$&&(k.value=$.slice())},{immediate:!0,deep:!0});const X=_([]);de([A,k],()=>{let $=[];k.value.forEach(g=>{const P=A.value[g];P&&($=$.concat(nt(P.parentKeys)))}),$=_t($),tt(X.value,$)||(X.value=$)},{immediate:!0});const Y=$=>{if(e.selectable){const{key:g}=$,P=k.value.includes(g);let B;e.multiple?P?B=k.value.filter(ie=>ie!==g):B=[...k.value,g]:B=[g];const Q=C(C({},$),{selectedKeys:B});tt(B,k.value)||(e.selectedKeys===void 0&&(k.value=B),o("update:selectedKeys",B),P&&e.multiple?o("deselect",Q):o("select",Q))}K.value!=="inline"&&!e.multiple&&p.value.length&&se(Zt)},p=_([]);de(()=>e.openKeys,function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.value;tt(p.value,$)||(p.value=$.slice())},{immediate:!0,deep:!0});let w;const x=$=>{clearTimeout(w),w=setTimeout(()=>{e.activeKey===void 0&&(O.value=$),o("update:activeKey",$[$.length-1])})},E=y(()=>!!e.disabled),H=y(()=>i.value==="rtl"),K=_("vertical"),ee=V(!1);Fe(()=>{var $;(e.mode==="inline"||e.mode==="vertical")&&m.value?(K.value="vertical",ee.value=m.value):(K.value=e.mode,ee.value=!1),!(($=r==null?void 0:r.mode)===null||$===void 0)&&$.value&&(K.value=r.mode.value)});const le=y(()=>K.value==="inline"),se=$=>{p.value=$,o("update:openKeys",$),o("openChange",$)},ve=_(p.value),T=V(!1);de(p,()=>{le.value&&(ve.value=p.value)},{immediate:!0}),de(le,()=>{if(!T.value){T.value=!0;return}le.value?p.value=ve.value:se(Zt)},{immediate:!0});const F=y(()=>({[`${u.value}`]:!0,[`${u.value}-root`]:!0,[`${u.value}-${K.value}`]:!0,[`${u.value}-inline-collapsed`]:ee.value,[`${u.value}-rtl`]:H.value,[`${u.value}-${e.theme}`]:!0})),z=y(()=>a()),J=y(()=>({horizontal:{name:`${z.value}-slide-up`},inline:ro,other:{name:`${z.value}-zoom-big`}}));kn(!0);const q=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const g=[],P=c.value;return $.forEach(B=>{const{key:Q,childrenEventKeys:ie}=P.get(B);g.push(Q,...q(nt(ie)))}),g},pe=$=>{var g;o("click",$),Y($),(g=r==null?void 0:r.onClick)===null||g===void 0||g.call(r)},R=($,g)=>{var P;const B=((P=A.value[$])===null||P===void 0?void 0:P.childrenEventKeys)||[];let Q=p.value.filter(ie=>ie!==$);if(g)Q.push($);else if(K.value!=="inline"){const ie=q(nt(B));Q=_t(Q.filter(ne=>!ie.includes(ne)))}tt(p,Q)||se(Q)},te=($,g)=>{c.value.set($,g),c.value=new Map(c.value)},ae=$=>{c.value.delete($),c.value=new Map(c.value)},fe=_(0),he=y(()=>{var $;return e.expandIcon||n.expandIcon||!(($=r==null?void 0:r.expandIcon)===null||$===void 0)&&$.value?g=>{let P=e.expandIcon||n.expandIcon;return P=typeof P=="function"?P(g):P,qe(P,{class:`${u.value}-submenu-expand-icon`},!1)}:null});return ul({prefixCls:u,activeKeys:O,openKeys:p,selectedKeys:k,changeActiveKeys:x,disabled:E,rtl:H,mode:K,inlineIndent:y(()=>e.inlineIndent),subMenuCloseDelay:y(()=>e.subMenuCloseDelay),subMenuOpenDelay:y(()=>e.subMenuOpenDelay),builtinPlacements:y(()=>e.builtinPlacements),triggerSubMenuAction:y(()=>e.triggerSubMenuAction),getPopupContainer:y(()=>e.getPopupContainer),inlineCollapsed:ee,theme:y(()=>e.theme),siderCollapsed:b,defaultMotions:y(()=>I.value?J.value:null),motion:y(()=>I.value?e.motion:null),overflowDisabled:V(void 0),onOpenChange:R,onItemClick:pe,registerMenuInfo:te,unRegisterMenuInfo:ae,selectedSubMenuKeys:X,expandIcon:he,forceSubMenuRender:y(()=>e.forceSubMenuRender),rootClassName:v}),()=>{var $,g;const P=h.value||Tt(($=n.default)===null||$===void 0?void 0:$.call(n)),B=fe.value>=P.length-1||K.value!=="horizontal"||e.disabledOverflow,Q=K.value!=="horizontal"||e.disabledOverflow?P:P.map((ne,S)=>s(mt,{key:ne.key,overflowDisabled:S>fe.value},{default:()=>ne})),ie=((g=n.overflowedIndicator)===null||g===void 0?void 0:g.call(n))||s(wn,null,null);return f(s(ot,D(D({},l),{},{onMousedown:e.onMousedown,prefixCls:`${u.value}-overflow`,component:"ul",itemComponent:Ze,class:[F.value,l.class,v.value],role:"menu",id:e.id,data:Q,renderRawItem:ne=>ne,renderRawRest:ne=>{const S=ne.length,ue=S?P.slice(-S):null;return s(vt,null,[s(Qe,{eventKey:st,key:st,title:ie,disabled:B,internalPopupClose:S===0},{default:()=>ue}),s(Ht,null,{default:()=>[s(Qe,{eventKey:st,key:st,title:ie,disabled:B,internalPopupClose:S===0},{default:()=>ue})]})])},maxCount:K.value!=="horizontal"||e.disabledOverflow?ot.INVALIDATE:ot.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:ne=>{fe.value=ne}}),{default:()=>[s(wo,{to:"body"},{default:()=>[s("div",{style:{display:"none"},"aria-hidden":!0},[s(Ht,null,{default:()=>[Q]})])]})]}))}}});ze.install=function(e){return e.component(ze.name,ze),e.component(Ze.name,Ze),e.component(Qe.name,Qe),e.component(gt.name,gt),e.component(pt.name,pt),e};ze.Item=Ze;ze.Divider=gt;ze.SubMenu=Qe;ze.ItemGroup=pt;function Rl(e){const t=V(),n=V(!1);function o(){for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];n.value||(Ne.cancel(t.value),t.value=Ne(()=>{e(...i)}))}return Ve(()=>{n.value=!0,Ne.cancel(t.value)}),o}function Kl(e){const t=V([]),n=V(typeof e=="function"?e():e),o=Rl(()=>{let i=n.value;t.value.forEach(a=>{i=a(i)}),t.value=[],n.value=i});function l(i){t.value.push(i),o()}return[n,l]}const Bl=ce({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:o}=t;const l=_();function i(u){var f;!((f=e.tab)===null||f===void 0)&&f.disabled||e.onClick(u)}n({domRef:l});function a(u){var f;u.preventDefault(),u.stopPropagation(),e.editable.onEdit("remove",{key:(f=e.tab)===null||f===void 0?void 0:f.key,event:u})}const r=y(()=>{var u;return e.editable&&e.closable!==!1&&!(!((u=e.tab)===null||u===void 0)&&u.disabled)});return()=>{var u;const{prefixCls:f,id:v,active:c,tab:{key:b,tab:m,disabled:h,closeIcon:I},renderWrapper:O,removeAriaLabel:k,editable:A,onFocus:X}=e,Y=`${f}-tab`,p=s("div",{key:b,ref:l,class:_e(Y,{[`${Y}-with-remove`]:r.value,[`${Y}-active`]:c,[`${Y}-disabled`]:h}),style:o.style,onClick:i},[s("div",{role:"tab","aria-selected":c,id:v&&`${v}-tab-${b}`,class:`${Y}-btn`,"aria-controls":v&&`${v}-panel-${b}`,"aria-disabled":h,tabindex:h?null:0,onClick:w=>{w.stopPropagation(),i(w)},onKeydown:w=>{[Me.SPACE,Me.ENTER].includes(w.which)&&(w.preventDefault(),i(w))},onFocus:X},[typeof m=="function"?m():m]),r.value&&s("button",{type:"button","aria-label":k||"remove",tabindex:0,class:`${Y}-remove`,onClick:w=>{w.stopPropagation(),a(w)}},[(I==null?void 0:I())||((u=A.removeIcon)===null||u===void 0?void 0:u.call(A))||"×"])]);return O?O(p):p}}}),Qt={width:0,height:0,left:0,top:0};function Dl(e,t){const n=_(new Map);return Fe(()=>{var o,l;const i=new Map,a=e.value,r=t.value.get((o=a[0])===null||o===void 0?void 0:o.key)||Qt,u=r.left+r.width;for(let f=0;f<a.length;f+=1){const{key:v}=a[f];let c=t.value.get(v);c||(c=t.value.get((l=a[f-1])===null||l===void 0?void 0:l.key)||Qt);const b=i.get(v)||C({},c);b.right=u-b.left-b.width,i.set(v,b)}n.value=new Map(i)}),n}const Dn=ce({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup(e,t){let{expose:n,attrs:o}=t;const l=_();return n({domRef:l}),()=>{const{prefixCls:i,editable:a,locale:r}=e;return!a||a.showAdd===!1?null:s("button",{ref:l,type:"button",class:`${i}-nav-add`,style:o.style,"aria-label":(r==null?void 0:r.addAriaLabel)||"Add tab",onClick:u=>{a.onEdit("add",{event:u})}},[a.addIcon?a.addIcon():"+"])}}}),Ll={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:oe.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:Pe()},Nl=ce({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:Ll,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const[l,i]=xe(!1),[a,r]=xe(null),u=m=>{const h=e.tabs.filter(k=>!k.disabled);let I=h.findIndex(k=>k.key===a.value)||0;const O=h.length;for(let k=0;k<O;k+=1){I=(I+m+O)%O;const A=h[I];if(!A.disabled){r(A.key);return}}},f=m=>{const{which:h}=m;if(!l.value){[Me.DOWN,Me.SPACE,Me.ENTER].includes(h)&&(i(!0),m.preventDefault());return}switch(h){case Me.UP:u(-1),m.preventDefault();break;case Me.DOWN:u(1),m.preventDefault();break;case Me.ESC:i(!1);break;case Me.SPACE:case Me.ENTER:a.value!==null&&e.onTabClick(a.value,m);break}},v=y(()=>`${e.id}-more-popup`),c=y(()=>a.value!==null?`${v.value}-${a.value}`:null),b=(m,h)=>{m.preventDefault(),m.stopPropagation(),e.editable.onEdit("remove",{key:h,event:m})};return at(()=>{de(a,()=>{const m=document.getElementById(c.value);m&&m.scrollIntoView&&m.scrollIntoView(!1)},{flush:"post",immediate:!0})}),de(l,()=>{l.value||r(null)}),al({}),()=>{var m;const{prefixCls:h,id:I,tabs:O,locale:k,mobile:A,moreIcon:X=((m=o.moreIcon)===null||m===void 0?void 0:m.call(o))||s(wn,null,null),moreTransitionName:Y,editable:p,tabBarGutter:w,rtl:x,onTabClick:E,popupClassName:H}=e;if(!O.length)return null;const K=`${h}-dropdown`,ee=k==null?void 0:k.dropdownAriaLabel,le={[x?"marginRight":"marginLeft"]:w};O.length||(le.visibility="hidden",le.order=1);const se=_e({[`${K}-rtl`]:x,[`${H}`]:!0}),ve=A?null:s(tl,{prefixCls:K,trigger:["hover"],visible:l.value,transitionName:Y,onVisibleChange:i,overlayClassName:se,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>s(ze,{onClick:T=>{let{key:F,domEvent:z}=T;E(F,z),i(!1)},id:v.value,tabindex:-1,role:"listbox","aria-activedescendant":c.value,selectedKeys:[a.value],"aria-label":ee!==void 0?ee:"expanded dropdown"},{default:()=>[O.map(T=>{var F,z;const J=p&&T.closable!==!1&&!T.disabled;return s(Ze,{key:T.key,id:`${v.value}-${T.key}`,role:"option","aria-controls":I&&`${I}-panel-${T.key}`,disabled:T.disabled},{default:()=>[s("span",null,[typeof T.tab=="function"?T.tab():T.tab]),J&&s("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${K}-menu-item-remove`,onClick:q=>{q.stopPropagation(),b(q,T.key)}},[((F=T.closeIcon)===null||F===void 0?void 0:F.call(T))||((z=p.removeIcon)===null||z===void 0?void 0:z.call(p))||"×"])]})})]}),default:()=>s("button",{type:"button",class:`${h}-nav-more`,style:le,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":v.value,id:`${I}-more`,"aria-expanded":l.value,onKeydown:f},[X])});return s("div",{class:_e(`${h}-nav-operations`,n.class),style:n.style},[ve,s(Dn,{prefixCls:h,locale:k,editable:p},null)])}}}),Ln=Symbol("tabsContextKey"),Fl=e=>{He(Ln,e)},Nn=()=>Ae(Ln,{tabs:_([]),prefixCls:_()}),zl=.1,Jt=.01,ct=20,en=Math.pow(.995,ct);function Wl(e,t){const[n,o]=xe(),[l,i]=xe(0),[a,r]=xe(0),[u,f]=xe(),v=_();function c(p){const{screenX:w,screenY:x}=p.touches[0];o({x:w,y:x}),clearInterval(v.value)}function b(p){if(!n.value)return;p.preventDefault();const{screenX:w,screenY:x}=p.touches[0],E=w-n.value.x,H=x-n.value.y;t(E,H),o({x:w,y:x});const K=Date.now();r(K-l.value),i(K),f({x:E,y:H})}function m(){if(!n.value)return;const p=u.value;if(o(null),f(null),p){const w=p.x/a.value,x=p.y/a.value,E=Math.abs(w),H=Math.abs(x);if(Math.max(E,H)<zl)return;let K=w,ee=x;v.value=setInterval(()=>{if(Math.abs(K)<Jt&&Math.abs(ee)<Jt){clearInterval(v.value);return}K*=en,ee*=en,t(K*ct,ee*ct)},ct)}}const h=_();function I(p){const{deltaX:w,deltaY:x}=p;let E=0;const H=Math.abs(w),K=Math.abs(x);H===K?E=h.value==="x"?w:x:H>K?(E=w,h.value="x"):(E=x,h.value="y"),t(-E,-E)&&p.preventDefault()}const O=_({onTouchStart:c,onTouchMove:b,onTouchEnd:m,onWheel:I});function k(p){O.value.onTouchStart(p)}function A(p){O.value.onTouchMove(p)}function X(p){O.value.onTouchEnd(p)}function Y(p){O.value.onWheel(p)}at(()=>{var p,w;document.addEventListener("touchmove",A,{passive:!1}),document.addEventListener("touchend",X,{passive:!1}),(p=e.value)===null||p===void 0||p.addEventListener("touchstart",k,{passive:!1}),(w=e.value)===null||w===void 0||w.addEventListener("wheel",Y,{passive:!1})}),Ve(()=>{document.removeEventListener("touchmove",A),document.removeEventListener("touchend",X)})}function tn(e,t){const n=_(e);function o(l){const i=typeof l=="function"?l(n.value):l;i!==n.value&&t(i,n.value),n.value=i}return[n,o]}const Hl=()=>{const e=_(new Map),t=n=>o=>{e.value.set(n,o)};return So(()=>{e.value=new Map}),[t,e]},jl=Hl,nn={width:0,height:0,left:0,top:0,right:0},Vl=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:Le(),editable:Le(),moreIcon:oe.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:Le(),popupClassName:String,getPopupContainer:Pe(),onTabClick:{type:Function},onTabScroll:{type:Function}}),on=ce({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:Vl(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:n,slots:o}=t;const{tabs:l,prefixCls:i}=Nn(),a=V(),r=V(),u=V(),f=V(),[v,c]=jl(),b=y(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[m,h]=tn(0,(G,L)=>{b.value&&e.onTabScroll&&e.onTabScroll({direction:G>L?"left":"right"})}),[I,O]=tn(0,(G,L)=>{!b.value&&e.onTabScroll&&e.onTabScroll({direction:G>L?"top":"bottom"})}),[k,A]=xe(0),[X,Y]=xe(0),[p,w]=xe(null),[x,E]=xe(null),[H,K]=xe(0),[ee,le]=xe(0),[se,ve]=Kl(new Map),T=Dl(l,se),F=y(()=>`${i.value}-nav-operations-hidden`),z=V(0),J=V(0);Fe(()=>{b.value?e.rtl?(z.value=0,J.value=Math.max(0,k.value-p.value)):(z.value=Math.min(0,p.value-k.value),J.value=0):(z.value=Math.min(0,x.value-X.value),J.value=0)});const q=G=>G<z.value?z.value:G>J.value?J.value:G,pe=V(),[R,te]=xe(),ae=()=>{te(Date.now())},fe=()=>{clearTimeout(pe.value)},he=(G,L)=>{G(M=>q(M+L))};Wl(a,(G,L)=>{if(b.value){if(p.value>=k.value)return!1;he(h,G)}else{if(x.value>=X.value)return!1;he(O,L)}return fe(),ae(),!0}),de(R,()=>{fe(),R.value&&(pe.value=setTimeout(()=>{te(0)},100))});const $=function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const L=T.value.get(G)||{width:0,height:0,left:0,right:0,top:0};if(b.value){let M=m.value;e.rtl?L.right<m.value?M=L.right:L.right+L.width>m.value+p.value&&(M=L.right+L.width-p.value):L.left<-m.value?M=-L.left:L.left+L.width>-m.value+p.value&&(M=-(L.left+L.width-p.value)),O(0),h(q(M))}else{let M=I.value;L.top<-I.value?M=-L.top:L.top+L.height>-I.value+x.value&&(M=-(L.top+L.height-x.value)),h(0),O(q(M))}},g=V(0),P=V(0);Fe(()=>{let G,L,M,W,re,me;const Ce=T.value;["top","bottom"].includes(e.tabPosition)?(G="width",W=p.value,re=k.value,me=H.value,L=e.rtl?"right":"left",M=Math.abs(m.value)):(G="height",W=x.value,re=k.value,me=ee.value,L="top",M=-I.value);let ge=W;re+me>W&&re<W&&(ge=W-me);const Ie=l.value;if(!Ie.length)return[g.value,P.value]=[0,0];const ke=Ie.length;let Re=ke;for(let we=0;we<ke;we+=1){const Te=Ce.get(Ie[we].key)||nn;if(Te[L]+Te[G]>M+ge){Re=we-1;break}}let be=0;for(let we=ke-1;we>=0;we-=1)if((Ce.get(Ie[we].key)||nn)[L]<M){be=we+1;break}return[g.value,P.value]=[be,Re]});const B=()=>{var G,L,M,W,re;const me=((G=a.value)===null||G===void 0?void 0:G.offsetWidth)||0,Ce=((L=a.value)===null||L===void 0?void 0:L.offsetHeight)||0,ge=((M=f.value)===null||M===void 0?void 0:M.$el)||{},Ie=ge.offsetWidth||0,ke=ge.offsetHeight||0;w(me),E(Ce),K(Ie),le(ke);const Re=(((W=r.value)===null||W===void 0?void 0:W.offsetWidth)||0)-Ie,be=(((re=r.value)===null||re===void 0?void 0:re.offsetHeight)||0)-ke;A(Re),Y(be),ve(()=>{const we=new Map;return l.value.forEach(Te=>{let{key:Xe}=Te;const Ke=c.value.get(Xe),Be=(Ke==null?void 0:Ke.$el)||Ke;Be&&we.set(Xe,{width:Be.offsetWidth,height:Be.offsetHeight,left:Be.offsetLeft,top:Be.offsetTop})}),we})},Q=y(()=>[...l.value.slice(0,g.value),...l.value.slice(P.value+1)]),[ie,ne]=xe(),S=y(()=>T.value.get(e.activeKey)),ue=V(),ye=()=>{Ne.cancel(ue.value)};de([S,b,()=>e.rtl],()=>{const G={};S.value&&(b.value?(e.rtl?G.right=et(S.value.right):G.left=et(S.value.left),G.width=et(S.value.width)):(G.top=et(S.value.top),G.height=et(S.value.height))),ye(),ue.value=Ne(()=>{ne(G)})}),de([()=>e.activeKey,S,T,b],()=>{$()},{flush:"post"}),de([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>l.value],()=>{B()},{flush:"post"});const Se=G=>{let{position:L,prefixCls:M,extra:W}=G;if(!W)return null;const re=W==null?void 0:W({position:L});return re?s("div",{class:`${M}-extra-content`},[re]):null};return Ve(()=>{fe(),ye()}),()=>{const{id:G,animated:L,activeKey:M,rtl:W,editable:re,locale:me,tabPosition:Ce,tabBarGutter:ge,onTabClick:Ie}=e,{class:ke,style:Re}=n,be=i.value,we=!!Q.value.length,Te=`${be}-nav-wrap`;let Xe,Ke,Be,Rt;b.value?W?(Ke=m.value>0,Xe=m.value+p.value<k.value):(Xe=m.value<0,Ke=-m.value+p.value<k.value):(Be=I.value<0,Rt=-I.value+x.value<X.value);const it={};Ce==="top"||Ce==="bottom"?it[W?"marginRight":"marginLeft"]=typeof ge=="number"?`${ge}px`:ge:it.marginTop=typeof ge=="number"?`${ge}px`:ge;const Kt=l.value.map((yt,zn)=>{const{key:Je}=yt;return s(Bl,{id:G,prefixCls:be,key:Je,tab:yt,style:zn===0?void 0:it,closable:yt.closable,editable:re,active:Je===M,removeAriaLabel:me==null?void 0:me.removeAriaLabel,ref:v(Je),onClick:Wn=>{Ie(Je,Wn)},onFocus:()=>{$(Je),ae(),a.value&&(W||(a.value.scrollLeft=0),a.value.scrollTop=0)}},o)});return s("div",{role:"tablist",class:_e(`${be}-nav`,ke),style:Re,onKeydown:()=>{ae()}},[s(Se,{position:"left",prefixCls:be,extra:o.leftExtra},null),s(dt,{onResize:B},{default:()=>[s("div",{class:_e(Te,{[`${Te}-ping-left`]:Xe,[`${Te}-ping-right`]:Ke,[`${Te}-ping-top`]:Be,[`${Te}-ping-bottom`]:Rt}),ref:a},[s(dt,{onResize:B},{default:()=>[s("div",{ref:r,class:`${be}-nav-list`,style:{transform:`translate(${m.value}px, ${I.value}px)`,transition:R.value?"none":void 0}},[Kt,s(Dn,{ref:f,prefixCls:be,locale:me,editable:re,style:C(C({},Kt.length===0?void 0:it),{visibility:we?"hidden":null})},null),s("div",{class:_e(`${be}-ink-bar`,{[`${be}-ink-bar-animated`]:L.inkBar}),style:ie.value},null)])]})])]}),s(Nl,D(D({},e),{},{removeAriaLabel:me==null?void 0:me.removeAriaLabel,ref:u,prefixCls:be,tabs:Q.value,class:!we&&F.value}),_n(o,["moreIcon"])),s(Se,{position:"right",prefixCls:be,extra:o.rightExtra},null),s(Se,{position:"right",prefixCls:be,extra:o.tabBarExtraContent},null)])}}}),Xl=ce({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}=Nn();return()=>{const{id:o,activeKey:l,animated:i,tabPosition:a,rtl:r,destroyInactiveTabPane:u}=e,f=i.tabPane,v=n.value,c=t.value.findIndex(b=>b.key===l);return s("div",{class:`${v}-content-holder`},[s("div",{class:[`${v}-content`,`${v}-content-${a}`,{[`${v}-content-animated`]:f}],style:c&&f?{[r?"marginRight":"marginLeft"]:`-${c}00%`}:null},[t.value.map(b=>qe(b.node,{key:b.key,prefixCls:v,tabKey:b.key,id:o,animated:f,active:b.key===l,destroyInactiveTabPane:u}))])])}}});var Gl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const Ul=Gl;function ln(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){Yl(e,l,n[l])})}return e}function Yl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Et=function(t,n){var o=ln({},t,n.attrs);return s(dn,ln({},o,{icon:Ul}),null)};Et.displayName="PlusOutlined";Et.inheritAttrs=!1;const ql=Et,Zl=e=>{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}`}}}}},[ft(e,"slide-up"),ft(e,"slide-down")]]},Ql=Zl,Jl=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:o,tabsCardGutter:l,colorSplit:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${e.lineWidth}px ${e.lineType} ${i}`,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:`${l}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:`${l}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}}}}}}},ea=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:C(C({},Pt(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:`${o}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":C(C({},fn),{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"}}})}})}},ta=e=>{const{componentCls:t,margin:n,colorSplit:o}=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} ${o}`,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}}}}}},na=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`}}}}}},oa=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:o,iconCls:l,tabsHorizontalGutter:i}=e,a=`${t}-tab`;return{[a]:{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":C({"&:focus:not(:focus-visible), &:active":{color:n}},gn(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:o},[`&${a}-active ${a}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${a}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${a}-disabled ${a}-btn, &${a}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${a}-remove ${l}`]:{margin:0},[l]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${a} + ${a}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${i}px`}}}},la=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:o,tabsCardGutter:l}=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}},[o]:{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`},[o]:{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:`${l}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},aa=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:o,tabsCardGutter:l,tabsHoverColor:i,tabsActiveColor:a,colorSplit:r}=e;return{[t]:C(C(C(C({},Pt(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`]:C({minWidth:`${o}px`,marginLeft:{_skip_check_:!0,value:`${l}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${r}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},gn(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),oa(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%","&-animated":{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},ia=mn("Tabs",e=>{const t=e.controlHeightLG,n=wt(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[na(n),la(n),ta(n),ea(n),Jl(n),aa(n),Ql(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let an=0;const Fn=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:Pe(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:rt(),animated:uo([Boolean,Object]),renderTabBar:Pe(),tabBarGutter:{type:Number},tabBarStyle:Le(),tabPosition:rt(),destroyInactiveTabPane:co(),hideAdd:Boolean,type:rt(),size:rt(),centered:Boolean,onEdit:Pe(),onChange:Pe(),onTabClick:Pe(),onTabScroll:Pe(),"onUpdate:activeKey":Pe(),locale:Le(),onPrevClick:Pe(),onNextClick:Pe(),tabBarExtraContent:oe.any});function ra(e){return e.map(t=>{if(Ot(t)){const n=C({},t.props||{});for(const[b,m]of Object.entries(n))delete n[b],n[vo(b)]=m;const o=t.children||{},l=t.key!==void 0?t.key:void 0,{tab:i=o.tab,disabled:a,forceRender:r,closable:u,animated:f,active:v,destroyInactiveTabPane:c}=n;return C(C({key:l},n),{node:t,closeIcon:o.closeIcon,tab:i,disabled:a===""||a,forceRender:r===""||r,closable:u===""||u,animated:f===""||f,active:v===""||v,destroyInactiveTabPane:c===""||c})}return null}).filter(t=>t)}const sa=ce({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:C(C({},bn(Fn(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:fo()}),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;je(e.onPrevClick===void 0&&e.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),je(e.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),je(o.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:l,direction:i,size:a,rootPrefixCls:r,getPopupContainer:u}=pn("tabs",e),[f,v]=ia(l),c=y(()=>i.value==="rtl"),b=y(()=>{const{animated:x,tabPosition:E}=e;return x===!1||["left","right"].includes(E)?{inkBar:!1,tabPane:!1}:x===!0?{inkBar:!0,tabPane:!0}:C({inkBar:!0,tabPane:!1},typeof x=="object"?x:{})}),[m,h]=xe(!1);at(()=>{h(mo())});const[I,O]=zt(()=>{var x;return(x=e.tabs[0])===null||x===void 0?void 0:x.key},{value:y(()=>e.activeKey),defaultValue:e.defaultActiveKey}),[k,A]=xe(()=>e.tabs.findIndex(x=>x.key===I.value));Fe(()=>{var x;let E=e.tabs.findIndex(H=>H.key===I.value);E===-1&&(E=Math.max(0,Math.min(k.value,e.tabs.length-1)),O((x=e.tabs[E])===null||x===void 0?void 0:x.key)),A(E)});const[X,Y]=zt(null,{value:y(()=>e.id)}),p=y(()=>m.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition);at(()=>{e.id||(Y(`rc-tabs-${an}`),an+=1)});const w=(x,E)=>{var H,K;(H=e.onTabClick)===null||H===void 0||H.call(e,x,E);const ee=x!==I.value;O(x),ee&&((K=e.onChange)===null||K===void 0||K.call(e,x))};return Fl({tabs:y(()=>e.tabs),prefixCls:l}),()=>{const{id:x,type:E,tabBarGutter:H,tabBarStyle:K,locale:ee,destroyInactiveTabPane:le,renderTabBar:se=o.renderTabBar,onTabScroll:ve,hideAdd:T,centered:F}=e,z={id:X.value,activeKey:I.value,animated:b.value,tabPosition:p.value,rtl:c.value,mobile:m.value};let J;E==="editable-card"&&(J={onEdit:(te,ae)=>{let{key:fe,event:he}=ae;var $;($=e.onEdit)===null||$===void 0||$.call(e,te==="add"?he:fe,te)},removeIcon:()=>s(po,null,null),addIcon:o.addIcon?o.addIcon:()=>s(ql,null,null),showAdd:T!==!0});let q;const pe=C(C({},z),{moreTransitionName:`${r.value}-slide-up`,editable:J,locale:ee,tabBarGutter:H,onTabClick:w,onTabScroll:ve,style:K,getPopupContainer:u.value,popupClassName:_e(e.popupClassName,v.value)});se?q=se(C(C({},pe),{DefaultTabBar:on})):q=s(on,pe,_n(o,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const R=l.value;return f(s("div",D(D({},n),{},{id:x,class:_e(R,`${R}-${p.value}`,{[v.value]:!0,[`${R}-${a.value}`]:a.value,[`${R}-card`]:["card","editable-card"].includes(E),[`${R}-editable-card`]:E==="editable-card",[`${R}-centered`]:F,[`${R}-mobile`]:m.value,[`${R}-editable`]:E==="editable-card",[`${R}-rtl`]:c.value},n.class)}),[q,s(Xl,D(D({destroyInactiveTabPane:le},z),{},{animated:b.value}),null)]))}}}),lt=ce({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:bn(Fn(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:l}=t;const i=a=>{l("update:activeKey",a),l("change",a)};return()=>{var a;const r=ra(Tt((a=o.default)===null||a===void 0?void 0:a.call(o)));return s(sa,D(D(D({},so(e,["onUpdate:activeKey"])),n),{},{onChange:i,tabs:r}),o)}}}),ua=()=>({tab:oe.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}}),bt=ce({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:ua(),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const l=_(e.forceRender);de([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?l.value=!0:e.destroyInactiveTabPane&&(l.value=!1)},{immediate:!0});const i=y(()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var a;const{prefixCls:r,forceRender:u,id:f,active:v,tabKey:c}=e;return s("div",{id:f&&`${f}-panel-${c}`,role:"tabpanel",tabindex:v?0:-1,"aria-labelledby":f&&`${f}-tab-${c}`,"aria-hidden":!v,style:[i.value,n.style],class:[`${r}-tabpane`,v&&`${r}-tabpane-active`,n.class]},[(v||l.value||u)&&((a=o.default)===null||a===void 0?void 0:a.call(o))])}}});lt.TabPane=bt;lt.install=function(e){return e.component(lt.name,lt),e.component(bt.name,bt),e};function ca(e,t){let n,o,l;try{n=e.toString().split(".")[1].length}catch{n=0}try{o=t.toString().split(".")[1].length}catch{o=0}return l=Math.pow(10,Math.max(n,o)),(e*l+t*l)/l}function Z(e,t){let n=0,o=e.toString(),l=t.toString();try{n+=o.split(".")[1].length}catch{}try{n+=l.split(".")[1].length}catch{}return Number(o.replace(".",""))*Number(l.replace(".",""))/Math.pow(10,n)}function U(e,t){let n=0,o=0,l,i;try{n=e.toString().split(".")[1].length}catch{}try{o=t.toString().split(".")[1].length}catch{}if(Math)return l=Number(e.toString().replace(".","")),i=Number(t.toString().replace(".","")),l/i*Math.pow(10,o-n)}function Oe(e,t){return Number(e.toFixed(t))}const da={class:"border-gray-200 w-[90%] m-auto sm:w-[800px] relative pb-12"},va={class:"p-2 mb-4 bg-gray-100 rounded-lg shadow-sm"},fa=d("h3",{class:"pl-2 font-bold my-3 text-[16px]"}," 基础数据 ",-1),ma={class:"flex flex-wrap"},pa={class:"flex items-center w-full md:w-1/2"},ga=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"锂片密度",-1),ba={class:"flex items-center w-full md:w-1/2"},ha=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"直径",-1),ya={class:"flex flex-wrap"},$a={class:"flex items-center w-full md:w-1/2"},xa=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"厚度",-1),_a={class:"p-2 mb-4 bg-gray-100 rounded-lg shadow-sm"},wa=d("h3",{class:"pl-2 font-bold my-3 text-[16px]"}," 根据重量算片数 ",-1),Sa={class:"flex flex-wrap"},Ca={class:"flex items-center w-full md:w-1/2"},Ia=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"片数",-1),Ta={class:"flex items-center w-full md:w-1/2"},Oa=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"重量",-1),Pa={class:"p-2 mb-4 bg-gray-100 rounded-lg shadow-sm"},Ma=d("h3",{class:"pl-2 font-bold my-3 text-[16px]"}," 根据重量算片数 ",-1),ka={class:"flex flex-wrap"},Aa={class:"flex items-center w-full md:w-1/2"},Ea=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"需求重量",-1),Ra={class:"flex items-center w-full md:w-1/2"},Ka=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"需求片数",-1),Ba={class:"p-2 mb-4 bg-gray-100 rounded-lg shadow-sm"},Da=d("h3",{class:"pl-2 font-bold my-3 text-[16px]"}," 基础数据 ",-1),La={class:"flex flex-wrap"},Na={class:"flex items-center w-full md:w-1/2"},Fa=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"锂带密度",-1),za={class:"flex items-center w-full md:w-1/2"},Wa=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"厚度",-1),Ha={class:"flex flex-wrap"},ja={class:"flex items-center w-full md:w-1/2"},Va=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"宽度",-1),Xa={class:"p-2 mb-4 bg-gray-100 rounded-lg shadow-sm"},Ga=d("h3",{class:"pl-2 font-bold my-3 text-[16px]"}," 根据米数算重量 ",-1),Ua={class:"flex flex-wrap"},Ya={class:"flex items-center w-full md:w-1/2"},qa=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"米数",-1),Za={class:"flex items-center w-full md:w-1/2"},Qa=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"重量",-1),Ja={class:"p-2 mb-4 bg-gray-100 rounded-lg shadow-sm"},ei=d("h3",{class:"pl-2 font-bold my-3 text-[16px]"}," 根据重量算米数 ",-1),ti={class:"flex flex-wrap"},ni={class:"flex items-center w-full md:w-1/2"},oi=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"需求重量",-1),li={class:"flex items-center w-full md:w-1/2"},ai=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"需求米数",-1),ii={class:"p-2 mb-4 bg-gray-100 rounded-lg shadow-sm"},ri=d("h3",{class:"pl-2 font-bold my-3 text-[16px]"}," 铜锂复合带产品重量和米数计算 ",-1),si={class:"flex flex-wrap"},ui={class:"flex items-center w-full md:w-1/2"},ci=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"锂带密度",-1),di={class:"flex items-center w-full md:w-1/2"},vi=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"铜箔密度",-1),fi={class:"flex flex-wrap"},mi={class:"flex items-center w-full md:w-1/2"},pi=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"锂带厚度",-1),gi={class:"flex items-center w-full md:w-1/2"},bi=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"铜箔厚度",-1),hi={class:"flex flex-wrap"},yi={class:"flex items-center w-full md:w-1/2"},$i=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"锂带宽度",-1),xi={class:"flex items-center w-full md:w-1/2"},_i=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"铜箔宽度",-1),wi={class:"flex flex-wrap"},Si={class:"flex items-center w-full md:w-1/2"},Ci=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"锂带层数",-1),Ii={class:"flex items-center w-full md:w-1/2"},Ti=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"米数",-1),Oi={class:"flex flex-wrap"},Pi={class:"flex items-center w-full md:w-1/2"},Mi=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"锂带重量",-1),ki={class:"flex items-center w-full md:w-1/2"},Ai=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"铜箔重量",-1),Ei={class:"flex flex-wrap"},Ri={class:"flex items-center w-full md:w-1/2"},Ki=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"总重量",-1),Bi={class:"p-2 mb-4 bg-gray-100 rounded-lg shadow-sm"},Di=d("h3",{class:"pl-2 font-bold my-3 text-[16px]"}," 基础数据 ",-1),Li={class:"flex flex-wrap"},Ni={class:"flex items-center w-full md:w-1/2"},Fi=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"铜箔密度",-1),zi={class:"flex items-center w-full md:w-1/2"},Wi=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"厚度",-1),Hi={class:"flex flex-wrap"},ji={class:"flex items-center w-full md:w-1/2"},Vi=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"宽度",-1),Xi={class:"p-2 mb-4 bg-gray-100 rounded-lg shadow-sm"},Gi=d("h3",{class:"pl-2 font-bold my-3 text-[16px]"}," 根据米数算重量 ",-1),Ui={class:"flex flex-wrap"},Yi={class:"flex items-center w-full md:w-1/2"},qi=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"米数",-1),Zi={class:"flex items-center w-full md:w-1/2"},Qi=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"重量",-1),Ji={class:"p-2 mb-4 bg-gray-100 rounded-lg shadow-sm"},er=d("h3",{class:"pl-2 font-bold my-3 text-[16px]"}," 根据重量算米数 ",-1),tr={class:"flex flex-wrap"},nr={class:"flex items-center w-full md:w-1/2"},or=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"需求重量",-1),lr={class:"flex items-center w-full md:w-1/2"},ar=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"需求米数",-1),ir={class:"p-2 mb-4 bg-gray-100 rounded-lg shadow-sm"},rr=d("h3",{class:"pl-2 font-bold my-3 text-[16px]"}," 基础数据 ",-1),sr={class:"flex flex-wrap"},ur={class:"flex items-center w-full md:w-1/2"},cr=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"铝箔密度",-1),dr={class:"flex items-center w-full md:w-1/2"},vr=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"厚度",-1),fr={class:"flex flex-wrap"},mr={class:"flex items-center w-full md:w-1/2"},pr=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"宽度",-1),gr={class:"p-2 mb-4 bg-gray-100 rounded-lg shadow-sm"},br=d("h3",{class:"pl-2 font-bold my-3 text-[16px]"}," 根据米数算重量 ",-1),hr={class:"flex flex-wrap"},yr={class:"flex items-center w-full md:w-1/2"},$r=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"米数",-1),xr={class:"flex items-center w-full md:w-1/2"},_r=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"重量",-1),wr={class:"p-2 mb-4 bg-gray-100 rounded-lg shadow-sm"},Sr=d("h3",{class:"pl-2 font-bold my-3 text-[16px]"}," 根据重量算米数 ",-1),Cr={class:"flex flex-wrap"},Ir={class:"flex items-center w-full md:w-1/2"},Tr=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"需求重量",-1),Or={class:"flex items-center w-full md:w-1/2"},Pr=d("span",{class:"inline-block w-[110px] mr-6 text-right text-gray-700 py-2"},"需求米数",-1),Mr={class:"fixed left-0 flex justify-end w-full bottom-4"},kr={class:"w-[90%] sm:w-[800px] m-auto text-right"},rn=3.1415926,Rr={__name:"LengthCalculator",setup(e){document.title="理论数据计算器";const t=_("1"),n=_(.534),o=_(18),l=_(1),i=_(2e3),a=_(272),r=_(100),u=_(736),f=_(.534),v=_(.05),c=_(100),b=_(47),m=_(125),h=_(50),I=_(18.7),O=_(.534),k=_(8.9),A=_(50),X=_(8),Y=_(65),p=_(80),w=_(1),x=_(13),E=_(23),H=_(74),K=_(97),ee=_(8.9),le=_(8),se=_(250),ve=_(100),T=_(1.78),F=_(5),z=_(281),J=_(2.7),q=_(12),pe=_(240),R=_(300),te=_(2.333),ae=_(3),fe=_(386),he=async()=>{let $=Z(n.value,rn),g=U(o.value,10),P=U(g,2);a.value=Oe(Z(U(Z(Z(Z($,P),P),l.value),10),i.value),1);let B=U(r.value,n.value),Q=U(U(o.value,10),2),ie=Z(Z(Q,rn),Q),ne=Z(ie,l.value);u.value=Oe(U(B,U(ne,10)),1);let S=U(Z(v.value,f.value),10),ue=Z(Z(U(c.value,10),b.value),100);m.value=Oe(Z(S,ue),2);let ye=U(h.value,f.value),Se=U(Z(U(v.value,10),c.value),10);I.value=Oe(U(U(ye,Se),100),1);let G=Z(Z(O.value,A.value),w.value),L=U(Z(U(G,1e4),Y.value),10);E.value=Oe(Z(Z(L,x.value),100),1);let M=U(Z(X.value,k.value),1e4),W=U(Z(M,p.value),10);H.value=Oe(Z(Z(W,x.value),100),1),K.value=Oe(ca(E.value,H.value),1);let re=Z(U(Z(ee.value,le.value),1e4),se.value),me=Z(U(re,10),ve.value);T.value=Oe(U(Z(me,100),1e3),1);let Ce=U(Z(F.value,1e3),ee.value),ge=U(Z(U(le.value,1e4),se.value),10);z.value=Oe(U(U(Ce,ge),100),1);let Ie=Z(U(Z(J.value,q.value),1e4),pe.value),ke=Z(U(Ie,10),R.value);te.value=Oe(U(Z(ke,100),1e3),1);let Re=U(Z(ae.value,1e3),J.value),be=U(Z(U(q.value,1e4),pe.value),10);fe.value=Oe(U(U(Re,be),100),1)};return($,g)=>{const P=bo,B=ho,Q=bt,ie=lt,ne=go;return Co(),Io("div",da,[s(ie,{activeKey:t.value,"onUpdate:activeKey":g[22]||(g[22]=S=>t.value=S)},{default:N(()=>[s(Q,{key:"1",tab:"锂片重量和片数计算"},{default:N(()=>[d("div",va,[fa,s(B,null,{default:N(()=>[d("div",ma,[d("div",pa,[ga,j(" "+$e(n.value+" g/cm3"),1)]),d("div",ba,[ha,s(P,{value:o.value,"onUpdate:value":g[0]||(g[0]=S=>o.value=S)},{addonAfter:N(()=>[j("mm")]),_:1},8,["value"])])]),d("div",ya,[d("div",$a,[xa,s(P,{value:l.value,"onUpdate:value":g[1]||(g[1]=S=>l.value=S)},{addonAfter:N(()=>[j("mm")]),_:1},8,["value"])])])]),_:1})]),d("div",_a,[wa,s(B,null,{default:N(()=>[d("div",Sa,[d("div",Ca,[Ia,s(P,{value:i.value,"onUpdate:value":g[2]||(g[2]=S=>i.value=S)},{addonAfter:N(()=>[j("片")]),_:1},8,["value"])]),d("div",Ta,[Oa,j(" "+$e(a.value+" g"),1)])])]),_:1})]),d("div",Pa,[Ma,s(B,null,{default:N(()=>[d("div",ka,[d("div",Aa,[Ea,s(P,{value:r.value,"onUpdate:value":g[3]||(g[3]=S=>r.value=S)},{addonAfter:N(()=>[j("g")]),_:1},8,["value"])]),d("div",Ra,[Ka,j(" "+$e(u.value+" 片"),1)])])]),_:1})])]),_:1}),s(Q,{key:"2",tab:"锂带重量和米数计算","force-render":""},{default:N(()=>[d("div",Ba,[Da,s(B,null,{default:N(()=>[d("div",La,[d("div",Na,[Fa,j(" "+$e(f.value+" g/cm3"),1)]),d("div",za,[Wa,s(P,{value:v.value,"onUpdate:value":g[4]||(g[4]=S=>v.value=S)},{addonAfter:N(()=>[j("mm")]),_:1},8,["value"])])]),d("div",Ha,[d("div",ja,[Va,s(P,{value:c.value,"onUpdate:value":g[5]||(g[5]=S=>c.value=S)},{addonAfter:N(()=>[j("mm")]),_:1},8,["value"])])])]),_:1})]),d("div",Xa,[Ga,s(B,null,{default:N(()=>[d("div",Ua,[d("div",Ya,[qa,s(P,{value:b.value,"onUpdate:value":g[6]||(g[6]=S=>b.value=S)},{addonAfter:N(()=>[j("m")]),_:1},8,["value"])]),d("div",Za,[Qa,j(" "+$e(m.value+" g"),1)])])]),_:1})]),d("div",Ja,[ei,s(B,null,{default:N(()=>[d("div",ti,[d("div",ni,[oi,s(P,{value:h.value,"onUpdate:value":g[7]||(g[7]=S=>h.value=S)},{addonAfter:N(()=>[j("g")]),_:1},8,["value"])]),d("div",li,[ai,j(" "+$e(I.value+" m"),1)])])]),_:1})])]),_:1}),s(Q,{key:"3",tab:"铜锂复合带重量和米数计算"},{default:N(()=>[d("div",ii,[ri,s(B,null,{default:N(()=>[d("div",si,[d("div",ui,[ci,j(" "+$e(O.value+" g/cm3"),1)]),d("div",di,[vi,j(" "+$e(k.value+" g/cm3"),1)])]),d("div",fi,[d("div",mi,[pi,s(P,{value:A.value,"onUpdate:value":g[8]||(g[8]=S=>A.value=S)},{addonAfter:N(()=>[j("um")]),_:1},8,["value"])]),d("div",gi,[bi,s(P,{value:X.value,"onUpdate:value":g[9]||(g[9]=S=>X.value=S)},{addonAfter:N(()=>[j("um")]),_:1},8,["value"])])]),d("div",hi,[d("div",yi,[$i,s(P,{value:Y.value,"onUpdate:value":g[10]||(g[10]=S=>Y.value=S)},{addonAfter:N(()=>[j("mm")]),_:1},8,["value"])]),d("div",xi,[_i,s(P,{value:p.value,"onUpdate:value":g[11]||(g[11]=S=>p.value=S)},{addonAfter:N(()=>[j("mm")]),_:1},8,["value"])])]),d("div",wi,[d("div",Si,[Ci,s(P,{value:w.value,"onUpdate:value":g[12]||(g[12]=S=>w.value=S)},{addonAfter:N(()=>[j("层")]),_:1},8,["value"])]),d("div",Ii,[Ti,s(P,{value:x.value,"onUpdate:value":g[13]||(g[13]=S=>x.value=S)},{addonAfter:N(()=>[j("m")]),_:1},8,["value"])])]),d("div",Oi,[d("div",Pi,[Mi,j(" "+$e(E.value+" g"),1)]),d("div",ki,[Ai,j(" "+$e(H.value+" g"),1)])]),d("div",Ei,[d("div",Ri,[Ki,j(" "+$e(K.value+" g"),1)])])]),_:1})])]),_:1}),s(Q,{key:"4",tab:"铜箔重量和米数计算"},{default:N(()=>[d("div",Bi,[Di,s(B,null,{default:N(()=>[d("div",Li,[d("div",Ni,[Fi,j(" "+$e(ee.value+" g/cm3"),1)]),d("div",zi,[Wi,s(P,{value:le.value,"onUpdate:value":g[14]||(g[14]=S=>le.value=S)},{addonAfter:N(()=>[j("um")]),_:1},8,["value"])])]),d("div",Hi,[d("div",ji,[Vi,s(P,{value:se.value,"onUpdate:value":g[15]||(g[15]=S=>se.value=S)},{addonAfter:N(()=>[j("mm")]),_:1},8,["value"])])])]),_:1})]),d("div",Xi,[Gi,s(B,null,{default:N(()=>[d("div",Ui,[d("div",Yi,[qi,s(P,{value:ve.value,"onUpdate:value":g[16]||(g[16]=S=>ve.value=S)},{addonAfter:N(()=>[j("m")]),_:1},8,["value"])]),d("div",Zi,[Qi,j(" "+$e(T.value+" kg"),1)])])]),_:1})]),d("div",Ji,[er,s(B,null,{default:N(()=>[d("div",tr,[d("div",nr,[or,s(P,{value:F.value,"onUpdate:value":g[17]||(g[17]=S=>F.value=S)},{addonAfter:N(()=>[j("kg")]),_:1},8,["value"])]),d("div",lr,[ar,j(" "+$e(z.value+" m"),1)])])]),_:1})])]),_:1}),s(Q,{key:"5",tab:"铝箔重量和米数计算"},{default:N(()=>[d("div",ir,[rr,s(B,null,{default:N(()=>[d("div",sr,[d("div",ur,[cr,j(" "+$e(J.value+" g/cm3"),1)]),d("div",dr,[vr,s(P,{value:q.value,"onUpdate:value":g[18]||(g[18]=S=>q.value=S)},{addonAfter:N(()=>[j("um")]),_:1},8,["value"])])]),d("div",fr,[d("div",mr,[pr,s(P,{value:pe.value,"onUpdate:value":g[19]||(g[19]=S=>pe.value=S)},{addonAfter:N(()=>[j("mm")]),_:1},8,["value"])])])]),_:1})]),d("div",gr,[br,s(B,null,{default:N(()=>[d("div",hr,[d("div",yr,[$r,s(P,{value:R.value,"onUpdate:value":g[20]||(g[20]=S=>R.value=S)},{addonAfter:N(()=>[j("m")]),_:1},8,["value"])]),d("div",xr,[_r,j(" "+$e(te.value+" kg"),1)])])]),_:1})]),d("div",wr,[Sr,s(B,null,{default:N(()=>[d("div",Cr,[d("div",Ir,[Tr,s(P,{value:ae.value,"onUpdate:value":g[21]||(g[21]=S=>ae.value=S)},{addonAfter:N(()=>[j("kg")]),_:1},8,["value"])]),d("div",Or,[Pr,j(" "+$e(fe.value+" m"),1)])])]),_:1})])]),_:1})]),_:1},8,["activeKey"]),d("div",Mr,[d("div",kr,[s(ne,{type:"primary",onClick:he,class:"bg-[#1677ff] w-[85px]"},{default:N(()=>[j(" 计算 ")]),_:1})])])])}}};export{Rr as default};