👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
24 KiB

(globalThis.utooChunk_ant_design_pro||(globalThis.utooChunk_ant_design_pro=[])).push(["object"==typeof document?document.currentScript:void 0,15720,e=>{"use strict";var t=e.i(191788),o=e.i(56742);e.s(["useDebounceFn",0,function(e,r){let n=(0,o.useRefFunction)(e),i=(0,t.useRef)(),a=(0,t.useCallback)(()=>{i.current&&(clearTimeout(i.current),i.current=null)},[]),s=(0,t.useCallback)(async(...e)=>0===r||void 0===r?n(...e):(a(),new Promise(t=>{i.current=setTimeout(async()=>{t(await n(...e))},r)})),[n,a,r]);return(0,t.useEffect)(()=>a,[a]),{run:s,cancel:a}}])},35384,e=>{"use strict";var t=e.i(790731);e.s(["Popover",()=>t.default])},76820,245538,e=>{"use strict";var t=e.i(84443).Col;e.s(["Col",()=>t],76820);var o=e.i(247699).Row;e.s(["Row",()=>o],245538)},268074,e=>{"use strict";var t=e.i(191788),o=e.i(186762),r=e.i(56206),n=e.i(483917),i=e.i(430898),a=e.i(934854),s=e.i(663032),l=e.i(993175);let u=e=>{let o,{prefixCls:n,value:i,current:a,offset:s=0}=e;return s&&(o={position:"absolute",top:`${s}00%`,left:0}),t.createElement("span",{style:o,className:(0,r.clsx)(`${n}-only-unit`,{current:a})},i)};var c=e=>{let o,r,{prefixCls:n,count:i,value:a}=e,s=Number(a),l=Math.abs(i),[c,d]=t.useState(s),[m,p]=t.useState(l),f=()=>{d(s),p(l)};if(t.useEffect(()=>{let e=setTimeout(f,1e3);return()=>clearTimeout(e)},[s]),c===s||Number.isNaN(s)||Number.isNaN(c))o=[t.createElement(u,{...e,key:s,current:!0})],r={transition:"none"};else{o=[];let n=s+10,i=[];for(let e=s;e<=n;e+=1)i.push(e);let a=m<l?1:-1,d=i.findIndex(e=>e%10===c);o=(a<0?i.slice(0,d+1):i.slice(d)).map((o,r)=>t.createElement(u,{...e,key:o,value:o%10,offset:a<0?r-d:r,current:r===d})),r={transform:`translateY(${-function(e,t,o){let r=e,n=0;for(;(r+10)%10!==t;)r+=o,n+=o;return n}(c,s,a)}00%)`}}return t.createElement("span",{className:`${n}-only`,style:r,onTransitionEnd:f},o)};let d=t.forwardRef((e,o)=>{let{prefixCls:n,count:i,className:a,motionClassName:u,style:d,title:m,show:p,component:f="sup",children:h,...g}=e,{getPrefixCls:b}=t.useContext(l.ConfigContext),y=b("scroll-number",n),v={...g,"data-show":p,style:d,className:(0,r.clsx)(y,a,u),title:m},x=i;if(i&&Number(i)%1==0){let e=String(i).split("");x=t.createElement("bdi",null,e.map((o,r)=>t.createElement(c,{prefixCls:y,count:Number(i),value:o,key:e.length-r})))}return(d?.borderColor&&(v.style={...d,boxShadow:`0 0 0 1px ${d.borderColor} inset`}),h)?(0,s.cloneElement)(h,e=>({className:(0,r.clsx)(`${y}-custom-component`,e?.className,u)})):t.createElement(f,{...v,ref:o},x)});e.i(290586);var m=e.i(456161),p=e.i(774778),f=e.i(307441),h=e.i(218870),g=e.i(352050),b=e.i(104616);let y=new m.Keyframes("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),v=new m.Keyframes("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),x=new m.Keyframes("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),C=new m.Keyframes("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),$=new m.Keyframes("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),w=new m.Keyframes("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),S=e=>{let{fontHeight:t,lineWidth:o,marginXS:r,colorBorderBg:n}=e,i=e.colorTextLightSolid,a=e.colorError,s=e.colorErrorHover;return(0,b.mergeToken)(e,{badgeFontHeight:t,badgeShadowSize:o,badgeTextColor:i,badgeColor:a,badgeColorHover:s,badgeShadowColor:n,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},N=e=>{let{fontSize:t,lineHeight:o,fontSizeSM:r,lineWidth:n}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*o)-2*n,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}};var E=(0,g.genStyleHooks)("Badge",e=>(e=>{let{componentCls:t,iconCls:o,antCls:r,badgeShadowSize:n,textFontSize:i,textFontSizeSM:a,statusSize:s,dotSize:l,textFontWeight:u,indicatorHeight:c,indicatorHeightSM:d,marginXS:m,calc:g}=e,b=`${r}-scroll-number`,S=(0,h.genPresetColor)(e,(e,{darkColor:o})=>({[`&${t} ${t}-color-${e}`]:{background:o,[`&:not(${t}-count)`]:{color:o},"a:hover &":{background:o}}}));return{[t]:{...(0,f.resetComponent)(e),position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:c,height:c,color:e.badgeTextColor,fontWeight:u,fontSize:i,lineHeight:(0,p.unit)(c),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:g(c).div(2).equal(),boxShadow:`0 0 0 ${(0,p.unit)(n)} ${e.badgeShadowColor}`,transition:`background-color ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:d,height:d,fontSize:a,lineHeight:(0,p.unit)(d),borderRadius:g(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${(0,p.unit)(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${(0,p.unit)(n)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${b}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${o}-spin`]:{animationName:w,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:n,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:y,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:m,color:e.colorText,fontSize:e.fontSize}},...S,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:v,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:x,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:C,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:$,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${b}-custom-component, ${t}-count`]:{transform:"none"},[`${b}-custom-component, ${b}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[b]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${b}-only`]:{position:"relative",display:"inline-block",height:c,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${b}-only-unit`]:{height:c,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${b}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${b}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}})(S(e)),N);let R=t.forwardRef((e,u)=>{let{prefixCls:c,scrollNumberPrefixCls:m,children:p,status:f,text:h,color:g,count:b=null,overflowCount:y=99,dot:v=!1,size:x="medium",title:C,offset:$,style:w,className:S,rootClassName:N,classNames:R,styles:k,showZero:M=!1,...P}=e,{getPrefixCls:T,direction:O,className:F,style:j,classNames:I,styles:W}=(0,l.useComponentConfig)("badge"),B=T("badge",c),[H,D]=E(B),z={...e,overflowCount:y,size:x,dot:v,showZero:M},[_,L]=(0,i.useMergeSemantic)([I,R],[W,k],{props:z}),A=b>y?`${y}+`:b,K="0"===A||0===A||"0"===h||0===h,V=null===b||K&&!M,q=((0,a.isNonNullable)(f)||(0,a.isNonNullable)(g))&&V,Z=(0,a.isNonNullable)(f)||!K,U=v&&!K,X=U?"":A,Y=(0,t.useMemo)(()=>((!(0,a.isNonNullable)(X)||""===X)&&(!(0,a.isNonNullable)(h)||""===h)||K&&!M)&&!U,[X,K,M,U,h]),Q=(0,t.useRef)(b);Y||(Q.current=b);let G=Q.current,J=(0,t.useRef)(X);Y||(J.current=X);let ee=J.current,et=(0,t.useRef)(U);Y||(et.current=U);let eo=(0,t.useMemo)(()=>{if(!$)return{...j,...w};let e=Number.parseInt($[0],10);return{...{marginTop:$[1],insetInlineEnd:-e},...j,...w}},[$,w,j]),er=C??("string"==typeof G||(0,a.isNumber)(G)?G:void 0),en=!Y&&(0===h?M:!!h&&!0!==h),ei=en?t.createElement("span",{className:`${B}-status-text`},h):null,ea=(0,a.isPlainObject)(G)?(0,s.cloneElement)(G,e=>({style:{...eo,...e.style}})):void 0,es=(0,n.isPresetColor)(g,!1),el=(0,r.clsx)(_.indicator,{[`${B}-status-dot`]:q,[`${B}-status-${f}`]:!!f,[`${B}-color-${g}`]:es}),eu={};g&&!es&&(eu.color=g,eu.background=g);let ec=(0,r.clsx)(B,{[`${B}-status`]:q,[`${B}-not-a-wrapper`]:!p,[`${B}-rtl`]:"rtl"===O},S,N,F,_.root,H,D);if(!p&&q&&(h||Z||!V)){let e=eo.color;return t.createElement("span",{ref:u,...P,className:ec,style:{...L.root,...eo}},t.createElement("span",{className:el,style:{...L.indicator,...eu}}),en&&t.createElement("span",{style:{color:e},className:`${B}-status-text`},h))}return t.createElement("span",{ref:u,...P,className:ec,style:L.root},p,t.createElement(o.default,{visible:!Y,motionName:`${B}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:e})=>{let o=T("scroll-number",m),n=et.current,i=(0,r.clsx)(_.indicator,{[`${B}-dot`]:n,[`${B}-count`]:!n,[`${B}-count-sm`]:"small"===x,[`${B}-multiple-words`]:!n&&ee&&ee.toString().length>1,[`${B}-status-${f}`]:!!f,[`${B}-color-${g}`]:es}),a={...L.indicator,...eo};return g&&!es&&((a=a||{}).background=g),t.createElement(d,{prefixCls:o,show:!Y,motionClassName:e,className:i,count:ee,title:er,style:a,key:"scrollNumber"},ea)}),ei)});var k=(0,g.genStyleHooks)(["Badge","Ribbon"],e=>(e=>{let{antCls:t,badgeFontHeight:o,marginXS:r,badgeRibbonOffset:n,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=(0,h.genPresetColor)(e,(e,{darkColor:t})=>({[`&${a}-color-${e}`]:{background:t,color:t}}));return{[s]:{position:"relative"},[a]:{...(0,f.resetComponent)(e),position:"absolute",top:r,padding:`0 ${(0,p.unit)(e.paddingXS)}`,color:e.colorPrimary,lineHeight:(0,p.unit)(o),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-content`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:n,height:n,color:"currentcolor",border:`${(0,p.unit)(i(n).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...l,[`&${a}-placement-end`]:{insetInlineEnd:i(n).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(n).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}})(S(e)),N);R.Ribbon=e=>{let{className:o,prefixCls:a,style:s,color:u,children:c,text:d,placement:m="end",rootClassName:p,styles:f,classNames:h}=e,{getPrefixCls:g,direction:b,className:y,style:v,classNames:x,styles:C}=(0,l.useComponentConfig)("ribbon"),$=g("ribbon",a),w=`${$}-wrapper`,[S,N]=k($,w),E={...e,placement:m},[R,M]=(0,i.useMergeSemantic)([x,h],[C,f],{props:E}),P=(0,n.isPresetColor)(u,!1),T=(0,r.clsx)($,`${$}-placement-${m}`,{[`${$}-rtl`]:"rtl"===b,[`${$}-color-${u}`]:P},o,y,R.indicator),O={},F={};return u&&!P&&(O.background=u,F.color=u),t.createElement("div",{className:(0,r.clsx)(w,p,S,N,R.root),style:M.root},c,t.createElement("div",{className:(0,r.clsx)(T,S),style:{...O,...M.indicator,...v,...s}},t.createElement("span",{className:(0,r.clsx)(`${$}-content`,R.content),style:M.content},d),t.createElement("div",{className:`${$}-corner`,style:F})))},e.s(["Badge",()=>R],268074)},360618,e=>{"use strict";var t=e.i(439214);e.s(["PlusOutlined",()=>t.default])},473657,e=>{"use strict";var t=e.i(191788),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},r=e.i(117716);function n(){return(n=Object.assign.bind()).apply(this,arguments)}let i=t.forwardRef((e,i)=>t.createElement(r.default,n({},e,{ref:i,icon:o})));e.s(["ArrowUpOutlined",()=>i],473657)},688008,e=>{"use strict";e.i(957562);var t=e.i(191248),o=e.i(617796),r=e.i(882474),n=e.i(35384),i=e.i(191788),a=e.i(238570),a=a,s=e.i(440656),l=e.i(967595),u=e.i(391398);let c="text",d=e=>{let[t,a]=(0,o.useControlledState)(e.open||!1,e.open),s=(0,i.useCallback)(t=>{a(o=>{let r="function"==typeof t?t(o):t;return e.onOpenChange?.(r),r})},[e.onOpenChange]);return(0,u.jsx)(r.Form.Item,{shouldUpdate:!0,noStyle:!0,children:o=>{let r=o.getFieldValue(e.name||[]);return(0,u.jsx)(n.Popover,{getPopupContainer:e=>e&&e.parentNode?e.parentNode:e,onOpenChange:e=>s(e),content:(0,u.jsxs)("div",{style:{padding:"4px 0"},children:[e.statusRender?.(r),e.strengthText?(0,u.jsx)("div",{style:{marginTop:10},children:(0,u.jsx)("span",{children:e.strengthText})}):null]}),styles:{root:{width:240}},placement:"rightTop",...e.popoverProps,open:t,children:e.children})}})},m=({fieldProps:e,proFieldProps:t,...o})=>(0,u.jsx)(l.default,{valueType:c,fieldProps:e,fieldConfig:{valueType:c},proFieldProps:t,...o});m.Password=({fieldProps:e,proFieldProps:o,...r})=>{let[n,m]=(0,i.useState)(!1);return e?.statusRender&&r.name?(0,u.jsx)(s.ProConfigProvider,{valueTypeMap:{password:{render:(e,t)=>(0,u.jsx)(a.default,{...t,text:e}),formItemRender:(e,t)=>(0,u.jsx)(a.default,{...t,text:e})}},children:(0,u.jsx)(d,{name:r.name,statusRender:e?.statusRender,popoverProps:e?.popoverProps,strengthText:e?.strengthText,open:n,onOpenChange:m,children:(0,u.jsx)("div",{children:(0,u.jsx)(l.default,{valueType:"password",fieldProps:{...(0,t.omit)(e,["statusRender","popoverProps","strengthText"]),onBlur:t=>{e?.onBlur?.(t),m(!1)},onClick:t=>{e?.onClick?.(t),m(!0)}},proFieldProps:o,fieldConfig:{valueType:c},...r})})})}):(0,u.jsx)(s.ProConfigProvider,{valueTypeMap:{password:{render:(e,t)=>(0,u.jsx)(a.default,{...t,text:e}),formItemRender:(e,t)=>(0,u.jsx)(a.default,{...t,text:e})}},children:(0,u.jsx)(l.default,{valueType:"password",fieldProps:e,proFieldProps:o,fieldConfig:{valueType:c},...r})})},m.displayName="ProFormComponent",e.s(["ProFormText",()=>m],688008)},739217,e=>{"use strict";var t=e.i(191788),o=e.i(551233),o=o,r=e.i(440656),n=e.i(810711),i=e.i(568061),a=e.i(967595),s=e.i(391398);let l=t.default.forwardRef(({fieldProps:e,children:l,params:u,proFieldProps:c,mode:d,valueEnum:m,request:p,options:f,...h},g)=>{let b=e?.mode||d||"multiple",y={options:f,labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label",...e,mode:"single"===b?void 0:b},v=(0,t.useContext)(i.default);return(0,s.jsx)(r.ProConfigProvider,{valueTypeMap:{select:{render:(e,t)=>(0,s.jsx)(o.default,{...t,text:e}),formItemRender:(e,t)=>(0,s.jsx)(o.default,{...t,text:e})}},children:(0,s.jsx)(a.default,{valueEnum:(0,n.runFunction)(m),request:p,params:u,valueType:"select",fieldConfig:{customLightMode:!0},fieldProps:{getPopupContainer:v.getPopupContainer,...y},ref:g,proFieldProps:c,...h,children:l})})}),u=t.default.forwardRef(({fieldProps:e,children:l,params:u,proFieldProps:c,mode:d,valueEnum:m,request:p,showSearch:f,options:h,...g},b)=>{let y=(0,t.useContext)(i.default);return(0,s.jsx)(r.ProConfigProvider,{valueTypeMap:{select:{render:(e,t)=>(0,s.jsx)(o.default,{...t,text:e}),formItemRender:(e,t)=>(0,s.jsx)(o.default,{...t,text:e})}},children:(0,s.jsx)(a.default,{valueEnum:(0,n.runFunction)(m),request:p,params:u,valueType:"select",fieldConfig:{customLightMode:!0},fieldProps:{options:h,mode:d,showSearch:f,getPopupContainer:y.getPopupContainer,...e},ref:b,proFieldProps:c,...g,children:l})})});u.SearchSelect=l,u.displayName="ProFormComponent",e.s(["ProFormSelect",()=>u],739217)},749344,236107,e=>{"use strict";var t=e.i(191788);e.i(117327);var o=e.i(226150),o=o,r=e.i(938667);let n=e=>"object"==typeof e&&null!=e&&1===e.nodeType,i=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,a=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let o,r=getComputedStyle(e,null);return i(r.overflowY,t)||i(r.overflowX,t)||!!(o=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e))&&(o.clientHeight<e.scrollHeight||o.clientWidth<e.scrollWidth)}return!1},s=(e,t,o,r,n,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=o||a>=t&&s>=o?i-e-r:a>t&&s<o||i<e&&s>o?a-t+n:0,l=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},u=(e,t)=>{var o,r,i,u;let c;if("u"<typeof document)return[];let{scrollMode:d,block:m,inline:p,boundary:f,skipOverflowHiddenElements:h}=t,g="function"==typeof f?f:e=>e!==f;if(!n(e))throw TypeError("Invalid target");let b=document.scrollingElement||document.documentElement,y=[],v=e;for(;n(v)&&g(v);){if((v=l(v))===b){y.push(v);break}null!=v&&v===document.body&&a(v)&&!a(document.documentElement)||null!=v&&a(v,h)&&y.push(v)}let x=null!=(r=null==(o=window.visualViewport)?void 0:o.width)?r:innerWidth,C=null!=(u=null==(i=window.visualViewport)?void 0:i.height)?u:innerHeight,{scrollX:$,scrollY:w}=window,{height:S,width:N,top:E,right:R,bottom:k,left:M}=e.getBoundingClientRect(),{top:P,right:T,bottom:O,left:F}={top:parseFloat((c=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(c.scrollMarginRight)||0,bottom:parseFloat(c.scrollMarginBottom)||0,left:parseFloat(c.scrollMarginLeft)||0},j="start"===m||"nearest"===m?E-P:"end"===m?k+O:E+S/2-P+O,I="center"===p?M+N/2-F+T:"end"===p?R+T:M-F,W=[];for(let e=0;e<y.length;e++){let t=y[e],{height:o,width:r,top:n,right:i,bottom:l,left:u}=t.getBoundingClientRect();if("if-needed"===d&&E>=0&&M>=0&&k<=C&&R<=x&&(t===b&&!a(t)||E>=n&&k<=l&&M>=u&&R<=i))break;let c=getComputedStyle(t),f=parseInt(c.borderLeftWidth,10),h=parseInt(c.borderTopWidth,10),g=parseInt(c.borderRightWidth,10),v=parseInt(c.borderBottomWidth,10),P=0,T=0,O="offsetWidth"in t?t.offsetWidth-t.clientWidth-f-g:0,F="offsetHeight"in t?t.offsetHeight-t.clientHeight-h-v:0,B="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,H="offsetHeight"in t?0===t.offsetHeight?0:o/t.offsetHeight:0;if(b===t)P="start"===m?j:"end"===m?j-C:"nearest"===m?s(w,w+C,C,h,v,w+j,w+j+S,S):j-C/2,T="start"===p?I:"center"===p?I-x/2:"end"===p?I-x:s($,$+x,x,f,g,$+I,$+I+N,N),P=Math.max(0,P+w),T=Math.max(0,T+$);else{P="start"===m?j-n-h:"end"===m?j-l+v+F:"nearest"===m?s(n,l,o,h,v+F,j,j+S,S):j-(n+o/2)+F/2,T="start"===p?I-u-f:"center"===p?I-(u+r/2)+O/2:"end"===p?I-i+g+O:s(u,i,r,f,g+O,I,I+N,N);let{scrollLeft:e,scrollTop:a}=t;P=0===H?0:Math.max(0,Math.min(a+P/H,t.scrollHeight-o/H+F)),T=0===B?0:Math.max(0,Math.min(e+T/B,t.scrollWidth-r/B+O)),j+=a-P,I+=e-T}W.push({el:t,top:P,left:T})}return W},c=["parentNode"];function d(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function m(e,t){if(!e.length)return;let o=e.join("_");return t?`${t}_${o}`:c.includes(o)?`form_item_${o}`:o}function p(e){return d(e).join("_")}function f(e,t){let o=t.getFieldInstance(e),n=(0,r.getDOM)(o);if(n)return n;let i=m(d(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}e.s(["getFieldId",0,m,"getStatus",0,function(e,t,o,r,n,i){let a=r;return void 0!==i?a=i:o.validating?a="validating":e.length?a="error":t.length?a="warning":(o.touched||n&&o.validated)&&(a="success"),a},"toArray",0,d],236107),e.s(["default",0,function(e){let[r]=(0,o.default)(),n=t.useRef({}),i=t.useMemo(()=>e??{...r,__INTERNAL__:{itemRef:e=>t=>{let o=p(e);t?n.current[o]=t:delete n.current[o]}},scrollToField:(e,t={})=>{let{focus:o,...r}=t,n=f(e,i);n&&(!function(e,t){let o;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let r={top:parseFloat((o=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0};if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(u(e,t));let n="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:o,top:i,left:a}of u(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=i-r.top+r.bottom,t=a-r.left+r.right;o.scroll({top:e,left:t,behavior:n})}}(n,{scrollMode:"if-needed",block:"nearest",...r}),o&&i.focusField(e))},focusField:e=>{let t=i.getFieldInstance(e);"function"==typeof t?.focus?t.focus():f(e,i)?.focus?.()},getFieldInstance:e=>{let t=p(e);return n.current[t]}},[e,r]);return[i]},"toNamePathStr",0,p],749344)},778141,e=>{"use strict";e.s(["omitUndefined",0,e=>{let t={};if(Object.keys(e||{}).forEach(o=>{void 0!==e[o]&&(t[o]=e[o])}),!(Object.keys(t).length<1))return t}])},784680,e=>{"use strict";var t=e.i(191788),o=e.i(201962),o=o,r=e.i(440656),n=e.i(967595),i=e.i(391398),a=t.default.forwardRef(({fieldProps:e,proFieldProps:t,...a},s)=>(0,i.jsx)(r.ProConfigProvider,{valueTypeMap:{textarea:{render:(e,t)=>(0,i.jsx)(o.default,{...t,text:e}),formItemRender:(e,t)=>(0,i.jsx)(o.default,{...t,text:e})}},children:(0,i.jsx)(n.default,{ref:s,valueType:"textarea",fieldProps:e,proFieldProps:t,...a})}));e.s(["ProFormTextArea",()=>a],784680)},952020,e=>{"use strict";var t=e.i(191788),o=e.i(948123),r=e.i(465235),n=e.i(895564),i=e.i(456298),a=class extends n.Subscribable{#e;#t=void 0;#o;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,i.shallowEqualObjects)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#o,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,i.hashKey)(t.mutationKey)!==(0,i.hashKey)(this.options.mutationKey)?this.reset():this.#o?.state.status==="pending"&&this.#o.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#o?.removeObserver(this)}onMutationUpdate(e){this.#n(),this.#i(e)}getCurrentResult(){return this.#t}reset(){this.#o?.removeObserver(this),this.#o=void 0,this.#n(),this.#i()}mutate(e,t){return this.#r=t,this.#o?.removeObserver(this),this.#o=this.#e.getMutationCache().build(this.#e,this.options),this.#o.addObserver(this),this.#o.execute(e)}#n(){let e=this.#o?.state??(0,o.getDefaultState)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#i(e){r.notifyManager.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,o=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#r.onSuccess?.(e.data,t,o,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,o,r)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#r.onError?.(e.error,t,o,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,o,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},s=e.i(755224);e.s(["useMutation",0,function(e,o){let n=(0,s.useQueryClient)(o),[l]=t.useState(()=>new a(n,e));t.useEffect(()=>{l.setOptions(e)},[l,e]);let u=t.useSyncExternalStore(t.useCallback(e=>l.subscribe(r.notifyManager.batchCalls(e)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),c=t.useCallback((e,t)=>{l.mutate(e,t).catch(i.noop)},[l]);if(u.error&&(0,i.shouldThrowError)(l.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:c,mutateAsync:u.mutate}}],952020)},977892,e=>{"use strict";var t=e.i(677057);e.s(["LoadingOutlined",()=>t.default])}]);