-
Notifications
You must be signed in to change notification settings - Fork 0
/
bb50aa648ff7faf6851809b20abc8da032114efe-b6f96d9edfa77b5f1d7f.js
2 lines (2 loc) · 136 KB
/
bb50aa648ff7faf6851809b20abc8da032114efe-b6f96d9edfa77b5f1d7f.js
1
2
"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[745],{3795:function(e,t,n){var o;n.d(t,{Tm:function(){return a}});var r=n(7378);const{isValidElement:i}=o||(o=n.t(r,2));function a(e,t){return function(e,t,n){return i(e)?r.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}},2301:function(e,t,n){n.d(t,{Z:function(){return Y}});var o=n(5773),r=n(7378),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=n(5922),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l),s=n(42),u=n.n(s),d=n(1026),f=n(649),p=n(3940),m=n(4391),v=n(4485),h=n(8808),g=n(7406),b=n(4649),y=n(3395),w=n(8730),x=r.forwardRef((function(e,t){var n,o=e.prefixCls,i=e.forceRender,a=e.className,l=e.style,c=e.children,s=e.isActive,f=e.role,p=r.useState(s||i),m=(0,d.Z)(p,2),v=m[0],h=m[1];return r.useEffect((function(){(i||s)&&h(!0)}),[i,s]),v?r.createElement("div",{ref:t,className:u()("".concat(o,"-content"),(n={},(0,b.Z)(n,"".concat(o,"-content-active"),s),(0,b.Z)(n,"".concat(o,"-content-inactive"),!s),n),a),style:l,role:f},r.createElement("div",{className:"".concat(o,"-content-box")},c)):null}));x.displayName="PanelContent";var E=x,C=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],S=r.forwardRef((function(e,t){var n,i,a=e.showArrow,l=void 0===a||a,c=e.headerClass,s=e.isActive,d=e.onItemClick,f=e.forceRender,p=e.className,m=e.prefixCls,v=e.collapsible,g=e.accordion,x=e.panelKey,S=e.extra,Z=e.header,$=e.expandIcon,M=e.openMotion,O=e.destroyInactivePanel,I=e.children,P=(0,h.Z)(e,C),R="disabled"===v,k="header"===v,N="icon"===v,_=null!=S&&"boolean"!=typeof S,D=function(){null==d||d(x)},T="function"==typeof $?$(e):r.createElement("i",{className:"arrow"});T&&(T=r.createElement("div",{className:"".concat(m,"-expand-icon"),onClick:["header","icon"].includes(v)?D:void 0},T));var z=u()((n={},(0,b.Z)(n,"".concat(m,"-item"),!0),(0,b.Z)(n,"".concat(m,"-item-active"),s),(0,b.Z)(n,"".concat(m,"-item-disabled"),R),n),p),H={className:u()(c,(i={},(0,b.Z)(i,"".concat(m,"-header"),!0),(0,b.Z)(i,"".concat(m,"-header-collapsible-only"),k),(0,b.Z)(i,"".concat(m,"-icon-collapsible-only"),N),i)),"aria-expanded":s,"aria-disabled":R,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==w.Z.ENTER&&e.which!==w.Z.ENTER||D()}};return k||N||(H.onClick=D,H.role=g?"tab":"button",H.tabIndex=R?-1:0),r.createElement("div",(0,o.Z)({},P,{ref:t,className:z}),r.createElement("div",H,l&&T,r.createElement("span",{className:"".concat(m,"-header-text"),onClick:"header"===v?D:void 0},Z),_&&r.createElement("div",{className:"".concat(m,"-extra")},S)),r.createElement(y.ZP,(0,o.Z)({visible:s,leavedClassName:"".concat(m,"-content-hidden")},M,{forceRender:f,removeOnLeave:O}),(function(e,t){var n=e.className,o=e.style;return r.createElement(E,{ref:t,prefixCls:m,className:n,style:o,isActive:s,forceRender:f,role:g?"tabpanel":void 0},I)})))})),Z=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];var $=function(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,i=t.accordion,a=t.collapsible,l=t.destroyInactivePanel,c=t.onItemClick,s=t.activeKey,u=t.openMotion,d=t.expandIcon;return e.map((function(e,t){var f=e.children,p=e.label,m=e.key,v=e.collapsible,g=e.onItemClick,b=e.destroyInactivePanel,y=(0,h.Z)(e,Z),w=String(null!=m?m:t),x=null!=v?v:a,E=null!=b?b:l,C=!1;return C=i?s[0]===w:s.indexOf(w)>-1,r.createElement(S,(0,o.Z)({},y,{prefixCls:n,key:w,panelKey:w,isActive:C,accordion:i,openMotion:u,expandIcon:d,header:p,collapsible:x,onItemClick:function(e){"disabled"!==x&&(c(e),null==g||g(e))},destroyInactivePanel:E}),f)}))}(e,n):(0,g.Z)(t).map((function(e,t){return function(e,t,n){if(!e)return null;var o=n.prefixCls,i=n.accordion,a=n.collapsible,l=n.destroyInactivePanel,c=n.onItemClick,s=n.activeKey,u=n.openMotion,d=n.expandIcon,f=e.key||String(t),p=e.props,m=p.header,v=p.headerClass,h=p.destroyInactivePanel,g=p.collapsible,b=p.onItemClick,y=!1;y=i?s[0]===f:s.indexOf(f)>-1;var w=null!=g?g:a,x={key:f,panelKey:f,header:m,headerClass:v,isActive:y,prefixCls:o,destroyInactivePanel:null!=h?h:l,openMotion:u,accordion:i,children:e.props.children,onItemClick:function(e){"disabled"!==w&&(c(e),null==b||b(e))},expandIcon:d,collapsible:w};return"string"==typeof e.type?e:(Object.keys(x).forEach((function(e){void 0===x[e]&&delete x[e]})),r.cloneElement(e,x))}(e,t,n)}))};function M(e){var t=e;if(!Array.isArray(t)){var n=(0,p.Z)(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var O=r.forwardRef((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-collapse":n,i=e.destroyInactivePanel,a=void 0!==i&&i,l=e.style,c=e.accordion,s=e.className,p=e.children,h=e.collapsible,g=e.openMotion,b=e.expandIcon,y=e.activeKey,w=e.defaultActiveKey,x=e.onChange,E=e.items,C=u()(o,s),S=(0,m.Z)([],{value:y,onChange:function(e){return null==x?void 0:x(e)},defaultValue:w,postState:M}),Z=(0,d.Z)(S,2),O=Z[0],I=Z[1];(0,v.ZP)(!p,"`children` will be removed in next major version. Please use `items` instead.");var P=$(E,p,{prefixCls:o,accordion:c,openMotion:g,expandIcon:b,collapsible:h,destroyInactivePanel:a,onItemClick:function(e){return I((function(){return c?O[0]===e?[]:[e]:O.indexOf(e)>-1?O.filter((function(t){return t!==e})):[].concat((0,f.Z)(O),[e])}))},activeKey:O});return r.createElement("div",{ref:t,className:C,style:l,role:c?"tablist":void 0},P)})),I=Object.assign(O,{Panel:S}),P=I,R=(I.Panel,n(2445)),k=n(821),N=n(3795),_=n(6775),D=n(1347);var T=r.forwardRef(((e,t)=>{const{getPrefixCls:n}=r.useContext(_.E_),{prefixCls:o,className:i,showArrow:a=!0}=e,l=n("collapse",o),c=u()({[`${l}-no-arrow`]:!a},i);return r.createElement(P.Panel,Object.assign({ref:t},e,{prefixCls:l,className:c}))})),z=n(2457);var H=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),j=n(6117),A=n(5515);const L=e=>{const{componentCls:t,contentBg:n,padding:o,headerBg:r,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:s,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:m,fontSize:v,fontSizeLG:h,lineHeight:g,marginSM:b,paddingSM:y,paddingLG:w,paddingXS:x,motionDurationSlow:E,fontSizeIcon:C,contentPadding:S}=e,Z=`${s}px ${u} ${d}`;return{[t]:Object.assign(Object.assign({},(0,z.Wf)(e)),{backgroundColor:r,border:Z,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:Z,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:g,cursor:"pointer",transition:`all ${E}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:v*g,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},(0,z.Ro)()),{fontSize:C,svg:{transition:`transform ${E}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:Z,[`& > ${t}-content-box`]:{padding:S},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:y-x}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:h,[`> ${t}-header`]:{padding:l,paddingInlineStart:o,[`> ${t}-expand-icon`]:{height:h*g,marginInlineStart:w-o}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},B=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},F=e=>{const{componentCls:t,headerBg:n,paddingXXS:o,colorBorder:r}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${r}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},V=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var W=(0,j.Z)("Collapse",(e=>{const t=(0,A.TS)(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[L(t),F(t),V(t),B(t),H(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const K=r.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:o,collapse:i}=r.useContext(_.E_),{prefixCls:a,className:l,rootClassName:s,style:d,bordered:f=!0,ghost:p,size:m,expandIconPosition:v="start",children:h,expandIcon:b}=e,y=(0,D.Z)((e=>{var t;return null!==(t=null!=m?m:e)&&void 0!==t?t:"middle"})),w=n("collapse",a),x=n(),[E,C]=W(w),S=r.useMemo((()=>"left"===v?"start":"right"===v?"end":v),[v]),Z=u()(`${w}-icon-position-${S}`,{[`${w}-borderless`]:!f,[`${w}-rtl`]:"rtl"===o,[`${w}-ghost`]:!!p,[`${w}-${y}`]:"middle"!==y},null==i?void 0:i.className,l,s,C),$=Object.assign(Object.assign({},(0,k.Z)(x)),{motionAppear:!1,leavedClassName:`${w}-content-hidden`}),M=r.useMemo((()=>h?(0,g.Z)(h).map(((e,t)=>{var n,o;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(o=e.key)&&void 0!==o?o:String(t),{disabled:r,collapsible:i}=e.props,a=Object.assign(Object.assign({},(0,R.Z)(e.props,["disabled"])),{key:n,collapsible:null!=i?i:r?"disabled":void 0});return(0,N.Tm)(e,a)}return e})):null),[h]);return E(r.createElement(P,Object.assign({ref:t,openMotion:$},(0,R.Z)(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=b?b(e):r.createElement(c,{rotate:e.isActive?90:void 0});return(0,N.Tm)(t,(()=>({className:u()(t.props.className,`${w}-arrow`)})))},prefixCls:w,className:Z,style:Object.assign(Object.assign({},null==i?void 0:i.style),d)}),M))}));var Y=Object.assign(K,{Panel:T})},1887:function(e,t,n){n.d(t,{n:function(){return i}});var o=n(7378);const r=o.createContext(!1),i=e=>{let{children:t,disabled:n}=e;const i=o.useContext(r);return o.createElement(r.Provider,{value:null!=n?n:i},t)};t.Z=r},8850:function(e,t,n){n.d(t,{ZP:function(){return A}});var o=n(548),r=n(7460),i=n(8805),a=n(6275),l=n(7378),c=(0,l.createContext)(void 0),s=n(8609);let u=Object.assign({},s.Z.Modal),d=[];const f=()=>d.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),s.Z.Modal);var p=n(3321);var m=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;l.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return d.push(t),u=f(),()=>{d=d.filter((e=>e!==t)),u=f()}}u=Object.assign({},s.Z.Modal)}(t&&t.Modal);return e}),[t]);const r=l.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return l.createElement(p.Z.Provider,{value:r},n)},v=n(3186),h=n(9725),g=n(6775),b=n(96),y=n(8645),w=n(8554),x=n(3010);const E=`-ant-${Date.now()}-${Math.random()}`;function C(e,t){const n=function(e,t){const n={},o=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},r=(e,t)=>{const r=new y.C(e),i=(0,b.R_)(r.toRgbString());n[`${t}-color`]=o(r),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=r.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new y.C(t.primaryColor),i=(0,b.R_)(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=o(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=o(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=o(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=o(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=o(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new y.C(i[0]);n["primary-color-active-deprecated-f-30"]=o(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=o(a,(e=>e.darken(2)))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);(0,w.Z)()&&(0,x.hq)(n,`${E}-dynamic-theme`)}var S=n(1887),Z=n(1552);var $=function(){return{componentDisabled:(0,l.useContext)(S.Z),componentSize:(0,l.useContext)(Z.Z)}},M=n(6882);var O=n(3395),I=n(6318);function P(e){const{children:t}=e,[,n]=(0,I.Z)(),{motion:o}=n,r=l.useRef(!1);return r.current=r.current||!1===o,r.current?l.createElement(O.zt,{motion:o},t):t}var R=n(7755),k=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const N=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];let _,D,T;function z(){return _||"ant"}const H=e=>{const{children:t,csp:n,autoInsertSpaceInButton:u,alert:d,anchor:f,form:p,locale:b,componentSize:y,direction:w,space:x,virtual:E,dropdownMatchSelectWidth:C,popupMatchSelectWidth:$,popupOverflow:O,legacyLocale:I,parentContext:_,iconPrefixCls:D,theme:T,componentDisabled:z,segmented:H,statistic:j,spin:A,calendar:L,carousel:B,cascader:F,collapse:V,typography:W,checkbox:K,descriptions:Y,divider:X,drawer:G,skeleton:U,steps:q,image:Q,layout:J,list:ee,mentions:te,modal:ne,progress:oe,result:re,slider:ie,breadcrumb:ae,menu:le,pagination:ce,input:se,empty:ue,badge:de,radio:fe,rate:pe,switch:me,transfer:ve,avatar:he,message:ge,tag:be,table:ye,card:we,tabs:xe,timeline:Ee,timePicker:Ce,upload:Se,notification:Ze,tree:$e,colorPicker:Me,datePicker:Oe,wave:Ie}=e;const Pe=l.useCallback(((t,n)=>{const{prefixCls:o}=e;if(n)return n;const r=o||_.getPrefixCls("");return t?`${r}-${t}`:r}),[_.getPrefixCls,e.prefixCls]),Re=D||_.iconPrefixCls||g.oR,ke=Re!==_.iconPrefixCls,Ne=n||_.csp,_e=(0,R.Z)(Re,Ne),De=function(e,t){const n=e||{},o=!1!==n.inherit&&t?t:v.u_;return(0,i.Z)((()=>{if(!e)return t;const r=Object.assign({},o.components);return Object.keys(e.components||{}).forEach((t=>{r[t]=Object.assign(Object.assign({},r[t]),e.components[t])})),Object.assign(Object.assign(Object.assign({},o),n),{token:Object.assign(Object.assign({},o.token),n.token),components:r})}),[n,o],((e,t)=>e.some(((e,n)=>{const o=t[n];return!(0,M.Z)(e,o,!0)}))))}(T,_.theme);const Te={csp:Ne,autoInsertSpaceInButton:u,alert:d,anchor:f,locale:b||I,direction:w,space:x,virtual:E,popupMatchSelectWidth:null!=$?$:C,popupOverflow:O,getPrefixCls:Pe,iconPrefixCls:Re,theme:De,segmented:H,statistic:j,spin:A,calendar:L,carousel:B,cascader:F,collapse:V,typography:W,checkbox:K,descriptions:Y,divider:X,drawer:G,skeleton:U,steps:q,image:Q,input:se,layout:J,list:ee,mentions:te,modal:ne,progress:oe,result:re,slider:ie,breadcrumb:ae,menu:le,pagination:ce,empty:ue,badge:de,radio:fe,rate:pe,switch:me,transfer:ve,avatar:he,message:ge,tag:be,table:ye,card:we,tabs:xe,timeline:Ee,timePicker:Ce,upload:Se,notification:Ze,tree:$e,colorPicker:Me,datePicker:Oe,wave:Ie},ze=Object.assign({},_);Object.keys(Te).forEach((e=>{void 0!==Te[e]&&(ze[e]=Te[e])})),N.forEach((t=>{const n=e[t];n&&(ze[t]=n)}));const He=(0,i.Z)((()=>ze),ze,((e,t)=>{const n=Object.keys(e),o=Object.keys(t);return n.length!==o.length||n.some((n=>e[n]!==t[n]))})),je=l.useMemo((()=>({prefixCls:Re,csp:Ne})),[Re,Ne]);let Ae=ke?_e(t):t;const Le=l.useMemo((()=>{var e,t,n,o;return(0,a.T)((null===(e=s.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=He.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(o=He.form)||void 0===o?void 0:o.validateMessages)||{},(null==p?void 0:p.validateMessages)||{})}),[He,null==p?void 0:p.validateMessages]);Object.keys(Le).length>0&&(Ae=l.createElement(c.Provider,{value:Le},t)),b&&(Ae=l.createElement(m,{locale:b,_ANT_MARK__:"internalMark"},Ae)),(Re||Ne)&&(Ae=l.createElement(r.Z.Provider,{value:je},Ae)),y&&(Ae=l.createElement(Z.q,{size:y},Ae)),Ae=l.createElement(P,null,Ae);const Be=l.useMemo((()=>{const e=De||{},{algorithm:t,token:n,components:r}=e,i=k(e,["algorithm","token","components"]),a=t&&(!Array.isArray(t)||t.length>0)?(0,o.jG)(t):v.uH,l={};return Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=(0,o.jG)(r.algorithm)),delete r.algorithm),l[t]=r})),Object.assign(Object.assign({},i),{theme:a,token:Object.assign(Object.assign({},h.Z),n),components:l})}),[De]);return T&&(Ae=l.createElement(v.Mj.Provider,{value:Be},Ae)),void 0!==z&&(Ae=l.createElement(S.n,{disabled:z},Ae)),l.createElement(g.E_.Provider,{value:He},Ae)},j=e=>{const t=l.useContext(g.E_),n=l.useContext(p.Z);return l.createElement(H,Object.assign({parentContext:t,legacyLocale:n},e))};j.ConfigContext=g.E_,j.SizeContext=Z.Z,j.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:o}=e;void 0!==t&&(_=t),void 0!==n&&(D=n),o&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(o)?T=o:C(z(),o))},j.useConfig=$,Object.defineProperty(j,"SizeContext",{get:()=>Z.Z});var A=j},3321:function(e,t,n){const o=(0,n(7378).createContext)(void 0);t.Z=o},8609:function(e,t,n){n.d(t,{Z:function(){return l}});var o={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};var r={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};const i={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},o),timePickerLocale:Object.assign({},r)};const a="${label} is not a valid ${type}";var l={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:i,TimePicker:r,Calendar:i,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:a,method:a,array:a,object:a,number:a,date:a,boolean:a,integer:a,float:a,regexp:a,email:a,url:a,hex:a},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}}},2865:function(e,t,n){n.d(t,{Z:function(){return Lo}});var o=n(42),r=n.n(o),i=n(5773),a=n(649),l=n(4649),c=n(189),s=n(1026),u=n(8808),d=n(3940),f=n(4391),p=n(4485),m=n(7378),v=n.t(m,2),h=n(9664),g=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))},b=n(8730),y=n(9986),w=function(e){var t,n=e.className,o=e.customizeIcon,i=e.customizeIconProps,a=e.onMouseDown,l=e.onClick,c=e.children;return t="function"==typeof o?o(i):o,m.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),a&&a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==t?t:m.createElement("span",{className:r()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},c))};var x=m.createContext(null);function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=m.useRef(null),n=m.useRef(null);return m.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var C=n(1864),S=n(7406),Z=n(2738),$=n(7329),M=new Map;var O=new $.Z((function(e){e.forEach((function(e){var t,n=e.target;null===(t=M.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var I=n(2951),P=n(1976),R=n(7591),k=n(9616),N=function(e){(0,R.Z)(n,e);var t=(0,k.Z)(n);function n(){return(0,I.Z)(this,n),t.apply(this,arguments)}return(0,P.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(m.Component),_=m.createContext(null);function D(e,t){var n=e.children,o=e.disabled,r=m.useRef(null),i=m.useRef(null),a=m.useContext(_),l="function"==typeof n,s=l?n(r):n,u=m.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&m.isValidElement(s)&&(0,y.Yr)(s),f=d?s.ref:null,p=m.useMemo((function(){return(0,y.sQ)(f,r)}),[f,r]),v=function(){return(0,Z.Z)(r.current)||(0,Z.Z)(i.current)};m.useImperativeHandle(t,(function(){return v()}));var h=m.useRef(e);h.current=e;var g=m.useCallback((function(e){var t=h.current,n=t.onResize,o=t.data,r=e.getBoundingClientRect(),i=r.width,l=r.height,s=e.offsetWidth,d=e.offsetHeight,f=Math.floor(i),p=Math.floor(l);if(u.current.width!==f||u.current.height!==p||u.current.offsetWidth!==s||u.current.offsetHeight!==d){var m={width:f,height:p,offsetWidth:s,offsetHeight:d};u.current=m;var v=s===Math.round(i)?i:s,g=d===Math.round(l)?l:d,b=(0,c.Z)((0,c.Z)({},m),{},{offsetWidth:v,offsetHeight:g});null==a||a(b,e,o),n&&Promise.resolve().then((function(){n(b,e)}))}}),[]);return m.useEffect((function(){var e,t,n=v();return n&&!o&&(e=n,t=g,M.has(e)||(M.set(e,new Set),O.observe(e)),M.get(e).add(t)),function(){return function(e,t){M.has(e)&&(M.get(e).delete(t),M.get(e).size||(O.unobserve(e),M.delete(e)))}(n,g)}}),[r.current,o]),m.createElement(N,{ref:i},d?m.cloneElement(s,{ref:p}):s)}var T=m.forwardRef(D);function z(e,t){var n=e.children;return("function"==typeof n?[n]:(0,S.Z)(n)).map((function(n,o){var r=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return m.createElement(T,(0,i.Z)({},e,{key:r,ref:0===o?t:void 0}),n)}))}var H=m.forwardRef(z);H.Collection=function(e){var t=e.children,n=e.onBatchResize,o=m.useRef(0),r=m.useRef([]),i=m.useContext(_),a=m.useCallback((function(e,t,a){o.current+=1;var l=o.current;r.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){l===o.current&&(null==n||n(r.current),r.current=[])})),null==i||i(e,t,a)}),[n,i]);return m.createElement(_.Provider,{value:a},t)};var j=H,A=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],L=void 0;function B(e,t){var n=e.prefixCls,o=e.invalidate,a=e.item,l=e.renderItem,s=e.responsive,d=e.responsiveDisabled,f=e.registerSize,p=e.itemKey,v=e.className,h=e.style,g=e.children,b=e.display,y=e.order,w=e.component,x=void 0===w?"div":w,E=(0,u.Z)(e,A),C=s&&!b;function S(e){f(p,e)}m.useEffect((function(){return function(){S(null)}}),[]);var Z,$=l&&a!==L?l(a):g;o||(Z={opacity:C?0:1,height:C?0:L,overflowY:C?"hidden":L,order:s?y:L,pointerEvents:C?"none":L,position:C?"absolute":L});var M={};C&&(M["aria-hidden"]=!0);var O=m.createElement(x,(0,i.Z)({className:r()(!o&&n,v),style:(0,c.Z)((0,c.Z)({},Z),h)},M,E,{ref:t}),$);return s&&(O=m.createElement(j,{onResize:function(e){S(e.offsetWidth)},disabled:d},O)),O}var F=m.forwardRef(B);F.displayName="Item";var V=F,W=n(4771),K=n(1542),Y=n(4068);function X(){var e=m.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)(0,Y.Z)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,K.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function G(e,t){var n=m.useState(t),o=(0,s.Z)(n,2),r=o[0],i=o[1];return[r,(0,W.Z)((function(t){e((function(){i(t)}))}))]}var U=m.createContext(null),q=["component"],Q=["className"],J=["className"],ee=function(e,t){var n=m.useContext(U);if(!n){var o=e.component,a=void 0===o?"div":o,l=(0,u.Z)(e,q);return m.createElement(a,(0,i.Z)({},l,{ref:t}))}var c=n.className,s=(0,u.Z)(n,Q),d=e.className,f=(0,u.Z)(e,J);return m.createElement(U.Provider,{value:null},m.createElement(V,(0,i.Z)({ref:t,className:r()(c,d)},s,f)))},te=m.forwardRef(ee);te.displayName="RawItem";var ne=te,oe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],re="responsive",ie="invalidate";function ae(e){return"+ ".concat(e.length," ...")}function le(e,t){var n=e.prefixCls,o=void 0===n?"rc-overflow":n,a=e.data,l=void 0===a?[]:a,d=e.renderItem,f=e.renderRawItem,p=e.itemKey,v=e.itemWidth,g=void 0===v?10:v,b=e.ssr,y=e.style,w=e.className,x=e.maxCount,E=e.renderRest,C=e.renderRawRest,S=e.suffix,Z=e.component,$=void 0===Z?"div":Z,M=e.itemComponent,O=e.onVisibleChange,I=(0,u.Z)(e,oe),P="full"===b,R=X(),k=G(R,null),N=(0,s.Z)(k,2),_=N[0],D=N[1],T=_||0,z=G(R,new Map),H=(0,s.Z)(z,2),A=H[0],L=H[1],B=G(R,0),F=(0,s.Z)(B,2),W=F[0],K=F[1],Y=G(R,0),q=(0,s.Z)(Y,2),Q=q[0],J=q[1],ee=G(R,0),te=(0,s.Z)(ee,2),ne=te[0],le=te[1],ce=(0,m.useState)(null),se=(0,s.Z)(ce,2),ue=se[0],de=se[1],fe=(0,m.useState)(null),pe=(0,s.Z)(fe,2),me=pe[0],ve=pe[1],he=m.useMemo((function(){return null===me&&P?Number.MAX_SAFE_INTEGER:me||0}),[me,_]),ge=(0,m.useState)(!1),be=(0,s.Z)(ge,2),ye=be[0],we=be[1],xe="".concat(o,"-item"),Ee=Math.max(W,Q),Ce=x===re,Se=l.length&&Ce,Ze=x===ie,$e=Se||"number"==typeof x&&l.length>x,Me=(0,m.useMemo)((function(){var e=l;return Se?e=null===_&&P?l:l.slice(0,Math.min(l.length,T/g)):"number"==typeof x&&(e=l.slice(0,x)),e}),[l,g,_,x,Se]),Oe=(0,m.useMemo)((function(){return Se?l.slice(he+1):l.slice(Me.length)}),[l,Me,Se,he]),Ie=(0,m.useCallback)((function(e,t){var n;return"function"==typeof p?p(e):null!==(n=p&&(null==e?void 0:e[p]))&&void 0!==n?n:t}),[p]),Pe=(0,m.useCallback)(d||function(e){return e},[d]);function Re(e,t,n){(me!==e||void 0!==t&&t!==ue)&&(ve(e),n||(we(e<l.length-1),null==O||O(e)),void 0!==t&&de(t))}function ke(e,t){L((function(n){var o=new Map(n);return null===t?o.delete(e):o.set(e,t),o}))}function Ne(e){return A.get(Ie(Me[e],e))}(0,h.Z)((function(){if(T&&"number"==typeof Ee&&Me){var e=ne,t=Me.length,n=t-1;if(!t)return void Re(0,null);for(var o=0;o<t;o+=1){var r=Ne(o);if(P&&(r=r||0),void 0===r){Re(o-1,void 0,!0);break}if(e+=r,0===n&&e<=T||o===n-1&&e+Ne(n)<=T){Re(n,null);break}if(e+Ee>T){Re(o-1,e-r-ne+Q);break}}S&&Ne(0)+ne>T&&de(null)}}),[T,A,Q,ne,Ie,Me]);var _e=ye&&!!Oe.length,De={};null!==ue&&Se&&(De={position:"absolute",left:ue,top:0});var Te,ze={prefixCls:xe,responsive:Se,component:M,invalidate:Ze},He=f?function(e,t){var n=Ie(e,t);return m.createElement(U.Provider,{key:n,value:(0,c.Z)((0,c.Z)({},ze),{},{order:t,item:e,itemKey:n,registerSize:ke,display:t<=he})},f(e,t))}:function(e,t){var n=Ie(e,t);return m.createElement(V,(0,i.Z)({},ze,{order:t,key:n,item:e,renderItem:Pe,itemKey:n,registerSize:ke,display:t<=he}))},je={order:_e?he:Number.MAX_SAFE_INTEGER,className:"".concat(xe,"-rest"),registerSize:function(e,t){J(t),K(Q)},display:_e};if(C)C&&(Te=m.createElement(U.Provider,{value:(0,c.Z)((0,c.Z)({},ze),je)},C(Oe)));else{var Ae=E||ae;Te=m.createElement(V,(0,i.Z)({},ze,je),"function"==typeof Ae?Ae(Oe):Ae)}var Le=m.createElement($,(0,i.Z)({className:r()(!Ze&&o,w),style:y,ref:t},I),Me.map(He),$e?Te:null,S&&m.createElement(V,(0,i.Z)({},ze,{responsive:Ce,responsiveDisabled:!Se,order:he,className:"".concat(xe,"-suffix"),registerSize:function(e,t){le(t)},display:!0,style:De}),S));return Ce&&(Le=m.createElement(j,{onResize:function(e,t){D(t.clientWidth)},disabled:!Se},Le)),Le}var ce=m.forwardRef(le);ce.displayName="Overflow",ce.Item=ne,ce.RESPONSIVE=re,ce.INVALIDATE=ie;var se=ce,ue=function(e,t){var n,o,i=e.prefixCls,a=e.id,l=e.inputElement,s=e.disabled,u=e.tabIndex,d=e.autoFocus,f=e.autoComplete,v=e.editable,h=e.activeDescendantId,g=e.value,b=e.maxLength,w=e.onKeyDown,x=e.onMouseDown,E=e.onChange,C=e.onPaste,S=e.onCompositionStart,Z=e.onCompositionEnd,$=e.open,M=e.attrs,O=l||m.createElement("input",null),I=O,P=I.ref,R=I.props,k=R.onKeyDown,N=R.onChange,_=R.onMouseDown,D=R.onCompositionStart,T=R.onCompositionEnd,z=R.style;return(0,p.Kp)(!("maxLength"in O.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),O=m.cloneElement(O,(0,c.Z)((0,c.Z)((0,c.Z)({type:"search"},R),{},{id:a,ref:(0,y.sQ)(t,P),disabled:s,tabIndex:u,autoComplete:f||"off",autoFocus:d,className:r()("".concat(i,"-selection-search-input"),null===(n=O)||void 0===n||null===(o=n.props)||void 0===o?void 0:o.className),role:"combobox","aria-label":"Search","aria-expanded":$||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":$?h:void 0},M),{},{value:v?g:"",maxLength:b,readOnly:!v,unselectable:v?null:"on",style:(0,c.Z)((0,c.Z)({},z),{},{opacity:v?null:0}),onKeyDown:function(e){w(e),k&&k(e)},onMouseDown:function(e){x(e),_&&_(e)},onChange:function(e){E(e),N&&N(e)},onCompositionStart:function(e){S(e),D&&D(e)},onCompositionEnd:function(e){Z(e),T&&T(e)},onPaste:C}))},de=m.forwardRef(ue);de.displayName="Input";var fe=de;function pe(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var me="undefined"!=typeof window&&window.document&&window.document.documentElement;function ve(e){return["string","number"].includes((0,d.Z)(e))}function he(e){var t=void 0;return e&&(ve(e.title)?t=e.title.toString():ve(e.label)&&(t=e.label.toString())),t}function ge(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var be=function(e){e.preventDefault(),e.stopPropagation()},ye=function(e){var t,n,o=e.id,i=e.prefixCls,a=e.values,c=e.open,u=e.searchValue,d=e.autoClearSearchValue,f=e.inputRef,p=e.placeholder,v=e.disabled,h=e.mode,g=e.showSearch,b=e.autoFocus,y=e.autoComplete,x=e.activeDescendantId,E=e.tabIndex,S=e.removeIcon,Z=e.maxTagCount,$=e.maxTagTextLength,M=e.maxTagPlaceholder,O=void 0===M?function(e){return"+ ".concat(e.length," ...")}:M,I=e.tagRender,P=e.onToggleOpen,R=e.onRemove,k=e.onInputChange,N=e.onInputPaste,_=e.onInputKeyDown,D=e.onInputMouseDown,T=e.onInputCompositionStart,z=e.onInputCompositionEnd,H=m.useRef(null),j=(0,m.useState)(0),A=(0,s.Z)(j,2),L=A[0],B=A[1],F=(0,m.useState)(!1),V=(0,s.Z)(F,2),W=V[0],K=V[1],Y="".concat(i,"-selection"),X=c||"multiple"===h&&!1===d||"tags"===h?u:"",G="tags"===h||"multiple"===h&&!1===d||g&&(c||W);function U(e,t,n,o,i){return m.createElement("span",{className:r()("".concat(Y,"-item"),(0,l.Z)({},"".concat(Y,"-item-disabled"),n)),title:he(e)},m.createElement("span",{className:"".concat(Y,"-item-content")},t),o&&m.createElement(w,{className:"".concat(Y,"-item-remove"),onMouseDown:be,onClick:i,customizeIcon:S},"×"))}t=function(){B(H.current.scrollWidth)},n=[X],me?m.useLayoutEffect(t,n):m.useEffect(t,n);var q=m.createElement("div",{className:"".concat(Y,"-search"),style:{width:L},onFocus:function(){K(!0)},onBlur:function(){K(!1)}},m.createElement(fe,{ref:f,open:c,prefixCls:i,id:o,inputElement:null,disabled:v,autoFocus:b,autoComplete:y,editable:G,activeDescendantId:x,value:X,onKeyDown:_,onMouseDown:D,onChange:k,onPaste:N,onCompositionStart:T,onCompositionEnd:z,tabIndex:E,attrs:(0,C.Z)(e,!0)}),m.createElement("span",{ref:H,className:"".concat(Y,"-search-mirror"),"aria-hidden":!0},X," ")),Q=m.createElement(se,{prefixCls:"".concat(Y,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,o=e.value,r=!v&&!t,i=n;if("number"==typeof $&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>$&&(i="".concat(a.slice(0,$),"..."))}var l=function(t){t&&t.stopPropagation(),R(e)};return"function"==typeof I?function(e,t,n,o,r){return m.createElement("span",{onMouseDown:function(e){be(e),P(!c)}},I({label:t,value:e,disabled:n,closable:o,onClose:r}))}(o,i,t,r,l):U(e,i,t,r,l)},renderRest:function(e){var t="function"==typeof O?O(e):O;return U({title:t},t,!1)},suffix:q,itemKey:ge,maxCount:Z});return m.createElement(m.Fragment,null,Q,!a.length&&!X&&m.createElement("span",{className:"".concat(Y,"-placeholder")},p))},we=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,r=e.inputRef,i=e.disabled,a=e.autoFocus,l=e.autoComplete,c=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,p=e.placeholder,v=e.tabIndex,h=e.showSearch,g=e.searchValue,b=e.activeValue,y=e.maxLength,w=e.onInputKeyDown,x=e.onInputMouseDown,E=e.onInputChange,S=e.onInputPaste,Z=e.onInputCompositionStart,$=e.onInputCompositionEnd,M=e.title,O=m.useState(!1),I=(0,s.Z)(O,2),P=I[0],R=I[1],k="combobox"===u,N=k||h,_=f[0],D=g||"";k&&b&&!P&&(D=b),m.useEffect((function(){k&&R(!1)}),[k,b]);var T=!("combobox"!==u&&!d&&!h)&&!!D,z=void 0===M?he(_):M;return m.createElement(m.Fragment,null,m.createElement("span",{className:"".concat(n,"-selection-search")},m.createElement(fe,{ref:r,prefixCls:n,id:o,open:d,inputElement:t,disabled:i,autoFocus:a,autoComplete:l,editable:N,activeDescendantId:c,value:D,onKeyDown:w,onMouseDown:x,onChange:function(e){R(!0),E(e)},onPaste:S,onCompositionStart:Z,onCompositionEnd:$,tabIndex:v,attrs:(0,C.Z)(e,!0),maxLength:k?y:void 0})),!k&&_?m.createElement("span",{className:"".concat(n,"-selection-item"),title:z,style:T?{visibility:"hidden"}:void 0},_.label):null,function(){if(_)return null;var e=T?{visibility:"hidden"}:void 0;return m.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},p)}())};var xe=function(e,t){var n=(0,m.useRef)(null),o=(0,m.useRef)(!1),r=e.prefixCls,a=e.open,l=e.mode,c=e.showSearch,u=e.tokenWithEnter,d=e.autoClearSearchValue,f=e.onSearch,p=e.onSearchSubmit,v=e.onToggleOpen,h=e.onInputKeyDown,g=e.domRef;m.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var y=E(0),w=(0,s.Z)(y,2),x=w[0],C=w[1],S=(0,m.useRef)(null),Z=function(e){!1!==f(e,!0,o.current)&&v(!0)},$={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==b.Z.UP&&n!==b.Z.DOWN||e.preventDefault(),h&&h(e),n!==b.Z.ENTER||"tags"!==l||o.current||a||null==p||p(e.target.value),t=n,[b.Z.ESC,b.Z.SHIFT,b.Z.BACKSPACE,b.Z.TAB,b.Z.WIN_KEY,b.Z.ALT,b.Z.META,b.Z.WIN_KEY_RIGHT,b.Z.CTRL,b.Z.SEMICOLON,b.Z.EQUALS,b.Z.CAPS_LOCK,b.Z.CONTEXT_MENU,b.Z.F1,b.Z.F2,b.Z.F3,b.Z.F4,b.Z.F5,b.Z.F6,b.Z.F7,b.Z.F8,b.Z.F9,b.Z.F10,b.Z.F11,b.Z.F12].includes(t)||v(!0)},onInputMouseDown:function(){C(!0)},onInputChange:function(e){var t=e.target.value;if(u&&S.current&&/[\r\n]/.test(S.current)){var n=S.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,S.current)}S.current=null,Z(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");S.current=t},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==l&&Z(e.target.value)}},M="multiple"===l||"tags"===l?m.createElement(ye,(0,i.Z)({},e,$)):m.createElement(we,(0,i.Z)({},e,$));return m.createElement("div",{ref:g,className:"".concat(r,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=x();e.target===n.current||t||"combobox"===l||e.preventDefault(),("combobox"===l||c&&t)&&a||(a&&!1!==d&&f("",!0,!1),v())}},M)},Ee=m.forwardRef(xe);Ee.displayName="Selector";var Ce=Ee,Se=n(4006),Ze=n(7194);var $e=0;function Me(e){var t=m.useState("ssr-id"),n=(0,s.Z)(t,2),o=n[0],r=n[1],i=(0,c.Z)({},v).useId,a=null==i?void 0:i();return m.useEffect((function(){if(!i){var e=$e;$e+=1,r("rc_unique_".concat(e))}}),[]),e||(a||o)}var Oe=m.createContext(null);function Ie(e){return e?Array.isArray(e)?e:[e]:[]}var Pe=n(5661);function Re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function ke(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function Ne(e){return e.ownerDocument.defaultView}function _e(e){for(var t=[],n=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=Ne(n).getComputedStyle(n);[r.overflowX,r.overflowY,r.overflow].some((function(e){return o.includes(e)}))&&t.push(n),n=n.parentElement}return t}function De(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Te(e){return De(parseFloat(e),0)}function ze(e,t){var n=(0,c.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Ne(e).getComputedStyle(e),o=t.overflow,r=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=Te(i),v=Te(a),h=Te(l),g=Te(c),b=De(Math.round(s.width/f*1e3)/1e3),y=De(Math.round(s.height/u*1e3)/1e3),w=(f-p-h-g)*b,x=(u-d-m-v)*y,E=m*y,C=v*y,S=h*b,Z=g*b,$=0,M=0;if("clip"===o){var O=Te(r);$=O*b,M=O*y}var I=s.x+S-$,P=s.y+E-M,R=I+s.width+2*$-S-Z-w,k=P+s.height+2*M-E-C-x;n.left=Math.max(n.left,I),n.top=Math.max(n.top,P),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,k)}})),n}function He(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function je(e,t){var n=t||[],o=(0,s.Z)(n,2),r=o[0],i=o[1];return[He(e.width,r),He(e.height,i)]}function Ae(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Le(e,t){var n,o=t[0],r=t[1];return n="t"===o?e.y:"b"===o?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:n}}function Be(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,o){return o===t?n[e]||"c":e})).join("")}var Fe=n(1815);var Ve=n(3395);function We(e){var t=e.prefixCls,n=e.align,o=e.arrow,i=e.arrowPos,a=o||{},l=a.className,c=a.content,s=i.x,u=void 0===s?0:s,d=i.y,f=void 0===d?0:d,p=m.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],g=n.points[1],b=h[0],y=h[1],w=g[0],x=g[1];b!==w&&["t","b"].includes(b)?"t"===b?v.top=0:v.bottom=0:v.top=f,y!==x&&["l","r"].includes(y)?"l"===y?v.left=0:v.right=0:v.left=u}return m.createElement("div",{ref:p,className:r()("".concat(t,"-arrow"),l),style:v},c)}function Ke(e){var t=e.prefixCls,n=e.open,o=e.zIndex,a=e.mask,l=e.motion;return a?m.createElement(Ve.ZP,(0,i.Z)({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return m.createElement("div",{style:{zIndex:o},className:r()("".concat(t,"-mask"),n)})})):null}var Ye=m.memo((function(e){return e.children}),(function(e,t){return t.cache})),Xe=m.forwardRef((function(e,t){var n=e.popup,o=e.className,a=e.prefixCls,l=e.style,u=e.target,d=e.onVisibleChanged,f=e.open,p=e.keepDom,v=e.onClick,g=e.mask,b=e.arrow,w=e.arrowPos,x=e.align,E=e.motion,C=e.maskMotion,S=e.forceRender,Z=e.getPopupContainer,$=e.autoDestroy,M=e.portal,O=e.zIndex,I=e.onMouseEnter,P=e.onMouseLeave,R=e.onPointerEnter,k=e.ready,N=e.offsetX,_=e.offsetY,D=e.offsetR,T=e.offsetB,z=e.onAlign,H=e.onPrepare,A=e.stretch,L=e.targetWidth,B=e.targetHeight,F="function"==typeof n?n():n,V=f||p,W=(null==Z?void 0:Z.length)>0,K=m.useState(!Z||!W),Y=(0,s.Z)(K,2),X=Y[0],G=Y[1];if((0,h.Z)((function(){!X&&W&&u&&G(!0)}),[X,W,u]),!X)return null;var U="auto",q={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(k||!f){var Q=x.points,J=x._experimental,ee=null==J?void 0:J.dynamicInset,te=ee&&"r"===Q[0][1],ne=ee&&"b"===Q[0][0];te?(q.right=D,q.left=U):(q.left=N,q.right=U),ne?(q.bottom=T,q.top=U):(q.top=_,q.bottom=U)}var oe={};return A&&(A.includes("height")&&B?oe.height=B:A.includes("minHeight")&&B&&(oe.minHeight=B),A.includes("width")&&L?oe.width=L:A.includes("minWidth")&&L&&(oe.minWidth=L)),f||(oe.pointerEvents="none"),m.createElement(M,{open:S||V,getContainer:Z&&function(){return Z(u)},autoDestroy:$},m.createElement(Ke,{prefixCls:a,open:f,zIndex:O,mask:g,motion:C}),m.createElement(j,{onResize:z,disabled:!f},(function(e){return m.createElement(Ve.ZP,(0,i.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:"".concat(a,"-hidden")},E,{onAppearPrepare:H,onEnterPrepare:H,visible:f,onVisibleChanged:function(e){var t;null==E||null===(t=E.onVisibleChanged)||void 0===t||t.call(E,e),d(e)}}),(function(n,i){var s=n.className,u=n.style,d=r()(a,s,o);return m.createElement("div",{ref:(0,y.sQ)(e,t,i),className:d,style:(0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)({"--arrow-x":"".concat(w.x||0,"px"),"--arrow-y":"".concat(w.y||0,"px")},q),oe),u),{},{boxSizing:"border-box",zIndex:O},l),onMouseEnter:I,onMouseLeave:P,onPointerEnter:R,onClick:v},b&&m.createElement(We,{prefixCls:a,arrow:b,arrowPos:w,align:x}),m.createElement(Ye,{cache:!f},F))}))})))}));var Ge=Xe;var Ue=m.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,r=(0,y.Yr)(n),i=m.useCallback((function(e){(0,y.mH)(t,o?o(e):e)}),[o]),a=(0,y.x1)(i,n.ref);return r?m.cloneElement(n,{ref:a}):n})),qe=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var Qe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Se.Z,t=m.forwardRef((function(t,n){var o=t.prefixCls,i=void 0===o?"rc-trigger-popup":o,l=t.children,d=t.action,f=void 0===d?"hover":d,p=t.showAction,v=t.hideAction,b=t.popupVisible,y=t.defaultPopupVisible,w=t.onPopupVisibleChange,x=t.afterPopupVisibleChange,E=t.mouseEnterDelay,C=t.mouseLeaveDelay,S=void 0===C?.1:C,$=t.focusDelay,M=t.blurDelay,O=t.mask,I=t.maskClosable,P=void 0===I||I,R=t.getPopupContainer,k=t.forceRender,N=t.autoDestroy,_=t.destroyPopupOnHide,D=t.popup,T=t.popupClassName,z=t.popupStyle,H=t.popupPlacement,A=t.builtinPlacements,L=void 0===A?{}:A,B=t.popupAlign,F=t.zIndex,V=t.stretch,X=t.getPopupClassNameFromAlign,G=t.alignPoint,U=t.onPopupClick,q=t.onPopupAlign,Q=t.arrow,J=t.popupMotion,ee=t.maskMotion,te=t.popupTransitionName,ne=t.popupAnimation,oe=t.maskTransitionName,re=t.maskAnimation,ie=t.className,ae=t.getTriggerDOMNode,le=(0,u.Z)(t,qe),ce=N||_||!1,se=m.useState(!1),ue=(0,s.Z)(se,2),de=ue[0],fe=ue[1];(0,h.Z)((function(){fe(g())}),[]);var pe=m.useRef({}),me=m.useContext(Oe),ve=m.useMemo((function(){return{registerSubPopup:function(e,t){pe.current[e]=t,null==me||me.registerSubPopup(e,t)}}}),[me]),he=Me(),ge=m.useState(null),be=(0,s.Z)(ge,2),ye=be[0],we=be[1],xe=(0,W.Z)((function(e){(0,Z.S)(e)&&ye!==e&&we(e),null==me||me.registerSubPopup(he,e)})),Ee=m.useState(null),Ce=(0,s.Z)(Ee,2),Se=Ce[0],$e=Ce[1],Te=(0,W.Z)((function(e){(0,Z.S)(e)&&Se!==e&&$e(e)})),He=m.Children.only(l),Fe=(null==He?void 0:He.props)||{},Ve={},We=(0,W.Z)((function(e){var t,n,o=Se;return(null==o?void 0:o.contains(e))||(null===(t=(0,Ze.A)(o))||void 0===t?void 0:t.host)===e||e===o||(null==ye?void 0:ye.contains(e))||(null===(n=(0,Ze.A)(ye))||void 0===n?void 0:n.host)===e||e===ye||Object.values(pe.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Ke=ke(i,J,ne,te),Ye=ke(i,ee,re,oe),Xe=m.useState(y||!1),Qe=(0,s.Z)(Xe,2),Je=Qe[0],et=Qe[1],tt=null!=b?b:Je,nt=(0,W.Z)((function(e){void 0===b&&et(e)}));(0,h.Z)((function(){et(b||!1)}),[b]);var ot=m.useRef(tt);ot.current=tt;var rt=(0,W.Z)((function(e){(0,K.flushSync)((function(){tt!==e&&(nt(e),null==w||w(e))}))})),it=m.useRef(),at=function(){clearTimeout(it.current)},lt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;at(),0===t?rt(e):it.current=setTimeout((function(){rt(e)}),1e3*t)};m.useEffect((function(){return at}),[]);var ct=m.useState(!1),st=(0,s.Z)(ct,2),ut=st[0],dt=st[1];(0,h.Z)((function(e){e&&!tt||dt(!0)}),[tt]);var ft=m.useState(null),pt=(0,s.Z)(ft,2),mt=pt[0],vt=pt[1],ht=m.useState([0,0]),gt=(0,s.Z)(ht,2),bt=gt[0],yt=gt[1],wt=function(e){yt([e.clientX,e.clientY])},xt=function(e,t,n,o,r,i,a){var l=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:r[o]||{}}),u=(0,s.Z)(l,2),d=u[0],f=u[1],p=m.useRef(0),v=m.useMemo((function(){return t?_e(t):[]}),[t]),g=m.useRef({});e||(g.current={});var b=(0,W.Z)((function(){if(t&&n&&e){var l,u,d,p=t,m=p.ownerDocument,h=Ne(p).getComputedStyle(p),b=h.width,y=h.height,w=h.position,x=p.style.left,E=p.style.top,C=p.style.right,S=p.style.bottom,$=(0,c.Z)((0,c.Z)({},r[o]),i),M=m.createElement("div");if(null===(l=p.parentElement)||void 0===l||l.appendChild(M),M.style.left="".concat(p.offsetLeft,"px"),M.style.top="".concat(p.offsetTop,"px"),M.style.position=w,M.style.height="".concat(p.offsetHeight,"px"),M.style.width="".concat(p.offsetWidth,"px"),p.style.left="0",p.style.top="0",p.style.right="auto",p.style.bottom="auto",Array.isArray(n))d={x:n[0],y:n[1],width:0,height:0};else{var O=n.getBoundingClientRect();d={x:O.x,y:O.y,width:O.width,height:O.height}}var I=p.getBoundingClientRect(),P=m.documentElement,R=P.clientWidth,k=P.clientHeight,N=P.scrollWidth,_=P.scrollHeight,D=P.scrollTop,T=P.scrollLeft,z=I.height,H=I.width,j=d.height,A=d.width,L={left:0,top:0,right:R,bottom:k},B={left:-T,top:-D,right:N-T,bottom:_-D},F=$.htmlRegion,V="visible",W="visibleFirst";"scroll"!==F&&F!==W&&(F=V);var K=F===W,Y=ze(B,v),X=ze(L,v),G=F===V?X:Y,U=K?X:G;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var q=p.getBoundingClientRect();p.style.left=x,p.style.top=E,p.style.right=C,p.style.bottom=S,null===(u=p.parentElement)||void 0===u||u.removeChild(M);var Q=De(Math.round(H/parseFloat(b)*1e3)/1e3),J=De(Math.round(z/parseFloat(y)*1e3)/1e3);if(0===Q||0===J||(0,Z.S)(n)&&!(0,Pe.Z)(n))return;var ee=$.offset,te=$.targetOffset,ne=je(I,ee),oe=(0,s.Z)(ne,2),re=oe[0],ie=oe[1],ae=je(d,te),le=(0,s.Z)(ae,2),ce=le[0],se=le[1];d.x-=ce,d.y-=se;var ue=$.points||[],de=(0,s.Z)(ue,2),fe=de[0],pe=Ae(de[1]),me=Ae(fe),ve=Le(d,pe),he=Le(I,me),ge=(0,c.Z)({},$),be=ve.x-he.x+re,ye=ve.y-he.y+ie;function wt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:G,o=I.x+e,r=I.y+t,i=o+H,a=r+z,l=Math.max(o,n.left),c=Math.max(r,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var we,xe,Ee,Ce,Se=wt(be,ye),Ze=wt(be,ye,X),$e=Le(d,["t","l"]),Me=Le(I,["t","l"]),Oe=Le(d,["b","r"]),Ie=Le(I,["b","r"]),Re=$.overflow||{},ke=Re.adjustX,_e=Re.adjustY,Te=Re.shiftX,He=Re.shiftY,Fe=function(e){return"boolean"==typeof e?e:e>=0};function xt(){we=I.y+ye,xe=we+z,Ee=I.x+be,Ce=Ee+H}xt();var Ve=Fe(_e),We=me[0]===pe[0];if(Ve&&"t"===me[0]&&(xe>U.bottom||g.current.bt)){var Ke=ye;We?Ke-=z-j:Ke=$e.y-Ie.y-ie;var Ye=wt(be,Ke),Xe=wt(be,Ke,X);Ye>Se||Ye===Se&&(!K||Xe>=Ze)?(g.current.bt=!0,ye=Ke,ie=-ie,ge.points=[Be(me,0),Be(pe,0)]):g.current.bt=!1}if(Ve&&"b"===me[0]&&(we<U.top||g.current.tb)){var Ge=ye;We?Ge+=z-j:Ge=Oe.y-Me.y-ie;var Ue=wt(be,Ge),qe=wt(be,Ge,X);Ue>Se||Ue===Se&&(!K||qe>=Ze)?(g.current.tb=!0,ye=Ge,ie=-ie,ge.points=[Be(me,0),Be(pe,0)]):g.current.tb=!1}var Qe=Fe(ke),Je=me[1]===pe[1];if(Qe&&"l"===me[1]&&(Ce>U.right||g.current.rl)){var et=be;Je?et-=H-A:et=$e.x-Ie.x-re;var tt=wt(et,ye),nt=wt(et,ye,X);tt>Se||tt===Se&&(!K||nt>=Ze)?(g.current.rl=!0,be=et,re=-re,ge.points=[Be(me,1),Be(pe,1)]):g.current.rl=!1}if(Qe&&"r"===me[1]&&(Ee<U.left||g.current.lr)){var ot=be;Je?ot+=H-A:ot=Oe.x-Me.x-re;var rt=wt(ot,ye),it=wt(ot,ye,X);rt>Se||rt===Se&&(!K||it>=Ze)?(g.current.lr=!0,be=ot,re=-re,ge.points=[Be(me,1),Be(pe,1)]):g.current.lr=!1}xt();var at=!0===Te?0:Te;"number"==typeof at&&(Ee<X.left&&(be-=Ee-X.left-re,d.x+A<X.left+at&&(be+=d.x-X.left+A-at)),Ce>X.right&&(be-=Ce-X.right-re,d.x>X.right-at&&(be+=d.x-X.right+at)));var lt=!0===He?0:He;"number"==typeof lt&&(we<X.top&&(ye-=we-X.top-ie,d.y+j<X.top+lt&&(ye+=d.y-X.top+j-lt)),xe>X.bottom&&(ye-=xe-X.bottom-ie,d.y>X.bottom-lt&&(ye+=d.y-X.bottom+lt)));var ct=I.x+be,st=ct+H,ut=I.y+ye,dt=ut+z,ft=d.x,pt=ft+A,mt=d.y,vt=mt+j,ht=(Math.max(ct,ft)+Math.min(st,pt))/2-ct,gt=(Math.max(ut,mt)+Math.min(dt,vt))/2-ut;null==a||a(t,ge);var bt=q.right-I.x-(be+I.width),yt=q.bottom-I.y-(ye+I.height);f({ready:!0,offsetX:be/Q,offsetY:ye/J,offsetR:bt/Q,offsetB:yt/J,arrowX:ht/Q,arrowY:gt/J,scaleX:Q,scaleY:J,align:ge})}})),y=function(){f((function(e){return(0,c.Z)((0,c.Z)({},e),{},{ready:!1})}))};return(0,h.Z)(y,[o]),(0,h.Z)((function(){e||y()}),[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,function(){p.current+=1;var e=p.current;Promise.resolve().then((function(){p.current===e&&b()}))}]}(tt,ye,G?bt:Se,H,L,B,q),Et=(0,s.Z)(xt,11),Ct=Et[0],St=Et[1],Zt=Et[2],$t=Et[3],Mt=Et[4],Ot=Et[5],It=Et[6],Pt=Et[7],Rt=Et[8],kt=Et[9],Nt=Et[10],_t=function(e,t,n,o){return m.useMemo((function(){var r=Ie(null!=n?n:t),i=Ie(null!=o?o:t),a=new Set(r),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,o])}(de,f,p,v),Dt=(0,s.Z)(_t,2),Tt=Dt[0],zt=Dt[1],Ht=Tt.has("click"),jt=zt.has("click")||zt.has("contextMenu"),At=(0,W.Z)((function(){ut||Nt()}));!function(e,t,n,o,r){(0,h.Z)((function(){if(e&&t&&n){var i=n,l=_e(t),c=_e(i),s=Ne(i),u=new Set([s].concat((0,a.Z)(l),(0,a.Z)(c)));function d(){o(),r()}return u.forEach((function(e){e.addEventListener("scroll",d,{passive:!0})})),s.addEventListener("resize",d,{passive:!0}),o(),function(){u.forEach((function(e){e.removeEventListener("scroll",d),s.removeEventListener("resize",d)}))}}}),[e,t,n])}(tt,Se,ye,At,(function(){ot.current&&G&&jt&<(!1)})),(0,h.Z)((function(){At()}),[bt,H]),(0,h.Z)((function(){!tt||null!=L&&L[H]||At()}),[JSON.stringify(B)]);var Lt=m.useMemo((function(){var e=function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(Re(null===(l=e[c])||void 0===l?void 0:l.points,r,o))return"".concat(t,"-placement-").concat(c)}return""}(L,i,kt,G);return r()(e,null==X?void 0:X(kt))}),[kt,X,L,i,G]);m.useImperativeHandle(n,(function(){return{forceAlign:At}}));var Bt=m.useState(0),Ft=(0,s.Z)(Bt,2),Vt=Ft[0],Wt=Ft[1],Kt=m.useState(0),Yt=(0,s.Z)(Kt,2),Xt=Yt[0],Gt=Yt[1],Ut=function(){if(V&&Se){var e=Se.getBoundingClientRect();Wt(e.width),Gt(e.height)}};function qt(e,t,n,o){Ve[e]=function(r){var i;null==o||o(r),lt(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];null===(i=Fe[e])||void 0===i||i.call.apply(i,[Fe,r].concat(l))}}(0,h.Z)((function(){mt&&(Nt(),mt(),vt(null))}),[mt]),(Ht||jt)&&(Ve.onClick=function(e){var t;ot.current&&jt?lt(!1):!ot.current&&Ht&&(wt(e),lt(!0));for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=Fe.onClick)||void 0===t||t.call.apply(t,[Fe,e].concat(o))}),function(e,t,n,o,r,i,a,l){var c=m.useRef(e),u=m.useRef(!1);c.current!==e&&(u.current=!0,c.current=e),m.useEffect((function(){var e=(0,Y.Z)((function(){u.current=!1}));return function(){Y.Z.cancel(e)}}),[e]),m.useEffect((function(){if(t&&o&&(!r||i)){var e=function(){var e=!1;return[function(t){var n=t.target;e=a(n)},function(t){var n=t.target;u.current||!c.current||e||a(n)||l(!1)}]},d=e(),f=(0,s.Z)(d,2),p=f[0],m=f[1],v=e(),h=(0,s.Z)(v,2),g=h[0],b=h[1],y=Ne(o);y.addEventListener("mousedown",p,!0),y.addEventListener("click",m,!0),y.addEventListener("contextmenu",m,!0);var w=(0,Ze.A)(n);return w&&(w.addEventListener("mousedown",g,!0),w.addEventListener("click",b,!0),w.addEventListener("contextmenu",b,!0)),function(){y.removeEventListener("mousedown",p,!0),y.removeEventListener("click",m,!0),y.removeEventListener("contextmenu",m,!0),w&&(w.removeEventListener("mousedown",g,!0),w.removeEventListener("click",b,!0),w.removeEventListener("contextmenu",b,!0))}}}),[t,n,o,r,i])}(tt,jt,Se,ye,O,P,We,lt);var Qt,Jt,en=Tt.has("hover"),tn=zt.has("hover");en&&(qt("onMouseEnter",!0,E,(function(e){wt(e)})),qt("onPointerEnter",!0,E,(function(e){wt(e)})),Qt=function(){(tt||ut)&<(!0,E)},G&&(Ve.onMouseMove=function(e){var t;null===(t=Fe.onMouseMove)||void 0===t||t.call(Fe,e)})),tn&&(qt("onMouseLeave",!1,S),qt("onPointerLeave",!1,S),Jt=function(){lt(!1,S)}),Tt.has("focus")&&qt("onFocus",!0,$),zt.has("focus")&&qt("onBlur",!1,M),Tt.has("contextMenu")&&(Ve.onContextMenu=function(e){var t;ot.current&&zt.has("contextMenu")?lt(!1):(wt(e),lt(!0)),e.preventDefault();for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=Fe.onContextMenu)||void 0===t||t.call.apply(t,[Fe,e].concat(o))}),ie&&(Ve.className=r()(Fe.className,ie));var nn=(0,c.Z)((0,c.Z)({},Fe),Ve),on={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){le[e]&&(on[e]=function(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===(t=nn[e])||void 0===t||t.call.apply(t,[nn].concat(o)),le[e].apply(le,o)})}));var rn=m.cloneElement(He,(0,c.Z)((0,c.Z)({},nn),on)),an={x:Ot,y:It},ln=Q?(0,c.Z)({},!0!==Q?Q:{}):null;return m.createElement(m.Fragment,null,m.createElement(j,{disabled:!tt,ref:Te,onResize:function(){Ut(),At()}},m.createElement(Ue,{getTriggerDOMNode:ae},rn)),m.createElement(Oe.Provider,{value:ve},m.createElement(Ge,{portal:e,ref:xe,prefixCls:i,popup:D,className:r()(T,Lt),style:z,target:Se,onMouseEnter:Qt,onMouseLeave:Jt,onPointerEnter:Qt,zIndex:F,open:tt,keepDom:ut,onClick:U,mask:O,motion:Ke,maskMotion:Ye,onVisibleChanged:function(e){dt(!1),Nt(),null==x||x(e)},onPrepare:function(){return new Promise((function(e){Ut(),vt((function(){return e}))}))},forceRender:k,autoDestroy:ce,getPopupContainer:R,align:kt,arrow:ln,arrowPos:an,ready:Ct,offsetX:St,offsetY:Zt,offsetR:$t,offsetB:Mt,onAlign:At,stretch:V,targetWidth:Vt/Pt,targetHeight:Xt/Rt})))}));return t}(Se.Z),Je=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],et=function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),a=e.children,s=e.popupElement,d=e.animation,f=e.transitionName,p=e.dropdownStyle,v=e.dropdownClassName,h=e.direction,g=void 0===h?"ltr":h,b=e.placement,y=e.builtinPlacements,w=e.dropdownMatchSelectWidth,x=e.dropdownRender,E=e.dropdownAlign,C=e.getPopupContainer,S=e.empty,Z=e.getTriggerDOMNode,$=e.onPopupVisibleChange,M=e.onPopupMouseEnter,O=(0,u.Z)(e,Je),I="".concat(n,"-dropdown"),P=s;x&&(P=x(s));var R=m.useMemo((function(){return y||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(w)}),[y,w]),k=d?"".concat(I,"-").concat(d):f,N="number"==typeof w,_=m.useMemo((function(){return N?null:!1===w?"minWidth":"width"}),[w,N]),D=p;N&&(D=(0,c.Z)((0,c.Z)({},D),{},{width:w}));var T=m.useRef(null);return m.useImperativeHandle(t,(function(){return{getPopupElement:function(){return T.current}}})),m.createElement(Qe,(0,i.Z)({},O,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:b||("rtl"===g?"bottomRight":"bottomLeft"),builtinPlacements:R,prefixCls:I,popupTransitionName:k,popup:m.createElement("div",{ref:T,onMouseEnter:M},P),stretch:_,popupAlign:E,popupVisible:o,getPopupContainer:C,popupClassName:r()(v,(0,l.Z)({},"".concat(I,"-empty"),S)),popupStyle:D,getTriggerDOMNode:Z,onPopupVisibleChange:$}),a)},tt=m.forwardRef(et);tt.displayName="SelectTrigger";var nt=tt,ot=n(2173);function rt(e,t){var n,o=e.key;return"value"in e&&(n=e.value),null!=o?o:void 0!==n?n:"rc-index-key-".concat(t)}function it(e,t){var n=e||{},o=n.label||(t?"children":"label");return{label:o,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||o}}function at(e){var t=(0,c.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,p.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var lt=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ct=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function st(e){return"tags"===e||"multiple"===e}var ut=m.forwardRef((function(e,t){var n,o,p=e.id,v=e.prefixCls,C=e.className,S=e.showSearch,Z=e.tagRender,$=e.direction,M=e.omitDomProps,O=e.displayValues,I=e.onDisplayValuesChange,P=e.emptyOptions,R=e.notFoundContent,k=void 0===R?"Not Found":R,N=e.onClear,_=e.mode,D=e.disabled,T=e.loading,z=e.getInputElement,H=e.getRawInputElement,j=e.open,A=e.defaultOpen,L=e.onDropdownVisibleChange,B=e.activeValue,F=e.onActiveValueChange,V=e.activeDescendantId,W=e.searchValue,K=e.autoClearSearchValue,Y=e.onSearch,X=e.onSearchSplit,G=e.tokenSeparators,U=e.allowClear,q=e.suffixIcon,Q=e.clearIcon,J=e.OptionList,ee=e.animation,te=e.transitionName,ne=e.dropdownStyle,oe=e.dropdownClassName,re=e.dropdownMatchSelectWidth,ie=e.dropdownRender,ae=e.dropdownAlign,le=e.placement,ce=e.builtinPlacements,se=e.getPopupContainer,ue=e.showAction,de=void 0===ue?[]:ue,fe=e.onFocus,pe=e.onBlur,me=e.onKeyUp,ve=e.onKeyDown,he=e.onMouseDown,ge=(0,u.Z)(e,lt),be=st(_),ye=(void 0!==S?S:be)||"combobox"===_,we=(0,c.Z)({},ge);ct.forEach((function(e){delete we[e]})),null==M||M.forEach((function(e){delete we[e]}));var xe=m.useState(!1),Ee=(0,s.Z)(xe,2),Se=Ee[0],Ze=Ee[1];m.useEffect((function(){Ze(g())}),[]);var $e=m.useRef(null),Me=m.useRef(null),Oe=m.useRef(null),Ie=m.useRef(null),Pe=m.useRef(null),Re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=m.useState(!1),n=(0,s.Z)(t,2),o=n[0],r=n[1],i=m.useRef(null),a=function(){window.clearTimeout(i.current)};return m.useEffect((function(){return a}),[]),[o,function(t,n){a(),i.current=window.setTimeout((function(){r(t),n&&n()}),e)},a]}(),ke=(0,s.Z)(Re,3),Ne=ke[0],_e=ke[1],De=ke[2];m.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Ie.current)||void 0===e?void 0:e.focus,blur:null===(t=Ie.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Pe.current)||void 0===t?void 0:t.scrollTo(e)}}}));var Te=m.useMemo((function(){var e;if("combobox"!==_)return W;var t=null===(e=O[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[W,_,O]),ze="combobox"===_&&"function"==typeof z&&z()||null,He="function"==typeof H&&H(),je=(0,y.x1)(Me,null==He||null===(n=He.props)||void 0===n?void 0:n.ref),Ae=m.useState(!1),Le=(0,s.Z)(Ae,2),Be=Le[0],Fe=Le[1];(0,h.Z)((function(){Fe(!0)}),[]);var Ve=(0,f.Z)(!1,{defaultValue:A,value:j}),We=(0,s.Z)(Ve,2),Ke=We[0],Ye=We[1],Xe=!!Be&&Ke,Ge=!k&&P;(D||Ge&&Xe&&"combobox"===_)&&(Xe=!1);var Ue=!Ge&&Xe,qe=m.useCallback((function(e){var t=void 0!==e?e:!Xe;D||(Ye(t),Xe!==t&&(null==L||L(t)))}),[D,Xe,Ye,L]),Qe=m.useMemo((function(){return(G||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[G]),Je=function(e,t,n){var o=!0,r=e;null==F||F(null);var i=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,o=function e(t,o){var r=(0,ot.Z)(o),i=r[0],l=r.slice(1);if(!i)return[t];var c=t.split(i);return n=n||c.length>1,c.reduce((function(t,n){return[].concat((0,a.Z)(t),(0,a.Z)(e(n,l)))}),[]).filter((function(e){return e}))}(e,t);return n?o:null}(e,G);return"combobox"!==_&&i&&(r="",null==X||X(i),qe(!1),o=!1),Y&&Te!==r&&Y(r,{source:t?"typing":"effect"}),o};m.useEffect((function(){Xe||be||"combobox"===_||Je("",!1,!1)}),[Xe]),m.useEffect((function(){Ke&&D&&Ye(!1),D&&_e(!1)}),[D]);var et=E(),tt=(0,s.Z)(et,2),rt=tt[0],it=tt[1],at=m.useRef(!1),ut=[];m.useEffect((function(){return function(){ut.forEach((function(e){return clearTimeout(e)})),ut.splice(0,ut.length)}}),[]);var dt,ft=m.useState({}),pt=(0,s.Z)(ft,2)[1];He&&(dt=function(e){qe(e)}),function(e,t,n,o){var r=m.useRef(null);r.current={open:t,triggerOpen:n,customizedTrigger:o},m.useEffect((function(){function t(t){var n;if(null===(n=r.current)||void 0===n||!n.customizedTrigger){var o=t.target;o.shadowRoot&&t.composed&&(o=t.composedPath()[0]||o),r.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&r.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[$e.current,null===(e=Oe.current)||void 0===e?void 0:e.getPopupElement()]}),Ue,qe,!!He);var mt,vt=m.useMemo((function(){return(0,c.Z)((0,c.Z)({},e),{},{notFoundContent:k,open:Xe,triggerOpen:Ue,id:p,showSearch:ye,multiple:be,toggleOpen:qe})}),[e,k,Ue,Xe,p,ye,be,qe]),ht=!!q||T;ht&&(mt=m.createElement(w,{className:r()("".concat(v,"-arrow"),(0,l.Z)({},"".concat(v,"-arrow-loading"),T)),customizeIcon:q,customizeIconProps:{loading:T,searchValue:Te,open:Xe,focused:Ne,showSearch:ye}}));var gt,bt=function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=m.useMemo((function(){return"object"===(0,d.Z)(o)?o.clearIcon:r||void 0}),[o,r]);return{allowClear:m.useMemo((function(){return!(i||!o||!n.length&&!a||"combobox"===l&&""===a)}),[o,i,n.length,a,l]),clearIcon:m.createElement(w,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"×")}}(v,(function(){var e;null==N||N(),null===(e=Ie.current)||void 0===e||e.focus(),I([],{type:"clear",values:O}),Je("",!1,!1)}),O,U,Q,D,Te,_),yt=bt.allowClear,wt=bt.clearIcon,xt=m.createElement(J,{ref:Pe}),Et=r()(v,C,(o={},(0,l.Z)(o,"".concat(v,"-focused"),Ne),(0,l.Z)(o,"".concat(v,"-multiple"),be),(0,l.Z)(o,"".concat(v,"-single"),!be),(0,l.Z)(o,"".concat(v,"-allow-clear"),U),(0,l.Z)(o,"".concat(v,"-show-arrow"),ht),(0,l.Z)(o,"".concat(v,"-disabled"),D),(0,l.Z)(o,"".concat(v,"-loading"),T),(0,l.Z)(o,"".concat(v,"-open"),Xe),(0,l.Z)(o,"".concat(v,"-customize-input"),ze),(0,l.Z)(o,"".concat(v,"-show-search"),ye),o)),Ct=m.createElement(nt,{ref:Oe,disabled:D,prefixCls:v,visible:Ue,popupElement:xt,animation:ee,transitionName:te,dropdownStyle:ne,dropdownClassName:oe,direction:$,dropdownMatchSelectWidth:re,dropdownRender:ie,dropdownAlign:ae,placement:le,builtinPlacements:ce,getPopupContainer:se,empty:P,getTriggerDOMNode:function(){return Me.current},onPopupVisibleChange:dt,onPopupMouseEnter:function(){pt({})}},He?m.cloneElement(He,{ref:je}):m.createElement(Ce,(0,i.Z)({},e,{domRef:Me,prefixCls:v,inputElement:ze,ref:Ie,id:p,showSearch:ye,autoClearSearchValue:K,mode:_,activeDescendantId:V,tagRender:Z,values:O,open:Xe,onToggleOpen:qe,activeValue:B,searchValue:Te,onSearch:Je,onSearchSubmit:function(e){e&&e.trim()&&Y(e,{source:"submit"})},onRemove:function(e){var t=O.filter((function(t){return t!==e}));I(t,{type:"remove",values:[e]})},tokenWithEnter:Qe})));return gt=He?Ct:m.createElement("div",(0,i.Z)({className:Et},we,{ref:$e,onMouseDown:function(e){var t,n=e.target,o=null===(t=Oe.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout((function(){var e,t=ut.indexOf(r);-1!==t&&ut.splice(t,1),De(),Se||o.contains(document.activeElement)||null===(e=Ie.current)||void 0===e||e.focus()}));ut.push(r)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];null==he||he.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=rt(),o=e.which;if(o===b.Z.ENTER&&("combobox"!==_&&e.preventDefault(),Xe||qe(!0)),it(!!Te),o===b.Z.BACKSPACE&&!n&&be&&!Te&&O.length){for(var r=(0,a.Z)(O),i=null,l=r.length-1;l>=0;l-=1){var c=r[l];if(!c.disabled){r.splice(l,1),i=c;break}}i&&I(r,{type:"remove",values:[i]})}for(var s=arguments.length,u=new Array(s>1?s-1:0),d=1;d<s;d++)u[d-1]=arguments[d];Xe&&Pe.current&&(t=Pe.current).onKeyDown.apply(t,[e].concat(u)),null==ve||ve.apply(void 0,[e].concat(u))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r;Xe&&Pe.current&&(r=Pe.current).onKeyUp.apply(r,[e].concat(n)),null==me||me.apply(void 0,[e].concat(n))},onFocus:function(){_e(!0),D||(fe&&!at.current&&fe.apply(void 0,arguments),de.includes("focus")&&qe(!0)),at.current=!0},onBlur:function(){_e(!1,(function(){at.current=!1,qe(!1)})),D||(Te&&("tags"===_?Y(Te,{source:"submit"}):"multiple"===_&&Y("",{source:"blur"})),pe&&pe.apply(void 0,arguments))}}),Ne&&!Xe&&m.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(O.map((function(e){var t=e.label,n=e.value;return["number","string"].includes((0,d.Z)(t))?t:n})).join(", "))),Ct,mt,yt&&wt),m.createElement(x.Provider,{value:vt},gt)}));var dt=ut;function ft(e,t){return pe(e).join("").toUpperCase().includes(t)}var pt=n(8554),mt=0,vt=(0,pt.Z)();function ht(e){var t=m.useState(),n=(0,s.Z)(t,2),o=n[0],r=n[1];return m.useEffect((function(){var e;r("rc_select_".concat((vt?(e=mt,mt+=1):e="TEST_OR_SSR",e)))}),[]),e||o}var gt=["children","value"],bt=["children"];function yt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,S.Z)(e).map((function(e,n){if(!m.isValidElement(e)||!e.type)return null;var o=e,r=o.type.isSelectOptGroup,i=o.key,a=o.props,l=a.children,s=(0,u.Z)(a,bt);return t||!r?function(e){var t=e,n=t.key,o=t.props,r=o.children,i=o.value,a=(0,u.Z)(o,gt);return(0,c.Z)({key:n,value:void 0!==i?i:n,children:r},a)}(e):(0,c.Z)((0,c.Z)({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},s),{},{options:yt(l)})})).filter((function(e){return e}))}function wt(e){var t=m.useRef();t.current=e;var n=m.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var xt=function(){return null};xt.isSelectOptGroup=!0;var Et=xt,Ct=function(){return null};Ct.isSelectOption=!0;var St=Ct,Zt=n(8805),$t=n(2445),Mt=m.forwardRef((function(e,t){var n,o=e.height,a=e.offsetY,s=e.offsetX,u=e.children,d=e.prefixCls,f=e.onInnerResize,p=e.innerProps,v=e.rtl,h=e.extra,g={},b={display:"flex",flexDirection:"column"};void 0!==a&&(g={height:o,position:"relative",overflow:"hidden"},b=(0,c.Z)((0,c.Z)({},b),{},(n={transform:"translateY(".concat(a,"px)")},(0,l.Z)(n,v?"marginRight":"marginLeft",-s),(0,l.Z)(n,"position","absolute"),(0,l.Z)(n,"left",0),(0,l.Z)(n,"right",0),(0,l.Z)(n,"top",0),n)));return m.createElement("div",{style:g},m.createElement(j,{onResize:function(e){e.offsetHeight&&f&&f()}},m.createElement("div",(0,i.Z)({style:b,className:r()((0,l.Z)({},"".concat(d,"-holder-inner"),d)),ref:t},p),u,h)))}));Mt.displayName="Filler";var Ot=Mt;function It(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var Pt=m.forwardRef((function(e,t){var n,o=e.prefixCls,i=e.rtl,a=e.scrollOffset,c=e.scrollRange,u=e.onStartMove,d=e.onStopMove,f=e.onScroll,p=e.horizontal,v=e.spinSize,h=e.containerSize,g=m.useState(!1),b=(0,s.Z)(g,2),y=b[0],w=b[1],x=m.useState(null),E=(0,s.Z)(x,2),C=E[0],S=E[1],Z=m.useState(null),$=(0,s.Z)(Z,2),M=$[0],O=$[1],I=!i,P=m.useRef(),R=m.useRef(),k=m.useState(!1),N=(0,s.Z)(k,2),_=N[0],D=N[1],T=m.useRef(),z=function(){clearTimeout(T.current),D(!0),T.current=setTimeout((function(){D(!1)}),3e3)},H=c-h||0,j=h-v||0,A=H>0,L=m.useMemo((function(){return 0===a||0===H?0:a/H*j}),[a,H,j]),B=m.useRef({top:L,dragging:y,pageY:C,startTop:M});B.current={top:L,dragging:y,pageY:C,startTop:M};var F=function(e){w(!0),S(It(e,p)),O(B.current.top),u(),e.stopPropagation(),e.preventDefault()};m.useEffect((function(){var e=function(e){e.preventDefault()},t=P.current,n=R.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",F),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",F)}}),[]);var V=m.useRef();V.current=H;var W=m.useRef();W.current=j,m.useEffect((function(){if(y){var e,t=function(t){var n=B.current,o=n.dragging,r=n.pageY,i=n.startTop;if(Y.Z.cancel(e),o){var a=It(t,p)-r,l=i;!I&&p?l-=a:l+=a;var c=V.current,s=W.current,u=s?l/s:0,d=Math.ceil(u*c);d=Math.max(d,0),d=Math.min(d,c),e=(0,Y.Z)((function(){f(d,p)}))}},n=function(){w(!1),d()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Y.Z.cancel(e)}}}),[y]),m.useEffect((function(){z()}),[a]),m.useImperativeHandle(t,(function(){return{delayHidden:z}}));var K="".concat(o,"-scrollbar"),X={position:"absolute",visibility:_&&A?null:"hidden"},G={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return p?(X.height=8,X.left=0,X.right=0,X.bottom=0,G.height="100%",G.width=v,I?G.left=L:G.right=L):(X.width=8,X.top=0,X.bottom=0,I?X.right=0:X.left=0,G.width="100%",G.height=v,G.top=L),m.createElement("div",{ref:P,className:r()(K,(n={},(0,l.Z)(n,"".concat(K,"-horizontal"),p),(0,l.Z)(n,"".concat(K,"-vertical"),!p),(0,l.Z)(n,"".concat(K,"-visible"),_),n)),style:X,onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:z},m.createElement("div",{ref:R,className:r()("".concat(K,"-thumb"),(0,l.Z)({},"".concat(K,"-thumb-moving"),y)),style:G,onMouseDown:F}))}));function Rt(e){var t=e.children,n=e.setRef,o=m.useCallback((function(e){n(e)}),[]);return m.cloneElement(t,{ref:o})}var kt=function(){function e(){(0,I.Z)(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,P.Z)(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();function Nt(e,t,n){var o=m.useState(e),r=(0,s.Z)(o,2),i=r[0],a=r[1],l=m.useState(null),c=(0,s.Z)(l,2),u=c[0],d=c[1];return m.useEffect((function(){var o=function(e,t,n){var o,r,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(o=e,r=t):(o=t,r=e);var l={__EMPTY_ITEM__:!0};function c(e){return void 0!==e?n(e):l}for(var s=null,u=1!==Math.abs(i-a),d=0;d<r.length;d+=1){var f=c(o[d]);if(f!==c(r[d])){s=d,u=u||f!==c(r[d+1]);break}}return null===s?null:{index:s,multiple:u}}(i||[],e||[],t);void 0!==(null==o?void 0:o.index)&&(null==n||n(o.index),d(e[o.index])),a(e)}),[e]),[u]}var _t="object"===("undefined"==typeof navigator?"undefined":(0,d.Z)(navigator))&&/Firefox/i.test(navigator.userAgent),Dt=function(e,t){var n=(0,m.useRef)(!1),o=(0,m.useRef)(null);var r=(0,m.useRef)({top:e,bottom:t});return r.current.top=e,r.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e<0&&r.current.top||e>0&&r.current.bottom;return t&&i?(clearTimeout(o.current),n.current=!1):i&&!n.current||(clearTimeout(o.current),n.current=!0,o.current=setTimeout((function(){n.current=!1}),50)),!n.current&&i}};function Tt(e,t,n,o,r){var i=(0,m.useRef)(0),a=(0,m.useRef)(null),l=(0,m.useRef)(null),c=(0,m.useRef)(!1),s=Dt(t,n);var u=(0,m.useRef)(null),d=(0,m.useRef)(null);return[function(t){if(e){Y.Z.cancel(d.current),d.current=(0,Y.Z)((function(){u.current=null}),2);var n=t.deltaX,f=t.deltaY,p=Math.abs(n),m=Math.abs(f);null===u.current&&(u.current=o&&p>m?"x":"y"),"x"===u.current?function(e){var t=e.deltaX;r(t,!0),_t||e.preventDefault()}(t):function(e){Y.Z.cancel(a.current);var t=e.deltaY;i.current+=t,l.current=t,s(t)||(_t||e.preventDefault(),a.current=(0,Y.Z)((function(){var e=c.current?10:1;r(i.current*e),i.current=0})))}(t)}},function(t){e&&(c.current=t.detail===l.current)}]}var zt=14/15;var Ht=20;function jt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*100;return isNaN(t)&&(t=0),t=Math.max(t,Ht),t=Math.min(t,e/2),Math.floor(t)}var At=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender"],Lt=[],Bt={overflowY:"auto",overflowAnchor:"none"};function Ft(e,t){var n=e.prefixCls,o=void 0===n?"rc-virtual-list":n,a=e.className,f=e.height,p=e.itemHeight,v=e.fullHeight,g=void 0===v||v,b=e.style,y=e.data,w=e.children,x=e.itemKey,E=e.virtual,C=e.direction,S=e.scrollWidth,$=e.component,M=void 0===$?"div":$,O=e.onScroll,I=e.onVirtualScroll,P=e.onVisibleChange,R=e.innerProps,k=e.extraRender,N=(0,u.Z)(e,At),_=!(!1===E||!f||!p),D=_&&y&&p*y.length>f,T="rtl"===C,z=r()(o,(0,l.Z)({},"".concat(o,"-rtl"),T),a),H=y||Lt,A=(0,m.useRef)(),L=(0,m.useRef)(),B=(0,m.useState)(0),F=(0,s.Z)(B,2),V=F[0],W=F[1],X=(0,m.useState)(0),G=(0,s.Z)(X,2),U=G[0],q=G[1],Q=(0,m.useState)(!1),J=(0,s.Z)(Q,2),ee=J[0],te=J[1],ne=function(){te(!0)},oe=function(){te(!1)},re=m.useCallback((function(e){return"function"==typeof x?x(e):null==e?void 0:e[x]}),[x]),ie={getKey:re};function ae(e){W((function(t){var n=function(e){var t=e;Number.isNaN(Re.current)||(t=Math.min(t,Re.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return A.current.scrollTop=n,n}))}var le=(0,m.useRef)({start:0,end:H.length}),ce=(0,m.useRef)(),se=Nt(H,re),ue=(0,s.Z)(se,1)[0];ce.current=ue;var de=function(e,t,n){var o=m.useState(0),r=(0,s.Z)(o,2),i=r[0],a=r[1],l=(0,m.useRef)(new Map),c=(0,m.useRef)(new kt),u=(0,m.useRef)();function d(){Y.Z.cancel(u.current)}function f(){d(),u.current=(0,Y.Z)((function(){l.current.forEach((function(e,t){if(e&&e.offsetParent){var n=(0,Z.Z)(e),o=n.offsetHeight;c.current.get(t)!==o&&c.current.set(t,n.offsetHeight)}})),a((function(e){return e+1}))}))}return(0,m.useEffect)((function(){return d}),[]),[function(o,r){var i=e(o),a=l.current.get(i);r?(l.current.set(i,r),f()):l.current.delete(i),!a!=!r&&(r?null==t||t(o):null==n||n(o))},f,c.current,i]}(re,null,null),fe=(0,s.Z)(de,4),pe=fe[0],me=fe[1],ve=fe[2],he=fe[3],ge=m.useMemo((function(){if(!_)return{scrollHeight:void 0,start:0,end:H.length-1,offset:void 0};var e;if(!D)return{scrollHeight:(null===(e=L.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:H.length-1,offset:void 0};for(var t,n,o,r=0,i=H.length,a=0;a<i;a+=1){var l=H[a],c=re(l),s=ve.get(c),u=r+(void 0===s?p:s);u>=V&&void 0===t&&(t=a,n=r),u>V+f&&void 0===o&&(o=a),r=u}return void 0===t&&(t=0,n=0,o=Math.ceil(f/p)),void 0===o&&(o=H.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,H.length-1),offset:n}}),[D,_,V,H,he,f]),be=ge.scrollHeight,ye=ge.start,we=ge.end,xe=ge.offset;le.current.start=ye,le.current.end=we;var Ee=m.useState({width:0,height:f}),Ce=(0,s.Z)(Ee,2),Se=Ce[0],Ze=Ce[1],$e=(0,m.useRef)(),Me=(0,m.useRef)(),Oe=m.useMemo((function(){return jt(Se.width,S)}),[Se.width,S]),Ie=m.useMemo((function(){return jt(Se.height,be)}),[Se.height,be]),Pe=be-f,Re=(0,m.useRef)(Pe);Re.current=Pe;var ke=V<=0,Ne=V>=Pe,_e=Dt(ke,Ne),De=function(){return{x:T?-U:U,y:V}},Te=(0,m.useRef)(De()),ze=(0,Fe.zX)((function(){if(I){var e=De();Te.current.x===e.x&&Te.current.y===e.y||(I(e),Te.current=e)}}));function He(e,t){var n=e;t?((0,K.flushSync)((function(){q(n)})),ze()):ae(n)}var je=function(e){var t=e,n=S-Se.width;return t=Math.max(t,0),t=Math.min(t,n)},Ae=(0,Fe.zX)((function(e,t){t?((0,K.flushSync)((function(){q((function(t){return je(t+(T?-e:e))}))})),ze()):ae((function(t){return t+e}))})),Le=Tt(_,ke,Ne,!!S,Ae),Be=(0,s.Z)(Le,2),Ve=Be[0],We=Be[1];!function(e,t,n){var o,r=(0,m.useRef)(!1),i=(0,m.useRef)(0),a=(0,m.useRef)(null),l=(0,m.useRef)(null),c=function(e){if(r.current){var t=Math.ceil(e.touches[0].pageY),o=i.current-t;i.current=t,n(o)&&e.preventDefault(),clearInterval(l.current),l.current=setInterval((function(){(!n(o*=zt,!0)||Math.abs(o)<=.1)&&clearInterval(l.current)}),16)}},s=function(){r.current=!1,o()},u=function(e){o(),1!==e.touches.length||r.current||(r.current=!0,i.current=Math.ceil(e.touches[0].pageY),a.current=e.target,a.current.addEventListener("touchmove",c),a.current.addEventListener("touchend",s))};o=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",s))},(0,h.Z)((function(){return e&&t.current.addEventListener("touchstart",u),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",u),o(),clearInterval(l.current)}}),[e])}(_,A,(function(e,t){return!_e(e,t)&&(Ve({preventDefault:function(){},deltaY:e}),!0)})),(0,h.Z)((function(){function e(e){_&&e.preventDefault()}var t=A.current;return t.addEventListener("wheel",Ve),t.addEventListener("DOMMouseScroll",We),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",Ve),t.removeEventListener("DOMMouseScroll",We),t.removeEventListener("MozMousePixelScroll",e)}}),[_]);var Ke=function(){var e,t;null===(e=$e.current)||void 0===e||e.delayHidden(),null===(t=Me.current)||void 0===t||t.delayHidden()},Ye=function(e,t,n,o,r,i,a,l){var c=m.useRef();return function(s){if(null!=s){if(Y.Z.cancel(c.current),"number"==typeof s)a(s);else if(s&&"object"===(0,d.Z)(s)){var u,f=s.align;u="index"in s?s.index:t.findIndex((function(e){return r(e)===s.key}));var p=s.offset,m=void 0===p?0:p;!function l(s,d){if(!(s<0)&&e.current){var p=e.current.clientHeight,v=!1,h=d;if(p){for(var g=d||f,b=0,y=0,w=0,x=Math.min(t.length,u),E=0;E<=x;E+=1){var C=r(t[E]);y=b;var S=n.get(C);b=w=y+(void 0===S?o:S),E===u&&void 0===S&&(v=!0)}var Z=null;switch(g){case"top":Z=y-m;break;case"bottom":Z=w-p+m;break;default:var $=e.current.scrollTop;y<$?h="top":w>$+p&&(h="bottom")}null!==Z&&Z!==e.current.scrollTop&&a(Z)}c.current=(0,Y.Z)((function(){v&&i(),l(s-1,h)}),2)}}(3)}}else l()}}(A,H,ve,p,re,me,ae,Ke);m.useImperativeHandle(t,(function(){return{getScrollInfo:De,scrollTo:function(e){var t;(t=e)&&"object"===(0,d.Z)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&q(je(e.left)),Ye(e.top)):Ye(e)}}})),(0,h.Z)((function(){if(P){var e=H.slice(ye,we+1);P(e,H)}}),[ye,we,H]);var Xe=function(e,t,n,o){var r=m.useMemo((function(){return[new Map,[]]}),[e,n.id,o]),i=(0,s.Z)(r,2),a=i[0],l=i[1];return function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,c=a.get(r),s=a.get(i);if(void 0===c||void 0===s)for(var u=e.length,d=l.length;d<u;d+=1){var f,p=e[d],m=t(p);a.set(m,d);var v=null!==(f=n.get(m))&&void 0!==f?f:o;if(l[d]=(l[d-1]||0)+v,m===r&&(c=d),m===i&&(s=d),void 0!==c&&void 0!==s)break}return{top:l[c-1]||0,bottom:l[s]}}}(H,re,ve,p),Ge=null==k?void 0:k({start:ye,end:we,virtual:D,offsetX:U,offsetY:xe,rtl:T,getSize:Xe}),Ue=function(e,t,n,o,r,i,a){var l=a.getKey;return e.slice(t,n+1).map((function(e,n){var a=i(e,t+n,{style:{width:o}}),c=l(e);return m.createElement(Rt,{key:c,setRef:function(t){return r(e,t)}},a)}))}(H,ye,we,S,pe,w,ie),qe=null;f&&(qe=(0,c.Z)((0,l.Z)({},g?"height":"maxHeight",f),Bt),_&&(qe.overflowY="hidden",S&&(qe.overflowX="hidden"),ee&&(qe.pointerEvents="none")));var Qe={};return T&&(Qe.dir="rtl"),m.createElement("div",(0,i.Z)({style:(0,c.Z)((0,c.Z)({},b),{},{position:"relative"}),className:z},Qe,N),m.createElement(j,{onResize:function(e){Ze(e)}},m.createElement(M,{className:"".concat(o,"-holder"),style:qe,ref:A,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==V&&ae(t),null==O||O(e),ze()},onMouseEnter:Ke},m.createElement(Ot,{prefixCls:o,height:be,offsetX:U,offsetY:xe,scrollWidth:S,onInnerResize:me,ref:L,innerProps:R,rtl:T,extra:Ge},Ue))),D&&be>f&&m.createElement(Pt,{ref:$e,prefixCls:o,scrollOffset:V,scrollRange:be,rtl:T,onScroll:He,onStartMove:ne,onStopMove:oe,spinSize:Ie,containerSize:Se.height}),D&&S&&m.createElement(Pt,{ref:Me,prefixCls:o,scrollOffset:U,scrollRange:S,rtl:T,onScroll:He,onStartMove:ne,onStopMove:oe,spinSize:Oe,containerSize:Se.width,horizontal:!0}))}var Vt=m.forwardRef(Ft);Vt.displayName="List";var Wt=Vt,Kt=m.createContext(null);var Yt=["disabled","title","children","style","className"];function Xt(e){return"string"==typeof e||"number"==typeof e}var Gt=function(e,t){var n=m.useContext(x),o=n.prefixCls,c=n.id,d=n.open,f=n.multiple,p=n.mode,v=n.searchValue,h=n.toggleOpen,g=n.notFoundContent,y=n.onPopupScroll,E=m.useContext(Kt),S=E.flattenOptions,Z=E.onActiveValue,$=E.defaultActiveFirstOption,M=E.onSelect,O=E.menuItemSelectedIcon,I=E.rawValues,P=E.fieldNames,R=E.virtual,k=E.direction,N=E.listHeight,_=E.listItemHeight,D="".concat(o,"-item"),T=(0,Zt.Z)((function(){return S}),[d,S],(function(e,t){return t[0]&&e[1]!==t[1]})),z=m.useRef(null),H=function(e){e.preventDefault()},j=function(e){z.current&&z.current.scrollTo("number"==typeof e?{index:e}:e)},A=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=T.length,o=0;o<n;o+=1){var r=(e+o*t+n)%n,i=T[r],a=i.group,l=i.data;if(!a&&!l.disabled)return r}return-1},L=m.useState((function(){return A(0)})),B=(0,s.Z)(L,2),F=B[0],V=B[1],W=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];V(e);var n={source:t?"keyboard":"mouse"},o=T[e];o?Z(o.value,e,n):Z(null,-1,n)};(0,m.useEffect)((function(){W(!1!==$?A(0):-1)}),[T.length,v]);var K=m.useCallback((function(e){return I.has(e)&&"combobox"!==p}),[p,(0,a.Z)(I).toString(),I.size]);(0,m.useEffect)((function(){var e,t=setTimeout((function(){if(!f&&d&&1===I.size){var e=Array.from(I)[0],t=T.findIndex((function(t){return t.data.value===e}));-1!==t&&(W(t),j(t))}}));d&&(null===(e=z.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[d,v,S.length]);var Y=function(e){void 0!==e&&M(e,{selected:!I.has(e)}),f||h(!1)};if(m.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case b.Z.N:case b.Z.P:case b.Z.UP:case b.Z.DOWN:var o=0;if(t===b.Z.UP?o=-1:t===b.Z.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===b.Z.N?o=1:t===b.Z.P&&(o=-1)),0!==o){var r=A(F+o,o);j(r),W(r,!0)}break;case b.Z.ENTER:var i=T[F];i&&!i.data.disabled?Y(i.value):Y(void 0),d&&e.preventDefault();break;case b.Z.ESC:h(!1),d&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){j(e)}}})),0===T.length)return m.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(D,"-empty"),onMouseDown:H},g);var X=Object.keys(P).map((function(e){return P[e]})),G=function(e){return e.label};function U(e,t){return{role:e.group?"presentation":"option",id:"".concat(c,"_list_").concat(t)}}var q=function(e){var t=T[e];if(!t)return null;var n=t.data||{},o=n.value,r=t.group,a=(0,C.Z)(n,!0),l=G(t);return t?m.createElement("div",(0,i.Z)({"aria-label":"string"!=typeof l||r?null:l},a,{key:e},U(t,e),{"aria-selected":K(o)}),o):null},Q={role:"listbox",id:"".concat(c,"_list")};return m.createElement(m.Fragment,null,R&&m.createElement("div",(0,i.Z)({},Q,{style:{height:0,width:0,overflow:"hidden"}}),q(F-1),q(F),q(F+1)),m.createElement(Wt,{itemKey:"key",ref:z,data:T,height:N,itemHeight:_,fullHeight:!1,onMouseDown:H,onScroll:y,virtual:R,direction:k,innerProps:R?null:Q},(function(e,t){var n,o=e.group,a=e.groupOption,c=e.data,s=e.label,d=e.value,f=c.key;if(o){var p,v=null!==(p=c.title)&&void 0!==p?p:Xt(s)?s.toString():void 0;return m.createElement("div",{className:r()(D,"".concat(D,"-group")),title:v},void 0!==s?s:f)}var h=c.disabled,g=c.title,b=(c.children,c.style),y=c.className,x=(0,u.Z)(c,Yt),E=(0,$t.Z)(x,X),S=K(d),Z="".concat(D,"-option"),$=r()(D,Z,y,(n={},(0,l.Z)(n,"".concat(Z,"-grouped"),a),(0,l.Z)(n,"".concat(Z,"-active"),F===t&&!h),(0,l.Z)(n,"".concat(Z,"-disabled"),h),(0,l.Z)(n,"".concat(Z,"-selected"),S),n)),M=G(e),I=!O||"function"==typeof O||S,P="number"==typeof M?M:M||d,k=Xt(P)?P.toString():void 0;return void 0!==g&&(k=g),m.createElement("div",(0,i.Z)({},(0,C.Z)(E),R?{}:U(e,t),{"aria-selected":S,className:$,title:k,onMouseMove:function(){F===t||h||W(t)},onClick:function(){h||Y(d)},style:b}),m.createElement("div",{className:"".concat(Z,"-content")},P),m.isValidElement(O)||S,I&&m.createElement(w,{className:"".concat(D,"-option-state"),customizeIcon:O,customizeIconProps:{isSelected:S}},S?"✓":null))})))},Ut=m.forwardRef(Gt);Ut.displayName="OptionList";var qt=Ut;var Qt=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Jt=["inputValue"];var en=m.forwardRef((function(e,t){var n=e.id,o=e.mode,r=e.prefixCls,p=void 0===r?"rc-select":r,v=e.backfill,h=e.fieldNames,g=e.inputValue,b=e.searchValue,y=e.onSearch,w=e.autoClearSearchValue,x=void 0===w||w,E=e.onSelect,C=e.onDeselect,S=e.dropdownMatchSelectWidth,Z=void 0===S||S,$=e.filterOption,M=e.filterSort,O=e.optionFilterProp,I=e.optionLabelProp,P=e.options,R=e.children,k=e.defaultActiveFirstOption,N=e.menuItemSelectedIcon,_=e.virtual,D=e.direction,T=e.listHeight,z=void 0===T?200:T,H=e.listItemHeight,j=void 0===H?20:H,A=e.value,L=e.defaultValue,B=e.labelInValue,F=e.onChange,V=(0,u.Z)(e,Qt),W=ht(n),K=st(o),Y=!(P||!R),X=m.useMemo((function(){return(void 0!==$||"combobox"!==o)&&$}),[$,o]),G=m.useMemo((function(){return it(h,Y)}),[JSON.stringify(h),Y]),U=(0,f.Z)("",{value:void 0!==b?b:g,postState:function(e){return e||""}}),q=(0,s.Z)(U,2),Q=q[0],J=q[1],ee=function(e,t,n,o,r){return m.useMemo((function(){var i=e;!e&&(i=yt(t));var a=new Map,l=new Map,c=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s<t.length;s+=1){var u=t[s];!u[n.options]||i?(a.set(u[n.value],u),c(l,u,n.label),c(l,u,o),c(l,u,r)):e(u[n.options],!0)}}(i),{options:i,valueOptions:a,labelOptions:l}}),[e,t,n,o,r])}(P,R,G,O,I),te=ee.valueOptions,ne=ee.labelOptions,oe=ee.options,re=m.useCallback((function(e){return pe(e).map((function(e){var t,n,o,r,i,a;(function(e){return!e||"object"!==(0,d.Z)(e)})(e)?t=e:(o=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:o);var l,c=te.get(t);c&&(void 0===n&&(n=null==c?void 0:c[I||G.label]),void 0===o&&(o=null!==(l=null==c?void 0:c.key)&&void 0!==l?l:t),r=null==c?void 0:c.disabled,i=null==c?void 0:c.title);return{label:n,value:t,key:o,disabled:r,title:i}}))}),[G,I,te]),ie=(0,f.Z)(L,{value:A}),ae=(0,s.Z)(ie,2),le=ae[0],ce=ae[1],se=m.useMemo((function(){var e,t=re(le);return"combobox"===o&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[le,re,o]),ue=function(e,t){var n=m.useRef({values:new Map,options:new Map});return[m.useMemo((function(){var o=n.current,r=o.values,i=o.options,a=e.map((function(e){var t;return void 0===e.label?(0,c.Z)((0,c.Z)({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,s=new Map;return a.forEach((function(e){l.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=l,n.current.options=s,a}),[e,t]),m.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(se,te),de=(0,s.Z)(ue,2),fe=de[0],me=de[1],ve=m.useMemo((function(){if(!o&&1===fe.length){var e=fe[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return fe.map((function(e){var t;return(0,c.Z)((0,c.Z)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[o,fe]),he=m.useMemo((function(){return new Set(fe.map((function(e){return e.value})))}),[fe]);m.useEffect((function(){if("combobox"===o){var e,t=null===(e=fe[0])||void 0===e?void 0:e.value;J(function(e){return null!=e}(t)?String(t):"")}}),[fe]);var ge=wt((function(e,t){var n,o=null!=t?t:e;return n={},(0,l.Z)(n,G.value,e),(0,l.Z)(n,G.label,o),n})),be=function(e,t,n,o,r){return m.useMemo((function(){if(!n||!1===o)return e;var i=t.options,a=t.label,s=t.value,u=[],d="function"==typeof o,f=n.toUpperCase(),p=d?o:function(e,t){return r?ft(t[r],f):t[i]?ft(t["children"!==a?a:"label"],f):ft(t[s],f)},m=d?function(e){return at(e)}:function(e){return e};return e.forEach((function(e){if(e[i])if(p(n,m(e)))u.push(e);else{var t=e[i].filter((function(e){return p(n,m(e))}));t.length&&u.push((0,c.Z)((0,c.Z)({},e),{},(0,l.Z)({},i,t)))}else p(n,m(e))&&u.push(e)})),u}),[e,o,r,n,t])}(m.useMemo((function(){if("tags"!==o)return oe;var e=(0,a.Z)(oe);return(0,a.Z)(fe).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return te.has(e)})(n)||e.push(ge(n,t.label))})),e}),[ge,oe,te,fe,o]),G,Q,X,O),ye=m.useMemo((function(){return"tags"!==o||!Q||be.some((function(e){return e[O||"value"]===Q}))||be.some((function(e){return e[G.value]===Q}))?be:[ge(Q)].concat((0,a.Z)(be))}),[ge,O,o,be,Q,G]),we=m.useMemo((function(){return M?(0,a.Z)(ye).sort((function(e,t){return M(e,t)})):ye}),[ye,M]),xe=m.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],i=it(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;return function e(t,n){t.forEach((function(t){if(n||!(c in t)){var i=t[l];r.push({key:rt(t,r.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[s];void 0===u&&o&&(u=t.label),r.push({key:rt(t,r.length),group:!0,data:t,label:u}),e(t[c],!0)}}))}(e,!1),r}(we,{fieldNames:G,childrenAsData:Y})}),[we,G,Y]),Ee=function(e){var t=re(e);if(ce(t),F&&(t.length!==fe.length||t.some((function(e,t){var n;return(null===(n=fe[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=B?t:t.map((function(e){return e.value})),o=t.map((function(e){return at(me(e.value))}));F(K?n:n[0],K?o:o[0])}},Ce=m.useState(null),Se=(0,s.Z)(Ce,2),Ze=Se[0],$e=Se[1],Me=m.useState(0),Oe=(0,s.Z)(Me,2),Ie=Oe[0],Pe=Oe[1],Re=void 0!==k?k:"combobox"!==o,ke=m.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Pe(t),v&&"combobox"===o&&null!==e&&"keyboard"===r&&$e(String(e))}),[v,o]),Ne=function(e,t,n){var o=function(){var t,n=me(e);return[B?{label:null==n?void 0:n[G.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,at(n)]};if(t&&E){var r=o(),i=(0,s.Z)(r,2),a=i[0],l=i[1];E(a,l)}else if(!t&&C&&"clear"!==n){var c=o(),u=(0,s.Z)(c,2),d=u[0],f=u[1];C(d,f)}},_e=wt((function(e,t){var n,r=!K||t.selected;n=r?K?[].concat((0,a.Z)(fe),[e]):[e]:fe.filter((function(t){return t.value!==e})),Ee(n),Ne(e,r),"combobox"===o?$e(""):st&&!x||(J(""),$e(""))})),De=m.useMemo((function(){var e=!1!==_&&!1!==Z;return(0,c.Z)((0,c.Z)({},ee),{},{flattenOptions:xe,onActiveValue:ke,defaultActiveFirstOption:Re,onSelect:_e,menuItemSelectedIcon:N,rawValues:he,fieldNames:G,virtual:e,direction:D,listHeight:z,listItemHeight:j,childrenAsData:Y})}),[ee,xe,ke,Re,_e,N,he,G,_,Z,z,j,Y]);return m.createElement(Kt.Provider,{value:De},m.createElement(dt,(0,i.Z)({},V,{id:W,prefixCls:p,ref:t,omitDomProps:Jt,mode:o,displayValues:ve,onDisplayValuesChange:function(e,t){Ee(e);var n=t.type,o=t.values;"remove"!==n&&"clear"!==n||o.forEach((function(e){Ne(e.value,!1,n)}))},direction:D,searchValue:Q,onSearch:function(e,t){if(J(e),$e(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===o&&Ee(e),null==y||y(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat((0,a.Z)(he),[n])));Ee(r),Ne(n,!0),J("")}}},autoClearSearchValue:x,onSearchSplit:function(e){var t=e;"tags"!==o&&(t=e.map((function(e){var t=ne.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,a.Z)(he),(0,a.Z)(t))));Ee(n),n.forEach((function(e){Ne(e,!0)}))},dropdownMatchSelectWidth:Z,OptionList:qt,emptyOptions:!xe.length,activeValue:Ze,activeDescendantId:"".concat(W,"_list_").concat(Ie)})))}));var tn=en;tn.Option=St,tn.OptGroup=Et;var nn=tn,on=n(8850),rn=n(6775);var an=n(821);var ln=n(1887),cn=n(3321),sn=n(8609);var un=(e,t)=>{const n=m.useContext(cn.Z);return[m.useMemo((()=>{var o;const r=t||sn.Z[e],i=null!==(o=null==n?void 0:n[e])&&void 0!==o?o:{};return Object.assign(Object.assign({},"function"==typeof r?r():r),i||{})}),[e,t,n]),m.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?sn.Z.locale:e}),[n])]},dn=n(8645),fn=n(6318);var pn=()=>{const[,e]=(0,fn.Z)(),t=new dn.C(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return m.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("g",{transform:"translate(24 31.67)"},m.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),m.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),m.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),m.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),m.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),m.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),m.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},m.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),m.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};var mn=()=>{const[,e]=(0,fn.Z)(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:r}=e,{borderColor:i,shadowColor:a,contentColor:l}=(0,m.useMemo)((()=>({borderColor:new dn.C(t).onBackground(r).toHexShortString(),shadowColor:new dn.C(n).onBackground(r).toHexShortString(),contentColor:new dn.C(o).onBackground(r).toHexShortString()})),[t,n,o,r]);return m.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},m.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},m.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),m.createElement("g",{fillRule:"nonzero",stroke:i},m.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),m.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},vn=n(6117),hn=n(5515);const gn=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var bn=(0,vn.Z)("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,o=(0,hn.TS)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[gn(o)]})),yn=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const wn=m.createElement(pn,null),xn=m.createElement(mn,null),En=e=>{var{className:t,rootClassName:n,prefixCls:o,image:i=wn,description:a,children:l,imageStyle:c,style:s}=e,u=yn(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:p}=m.useContext(rn.E_),v=d("empty",o),[h,g]=bn(v),[b]=un("Empty"),y=void 0!==a?a:null==b?void 0:b.description,w="string"==typeof y?y:"empty";let x=null;return x="string"==typeof i?m.createElement("img",{alt:w,src:i}):i,h(m.createElement("div",Object.assign({className:r()(g,v,null==p?void 0:p.className,{[`${v}-normal`]:i===xn,[`${v}-rtl`]:"rtl"===f},t,n),style:Object.assign(Object.assign({},null==p?void 0:p.style),s)},u),m.createElement("div",{className:`${v}-image`,style:c},x),y&&m.createElement("div",{className:`${v}-description`},y),l&&m.createElement("div",{className:`${v}-footer`},l)))};En.PRESENTED_IMAGE_DEFAULT=wn,En.PRESENTED_IMAGE_SIMPLE=xn;var Cn=En;var Sn=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,m.useContext)(rn.E_),o=n("empty");switch(t){case"Table":case"List":return m.createElement(Cn,{image:Cn.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return m.createElement(Cn,{image:Cn.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});default:return m.createElement(Cn,null)}},Zn=n(1347),$n=n(915),Mn=n(1630),On=n(2457);function In(e,t,n){const{focusElCls:o,focus:r,borderElCls:i}=n,a=i?"> *":"",l=["hover",r?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Pn(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Rn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:Object.assign(Object.assign({},In(e,o,t)),Pn(n,o,t))}}var kn=n(548);const Nn=e=>({animationDuration:e,animationFillMode:"both"}),_n=e=>({animationDuration:e,animationFillMode:"both"}),Dn=function(e,t,n,o){const r=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${r}${e}-enter,\n ${r}${e}-appear\n `]:Object.assign(Object.assign({},Nn(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:Object.assign(Object.assign({},_n(o)),{animationPlayState:"paused"}),[`\n ${r}${e}-enter${e}-enter-active,\n ${r}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${r}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Tn=new kn.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),zn=new kn.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Hn=new kn.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),jn=new kn.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),An=new kn.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Ln=new kn.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Bn=new kn.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Fn=new kn.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Vn={"slide-up":{inKeyframes:Tn,outKeyframes:zn},"slide-down":{inKeyframes:Hn,outKeyframes:jn},"slide-left":{inKeyframes:An,outKeyframes:Ln},"slide-right":{inKeyframes:Bn,outKeyframes:Fn}},Wn=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Vn[t];return[Dn(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Kn=new kn.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Yn=new kn.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Xn=new kn.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Gn=new kn.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Un=new kn.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),qn=new kn.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Qn={"move-up":{inKeyframes:new kn.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new kn.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:Kn,outKeyframes:Yn},"move-left":{inKeyframes:Xn,outKeyframes:Gn},"move-right":{inKeyframes:Un,outKeyframes:qn}},Jn=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Qn[t];return[Dn(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},eo=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}};var to=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,On.Wf)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${r}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:Tn},[`\n ${r}${l}topLeft,\n ${i}${l}topLeft,\n ${r}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:Hn},[`${a}${l}bottomLeft`]:{animationName:zn},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:jn},"&-hidden":{display:"none"},[`${o}`]:Object.assign(Object.assign({},eo(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},On.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},Wn(e,"slide-up"),Wn(e,"slide-down"),Jn(e,"move-up"),Jn(e,"move-down")]};const no=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:o}=e;const r=(n-t)/2-o;return[r,Math.ceil(r/2)]};function oo(e,t){const{componentCls:n,iconCls:o}=e,r=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,[a]=no(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[r]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:a-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:i-2*e.lineWidth+"px",background:e.multipleItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,On.Ro)()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}var ro=e=>{const{componentCls:t}=e,n=(0,hn.TS)(e,{controlHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=(0,hn.TS)(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,r]=no(e);return[oo(e),oo(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:r}}},oo(o,"lg")]};function io(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,i=e.controlHeight-2*e.lineWidth,a=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},(0,On.Wf)(e)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${o}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${o}px`,"&:after":{display:"none"}}}}}}}function ao(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[io(e),io((0,hn.TS)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},io((0,hn.TS)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const lo=e=>{const{componentCls:t,selectorBg:n}=e;return{position:"relative",backgroundColor:n,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},co=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{componentCls:o,borderHoverColor:r,outlineColor:i,antCls:a}=t,l=n?{[`${o}-selector`]:{borderColor:r}}:{};return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},l),{[`${o}-focused& ${o}-selector`]:{borderColor:r,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${o}-selector`]:{borderColor:r}})}}},so=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},uo=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[t]:Object.assign(Object.assign({},(0,On.Wf)(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},lo(e)),so(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},On.vS),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},On.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},(0,On.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXS}}}},fo=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},uo(e),ao(e),ro(e),to(e),{[`${t}-rtl`]:{direction:"rtl"}},co(t,(0,hn.TS)(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),co(`${t}-status-error`,(0,hn.TS)(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),co(`${t}-status-warning`,(0,hn.TS)(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Rn(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var po=(0,vn.Z)("Select",((e,t)=>{let{rootPrefixCls:n}=t;const o=(0,hn.TS)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight});return[fo(o)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:o,controlPaddingHorizontal:r,zIndexPopupBase:i,colorText:a,fontWeightStrong:l,controlItemBgActive:c,controlItemBgHover:s,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:f,controlHeightSM:p,colorBgContainerDisabled:m,colorTextDisabled:v}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:l,optionSelectedBg:c,optionActiveBg:s,optionPadding:`${(o-t*n)/2}px ${r}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:u,clearBg:u,singleItemHeightLG:f,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightLG:o,multipleSelectorBgDisabled:m,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent"}}));function mo(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}var vo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},ho=n(5922),go=function(e,t){return m.createElement(ho.Z,(0,i.Z)({},e,{ref:t,icon:vo}))};var bo=m.forwardRef(go),yo={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},wo=function(e,t){return m.createElement(ho.Z,(0,i.Z)({},e,{ref:t,icon:yo}))};var xo=m.forwardRef(wo),Eo=n(7311),Co={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},So=function(e,t){return m.createElement(ho.Z,(0,i.Z)({},e,{ref:t,icon:Co}))};var Zo=m.forwardRef(So),$o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},Mo=function(e,t){return m.createElement(ho.Z,(0,i.Z)({},e,{ref:t,icon:$o}))};var Oo=m.forwardRef(Mo),Io={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Po=function(e,t){return m.createElement(ho.Z,(0,i.Z)({},e,{ref:t,icon:Io}))};var Ro=m.forwardRef(Po);var ko=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const No="SECRET_COMBOBOX_MODE_DO_NOT_USE",_o=(e,t)=>{var n,{prefixCls:o,bordered:i=!0,className:a,rootClassName:l,getPopupContainer:c,popupClassName:s,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p=24,size:v,disabled:h,notFoundContent:g,status:b,builtinPlacements:y,dropdownMatchSelectWidth:w,popupMatchSelectWidth:x,direction:E,style:C,allowClear:S}=e,Z=ko(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:$,getPrefixCls:M,renderEmpty:O,direction:I,virtual:P,popupMatchSelectWidth:R,popupOverflow:k,select:N}=m.useContext(rn.E_),_=M("select",o),D=M(),T=null!=E?E:I,{compactSize:z,compactItemClassnames:H}=(0,Mn.ri)(_,T),[j,A]=po(_),L=m.useMemo((()=>{const{mode:e}=Z;if("combobox"!==e)return e===No?"combobox":e}),[Z.mode]),B="multiple"===L||"tags"===L,F=function(e,t){return void 0!==t?t:null!==e}(Z.suffixIcon,Z.showArrow),V=null!==(n=null!=x?x:w)&&void 0!==n?n:R,{status:W,hasFeedback:K,isFormItemInput:Y,feedbackIcon:X}=m.useContext($n.aM),G=((e,t)=>t||e)(W,b);let U;U=void 0!==g?g:"combobox"===L?null:(null==O?void 0:O("Select"))||m.createElement(Sn,{componentName:"Select"});const{suffixIcon:q,itemIcon:Q,removeIcon:J,clearIcon:ee}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:o,removeIcon:r,loading:i,multiple:a,hasFeedback:l,prefixCls:c,showSuffixIcon:s,feedbackIcon:u,showArrow:d,componentName:f}=e;const p=null!=n?n:m.createElement(xo,null),v=e=>null!==t||l||d?m.createElement(m.Fragment,null,!1!==s&&e,l&&u):null;let h=null;if(void 0!==t)h=v(t);else if(i)h=v(m.createElement(Oo,{spin:!0}));else{const e=`${c}-suffix`;h=t=>{let{open:n,showSearch:o}=t;return v(n&&o?m.createElement(Ro,{className:e}):m.createElement(Zo,{className:e}))}}let g=null;g=void 0!==o?o:a?m.createElement(bo,null):null;let b=null;return b=void 0!==r?r:m.createElement(Eo.Z,null),{clearIcon:p,suffixIcon:h,itemIcon:g,removeIcon:b}}(Object.assign(Object.assign({},Z),{multiple:B,hasFeedback:K,feedbackIcon:X,showSuffixIcon:F,prefixCls:_,showArrow:Z.showArrow,componentName:"Select"})),te=!0===S?{clearIcon:ee}:S,ne=(0,$t.Z)(Z,["suffixIcon","itemIcon"]),oe=r()(s||u,{[`${_}-dropdown-${T}`]:"rtl"===T},l,A),re=(0,Zn.Z)((e=>{var t;return null!==(t=null!=v?v:z)&&void 0!==t?t:e})),ie=m.useContext(ln.Z),ae=null!=h?h:ie,le=r()({[`${_}-lg`]:"large"===re,[`${_}-sm`]:"small"===re,[`${_}-rtl`]:"rtl"===T,[`${_}-borderless`]:!i,[`${_}-in-form-item`]:Y},function(e,t,n){return r()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}(_,G,K),H,null==N?void 0:N.className,a,l,A),ce=m.useMemo((()=>void 0!==f?f:"rtl"===T?"bottomRight":"bottomLeft"),[f,T]),se=mo(y,k);return j(m.createElement(nn,Object.assign({ref:t,virtual:P,showSearch:null==N?void 0:N.showSearch},ne,{style:Object.assign(Object.assign({},null==N?void 0:N.style),C),dropdownMatchSelectWidth:V,builtinPlacements:se,transitionName:(0,an.m)(D,"slide-up",Z.transitionName),listHeight:d,listItemHeight:p,mode:L,prefixCls:_,placement:ce,direction:T,suffixIcon:q,menuItemSelectedIcon:Q,removeIcon:J,allowClear:te,notFoundContent:U,className:le,getPopupContainer:c||$,dropdownClassName:oe,disabled:ae})))};const Do=m.forwardRef(_o),To=(zo=Do,function(e){return function(t){return m.createElement(on.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},m.createElement(e,Object.assign({},t)))}}((function(e){const{prefixCls:t,style:n}=e,o=m.useRef(null),[r,i]=m.useState(0),[a,l]=m.useState(0),[c,s]=(0,f.Z)(!1,{value:e.open}),{getPrefixCls:u}=m.useContext(rn.E_),d=u(Ho||"select",t);m.useEffect((()=>{if(s(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;i(t.offsetHeight+8),l(t.offsetWidth)})),t=setInterval((()=>{var n;const r=jo?`.${jo(d)}`:`.${d}-dropdown`,i=null===(n=o.current)||void 0===n?void 0:n.querySelector(r);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let p=Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},n),{margin:0}),open:c,visible:c,getPopupContainer:()=>o.current});return Ao&&(p=Ao(p)),m.createElement("div",{ref:o,style:{paddingBottom:r,position:"relative",minWidth:a}},m.createElement(zo,Object.assign({},p)))})));var zo,Ho,jo,Ao;Do.SECRET_COMBOBOX_MODE_DO_NOT_USE=No,Do.Option=St,Do.OptGroup=Et,Do._InternalPanelDoNotUseOrYouWillBeFired=To;var Lo=Do},2679:function(e,t,n){n.d(t,{e:function(){return r}});var o=n(2135);const r=()=>(0,o.useStaticQuery)("4022434828").allProduct.edges.map((e=>e.node))},5661:function(e,t){t.Z=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}}return!1}},2445:function(e,t,n){n.d(t,{Z:function(){return r}});var o=n(189);function r(e,t){var n=(0,o.Z)({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},7329:function(e,t,n){var o=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var l=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,s=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function i(){n&&(n=!1,e()),o&&c()}function l(){a(i)}function c(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(l,t);r=e}return c}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},f=b(0,0,0,0);function p(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+p(e["border-"+n+"-width"])}),0)}function v(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var o=d(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=p(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,l=p(o.width),c=p(o.height);if("border-box"===o.boxSizing&&(Math.round(l+i)!==t&&(l-=m(o,"left","right")+i),Math.round(c+a)!==n&&(c-=m(o,"top","bottom")+a)),!function(e){return e===d(e).document.documentElement}(e)){var s=Math.round(l+i)-t,u=Math.round(c+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(u)&&(c-=u)}return b(r.left,r.top,l,c)}var h="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return r?h(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):v(e):f}function b(e,t,n,o){return{x:e,y:t,width:n,height:o}}var y=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(e,t){var n,o,r,i,a,l,c,s=(o=(n=t).x,r=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(l.prototype),u(c,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),c);u(this,{target:e,contentRect:s})},x=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new o,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new y(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new w(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),E="undefined"!=typeof WeakMap?new WeakMap:new o,C=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),o=new x(t,n,this);E.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){C.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}}));var S=void 0!==i.ResizeObserver?i.ResizeObserver:C;t.Z=S}}]);
//# sourceMappingURL=bb50aa648ff7faf6851809b20abc8da032114efe-b6f96d9edfa77b5f1d7f.js.map