2025-08-09 17:28:13 +03:30
import { an as pt , aB as Te , am as gt , bj as vt , bk as ht , k as S , aI as O , s as W , o as Ae , bl as yt , bm as je , bn as Ie , bc as Me , bd as Ue , d as ie , aU as ve , aL as Pe , r as be , e as Qe , aP as Y , C as q , aQ as P , bi as bt , bb as xt , ba as $t , bo as wt , a2 as ce , bp as St , bq as Ye , be as Je , a1 as xe , br as Ft , U as Ct , bs as Ot , a7 as qt , a8 as Et , bt as At , aZ as Ze , b7 as $e , aX as oe , bu as jt , aH as It , K as Mt , av as Pt , b4 as _t , bv as Rt , bw as Nt , aJ as Vt , ae as Tt , aY as ke } from "./lb-BvpwA.js" ; import { b as et } from "./Bu941ay-.js" ; import { b as Lt } from "./Cj99RmFE.js" ; import { _ as Bt } from "./CTkMjWS1.js" ; import { g as Dt , c as Gt } from "./B6b_4jQj.js" ; import { b as Wt , a as Ht } from "./B_G5DPtX.js" ; var zt = /\s/ ; function Xt ( e ){ for ( var t = e . length ; t --&& zt . test ( e . charAt ( t ));); return t } var Kt = /^\s+/ ; function Ut ( e ){ return e && e . slice ( 0 , Xt ( e ) + 1 ). replace ( Kt , "" )} var Le = NaN , Qt = /^[-+]0x[0-9a-f]+$/i , Yt = /^0b[01]+$/i , Jt = /^0o[0-7]+$/i , Zt = parseInt ; function kt ( e ){ if ( typeof e == "number" ) return e ; if ( pt ( e )) return Le ; if ( Te ( e )){ var t = typeof e . valueOf == "function" ? e . valueOf () : e ; e = Te ( t ) ? t + "" : t } if ( typeof e != "string" ) return e === 0 ? e :+ e ; e = Ut ( e ); var n = Yt . test ( e ); return n || Jt . test ( e ) ? Zt ( e . slice ( 2 ), n ? 2 : 8 ) : Qt . test ( e ) ? Le :+ e } var en = 1 / 0 , tn = 17976931348623157e292 ; function nn ( e ){ if ( ! e ) return e === 0 ? e : 0 ; if ( e = kt ( e ), e === en || e ===- 1 / 0 ){ var t = e < 0 ?- 1 : 1 ; return t * tn } return e === e ? e : 0 } function rn ( e ){ var t = nn ( e ), n = t % 1 ; return t === t ? n ? t - n : t : 0 } function an ( e ){ return function ( t , n , r ){ var i = Object ( t ); if ( ! gt ( t )){ var a = et ( n ); t = vt ( t ), n = function ( l ){ return a ( i [ l ], l , i )}} var o = e ( t , n , r ); return o >- 1 ? i [ a ? t [ o ] : o ] : void 0 }} var on = Math . max ; function ln ( e , t , n ){ var r = e == null ? 0 : e . length ; if ( ! r ) return - 1 ; var i = n == null ? 0 : rn ( n ); return i < 0 && ( i = on ( r + i , 0 )), Lt ( e , et ( t ), i )} var sn = an ( ln ); const le = [ "xxxl" , "xxl" , "xl" , "lg" , "md" , "sm" , "xs" ], un = e =>({ xs : `(max-width: ${ e . screenXSMax } px)` , sm : `(min-width: ${ e . screenSM } px)` , md : `(min-width: ${ e . screenMD } px)` , lg : `(min-width: ${ e . screenLG } px)` , xl : `(min-width: ${ e . screenXL } px)` , xxl : `(min-width: ${ e . screenXXL } px)` , xxxl : `{min-width: ${ e . screenXXXL } px}` }); function fn (){ const [, e ] = ht (); return S (()=>{ const t = un ( e . value ), n = new Map ; let r =- 1 , i = {}; return { matchHandlers : {}, dispatch ( a ){ return i = a , n . forEach ( o => o ( i )), n . size >= 1 }, subscribe ( a ){ return n . size || this . register (), r += 1 , n . set ( r , a ), a ( i ), r }, unsubscribe ( a ){ n . delete ( a ), n . size || this . unregister ()}, unregister (){ Object . keys ( t ). forEach ( a =>{ const o = t [ a ], l = this . matchHandlers [ o ]; l == null || l . mql . removeListener ( l == null ? void 0 : l . listener )}), n . clear ()}, register (){ Object . keys ( t ). forEach ( a =>{ const o = t [ a ], l = p =>{ let { matches : c } = p ; this . dispatch ( O ( O ({}, i ),{[ a ] : c }))}, f = window . matchMedia ( o ); f . addListener ( l ), this . matchHandlers [ o ] = { mql : f , listener : l }, l ( f )})}, responsiveMap : t }})} const cn = ()=>{ const e = W ( ! 1 ); return Ae (()=>{ e . value = yt ()}), e }, tt = Symbol ( "rowContextKey" ), dn = e =>{ Ie ( tt , e )}, mn = ()=> je ( tt ,{ gutter : S (()=>{}), wrap : S (()=>{}), supportFlexGap : S (()=>{})}), pn = e =>{ const { componentCls : t } = e ; return {[ t ] : { display : "flex" , flexFlow : "row wrap" , minWidth : 0 , "&::before, &::after" : { display : "flex" }, "&-no-wrap" : { flexWrap : "nowrap" }, "&-start" : { justifyContent : "flex-start" }, "&-center" : { justifyContent : "center" }, "&-end" : { justifyContent : "flex-end" }, "&-space-between" : { justifyContent : "space-between" }, "&-space-around " : { justifyContent : "space-around" }, "&-space-evenly " : { justifyContent : "space-evenly" }, "&-top" : { alignItems : "flex-start" }, "&-middle" : { alignItems : "center" }, "&-bottom" : { alignItems : "flex-end" }}}}, gn = e =>{ const { componentCls : t } = e ; return {[ t ] : { position : "relative" , maxWidth : "100%" , minHeight : 1 }}}, vn = ( e , t )=>{ const { componentCls : n , gridColumns : r } = e , i = {}; for ( let a = r ; a >= 0 ; a -- ) a === 0 ? ( i [ ` ${ n }${ t } - ${ a } ` ] = { display : "none" }, i [ ` ${ n } -push- ${ a } ` ] = { insetInlineStart : "auto" }, i [ ` ${ n } -pull- ${ a } ` ] = { insetInlineEnd : "auto" }, i [ ` ${ n }${ t } -push- ${ a } ` ] = { insetInlineStart : "auto" }, i [ ` ${ n }${ t } -pull- ${ a } ` ] = { insetInlineEnd : "auto" }, i [ ` ${ n }${ t } -offset- ${ a } ` ] = { marginInlineEnd : 0 }, i [ ` ${ n }${ t } -order- ${ a } ` ] = { order : 0 }) : ( i [ ` ${ n }${ t } - ${ a } ` ] = { display : "block" , flex : `0 0 ${ a / r * 100 } %` , maxWidth : ` ${ a / r * 100 } %` }, i [ ` ${ n }${ t } -push- ${ a } ` ] = { insetInlineStart : ` ${ a / r * 100 } %` }, i [ ` ${ n }${ t } -pull- ${ a } ` ] = { insetInlineEnd : ` ${ a / r * 100 } %` }, i [ ` ${ n }${ t } -offset- ${ a } ` ] = { marginInlineStart : ` ${ a / r * 100 } %` }, i [ ` ${ n }${ t } -order- ${ a }
2025-07-26 22:08:43 +03:30
(?:
(?:` + r + ":){7}(?:" + r + `|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:` + r + ":){6}(?:" + n + "|:" + r + `|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:` + r + ":){5}(?::" + n + "|(?::" + r + `){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:` + r + ":){4}(?:(?::" + r + "){0,1}:" + n + "|(?::" + r + `){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:` + r + ":){3}(?:(?::" + r + "){0,2}:" + n + "|(?::" + r + `){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:` + r + ":){2}(?:(?::" + r + "){0,3}:" + n + "|(?::" + r + `){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:` + r + ":){1}(?:(?::" + r + "){0,4}:" + n + "|(?::" + r + `){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::` + r + "){0,5}:" + n + "|(?::" + r + `){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
` ). replace ( /\s*\/\/.*$/gm , "" ). replace ( /\n/g , "" ). trim (), a = new RegExp ( "(?:^" + n + "$)|(?:^" + i + "$)" ), o = new RegExp ( "^" + n + "$" ), l = new RegExp ( "^" + i + "$" ), f = function ( m ){ return m && m . exact ? a : new RegExp ( "(?:" + t ( m ) + n + t ( m ) + ")|(?:" + t ( m ) + i + t ( m ) + ")" , "g" )}; f . v4 = function ( u ){ return u && u . exact ? o : new RegExp ( "" + t ( u ) + n + t ( u ), "g" )}, f . v6 = function ( u ){ return u && u . exact ? l : new RegExp ( "" + t ( u ) + i + t ( u ), "g" )}; var p = "(?:(?:[a-z]+:)?//)" , c = "(?:\\S+(?::\\S*)?@)?" , v = f . v4 (). source , g = f . v6 (). source , x = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)" , $ = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*" , s = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))" , y = "(?::\\d{2,5})?" , d = '(?:[/?#][^\\s"]*)?' , w = "(?:" + p + "|www\\.)" + c + "(?:localhost|" + v + "|" + g + "|" + x + $ + s + ")" + y + d ; return se = new RegExp ( "(?:^" + w + "$)" , "i" ), se }, He = { email : /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/ , hex : /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i }, te = { integer : function ( t ){ return te . number ( t ) && parseInt ( t , 10 ) === t }, float : function ( t ){ return te . number ( t ) &&! te . integer ( t )}, array : function ( t ){ return Array . isArray ( t )}, regexp : function ( t ){ if ( t instanceof RegExp ) return ! 0 ; try { return !! new RegExp ( t )} catch { return ! 1 }}, date : function ( t ){ return typeof t . getTime == "function" && typeof t . getMonth == "function" && typeof t . getYear == "function" &&! isNaN ( t . getTime ())}, number : function ( t ){ return isNaN ( t ) ?! 1 : typeof t == "number" }, object : function ( t ){ return typeof t == "object" &&! te . array ( t )}, method : function ( t ){ return typeof t == "function" }, email : function ( t ){ return typeof t == "string" && t . length <= 320 &&!! t . match ( He . email )}, url : function ( t ){ return typeof t == "string" && t . length <= 2048 &&!! t . match ( _n ())}, hex : function ( t ){ return typeof t == "string" &&!! t . match ( He . hex )}}, Rn = function ( t , n , r , i , a ){ if ( t . required && n === void 0 ){ nt ( t , n , r , i , a ); return } var o = [ "integer" , "float" , "array" , "regexp" , "object" , "method" , "email" , "number" , "date" , "url" , "hex" ], l = t . type ; o . indexOf ( l ) >- 1 ? te [ l ]( n ) || i . push ( L ( a . messages . types [ l ], t . fullField , t . type )) : l && typeof n !== t . type && i . push ( L ( a . messages . types [ l ], t . fullField , t . type ))}, Nn = function ( t , n , r , i , a ){ var o = typeof t . len == "number" , l = typeof t . min == "number" , f = typeof t . max == "number" , p = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g , c = n , v = null , g = typeof n == "number" , x = typeof n == "string" , $ = Array . isArray ( n ); if ( g ? v = "number" : x ? v = "string" : $ && ( v = "array" ), ! v ) return ! 1 ; $ && ( c = n . length ), x && ( c = n . replace ( p , "_" ). length ), o ? c !== t . len && i . push ( L ( a . messages [ v ]. len , t . fullField , t . len )) : l &&! f && c < t . min ? i . push ( L ( a . messages [ v ]. min , t . fullField , t . min )) : f &&! l && c > t . max ? i . push ( L ( a . messages [ v ]. max , t . fullField , t . max )) : l && f && ( c < t . min || c > t . max ) && i . push ( L ( a . messages [ v ]. range , t . fullField , t . min , t . max ))}, U = "enum" , Vn = function ( t , n , r , i , a ){ t [ U ] = Array . isArray ( t [ U ]) ? t [ U ] : [], t [ U ]. indexOf ( n ) ===- 1 && i . push ( L ( a . messages [ U ], t . fullField , t [ U ]. join ( ", " )))}, Tn = function ( t , n , r , i , a ){ if ( t . pattern ){ if ( t . pattern instanceof RegExp ) t . pattern . lastIndex = 0 , t . pattern . test ( n ) || i . push ( L ( a . messages . pattern . mismatch , t . fullField , n , t . pattern )); else if ( typeof t . pattern == "string" ){ var o = new RegExp ( t . pattern ); o . test ( n ) || i . push ( L ( a . messages . pattern . mismatch , t . fullField , n , t . pattern ))}}}, C = { required : nt , whitespace : Pn , type : Rn , range : Nn , enum : Vn , pattern : Tn }, Ln = function ( t , n , r , i , a ){ var o = [], l = t . required ||! t . required && i . hasOwnProperty ( t . field ); if ( l ){ if ( I ( n , "string" ) &&! t . required ) return r (); C . required ( t , n , i , o , a , "string" ), I ( n , "string" ) || ( C . type ( t , n , i , o , a ), C . range ( t , n , i , o , a ), C . pattern ( t , n , i , o , a ), t . whitespace ===! 0 && C . whitespace ( t , n , i , o , a ))} r ( o )}, Bn = function ( t , n , r , i , a ){ var o = [], l = t . required ||! t . required && i . hasOwnProperty ( t . field ); if ( l ){ if ( I ( n ) &&! t . required ) return r (); C . required ( t , n , i , o , a ), n !== void 0 && C . type ( t , n , i , o , a )} r ( o )}, Dn = function ( t , n , r , i , a ){ var o = [], l = t . required ||! t . required && i . hasOwnProperty ( t . field ); if ( l ){ if ( n === "" && ( n = void 0 ), I ( n ) &&! t . required ) return r (); C . required ( t , n , i , o , a ), n !== void 0 && ( C . type ( t , n , i , o , a ), C . range ( t , n , i , o , a ))} r ( o )}, Gn = function ( t , n , r , i , a ){ var o = [], l = t . required ||! t . required && i . hasOwnProperty ( t . field ); if ( l ){ if ( I ( n ) &&! t . required ) return r (); C . required ( t , n , i , o
opacity $ { e . motionDurationSlow } $ { e . motionEaseInOut },
transform $ { e . motionDurationSlow } $ { e . motionEaseInOut } ! important `,[` & $ { r } - appear , & $ { r } - enter `]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[` & $ { r } - leave - active `]:{transform:"translateY(-5px)"}}}}},xr=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:` $ { e . lineWidth } px $ { e . lineType } $ { e . colorBorder } `},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:` 0 0 0 $ { e . controlOutlineWidth } px $ { e . controlOutline } `},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Ke=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[` $ { n } - label > label `]:{height:t},[` $ { n } - control - input `]:{minHeight:t}}}},$r=e=>{const{componentCls:t}=e;return{[e.componentCls]:O(O(O({},Je(e)),xr(e)),{[` $ { t } - text `]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":O({},Ke(e,e.controlHeightSM)),"&-large":O({},Ke(e,e.controlHeightLG))})}},wr=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i}=e;return{[t]:O(O({},Je(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[` &- hidden ,
&- hidden . $ { i } - row `]:{display:"none"},"&-has-warning":{[` $ { t } - split `]:{color:e.colorError}},"&-has-error":{[` $ { t } - split `]:{color:e.colorWarning}},[` $ { t } - label `]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:` $ { e . lineHeight } - 0.25 em `,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[` > $ { n } `]:{fontSize:e.fontSize,verticalAlign:"top"},[` & $ { t } - required : not ( $ { t } - required - mark - optional ) :: before `]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[` $ { r } - hide - required - mark & `]:{display:"none"}},[` $ { t } - optional `]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[` $ { r } - hide - required - mark & `]:{display:"none"}},[` $ { t } - tooltip `]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[` & $ { t } - no - colon :: after `]:{content:'" "'}}},[` $ { t } - control `]:{display:"flex",flexDirection:"column",flexGrow:1,[` &: first - child : not ([ class ^= "'${i}-col-'" ]) : not ([ class *= "' ${i}-col-'" ]) `]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:` color $ { e . motionDurationMid } $ { e . motionEaseOut } `},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[` &- with - help $ { t } - explain `]:{height:"auto",opacity:1},[` $ { t } - feedback - icon `]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Ye,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Sr=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[` $ { t } - horizontal `]:{[` $ { n } - label `]:{flexGrow:0},[` $ { n } - control `]:{flex:"1 1 0",minWidth:0},[` $ { n } - label . $ { r } - col - 24 + $ { n } - control `]:{minWidth:"unset"}}}},Fr=e=>{const{componentCls:t,formItemCls:n}=e;return{[` $ { t } - inline `]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG},[` > $ { n } - label ,
> $ { n } - control `]:{display:"inline-block",verticalAlign:"top"},[` > $ { n } - label `]:{flex:"none"},[` $ { t } - text `]:{display:"inline-block"},[` $ { n } - has - feedback `]:{display:"inline-block"}}}}},Q=e=>({margin:0,padding:` 0 0 $ { e . paddingXS } px `,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),Cr=e=>{const{componentCls:t,formItemCls:n}=e;return{[` $ { n } $ { n } - label `]:Q(e),[t]:{[n]:{flexWrap:"wrap",[` $ { n } - label ,
$ { n } - control `]:{flex:"0 0 100%",maxWidth:"100%"}}}}},Or=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[` $ { t } - vertical `]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[` $ { t } - item - control `]:{width:"100%"}}},[` $ { t } - vertical $ { n } - label ,
. $ { r } - col - 24 $ { n } - label ,
. $ { r } - col - xl - 24 $ { n } - label `]:Q(e),[` @ media ( max - width : $ { e . screenXSMax } px ) `]:[Cr(e),{[t]:{[` . $ { r } - col - xs - 24 $ { n } - label `]:Q(e)}}],[` @ media ( max - width : $ { e . screenSMMax } px ) `]:{[t]:{[` . $ { r } - col - sm - 24 $ { n } - label `]:Q(e)}},[` @ media ( max - width : $ { e . screenMDMax } px ) `]:{[t]:{[` . $ { r } - col - md - 24 $ { n } - label `]:Q(e)}},[` @ media ( max - width : $ { e . screenLGMax } px ) `]:{[t]:{[` . $ { r } - col - lg - 24 $ { n } - label `]:Q(e)}}}},ft=Me("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=Ue(e,{formItemCls:` $ { e . componentCls } - item `,rootPrefixCls:n});return[$r(r),wr(r),br(r),Sr(r),Fr(r),Or(r),Dt(r),Ye]}),qr=ie({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:n}=t;const{prefixCls:r,status:i}=mr(),a=S(()=>` $ { r . value } - item - explain `),o=S(()=>!!(e.errors&&e.errors.length)),l=be(i.value),[,f]=ft(r);return xe([o,i],()=>{o.value&&(l.value=i.value)}),()=>{var p,c;const v=Gt(` $ { r . value } - show - help - item `),g=Ft(` $ { r . value } - show - help - item `,v);return g.role="alert",g.class=[f.value,a.value,n.class,` $ { r . value } - show - help `],q(Ct,P(P({},Ot(` $ { r . value } - show - help `)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[qt(q(At,P(P({},g),{},{tag:"div"}),{default:()=>[(c=e.errors)===null||c===void 0?void 0:c.map((x,$)=>q("div",{key:$,class:l.value?` $ { a . value } - $ { l . value } `:""},[x]))]}),[[Et,!!(!((p=e.errors)===null||p===void 0)&&p.length)]])]})}}}),Er=ie({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:n}=t;const r=_e(),{wrapperCol:i}=r,a=O({},r);return delete a.labelCol,delete a.wrapperCol,cr(a),dr({prefixCls:S(()=>e.prefixCls),status:S(()=>e.status)}),()=>{var o,l,f;const{prefixCls:p,wrapperCol:c,marginBottom:v,onErrorVisibleChanged:g,help:x=(o=n.help)===null||o===void 0?void 0:o.call(n),errors:$=Ze((l=n.errors)===null||l===void 0?void 0:l.call(n)),extra:s=(f=n.extra)===null||f===void 0?void 0:f.call(n)}=e,y=` $ { p } - item `,d=c||(i==null?void 0:i.value)||{},w=Y(` $ { y } - control `,d.class);return q(ut,P(P({},d),{},{class:w}),{default:()=>{var u;return q(ce,null,[q("div",{class:` $ { y } - control - input `},[q("div",{class:` $ { y } - control - input - content `},[(u=n.default)===null||u===void 0?void 0:u.call(n)])]),v!==null||$.length?q("div",{style:{display:"flex",flexWrap:"nowrap"}},[q(qr,{errors:$,help:x,class:` $ { y } - explain - connected `,onErrorVisibleChanged:g},null),!!v&&q("div",{style:{width:0,height:` $ { v } px `}},null)]):null,s?q("div",{class:` $ { y } - extra `},[s]):null])}})}}});function Ar(e){const t=W(e.value.slice());let n=null;return $e(()=>{clearTimeout(n),n=setTimeout(()=>{t.value=e.value},e.value.length?0:10)}),t}ke("success","warning","error","validating","");const jr={success:Nt,warning:Rt,error:_t,validating:Pt};function ye(e,t,n){let r=e;const i=t;let a=0;try{for(let o=i.length;a<o-1&&!(!r&&!n);++a){const l=i[a];if(l in r)r=r[l];else{if(n)throw Error("please transfer a valid name path to form item!");break}}if(n&&!r)throw Error("please transfer a valid name path to form item!")}catch{console.error("please transfer a valid name path to form item!")}return{o:r,k:i[a],v:r?r[i[a]]:void 0}}const Ir=()=>({htmlFor:String,prefixCls:String,label:oe.any,help:oe.any,extra:oe.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:oe.oneOf(ke("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String});let Mr=0;const Pr="form_item",Gr=ie({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:Ir(),slots:Object,setup(e,t){let{slots:n,attrs:r,expose:i}=t;jt(e.prop===void 0);