@rstest/browser 0.11.4 → 0.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-container/container-static/js/506.b2f920fa67.js +194 -0
- package/dist/browser-container/container-static/js/index.d27fd63f5e.js +1 -0
- package/dist/browser-container/container-static/js/lib-react.e24a1d366b.js +2 -0
- package/dist/browser-container/index.html +1 -1
- package/dist/index.js +76 -124
- package/dist/protocol.d.ts +5 -0
- package/package.json +4 -4
- package/src/client/entry.ts +3 -0
- package/src/hostController.ts +155 -195
- package/src/protocol.ts +6 -0
- package/dist/browser-container/container-static/js/243.a8eed2b9e7.js +0 -27406
- package/dist/browser-container/container-static/js/243.a8eed2b9e7.js.LICENSE.txt +0 -1
- package/dist/browser-container/container-static/js/index.84aaafaf21.js +0 -3058
- package/dist/browser-container/container-static/js/lib-react.62b27a21db.js +0 -8454
- package/dist/browser-container/container-static/js/lib-react.62b27a21db.js.LICENSE.txt +0 -1
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
/*! LICENSE: 506.b2f920fa67.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.rspackChunk_rstest_browser_ui=self.rspackChunk_rstest_browser_ui||[]).push([[506],{834(e,t,r){r.d(t,{cM:()=>s,UA:()=>E,uy:()=>c});var n=r(3055);let o=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function a(e,t,r){let n;return(n=Math.round(e.h)>=60&&240>=Math.round(e.h)?r?Math.round(e.h)-2*t:Math.round(e.h)+2*t:r?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?n+=360:n>=360&&(n-=360),n}function i(e,t,r){let n;return 0===e.h&&0===e.s?e.s:((n=r?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(n=1),r&&5===t&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(100*n)/100)}function l(e,t,r){return Math.round(100*Math.max(0,Math.min(1,r?e.v+.05*t:e.v-.15*t)))/100}function s(e,t={}){let r=[],c=new n.Y(e),u=c.toHsv();for(let e=5;e>0;e-=1){let t=new n.Y({h:a(u,e,!0),s:i(u,e,!0),v:l(u,e,!0)});r.push(t)}r.push(c);for(let e=1;e<=4;e+=1){let t=new n.Y({h:a(u,e),s:i(u,e),v:l(u,e)});r.push(t)}return"dark"===t.theme?o.map(({index:e,amount:o})=>new n.Y(t.backgroundColor||"#141414").mix(r[e],o).toHexString()):r.map(e=>e.toHexString())}let c={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},u=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];u.primary=u[5];let d=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];d.primary=d[5];let f=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];f.primary=f[5];let p=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];p.primary=p[5];let h=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];h.primary=h[5];let m=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];m.primary=m[5];let g=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];g.primary=g[5];let b=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];b.primary=b[5];let v=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];v.primary=v[5];let y=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];y.primary=y[5];let $=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];$.primary=$[5];let x=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];x.primary=x[5];let w=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];w.primary=w[5];let E={red:u,volcano:d,orange:f,gold:p,yellow:h,lime:m,green:g,cyan:b,blue:v,geekblue:y,purple:$,magenta:x,grey:w},C=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];C.primary=C[5];let k=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];k.primary=k[5];let S=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];S.primary=S[5];let A=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];A.primary=A[5];let M=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];M.primary=M[5];let N=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];N.primary=N[5];let O=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];O.primary=O[5];let I=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];I.primary=I[5];let P=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];P.primary=P[5];let R=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];R.primary=R[5];let z=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];z.primary=z[5];let T=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];T.primary=T[5];let B=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];B.primary=B[5]},8528(e,t,r){r.d(t,{L_:()=>F,oX:()=>I});var n=r(7408),o=r(9876);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,l=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||(0,o.A)(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var i=r(5142),l=r(663);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){(0,l.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var u=r(1102),d=r(9078),f=r(7401),p=r(8209);function h(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}function y(e){var t=v();return function(){var r,o=b(e);r=t?Reflect.construct(o,arguments,b(this).constructor):o.apply(this,arguments);if(r&&("object"==(0,n.A)(r)||"function"==typeof r))return r;if(void 0!==r)throw TypeError("Derived constructors may only return object or undefined");return h(this)}}var $=(0,p.A)(function e(){(0,f.A)(this,e)}),x="CALC_UNIT",w=RegExp(x,"g");function E(e){return"number"==typeof e?"".concat(e).concat(x):e}var C=function(e){g(r,e);var t=y(r);function r(e,o){(0,f.A)(this,r),a=t.call(this),(0,l.A)(h(a),"result",""),(0,l.A)(h(a),"unitlessCssVar",void 0),(0,l.A)(h(a),"lowPriority",void 0);var a,i=(0,n.A)(e);return a.unitlessCssVar=o,e instanceof r?a.result="(".concat(e.result,")"):"number"===i?a.result=E(e):"string"===i&&(a.result=e),a}return(0,p.A)(r,[{key:"add",value:function(e){return e instanceof r?this.result="".concat(this.result," + ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," + ").concat(E(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof r?this.result="".concat(this.result," - ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," - ").concat(E(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," * ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," / ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,r=(e||{}).unit,n=!0;return("boolean"==typeof r?n=r:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(n=!1),this.result=this.result.replace(w,n?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),r}($),k=function(e){g(r,e);var t=y(r);function r(e){var n;return(0,f.A)(this,r),n=t.call(this),(0,l.A)(h(n),"result",0),e instanceof r?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,p.A)(r,[{key:"add",value:function(e){return e instanceof r?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof r?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof r?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof r?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),r}($),S=function(e,t){var r="css"===e?C:k;return function(e){return new r(e,t)}},A=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};r(7972);var M=function(e,t,r,n){var o=c({},t[e]);null!=n&&n.deprecatedTokens&&n.deprecatedTokens.forEach(function(e){var t=a(e,2),r=t[0],n=t[1];(null!=o&&o[r]||null!=o&&o[n])&&(null!=o[n]||(o[n]=null==o?void 0:o[r]))});var i=c(c({},r),o);return Object.keys(i).forEach(function(e){i[e]===t[e]&&delete i[e]}),i},N="u">typeof CSSINJS_STATISTIC,O=!0;function I(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!N)return Object.assign.apply(Object,[{}].concat(t));O=!1;var o={};return t.forEach(function(e){"object"===(0,n.A)(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),O=!0,o}var P={};function R(){}var z=function(e){var t,r=e,n=R;return N&&"u">typeof Proxy&&(t=new Set,r=new Proxy(e,{get:function(e,r){if(O){var n;null==(n=t)||n.add(r)}return e[r]}}),n=function(e,r){var n;P[e]={global:Array.from(t),component:c(c({},null==(n=P[e])?void 0:n.component),r)}}),{token:r,keys:t,flush:n}},T=function(e,t,r){if("function"==typeof r){var n;return r(I(t,null!=(n=t[e])?n:{}))}return null!=r?r:{}},B=new(function(){function e(){(0,f.A)(this,e),(0,l.A)(this,"map",new Map),(0,l.A)(this,"objectIDMap",new WeakMap),(0,l.A)(this,"nextID",0),(0,l.A)(this,"lastAccessBeat",new Map),(0,l.A)(this,"accessBeat",0)}return(0,p.A)(e,[{key:"set",value:function(e,t){this.clear();var r=this.getCompositeKey(e);this.map.set(r,t),this.lastAccessBeat.set(r,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),r=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,r}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===(0,n.A)(e)?"obj_".concat(t.getObjectID(e)):"".concat((0,n.A)(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(r,n){t-r>6e5&&(e.map.delete(n),e.lastAccessBeat.delete(n))}),this.accessBeat=0}}}]),e}()),D=function(){return{}},F=function(e){var t=e.useCSP,r=void 0===t?D:t,o=e.useToken,s=e.usePrefix,f=e.getResetStyles,p=e.getCommonStyle,h=e.getCompUnitless;function m(t,i,l){var h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},m=Array.isArray(t)?t:[t,t],g=a(m,1)[0],b=m.join("-"),v=e.layer||{name:"antd"};return function(e){var t,a,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,y=o(),$=y.theme,x=y.realToken,w=y.hashId,E=y.token,C=y.cssVar,k=y.zeroRuntime;if((0,u.useMemo)(function(){return k},[]))return w;var N=s(),O=N.rootPrefixCls,P=N.iconPrefixCls,R=r(),D=(t=function(){var e=new Set;return Object.keys(h.unitless||{}).forEach(function(t){e.add((0,d.Ki)(t,C.prefix)),e.add((0,d.Ki)(t,A(g,C.prefix)))}),S("css",e)},a=["css",g,null==C?void 0:C.prefix],u.useMemo(function(){var e=B.get(a);if(e)return e;var r=t();return B.set(a,r),r},a)),F=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return"max(".concat(t.map(function(e){return(0,d.zA)(e)}).join(","),")")},L=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return"min(".concat(t.map(function(e){return(0,d.zA)(e)}).join(","),")")},H={theme:$,token:E,hashId:w,nonce:function(){return R.nonce},clientOnly:h.clientOnly,layer:v,order:h.order||-999};return"function"==typeof f&&(0,d.IV)(c(c({},H),{},{clientOnly:!1,path:["Shared",O]}),function(){return f(E,{prefix:{rootPrefixCls:O,iconPrefixCls:P},csp:R})}),(0,d.IV)(c(c({},H),{},{path:[b,e,P]}),function(){if(!1===h.injectStyle)return[];var t=z(E),r=t.token,o=t.flush,a=T(g,x,l),s=".".concat(e),c=M(g,x,a,{deprecatedTokens:h.deprecatedTokens});a&&"object"===(0,n.A)(a)&&Object.keys(a).forEach(function(e){a[e]="var(".concat((0,d.Ki)(e,A(g,C.prefix)),")")});var u=I(r,{componentCls:s,prefixCls:e,iconCls:".".concat(P),antCls:".".concat(O),calc:D,max:F,min:L},a),f=i(u,{hashId:w,prefixCls:e,rootPrefixCls:O,iconPrefixCls:P});o(g,c);var b="function"==typeof p?p(u,e,m,h.resetFont):null;return[!1===h.resetStyle?null:b,f]}),w}}return{genStyleHooks:function(e,t,n,a){var s,u,f,p,g,b,v=Array.isArray(e)?e[0]:e;function y(e){return"".concat(String(v)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var $=(null==a?void 0:a.unitless)||{},x=c(c({},"function"==typeof h?h(e):{}),{},(0,l.A)({},y("zIndexPopup"),!0));Object.keys($).forEach(function(e){x[y(e)]=$[e]});var w=c(c({},a),{},{unitless:x,prefixToken:y}),E=m(e,t,n,w),C=(s=v,u=n,p=(f=w).unitless,g=f.prefixToken,b=f.ignore,function(e){var t=o(),n=t.cssVar,a=t.realToken,i=r();return(0,d.RC)({path:[s],prefix:n.prefix,key:n.key,unitless:p,ignore:b,token:a,scope:e,nonce:function(){return i.nonce}},function(){var e=T(s,a,u),t=M(s,a,e,{deprecatedTokens:null==f?void 0:f.deprecatedTokens});return e&&Object.keys(e).forEach(function(e){t[g(e)]=t[e],delete t[e]}),t}),null==n?void 0:n.key});return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=E(e,t),n=null==a?void 0:a.extraCssVarPrefixCls,o="function"==typeof n?n({prefixCls:e,rootCls:t}):n;return[r,C(null!=o&&o.length?[t].concat((0,i.A)(o)):t)]}},genSubStyleComponent:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=m(e,t,r,c({resetStyle:!1,order:-998},n));return function(e){var t=e.prefixCls,r=e.rootCls,n=void 0===r?t:r;return o(t,n),null}},genComponentStyleHook:m}}},9078(e,t,r){let n;r.d(t,{Mo:()=>eO,J:()=>p,an:()=>y,lO:()=>z,Ki:()=>M,zA:()=>k,RC:()=>eN,hV:()=>T,IV:()=>eM});var o=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)},a=r(6506),i=r(1102);function l(e){return e.join("%")}r(485),r(7439);let s=0;class c{instanceId;constructor(e){this.instanceId=e}cache=new Map;updateTimes=new Map;extracted=new Set;get(e){return this.opGet(l(e))}opGet(e){return this.cache.get(e)||null}update(e,t){return this.opUpdate(l(e),t)}opUpdate(e,t){let r=t(this.cache.get(e));null===r?(this.cache.delete(e),this.updateTimes.delete(e)):(this.cache.set(e,r),this.updateTimes.set(e,s),s+=1)}}let u="data-token-hash",d="data-css-hash",f="__cssinjs_instance__";var p=i.createContext({hashPriority:"low",cache:function(){let e=Math.random().toString(12).slice(2);if("u">typeof document&&document.head&&document.body){let t=document.body.querySelectorAll(`style[${d}]`)||[],{firstChild:r}=document.head;Array.from(t).forEach(t=>{t[f]||=e,t[f]===e&&document.head.insertBefore(t,r)});let n={};Array.from(document.querySelectorAll(`style[${d}]`)).forEach(t=>{let r=t.getAttribute(d);n[r]?t[f]===e&&t.parentNode?.removeChild(t):n[r]=!0})}return new c(e)}(),defaultCache:!0,autoPrefix:!1}),h=r(2331),m=r(2667);let g=0;class b{derivatives;id;constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=g,0===e.length&&(0,m.$e)(e.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),g+=1}getDerivativeToken(e){return this.derivatives.reduce((t,r)=>r(e,t),void 0)}}let v=new class e{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e,t=!1){let r={map:this.cache};return e.forEach(e=>{r=r?r?.map?.get(e):void 0}),r?.value&&t&&(r.value[1]=this.cacheCallTimes++),r?.value}get(e){return this.internalGet(e,!0)?.[0]}has(e){return!!this.internalGet(e)}set(t,r){if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){let[e]=this.keys.reduce((e,t)=>{let[,r]=e;return this.internalGet(t)[1]<r?[t,this.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(t)}let n=this.cache;t.forEach((e,o)=>{if(o===t.length-1)n.set(e,{value:[r,this.cacheCallTimes++]});else{let t=n.get(e);t?t.map||(t.map=new Map):n.set(e,{map:new Map}),n=n.get(e).map}})}deleteByPath(e,t){let r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),r.value?.[0];let n=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),n}delete(e){if(this.has(e))return this.keys=this.keys.filter(t=>!function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,e)),this.deleteByPath(this.cache,e)}};function y(e){let t=Array.isArray(e)?e:[e];return v.has(t)||v.set(t,new b(t)),v.get(t)}let $=new WeakMap,x={},w=new WeakMap;function E(e){let t=w.get(e)||"";return t||(Object.keys(e).forEach(r=>{let n=e[r];t+=r,n instanceof b?t+=n.id:n&&"object"==typeof n?t+=E(n):t+=n}),t=o(t),w.set(e,t)),t}`random-${Date.now()}-${Math.random()}`.replace(/\./g,"");let C=(0,h.A)();function k(e){return"number"==typeof e?`${e}px`:e}function S(e){let{hashCls:t,hashPriority:r="low"}=e||{};if(!t)return"";let n=`.${t}`;return"low"===r?`:where(${n})`:n}function A(e,t){let r="function"==typeof t?t():t;return r?{...e,csp:{...e.csp,nonce:r}}:e}let M=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),N=(e,t,r)=>{let{hashCls:n,hashPriority:o="low",prefix:a,unitless:i,ignore:l,preserve:s}=r||{},c={},u={};return Object.entries(e).forEach(([e,t])=>{if(s?.[e])u[e]=t;else if(("string"==typeof t||"number"==typeof t)&&!l?.[e]){let r=M(e,a);c[r]="number"!=typeof t||i?.[e]?String(t):`${t}px`,u[e]=`var(${r})`}}),[u,((e,t,r)=>{let{hashCls:n,hashPriority:o="low",scope:a}=r||{};if(!Object.keys(e).length)return"";let i=`${S({hashCls:n,hashPriority:o})}.${t}`,l=[a].flat().filter(Boolean),s=l.length?l.map(e=>`${i}.${e}`).join(", "):i;return`${s}{${Object.entries(e).map(([e,t])=>`${e}:${t};`).join("")}}`})(c,t,{scope:r?.scope,hashCls:n,hashPriority:o})]},O=new Map;function I(e,t,r,n,o){let{cache:a}=i.useContext(p),s=l([e,...t]),c=e=>{a.opUpdate(s,t=>{let[n=0,o]=t||[void 0,void 0],a=[n,o||r()];return e?e(a):a})};i.useMemo(()=>{c()},[s]);let u=a.opGet(s)[1];return(0,i.useInsertionEffect)(()=>(c(([e,t])=>[e+1,t]),O.has(s)||(o?.(u),O.set(s,!0),Promise.resolve().then(()=>{O.delete(s)})),()=>{a.opUpdate(s,e=>{let[t=0,r]=e||[];return 0==t-1?(n?.(r,!1),O.delete(s),null):[t-1,r]})}),[s]),u}let P={},R=new Map,z=(e,t,r,n)=>{let o={...r.getDerivativeToken(e),...t};return n&&(o=n(o)),o};function T(e,t,r){let{cache:{instanceId:n},container:l,hashPriority:s}=(0,i.useContext)(p),{salt:c="",override:h=P,formatToken:m,getComputedToken:g,cssVar:b,nonce:v}=r,y=function(e,t){let r=$;for(let e=0;e<t.length;e+=1){let n=t[e];r.has(n)||r.set(n,new WeakMap),r=r.get(n)}return r.has(x)||r.set(x,e()),r.get(x)}(()=>Object.assign({},...t),t),w=E(y),C=E(h),k=E(b);return I("token",[c,e.id,w,C,k],()=>{var t;let r=g?g(y,h,e):z(y,h,e,m),n={...r},a=`${c}_${b.prefix}`,i=o(a),l=`css-${i}`;n._tokenKey=o(`${a}_${E(n)}`);let[u,d]=N(r,b.key,{prefix:b.prefix,ignore:b.ignore,unitless:b.unitless,preserve:b.preserve,hashPriority:s,hashCls:b.hashed?l:void 0});return u._hashId=i,t=b.key,R.set(t,(R.get(t)||0)+1),[u,l,n,d,b.key]},([,,,,e])=>{let t;R.set(e,(R.get(e)||0)-1),t=new Set,R.forEach((e,r)=>{e<=0&&t.add(r)}),R.size-t.size>-1&&t.forEach(e=>{"u">typeof document&&document.querySelectorAll(`style[${u}="${e}"]`).forEach(e=>{e[f]===n&&e.parentNode?.removeChild(e)}),R.delete(e)})},([,,,e,t])=>{if(!e)return;let r={mark:d,prepend:"queue",attachTo:l,priority:-999};r=A(r,v);let i=(0,a.BD)(e,o(`css-var-${t}`),r);i[f]=n,i.setAttribute(u,t)})}var B={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},D="-ms-",F="-moz-",L="-webkit-",H="comm",j="rule",_="decl",W="@keyframes",q=Math.abs,K=String.fromCharCode,V=Object.assign;function X(e,t){return(e=t.exec(e))?e[0]:e}function G(e,t,r){return e.replace(t,r)}function U(e,t,r){return e.indexOf(t,r)}function Y(e,t){return 0|e.charCodeAt(t)}function Q(e,t,r){return e.slice(t,r)}function Z(e){return e.length}function J(e,t){return t.push(e),e}function ee(e,t){return e.filter(function(e){return!X(e,t)})}function et(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function er(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case _:return e.return=e.return||e.value;case H:return"";case W:return e.return=e.value+"{"+et(e.children,n)+"}";case j:if(!Z(e.value=e.props.join(",")))return""}return Z(r=et(e.children,n))?e.return=e.value+"{"+r+"}":""}var en=1,eo=1,ea=0,ei=0,el=0,es="";function ec(e,t,r,n,o,a,i,l){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:en,column:eo,length:i,return:"",siblings:l}}function eu(e,t){return V(ec("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ed(e){for(;e.root;)e=eu(e.root,{children:[e]});J(e,e.siblings)}function ef(){return el=ei<ea?Y(es,ei++):0,eo++,10===el&&(eo=1,en++),el}function ep(){return Y(es,ei)}function eh(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function em(e){var t,r;return(t=ei-1,r=function e(t){for(;ef();)switch(el){case t:return ei;case 34:case 39:34!==t&&39!==t&&e(el);break;case 40:41===t&&e(t);break;case 92:ef()}return ei}(91===e?e+2:40===e?e+1:e),Q(es,t,r)).trim()}function eg(e){var t,r;return r=function e(t,r,n,o,a,i,l,s,c){for(var u,d,f,p,h=0,m=0,g=l,b=0,v=0,y=0,$=1,x=1,w=1,E=0,C="",k=a,S=i,A=o,M=C;x;)switch(y=E,E=ef()){case 40:if(108!=y&&58==Y(M,g-1)){-1!=U(M+=G(em(E),"&","&\f"),"&\f",q(h?s[h-1]:0))&&(w=-1);break}case 34:case 39:case 91:M+=em(E);break;case 9:case 10:case 13:case 32:M+=function(e){for(;el=ep();)if(el<33)ef();else break;return eh(e)>2||eh(el)>3?"":" "}(y);break;case 92:M+=function(e,t){for(var r;--t&&ef()&&!(el<48)&&!(el>102)&&(!(el>57)||!(el<65))&&(!(el>70)||!(el<97)););return r=ei+(t<6&&32==ep()&&32==ef()),Q(es,e,r)}(ei-1,7);continue;case 47:switch(ep()){case 42:case 47:J((u=function(e,t){for(;ef();)if(e+el===57)break;else if(e+el===84&&47===ep())break;return"/*"+Q(es,t,ei-1)+"*"+K(47===e?e:ef())}(ef(),ei),d=r,f=n,p=c,ec(u,d,f,H,K(el),Q(u,2,-2),0,p)),c),(5==eh(y||1)||5==eh(ep()||1))&&Z(M)&&" "!==Q(M,-1,void 0)&&(M+=" ");break;default:M+="/"}break;case 123*$:s[h++]=Z(M)*w;case 125*$:case 59:case 0:switch(E){case 0:case 125:x=0;case 59+m:-1==w&&(M=G(M,/\f/g,"")),v>0&&(Z(M)-g||0===$&&47===y)&&J(v>32?ev(M+";",o,n,g-1,c):ev(G(M," ","")+";",o,n,g-2,c),c);break;case 59:M+=";";default:if(J(A=eb(M,r,n,h,m,a,s,C,k=[],S=[],g,i),i),123===E)if(0===m)e(M,r,A,A,k,i,g,s,S);else{switch(b){case 99:if(110===Y(M,3))break;case 108:if(97===Y(M,2))break;default:m=0;case 100:case 109:case 115:}m?e(t,A,A,o&&J(eb(t,A,A,0,0,a,s,C,a,k=[],g,S),S),a,S,g,s,o?k:S):e(M,A,A,A,[""],S,0,s,S)}}h=m=v=0,$=w=1,C=M="",g=l;break;case 58:g=1+Z(M),v=y;default:if($<1){if(123==E)--$;else if(125==E&&0==$++&&125==(el=ei>0?Y(es,--ei):0,eo--,10===el&&(eo=1,en--),el))continue}switch(M+=K(E),E*$){case 38:w=m>0?1:(M+="\f",-1);break;case 44:s[h++]=(Z(M)-1)*w,w=1;break;case 64:45===ep()&&(M+=em(ef())),b=ep(),m=g=Z(C=M+=function(e){for(;!eh(ep());)ef();return Q(es,e,ei)}(ei)),E++;break;case 45:45===y&&2==Z(M)&&($=0)}}return i}("",null,null,null,[""],(t=e,en=eo=1,ea=Z(es=t),ei=0,e=[]),0,[0],e),es="",r}function eb(e,t,r,n,o,a,i,l,s,c,u,d){for(var f=o-1,p=0===o?a:[""],h=p.length,m=0,g=0,b=0;m<n;++m)for(var v=0,y=Q(e,f+1,f=q(g=i[m])),$=e;v<h;++v)($=(g>0?p[v]+" "+y:G(y,/&\f/g,p[v])).trim())&&(s[b++]=$);return ec(e,t,r,0===o?j:l,s,c,u,d)}function ev(e,t,r,n,o){return ec(e,t,r,_,Q(e,0,n),Q(e,n+1,-1),n,o)}function ey(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case _:e.return=function e(t,r,n){var o;switch(o=r,45^Y(t,0)?(((o<<2^Y(t,0))<<2^Y(t,1))<<2^Y(t,2))<<2^Y(t,3):0){case 5103:return L+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return L+t+t;case 4855:return L+t.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+t;case 4789:return F+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return L+t+F+t+D+t+t;case 5936:switch(Y(t,r+11)){case 114:return L+t+D+G(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return L+t+D+G(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return L+t+D+G(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return L+t+D+t+t;case 6165:return L+t+D+"flex-"+t+t;case 5187:return L+t+G(t,/(\w+).+(:[^]+)/,L+"box-$1$2"+D+"flex-$1$2")+t;case 5443:return L+t+D+"flex-item-"+G(t,/flex-|-self/g,"")+(X(t,/flex-|baseline/)?"":D+"grid-row-"+G(t,/flex-|-self/g,""))+t;case 4675:return L+t+D+"flex-line-pack"+G(t,/align-content|flex-|-self/g,"")+t;case 5548:return L+t+D+G(t,"shrink","negative")+t;case 5292:return L+t+D+G(t,"basis","preferred-size")+t;case 6060:return L+"box-"+G(t,"-grow","")+L+t+D+G(t,"grow","positive")+t;case 4554:return L+G(t,/([^-])(transform)/g,"$1"+L+"$2")+t;case 6187:return G(G(G(t,/(zoom-|grab)/,L+"$1"),/(image-set)/,L+"$1"),t,"")+t;case 5495:case 3959:return G(t,/(image-set\([^]*)/,L+"$1$`$1");case 4968:return G(G(t,/(.+:)(flex-)?(.*)/,L+"box-pack:$3"+D+"flex-pack:$3"),/space-between/,"justify")+L+t+t;case 4200:if(!X(t,/flex-|baseline/))return D+"grid-column-align"+Q(t,r)+t;break;case 2592:case 3360:return D+G(t,"template-","")+t;case 4384:case 3616:if(n&&n.some(function(e,t){return r=t,X(e.props,/grid-\w+-end/)}))return~U(t+(n=n[r].value),"span",0)?t:D+G(t,"-start","")+t+D+"grid-row-span:"+(~U(n,"span",0)?X(n,/\d+/):X(n,/\d+/)-X(t,/\d+/))+";";return D+G(t,"-start","")+t;case 4896:case 4128:return n&&n.some(function(e){return X(e.props,/grid-\w+-start/)})?t:D+G(G(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return G(t,/(.+)-inline(.+)/,L+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Z(t)-1-r>6)switch(Y(t,r+1)){case 109:if(45!==Y(t,r+4))break;case 102:return G(t,/(.+:)(.+)-([^]+)/,"$1"+L+"$2-$3$1"+F+(108==Y(t,r+3)?"$3":"$2-$3"))+t;case 115:return~U(t,"stretch",0)?e(G(t,"stretch","fill-available"),r,n)+t:t}break;case 5152:case 5920:return G(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,r,n,o,a,i,l){return D+r+":"+n+l+(o?D+r+"-span:"+(a?i:i-n)+l:"")+t});case 4949:if(121===Y(t,r+6))return G(t,":",":"+L)+t;break;case 6444:switch(Y(t,45===Y(t,14)?18:11)){case 120:return G(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+L+(45===Y(t,14)?"inline-":"")+"box$3$1"+L+"$2$3$1"+D+"$2box$3")+t;case 100:return G(t,":",":"+D)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return G(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,r);return;case W:return et([eu(e,{value:G(e.value,"@","@"+L)})],n);case j:if(e.length){var o,a;return o=r=e.props,a=function(t){switch(X(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ed(eu(e,{props:[G(t,/:(read-\w+)/,":"+F+"$1")]})),ed(eu(e,{props:[t]})),V(e,{props:ee(r,n)});break;case"::placeholder":ed(eu(e,{props:[G(t,/:(plac\w+)/,":"+L+"input-$1")]})),ed(eu(e,{props:[G(t,/:(plac\w+)/,":"+F+"$1")]})),ed(eu(e,{props:[G(t,/:(plac\w+)/,D+"input-$1")]})),ed(eu(e,{props:[t]})),V(e,{props:ee(r,n)})}return""},o.map(a).join("")}}}let e$="data-ant-cssinjs-cache-path",ex="_FILE_STYLE__",ew=!0,eE="_multi_value_";function eC(e,t){var r,n;return(t?et(eg(e),(n=(r=[ey,er]).length,function(e,t,o,a){for(var i="",l=0;l<n;l++)i+=r[l](e,t,o,a)||"";return i})):et(eg(e),er)).replace(/\{%%%\:[^;];}/g,";")}function ek(e,t,r="high"){if(!t)return e;let n=S({hashCls:t,hashPriority:r});return e.split(",").map(e=>{let t=e.trim().split(/\s+/),r=t[0]||"",o=r.match(/^\w+/)?.[0]||"";return[r=`${o}${n}${r.slice(o.length)}`,...t.slice(1)].join(" ")}).join(",")}let eS=(e,t={},{root:r,injectHash:n,parentSelectors:o}={root:!0,parentSelectors:[]})=>{let{hashId:a,layer:i,path:l,hashPriority:s,transformers:c=[],linters:u=[]}=t,d="",f={};function p(e){let r=e.getName(a);if(!f[r]){let[n]=eS(e.style,t,{root:!1,parentSelectors:o});f[r]=`@keyframes ${e.getName(a)}${n}`}}return(function e(t,r=[]){return t.forEach(t=>{Array.isArray(t)?e(t,r):t&&r.push(t)}),r})(Array.isArray(e)?e:[e]).forEach(e=>{let i="string"!=typeof e||r?e:{};if("string"==typeof i)d+=`${i}
|
|
3
|
+
`;else if(i._keyframe)p(i);else{let e=c.reduce((e,t)=>t?.visit?.(e)||e,i);Object.keys(e).forEach(i=>{let l=e[i];if("object"!=typeof l||!l||"animationName"===i&&l._keyframe||"object"==typeof l&&l&&("_skip_check_"in l||eE in l)){function c(e,t){let r=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),n=t;B[e]||"number"!=typeof n||0===n||(n=`${n}px`),"animationName"===e&&t?._keyframe&&(p(t),n=t.getName(a)),d+=`${r}:${n};`}let e=l?.value??l;if("object"==typeof l&&l?.[eE]&&Array.isArray(e))e.forEach(e=>{c(i,e)});else null!=e&&c(i,e)}else{let e=!1,c=i.trim(),u=!1;(r||n)&&a?c.startsWith("@")?e=!0:c="&"===c?ek("",a,s):ek(i,a,s):r&&!a&&("&"===c||""===c)&&(c="",u=!0);let[p,h]=eS(l,t,{root:u,injectHash:e,parentSelectors:[...o,c]});f={...f,...h},d+=`${c}${p}`}})}}),r?i&&(d&&(d=`@layer ${i.name} {${d}}`),i.dependencies&&(f[`@layer ${i.name}`]=i.dependencies.map(e=>`@layer ${e}, ${i.name};`).join("\n"))):d=`{${d}}`,[d,f]};function eA(e,t){return o(`${e.join("%")}${t}`)}function eM(e,t){let{path:r,hashId:o,layer:l,nonce:s,clientOnly:c,order:u=0}=e,{mock:m,hashPriority:g,container:b,transformers:v,linters:y,cache:$,layer:x,autoPrefix:w}=i.useContext(p),E=[o||""];x&&E.push("layer"),E.push(...r),I("style",E,()=>{let e=E.join("|");if(function(e){if(!n&&(n={},(0,h.A)())){let e=document.createElement("div");e.className=e$,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(e=>{let[t,r]=e.split(":");n[t]=r});let r=document.querySelector(`style[${e$}]`);r&&(ew=!1,r.parentNode?.removeChild(r)),document.body.removeChild(e)}return!!n[e]}(e)){let[t,r]=function(e){let t=n[e],r=null;if(t&&(0,h.A)())if(ew)r=ex;else{let t=document.querySelector(`style[${d}="${n[e]}"]`);t?r=t.innerHTML:delete n[e]}return[r,t]}(e);if(t)return[t,r,{},c,u]}let[a,i]=eS(t(),{hashId:o,hashPriority:g,layer:x?l:void 0,path:r.join("-"),transformers:v,linters:y}),s=eC(a,w||!1),f=eA(E,s);return[s,f,i,c,u]},(e,t)=>{let[,r]=e;t&&C&&(0,a.m6)(r,{mark:d,attachTo:b})},e=>{let[t,r,n,,o]=e;if(C&&t!==ex){let e={mark:d,prepend:!x&&"queue",attachTo:b,priority:o};e=A(e,s);let i=[],l=[];Object.keys(n).forEach(e=>{e.startsWith("@layer")?i.push(e):l.push(e)}),i.forEach(t=>{(0,a.BD)(eC(n[t],w||!1),`_layer-${t}`,{...e,prepend:!0})}),(0,a.BD)(t,r,e)[f]=$.instanceId,l.forEach(t=>{(0,a.BD)(eC(n[t],w||!1),`_effect-${t}`,e)})}})}var eN=(e,t)=>{let{key:r,prefix:n,unitless:o,ignore:l,token:s,hashId:c,scope:h,nonce:m}=e,{cache:{instanceId:g},container:b,hashPriority:v}=(0,i.useContext)(p),{_tokenKey:y}=s,$=Array.isArray(h)?h.join("@@"):h,x=[...e.path,r,$,y];return I("cssVar",x,()=>{let[e,a]=N(t(),r,{prefix:n,unitless:o,ignore:l,scope:h,hashPriority:v,hashCls:c}),i=eA(x,a);return[e,a,i,r]},([,,e])=>{C&&(0,a.m6)(e,{mark:d,attachTo:b})},([,e,t])=>{if(!e)return;let n={mark:d,prepend:"queue",attachTo:b,priority:-999};n=A(n,m);let o=(0,a.BD)(e,t,n);o[f]=g,o.setAttribute(u,r)})},eO=class{name;style;constructor(e,t){this.name=e,this.style=t}getName(e=""){return e?`${e}-${this.name}`:this.name}_keyframe=!0};function eI(e){return e.notSplit=!0,e}eI(["borderTop","borderBottom"]),eI(["borderTop"]),eI(["borderBottom"]),eI(["borderLeft","borderRight"]),eI(["borderLeft"]),eI(["borderRight"])},3055(e,t,r){r.d(t,{Y:()=>s});var n={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"};let o=Math.round;function a(e,t){let r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)n[e]=t(n[e]||0,r[e]||"",e);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}let i=(e,t,r)=>0===r?e:e/100;function l(e,t){let r=t||255;return e>r?r:e<0?0:e}class s{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(e)if("string"==typeof e){const t=e.trim();function r(e){return t.startsWith(e)}if(/^#?[A-F\d]{3,8}$/i.test(t))this.fromHexString(t);else if(r("rgb"))this.fromRgbString(t);else if(r("hsl"))this.fromHslString(t);else if(r("hsv")||r("hsb"))this.fromHsvString(t);else{const e=n[t.toLowerCase()];e&&this.fromHexString(parseInt(e,36).toString(16).padStart(6,"0"))}}else if(e instanceof s)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._hsl_s=e._hsl_s,this._hsv_s=e._hsv_s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=l(e.r),this.g=l(e.g),this.b=l(e.b),this.a="number"==typeof e.a?l(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return .2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){let e=this.getMax()-this.getMin();0===e?this._h=0:this._h=o(60*(this.r===this.getMax()?(this.g-this.b)/e+6*(this.g<this.b):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(void 0===this._hsv_s){let e=this.getMax()-this.getMin();0===e?this._hsv_s=0:this._hsv_s=e/this.getMax()}return this._hsv_s}getHSLSaturation(){if(void 0===this._hsl_s){let e=this.getMax()-this.getMin();if(0===e)this._hsl_s=0;else{let t=this.getLightness();this._hsl_s=e/255/(1-Math.abs(2*t-1))}}return this._hsl_s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){let t=this.getHue(),r=this.getSaturation(),n=this.getLightness()-e/100;return n<0&&(n=0),this._c({h:t,s:r,l:n,a:this.a})}lighten(e=10){let t=this.getHue(),r=this.getSaturation(),n=this.getLightness()+e/100;return n>1&&(n=1),this._c({h:t,s:r,l:n,a:this.a})}mix(e,t=50){let r=this._c(e),n=t/100,a=e=>(r[e]-this[e])*n+this[e],i={r:o(a("r")),g:o(a("g")),b:o(a("b")),a:o(100*a("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),r=this.a+t.a*(1-this.a),n=e=>o((this[e]*this.a+t[e]*t.a*(1-this.a))/r);return this._c({r:n("r"),g:n("g"),b:n("b"),a:r})}isDark(){return 128>this.getBrightness()}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#",t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;let r=(this.g||0).toString(16);e+=2===r.length?r:"0"+r;let n=(this.b||0).toString(16);if(e+=2===n.length?n:"0"+n,"number"==typeof this.a&&this.a>=0&&this.a<1){let t=o(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=o(100*this.getHSLSaturation()),r=o(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${r}%,${this.a})`:`hsl(${e},${t}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,r){let n=this.clone();return n[e]=l(t,r),n}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace("#","");function r(e,r){return parseInt(t[e]+t[r||e],16)}t.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=t[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=t[6]?r(6,7)/255:1)}fromHsl({h:e,s:t,l:r,a:n}){let a=(e%360+360)%360;if(this._h=a,this._hsl_s=t,this._l=r,this.a="number"==typeof n?n:1,t<=0){let e=o(255*r);this.r=e,this.g=e,this.b=e;return}let i=0,l=0,s=0,c=a/60,u=(1-Math.abs(2*r-1))*t,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(i=u,l=d):c>=1&&c<2?(i=d,l=u):c>=2&&c<3?(l=u,s=d):c>=3&&c<4?(l=d,s=u):c>=4&&c<5?(i=d,s=u):c>=5&&c<6&&(i=u,s=d);let f=r-u/2;this.r=o((i+f)*255),this.g=o((l+f)*255),this.b=o((s+f)*255)}fromHsv({h:e,s:t,v:r,a:n}){let a=(e%360+360)%360;this._h=a,this._hsv_s=t,this._v=r,this.a="number"==typeof n?n:1;let i=o(255*r);if(this.r=i,this.g=i,this.b=i,t<=0)return;let l=a/60,s=Math.floor(l),c=l-s,u=o(r*(1-t)*255),d=o(r*(1-t*c)*255),f=o(r*(1-t*(1-c))*255);switch(s){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;default:this.g=u,this.b=d}}fromHsvString(e){let t=a(e,i);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=a(e,i);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=a(e,(e,t)=>t.includes("%")?o(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}},1633(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"}},3678(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"}},6344(e,t){t.A={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"}},2130(e,t){t.A={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"}},300(e,t){t.A={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"}},8022(e,t){t.A={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"}},6407(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"}},1630(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"}},1485(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"}},5432(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"}},66(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"}},5862(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"}},9656(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"}},4676(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"}},839(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"}},4168(e,t){t.A={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"}},252(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"}},3863(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"}},8286(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"}},6601(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"}},6870(e,t){t.A={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"}},5418(e,t){t.A={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"}},7995(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"}},2875(e,t,r){r.d(t,{A:()=>$});var n=r(1102),o=r(851),a=r(396);let i="data-rc-order",l="data-rc-priority",s=new Map;function c(){return!!("u">typeof window&&window.document&&window.document.createElement)}function u({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function d(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function f(e){return Array.from((s.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function p(e,t={}){if(!c())return null;let{csp:r,prepend:n,priority:o=0}=t,a="queue"===n?"prependQueue":n?"prepend":"append",s="prependQueue"===a,u=document.createElement("style");u.setAttribute(i,a),s&&o&&u.setAttribute(l,`${o}`),r?.nonce&&(u.nonce=r.nonce),u.innerHTML=e;let h=d(t),{firstChild:m}=h;if(n){if(s){let e=(t.styles||f(h)).filter(e=>!!["prepend","prependQueue"].includes(e.getAttribute(i))&&o>=Number(e.getAttribute(l)||0));if(e.length)return h.insertBefore(u,e[e.length-1].nextSibling),u}h.insertBefore(u,m)}else h.appendChild(u);return u}let h={};function m(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function g(e={}){return Object.keys(e).reduce((t,r)=>{let n=e[r];return"class"===r?(t.className=n,delete t.class):(delete t[r],t[r.replace(/-(.)/g,(e,t)=>t.toUpperCase())]=n),t},{})}let b=`
|
|
4
|
+
.anticon {
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
color: inherit;
|
|
8
|
+
font-style: normal;
|
|
9
|
+
line-height: 0;
|
|
10
|
+
text-align: center;
|
|
11
|
+
text-transform: none;
|
|
12
|
+
vertical-align: -0.125em;
|
|
13
|
+
text-rendering: optimizeLegibility;
|
|
14
|
+
-webkit-font-smoothing: antialiased;
|
|
15
|
+
-moz-osx-font-smoothing: grayscale;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.anticon > * {
|
|
19
|
+
line-height: 1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.anticon svg {
|
|
23
|
+
display: inline-block;
|
|
24
|
+
vertical-align: inherit;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.anticon::before {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.anticon .anticon-icon {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.anticon[tabindex] {
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.anticon-spin {
|
|
40
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
41
|
+
animation: loadingCircle 1s infinite linear;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@-webkit-keyframes loadingCircle {
|
|
45
|
+
100% {
|
|
46
|
+
-webkit-transform: rotate(360deg);
|
|
47
|
+
transform: rotate(360deg);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@keyframes loadingCircle {
|
|
52
|
+
100% {
|
|
53
|
+
-webkit-transform: rotate(360deg);
|
|
54
|
+
transform: rotate(360deg);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
`,v=e=>{var t,r,o;let{icon:i,className:l,onClick:v,style:y,primaryColor:$,secondaryColor:x,...w}=e,E=n.useRef(null);return((e=>{let{csp:t,prefixCls:r,layer:o,zeroRuntime:i}=(0,n.useContext)(a.A),l=b;r&&(l=l.replace(/anticon/g,r)),o&&(l=`@layer ${o} {
|
|
58
|
+
${l}
|
|
59
|
+
}`),(0,n.useEffect)(()=>{var r;let n;if(i)return;let a=(r=e.current,n=r?.getRootNode?.(),"u">typeof ShadowRoot&&n instanceof ShadowRoot?n:null);!function(e,t,r={}){if(!c())return;let n=d(r),o=f(n),a={...r,styles:o};!function(e,t){let r=s.get(e);if(!r||!function(e,t){if(!e||!t)return!1;if(e.contains)return e.contains(t);let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}(document,r)){let r=p("",t);if(!r)return;let{parentNode:n}=r;s.set(e,n),e.removeChild(r)}}(n,a);let i=function(e,t={}){let{styles:r}=t;return(r||=f(d(t))).find(r=>r.getAttribute(u(t))===e)}(t,a);if(i)return a.csp?.nonce&&i.nonce!==a.csp.nonce&&(i.nonce=a.csp.nonce),i.innerHTML!==e&&(i.innerHTML=e);let l=p(e,a);l?.setAttribute(u(a),t)}(l,"@ant-design-icons",{prepend:!o,csp:t,attachTo:a})},[])})(E),t=m(i),r=`icon should be icon definiton, but got ${i}`,o=`[@ant-design/icons] ${r}`,t||h[o]||(h[o]=!0),m(i))?function e(t,r,o){return o?n.createElement(t.tag,{key:r,...g(t.attrs),...o},(t.children||[]).map((n,o)=>e(n,`${r}-${t.tag}-${o}`))):n.createElement(t.tag,{key:r,...g(t.attrs)},(t.children||[]).map((n,o)=>e(n,`${r}-${t.tag}-${o}`)))}(i.icon,`svg-${i.name}`,{className:l,onClick:v,style:y,"data-icon":i.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...w,ref:E}):null};function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}v.displayName="IconReact";var $=n.forwardRef((e,t)=>{let{className:r,icon:i,spin:l,rotate:s,tabIndex:c,onClick:u,twoToneColor:d,...f}=e,{prefixCls:p="anticon",rootClassName:h}=n.useContext(a.A),m=(0,o.$)(h,p,{[`${p}-${i.name}`]:!!i.name,[`${p}-spin`]:!!l||"loading"===i.name},r),g=c;void 0===g&&u&&(g=-1);let b=s?{msTransform:`rotate(${s}deg)`,transform:`rotate(${s}deg)`}:void 0;return n.createElement("span",y({role:"img","aria-label":i.name},f,{ref:t,tabIndex:g,onClick:u,className:m}),n.createElement(v,{icon:i,style:b}))})},396(e,t,r){t.A=(0,r(1102).createContext)({})},1151(e,t,r){var n=r(1102),o=r(2130),a=r(2875);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}t.A=n.forwardRef((e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})))},197(e,t,r){var n=r(1102),o=r(300),a=r(2875);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}t.A=n.forwardRef((e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})))},3085(e,t,r){var n=r(1102),o=r(8022),a=r(2875);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}t.A=n.forwardRef((e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})))},6941(e,t,r){var n=r(1102),o=r(4168),a=r(2875);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}t.A=n.forwardRef((e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})))},1125(e,t,r){var n=r(1102),o=r(5418),a=r(2875);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}t.A=n.forwardRef((e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})))},2096(e,t,r){var n=r(1102),o=r(7995),a=r(2875);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}t.A=n.forwardRef((e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})))},5258(e,t,r){r.d(t,{Q1:()=>a}),r(1102);var n=r(3055);let o=e=>Math.round(Number(e||0));class a extends n.Y{constructor(e){super((e=>{if(e instanceof n.Y)return e;if(e&&"object"==typeof e&&"h"in e&&"b"in e){let{b:t,...r}=e;return{...r,v:t}}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e})(e))}toHsbString(){let e=this.toHsb(),t=o(100*e.s),r=o(100*e.b),n=o(e.h),a=e.a,i=`hsb(${n}, ${t}%, ${r}%)`,l=`hsba(${n}, ${t}%, ${r}%, ${a.toFixed(2*(0!==a))})`;return 1===a?i:l}toHsb(){let{v:e,...t}=this.toHsv();return{...t,b:e,a:this.a}}}new a("#1677ff"),r(7972)},2539(e,t,r){let n,o,a;r.d(t,{aF:()=>L,Kq:()=>p,Ay:()=>H});var i,l,s,c=r(7972),u=r(851),d=r(1102);let f=d.createContext({});var p=e=>{let{children:t,...r}=e,n=d.useMemo(()=>({motion:r.motion}),[r.motion]);return d.createElement(f.Provider,{value:n},t)};let h="prepare",m="prepared";function g(e,t){let r={};return r[e.toLowerCase()]=t.toLowerCase(),r[`Webkit${e}`]=`webkit${t}`,r[`Moz${e}`]=`moz${t}`,r[`ms${e}`]=`MS${t}`,r[`O${e}`]=`o${t.toLowerCase()}`,r}let b=(i=(0,c.OC)(),l="u">typeof window?window:{},n={animationend:g("Animation","AnimationEnd"),transitionend:g("Transition","TransitionEnd")},i&&("AnimationEvent"in l||delete n.animationend.animation,"TransitionEvent"in l||delete n.transitionend.transition),n),v={};(0,c.OC)()&&({style:v}=document.createElement("div"));let y={};function $(e){if(y[e])return y[e];let t=b[e];if(t){let r=Object.keys(t),n=r.length;for(let o=0;o<n;o+=1){let n=r[o];if(Object.prototype.hasOwnProperty.call(t,n)&&n in v)return y[e]=t[n],y[e]}}return""}let x=$("animationend"),w=$("transitionend"),E=x||"animationend",C=w||"transitionend";function k(e,t){return e?"object"==typeof e?e[t.replace(/-\w/g,e=>e[1].toUpperCase())]:`${e}-${t}`:null}let S=(0,c.OC)()?d.useLayoutEffect:d.useEffect,A=[h,"start","active","end"],M=[h,m];function N(e){return"active"===e||"end"===e}function O(e){return e?.length<2}var I=(o=s=!!(x&&w),"object"==typeof s&&({transitionSupport:o}=s),(a=d.forwardRef((e,t)=>{let{visible:r=!0,removeOnLeave:n=!0,forceRender:a,children:i,motionName:l,leavedClassName:s,eventProps:p}=e,{motion:g}=d.useContext(f),b=!!(e.motionName&&o&&!1!==g),v=(0,d.useRef)();function y(){return(0,c.rb)(v.current)}let[$,x,w,I,P]=function(e,t,r,{motionEnter:n=!0,motionAppear:o=!0,motionLeave:a=!0,motionDeadline:i,motionLeaveImmediately:l,onAppearPrepare:s,onEnterPrepare:u,onLeavePrepare:f,onAppearStart:p,onEnterStart:g,onLeaveStart:b,onAppearActive:v,onEnterActive:y,onLeaveActive:$,onAppearEnd:x,onEnterEnd:w,onLeaveEnd:k,onVisibleChanged:O}){let[I,P]=d.useState(),[R,z]=(0,c.M7)("none"),[T,B]=d.useState([null,null]),D=R(),F=(0,d.useRef)(!1),L=(0,d.useRef)(null),H=(0,d.useRef)(!1);function j(){z("none"),B([null,null])}let _=(0,c._q)(e=>{let t,n=R();if("none"===n)return;let o=r();if(e&&!e.deadline&&e.target!==o)return;let a=H.current;"appear"===n&&a?t=x?.(o,e):"enter"===n&&a?t=w?.(o,e):"leave"===n&&a&&(t=k?.(o,e)),a&&!1!==t&&j()}),[W]=(e=>{let t=(0,d.useRef)();function r(t){t&&(t.removeEventListener(C,e),t.removeEventListener(E,e))}return d.useEffect(()=>()=>{r(t.current),t.current=null},[]),[function(n){t.current&&t.current!==n&&r(t.current),n&&n!==t.current&&(n.addEventListener(C,e),n.addEventListener(E,e),t.current=n)},r]})(_),q=e=>{switch(e){case"appear":return{[h]:s,start:p,active:v};case"enter":return{[h]:u,start:g,active:y};case"leave":return{[h]:f,start:b,active:$};default:return{}}},K=d.useMemo(()=>q(D),[D]),[V,X]=((e,t,r)=>{let[n,o]=(0,c.J0)("none"),[a,i]=(()=>{let e=d.useRef(null);function t(){c.er.cancel(e.current)}return d.useEffect(()=>()=>{t()},[]),[function r(n,o=2){t();let a=(0,c.er)(()=>{o<=1?n({isCanceled:()=>a!==e.current}):r(n,o-1)});e.current=a},t]})(),l=t?M:A;return S(()=>{if("none"!==n&&"end"!==n){let e=l.indexOf(n),t=l[e+1],i=r(n);!1===i?o(t,!0):t&&a(e=>{function r(){e.isCanceled()||o(t,!0)}!0===i?r():Promise.resolve(i).then(r)})}},[e,n]),d.useEffect(()=>()=>{i()},[]),[function(){o(h,!0)},n]})(D,!e,e=>{if(e===h){let e=K[h];return!!e&&e(r())}return e in K&&B([K[e]?.(r(),null)||null,e]),"active"===e&&"none"!==D&&(W(r()),i>0&&(clearTimeout(L.current),L.current=setTimeout(()=>{_({deadline:!0})},i))),e===m&&j(),!0});H.current=N(X);let G=(0,d.useRef)(null);S(()=>{let r;if(F.current&&G.current===t)return;P(t);let i=F.current;F.current=!0,!i&&t&&o&&(r="appear"),i&&t&&n&&(r="enter"),(i&&!t&&a||!i&&l&&!t&&a)&&(r="leave");let s=q(r);r&&(e||s[h])?(z(r),V()):z("none"),G.current=t},[t]),(0,d.useEffect)(()=>{("appear"!==D||o)&&("enter"!==D||n)&&("leave"!==D||a)||z("none")},[o,n,a]),(0,d.useEffect)(()=>()=>{F.current=!1,clearTimeout(L.current)},[]);let U=d.useRef(!1);(0,d.useEffect)(()=>{I&&(U.current=!0),void 0!==I&&"none"===D&&((U.current||I)&&O?.(I),U.current=!0)},[I,D]);let Y=T[0];K[h]&&"start"===X&&(Y={transition:"none",...Y});let Q=T[1];return[R,X,Y,I??t,!F.current&&"none"===D&&e&&o?"NONE":"start"!==X&&"active"!==X||Q===X]}(b,r,y,e),R=$(),z=d.useRef(I);I&&(z.current=!0);let T=d.useMemo(()=>{let e={};return Object.defineProperties(e,{nativeElement:{enumerable:!0,get:y},inMotion:{enumerable:!0,get:()=>()=>"none"!==$()},enableMotion:{enumerable:!0,get:()=>()=>b}}),e},[]);d.useImperativeHandle(t,()=>T,[]);let B=d.useRef(0);P&&(B.current+=1);let D=d.useMemo(()=>{let e;if("NONE"===P)return null;let t={...p,visible:r};if(i)if("none"===R)e=I?i({...t},v):!n&&z.current&&s?i({...t,className:s},v):!a&&(n||s)?null:i({...t,style:{display:"none"}},v);else{let r;x===h?r="prepare":N(x)?r="active":"start"===x&&(r="start");let n=k(l,`${R}-${r}`);e=i({...t,className:(0,u.$)(k(l,R),{[n]:n&&r,[l]:"string"==typeof l}),style:w},v)}else e=null;return e},[B.current]);if(O(i)&&(0,c.H3)(D)){let e=(0,c.A9)(D);if(e!==v)return d.cloneElement(D,{ref:(0,c.K4)(e,v)})}return D})).displayName="CSSMotion",a);let P="keep",R="remove",z="removed";function T(e){let t;return{...t=e&&"object"==typeof e&&"key"in e?e:{key:e},key:String(t.key)}}function B(e=[]){return e.map(T)}function D(){return(D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let F=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var L=function(e=I){class t extends d.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:e},{keyEntities:t}){return{keyEntities:(function(e=[],t=[]){let r=[],n=0,o=t.length,a=B(e),i=B(t);a.forEach(e=>{let t=!1;for(let a=n;a<o;a+=1){let o=i[a];if(o.key===e.key){n<a&&(r=r.concat(i.slice(n,a).map(e=>({...e,status:"add"}))),n=a),r.push({...o,status:P}),n+=1,t=!0;break}}t||r.push({...e,status:R})}),n<o&&(r=r.concat(i.slice(n).map(e=>({...e,status:"add"}))));let l={};return r.forEach(({key:e})=>{l[e]=(l[e]||0)+1}),Object.keys(l).filter(e=>l[e]>1).forEach(e=>{(r=r.filter(({key:t,status:r})=>t!==e||r!==R)).forEach(t=>{t.key===e&&(t.status=P)})}),r})(t,B(e)).filter(e=>{let r=t.find(({key:t})=>e.key===t);return!r||r.status!==z||"remove"!==e.status})}}removeKey=e=>{this.setState(t=>({keyEntities:t.keyEntities.map(t=>t.key!==e?t:{...t,status:z})}),()=>{let{keyEntities:e}=this.state;0===e.filter(({status:e})=>e!==z).length&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){let{keyEntities:t}=this.state,{component:r,children:n,onVisibleChanged:o,onAllRemoved:a,...i}=this.props,l=r||d.Fragment,s={};return F.forEach(e=>{s[e]=i[e],delete i[e]}),delete i.keys,d.createElement(l,i,t.map(({status:t,...r},a)=>d.createElement(e,D({},s,{key:r.key,visible:"add"===t||"keep"===t,eventProps:r,onVisibleChanged:e=>{o?.(e,{key:r.key}),e||this.removeKey(r.key)}}),O(n)?e=>n({...e,index:a}):(e,t)=>n({...e,index:a},t))))}}return t}(),H=I},1684(e,t,r){r.d(t,{A:()=>m});var n=r(7972),o=r(1102),a=r(2450);let i=o.createContext(null),l=[],s=`rc-util-locker-${Date.now()}`,c=0,u=[],d=0,f=e=>{if("Escape"===e.key&&!e.isComposing){if(Date.now()-d<200)return;let t=u.length;for(let r=t-1;r>=0;r-=1)u[r].onEsc({top:r===t-1,event:e})}},p=()=>{d=Date.now()},h=e=>!1!==e&&((0,n.OC)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null);var m=o.forwardRef((e,t)=>{let r,d,m,g,{open:b,autoLock:v,getContainer:y,debug:$,autoDestroy:x=!0,children:w,onEsc:E}=e,[C,k]=o.useState(b),S=C||b;o.useEffect(()=>{(x||b)&&k(b)},[b,x]);let[A,M]=o.useState(()=>h(y));o.useEffect(()=>{let e=h(y);M(()=>e??null)});let[N,O]=function(e){let[t]=o.useState(()=>(0,n.OC)()?document.createElement("div"):null),r=o.useRef(!1),a=o.useContext(i),[s,c]=o.useState(l),u=a||(r.current?void 0:e=>{c(t=>[e,...t])});function d(){t.parentElement||document.body.appendChild(t),r.current=!0}function f(){t.parentElement?.removeChild(t),r.current=!1}return(0,n.Nf)(()=>(e?a?a(d):d():f(),f),[e]),(0,n.Nf)(()=>{s.length&&(s.forEach(e=>e()),c(l))},[s]),[t,u]}(S&&!A),I=A??N;!function(e){let t=!!e,[r]=o.useState(()=>(c+=1,`${s}_${c}`));(0,n.Nf)(()=>{if(t){let e=(0,n.V)(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,n.BD)(`
|
|
60
|
+
html body {
|
|
61
|
+
overflow-y: hidden;
|
|
62
|
+
${t?`width: calc(100% - ${e}px);`:""}
|
|
63
|
+
}`,r)}else(0,n.m6)(r);return()=>{(0,n.m6)(r)}},[t,r])}(v&&b&&(0,n.OC)()&&(I===N||I===document.body)),r=(0,n.Bi)(),d=(0,n._q)(E),m=()=>{u.find(e=>e.id===r)||u.push({id:r,onEsc:d})},g=()=>{u=u.filter(e=>e.id!==r)},(0,o.useMemo)(()=>{b?m():b||g()},[b]),(0,o.useEffect)(()=>{if(b)return m(),window.addEventListener("keydown",f),window.addEventListener("compositionend",p),()=>{g(),0===u.length&&(window.removeEventListener("keydown",f),window.removeEventListener("compositionend",p))}},[b]);let P=null;w&&(0,n.f3)(w)&&t&&(P=(0,n.A9)(w));let R=(0,n.xK)(P,t);if(!S||!(0,n.OC)()||void 0===A)return null;let z=!1===I,T=w;return t&&(T=o.cloneElement(w,{ref:R})),o.createElement(i.Provider,{value:O},z?T:(0,a.createPortal)(T,I))})},6175(e,t,r){let n;r.d(t,{Ay:()=>b,wY:()=>p});var o=r(1102),a=r(9501);r(2667);var i=r(5985),l=r(7766);let s=o.createContext(null),c=new Map;function u(e){e.forEach(e=>{let{target:t}=e;c.get(t)?.forEach(e=>e(t))})}function d(){return n||(n=new ResizeObserver(u)),n}var f=r(7972);function p(e,t,r,n){let a=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),i=(0,f._q)(e=>{let{width:t,height:o}=e.getBoundingClientRect(),{offsetWidth:i,offsetHeight:l}=e,s=Math.floor(t),c=Math.floor(o);if(a.current.width!==s||a.current.height!==c||a.current.offsetWidth!==i||a.current.offsetHeight!==l){let u={width:s,height:c,offsetWidth:i,offsetHeight:l};a.current=u;let d=i===Math.round(t)?t:i,f=l===Math.round(o)?o:l,p={...u,offsetWidth:d,offsetHeight:f};n?.(p,e),Promise.resolve().then(()=>{r?.(p,e)})}}),l="function"==typeof t,s=o.useRef(0);o.useEffect(()=>{let r=l?t():t;if(r&&e)c.has(r)||(c.set(r,new Set),d().observe(r)),c.get(r).add(i);else e&&l&&(s.current+=1);return()=>{r&&c.has(r)&&(c.get(r).delete(i),c.get(r).size||(d().unobserve(r),c.delete(r)))}},[e,l?s.current:t])}let h=o.forwardRef(function(e,t){let{children:r,disabled:n,onResize:a,data:c}=e,u=o.useRef(null),d=o.useContext(s),f="function"==typeof r,h=f?r(u):r,m=!f&&o.isValidElement(h)&&(0,l.f3)(h),g=m?(0,l.A9)(h):null,b=(0,l.xK)(g,u),v=()=>(0,i.rb)(u.current);return o.useImperativeHandle(t,()=>v()),p(!n,v,a,(e,t)=>{d?.(e,t,c)}),m?o.cloneElement(h,{ref:b}):h});function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let g=o.forwardRef(function(e,t){let{children:r}=e;return("function"==typeof r?[r]:(0,a.A)(r)).map((r,n)=>{let a=r?.key||`rc-observer-key-${n}`;return o.createElement(h,m({},e,{key:a,ref:0===n?t:void 0}),r)})});g.Collection=function({children:e,onBatchResize:t}){let r=o.useRef(0),n=o.useRef([]),a=o.useContext(s),i=o.useCallback((e,o,i)=>{r.current+=1;let l=r.current;n.current.push({size:e,element:o,data:i}),Promise.resolve().then(()=>{l===r.current&&(t?.(n.current),n.current=[])}),a?.(e,o,i)},[t,a]);return o.createElement(s.Provider,{value:i},e)};var b=g},1540(e,t,r){r.d(t,{z:()=>a,A:()=>p});var n=r(851),o=r(1102),a=e=>{let{children:t,prefixCls:r,id:a,classNames:i,styles:l,className:s,style:c}=e;return o.createElement("div",{id:a,className:(0,n.$)(`${r}-container`,i?.container,s),style:{...l?.container,...c},role:"tooltip"},"function"==typeof t?t():t)},i=r(382),l=r(5646);let s={shiftX:64,adjustY:1},c={adjustX:1,shiftY:!0},u=[0,0],d={left:{points:["cr","cl"],overflow:c,offset:[-4,0],targetOffset:u},right:{points:["cl","cr"],overflow:c,offset:[4,0],targetOffset:u},top:{points:["bc","tc"],overflow:s,offset:[0,-4],targetOffset:u},bottom:{points:["tc","bc"],overflow:s,offset:[0,4],targetOffset:u},topLeft:{points:["bl","tl"],overflow:s,offset:[0,-4],targetOffset:u},leftTop:{points:["tr","tl"],overflow:c,offset:[-4,0],targetOffset:u},topRight:{points:["br","tr"],overflow:s,offset:[0,-4],targetOffset:u},rightTop:{points:["tl","tr"],overflow:c,offset:[4,0],targetOffset:u},bottomRight:{points:["tr","br"],overflow:s,offset:[0,4],targetOffset:u},rightBottom:{points:["bl","br"],overflow:c,offset:[4,0],targetOffset:u},bottomLeft:{points:["tl","bl"],overflow:s,offset:[0,4],targetOffset:u},leftBottom:{points:["br","bl"],overflow:c,offset:[-4,0],targetOffset:u}};function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var p=o.forwardRef((e,t)=>{let{trigger:r=["hover"],mouseEnterDelay:s=0,mouseLeaveDelay:c=.1,prefixCls:u="rc-tooltip",children:p,onVisibleChange:h,afterVisibleChange:m,motion:g,placement:b="right",align:v={},destroyOnHidden:y=!1,defaultVisible:$,getTooltipContainer:x,arrowContent:w,overlay:E,id:C,showArrow:k=!0,classNames:S,styles:A,...M}=e,N=(0,l.Ay)(C),O=(0,o.useRef)(null);(0,o.useImperativeHandle)(t,()=>O.current);let I={...M};"visible"in e&&(I.popupVisible=e.visible);let P=o.useMemo(()=>{if(!k)return!1;let e=!0===k?{}:k;return{...e,className:(0,n.$)(e.className,S?.arrow),style:{...e.style,...A?.arrow},content:e.content??w}},[k,S?.arrow,A?.arrow,w]);return o.createElement(i.Ay,f({popupClassName:S?.root,prefixCls:u,popup:o.createElement(a,{key:"content",prefixCls:u,id:N,classNames:S,styles:A},E),action:r,builtinPlacements:d,popupPlacement:b,ref:O,popupAlign:v,getPopupContainer:x,onOpenChange:h,afterOpenChange:m,popupMotion:g,defaultPopupVisible:$,autoDestroy:y,mouseLeaveDelay:c,popupStyle:A?.root,mouseEnterDelay:s,arrow:P,uniqueContainerClassName:S?.uniqueContainer,uniqueContainerStyle:A?.uniqueContainer},I),({open:e})=>{let t=o.Children.only(p);return o.cloneElement(t,{"aria-describedby":E&&e?N:void 0})})})},382(e,t,r){r.d(t,{xR:()=>z,Ay:()=>B});var n=r(1684),o=r(851),a=r(6175),i=r(7972),l=r(1102),s=r(2539);function c(e){let{prefixCls:t,align:r,arrow:n,arrowPos:a}=e,{className:i,content:s,style:c}=n||{},{x:u=0,y:d=0}=a,f=l.useRef(null);if(!r||!r.points)return null;let p={position:"absolute"};if(!1!==r.autoArrow){let e=r.points[0],t=r.points[1],n=e[0],o=e[1],a=t[0],i=t[1];n!==a&&["t","b"].includes(n)?"t"===n?p.top=0:p.bottom=0:p.top=d,o!==i&&["l","r"].includes(o)?"l"===o?p.left=0:p.right=0:p.left=u}return l.createElement("div",{ref:f,className:(0,o.$)(`${t}-arrow`,i),style:{...p,...c}},s)}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function d(e){let{prefixCls:t,open:r,zIndex:n,mask:a,motion:i,mobile:c}=e;return a?l.createElement(s.Ay,u({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),({className:e})=>l.createElement("div",{style:{zIndex:n},className:(0,o.$)(`${t}-mask`,c&&`${t}-mobile-mask`,e)})):null}let f=l.memo(({children:e})=>e,(e,t)=>t.cache);function p(e,t,r,n,o,a,i,l){let s="auto",c=e?{}:{left:"-1000vw",top:"-1000vh",right:s,bottom:s};if(!e&&(t||!r)){let{points:e}=n,t=n.dynamicInset||n._experimental?.dynamicInset,r=t&&"r"===e[0][1],u=t&&"b"===e[0][0];r?(c.right=o,c.left=s):(c.left=i,c.right=s),u?(c.bottom=a,c.top=s):(c.top=l,c.bottom=s)}return c}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let m=l.forwardRef((e,t)=>{let{onEsc:r,popup:n,className:u,prefixCls:m,style:g,target:b,onVisibleChanged:v,open:y,keepDom:$,fresh:x,onClick:w,mask:E,arrow:C,arrowPos:k,align:S,motion:A,maskMotion:M,mobile:N,forceRender:O,getPopupContainer:I,autoDestroy:P,portal:R,children:z,zIndex:T,onMouseEnter:B,onMouseLeave:D,onPointerEnter:F,onPointerDownCapture:L,ready:H,offsetX:j,offsetY:_,offsetR:W,offsetB:q,onAlign:K,onPrepare:V,onResize:X,stretch:G,targetWidth:U,targetHeight:Y}=e,Q="function"==typeof n?n():n,Z=y||$,J=!!N,[ee,et,er]=l.useMemo(()=>N?[N.mask,N.maskMotion,N.motion]:[E,M,A],[N,E,M,A]),en=I?.length>0,[eo,ea]=l.useState(!I||!en);(0,i.Nf)(()=>{!eo&&en&&b&&ea(!0)},[eo,en,b]);let ei=(0,i._q)((e,t)=>{X?.(e,t),K()}),el=p(J,H,y,S,W,q,j,_);if(!eo)return null;let es={};return G&&(G.includes("height")&&Y?es.height=Y:G.includes("minHeight")&&Y&&(es.minHeight=Y),G.includes("width")&&U?es.width=U:G.includes("minWidth")&&U&&(es.minWidth=U)),y||(es.pointerEvents="none"),l.createElement(R,{open:O||Z,getContainer:I&&(()=>I(b)),autoDestroy:P,onEsc:r},l.createElement(d,{prefixCls:m,open:y,zIndex:T,mask:ee,motion:et,mobile:J}),l.createElement(a.Ay,{onResize:ei,disabled:!y},e=>l.createElement(s.Ay,h({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:O,leavedClassName:`${m}-hidden`},er,{onAppearPrepare:V,onEnterPrepare:V,visible:y,onVisibleChanged:e=>{A?.onVisibleChanged?.(e),v(e)}}),({className:r,style:n},a)=>{let s=(0,o.$)(m,r,u,{[`${m}-mobile`]:J});return l.createElement("div",{ref:(0,i.K4)(e,t,a),className:s,style:{"--arrow-x":`${k.x||0}px`,"--arrow-y":`${k.y||0}px`,...el,...es,...n,boxSizing:"border-box",zIndex:T,...g},onMouseEnter:B,onMouseLeave:D,onPointerEnter:F,onClick:w,onPointerDownCapture:L},C&&l.createElement(c,{prefixCls:m,arrow:C,arrowPos:k,align:S}),l.createElement(f,{cache:!y&&!x},Q))})),z)}),g=l.createContext(null),b=l.createContext(null);function v(e){return e?Array.isArray(e)?e:[e]:[]}function y(e,t,r,n){let{points:o}=r,a=Object.keys(e);for(let r=0;r<a.length;r+=1){let i=a[r];if(function(e=[],t=[],r){let n=(e,t)=>e[t]||"";return r?n(e,0)===n(t,0):n(e,0)===n(t,0)&&n(e,1)===n(t,1)}(e[i]?.points,o,n))return`${t}-placement-${i}`}return""}function $(e){return e.ownerDocument.defaultView}function x(e){let t=[],r=e?.parentElement,n=["hidden","scroll","clip","auto"];for(;r;){let{overflowX:e,overflowY:o,overflow:a}=$(r).getComputedStyle(r);[e,o,a].some(e=>n.includes(e))&&t.push(r),r=r.parentElement}return t}function w(e,t=1){return Number.isNaN(e)?t:e}function E(e){return w(parseFloat(e),0)}function C(e,t){let r={...e};return(t||[]).forEach(e=>{if(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)return;let{overflow:t,overflowClipMargin:n,borderTopWidth:o,borderBottomWidth:a,borderLeftWidth:i,borderRightWidth:l}=$(e).getComputedStyle(e),s=e.getBoundingClientRect(),{offsetHeight:c,clientHeight:u,offsetWidth:d,clientWidth:f}=e,p=E(o),h=E(a),m=E(i),g=E(l),b=w(Math.round(s.width/d*1e3)/1e3),v=w(Math.round(s.height/c*1e3)/1e3),y=p*v,x=m*b,C=0,k=0;if("clip"===t){let e=E(n);C=e*b,k=e*v}let S=s.x+x-C,A=s.y+y-k,M=S+s.width+2*C-x-g*b-(d-f-m-g)*b,N=A+s.height+2*k-y-h*v-(c-u-p-h)*v;r.left=Math.max(r.left,S),r.top=Math.max(r.top,A),r.right=Math.min(r.right,M),r.bottom=Math.min(r.bottom,N)}),r}function k(e,t=0){let r=`${t}`,n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function S(e,t){let[r,n]=t||[];return[k(e.width,r),k(e.height,n)]}function A(e=""){return[e[0],e[1]]}function M(e,t){let r,n=t[0],o=t[1];return r="t"===n?e.y:"b"===n?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:r}}function N(e,t){let r=[...e];return r[t]=({t:"b",b:"t",l:"r",r:"l"})[e[t]]||"c",r}function O(e,t,r,n,o,a,s,c){let[u,d]=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),f=l.useRef(0),p=l.useMemo(()=>!t||c?[]:x(t),[t]),h=l.useRef({});e||(h.current={});let m=(0,i._q)(()=>{if(t&&r&&e&&!c){let e,c,f,m,g,b=t.ownerDocument,v=$(t),{position:y}=v.getComputedStyle(t),x=t.style.left,E=t.style.top,k=t.style.right,O=t.style.bottom,I=t.style.overflow,P=t.style.overflowX,R=t.style.overflowY,z={...o[n],...a},T=b.createElement("div");if(t.parentElement?.appendChild(T),T.style.left=`${t.offsetLeft}px`,T.style.top=`${t.offsetTop}px`,T.style.position=y,T.style.height=`${t.offsetHeight}px`,T.style.width=`${t.offsetWidth}px`,t.style.left="0",t.style.top="0",t.style.right="auto",t.style.bottom="auto",t.style.overflow="hidden",Array.isArray(r))e={x:r[0],y:r[1],width:0,height:0};else{let t=r.getBoundingClientRect();t.x=t.x??t.left,t.y=t.y??t.top,e={x:t.x,y:t.y,width:t.width,height:t.height}}let B=t.getBoundingClientRect(),{height:D,width:F}=v.getComputedStyle(t);B.x=B.x??B.left,B.y=B.y??B.top;let{clientWidth:L,clientHeight:H,scrollWidth:j,scrollHeight:_,scrollTop:W,scrollLeft:q}=b.documentElement,K=B.height,V=B.width,X=e.height,G=e.width,{htmlRegion:U}=z,Y="visible",Q="visibleFirst";"scroll"!==U&&U!==Q&&(U=Y);let Z=U===Q,J=C({left:-q,top:-W,right:j-q,bottom:_-W},p),ee=C({left:0,top:0,right:L,bottom:H},p),et=U===Y?ee:J,er=Z?ee:et;t.style.left="auto",t.style.top="auto",t.style.right="0",t.style.bottom="0";let en=t.getBoundingClientRect();t.style.left=x,t.style.top=E,t.style.right=k,t.style.bottom=O,t.style.overflow=I,t.style.overflowX=P,t.style.overflowY=R,t.parentElement?.removeChild(T);let eo=w(Math.round(V/parseFloat(F)*1e3)/1e3),ea=w(Math.round(K/parseFloat(D)*1e3)/1e3);if(0===eo||0===ea||(0,i.fk)(r)&&!(0,i.zN)(r))return;let{offset:ei,targetOffset:el}=z,[es,ec]=S(B,ei),[eu,ed]=S(e,el);e.x-=eu,e.y-=ed;let[ef,ep]=z.points||[],eh=A(ep),em=A(ef),eg=M(e,eh),eb=M(B,em),ev={...z},ey=[em,eh],e$=eg.x-eb.x+es,ex=eg.y-eb.y+ec;function l(e,t,r=et){let n=B.x+e,o=B.y+t,a=Math.max(n,r.left),i=Math.max(o,r.top);return Math.max(0,(Math.min(n+V,r.right)-a)*(Math.min(o+K,r.bottom)-i))}let ew=l(e$,ex),eE=l(e$,ex,ee),eC=M(e,["t","l"]),ek=M(B,["t","l"]),eS=M(e,["b","r"]),eA=M(B,["b","r"]),{adjustX:eM,adjustY:eN,shiftX:eO,shiftY:eI}=z.overflow||{},eP=e=>"boolean"==typeof e?e:e>=0;function u(){f=(c=B.y+ex)+K,g=(m=B.x+e$)+V}u();let eR=eP(eN),ez=em[0]===eh[0];if(eR&&"t"===em[0]&&(f>er.bottom||h.current.bt)){let e=ex;ez?e-=K-X:e=eC.y-eA.y-ec;let t=l(e$,e),r=l(e$,e,ee);t>ew||t===ew&&(!Z||r>=eE)?(h.current.bt=!0,ex=e,ec=-ec,ey=[N(ey[0],0),N(ey[1],0)]):h.current.bt=!1}if(eR&&"b"===em[0]&&(c<er.top||h.current.tb)){let e=ex;ez?e+=K-X:e=eS.y-ek.y-ec;let t=l(e$,e),r=l(e$,e,ee);t>ew||t===ew&&(!Z||r>=eE)?(h.current.tb=!0,ex=e,ec=-ec,ey=[N(ey[0],0),N(ey[1],0)]):h.current.tb=!1}let eT=eP(eM),eB=em[1]===eh[1];if(eT&&"l"===em[1]&&(g>er.right||h.current.rl)){let e=e$;eB?e-=V-G:e=eC.x-eA.x-es;let t=l(e,ex),r=l(e,ex,ee);t>ew||t===ew&&(!Z||r>=eE)?(h.current.rl=!0,e$=e,es=-es,ey=[N(ey[0],1),N(ey[1],1)]):h.current.rl=!1}if(eT&&"r"===em[1]&&(m<er.left||h.current.lr)){let e=e$;eB?e+=V-G:e=eS.x-ek.x-es;let t=l(e,ex),r=l(e,ex,ee);t>ew||t===ew&&(!Z||r>=eE)?(h.current.lr=!0,e$=e,es=-es,ey=[N(ey[0],1),N(ey[1],1)]):h.current.lr=!1}ev.points=[ey[0].join(""),ey[1].join("")],u();let eD=!0===eO?0:eO;"number"==typeof eD&&(m<ee.left&&(e$-=m-ee.left-es,e.x+G<ee.left+eD&&(e$+=e.x-ee.left+G-eD)),g>ee.right&&(e$-=g-ee.right-es,e.x>ee.right-eD&&(e$+=e.x-ee.right+eD)));let eF=!0===eI?0:eI;"number"==typeof eF&&(c<ee.top&&(ex-=c-ee.top-ec,e.y+X<ee.top+eF&&(ex+=e.y-ee.top+X-eF)),f>ee.bottom&&(ex-=f-ee.bottom-ec,e.y>ee.bottom-eF&&(ex+=e.y-ee.bottom+eF)));let eL=B.x+e$,eH=B.y+ex,ej=e.x,e_=e.y,eW=Math.max(eL,ej),eq=Math.min(eL+V,ej+G),eK=Math.max(eH,e_),eV=Math.min(eH+K,e_+X);s?.(t,ev);let eX=en.right-B.x-(e$+B.width),eG=en.bottom-B.y-(ex+B.height);1===eo&&(e$=Math.floor(e$),eX=Math.floor(eX)),1===ea&&(ex=Math.floor(ex),eG=Math.floor(eG)),d({ready:!0,offsetX:e$/eo,offsetY:ex/ea,offsetR:eX/eo,offsetB:eG/ea,arrowX:((eW+eq)/2-eL)/eo,arrowY:((eK+eV)/2-eH)/ea,scaleX:eo,scaleY:ea,align:ev})}}),g=()=>{d(e=>({...e,ready:!1}))};return(0,i.Nf)(g,[n]),(0,i.Nf)(()=>{e||g()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,()=>{f.current+=1;let e=f.current;Promise.resolve().then(()=>{f.current===e&&m()})}]}function I(){let e=l.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)};return l.useEffect(()=>()=>{t()},[]),(r,n)=>{t(),0===n?r():e.current=setTimeout(()=>{r()},1e3*n)}}function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var R=e=>{let{prefixCls:t,isMobile:r,ready:n,open:a,align:i,offsetR:c,offsetB:u,offsetX:d,offsetY:f,arrowPos:h,popupSize:m,motion:g,uniqueContainerClassName:b,uniqueContainerStyle:v}=e,y=`${t}-unique-container`,[$,x]=l.useState(!1),w=p(r,n,a,i,c,u,d,f),E=l.useRef(w);n&&(E.current=w);let C={};return m&&(C.width=m.width,C.height=m.height),l.createElement(s.Ay,P({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${y}-hidden`},g,{visible:a,onVisibleChanged:e=>{x(e)}}),({className:e,style:t})=>{let r=(0,o.$)(y,e,b,{[`${y}-visible`]:$});return l.createElement("div",{className:r,style:{"--arrow-x":`${h?.x||0}px`,"--arrow-y":`${h?.y||0}px`,...E.current,...C,...t,...v}})})},z=({children:e,postTriggerProps:t})=>{let[r,a,s,c]=function(){let[e,t]=l.useState(null),[r,n]=l.useState(!1),[o,a]=l.useState(!1),s=l.useRef(null);return[(0,i._q)(e=>{!1===e?(s.current=null,n(!1)):o&&r?s.current=e:(n(!0),t(e),s.current=null,r||a(!0))}),r,e,(0,i._q)(e=>{e?(a(!1),s.current&&(t(s.current),s.current=null)):(a(!1),s.current=null)})]}(),u=l.useMemo(()=>s&&t?t(s):s,[s,t]),[d,f]=l.useState(null),[p,h]=l.useState(null),v=l.useRef(null),$=(0,i._q)(e=>{v.current=e,(0,i.fk)(e)&&d!==e&&f(e)}),x=l.useRef(null),w=I(),E=(0,i._q)((e,t)=>{x.current=t,w(()=>{r(e)},e.delay)}),C=e=>{w(()=>{x.current?.()||r(!1)},e)},k=(0,i._q)(e=>{c(e)}),[S,A,M,N,P,z,T,,,B,D]=O(a,d,u?.target,u?.popupPlacement,u?.builtinPlacements||{},u?.popupAlign,void 0,!1),F=l.useMemo(()=>{if(!u)return"";let e=y(u.builtinPlacements||{},u.prefixCls||"",B,!1);return(0,o.$)(e,u.getPopupClassNameFromAlign?.(B))},[B,u?.getPopupClassNameFromAlign,u?.builtinPlacements,u?.prefixCls]),L=l.useMemo(()=>({show:E,hide:C}),[]);l.useEffect(()=>{D()},[u?.target]);let H=(0,i._q)(()=>(D(),Promise.resolve())),j=l.useRef({}),_=l.useContext(g),W=l.useMemo(()=>({registerSubPopup:(e,t)=>{j.current[e]=t,_?.registerSubPopup(e,t)}}),[_]),q=u?.prefixCls;return l.createElement(b.Provider,{value:L},e,u&&l.createElement(g.Provider,{value:W},l.createElement(m,{ref:$,portal:n.A,onEsc:u.onEsc,prefixCls:q,popup:u.popup,className:(0,o.$)(u.popupClassName,F,`${q}-unique-controlled`),style:u.popupStyle,target:u.target,open:a,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:k,ready:S,offsetX:A,offsetY:M,offsetR:N,offsetB:P,onAlign:D,onPrepare:H,onResize:e=>h({width:e.offsetWidth,height:e.offsetHeight}),arrowPos:{x:z,y:T},align:B,zIndex:u.zIndex,mask:u.mask,arrow:u.arrow,motion:u.popupMotion,maskMotion:u.maskMotion,getPopupContainer:u.getPopupContainer},l.createElement(R,{prefixCls:q,isMobile:!1,ready:S,open:a,align:B,offsetR:N,offsetB:P,offsetX:A,offsetY:M,arrowPos:{x:z,y:T},popupSize:p,motion:u.popupMotion,uniqueContainerClassName:(0,o.$)(u.uniqueContainerClassName,F),uniqueContainerStyle:u.uniqueContainerStyle}))))},T=r(2450),B=function(e=n.A){return l.forwardRef((t,r)=>{var n;let s,c,u,d,{prefixCls:f="rc-trigger-popup",children:p,action:h="hover",showAction:w,hideAction:E,disabled:C=!1,popupVisible:k,defaultPopupVisible:S,onOpenChange:A,afterOpenChange:M,onPopupVisibleChange:N,afterPopupVisibleChange:P,mouseEnterDelay:R,mouseLeaveDelay:z=.1,focusDelay:B,blurDelay:D,mask:F,maskClosable:L=!0,getPopupContainer:H,forceRender:j,autoDestroy:_,popup:W,popupClassName:q,uniqueContainerClassName:K,uniqueContainerStyle:V,popupStyle:X,popupPlacement:G,builtinPlacements:U={},popupAlign:Y,zIndex:Q,stretch:Z,getPopupClassNameFromAlign:J,fresh:ee,unique:et,alignPoint:er,onPopupClick:en,onPopupAlign:eo,arrow:ea,popupMotion:ei,maskMotion:el,mobile:es,...ec}=t,eu=void 0===k,ed=!!es,ef=l.useRef({}),ep=l.useContext(g),eh=l.useMemo(()=>({registerSubPopup:(e,t)=>{ef.current[e]=t,ep?.registerSubPopup(e,t)}}),[ep]),em=l.useContext(b),eg=(0,i.Bi)(),[eb,ev]=l.useState(null),ey=l.useRef(null),e$=(0,i._q)(e=>{ey.current=e,(0,i.fk)(e)&&eb!==e&&ev(e),ep?.registerSubPopup(eg,e)}),[ex,ew]=l.useState(null),eE=l.useRef(null),eC=(0,i._q)(e=>{let t=(0,i.rb)(e);(0,i.fk)(t)&&ex!==t&&(ew(t),eE.current=t)}),ek={},eS=(0,i._q)(e=>ex?.contains(e)||(0,i.jG)(ex)?.host===e||e===ex||eb?.contains(e)||(0,i.jG)(eb)?.host===e||e===eb||Object.values(ef.current).some(t=>t?.contains(e)||e===t)),eA=ea?{...!0!==ea?ea:{}}:null,[eM,eN]=(0,i.PW)(S||!1,k),eO=eM||!1,eI=eO&&!C,eP=l.useMemo(()=>{let e="function"==typeof p?p({open:eI}):p;return l.Children.only(e)},[p,eI]),eR=eP?.props||{},ez=(0,i._q)(()=>eI),eT=(0,i._q)((e=0)=>({popup:W,target:ex,delay:e,prefixCls:f,popupClassName:q,uniqueContainerClassName:K,uniqueContainerStyle:V,popupStyle:X,popupPlacement:G,builtinPlacements:U,popupAlign:Y,zIndex:Q,mask:F,maskClosable:L,popupMotion:ei,maskMotion:el,arrow:eA,getPopupContainer:H,getPopupClassNameFromAlign:J,id:eg,onEsc:eH}));(0,i.Nf)(()=>{em&&et&&ex&&!eu&&!ep&&(eI?em.show(eT(R),ez):em.hide(z))},[eI,ex]);let eB=l.useRef(eI);eB.current=eI;let eD=(0,i._q)(e=>{(0,T.flushSync)(()=>{eO!==e&&(eN(e),A?.(e),N?.(e))})}),eF=I(),eL=(e,t=0)=>{void 0!==k?eF(()=>{eD(e)},t):em&&et&&eu&&!ep?e?em.show(eT(t),ez):em.hide(t):eF(()=>{eD(e)},t)};function eH({top:e}){e&&eL(!1)}let[ej,e_]=l.useState(!1);(0,i.Nf)(e=>{(!e||eI)&&e_(!0)},[eI]);let[eW,eq]=l.useState(null),[eK,eV]=l.useState(null),eX=e=>{eV([e.clientX,e.clientY])},[eG,eU,eY,eQ,eZ,eJ,e0,e1,e2,e5,e4]=O(eI,eb,er&&null!==eK?eK:ex,G,U,Y,eo,ed),[e6,e8]=l.useMemo(()=>{let e=v(w??h),t=v(E??h),r=new Set(e),n=new Set(t);return r.has("hover")&&!r.has("click")&&r.add("touch"),n.has("hover")&&!n.has("click")&&n.add("touch"),[r,n]},[h,w,E]),e3=e6.has("click"),e9=e8.has("click")||e8.has("contextMenu"),e7=(0,i._q)(()=>{ej||e4()});(0,i.Nf)(()=>{if(eI&&ex&&eb){let t=x(ex),r=x(eb),n=$(eb),o=new Set([n,...t,...r]);function e(){e7(),(()=>{eB.current&&er&&e9&&eL(!1)})()}return o.forEach(t=>{t.addEventListener("scroll",e,{passive:!0})}),n.addEventListener("resize",e,{passive:!0}),e7(),()=>{o.forEach(t=>{t.removeEventListener("scroll",e),n.removeEventListener("resize",e)})}}},[eI,ex,eb]),(0,i.Nf)(()=>{e7()},[eK,G]),(0,i.Nf)(()=>{eI&&!U?.[G]&&e7()},[JSON.stringify(Y)]);let te=l.useMemo(()=>{let e=y(U,f,e5,er);return(0,o.$)(e,J?.(e5))},[e5,J,U,f,er]);l.useImperativeHandle(r,()=>({nativeElement:eE.current,popupElement:ey.current,forceAlign:e7}));let[tt,tr]=l.useState(0),[tn,to]=l.useState(0),ta=()=>{if(Z&&ex){let e=ex.getBoundingClientRect();tr(e.width),to(e.height)}};function ti(e,t,r,n,o){ek[e]=(a,...i)=>{o&&o()||(n?.(a),eL(t,r)),eR[e]?.(a,...i)}}(0,i.Nf)(()=>{eW&&(e4(),eW(),eq(null))},[eW]);let tl=e6.has("touch"),ts=e8.has("touch"),tc=l.useRef(!1);(tl||ts)&&(ek.onTouchStart=(...e)=>{tc.current=!0,eB.current&&ts?eL(!1):!eB.current&&tl&&eL(!0),eR.onTouchStart?.(...e)}),(e3||e9)&&(ek.onClick=(e,...t)=>{eB.current&&e9?eL(!1):!eB.current&&e3&&(eX(e),eL(!0)),eR.onClick?.(e,...t),tc.current=!1});let tu=(n=e9||ts,(u=l.useRef(eI)).current=eI,d=l.useRef(!1),l.useEffect(()=>{if(n&&eb&&(!F||L)){let e=()=>{d.current=!1},t=e=>{!u.current||eS(e.composedPath?.()?.[0]||e.target)||d.current||eL(!1)},r=$(eb);r.addEventListener("pointerdown",e,!0),r.addEventListener("mousedown",t,!0),r.addEventListener("contextmenu",t,!0);let n=(0,i.jG)(ex);return n&&(n.addEventListener("mousedown",t,!0),n.addEventListener("contextmenu",t,!0)),()=>{r.removeEventListener("pointerdown",e,!0),r.removeEventListener("mousedown",t,!0),r.removeEventListener("contextmenu",t,!0),n&&(n.removeEventListener("mousedown",t,!0),n.removeEventListener("contextmenu",t,!0))}}},[n,ex,eb,F,L]),function(){d.current=!0}),td=e6.has("hover"),tf=e8.has("hover"),tp=()=>tc.current;if(td){let e=e=>{eX(e)};ti("onMouseEnter",!0,R,e,tp),ti("onPointerEnter",!0,R,e,tp),s=e=>{(eI||ej)&&eb?.contains(e.target)&&eL(!0,R)},er&&(ek.onMouseMove=e=>{eR.onMouseMove?.(e)})}tf&&(ti("onMouseLeave",!1,z,void 0,tp),ti("onPointerLeave",!1,z,void 0,tp),c=()=>{eL(!1,z)}),e6.has("focus")&&ti("onFocus",!0,B),e8.has("focus")&&ti("onBlur",!1,D),e6.has("contextMenu")&&(ek.onContextMenu=(e,...t)=>{eB.current&&e8.has("contextMenu")?eL(!1):(eX(e),eL(!0)),e.preventDefault(),eR.onContextMenu?.(e,...t)});let th=l.useRef(!1);th.current||=j||eI||ej;let tm={...eR,...ek},tg={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(e=>{ec[e]&&(tg[e]=(...t)=>{tm[e]?.(...t),ec[e](...t)})}),(0,a.wY)(eI,ex,()=>{ta(),e7()});let tb=(0,i.xK)(eC,(0,i.A9)(eP)),tv=l.cloneElement(eP,{...tm,...tg,ref:tb});return l.createElement(l.Fragment,null,tv,th.current&&(!em||!et)&&l.createElement(g.Provider,{value:eh},l.createElement(m,{portal:e,ref:e$,prefixCls:f,popup:W,className:(0,o.$)(q,!ed&&te),style:X,target:ex,onMouseEnter:s,onMouseLeave:c,onPointerEnter:s,zIndex:Q,open:eI,keepDom:ej,fresh:ee,onClick:en,onPointerDownCapture:tu,mask:F,motion:ei,maskMotion:el,onVisibleChanged:e=>{e_(!1),e4(),M?.(e),P?.(e)},onPrepare:()=>new Promise(e=>{ta(),eq(()=>e)}),forceRender:j,autoDestroy:_||!1,getPopupContainer:H,onEsc:eH,align:e5,arrow:eA,arrowPos:{x:eJ,y:e0},ready:eG,offsetX:eU,offsetY:eY,offsetR:eQ,offsetB:eZ,onAlign:e7,stretch:Z,targetWidth:tt/e1,targetHeight:tn/e2,mobile:es})))})}(n.A)},9501(e,t,r){var n=r(8127),o=r(1102);r.d(t,{A:()=>function e(t,r={}){let a=[];return o.Children.forEach(t,t=>{(null!=t||r.keepEmpty)&&(Array.isArray(t)?a=a.concat(e(t)):(0,n.A)(t)&&t.props?a=a.concat(e(t.props.children,r)):a.push(t))}),a}})},2331(e,t,r){function n(){return!!("u">typeof window&&window.document&&window.document.createElement)}r.d(t,{A:()=>n})},4483(e,t,r){function n(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}r.d(t,{A:()=>n})},6506(e,t,r){var n=r(2331),o=r(4483);let a="data-rc-order",i="data-rc-priority",l=new Map;function s({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function c(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function u(e){return Array.from((l.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function d(e,t={}){if(!(0,n.A)())return null;let{csp:r,prepend:o,priority:l=0}=t,s="queue"===o?"prependQueue":o?"prepend":"append",f="prependQueue"===s,p=document.createElement("style");p.setAttribute(a,s),f&&l&&p.setAttribute(i,`${l}`),r?.nonce&&(p.nonce=r?.nonce),p.innerHTML=e;let h=c(t),{firstChild:m}=h;if(o){if(f){let e=(t.styles||u(h)).filter(e=>!!["prepend","prependQueue"].includes(e.getAttribute(a))&&l>=Number(e.getAttribute(i)||0));if(e.length)return h.insertBefore(p,e[e.length-1].nextSibling),p}h.insertBefore(p,m)}else h.appendChild(p);return p}function f(e,t={}){let{styles:r}=t;return(r||=u(c(t))).find(r=>r.getAttribute(s(t))===e)}function p(e,t={}){let r=f(e,t);r&&c(t).removeChild(r)}function h(e,t,r={}){let n=c(r),a=u(n),i={...r,styles:a};!function(e,t){let r=l.get(e);if(!r||!(0,o.A)(document,r)){let r=d("",t),{parentNode:n}=r;l.set(e,n),e.removeChild(r)}}(n,i);let p=f(t,i);if(p)return i.csp?.nonce&&p.nonce!==i.csp?.nonce&&(p.nonce=i.csp?.nonce),p.innerHTML!==e&&(p.innerHTML=e),p;let m=d(e,i);return m.setAttribute(s(i),t),m}r.d(t,{BD:()=>h,m6:()=>p})},5985(e,t,r){function n(e){return e instanceof HTMLElement||e instanceof SVGElement}function o(e){return e&&"object"==typeof e&&n(e.nativeElement)?e.nativeElement:n(e)?e:null}r.d(t,{fk:()=>n,rb:()=>o})},4580(e,t,r){var n=r(1102),o=r(358),a=r(5646);function i(e,t=!1){if((0,o.A)(e)){let r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||"a"===r&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:n&&null===i&&(i=0),n&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}function l(e,t=!1){let r=[...e.querySelectorAll("*")].filter(e=>i(e,t));return i(e,t)&&r.unshift(e),r}function s(e,t){if(!e)return;e.focus(t);let{cursor:r}=t||{};if(r&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){let t=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}let c=null,u=[],d=new Map,f=new Map;function p(){return u[u.length-1]}function h(){let e=p(),{activeElement:t}=document;if(!function(e){let t=p();if(e&&t){let r;for(let[e,n]of d.entries())if(n===t){r=e;break}let n=f.get(r);return!!n&&(n===e||n.contains(e))}return!1}(t))if(e&&!function(e){let{activeElement:t}=document;return e===t||e.contains(t)}(e)){let t=l(e),r=t.includes(c)?c:t[0];r?.focus({preventScroll:!0})}else c=t}function m(e){if("Tab"===e.key){let{activeElement:t}=document,r=l(p()),n=r[r.length-1];e.shiftKey&&t===r[0]?c=n:e.shiftKey||t!==n||(c=r[0])}}function g(e,t){let r=(0,a.Ay)(),o=(0,n.useRef)(t);return o.current=t,!function(e,t){let r=(0,n.useRef)(0),[o,a]=(0,n.useState)(0);(0,n.useEffect)(()=>{r.current=0},t),(0,n.useEffect)(()=>{let[t,n]=e(r.current);return n||(r.current+=1,a(e=>e+1)),t},[...t,o])}(t=>{if(!e)return[void 0,!0];let n=o.current();if(n)return[(n&&(d.set(r,n),(u=u.filter(e=>e!==n)).push(n),window.addEventListener("focusin",h),window.addEventListener("keydown",m,!0),h()),()=>{c=null,u=u.filter(e=>e!==n),d.delete(r),f.delete(r),0===u.length&&(window.removeEventListener("focusin",h),window.removeEventListener("keydown",m,!0))}),!0];return[void 0,t>=1]},[r,e]),[e=>{e&&f.set(r,e)}]}r.d(t,{F4:()=>s,T$:()=>g})},358(e,t){t.A=e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){let{width:t,height:r}=e.getBBox();if(t||r)return!0}if(e.getBoundingClientRect){let{width:t,height:r}=e.getBoundingClientRect();if(t||r)return!0}}return!1}},8127(e,t,r){let n=Symbol.for("react.element"),o=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(e){return e&&"object"==typeof e&&(e.$$typeof===n||e.$$typeof===o)&&e.type===a}r.d(t,{A:()=>i})},4495(e,t,r){var n=r(1102);t.A=e=>{let t=n.useRef(e);return t.current=e,n.useCallback((...e)=>t.current?.(...e),[])}},5646(e,t,r){var n,o=r(1102);let a=0;function i(e,t){let r=String(t).replace(/[^a-zA-Z0-9_.:-]/g,"-");return`${e}-${r}`}let l={...n||(n=r.t(o,2))}.useId;t.Ay=l?function(e){let t=l();return e||t}:function(e){let[t,r]=o.useState("ssr-id");return(o.useEffect(()=>{let e=a;a+=1,r(`rc_unique_${e}`)},[]),e)?e:t},r.d(t,{OX:()=>i})},9968(e,t,r){var n=r(1102);let o=(0,r(2331).A)()?n.useLayoutEffect:n.useEffect,a=(e,t)=>{let r=n.useRef(!0);o(()=>e(r.current),t),o(()=>(r.current=!1,()=>{r.current=!0}),[])};t.A=a,r.d(t,{},{o:(e,t)=>{a(t=>{if(!t)return e()},t)}})},485(e,t,r){var n=r(1102);function o(e,t,r){let o=n.useRef({});return(!("value"in o.current)||r(o.current.condition,t))&&(o.current.value=e(),o.current.condition=t),o.current.value}r.d(t,{A:()=>o})},7972(e,t,r){r.d(t,{DD:()=>w,OC:()=>p.A,K4:()=>f.K4,gR:()=>h.A,Jt:()=>R,rb:()=>g.rb,OX:()=>c.OX,A9:()=>f.A9,jG:()=>$,V:()=>E,fk:()=>g.fk,n4:()=>C.A,zN:()=>v.A,h1:()=>D,v6:()=>P,cJ:()=>k,KE:()=>O,er:()=>s.A,m6:()=>m.m6,XX:()=>j,hZ:()=>z,H3:()=>f.H3,f3:()=>f.f3,$r:()=>I.A,F4:()=>b.F4,vs:()=>_,BD:()=>m.BD,xK:()=>f.xK,PW:()=>l,_q:()=>n.A,Bi:()=>c.Ay,Nf:()=>o.A,T$:()=>b.T$,Kr:()=>u.A,J0:()=>i,M7:()=>d,$e:()=>F.Ay});var n=r(4495),o=r(9968),a=r(1102),i=e=>{let t=a.useRef(!1),[r,n]=a.useState(e);return a.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]),[r,function(e,r){r&&t.current||n(e)}]};function l(e,t){let[r,n]=(0,a.useState)(e),i=void 0!==t?t:r;return(0,o.A)(e=>{e||n(t)},[t]),[i,n]}var s=r(7810),c=r(5646),u=r(485),d=function(e){let[,t]=a.useReducer(e=>e+1,0),r=a.useRef(e);return[(0,n.A)(()=>r.current),(0,n.A)(e=>{r.current="function"==typeof e?e(r.current):e,t()})]},f=r(7766),p=r(2331),h=r(4483),m=r(6506),g=r(5985),b=r(4580),v=r(358);function y(e){return e?.getRootNode?.()}function $(e){return y(e)instanceof ShadowRoot?y(e):null}let x={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){let{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=x.F1&&t<=x.F12)return!1;switch(t){case x.ALT:case x.CAPS_LOCK:case x.CONTEXT_MENU:case x.CTRL:case x.DOWN:case x.END:case x.ESC:case x.HOME:case x.INSERT:case x.LEFT:case x.MAC_FF_META:case x.META:case x.NUMLOCK:case x.NUM_CENTER:case x.PAGE_DOWN:case x.PAGE_UP:case x.PAUSE:case x.PRINT_SCREEN:case x.RIGHT:case x.SHIFT:case x.UP:case x.WIN_KEY:case x.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=x.ZERO&&e<=x.NINE||e>=x.NUM_ZERO&&e<=x.NUM_MULTIPLY||e>=x.A&&e<=x.Z||-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case x.SPACE:case x.QUESTION_MARK:case x.NUM_PLUS:case x.NUM_MINUS:case x.NUM_PERIOD:case x.NUM_DIVISION:case x.SEMICOLON:case x.DASH:case x.EQUALS:case x.COMMA:case x.PERIOD:case x.SLASH:case x.APOSTROPHE:case x.SINGLE_QUOTE:case x.OPEN_SQUARE_BRACKET:case x.BACKSLASH:case x.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},isEditableTarget:function(e){let t=e.target;if(!(t instanceof HTMLElement))return!1;let r=t.tagName;return"INPUT"===r||"TEXTAREA"===r||"SELECT"===r||!!t.isContentEditable}};var w=x;function E(e){return!("u"<typeof document)&&e&&e instanceof Element?function(e){let t,r,n=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,o=document.createElement("div");o.id=n;let a=o.style;if(a.position="absolute",a.left="0",a.top="0",a.width="100px",a.height="100px",a.overflow="scroll",e){let o=getComputedStyle(e);a.scrollbarColor=o.scrollbarColor,a.scrollbarWidth=o.scrollbarWidth;let i=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(i.width,10),s=parseInt(i.height,10);try{let e=l?`width: ${i.width};`:"",t=s?`height: ${i.height};`:"";(0,m.BD)(`
|
|
64
|
+
#${n}::-webkit-scrollbar {
|
|
65
|
+
${e}
|
|
66
|
+
${t}
|
|
67
|
+
}`,n)}catch(e){console.error(e),t=l,r=s}}document.body.appendChild(o);let i=e&&t&&!Number.isNaN(t)?t:o.offsetWidth-o.clientWidth,l=e&&r&&!Number.isNaN(r)?r:o.offsetHeight-o.clientHeight;return document.body.removeChild(o),(0,m.m6)(n),{width:i,height:l}}(e):{width:0,height:0}}var C=r(7439);function k(e,t){let r=Object.assign({},e);return Array.isArray(t)&&t.forEach(e=>{delete r[e]}),r}r(1641);let S=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
68
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
69
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
70
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
71
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
72
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
73
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
74
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
75
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
76
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
77
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
78
|
+
summary tabIndex target title type useMap value width wmode wrap`,A=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
79
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
80
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
81
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
82
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
83
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
84
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad
|
|
85
|
+
onPointerDown onPointerMove onPointerUp onPointerCancel onPointerEnter onPointerLeave onPointerOver onPointerOut onGotPointerCapture onLostPointerCapture
|
|
86
|
+
onAnimationStart onAnimationEnd onAnimationIteration
|
|
87
|
+
onTransitionEnd onTransitionRun onTransitionStart onTransitionCancel
|
|
88
|
+
onBeforeInput onReset onInvalid
|
|
89
|
+
onAuxClick onToggle onBeforeToggle onCancel onClose onResize onScrollEnd`,M=`${S} ${A}`.split(/[\s\n]+/);function N(e,t){return 0===e.indexOf(t)}function O(e,t=!1){let r;r=!1===t?{aria:!0,data:!0,attr:!0}:!0===t?{aria:!0}:{...t};let n={};return Object.keys(e).forEach(t=>{(r.aria&&("role"===t||N(t,"aria-"))||r.data&&N(t,"data-")||r.attr&&M.includes(t))&&(n[t]=e[t])}),n}var I=r(9501),P=function(...e){let t={};for(let r of e)if(r)for(let e of Object.keys(r))void 0!==r[e]&&(t[e]=r[e]);return t};function R(e,t){let r=e;for(let e=0;e<t.length;e+=1){if(null==r)return;r=r[t[e]]}return r}function z(e,t,r,n=!1){return t.length&&n&&void 0===r&&!R(e,t.slice(0,-1))?e:function e(t,r,n,o){let a;if(!r.length)return n;let[i,...l]=r;return a=t||"number"!=typeof i?Array.isArray(t)?[...t]:{...t}:[],o&&void 0===n&&1===l.length?delete a[i][l[0]]:a[i]=e(a[i],l,n,o),a}(e,t,r,n)}function T(e){return Array.isArray(e)?[]:{}}let B="u"<typeof Reflect?Object.keys:Reflect.ownKeys;function D(...e){return function(e,t={}){let{prepareArray:r}=t,n=r||(()=>[]),o=T(e[0]);return e.forEach(e=>{!function t(r,a){let i=new Set(a),l=R(e,r),s=Array.isArray(l);if(s||"object"==typeof l&&null!==l&&Object.getPrototypeOf(l)===Object.prototype){if(!i.has(l)){i.add(l);let e=R(o,r);s?o=z(o,r,n(e,l)):e&&"object"==typeof e||(o=z(o,r,T(l))),B(l).forEach(e=>{Object.getOwnPropertyDescriptor(l,e).enumerable&&t([...r,e],i)})}}else o=z(o,r,l)}([])}),o}(e)}var F=r(2667),L=r(9083);let H="__rc_react_root__";function j(e,t){let r=t[H]||(0,L.createRoot)(t);r.render(e),t[H]=r}async function _(e){return Promise.resolve().then(()=>{e[H]?.unmount(),delete e[H]})}r(2450)},7439(e,t,r){var n=r(2667);t.A=function(e,t,r=!1){let o=new Set;return function e(t,a,i=1){let l=o.has(t);if((0,n.Ay)(!l,"Warning: There may be circular references"),l)return!1;if(t===a)return!0;if(r&&i>1)return!1;o.add(t);let s=i+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(let r=0;r<t.length;r++)if(!e(t[r],a[r],s))return!1;return!0}if(t&&a&&"object"==typeof t&&"object"==typeof a){let r=Object.keys(t);return r.length===Object.keys(a).length&&r.every(r=>e(t[r],a[r],s))}return!1}(e,t)}},7810(e,t){let r=e=>+setTimeout(e,16),n=e=>clearTimeout(e);"u">typeof window&&"requestAnimationFrame"in window&&(r=e=>window.requestAnimationFrame(e),n=e=>window.cancelAnimationFrame(e));let o=0,a=new Map,i=(e,t=1)=>{let n=o+=1;return!function t(o){if(0===o)a.delete(n),e();else{let e=r(()=>{t(o-1)});a.set(n,e)}}(t),n};i.cancel=e=>{let t=a.get(e);return a.delete(e),n(t)},t.A=i},7766(e,t,r){var n=r(1102),o=r(6956),a=r(485),i=r(8127);let l=Number(n.version.split(".")[0]),s=(...e)=>{let t=e.filter(Boolean);return t.length<=1?t[0]:t=>{e.forEach(e=>{"function"==typeof e?e(t):"object"==typeof e&&e&&"current"in e&&(e.current=t)})}},c=e=>{if(!e)return!1;if(u(e)&&l>=19)return!0;let t=(0,o.Rf)(e)?e.type.type:e.type;return("function"!=typeof t||!!t.prototype?.render||t.$$typeof===o.vM)&&("function"!=typeof e||!!e.prototype?.render||e.$$typeof===o.vM)};function u(e){return(0,n.isValidElement)(e)&&!(0,i.A)(e)}r.d(t,{},{A9:e=>e&&u(e)?e.props.propertyIsEnumerable("ref")?e.props.ref:e.ref:null,H3:e=>u(e)&&c(e),K4:s,f3:c,xK:(...e)=>(0,a.A)(()=>s(...e),e,(e,t)=>e.length!==t.length||e.every((e,r)=>e!==t[r]))})},2667(e,t,r){let n={},o=[];function a(e,t){}function i(e,t){}function l(e,t,r){t||n[r]||(e(!1,r),n[r]=!0)}function s(e,t){l(a,e,t)}s.preMessage=e=>{o.push(e)},s.resetWarned=function(){n={}},s.noteOnce=function(e,t){l(i,e,t)},t.Ay=s,r.d(t,{$e:()=>a})},2201(e,t,r){r.d(t,{A:()=>C});var n=r(9932),o=r(851),a=r(6175),i=r(7972),l=r(1102),s=r(2450);let c=l.forwardRef(({height:e,offsetY:t,offsetX:r,children:i,prefixCls:s,onInnerResize:c,innerProps:u,rtl:d,extra:f},p)=>{let h={},m={display:"flex",flexDirection:"column"};return void 0!==t&&(h={height:e,position:"relative",overflow:"hidden"},m={...m,transform:`translateY(${t}px)`,[d?"marginRight":"marginLeft"]:-r,position:"absolute",left:0,right:0,top:0}),l.createElement("div",{style:h},l.createElement(a.Ay,{onResize:({offsetHeight:e})=>{e&&c&&c()}},l.createElement("div",(0,n.A)({style:m,className:(0,o.$)({[`${s}-holder-inner`]:s}),ref:p},u),i,f)))});function u({children:e,setRef:t}){let r=l.useCallback(e=>{t(e)},[]);return l.cloneElement(e,{ref:r})}c.displayName="Filler";let d="object"==typeof navigator&&/Firefox/i.test(navigator.userAgent);var f=(e,t,r,n)=>{let o=(0,l.useRef)(!1),a=(0,l.useRef)(null),i=(0,l.useRef)({top:e,bottom:t,left:r,right:n});return i.current.top=e,i.current.bottom=t,i.current.left=r,i.current.right=n,(e,t,r=!1)=>{let n=e?t<0&&i.current.left||t>0&&i.current.right:t<0&&i.current.top||t>0&&i.current.bottom;return r&&n?(clearTimeout(a.current),o.current=!1):(!n||o.current)&&(clearTimeout(a.current),o.current=!0,a.current=setTimeout(()=>{o.current=!1},50)),!o.current&&n}};class p{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}get(e){return this.maps[e]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}}function h(e){let t=parseFloat(e);return isNaN(t)?0:t}let m=14/15;function g(e){return Math.floor(e**.5)}function b(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}let v=l.forwardRef((e,t)=>{let{prefixCls:r,rtl:n,scrollOffset:a,scrollRange:s,onStartMove:c,onStopMove:u,onScroll:d,horizontal:f,spinSize:p,containerSize:h,style:m,thumbStyle:g,showScrollBar:v}=e,[y,$]=l.useState(!1),[x,w]=l.useState(null),[E,C]=l.useState(null),k=!n,S=l.useRef(),A=l.useRef(),[M,N]=l.useState(v),O=l.useRef(),I=()=>{!0!==v&&!1!==v&&(clearTimeout(O.current),N(!0),O.current=setTimeout(()=>{N(!1)},3e3))},P=s-h||0,R=h-p||0,z=l.useMemo(()=>0===a||0===P?0:a/P*R,[a,P,R]),T=l.useRef({top:z,dragging:y,pageY:x,startTop:E});T.current={top:z,dragging:y,pageY:x,startTop:E};let B=e=>{$(!0),w(b(e,f)),C(T.current.top),c(),e.stopPropagation(),e.preventDefault()};l.useEffect(()=>{let e=e=>{e.preventDefault()},t=S.current,r=A.current;return t.addEventListener("touchstart",e,{passive:!1}),r.addEventListener("touchstart",B,{passive:!1}),()=>{t.removeEventListener("touchstart",e),r.removeEventListener("touchstart",B)}},[]);let D=l.useRef();D.current=P;let F=l.useRef();F.current=R,l.useEffect(()=>{if(y){let e,t=t=>{let{dragging:r,pageY:n,startTop:o}=T.current;i.er.cancel(e);let a=S.current.getBoundingClientRect(),l=h/(f?a.width:a.height);if(r){let r=(b(t,f)-n)*l,a=o;!k&&f?a-=r:a+=r;let s=D.current,c=F.current,u=Math.ceil((c?a/c:0)*s);u=Math.min(u=Math.max(u,0),s),e=(0,i.er)(()=>{d(u,f)})}},r=()=>{$(!1),u()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",r,{passive:!0}),window.addEventListener("touchend",r,{passive:!0}),()=>{window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",r),window.removeEventListener("touchend",r),i.er.cancel(e)}}},[y]),l.useEffect(()=>(I(),()=>{clearTimeout(O.current)}),[a]),l.useImperativeHandle(t,()=>({delayHidden:I}));let L=`${r}-scrollbar`,H={position:"absolute",visibility:M?null:"hidden"},j={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return f?(Object.assign(H,{height:8,left:0,right:0,bottom:0}),Object.assign(j,{height:"100%",width:p,[k?"left":"right"]:z})):(Object.assign(H,{width:8,top:0,bottom:0,[k?"right":"left"]:0}),Object.assign(j,{width:"100%",height:p,top:z})),l.createElement("div",{ref:S,className:(0,o.$)(L,{[`${L}-horizontal`]:f,[`${L}-vertical`]:!f,[`${L}-visible`]:M}),style:{...H,...m},onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},onMouseMove:I},l.createElement("div",{ref:A,className:(0,o.$)(`${L}-thumb`,{[`${L}-thumb-moving`]:y}),style:{...j,...g},onMouseDown:B}))});function y(e=0,t=0){let r=e/t*e;return isNaN(r)&&(r=0),Math.floor(r=Math.max(r,20))}let $=[],x={overflowY:"auto",overflowAnchor:"none"};function w(e,t){var r,w;let E,C,k,S,A,M,N,O,I,P,R,z,T,B,D,F,{prefixCls:L="rc-virtual-list",className:H,height:j,itemHeight:_,fullHeight:W=!0,style:q,data:K,children:V,itemKey:X,virtual:G,direction:U,scrollWidth:Y,component:Q="div",onScroll:Z,onVirtualScroll:J,onVisibleChange:ee,innerProps:et,extraRender:er,styles:en,showScrollBar:eo="optional",...ea}=e,ei=l.useCallback(e=>"function"==typeof X?X(e):e?.[X],[X]),[el,es,ec,eu]=function(e){let[t,r]=l.useState(0),n=(0,l.useRef)(new Map),o=(0,l.useRef)(new p),a=(0,l.useRef)(0);function i(){a.current+=1}function s(e=!1){i();let t=()=>{let e=!1;n.current.forEach((t,r)=>{if(t&&t.offsetParent){let{offsetHeight:n}=t,{marginTop:a,marginBottom:i}=getComputedStyle(t),l=n+h(a)+h(i);o.current.get(r)!==l&&(o.current.set(r,l),e=!0)}}),e&&r(e=>e+1)};if(e)t();else{a.current+=1;let e=a.current;Promise.resolve().then(()=>{e===a.current&&t()})}}return(0,l.useEffect)(()=>i,[]),[function(t,r){let o=e(t),a=n.current.get(o);r?(n.current.set(o,r),s()):n.current.delete(o)},s,o.current,t]}(ei),ed=!!(!1!==G&&j&&_),ef=l.useMemo(()=>Object.values(ec.maps).reduce((e,t)=>e+t,0),[ec.id,ec.maps]),ep=ed&&K&&(Math.max(_*K.length,ef)>j||!!Y),eh="rtl"===U,em=(0,o.$)(L,{[`${L}-rtl`]:eh},H),eg=K||$,eb=(0,l.useRef)(),ev=(0,l.useRef)(),ey=(0,l.useRef)(),[e$,ex]=(0,l.useState)(0),[ew,eE]=(0,l.useState)(0),[eC,ek]=(0,l.useState)(!1),eS=()=>{ek(!0)},eA=()=>{ek(!1)};function eM(e){ex(t=>{let r,n=(r="function"==typeof e?e(t):e,Number.isNaN(eW.current)||(r=Math.min(r,eW.current)),r=Math.max(r,0));return eb.current.scrollTop=n,n})}let eN=(0,l.useRef)({start:0,end:eg.length}),eO=(0,l.useRef)(),[eI]=function(e,t){let[r,n]=l.useState(e),[o,a]=l.useState(null);return l.useEffect(()=>{let o=function(e,t,r){let n,o,a=e.length,i=t.length;if(0===a&&0===i)return null;a<i?(n=e,o=t):(n=t,o=e);let l={__EMPTY_ITEM__:!0};function s(e){return void 0!==e?r(e):l}let c=null,u=1!==Math.abs(a-i);for(let e=0;e<o.length;e+=1){let t=s(n[e]);if(t!==s(o[e])){c=e,u=u||t!==s(o[e+1]);break}}return null===c?null:{index:c,multiple:u}}(r||[],e||[],t);o?.index!==void 0&&a(e[o.index]),n(e)},[e]),[o]}(eg,ei);eO.current=eI;let{scrollHeight:eP,start:eR,end:ez,offset:eT}=l.useMemo(()=>{let e,t,r;if(!ed)return{scrollHeight:void 0,start:0,end:eg.length-1,offset:void 0};if(!ep)return{scrollHeight:ev.current?.offsetHeight||0,start:0,end:eg.length-1,offset:void 0};let n=0,o=eg.length;for(let a=0;a<o;a+=1){let o=ei(eg[a]),i=ec.get(o),l=n+(void 0===i?_:i);l>=e$&&void 0===e&&(e=a,t=n),l>e$+j&&void 0===r&&(r=a),n=l}return void 0===e&&(e=0,t=0,r=Math.ceil(j/_)),void 0===r&&(r=eg.length-1),{scrollHeight:n,start:e,end:r=Math.min(r+1,eg.length-1),offset:t}},[ep,ed,e$,eg,eu,j]);eN.current.start=eR,eN.current.end=ez,l.useLayoutEffect(()=>{let e=ec.getRecord();if(1===e.size){let t=Array.from(e.keys())[0],r=e.get(t),n=eg[eR];if(n&&void 0===r&&ei(n)===t){let e=ec.get(t)-_;eM(t=>t+e)}}ec.resetRecord()},[eP]);let[eB,eD]=l.useState({width:0,height:j}),eF=(0,l.useRef)(),eL=(0,l.useRef)(),eH=l.useMemo(()=>y(eB.width,Y),[eB.width,Y]),ej=l.useMemo(()=>y(eB.height,eP),[eB.height,eP]),e_=eP-j,eW=(0,l.useRef)(e_);eW.current=e_;let eq=e$<=0,eK=e$>=e_,eV=ew<=0,eX=ew>=Y,eG=f(eq,eK,eV,eX),eU=()=>({x:eh?-ew:ew,y:e$}),eY=(0,l.useRef)(eU()),eQ=(0,i._q)(e=>{if(J){let t={...eU(),...e};(eY.current.x!==t.x||eY.current.y!==t.y)&&(J(t),eY.current=t)}});function eZ(e,t){t?((0,s.flushSync)(()=>{eE(e)}),eQ()):eM(e)}let eJ=e=>{let t=e,r=Y?Y-eB.width:0;return Math.min(t=Math.max(t,0),r)},e0=(0,i._q)((e,t)=>{t?((0,s.flushSync)(()=>{eE(t=>eJ(t+(eh?-e:e)))}),eQ()):eM(t=>t+e)}),[e1,e2]=(r=!!Y,E=(0,l.useRef)(0),C=(0,l.useRef)(null),k=(0,l.useRef)(null),S=(0,l.useRef)(!1),A=f(eq,eK,eV,eX),M=(0,l.useRef)(null),N=(0,l.useRef)(null),[function(e){if(!ed)return;i.er.cancel(N.current),N.current=(0,i.er)(()=>{M.current=null},2);let{deltaX:t,deltaY:n,shiftKey:o}=e,a=t,l=n;("sx"===M.current||!M.current&&o&&n&&!t)&&(a=n,l=0,M.current="sx");let s=Math.abs(a),c=Math.abs(l);if(null===M.current&&(M.current=r&&s>c?"x":"y"),"y"===M.current){var u,f;u=e,f=l,i.er.cancel(C.current),A(!1,f)||u._virtualHandled||(u._virtualHandled=!0,E.current+=f,k.current=f,d||u.preventDefault(),C.current=(0,i.er)(()=>{let e=S.current?10:1;e0(E.current*e,!1),E.current=0}))}else e0(a,!0),d||e.preventDefault()},function(e){ed&&(S.current=e.detail===k.current)}]);w=(e,t,r,n)=>!eG(e,t,r)&&(!n||!n._virtualHandled)&&(n&&(n._virtualHandled=!0),e1({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),!0),I=(0,l.useRef)(!1),P=(0,l.useRef)(0),R=(0,l.useRef)(0),z=(0,l.useRef)(null),T=(0,l.useRef)(null),B=e=>{if(I.current){let t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),n=P.current-t,o=R.current-r,a=Math.abs(n)>Math.abs(o);a?P.current=t:R.current=r;let i=w(a,a?n:o,!1,e);i&&e.preventDefault(),clearInterval(T.current),i&&(T.current=setInterval(()=>{a?n*=m:o*=m;let e=Math.floor(a?n:o);(!w(a,e,!0)||.1>=Math.abs(e))&&clearInterval(T.current)},16))}},D=()=>{I.current=!1,O()},F=e=>{O(),1!==e.touches.length||I.current||(I.current=!0,P.current=Math.ceil(e.touches[0].pageX),R.current=Math.ceil(e.touches[0].pageY),z.current=e.target,z.current.addEventListener("touchmove",B,{passive:!1}),z.current.addEventListener("touchend",D,{passive:!0}))},O=()=>{z.current&&(z.current.removeEventListener("touchmove",B),z.current.removeEventListener("touchend",D))},(0,i.Nf)(()=>(ed&&eb.current.addEventListener("touchstart",F,{passive:!0}),()=>{eb.current?.removeEventListener("touchstart",F),O(),clearInterval(T.current)}),[ed]),l.useEffect(()=>{let e=eb.current;if(ep&&e){let t,r,n=!1,o=()=>{i.er.cancel(t)},a=()=>{o(),t=(0,i.er)(()=>{(e=>{eM(t=>t+e)})(r),a()})},l=()=>{n=!1,o()},s=e=>{e.target.draggable||0!==e.button||e._virtualHandled||(e._virtualHandled=!0,n=!0)},c=t=>{if(n){let n=b(t,!1),{top:i,bottom:l}=e.getBoundingClientRect();n<=i?(r=-g(i-n),a()):n>=l?(r=g(n-l),a()):o()}};return e.addEventListener("mousedown",s),e.ownerDocument.addEventListener("mouseup",l),e.ownerDocument.addEventListener("mousemove",c),e.ownerDocument.addEventListener("dragend",l),()=>{e.removeEventListener("mousedown",s),e.ownerDocument.removeEventListener("mouseup",l),e.ownerDocument.removeEventListener("mousemove",c),e.ownerDocument.removeEventListener("dragend",l),o()}}},[ep]),(0,i.Nf)(()=>{function e(e){let t=eq&&e.detail<0,r=eK&&e.detail>0;!ed||t||r||e.preventDefault()}let t=eb.current;return t.addEventListener("wheel",e1,{passive:!1}),t.addEventListener("DOMMouseScroll",e2,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),()=>{t.removeEventListener("wheel",e1),t.removeEventListener("DOMMouseScroll",e2),t.removeEventListener("MozMousePixelScroll",e)}},[ed,eq,eK]),(0,i.Nf)(()=>{if(Y){let e=eJ(ew);eE(e),eQ({x:e})}},[eB.width,Y]);let e5=()=>{eF.current?.delayHidden(),eL.current?.delayHidden()},e4=function(e,t,r,n){let[o,a]=l.useMemo(()=>[new Map,[]],[e,r.id,n]);return(i,l=i)=>{let s=o.get(i),c=o.get(l);if(void 0===s||void 0===c){let u=e.length;for(let d=a.length;d<u;d+=1){let u=t(e[d]);o.set(u,d);let f=r.get(u)??n;if(a[d]=(a[d-1]||0)+f,u===i&&(s=d),u===l&&(c=d),void 0!==s&&void 0!==c)break}}return{top:a[s-1]||0,bottom:a[c]}}}(eg,ei,ec,_),e6=function(e,t,r,n,o,a,s,c,u){let d=l.useRef(),[f,p]=l.useState(null);return(0,i.Nf)(()=>{if(f&&f.times<10){var i;let l;if(!e.current)return void p(e=>({...e}));s();let{targetAlign:u,originAlign:d,index:h,offset:m}=f,g=(i={getSize:a},Number.isFinite(l="function"==typeof m?m(i):m)?l:0),b=e.current.clientHeight,v=!1,y=u,$=null;if(b){let a=u||d,i=0,l=0,s=0,p=Math.min(t.length-1,h);for(let e=0;e<=p;e+=1){let a=o(t[e]);l=i;let c=r.get(a);i=s=l+(void 0===c?n:c)}let m="top"===a?g:b-g;for(let e=p;e>=0;e-=1){let n=o(t[e]),a=r.get(n);if(void 0===a){v=!0;break}if((m-=a)<=0)break}switch(a){case"top":$=l-g;break;case"bottom":$=s-b+g;break;default:{let{scrollTop:t}=e.current;l<t?y="top":s>t+b&&(y="bottom")}}null!==$&&c($),$!==f.lastTop&&(v=!0)}v&&p({...f,times:f.times+1,targetAlign:y,lastTop:$})}},[f,e.current]),e=>{if(null==e)return void u();if(i.er.cancel(d.current),"number"==typeof e)c(e);else if(e&&"object"==typeof e){let r,{align:n}=e;"index"in e?{index:r}=e:r=t.findIndex(t=>o(t)===e.key);let{offset:a=0}=e;p({times:0,index:r,offset:a,originAlign:n})}}}(eb,eg,ec,_,ei,e4,()=>es(!0),eM,e5);l.useImperativeHandle(t,()=>({nativeElement:ey.current,getScrollInfo:eU,scrollTo:e=>{e&&"object"==typeof e&&("left"in e||"top"in e)?(void 0!==e.left&&eE(eJ(e.left)),e6(e.top)):e6(e)}})),(0,i.Nf)(()=>{ee&&ee(eg.slice(eR,ez+1),eg)},[eR,ez,eg]);let e8=er?.({start:eR,end:ez,virtual:ep,offsetX:ew,scrollTop:e$,offsetY:eT,rtl:eh,getSize:e4}),e3=function(e,t,r,n,o,a,i,{getKey:s}){return e.slice(t,r+1).map((e,r)=>{let c=i(e,t+r,{style:{width:n},offsetX:o}),d=s(e);return l.createElement(u,{key:d,setRef:t=>a(e,t)},c)})}(eg,eR,ez,Y,ew,el,V,{getKey:ei}),e9=null;j&&(e9={[W?"height":"maxHeight"]:j,...x},ed&&(e9.overflowY="hidden",Y&&(e9.overflowX="hidden"),eC&&(e9.pointerEvents="none")));let e7={};return eh&&(e7.dir="rtl"),l.createElement("div",(0,n.A)({ref:ey,style:{...q,position:"relative"},className:em},e7,ea),l.createElement(a.Ay,{onResize:e=>{eD({width:e.offsetWidth,height:e.offsetHeight})}},l.createElement(Q,{className:`${L}-holder`,style:e9,ref:eb,onScroll:function(e){let{scrollTop:t}=e.currentTarget;t!==e$&&eM(t),Z?.(e),eQ()},onMouseEnter:e5},l.createElement(c,{prefixCls:L,height:eP,offsetX:ew,offsetY:eT,scrollWidth:Y,onInnerResize:es,ref:ev,innerProps:et,rtl:eh,extra:e8},e3))),ep&&eP>j&&l.createElement(v,{ref:eF,prefixCls:L,scrollOffset:e$,scrollRange:eP,rtl:eh,onScroll:eZ,onStartMove:eS,onStopMove:eA,spinSize:ej,containerSize:eB.height,style:en?.verticalScrollBar,thumbStyle:en?.verticalScrollBarThumb,showScrollBar:eo}),ep&&Y>eB.width&&l.createElement(v,{ref:eL,prefixCls:L,scrollOffset:ew,scrollRange:Y,rtl:eh,onScroll:eZ,onStartMove:eS,onStopMove:eA,spinSize:eH,containerSize:eB.width,horizontal:!0,style:en?.horizontalScrollBar,thumbStyle:en?.horizontalScrollBarThumb,showScrollBar:eo}))}let E=l.forwardRef(w);E.displayName="List",l.forwardRef((e,t)=>w({...e,virtual:!1},t)).displayName="List";var C=E},6192(e,t,r){var n=r(1102),o=r(850),a=r(9838),i=r(9882);t.A=e=>{let{space:t,form:r,children:l}=e;if(!(0,i.AZ)(l))return null;let s=l;return r&&(s=n.createElement(o.XB,{override:!0,status:!0},s)),t&&(s=n.createElement(a.K6,null,s)),s}},9534(e,t,r){var n=r(5142),o=r(5689);let a=o.s.map(e=>`${e}-inverse`),i=["success","processing","error","default","warning"];function l(e,t=!0){return t?[].concat((0,n.A)(a),(0,n.A)(o.s)).includes(e):o.s.includes(e)}function s(e){return i.includes(e)}r.d(t,{ZZ:()=>s,nP:()=>l})},2661(e,t,r){function n(...e){return e.find(e=>void 0!==e)}r.d(t,{A:()=>n})},3661(e,t,r){var n=r(1102),o=r(197),a=r(7972),i=r(2564),l=r(6615),s=r(9882);let c={},u=(e,t)=>{if(!e&&(!1===e||!1===t||null===t))return!1;if(!(0,s.R)(e)&&!(0,s.R)(t))return null;let r={closeIcon:"boolean"!=typeof t&&(0,s.R)(t)?t:void 0};return(0,s.Qd)(e)&&(r={...r,...e}),r},d=(e,t,r=c,i="Close")=>{let l=u(e?.closable,e?.closeIcon),d=u(t?.closable,t?.closeIcon),f={closeIcon:n.createElement(o.A,null),...r},p=!1!==l&&(l?(0,a.v6)(f,d,l):!1!==d&&(d?(0,a.v6)(f,d):!!f.closable&&f)),h="boolean"!=typeof p&&!!p?.disabled;if(!1===p)return[!1,null,h,{}];let[m,g]=((e,t,r)=>{let{closeIconRender:o}=t,{closeIcon:i,...l}=e,c=i,u=(0,a.KE)(l,!0);return(0,s.R)(c)&&(o&&(c=o(c)),c=n.isValidElement(c)?n.cloneElement(c,{"aria-label":r,...c.props,...u}):n.createElement("span",{"aria-label":r,...u},c)),[c,u]})(p,f,i);return[!0,m,h,g]};r.d(t,{},{$Z:(e,t,r=c)=>{let[a]=(0,i.A)("global",l.A.global);return n.useMemo(()=>d(e,t,{closeIcon:n.createElement(o.A,null),...r},a.close),[e,t,r,a.close])},b8:d,dG:e=>{if(!e)return;let{closable:t,closeIcon:r}=e;return{closable:t,closeIcon:r}}})},2382(e,t,r){r.d(t,{Jb:()=>p,AV:()=>h,XT:()=>f});var n=r(5142),o=r(1102),a=r(851),i=r(9882);let l=(e,t)=>{let r={...e};return Object.keys(t).forEach(e=>{t[e]._default?r[e]||(r[e]={}):r[e]=l(r[e],t[e])}),r},s=(e={},...t)=>t.filter(e=>!!e).reduce((t,r)=>(Object.keys(r).forEach(n=>{let o=e[n],l=r[n];if(o)if((0,i.Qd)(l))t[n]=s(o,t[n],l);else{let{_default:e}=o;e&&(t[n]=t[n]||{},t[n][e]=(0,a.$)(t[n][e],l))}else t[n]=(0,a.$)(t[n],l)}),t),{}),c=(e,...t)=>o.useMemo(()=>s.apply(void 0,[e].concat(t)),[e].concat(t)),u=(...e)=>e.filter(e=>!!e).reduce((e,t={})=>(Object.keys(t).forEach(r=>{e[r]={...e[r],...t[r]}}),e),{}),d=(...e)=>o.useMemo(()=>u.apply(void 0,e),[].concat(e)),f=e=>o.useMemo(()=>e?{root:e}:void 0,[e]),p=(e,t)=>(0,i.Tn)(e)?e(t):e,h=(e,t,r,a)=>{let i=e.map(e=>e?p(e,r):void 0),s=t.map(e=>e?p(e,r):void 0),u=c.apply(void 0,[a].concat((0,n.A)(i))),f=d.apply(void 0,(0,n.A)(s));return o.useMemo(()=>a?[l(u,a),l(f,a)]:[u,f],[u,f,a])}},4340(e,t,r){var n=r(1102);let o=e=>"horizontal"===e||"vertical"===e;r.d(t,{},{M:(e,t,r)=>(0,n.useMemo)(()=>{let n;return[n=o(e)?e:"boolean"==typeof t?t?"vertical":"horizontal":o(r)?r:"horizontal","vertical"===n]},[r,e,t])})},7874(e,t,r){var n=r(1102),o=r(8156),a=r(9809);let i={Modal:100,Drawer:100,Popover:100,Popconfirm:100,Tooltip:100,Tour:100,FloatButton:100},l={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};r.d(t,{},{YK:(e,t)=>{let r,[,s]=(0,o.Ay)(),c=n.useContext(a.A),u=e in i;if(void 0!==t)r=[t,t];else{let n=c??0;u?n+=(c?0:s.zIndexPopupBase)+i[e]:n+=l[e],r=[void 0===c?t:n,n]}return r}})},9882(e,t,r){let n=e=>null!=e,o=e=>"string"==typeof e,a=e=>null!==e&&"object"==typeof e,i=e=>"function"==typeof e;r.d(t,{},{AZ:e=>n(e)&&!1!==e&&""!==e,Et:e=>"number"==typeof e&&!Number.isNaN(e),Kg:o,Qd:a,Qg:e=>n(e)&&i(e.then),R:n,Tn:i,qF:e=>a(e)&&"propertyName"in e&&o(e.propertyName)})},568(e,t,r){var n=r(9882);let o=()=>({height:0,opacity:0}),a=e=>({height:e?.scrollHeight??0,opacity:+!!e}),i=e=>({height:e?.offsetHeight??0}),l=(e,t)=>t?.deadline===!0||(0,n.qF)(t)&&"height"===t.propertyName;t.A=(e="ant")=>({motionName:`${e}-motion-collapse`,onAppearStart:o,onEnterStart:o,onAppearActive:a,onEnterActive:a,onLeaveStart:i,onLeaveActive:o,onAppearEnd:l,onEnterEnd:l,onLeaveEnd:l,motionDeadline:500}),r.d(t,{},{b:(e,t,r)=>void 0!==r?r:`${e}-${t}`})},7211(e,t,r){var n=r(1102),o=r(9882);function a(e){return e&&n.isValidElement(e)&&e.type===n.Fragment}let i=(e,t,r)=>n.isValidElement(e)?n.cloneElement(e,(0,o.Tn)(r)?r(e.props||{}):r):t;function l(e,t){return i(e,e,t)}r.d(t,{Ob:()=>l,zv:()=>a},{fx:i})},1387(e,t,r){var n=r(851);r.d(t,{},{L:(e,t,r)=>(0,n.$)({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:r}),v:(e,t)=>t||e})},2048(e,t,r){var n=r(1102);function o(){}let{resetWarned:a}=r(7972).$e,i=n.createContext({});r.d(t,{},{_n:i,rJ:()=>{let e=()=>{};return e.deprecated=o,e}})},9746(e,t,r){r.d(t,{A:()=>v});var n=r(1102),o=r(7972),a=r(851),i=r(7034),l=r(7211),s=r(9233),c=(0,s.Or)("Wave",e=>{let{componentCls:t,colorPrimary:r,motionDurationSlow:n,motionEaseInOut:o,motionEaseOutCirc:a,antCls:i}=e,[,l]=(0,s.PN)(i,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:l("color",r),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(e=>`${e} ${a}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(e=>`${e} ${n} ${o}`).join(",")}}}}}),u=r(8156);let d="ant-wave-target";var f=r(2539),p=r(9882);let h=e=>!!e&&(0,p.Kg)(e)&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/i.test(e)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(e)&&"transparent"!==e&&"canvastext"!==e;function m(e){return Number.isNaN(e)?0:e}let g=e=>{let{className:t,target:r,component:l,colorSource:c}=e,u=n.useRef(null),{getPrefixCls:g}=n.useContext(i.QO),b=g(),[v]=(0,s.PN)(b,"wave"),[y,$]=n.useState(null),[x,w]=n.useState([]),[E,C]=n.useState(0),[k,S]=n.useState(0),[A,M]=n.useState(0),[N,O]=n.useState(0),[I,P]=n.useState(!1),R={left:E,top:k,width:A,height:N,borderRadius:x.map(e=>`${e}px`).join(" ")};function z(){let e=getComputedStyle(r);$(function(e,t=null){let r=getComputedStyle(e),{borderTopColor:n,borderColor:o,backgroundColor:a}=r;return t&&h(r[t])?r[t]:[n,o,a].find(h)??null}(r,c));let t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;C(t?r.offsetLeft:m(-Number.parseFloat(n))),S(t?r.offsetTop:m(-Number.parseFloat(o))),M(r.offsetWidth),O(r.offsetHeight);let{borderTopLeftRadius:a,borderTopRightRadius:i,borderBottomLeftRadius:l,borderBottomRightRadius:s}=e;w([a,i,s,l].map(e=>m(Number.parseFloat(e))))}if(y&&(R[v("color")]=y),n.useEffect(()=>{if(r){let e,t=(0,o.er)(()=>{z(),P(!0)});return"u">typeof ResizeObserver&&(e=new ResizeObserver(z)).observe(r),()=>{o.er.cancel(t),e?.disconnect()}}},[r]),!I)return null;let T=("Checkbox"===l||"Radio"===l)&&r?.classList.contains(d);return n.createElement(f.Ay,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{if(t.deadline||(0,p.qF)(t)&&"opacity"===t.propertyName){let e=u.current?.parentElement;(0,o.vs)(e).then(()=>{e?.remove()})}return!1}},({className:e},r)=>n.createElement("div",{ref:(0,o.K4)(u,r),className:(0,a.$)(t,e,{"wave-quick":T}),style:R}))},b={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"};var v=e=>{let{children:t,disabled:r,component:s,colorSource:f}=e,{getPrefixCls:p,wave:h}=(0,n.useContext)(i.QO),m=(0,n.useRef)(null),v=p("wave"),y=c(v),$=((e,t,r,a)=>{let{wave:l}=n.useContext(i.QO),[,s,c]=(0,u.Ay)(),f=(0,o._q)(i=>{let u=e.current;if(l?.disabled||!u)return;let f=u.querySelector(`.${d}`)||u,{showEffect:p}=l||{};(p||((e,t)=>{let{component:r}=t;if("Checkbox"===r&&!e.querySelector("input")?.checked)return;let a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e?.insertBefore(a,e?.firstChild),(0,o.XX)(n.createElement(g,{...t,target:e}),a)}))(f,{className:t,token:s,component:r,event:i,hashId:c,colorSource:a})}),p=n.useRef(null);return n.useEffect(()=>()=>{o.er.cancel(p.current)},[]),e=>{o.er.cancel(p.current),p.current=(0,o.er)(()=>{f(e)})}})(m,(0,a.$)(v,y),s,f);if(n.useEffect(()=>{let e=m.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||r)return;let t=t=>{!(0,o.zN)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")&&!e.className.includes("disabled:")||"true"===e.getAttribute("aria-disabled")||e.className.includes("-leave")||$(t)},n=h?.triggerType,a=n&&n in b?b[n]:"click";return e.addEventListener(a,t,!0),()=>{e.removeEventListener(a,t,!0)}},[r,h?.triggerType]),!n.isValidElement(t))return t??null;let x=(0,o.f3)(t)?(0,o.K4)((0,o.A9)(t),m):m;return(0,l.Ob)(t,{ref:x})}},9809(e,t,r){t.A=r(1102).createContext(void 0)},2857(e,t,r){let n;r.d(t,{A:()=>tS});var o=r(1102),a=r(851),i=r(2048),l=r(7034),s=r(7972),c=r(2450),u=r(2539),d=({className:e,style:t,percent:r})=>o.createElement("progress",{className:e,max:"100",value:r,style:t});function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let p=o.forwardRef((e,t)=>{let r,n,i,{prefixCls:l,className:c,style:u,classNames:p,styles:h,components:m,title:g,description:b,icon:v,actions:y,role:$,closable:x,offset:w,notificationIndex:E,stackInThreshold:C,props:k,duration:S=4.5,showProgress:A,hovering:M,pauseOnHover:N=!0,onClick:O,onMouseEnter:I,onMouseLeave:P,onClose:R}=e,[z,T]=o.useState(0),B=`${l}-notice`,[D,F,L]=(r=o.useMemo(()=>!1===x?{closeIcon:null,disabled:!0}:"object"==typeof x&&null!==x?x:{},[x]),n=o.useMemo(()=>({...r,closeIcon:"closeIcon"in r?r.closeIcon:"×",disabled:r.disabled??!1}),[r]),i=o.useMemo(()=>(0,s.KE)(n,!0),[n]),[!!x,n,i]),H=(0,s._q)(()=>{F.onClose?.(),R?.()}),[j,_]=o.useState(!1),[W,q]=function(e,t,r){let n=1e3*Math.max("number"==typeof e?e:0,0),a=(0,s._q)(t),i=(0,s._q)(r),[l,c]=o.useState(n>0),u=o.useRef(0),d=o.useRef(null);function f(){let e=Date.now(),t=d.current;null!==t&&(u.current+=e-t),d.current=e}let p=o.useCallback(()=>{f(),c(!1)},[]),h=o.useCallback(()=>{n>0?(d.current=Date.now(),c(!0)):i(0)},[n]);return o.useEffect(()=>{u.current=0,c(n>0)},[n]),o.useEffect(()=>{if(!l)return;let e=null;return!function t(){f(),u.current>=n?(i(1),a()):(i(Math.min(u.current/n,1)),e=(0,s.er)(t))}(),()=>{s.er.cancel(e)}},[n,l]),[h,p]}(S,H,T),K=100-Math.min(Math.max(100*z,0),100),V=m?.progress||d;o.useEffect(()=>{N&&(M?q():j||W())},[M,j,q,W,N]);let X=o.useRef(w);void 0!==w&&(X.current=w);let G=o.useRef(E);void 0!==E&&(G.current=E);let U=w??X.current,Y=E??G.current??0,Q=null!=g?o.createElement("div",{className:(0,a.$)(`${B}-title`,p?.title),style:h?.title},g):null,Z=null!=b?o.createElement("div",{className:(0,a.$)(`${B}-description`,p?.description),style:h?.description},b):null,J=null!==Z,ee=null;ee=null!==Q&&J?o.createElement("div",{className:(0,a.$)(`${B}-section`,p?.section),style:h?.section},Q,Z):Q||Z,null!=v&&(ee=o.createElement("div",{className:(0,a.$)(`${B}-wrapper`,p?.wrapper),style:h?.wrapper},o.createElement("div",{className:(0,a.$)(`${B}-icon`,p?.icon),style:h?.icon},v),ee));let et=y?o.createElement("div",{className:(0,a.$)(`${B}-actions`,p?.actions),style:h?.actions},y):null,er={"--notification-index":Y,...h?.root,...u};void 0!==U&&(er["--notification-y"]=`${U}px`);let en=$??k?.role??"alert";return o.createElement("div",f({},k,{ref:t,role:en,"data-notification-index":Y,className:(0,a.$)(B,c,p?.root,{[`${B}-closable`]:D,[`${B}-stack-in-threshold`]:C}),style:er,onClick:O,onMouseEnter:function(e){_(!0),N&&q(),I?.(e)},onMouseLeave:function(e){_(!1),N&&!M&&W(),P?.(e)}}),ee,et,D&&o.createElement("button",f({className:(0,a.$)(`${B}-close`,p?.close),"aria-label":"Close"},L,{style:h?.close,onClick:function(e){e.preventDefault(),e.stopPropagation(),H()}}),F.closeIcon),A&&"number"==typeof S&&S>0&&o.createElement(V,{className:(0,a.$)(`${B}-progress`,p?.progress),percent:K,style:h?.progress}))}),h=o.createContext({});var m=({children:e,classNames:t})=>{let r=o.useMemo(()=>({classNames:t}),[t]);return o.createElement(h.Provider,{value:r},e)};function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let b=o.forwardRef((e,t)=>{let{listPrefixCls:r,height:n,topNoticeHeight:i=0,topNoticeWidth:l=0,className:s,style:c,...u}=e,d=`${r}-content`,f=o.useRef(n),p=n<f.current?"decrease":"increase";f.current=n;let h={...c,height:n,"--top-notificiation-height":`${i}px`,"--top-notificiation-width":`${l}px`};return o.createElement("div",g({},u,{className:(0,a.$)(d,`${d}-${p}`,s),style:h,ref:t}))});function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let y=["wrapper","root","icon","section","title","description","actions","close","progress"],$=e=>{var t,r;let{config:n,components:i,contextClassNames:l,classNames:c,styles:u,className:d,style:f,nodeRef:h,listHovering:m,stackEnabled:g,pauseOnHover:b,setNodeSize:$,onNoticeClose:x,...w}=e,{key:E,placement:C,...k}=n,S=String(E),A=o.useCallback(e=>{$(S,e)},[$,S]),M=(0,s.xK)(h,A);return o.createElement(p,v({},k,w,{ref:M,className:(0,a.$)(l?.notice,n.className,d),style:{...f,...n.style},classNames:(t=[c,n.classNames],y.reduce((e,r)=>(e[r]=(0,a.$)(...t.map(e=>e?.[r])),e),{})),styles:(r=[u,n.styles],y.reduce((e,t)=>(e[t]=Object.assign({},...r.map(e=>e?.[t])),e),{})),components:{...i,...n.components},hovering:g&&m,pauseOnHover:n.pauseOnHover??b,onClose:()=>{n.onClose?.(),x?.(E)}}))};var x=e=>{let t,{configList:r=[],prefixCls:n="rc-notification",pauseOnHover:i,classNames:l,styles:s,components:c,stack:d,motion:f,placement:p,className:m,style:g,onNoticeClose:y,onAllRemoved:x}=e,{classNames:w}=o.useContext(h),E=o.useMemo(()=>r.map(e=>({config:e,key:String(e.key)})),[r]),C="function"==typeof f?f(p):f,[k,{offset:S,threshold:A}]=(t={offset:8,threshold:3},d&&"object"==typeof d&&(t.offset=d.offset??8,t.threshold=d.threshold??3),[!!d,t]),[M,N]=o.useState(!1),O=k&&(M||E.length<=A),I=o.useMemo(()=>{if(k&&!O)return{offset:S,threshold:A}},[O,S,k,A]),[P,R]=o.useState(0),z=o.useRef(null),[T,B,D,F,L]=function(e,t,r=0){let[n,a]=function(){let[e,t]=o.useState({});return[e,o.useCallback((e,r)=>{if(!r)return void t(t=>{if(!(e in t))return t;let r={...t};return delete r[e],r});let n={width:r.offsetWidth,height:r.offsetHeight};t(t=>{let r=t[e];return r&&r.width===n.width&&r.height===n.height?t:{...t,[e]:n}})},[])]}(),[i,l,s,c]=o.useMemo(()=>{let o,a,i=0,l=0,s=t?.threshold??0,c=new Map;return e.slice().reverse().forEach((e,u)=>{let d=String(e.key),f=n[d]?.height??0,p=t&&u>0?i+(t.offset??0)-f:i;c.set(d,p),0===u&&(o=f,a=n[d]?.width??0),(!t||u<s)&&(l=Math.max(l,p+f)),t?i=p+f:i+=f+r}),[c,l,o,a]},[e,r,n,t]);return[i,a,l,s,c]}(r,I,P),H=!!r.length;o.useEffect(()=>{let e=z.current;if(!e)return;let{gap:t,rowGap:r}=window.getComputedStyle(e),n=parseFloat(r||t)||0;R(e=>e===n?e:n)},[H]);let j=`${n}-list`;return o.createElement("div",{className:(0,a.$)(n,j,`${n}-${p}`,w?.list,m,l?.list,{[`${n}-stack`]:k,[`${n}-stack-expanded`]:O,[`${j}-hovered`]:M}),onMouseEnter:()=>{N(!0)},onMouseLeave:()=>{N(!1)},style:{...s?.list,...g}},o.createElement(b,{listPrefixCls:j,height:D,topNoticeHeight:F,topNoticeWidth:L,className:l?.listContent,style:s?.listContent,ref:z},o.createElement(u.aF,v({component:!1,keys:E,motionAppear:!0},C,{onAllRemoved:()=>{p&&x?.(p)}}),({config:e,className:t,style:r},a)=>{let{key:u}=e,d=String(u),f=function(e,t){let r=String(t),n=e.findIndex(e=>e.key===r);if(-1!==n)return e.length-n-1}(E,u),p=k&&void 0!==f&&f<A;return o.createElement($,{key:u,config:e,components:c,contextClassNames:w,classNames:l,styles:s,className:t,style:r,nodeRef:a,prefixCls:n,offset:T.get(d),notificationIndex:f,stackInThreshold:p,listHovering:M,stackEnabled:k,pauseOnHover:i,setNodeSize:B,onNoticeClose:y})})))};let w=o.forwardRef((e,t)=>{let{prefixCls:r="rc-notification",container:n,motion:a,maxCount:i,pauseOnHover:l,classNames:u,styles:d,components:f,className:p,style:h,onAllRemoved:m,stack:g,renderNotifications:b}=e,[v,y]=o.useState([]),[$,w]=o.useState({}),E=o.useRef(!1);o.useImperativeHandle(t,()=>({open:e=>{y(t=>{let r=[...t],n=r.findIndex(t=>t.key===e.key),o={...e};return n>=0?(o.times=(t[n]?.times??0)+1,r[n]=o):(o.times=0,r.push(o)),i&&i>0&&r.length>i&&(r=r.slice(-i)),r})},close:e=>{y(t=>t.filter(t=>t.key!==e))},destroy:()=>{y([])}})),o.useEffect(()=>{let e={};v.forEach(t=>{let r=t.placement??"topRight";e[r]=e[r]||[],e[r].push(t)}),Object.keys($).forEach(t=>{e[t]=e[t]||[]}),w(e)},[v]);let C=(0,s._q)(e=>{w(t=>{let r={...t};return(r[e]||[]).length||delete r[e],r})});if(o.useEffect(()=>{Object.keys($).length>0?E.current=!0:E.current&&(m?.(),E.current=!1)},[$,m]),!n)return null;let k=Object.keys($);return(0,c.createPortal)(o.createElement(o.Fragment,null,k.map(e=>{let t=o.createElement(x,{key:e,configList:$[e],placement:e,prefixCls:r,pauseOnHover:l,classNames:u,styles:d,components:f,className:p?.(e),style:h?.(e),motion:a,stack:g,onNoticeClose:e=>{y(t=>t.filter(t=>t.key!==e))},onAllRemoved:C});return b?o.cloneElement(b(t,{prefixCls:r,key:e}),{key:e}):t})),n)}),E=()=>document.body,C=0;function k(e={}){let{getContainer:t=E,motion:r,prefixCls:n,placement:a,closable:i,duration:l,showProgress:c,pauseOnHover:u,classNames:d,styles:f,components:p,maxCount:h,className:m,style:g,onAllRemoved:b,stack:v,renderNotifications:y}=e,$={placement:a,closable:i,duration:l,showProgress:c},[x,S]=o.useState(),A=o.useRef(null),[M,N]=o.useState([]),O=o.createElement(w,{container:x,ref:A,prefixCls:n,motion:r,maxCount:h,pauseOnHover:u,classNames:d,styles:f,components:p,className:m,style:g,onAllRemoved:b,stack:v,renderNotifications:y}),I=(0,s._q)(e=>{let t=function(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(r=>{let n=e[r];void 0!==n&&(t[r]=n)})}),t}($,e);(null===t.key||void 0===t.key)&&(t.key=`rc-notification-${C}`,C+=1),N(e=>[...e,{type:"open",config:t}])}),P=o.useMemo(()=>({open:I,close:e=>{N(t=>[...t,{type:"close",key:e}])},destroy:()=>{N(e=>[...e,{type:"destroy"}])}}),[]);return o.useEffect(()=>{S(t())}),o.useEffect(()=>{A.current&&M.length&&(M.forEach(e=>{switch(e.type){case"open":A.current?.open(e.config);break;case"close":A.current?.close(e.key);break;case"destroy":A.current?.destroy()}}),N(e=>{let t=e.filter(e=>!M.includes(e));return t.length===e.length?e:t}))},[M]),[P,O]}var S=r(2382),A=r(9882),M=r(941),N=(e,t)=>o.useMemo(()=>{let r=e??t;return!!r&&{...(0,A.Qd)(t)?t:{},...(0,A.Qd)(r)?r:{}}},[e,t]),O=r(9078);function I(e,t){return{...(0,A.R)(e)&&{"--notification-top":(0,O.zA)(e)},...(0,A.R)(t)&&{"--notification-bottom":(0,O.zA)(t)}}}var P=r(3678),R=r(2875);function z(){return(z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let T=o.forwardRef((e,t)=>o.createElement(R.A,z({},e,{ref:t,icon:P.A})));var B=r(1151),D=r(6407);function F(){return(F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let L=o.forwardRef((e,t)=>o.createElement(R.A,F({},e,{ref:t,icon:D.A})));var H=r(4676);function j(){return(j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let _=o.forwardRef((e,t)=>o.createElement(R.A,j({},e,{ref:t,icon:H.A})));var W=r(6941);let q={info:o.createElement(_,null),success:o.createElement(T,null),error:o.createElement(B.A,null),warning:o.createElement(L,null),loading:o.createElement(W.A,null)};var K=r(4440),V=r(8528),X=r(9233);let G=(e,t)=>{let{componentCls:r,antCls:n,colorSuccess:o,colorInfo:a,colorWarning:i,colorError:l,colorTextHeading:s,colorText:c,boxShadow:u,borderRadiusLG:d,fontSize:f,lineHeight:p,notificationBg:h,notificationPadding:m,notificationMarginEdge:g,margin:b,calc:v}=e,y=`${r}-notice`,[$,x]=(0,X.PN)(n,"notification");return{[y]:{position:"absolute",width:t.width,maxWidth:`calc(100vw - ${(0,O.zA)(v(g).mul(2).equal())})`,padding:m,pointerEvents:"auto",[$("icon-font-size")]:t.iconFontSize,[$("title-font-size")]:t.titleFontSize,[$("title-line-height")]:t.titleLineHeight,boxSizing:"border-box",color:c,background:h,borderRadius:d,boxShadow:u,fontSize:f,lineHeight:p,wordWrap:"break-word",overflow:"visible",...(e=>{let{motionDurationMid:t,motionEaseInOut:r}=e,n=`${t} ${r}`;return{transform:"scale(var(--notification-scale, 1))",transition:["transform","inset","clip-path","opacity"].map(e=>`${e} ${n}`).join(", ")}})(e),...t.noticeStyle,"&::after":{position:"absolute",insetInline:0,top:v(b).mul(-1).equal(),height:b,content:'""'},...t.typeStyle&&{"&-success":{background:x("color-success-bg",h)},"&-error":{background:x("color-error-bg",h)},"&-info":{background:x("color-info-bg",h)},"&-warning":{background:x("color-warning-bg",h)}}},[`${y}-wrapper`]:{display:"flex",...t.contentStyle},[`${y}-title`]:{color:s,fontSize:x("title-font-size"),lineHeight:x("title-line-height")},[`${y}-icon`]:{flex:"none",fontSize:x("icon-font-size"),lineHeight:1,[`&${y}-icon-success`]:{color:o},[`&${y}-icon-info, &${y}-icon-loading`]:{color:a},[`&${y}-icon-warning`]:{color:i},[`&${y}-icon-error`]:{color:l}}}},U=e=>{let{componentCls:t,progressBg:r,notificationProgressHeight:n,fontSize:o,borderRadiusLG:a,width:i,notificationIconSize:l,colorText:s,motionDurationMid:c,fontSizeLG:u,lineHeightLG:d,marginSM:f,marginXS:p,paddingLG:h,notificationPaddingVertical:m,notificationPaddingHorizontal:g,notificationCloseButtonSize:b,colorIcon:v,borderRadiusSM:y,colorIconHover:$,colorBgTextHover:x,colorBgTextActive:w}=e,E=`${t}-notice`;return{...G(e,{width:i,iconFontSize:l,titleFontSize:u,titleLineHeight:d,contentStyle:{alignItems:"flex-start",gap:f},typeStyle:!0}),[`${E}-section`]:{display:"flex",flexDirection:"column",flex:"auto",gap:p,minWidth:0},[`${E}-description`]:{color:s,fontSize:o},[`${E}-closable`]:{[`${E}-title, ${E}-description`]:{paddingInlineEnd:h},[`${E}-title + ${E}-description`]:{paddingInlineEnd:0}},[`${E}-close`]:{position:"absolute",top:m,insetInlineEnd:g,display:"flex",alignItems:"center",justifyContent:"center",width:b,height:b,color:v,background:"none",border:"none",borderRadius:y,outline:"none",transition:["color","background-color"].map(e=>`${e} ${c}`).join(", "),"&:hover":{color:$,backgroundColor:x},"&:active":{backgroundColor:w},...(0,K.K8)(e)},[`${E}-progress`]:{position:"absolute",bottom:0,display:"block",appearance:"none",inlineSize:`calc(100% - ${(0,O.zA)(a)} * 2)`,blockSize:n,border:0,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:r},"&::-webkit-progress-value":{borderRadius:a,background:r}},[`${E}-actions`]:{float:"right",marginTop:f}}};var Y=e=>{let{componentCls:t}=e;return{[t]:U(e)}};let Q=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Z=e=>{let t=e?.x??"0",r=e?.y??"0";return`translate3d(${t}, ${r}, 0) scale(var(--notification-scale, 1))`},J=e=>(0,O.zA)(e.calc(e.marginXXL).mul(-1).equal()),ee=e=>({zIndexPopup:e.zIndexPopupBase+1e3+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),et=e=>{let t=e.paddingMD,r=e.paddingLG;return(0,V.oX)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:r,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${(0,O.zA)(e.paddingMD)} ${(0,O.zA)(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})};(0,X.bf)(["Notification","PurePanel"],e=>(e=>{let{componentCls:t,width:r}=e,n=`${t}-notice`,o=`${n}-actions`,a=U(e);return{[`${n}-pure-panel`]:{width:r,maxWidth:"100%",...a,[n]:{...a[n],position:"relative",width:"100%",maxWidth:"100%"},[o]:{...a[o],float:"none",textAlign:"end"}}}})(et(e)),ee);let er=(e,t)=>{let r=t.itemStyle??Y;return[((e,t)=>{let r,{componentCls:n,notificationMarginEdge:o}=e,a="--notification-margin-edge",i=`${n}-notice`,l=`${n}-list`,s=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(o).mul(2)).equal():"100%",c=t.stackVisibleCount??3,u=`${i}:nth-last-child(n + ${c+1})`,d=(r=(0,O.zA)(e.calc(e.marginXXL).mul(-1).equal()),`inset(${r} ${r} ${r} ${r})`);return{[n]:{...(0,K.dF)(e),[a]:(0,O.zA)(o),position:"fixed",zIndex:e.zIndexPopup,width:s,maxWidth:"100vw",height:"100vh",overflow:"hidden",overscrollBehavior:"contain",[`${n}-hook-holder`]:{position:"relative"},[`&${l}`]:{maxHeight:"100vh",padding:`var(${a})`,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain",scrollbarWidth:"none",msOverflowStyle:"none",pointerEvents:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}},...(e=>{let{componentCls:t,motionDurationMid:r,motionDurationSlow:n,motionEaseInOut:o}=e,a=`${t}-list`,i=`${a}-content`;return{[i]:{position:"relative",display:"flex",flexShrink:0,flexDirection:"column",gap:e.notificationMarginBottom,width:"100%",willChange:"height, transform",transition:"none",[`&${i}-decrease`]:{transition:`height calc(${n} * 2) ${o} ${r}`}},[`${t}-fade`]:{backfaceVisibility:"hidden",willChange:"transform, opacity"}}})(e),[`&${n}-stack`]:{[i]:{clipPath:d},[`&:not(${n}-stack-expanded)`]:{[i]:{"--notification-scale":"calc(1 - min(var(--notification-index, 0), 2) * 0.06)"},[`${i}:not(${i}-stack-in-threshold)`]:{opacity:0,pointerEvents:"none"},[u]:{opacity:0,pointerEvents:"none"}}},"&-rtl":{direction:"rtl",[`${i}-actions`]:{float:"left"}}}}})(e,t),r(e),(e=>{let{componentCls:t}=e;return{[t]:((e,t=Q)=>{let{notificationMotionOffset:r}=e,n=(0,O.zA)(r);return{...t.reduce((t,r)=>({...t,...((e,t)=>{let r,n,o,{componentCls:a}=e,{placement:i,vertical:l,blockEnd:s,horizontal:c,inlineEnd:u,isCenterPlacement:d}=t,f=`${a}-notice`,p=`${f}${a}-fade`,h=Z(t.motionOffset),m=Z(t.baseMotionOffset);return{[`&${a}-${i}`]:{[l]:(r="var(--notification-margin-edge, 0px)",`calc(var(--notification-${l}, ${r}) - ${r})`),[s]:"auto",display:"flex",flexDirection:"bottom"===l?"column-reverse":"column",...d?{marginInline:0,left:"50%",right:"auto",transform:"translateX(-50%)"}:{[c]:0,[u]:"auto"},[f]:{[l]:"var(--notification-y, 0)",...d?{left:"50%",transform:m}:{[c]:"var(--notification-x, 0)"},transformOrigin:"bottom"===l?"center top":"center bottom"},[`${p}-appear-prepare, ${p}-enter-prepare`]:{opacity:0,transform:h,transition:"none"},[`${p}-appear-start, ${p}-enter-start`]:{opacity:0,transform:h},[`${p}-appear-active, ${p}-enter-active`]:{opacity:1,transform:m},[`${p}-leave-start`]:{opacity:1,transform:m},[`${p}-leave-active`]:{opacity:0,transform:h},[`&${a}-stack:not(${a}-stack-expanded)`]:{[f]:{clipPath:(n=J(e),"bottom"===l?`inset(${n} ${n} 50% ${n})`:`inset(50% ${n} ${n} ${n})`)},[`${f}[data-notification-index='0']`]:{clipPath:(o=J(e),`inset(${o} ${o} ${o} ${o})`)}}}}})(e,((e,t)=>{let r=e.startsWith("bottom")?"bottom":"top",n=e.endsWith("Right")?"right":"left",{blockEnd:o,inlineEnd:a}={blockEnd:"top"===r?"bottom":"top",inlineEnd:"left"===n?"right":"left"},i="top"===e||"bottom"===e,l="top"===e||e.endsWith("Left")?`-${t}`:t;return{placement:e,vertical:r,blockEnd:o,horizontal:n,inlineEnd:a,motionOffset:i?{x:"-50%",y:l}:{x:l},baseMotionOffset:i?{x:"-50%"}:void 0,isCenterPlacement:i}})(r,n))}),{})}})(e)}})(e)]};var en=(0,X.OF)("Notification",e=>er(et(e),{listWidthKey:"width"}),ee);let eo=e=>{let t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),r=e.paddingSM;return(0,V.oX)(et(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:r})},ea=e=>({zIndexPopup:e.zIndexPopupBase+1e3+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),ei=e=>{let{fontSize:t,fontSizeLG:r,lineHeight:n}=e;return G(e,{width:"max-content",iconFontSize:r,titleFontSize:t,titleLineHeight:n,contentStyle:{alignItems:"center",gap:e.marginXS},noticeStyle:{zIndex:1}})};(0,X.bf)(["Message","PurePanel"],e=>(e=>{let{componentCls:t}=e,r=`${t}-notice`,n=ei(e);return{[`${r}-pure-panel`]:{width:"max-content",maxWidth:"100%",...n,[r]:{...n[r],position:"relative",width:"max-content",maxWidth:"100%"}}}})(eo(e)),ea);let el=e=>({[e.componentCls]:ei(e)});var es=(0,X.OF)("Message",e=>{let t=eo(e);return[er(t,{stackVisibleCount:1,itemStyle:el}),(e=>{let{componentCls:t}=e,r=`${t}-notice`,n=`${t}-list-content`,{"&::after":o,...a}=ei(e)[r],i={...a,position:"absolute",zIndex:-1,left:"50%",height:e.calc(e.marginXS).mul(2).equal(),padding:0,boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none",transform:"translateX(-50%) translateY(100%)",transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}, transform ${e.motionDurationFast} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,content:'""'};return{[t]:{[`&${t}-stack`]:{[n]:{isolation:"isolate","&::before":{...i,top:`calc(var(--top-notificiation-height) - ${(0,O.zA)(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${(0,O.zA)(e.margin)})`},"&::after":{...i,zIndex:-2,top:"var(--top-notificiation-height)",width:`calc(var(--top-notificiation-width) - ${(0,O.zA)(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[n]:{"&::before, &::after":{opacity:1,transform:"translateX(-50%) translateY(0)"}}}}}}})(t)]},ea);let ec=({children:e,prefixCls:t})=>{let r=(0,M.A)(t),[n,i]=es(t,r);return o.createElement(m,{classNames:{list:(0,a.$)(n,i,r)}},e)},eu=(e,{prefixCls:t,key:r})=>o.createElement(ec,{prefixCls:t,key:r},e),ed=o.forwardRef((e,t)=>{let{top:r,prefixCls:n,getContainer:i,maxCount:s,duration:c=3,rtl:u,classNames:d,styles:f,transitionName:p,pauseOnHover:h=!0,stack:m,onAllRemoved:g}=e,{getPrefixCls:b,direction:v,getPopupContainer:y}=(0,l.TP)("message"),{message:$}=o.useContext(l.QO),x=n||b("message"),[w,E]=(0,S.AV)([$?.classNames,d],[$?.styles,f],{props:e}),[C,A]=k({prefixCls:x,style:()=>I(r??8),className:()=>(0,a.$)({[`${x}-rtl`]:u??"rtl"===v}),motion:()=>({motionName:p??`${x}-fade`}),closable:!1,duration:c,getContainer:()=>i?.()||y?.()||document.body,maxCount:s,onAllRemoved:g,classNames:w,styles:E,renderNotifications:eu,pauseOnHover:h,stack:N(m,!1)});return o.useImperativeHandle(t,()=>({...C,prefixCls:x,message:$})),A}),ef=0;var ep=r(5142);function eh(e){return{...e,type:"warning"}}function em(e){return{...e,type:"info"}}function eg(e){return{...e,type:"success"}}function eb(e){return{...e,type:"error"}}function ev(e){return{...e,type:"confirm"}}var ey=[],e$=r(6615),ex=r(2564),ew=r(2661);let eE=(e,t)=>{let r={};return(0,A.Qd)(e)&&(r=e),"boolean"==typeof e&&(r={enabled:e}),void 0===r.closable&&void 0!==t&&(r.closable=t),r};var eC=r(568),ek=r(3692),eS=r(8156),eA=r(6094),eM=r(558),eN=e=>{let{type:t,children:r,prefixCls:n,buttonProps:a,close:i,autoFocus:l,emitEvent:c,isSilent:u,quitOnNullishReturnValue:d,actionFn:f}=e,p=o.useRef(!1),h=o.useRef(null),[m,g]=(0,s.J0)(!1),b=(...e)=>{i?.(...e)};return o.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{h.current?.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[l]),o.createElement(eA.A,{...(0,eM.DU)(t),onClick:e=>{let t;if(!p.current){var r;if(p.current=!0,!f)return void b();if(c){if(t=f(e),d&&!(0,A.Qg)(t)){p.current=!1,b(e);return}}else if(f.length)t=f(i),p.current=!1;else if(t=f(),!(0,A.Qg)(t))return void b();r=t,(0,A.Qg)(r)&&(g(!0),r.then((...e)=>{g(!1,!0),b.apply(void 0,e),p.current=!1},e=>{if(g(!1,!0),p.current=!1,!u?.())return Promise.reject(e)}))}},loading:m,prefixCls:n,...a,ref:h},r)};let eO=o.createContext({}),{Provider:eI}=eO;var eP=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:r,isSilent:n,mergedOkCancel:a,rootPrefixCls:i,close:l,onCancel:s,onConfirm:c,onClose:u}=(0,o.useContext)(eO);return a?o.createElement(eN,{isSilent:n,actionFn:s,close:(...e)=>{l?.(...e),c?.(!1),u?.()},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${i}-btn`},r):null},eR=()=>{let{autoFocusButton:e,close:t,isSilent:r,okButtonProps:n,rootPrefixCls:a,okTextLocale:i,okType:l,onConfirm:s,onOk:c,onClose:u}=(0,o.useContext)(eO);return o.createElement(eN,{isSilent:r,type:l||"primary",actionFn:c,close:(...e)=>{t?.(...e),s?.(!0),u?.()},autoFocus:"ok"===e,buttonProps:n,prefixCls:`${a}-btn`},i)},ez=r(197),eT=r(1684);let eB=o.createContext({});function eD(e,t,r){let n=t;return!n&&r&&(n=`${e}-${r}`),n}function eF(e,t){let r=e[`page${t?"Y":"X"}Offset`],n=`scroll${t?"Top":"Left"}`;if("number"!=typeof r){let t=e.document;"number"!=typeof(r=t.documentElement[n])&&(r=t.body[n])}return r}var eL=o.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function eH(){return(eH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let ej=o.forwardRef((e,t)=>{let{prefixCls:r,className:n,style:i,title:l,ariaId:c,footer:u,closable:d,closeIcon:f,onClose:p,children:h,bodyStyle:m,bodyProps:g,modalRender:b,onMouseDown:v,onMouseUp:y,holderRef:$,visible:x,forceRender:w,width:E,height:C,classNames:k,styles:S,isFixedPos:A,focusTrap:M}=e,{panel:N}=o.useContext(eB),O=(0,o.useRef)(null),I=(0,s.xK)($,N,O),[P]=(0,s.T$)(x&&A&&!1!==M,()=>O.current);o.useImperativeHandle(t,()=>({focus:()=>{O.current?.focus({preventScroll:!0})}}));let R={};void 0!==E&&(R.width=E),void 0!==C&&(R.height=C);let z=u?o.createElement("div",{className:(0,a.$)(`${r}-footer`,k?.footer),style:{...S?.footer}},u):null,T=l?o.createElement("div",{className:(0,a.$)(`${r}-header`,k?.header),style:{...S?.header}},o.createElement("div",{className:(0,a.$)(`${r}-title`,k?.title),id:c,style:{...S?.title}},l)):null,B=(0,o.useMemo)(()=>"object"==typeof d&&null!==d?d:d?{closeIcon:f??o.createElement("span",{className:`${r}-close-x`})}:{},[d,f,r]),D=(0,s.KE)(B,!0),F="object"==typeof d&&d.disabled,L=d?o.createElement("button",eH({type:"button",onClick:p,"aria-label":"Close"},D,{className:(0,a.$)(`${r}-close`,k?.close),disabled:F,style:S?.close}),B.closeIcon):null,H=o.createElement("div",{className:(0,a.$)(`${r}-container`,k?.container),style:S?.container},L,T,o.createElement("div",eH({className:(0,a.$)(`${r}-body`,k?.body),style:{...m,...S?.body}},g),h),z);return o.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?c:null,"aria-modal":"true",ref:I,style:{...i,...R},className:(0,a.$)(r,n),onMouseDown:v,onMouseUp:y,tabIndex:-1,onFocus:e=>{P(e.target)}},o.createElement(eL,{shouldUpdate:x||w},b?b(H):H))});function e_(){return(e_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let eW=o.forwardRef((e,t)=>{let{prefixCls:r,title:n,style:i,className:l,visible:s,forceRender:c,destroyOnHidden:d,motionName:f,ariaId:p,onVisibleChanged:h,mousePosition:m}=e,g=(0,o.useRef)(null),b=(0,o.useRef)(null);o.useImperativeHandle(t,()=>({...b.current,inMotion:g.current.inMotion,enableMotion:g.current.enableMotion}));let[v,y]=o.useState(),$={};function x(){var e;let t,r,n,o;if(!g.current?.nativeElement)return;let a=(r={left:(t=(e=g.current.nativeElement).getBoundingClientRect()).left,top:t.top},o=(n=e.ownerDocument).defaultView||n.parentWindow,r.left+=eF(o),r.top+=eF(o,!0),r);y(m&&(m.x||m.y)?`${m.x-a.left}px ${m.y-a.top}px`:"")}return v&&($.transformOrigin=v),o.createElement(u.Ay,{visible:s,onVisibleChanged:h,onAppearPrepare:x,onEnterPrepare:x,forceRender:c,motionName:f,removeOnLeave:d,ref:g},({className:t,style:s},c)=>o.createElement(ej,e_({},e,{ref:b,title:n,ariaId:p,prefixCls:r,holderRef:c,style:{...s,...i,...$},className:(0,a.$)(l,t)})))});function eq(){return(eq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var eK=e=>{let{prefixCls:t,style:r,visible:n,maskProps:i,motionName:l,className:s}=e;return o.createElement(u.Ay,{key:"mask",visible:n,motionName:l,leavedClassName:`${t}-mask-hidden`},({className:e,style:n},l)=>o.createElement("div",eq({ref:l,style:{...n,...r},className:(0,a.$)(`${t}-mask`,e,s)},i)))};function eV(){return(eV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var eX=e=>{let{prefixCls:t="rc-dialog",zIndex:r,visible:n=!1,focusTriggerAfterClose:i=!0,wrapStyle:l,wrapClassName:c,wrapProps:u,onClose:d,afterOpenChange:f,afterClose:p,transitionName:h,animation:m,closable:g=!0,mask:b=!0,maskTransitionName:v,maskAnimation:y,maskClosable:$=!0,maskStyle:x,maskProps:w,rootClassName:E,rootStyle:C,classNames:k,styles:S}=e,A=(0,o.useRef)(null),M=(0,o.useRef)(null),N=(0,o.useRef)(null),[O,I]=o.useState(n),[P,R]=o.useState(!1),z=(0,s.Bi)();function T(){if(I(!1),b&&A.current&&i){try{A.current.focus({preventScroll:!0})}catch(e){}A.current=null}O&&p?.()}function B(e){d?.(e)}let D=(0,o.useRef)(!1),F=null;$&&(F=e=>{M.current===e.target&&D.current&&B(e)}),(0,o.useEffect)(()=>{n?(D.current=!1,I(!0),(0,s.gR)(M.current,document.activeElement)||(A.current=document.activeElement),M.current&&R("fixed"===getComputedStyle(M.current).position)):O&&N.current.enableMotion()&&!N.current.inMotion()&&T()},[n]);let L={zIndex:r,...l,...S?.wrapper,display:O?null:"none"};return o.createElement("div",eV({className:(0,a.$)(`${t}-root`,E),style:C},(0,s.KE)(e,{data:!0})),o.createElement(eK,{prefixCls:t,visible:b&&n,motionName:eD(t,v,y),style:{zIndex:r,...x,...S?.mask},maskProps:w,className:k?.mask}),o.createElement("div",eV({className:(0,a.$)(`${t}-wrap`,c,k?.wrapper),ref:M,onClick:F,onMouseDown:function(e){D.current=e.target===M.current},style:L},u),o.createElement(eW,eV({},e,{isFixedPos:P,ref:N,closable:g,ariaId:z,prefixCls:t,visible:n&&O,onClose:B,onVisibleChanged:function(e){e?(0,s.gR)(M.current,document.activeElement)||N.current?.focus():T(),f?.(e)},motionName:eD(t,h,m)}))))};function eG(){return(eG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var eU=e=>{let{visible:t,getContainer:r,forceRender:n,destroyOnHidden:a=!1,afterClose:i,closable:l,panelRef:s,keyboard:c=!0,scrollLock:u=!0,onClose:d}=e,{scrollLock:f,...p}=e,[h,m]=o.useState(t),g=o.useMemo(()=>({panel:s}),[s]);return(o.useEffect(()=>{t&&m(!0)},[t]),n||!a||h)?o.createElement(eB.Provider,{value:g},o.createElement(eT.A,{open:t||n||h,onEsc:({top:e,event:t})=>{if(e&&c){t.stopPropagation(),d?.(t);return}},autoDestroy:!1,getContainer:r,autoLock:u&&(t||h)},o.createElement(eX,eG({},p,{destroyOnHidden:a,afterClose:()=>{let{afterClose:e}=(l&&"object"==typeof l?l:{})||{};e?.(),i?.(),m(!1)}})))):null},eY=r(6192),eQ=r(3661),eZ=r(7874),eJ=r(9809),e0=r(854);function e1(){}let e2=o.createContext({add:e1,remove:e1});var e5=r(8306),e4=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:r}=(0,o.useContext)(eO);return o.createElement(eA.A,{onClick:r,...e},t)},e6=()=>{let{confirmLoading:e,okButtonProps:t,okType:r,okTextLocale:n,onOk:a}=(0,o.useContext)(eO);return o.createElement(eA.A,{...(0,eM.DU)(r),loading:e,onClick:a,...t},n)},e8=r(5436);let e3=e=>{let t,{okText:r,okType:n="primary",cancelText:a,confirmLoading:i,onOk:l,onCancel:s,okButtonProps:c,cancelButtonProps:u,footer:d}=e,[f]=(0,ex.A)("Modal",(0,e8.l)()),p=r||f?.okText,h=a||f?.cancelText,m=o.useMemo(()=>({confirmLoading:i,okButtonProps:c,cancelButtonProps:u,okTextLocale:p,cancelTextLocale:h,okType:n,onOk:l,onCancel:s}),[i,c,u,p,h,n,l,s]);return(0,A.Tn)(d)||void 0===d?(t=o.createElement(o.Fragment,null,o.createElement(e4,null),o.createElement(e6,null)),(0,A.Tn)(d)&&(t=d(t,{OkBtn:e6,CancelBtn:e4})),t=o.createElement(eI,{value:m},t)):t=d,o.createElement(e5.X,{disabled:!1},t)},e9=(e,t)=>((e,t)=>{let{componentCls:r,gridColumns:n,antCls:o}=e,[a,i]=(0,X.PN)(o,"grid"),[,l]=(0,X.PN)(o,"col"),s={};for(let e=n;e>=0;e--)0===e?(s[`${r}${t}-${e}`]={display:"none"},s[`${r}-push-${e}`]={insetInlineStart:"auto"},s[`${r}-pull-${e}`]={insetInlineEnd:"auto"},s[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},s[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},s[`${r}${t}-offset-${e}`]={marginInlineStart:0},s[`${r}${t}-order-${e}`]={order:0}):(s[`${r}${t}-${e}`]=[{[a("display")]:"block",display:"block"},{display:i("display"),flex:`0 0 ${e/n*100}%`,maxWidth:`${e/n*100}%`}],s[`${r}${t}-push-${e}`]={insetInlineStart:`${e/n*100}%`},s[`${r}${t}-pull-${e}`]={insetInlineEnd:`${e/n*100}%`},s[`${r}${t}-offset-${e}`]={marginInlineStart:`${e/n*100}%`},s[`${r}${t}-order-${e}`]={order:e});return s[`${r}${t}-flex`]={flex:l(`${t.replace(/-/,"")}-flex`)},s})(e,t);(0,X.OF)("Grid",e=>{let{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({}));let e7=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin});(0,X.OF)("Grid",e=>{let t=(0,V.oX)(e,{gridColumns:24}),r=e7(t);return delete r.xs,[(e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}})(t),e9(t,""),e9(t,"-xs"),Object.keys(r).map(e=>{let n,o;return n=r[e],o=`-${e}`,{[`@media (min-width: ${(0,O.zA)(n)})`]:{...e9(t,o)}}}).reduce((e,t)=>({...e,...t}),{})]},()=>({}));var te=r(7521),tt=r(7968);function tr(e){return{position:e,inset:0}}let tn=e=>{let t=e.padding,r=e.fontSizeHeading5,n=e.lineHeightHeading5;return(0,V.oX)(e,{modalHeaderHeight:e.calc(e.calc(n).mul(r).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},to=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${(0,O.zA)(e.paddingMD)} ${(0,O.zA)(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${(0,O.zA)(e.padding)} ${(0,O.zA)(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${(0,O.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${(0,O.zA)(e.paddingXS)} ${(0,O.zA)(e.padding)}`:0,footerBorderTop:e.wireframe?`${(0,O.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,O.zA)(e.borderRadiusLG)} ${(0,O.zA)(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,O.zA)(2*e.padding)} ${(0,O.zA)(2*e.padding)} ${(0,O.zA)(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0});var ta=(0,X.OF)("Modal",e=>{let t=tn(e);return[(e=>{let{componentCls:t,motionDurationMid:r}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,O.zA)(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...(0,K.dF)(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,O.zA)(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...(0,K.jk)(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:["color","background-color"].map(e=>`${e} ${r}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:(0,O.zA)(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...(0,K.K8)(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${(0,O.zA)(e.borderRadiusLG)} ${(0,O.zA)(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${(0,O.zA)(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-container,
|
|
90
|
+
${t}-body,
|
|
91
|
+
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]})(t),(e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}})(t),(e=>{let{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...tr("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...tr("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:(0,te.p9)(e)}]})(t),(0,tt.aB)(t,"zoom"),(e=>{let{componentCls:t}=e,r=e7(e),n={...r};delete n.xs;let o=`--${t.replace(".","")}-`,a=Object.keys(n).map(e=>({[`@media (min-width: ${(0,O.zA)(n[e])})`]:{width:`var(${o}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat((0,ep.A)(Object.keys(r).map((e,t)=>{let n=Object.keys(r)[t-1];return n?{[`${o}${e}-width`]:`var(${o}${n}-width)`}:null})),[{width:`var(${o}xs-width)`}],(0,ep.A)(a))}}})(t)]},to,{unitless:{titleLineHeight:!0}});(0,s.OC)()&&window.document.documentElement&&document.documentElement.addEventListener("click",e=>{n={x:e.pageX,y:e.pageY},setTimeout(()=>{n=null},100)},!0);var ti=e=>{var t,r;let i,c,{prefixCls:u,className:d,rootClassName:f,open:p,wrapClassName:h,centered:m,getContainer:g,style:b,width:v=520,footer:y,classNames:$,styles:x,children:w,loading:E,confirmLoading:C,zIndex:k,mousePosition:N,onOk:O,onCancel:I,okButtonProps:P,cancelButtonProps:R,destroyOnHidden:z,destroyOnClose:T,panelRef:B=null,closable:D,mask:F,modalRender:L,maskClosable:H,_semanticOmit:j,scrollLock:_,focusTriggerAfterClose:W,focusable:q,_renderSemanticContent:K,...V}=e,{getPopupContainer:X,getPrefixCls:G,direction:U,className:Y,style:Q,classNames:Z,styles:J,centered:ee,cancelButtonProps:et,okButtonProps:er,mask:en,focusable:eo}=(0,l.TP)("modal"),{modal:ea}=o.useContext(l.QO),[ei,el]=o.useMemo(()=>"boolean"==typeof D?[void 0,void 0]:[D?.afterClose,D?.onClose],[D]),es=G("modal",u),ec=G(),[eu,ed,ef]=(0,o.useMemo)(()=>{let e=eE(F,H),t=eE(en),r={blur:!1,...t,...e,closable:e.closable??H??t.closable??!0},n=r.blur?`${es}-mask-blur`:void 0;return[!1!==r.enabled,{mask:n},!!r.closable]},[F,en,es,H]),ep=(t={...eo,...q},(0,o.useMemo)(()=>({trap:eu??!0,focusTriggerAfterClose:W??!0,...t}),[t,eu,W])),eh=e=>{C||(I?.(e),el?.())},em=(0,M.A)(es),[eg,eb]=ta(es,em),ev=(0,a.$)(h,{[`${es}-centered`]:m??ee,[`${es}-wrap-rtl`]:"rtl"===U}),ey=null===y||E?null:o.createElement(e3,{...e,okButtonProps:{...er,...P},onOk:e=>{O?.(e),el?.()},cancelButtonProps:{...et,...R},onCancel:eh}),[e$,ex,ew,ek]=(0,eQ.$Z)((0,eQ.dG)(e),(0,eQ.dG)(ea),{closable:!0,closeIcon:o.createElement(ez.A,{className:`${es}-close-icon`}),closeIconRender:e=>o.createElement("span",{className:`${es}-close-x`},e||o.createElement(ez.A,{className:`${es}-close-icon`}))}),eS=!!e$&&{disabled:ew,closeIcon:ex,afterClose:ei,...ek},eA=L?e=>o.createElement("div",{className:`${es}-render`},L(e)):void 0,eM=(r=`.${es}-${L?"render":"container"}`,i=o.useContext(e2),c=o.useRef(null),(0,s._q)(e=>{if(e){let t=r?e.querySelector(r):e;t&&(i.add(t),c.current=t)}else i.remove(c.current)})),eN=(0,s.K4)(B,eM),[eO,eI]=(0,eZ.YK)("Modal",k),eP={...e,width:v,panelRef:B,focusTriggerAfterClose:ep.focusTriggerAfterClose,focusable:ep,mask:eu,maskClosable:ef,zIndex:eO},[eR,eT]=(0,S.AV)([Z,$,ed],[J,x],{props:eP}),eB=j?(0,s.cJ)(eR,j):eR,eD=j?(0,s.cJ)(eT,j):eT,eF=K?K({classNames:eR,styles:eT}):w,[eL,eH]=o.useMemo(()=>(0,A.Qd)(v)?[void 0,v]:[v,void 0],[v]),ej=o.useMemo(()=>{let e={};return eH&&Object.keys(eH).forEach(t=>{let r=eH[t];(0,A.R)(r)&&(e[`--${es}-${t}-width`]=(0,A.Et)(r)?`${r}px`:r)}),e},[es,eH]);return o.createElement(eY.A,{form:!0,space:!0},o.createElement(eJ.A.Provider,{value:eI},o.createElement(eU,{width:eL,...V,zIndex:eO,getContainer:void 0===g?X:g,prefixCls:es,rootClassName:(0,a.$)(eg,f,eb,em,eB.root),rootStyle:eD.root,footer:ey,visible:p,mousePosition:N??n,onClose:eh,closable:eS,closeIcon:ex,transitionName:(0,eC.b)(ec,"zoom",e.transitionName),maskTransitionName:(0,eC.b)(ec,"fade",e.maskTransitionName),mask:eu,maskClosable:ef,scrollLock:_,className:(0,a.$)(eg,d,Y),style:{...Q,...b,...ej},classNames:{...eB,wrapper:(0,a.$)(eB.wrapper,ev)},styles:eD,panelRef:eN,destroyOnHidden:z??T,modalRender:eA,focusTriggerAfterClose:ep.focusTriggerAfterClose,focusTrap:ep.trap},E?o.createElement(e0.A,{active:!0,title:!1,paragraph:{rows:4},className:`${es}-body-skeleton`}):eF)))},tl=(0,X.bf)(["Modal","confirm"],e=>(e=>{let{componentCls:t,titleFontSize:r,titleLineHeight:n,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:{...(0,K.t6)()},[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${(0,O.zA)(e.marginSM)})`},[`${u}-body-no-icon ${u}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${(0,O.zA)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:r,lineHeight:n},[`${u}-container`]:{color:e.colorText,fontSize:a,lineHeight:i},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
|
|
92
|
+
${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}})(tn(e)),to,{order:-1e3});let ts=["body"],tc=e=>{let{prefixCls:t,icon:r,okText:n,cancelText:i,confirmPrefixCls:s,type:c,okCancel:u,footer:d,locale:f,autoFocusButton:p,focusable:h,contentClassName:m,contentStyle:g,...b}=e,{infoIcon:v,successIcon:y,errorIcon:$,warningIcon:x}=(0,l.TP)("modal"),w=r;if(void 0===r)switch(c){case"info":w=(0,ew.A)(v,o.createElement(_,null));break;case"success":w=(0,ew.A)(y,o.createElement(T,null));break;case"error":w=(0,ew.A)($,o.createElement(B.A,null));break;default:w=(0,ew.A)(x,o.createElement(L,null))}let E=u??"confirm"===c,C=o.useMemo(()=>{let e=h?.autoFocusButton||p;return e||null===e?e:"ok"},[p,h?.autoFocusButton]),[k]=(0,ex.A)("Modal"),S=f||k,M=n||(E?S?.okText:S?.justOkText),N=i||S?.cancelText,{closable:O}=b,{onClose:I}=(0,A.Qd)(O)?O:{},P=o.useMemo(()=>({autoFocusButton:C,cancelTextLocale:N,okTextLocale:M,mergedOkCancel:E,onClose:I,...b}),[C,N,M,E,I,b]),R=o.createElement(o.Fragment,null,o.createElement(eP,null),o.createElement(eR,null)),z=(0,A.AZ)(e.title),D=(0,A.AZ)(w),F=`${s}-body`;return o.createElement("div",{className:`${s}-body-wrapper`},o.createElement("div",{className:(0,a.$)(F,{[`${F}-has-title`]:z,[`${F}-no-icon`]:!D})},w,o.createElement("div",{className:`${s}-paragraph`},z&&o.createElement("span",{className:`${s}-title`},e.title),o.createElement("div",{className:(0,a.$)(`${s}-content`,m),style:g},e.content))),void 0===d||(0,A.Tn)(d)?o.createElement(eI,{value:P},o.createElement("div",{className:`${s}-btns`},(0,A.Tn)(d)?d(R,{OkBtn:eR,CancelBtn:eP}):R)):d,o.createElement(tl,{prefixCls:t}))},tu=e=>{let{close:t,zIndex:r,maskStyle:n,direction:i,prefixCls:c,wrapClassName:u,rootPrefixCls:d,bodyStyle:f,closable:p=!1,onConfirm:h,styles:m,title:g,mask:b,maskClosable:v,okButtonProps:y,cancelButtonProps:$}=e,{cancelButtonProps:x,okButtonProps:w}=(0,l.TP)("modal"),E=`${c}-confirm`,C=e.width||416,k=e.style||{},S=(0,A.Tn)(m)?e=>({body:f,mask:n,...m(e)}):{body:f,mask:n,...m},M=(0,s.cJ)(e,["bodyStyle","maskStyle"]),N=(0,a.$)(E,`${E}-${e.type}`,{[`${E}-rtl`]:"rtl"===i},e.className),O=o.useMemo(()=>{let e=eE(b,v);return e.closable??(e.closable=!1),e},[b,v]),[,I]=(0,eS.Ay)(),P=o.useMemo(()=>void 0!==r?r:I.zIndexPopupBase+1e3,[r,I]);return o.createElement(ti,{...M,className:N,wrapClassName:(0,a.$)({[`${E}-centered`]:!!e.centered},u),onCancel:()=>{t?.({triggerCancel:!0}),h?.(!1)},title:g,footer:null,transitionName:(0,eC.b)(d||"","zoom",e.transitionName),maskTransitionName:(0,eC.b)(d||"","fade",e.maskTransitionName),mask:O,style:k,styles:S,width:C,zIndex:P,closable:p,_semanticOmit:ts,_renderSemanticContent:({classNames:t,styles:r})=>o.createElement(tc,{...e,confirmPrefixCls:E,okButtonProps:{...w,...y},cancelButtonProps:{...x,...$},contentClassName:t.body,contentStyle:r.body})})};var td=e=>{let{rootPrefixCls:t,iconPrefixCls:r,direction:n,theme:a}=e;return o.createElement(ek.Ay,{prefixCls:t,iconPrefixCls:r,direction:n,theme:a},o.createElement(tu,{...e}))};let tf=o.forwardRef((e,t)=>{let{afterClose:r,config:n,...a}=e,[i,s]=o.useState(!0),[c,u]=o.useState(n),{direction:d,getPrefixCls:f}=o.useContext(l.QO),p=f("modal"),h=f(),m=(...e)=>{s(!1),e.some(e=>e?.triggerCancel)&&c.onCancel?.(()=>{},...e.slice(1))};o.useImperativeHandle(t,()=>({destroy:m,update:e=>{u(t=>{let r=(0,A.Tn)(e)?e(t):e;return{...t,...r}})}}));let g=c.okCancel??"confirm"===c.type,[b]=(0,ex.A)("Modal",e$.A.Modal);return o.createElement(td,{prefixCls:p,rootPrefixCls:h,...c,close:m,open:i,afterClose:()=>{r(),c.afterClose?.()},okText:c.okText||(g?b?.okText:b?.justOkText),direction:c.direction||d,cancelText:c.cancelText||b?.cancelText,...a})}),tp=0,th=o.memo(o.forwardRef((e,t)=>{let[r,n]=(()=>{let[e,t]=o.useState([]);return[e,o.useCallback(e=>(t(t=>[].concat((0,ep.A)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]})();return o.useImperativeHandle(t,()=>({patchElement:n}),[n]),o.createElement(o.Fragment,null,r)}));var tm=function(){let e=o.useRef(null),[t,r]=o.useState([]);o.useEffect(()=>{t.length&&((0,ep.A)(t).forEach(e=>{e()}),r([]))},[t]);let n=o.useCallback(t=>function(n){let a,i;tp+=1;let l=o.createRef(),s=new Promise(e=>{a=e}),c=!1,u=o.createElement(tf,{key:`modal-${tp}`,config:t(n),ref:l,afterClose:()=>{i?.()},isSilent:()=>c,onConfirm:e=>{a(e)}});return(i=e.current?.patchElement(u))&&ey.push(i),{destroy:()=>{function e(){l.current?.destroy()}l.current?e():r(t=>[].concat((0,ep.A)(t),[e]))},update:e=>{function t(){l.current?.update(e)}l.current?t():r(e=>[].concat((0,ep.A)(e),[t]))},then:e=>(c=!0,s.then(e))}},[]);return[o.useMemo(()=>({info:n(em),success:n(eg),error:n(eb),warning:n(eh),confirm:n(ev)}),[n]),o.createElement(th,{key:"modal-holder",ref:e})]};let tg={info:o.createElement(_,null),success:o.createElement(T,null),error:o.createElement(B.A,null),warning:o.createElement(L,null),loading:o.createElement(W.A,null)};function tb(e,t){return null===t||!1===t?null:t||o.createElement(ez.A,{className:`${e}-close-icon`})}let tv={offset:8},ty=({children:e,prefixCls:t})=>{let r=(0,M.A)(t),[n,i]=en(t,r);return o.createElement(m,{classNames:{list:(0,a.$)(n,i,r)}},e)},t$=(e,{prefixCls:t,key:r})=>o.createElement(ty,{prefixCls:t,key:r},e),tx=o.forwardRef((e,t)=>{let{top:r,bottom:n,prefixCls:i,getContainer:s,maxCount:c,rtl:u,onAllRemoved:d,stack:f,duration:p=4.5,pauseOnHover:h=!0,showProgress:m}=e,{getPrefixCls:g,getPopupContainer:b,direction:v}=(0,l.TP)("notification"),{notification:y}=(0,o.useContext)(l.QO),$=i||g("notification"),x=(0,o.useMemo)(()=>!!(0,A.Et)(p)&&p>0&&p,[p]),[w,E]=(0,S.AV)([y?.classNames,e?.classNames],[y?.styles,e?.styles],{props:e}),C=N(f,tv),[M,O]=k({prefixCls:$,style:()=>I(r,n),className:()=>(0,a.$)({[`${$}-rtl`]:u??"rtl"===v}),motion:()=>({motionName:`${$}-fade`}),closable:{closeIcon:tb($)},duration:x,getContainer:()=>s?.()||b?.()||document.body,maxCount:c,pauseOnHover:h,showProgress:m,classNames:w,styles:E,onAllRemoved:d,renderNotifications:t$,stack:C});return o.useImperativeHandle(t,()=>({...M,prefixCls:$,notification:y})),O}),tw=o.createContext({}),tE=o.createContext({message:{},notification:{},modal:{}});var tC=(0,X.OF)("App",e=>{let{componentCls:t,colorText:r,fontSize:n,lineHeight:o,fontFamily:a}=e;return{[t]:{color:r,fontSize:n,lineHeight:o,fontFamily:a,[`&${t}-rtl`]:{direction:"rtl"}}}},()=>({}));let tk=o.forwardRef((e,t)=>{var r;let n,{prefixCls:s,children:c,className:u,rootClassName:d,message:f,notification:p,style:h,component:m="div"}=e,{direction:g,getPrefixCls:b,className:v,style:y}=(0,l.TP)("app"),$=b("app",s),[x,w]=tC($),E=(0,a.$)(x,$,u,d,w,{[`${$}-rtl`]:"rtl"===g}),C=(0,o.useContext)(tw),k=o.useMemo(()=>({message:{...C.message,...f},notification:{...C.notification,...p}}),[f,p,C.message,C.notification]),[M,N]=(r=k.message,n=o.useRef(null),(0,i.rJ)("Message"),[o.useMemo(()=>{let e=e=>{n.current?.close(e)},t=t=>{var o;let i,l,s;if(!n.current){let e=()=>{};return e.then=()=>{},e}let{open:c,prefixCls:u,message:d}=n.current,f=d?.className||{},p=d?.style||{},h=`${u}-notice`,{content:m,icon:g,type:b,key:v,className:y,style:$,onClose:x,classNames:w={},styles:E={},...C}=t,k=v;(0,A.R)(k)||(ef+=1,k=`antd-message-${ef}`);let M={...r,...t},N=(0,S.Jb)(w,{props:M}),O=(0,S.Jb)(E,{props:M}),I=g||b&&q[b]||null,P=b?`${h}-icon-${b}`:void 0;return o=t=>(c({...C,key:k,icon:I,title:m,classNames:{...N,wrapper:(0,a.$)(b&&`${u}-${b}`,N?.wrapper),icon:(0,a.$)(P,N?.icon)},styles:O,placement:"top",className:(0,a.$)({[`${h}-${b}`]:b},y,f),style:{...p,...$},onClose:()=>{x?.(),t()}}),()=>{e(k)}),l=new Promise(e=>{i=o(()=>{e(!0)})}),(s=()=>{i?.()}).then=(e,t)=>l.then(e,t),s.promise=l,s},o={open:t,destroy:t=>{void 0!==t?e(t):n.current?.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{o[e]=(r,n,o)=>{let a,i,l;return a=(0,A.Qd)(r)&&"content"in r?r:{content:r},(0,A.Tn)(n)?l=n:(i=n,l=o),t({onClose:l,duration:i,...a,type:e})}}),o},[]),o.createElement(ed,{key:"message-holder",...r,ref:n})]),[O,I]=function(e){let t=o.useRef(null);(0,i.rJ)("Notification");let{notification:r}=o.useContext(l.QO);return[o.useMemo(()=>{let n=n=>{if(!t.current)return;let{open:o,prefixCls:i,notification:l}=t.current,s=l?.className||{},c=l?.style||{},u=`${i}-notice`,{title:d,message:f,description:p,icon:h,type:m,btn:g,actions:b,className:v,style:y,role:$="alert",closeIcon:x,closable:w,classNames:E={},styles:C={},...k}=n,M=d??f,N=(0,A.AZ)(M),O=tb(u,void 0!==x?x:void 0!==e?.closeIcon?e.closeIcon:l?.closeIcon),[I,P,,R]=(0,eQ.b8)((0,eQ.dG)({...e||{},...n}),(0,eQ.dG)(r),{closable:!0,closeIcon:O}),z=!!I&&{onClose:(0,A.Qd)(w)?w.onClose:void 0,closeIcon:P,...R},T=(0,S.Jb)(E,{props:n}),B=(0,S.Jb)(C,{props:n}),D=h||(m?tg[m]:null),F=!h&&m?`${u}-icon-${m}`:void 0;return o({placement:e?.placement??"topRight",...k,title:N?M:null,description:p,icon:D,actions:b??g,role:$,classNames:{...T,icon:(0,a.$)(F,T?.icon)},styles:{...B,root:{...c,...B?.root}},className:(0,a.$)({[`${u}-${m}`]:m},v,s),style:y,closable:z})},o={open:n,destroy:e=>{void 0!==e?t.current?.close(e):t.current?.destroy()}};return["success","info","warning","error"].forEach(e=>{o[e]=t=>n({...t,type:e})}),o},[e,r]),o.createElement(tx,{key:"notification-holder",...e,ref:t})]}(k.notification),[P,R]=tm(),z=o.useMemo(()=>({message:M,notification:O,modal:P}),[M,O,P]);(0,i.rJ)("App")(!(w&&!1===m),"usage","When using cssVar, ensure `component` is assigned a valid React component string."),(0,i.rJ)("App")(!t||!1!==m,"usage","`ref` is not supported when `component` is `false`. Please provide a valid `component` instead.");let T=!1===m?o.Fragment:m,B={className:(0,a.$)(v,E),style:{...y,...h}};return o.createElement(tE.Provider,{value:z},o.createElement(tw.Provider,{value:k},o.createElement(T,{...!1===m?void 0:{...B,ref:t}},R,N,I,c)))});tk.useApp=()=>o.useContext(tE);var tS=tk},6094(e,t,r){r.d(t,{A:()=>_});var n=r(1102),o=r(7972),a=r(851),i=r(2382),l=r(9882),s=r(9746),c=r(7034),u=r(8306),d=r(1984),f=r(9838),p=r(8156);let h=n.createContext(void 0);var m=r(558),g=r(6941),b=r(2539);let v=(0,n.forwardRef)((e,t)=>{let{className:r,style:o,children:i,prefixCls:l}=e,s=(0,a.$)(`${l}-icon`,r);return n.createElement("span",{ref:t,className:s,style:o},i)}),y=(0,n.forwardRef)((e,t)=>{let{prefixCls:r,className:o,style:i,iconClassName:l}=e,s=(0,a.$)(`${r}-loading-icon`,o);return n.createElement(v,{prefixCls:r,className:s,style:i,ref:t},n.createElement(g.A,{className:l}))}),$=()=>({width:0,opacity:0,transform:"scale(0)"}),x=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var w=e=>{let{prefixCls:t,loading:r,existIcon:o,className:i,style:l,mount:s}=e;return o?n.createElement(y,{prefixCls:t,className:i,style:l}):n.createElement(b.Ay,{visible:!!r,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:$,onAppearActive:x,onEnterStart:$,onEnterActive:x,onLeaveStart:x,onLeaveActive:$},({className:e,style:r},o)=>{let s={...l,...r};return n.createElement(y,{prefixCls:t,className:(0,a.$)(i,e),style:s,ref:o})})},E=r(9078),C=r(4440),k=r(6003),S=r(8528),A=r(9233);let M=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var N=r(7328),O=r(4419),I=r(5689),P=r(3038),R=r(5210);let z=e=>{let{paddingInline:t,onlyIconSize:r,borderColorDisabled:n}=e;return(0,S.oX)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r,colorBorderDisabled:n})},T=e=>{let t=e.contentFontSize??e.fontSize,r=e.contentFontSizeSM??e.fontSize,n=e.contentFontSizeLG??e.fontSizeLG,o=e.contentLineHeight??(0,P.k)(t),a=e.contentLineHeightSM??(0,P.k)(r),i=e.contentLineHeightLG??(0,P.k)(n),l=(0,O.z)(new N.kf(e.colorBgSolid),"#fff")?"#000":"#fff",s=I.s.reduce((t,r)=>({...t,[`${r}ShadowColor`]:`0 ${(0,E.zA)(e.controlOutlineWidth)} 0 ${(0,R.A)(e[`${r}1`],e.colorBgContainer)}`}),{}),c=e.colorBgContainerDisabled,u=e.colorBgContainerDisabled;return{...s,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:l,contentFontSize:t,contentFontSizeSM:r,contentFontSizeLG:n,contentLineHeight:o,contentLineHeightSM:a,contentLineHeightLG:i,paddingBlock:Math.max((e.controlHeight-t*o)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-r*a)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-n*i)/2-e.lineWidth,0),defaultBgDisabled:c,dashedBgDisabled:u}},B=(e,t="")=>{let{componentCls:r,controlHeight:n,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:n,padding:`${(0,E.zA)(s)} ${(0,E.zA)(i)}`,borderRadius:a,[`&${r}-icon-only`]:{width:n,[l]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:{minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}},{[`${r}${r}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${r}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]};var D=(0,A.OF)("Button",e=>{let t=z(e);return[(e=>{let{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,iconGap:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...(0,k.V)(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:(0,C.Nk)(),[`${t}-icon`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",[r]:{verticalAlign:"middle","&:before":{content:'"\\a0"',display:"inline-block",width:0}}},"> a":{color:"currentColor"},"&:not(:disabled)":(0,C.K8)(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}})(t),B((0,S.oX)(t,{fontSize:t.contentFontSize}),t.componentCls),B((0,S.oX)(t,{controlHeight:t.controlHeightSM,fontSize:t.contentFontSizeSM,padding:t.paddingXS,buttonPaddingHorizontal:t.paddingInlineSM,buttonPaddingVertical:0,borderRadius:t.borderRadiusSM,buttonIconOnlyFontSize:t.onlyIconSizeSM}),`${t.componentCls}-sm`),B((0,S.oX)(t,{controlHeight:t.controlHeightLG,fontSize:t.contentFontSizeLG,buttonPaddingHorizontal:t.paddingInlineLG,buttonPaddingVertical:0,borderRadius:t.borderRadiusLG,buttonIconOnlyFontSize:t.onlyIconSizeLG}),`${t.componentCls}-lg`),(e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}})(t),(e=>{let{componentCls:t,antCls:r,lineWidth:n,lineType:o}=e,[a,i]=(0,A.PN)(r,"btn");return{[t]:[{[a("border-width")]:n,[a("border-color")]:"#000",[a("border-color-hover")]:i("border-color"),[a("border-color-active")]:i("border-color"),[a("border-color-disabled")]:i("border-color"),[a("border-style")]:o,[a("text-color")]:"#000",[a("text-color-hover")]:i("text-color"),[a("text-color-active")]:i("text-color"),[a("text-color-disabled")]:i("text-color"),[a("bg-color")]:"#ddd",[a("bg-color-hover")]:i("bg-color"),[a("bg-color-active")]:i("bg-color"),[a("bg-color-disabled")]:e.colorBgContainerDisabled,[a("bg-color-container")]:e.colorBgContainer,[a("shadow")]:"none"},{border:[i("border-width"),i("border-style"),i("border-color")].join(" "),color:i("text-color"),backgroundColor:i("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[i("border-width"),i("border-style"),i("border-color-hover")].join(" "),color:i("text-color-hover"),backgroundColor:i("bg-color-hover")},"&:active":{border:[i("border-width"),i("border-style"),i("border-color-active")].join(" "),color:i("text-color-active"),backgroundColor:i("bg-color-active")}}},{[`&${t}-variant-solid`]:{[a("solid-bg-color")]:i("color-base"),[a("solid-bg-color-hover")]:i("color-hover"),[a("solid-bg-color-active")]:i("color-active"),[a("border-color")]:"transparent",[a("text-color")]:e.colorTextLightSolid,[a("bg-color")]:i("solid-bg-color"),[a("bg-color-hover")]:i("solid-bg-color-hover"),[a("bg-color-active")]:i("solid-bg-color-active"),boxShadow:i("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[a("border-color")]:i("color-base"),[a("border-color-hover")]:i("color-hover"),[a("border-color-active")]:i("color-active"),[a("bg-color")]:i("bg-color-container"),[a("text-color")]:i("color-base"),[a("text-color-hover")]:i("color-hover"),[a("text-color-active")]:i("color-active"),boxShadow:i("shadow")},[`&${t}-variant-dashed`]:{[a("border-style")]:"dashed",[a("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[a("border-color")]:"transparent",[a("text-color")]:i("color-base"),[a("bg-color")]:i("color-light"),[a("bg-color-hover")]:i("color-light-hover"),[a("bg-color-active")]:i("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[a("border-color")]:"transparent",[a("text-color")]:i("color-base"),[a("text-color-hover")]:i("color-hover"),[a("text-color-active")]:i("color-active"),[a("bg-color")]:"transparent",[a("bg-color-hover")]:"transparent",[a("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[a("bg-color-hover")]:i("color-light"),[a("bg-color-active")]:i("color-light-active")}},{[`&${t}-variant-link`]:{[a("color-base")]:e.colorLink,[a("color-hover")]:e.colorLinkHover,[a("color-active")]:e.colorLinkActive,[a("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[a("color-base")]:e.colorPrimary,[a("color-hover")]:e.colorPrimaryHover,[a("color-active")]:e.colorPrimaryActive,[a("color-light")]:e.colorPrimaryBg,[a("color-light-hover")]:e.colorPrimaryBgHover,[a("color-light-active")]:e.colorPrimaryBorder,[a("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[a("text-color")]:e.primaryColor,[a("text-color-hover")]:i("text-color"),[a("text-color-active")]:i("text-color")}},[`&${t}-color-dangerous`]:{[a("color-base")]:e.colorError,[a("color-hover")]:e.colorErrorHover,[a("color-active")]:e.colorErrorActive,[a("color-light")]:e.colorErrorBg,[a("color-light-hover")]:e.colorErrorBgFilledHover,[a("color-light-active")]:e.colorErrorBgActive,[a("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[a("text-color")]:e.dangerColor,[a("text-color-hover")]:i("text-color"),[a("text-color-active")]:i("text-color")}},[`&${t}-color-default`]:{[a("solid-bg-color")]:e.colorBgSolid,[a("solid-bg-color-hover")]:e.colorBgSolidHover,[a("solid-bg-color-active")]:e.colorBgSolidActive,[a("color-base")]:e.defaultBorderColor,[a("color-hover")]:e.defaultHoverBorderColor,[a("color-active")]:e.defaultActiveBorderColor,[a("color-light")]:e.colorFillTertiary,[a("color-light-hover")]:e.colorFillSecondary,[a("color-light-active")]:e.colorFill,[a("text-color")]:e.defaultColor,[a("text-color-hover")]:e.defaultHoverColor,[a("text-color-active")]:e.defaultActiveColor,[a("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[a("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[a("text-color")]:e.solidTextColor,[a("text-color-hover")]:i("text-color"),[a("text-color-active")]:i("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[a("text-color-hover")]:i("text-color"),[a("text-color-active")]:i("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[a("text-color")]:e.defaultColor,[a("text-color-hover")]:e.defaultHoverColor,[a("text-color-active")]:e.defaultActiveColor,[a("bg-color-container")]:e.defaultBg,[a("bg-color-hover")]:e.defaultHoverBg,[a("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[a("text-color")]:e.textTextColor,[a("text-color-hover")]:e.textTextHoverColor,[a("text-color-active")]:e.textTextActiveColor,[a("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[a("text-color")]:e.defaultGhostColor,[a("border-color")]:e.defaultGhostBorderColor}}}},I.s.map(r=>{let n=e[`${r}6`],o=e[`${r}1`],i=e[`${r}Hover`],l=e[`${r}2`],s=e[`${r}3`],c=e[`${r}Active`],u=e[`${r}ShadowColor`];return{[`&${t}-color-${r}`]:{[a("color-base")]:n,[a("color-hover")]:i,[a("color-active")]:c,[a("color-light")]:o,[a("color-light-hover")]:l,[a("color-light-active")]:s,[a("shadow")]:u}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:i("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[a("bg-color")]:e.ghostBg,[a("bg-color-hover")]:e.ghostBg,[a("bg-color-active")]:e.ghostBg,[a("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[a("bg-color-hover")]:e.ghostBg,[a("bg-color-active")]:e.ghostBg}}}]}})(t),(e=>{let{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},M(`${t}-primary`,o),M(`${t}-danger`,a)]}})(t)]},T,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}}),F=r(3677),L=(0,A.bf)(["Button","compact"],e=>{var t,r;let n,o=z(e);return[(0,F.G)(o),{[n=`${o.componentCls}-compact-vertical`]:{...(t=o.componentCls,{[`&-item:not(${n}-last-item)`]:{marginBottom:o.calc(o.lineWidth).mul(-1).equal()},[`&-item:not(${t}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}),...(r=o.componentCls,{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${r}-sm, &${r}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${r}-sm, &${r}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}})}},(e=>{let{antCls:t,componentCls:r,lineWidth:n,calc:o,colorBgContainer:a}=e,i=`${r}-variant-solid:not([disabled])`,l=o(n).mul(-1).equal(),[s,c]=(0,A.PN)(t,"btn"),u=e=>({[`${r}-compact${e?"-vertical":""}-item`]:{[s("compact-connect-border-color")]:c("bg-color-hover"),[`&${i}`]:{transition:"none",[`& + ${i}:before`]:[{position:"absolute",backgroundColor:c("compact-connect-border-color"),content:'""'},e?{top:l,insetInline:l,height:n}:{insetBlock:l,insetInlineStart:l,width:n}],"&:hover:before":{display:"none"}}}});return[u(),u(!0),{[`${i}${r}-color-default`]:{[s("compact-connect-border-color")]:`color-mix(in srgb, ${c("bg-color-hover")} 75%, ${a})`}}]})(o)]},T);let H={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},j=n.forwardRef((e,t)=>{let r,{_skipSemantic:p,loading:g=!1,prefixCls:b,color:y,variant:$,type:x,danger:E=!1,shape:C,size:k,disabled:S,className:A,rootClassName:M,children:N,icon:O,iconPosition:I,iconPlacement:P,ghost:R=!1,block:z=!1,htmlType:T="button",classNames:B,styles:F,style:j,autoInsertSpace:_,autoFocus:W,...q}=e,K=(0,o.$r)(N),V=x||"default",{getPrefixCls:X,direction:G,autoInsertSpace:U,className:Y,style:Q,classNames:Z,styles:J,loadingIcon:ee,shape:et,color:er,variant:en}=(0,c.TP)("button"),eo=C||et||"default",[ea,ei]=(0,n.useMemo)(()=>{if(y&&$)return[y,$];if(x||E){let e=H[V]||[];return E?["danger",e[1]]:e}return"solid"===$?["primary",$]:er&&en?[er,en]:"solid"===en?["primary",en]:["default","outlined"]},[y,$,x,E,er,en,V]),[el,es]=(0,n.useMemo)(()=>R&&"solid"===ei?[ea,"outlined"]:[ea,ei],[ea,ei,R]),ec="danger"===el,eu=ec?"dangerous":el,ed=_??U??!0,ef=X("btn",b),[ep,eh]=D(ef),em=(0,n.useContext)(u.A),eg=S??em,eb=(0,n.useContext)(h),ev=(0,n.useMemo)(()=>(function(e){if((0,l.Qd)(e)){let t=e?.delay;return{loading:(t=(0,l.Et)(t)?t:0)<=0,delay:t}}return{loading:!!e,delay:0}})(g),[g]),[ey,e$]=(0,n.useState)(ev.loading),[ex,ew]=(0,n.useState)(!1),eE=(0,n.useRef)(null),eC=(0,o.xK)(t,eE),ek=1===K.length&&!O&&!(0,m.u1)(es),eS=(0,n.useRef)(!0);n.useEffect(()=>(eS.current=!1,()=>{eS.current=!0}),[]),(0,o.Nf)(()=>{let e=null;return ev.delay>0?e=setTimeout(()=>{e=null,e$(!0)},ev.delay):e$(ev.loading),function(){e&&(clearTimeout(e),e=null)}},[ev.delay,ev.loading]),(0,n.useEffect)(()=>{if(!eE.current||!ed)return;let e=eE.current.textContent||"";ek&&(0,m.Ap)(e)?ex||ew(!0):ex&&ew(!1)}),(0,n.useEffect)(()=>{W&&eE.current?.focus()},[]);let eA=n.useCallback(t=>{ey||eg?t.preventDefault():e.onClick?.(("href"in e,t))},[e.onClick,ey,eg]),{compactSize:eM,compactItemClassnames:eN}=(0,f.RQ)(ef,G),eO=(0,d.A)(e=>k??eM??eb??e),eI=ey?"loading":O,eP=P??I??"start",eR=(0,o.cJ)(q,["navigate"]),ez={...e,type:V,color:el,variant:es,danger:ec,shape:eo,size:eO,disabled:eg,loading:ey,iconPlacement:eP},eT=(0,i.XT)(Q),eB=(0,i.XT)(j),[eD,eF]=(0,i.AV)([p?void 0:Z,B],[p?void 0:J,eT,F,eB],{props:ez}),eL=(0,a.$)(ef,ep,eh,{[`${ef}-${eo}`]:"default"!==eo&&"square"!==eo&&eo,[`${ef}-${V}`]:V,[`${ef}-dangerous`]:E,[`${ef}-color-${eu}`]:eu,[`${ef}-variant-${es}`]:es,[`${ef}-lg`]:"large"===eO,[`${ef}-sm`]:"small"===eO,[`${ef}-icon-only`]:!N&&0!==N&&!!eI,[`${ef}-background-ghost`]:R&&!(0,m.u1)(es),[`${ef}-loading`]:ey,[`${ef}-two-chinese-chars`]:ex&&ed&&!ey,[`${ef}-block`]:z,[`${ef}-rtl`]:"rtl"===G,[`${ef}-icon-end`]:"end"===eP},eN,A,M,Y,eD.root),eH={className:eD.icon,style:eF.icon},ej=e=>n.createElement(v,{prefixCls:ef,...eH},e),e_=n.createElement(w,{existIcon:!!O,prefixCls:ef,loading:ey,mount:eS.current,...eH}),eW=(0,l.Qd)(g)&&g.icon||ee;r=O&&!ey?ej(O):g&&eW?ej(eW):e_;let eq=(0,l.AZ)(N)?(0,m.uR)(N,ek&&ed,eF.content,eD.content):null;if(void 0!==eR.href)return n.createElement("a",{...eR,className:(0,a.$)(eL,{[`${ef}-disabled`]:eg}),href:eg?void 0:eR.href,style:eF.root,onClick:eA,ref:eC,tabIndex:eg?-1:0,"aria-disabled":eg},r,eq);let eK=n.createElement("button",{...q,type:T,className:eL,style:eF.root,onClick:eA,disabled:eg,ref:eC},r,eq,eN&&n.createElement(L,{prefixCls:ef}));return(0,m.u1)(es)||(eK=n.createElement(s.A,{component:"Button",disabled:ey},eK)),eK});j.Group=e=>{let{getPrefixCls:t,direction:r}=n.useContext(c.QO),{prefixCls:o,size:i,className:l,...s}=e,u=t("btn-group",o),[,,d]=(0,p.Ay)(),f=n.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]),m=(0,a.$)(u,{[`${u}-${f}`]:f,[`${u}-rtl`]:"rtl"===r},l,d);return n.createElement(h.Provider,{value:i},n.createElement("div",{...s,className:m}))},j.__ANT_BUTTON=!0;var _=j},558(e,t,r){var n=r(5142),o=r(1102),a=r(851),i=r(9882),l=r(7211),s=r(5689);let c=/^[\u4E00-\u9FA5]{2}$/,u=c.test.bind(c);function d(e){return"danger"===e?{danger:!0}:{type:e}}function f(e){return"text"===e||"link"===e}function p(e,t,r,n){let s=!1,c=[];return o.Children.forEach(e,e=>{let t=(0,i.Kg)(e)||(0,i.Et)(e);if(s&&t){let t=c.length-1,r=c[t];c[t]=`${r}${e}`}else c.push(e);s=t}),o.Children.map(c,e=>(function(e,t,r,n){if(!(0,i.AZ)(e))return;let s=t?" ":"";return!(0,i.Kg)(e)&&!(0,i.Et)(e)&&(0,i.Kg)(e.type)&&u(e.props.children)?(0,l.Ob)(e,e=>{let t=(0,a.$)(e.className,n)||void 0,o={...r,...e.style};return{...e,children:e.children.split("").join(s),className:t,style:o}}):(0,i.Kg)(e)?o.createElement("span",{className:n,style:r},u(e)?e.split("").join(s):e):(0,l.zv)(e)?o.createElement("span",{className:n,style:r},e):(0,l.Ob)(e,e=>({...e,className:(0,a.$)(e.className,n)||void 0,style:{...e.style,...r}}))})(e,t,r,n))}["default","primary","danger"].concat((0,n.A)(s.s)),r.d(t,{DU:()=>d,u1:()=>f,uR:()=>p},{Ap:u})},6635(e,t,r){t.Ay=r(6094).A},7328(e,t,r){var n=r(7401),o=r(8209),a=r(5258);let i=(0,o.A)(function e(t){if((0,n.A)(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(t=>({color:new e(t.color),percent:t.percent})),this.cleared=t.cleared;return}let r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:t,percent:r})=>({color:new e(t),percent:r})),this.metaColor=new a.Q1(this.colors[0].color.metaColor)):this.metaColor=new a.Q1(r?"":t),t&&(!r||this.colors)||(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){var e,t;return e=this.toHexString(),t=this.metaColor.a<1,e&&e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||""}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){let{colors:e}=this;if(e){let t=e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ");return`linear-gradient(90deg, ${t})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!!e&&this.isGradient()===e.isGradient()&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,r)=>{let n=e.colors[r];return t.percent===n.percent&&t.color.equals(n.color)}):this.toHexString()===e.toHexString())}}]);r.d(t,{kf:()=>i})},4419(e,t,r){r(1102);var n=r(5258);r.d(t,{},{z:(e,t)=>{let{r,g:o,b:a,a:i}=e.toRgb(),l=new n.Q1(e.toRgbString()).onBackground(t).toHsv();return i<=.5?l.v>.5:.299*r+.587*o+.114*a>192}})},8306(e,t,r){var n=r(1102);let o=n.createContext(!1);t.A=o,r.d(t,{},{X:({children:e,disabled:t})=>{let r=n.useContext(o);return n.createElement(o.Provider,{value:t??r},e)}})},8366(e,t,r){var n=r(1102);let o=n.createContext(void 0);t.A=o,r.d(t,{},{c:({children:e,size:t})=>{let r=n.useContext(o);return n.createElement(o.Provider,{value:t||r},e)}})},7034(e,t,r){var n=r(1102);let o="anticon",a=n.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:o}),{Consumer:i}=a,l={};function s(e){let t=n.useContext(a),{getPrefixCls:r,direction:o,getPopupContainer:i,renderEmpty:s}=t;return{classNames:l,styles:l,...t[e],getPrefixCls:r,direction:o,getPopupContainer:i,renderEmpty:s}}r.d(t,{TP:()=>s},{QO:a,lJ:["outlined","borderless","filled","underlined"],pM:o})},941(e,t){t.A=e=>`${e}-css-var`},1984(e,t,r){var n=r(1102),o=r(9882),a=r(8366);t.A=e=>{let t=n.useContext(a.A);return n.useMemo(()=>e?(0,o.Kg)(e)?e??t:(0,o.Tn)(e)?e(t):t:t,[e,t])}},3692(e,t,r){r.d(t,{Ay:()=>I});var n=r(1102),o=r(9078),a=r(396),i=r(7972),l=r(9882),s=r(2048),c=(0,n.createContext)(void 0),u=r(5436),d=r(7558),f=e=>{let{locale:t={},children:r,_ANT_MARK__:o}=e;n.useEffect(()=>(0,u.L)(t?.Modal),[t]);let a=n.useMemo(()=>({...t,exist:!0}),[t]);return n.createElement(d.A.Provider,{value:a},r)},p=r(6615),h=r(5720),m=r(6275),g=r(5170),b=r(7193),v=r(7034),y=r(8306),$=r(8366),x=r(2539),w=r(8156);let E=n.createContext(!0);function C(e){let t=n.useContext(E),{children:r}=e,[,o]=(0,w.Ay)(),{motion:a}=o,i=n.useRef(!1);return(i.current||(i.current=t!==a),i.current)?n.createElement(E.Provider,{value:a},n.createElement(x.Kq,{motion:a},r)):r}var k=()=>null,S=r(4440);let A=({iconPrefixCls:e,csp:t})=>(((e,t)=>{let[r,n]=(0,w.Ay)();return(0,o.IV)({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>(0,S.jz)(e))})(e,t),null),M=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],N=e=>{var t,r;let u,d,x,{children:w,csp:E,autoInsertSpaceInButton:S,alert:N,affix:O,anchor:I,app:P,form:R,locale:z,componentSize:T,direction:B,space:D,splitter:F,virtual:L,dropdownMatchSelectWidth:H,popupMatchSelectWidth:j,popupOverflow:_,legacyLocale:W,parentContext:q,iconPrefixCls:K,theme:V,componentDisabled:X,segmented:G,statistic:U,spin:Y,calendar:Q,carousel:Z,cascader:J,collapse:ee,typography:et,checkbox:er,descriptions:en,divider:eo,drawer:ea,skeleton:ei,steps:el,image:es,layout:ec,list:eu,mentions:ed,modal:ef,progress:ep,result:eh,slider:em,breadcrumb:eg,masonry:eb,menu:ev,pagination:ey,input:e$,inputPassword:ex,inputSearch:ew,textArea:eE,otp:eC,empty:ek,badge:eS,borderBeam:eA,radio:eM,rate:eN,ribbon:eO,switch:eI,transfer:eP,avatar:eR,message:ez,tag:eT,table:eB,card:eD,cardMeta:eF,tabs:eL,timeline:eH,timePicker:ej,upload:e_,notification:eW,tree:eq,colorPicker:eK,datePicker:eV,rangePicker:eX,flex:eG,wave:eU,dropdown:eY,warning:eQ,tour:eZ,tooltip:eJ,popover:e0,popconfirm:e1,qrcode:e2,floatButton:e5,floatButtonGroup:e4,variant:e6,inputNumber:e8,treeSelect:e3,watermark:e9}=e,e7=n.useMemo(()=>(0,l.Qd)(z)&&Object.prototype.hasOwnProperty.call(z,"default")&&z.default?.locale?z.default:z,[z]),te=n.useCallback((t,r)=>{let{prefixCls:n}=e;if(r)return r;let o=n||q.getPrefixCls("");return t?`${o}-${t}`:o},[q.getPrefixCls,e.prefixCls]),tt=K||q.iconPrefixCls||v.pM,tr=E||q.csp,tn=(t=q.theme,r={prefixCls:te("")},(0,s.rJ)("ConfigProvider"),d=!1!==(u=V||{}).inherit&&t?t:{...m.sb,hashed:t?.hashed??m.sb.hashed,cssVar:t?.cssVar},x=(0,n.useId)(),(0,i.Kr)(()=>{if(!V)return t;let e={...d.components};Object.keys(V.components||{}).forEach(t=>{e[t]={...e[t],...V.components[t]}});let n=`css-var-${x.replace(/:/g,"")}`,o={prefix:r?.prefixCls,...d.cssVar,...u.cssVar,key:u.cssVar?.key||n};return{...d,...u,token:{...d.token,...u.token},components:e,cssVar:o}},[u,d,r?.prefixCls,x],(e,t)=>e.some((e,r)=>{let n=t[r];return!(0,i.n4)(e,n,!0)}))),to={csp:tr,autoInsertSpaceInButton:S,alert:N,affix:O,anchor:I,app:P,locale:e7||W,direction:B,space:D,splitter:F,virtual:L,popupMatchSelectWidth:j??H,popupOverflow:_,getPrefixCls:te,iconPrefixCls:tt,theme:tn,segmented:G,statistic:U,spin:Y,calendar:Q,carousel:Z,cascader:J,collapse:ee,typography:et,checkbox:er,descriptions:en,divider:eo,drawer:ea,skeleton:ei,steps:el,image:es,input:e$,inputPassword:ex,inputSearch:ew,textArea:eE,otp:eC,layout:ec,list:eu,mentions:ed,modal:ef,progress:ep,result:eh,slider:em,breadcrumb:eg,masonry:eb,menu:ev,pagination:ey,empty:ek,badge:eS,borderBeam:eA,radio:eM,rate:eN,ribbon:eO,switch:eI,transfer:eP,avatar:eR,message:ez,tag:eT,table:eB,card:eD,cardMeta:eF,tabs:eL,timeline:eH,timePicker:ej,upload:e_,notification:eW,tree:eq,colorPicker:eK,datePicker:eV,rangePicker:eX,flex:eG,wave:eU,dropdown:eY,warning:eQ,tour:eZ,tooltip:eJ,popover:e0,popconfirm:e1,qrcode:e2,floatButton:e5,floatButtonGroup:e4,variant:e6,inputNumber:e8,treeSelect:e3,watermark:e9},ta={...q};Object.keys(to).forEach(e=>{void 0!==to[e]&&(ta[e]=to[e])}),M.forEach(t=>{let r=e[t];r&&(ta[t]=r)}),void 0!==S&&(ta.button={autoInsertSpace:S,...ta.button});let ti=(0,i.Kr)(()=>ta,ta,(e,t)=>{let r=Object.keys(e),n=Object.keys(t);return r.length!==n.length||r.some(r=>e[r]!==t[r])}),{layer:tl}=n.useContext(o.J),ts=n.useMemo(()=>({prefixCls:tt,csp:tr,layer:tl?"antd":void 0,zeroRuntime:!!tl||tn?.zeroRuntime}),[tt,tr,tl,tn?.zeroRuntime]),tc=n.createElement(n.Fragment,null,n.createElement(A,{iconPrefixCls:tt,csp:tr}),n.createElement(k,{dropdownMatchSelectWidth:H}),w),tu=n.useMemo(()=>(0,i.h1)(p.A.Form?.defaultValidateMessages||{},ti.locale?.Form?.defaultValidateMessages||{},ti.form?.validateMessages||{},R?.validateMessages||{}),[ti,R?.validateMessages]);Object.keys(tu).length>0&&(tc=n.createElement(c.Provider,{value:tu},tc)),e7&&(tc=n.createElement(f,{locale:e7,_ANT_MARK__:"internalMark"},tc)),(tt||tr)&&(tc=n.createElement(a.A.Provider,{value:ts},tc)),T&&(tc=n.createElement($.c,{size:T},tc)),tc=n.createElement(C,null,tc),eJ?.unique&&(tc=n.createElement(b.A,null,tc));let td=n.useMemo(()=>{let{algorithm:e,token:t,components:r,cssVar:n,...a}=tn||{},i=e&&(!Array.isArray(e)||e.length>0)?(0,o.an)(e):h.A,s={};Object.entries(r||{}).forEach(([e,t])=>{let r={...t};"algorithm"in r&&(!0===r.algorithm?r.theme=i:(Array.isArray(r.algorithm)||(0,l.Tn)(r.algorithm))&&(r.theme=(0,o.an)(r.algorithm)),delete r.algorithm),s[e]=r});let c={...g.A,...t};return{...a,theme:i,token:c,components:s,override:{override:c,...s},cssVar:n}},[tn]);return V&&(tc=n.createElement(m.vG.Provider,{value:td},tc)),ti.warning&&(tc=n.createElement(s._n.Provider,{value:ti.warning},tc)),void 0!==X&&(tc=n.createElement(y.X,{disabled:X},tc)),n.createElement(v.QO.Provider,{value:ti},tc)},O=e=>{let t=n.useContext(v.QO),r=n.useContext(d.A);return n.createElement(N,{parentContext:t,legacyLocale:r,...e})};O.ConfigContext=v.QO,O.SizeContext=$.A,O.config=e=>{let{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e},O.useConfig=function(){return{componentDisabled:(0,n.useContext)(y.A),componentSize:(0,n.useContext)($.A)}},Object.defineProperty(O,"SizeContext",{get:()=>$.A});var I=O},850(e,t,r){let n;r.d(t,{$W:()=>ef,XB:()=>ep,Pp:()=>eh});var o=r(1102),a=r(7972);let i="RC_FORM_INTERNAL_HOOKS",l=()=>{(0,a.$e)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},s=o.createContext({getFieldValue:l,getFieldsValue:l,getFieldError:l,getFieldWarning:l,getFieldsError:l,isFieldsTouched:l,isFieldTouched:l,isFieldValidating:l,isFieldsValidating:l,resetFields:l,setFields:l,setFieldValue:l,setFieldsValue:l,validateFields:l,submit:l,getInternalHooks:()=>(l(),{dispatch:l,initEntityValue:l,registerField:l,useSubscribe:l,setInitialValues:l,destroyForm:l,setCallbacks:l,registerWatch:l,getFields:l,setValidateMessages:l,setPreserve:l,getInitialValue:l})}),c=o.createContext(null);function u(e){return null==e?[]:Array.isArray(e)?e:[e]}function d(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone(){let e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}let f=d(),p=/%[sdj%]/g,h=()=>{};function m(e){if(!e||!e.length)return null;let t={};return e.forEach(e=>{let r=e.field;t[r]=t[r]||[],t[r].push(e)}),t}function g(e,...t){let r=0,n=t.length;return"function"==typeof e?e.apply(null,t):"string"==typeof e?e.replace(p,e=>{if("%%"===e)return"%";if(r>=n)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(e){return"[Circular]"}default:return e}}):e}function b(e,t){return!!(null==e||"array"===t&&Array.isArray(e)&&!e.length)||("string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t||"tel"===t)&&"string"==typeof e&&!e||!1}function v(e,t,r){let n=0,o=e.length;!function a(i){if(i&&i.length)return void r(i);let l=n;n+=1,l<o?t(e[l],a):r([])}([])}"u">typeof process&&process.env;class y extends Error{errors;fields;constructor(e,t){super("Async Validation Error"),this.errors=e,this.fields=t}}function $(e,t){return r=>{let n;return(n=e.fullFields?function(e,t){let r=e;for(let e=0;e<t.length&&void 0!=r;e++)r=r[t[e]];return r}(t,e.fullFields):t[r.field||e.fullField],r&&void 0!==r.message)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:"function"==typeof r?r():r,fieldValue:n,field:r.field||e.fullField}}}function x(e,t){if(t){for(let r in t)if(t.hasOwnProperty(r)){let n=t[r];"object"==typeof n&&"object"==typeof e[r]?e[r]={...e[r],...n}:e[r]=n}}return e}let w="enum";var E=(e,t,r,n,o,a)=>{e.required&&(!r.hasOwnProperty(e.field)||b(t,a||e.type))&&n.push(g(o.messages.required,e.fullField))};let C=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,k=/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,S=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,A={integer:e=>A.number(e)&&parseInt(e,10)===e,float:e=>A.number(e)&&!A.integer(e),array:e=>Array.isArray(e),regexp(e){if(e instanceof RegExp)return!0;try{return new RegExp(e),!0}catch(e){return!1}},date:e=>"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime()),number:e=>!isNaN(e)&&"number"==typeof e,object:e=>"object"==typeof e&&!A.array(e),method:e=>"function"==typeof e,email:e=>"string"==typeof e&&e.length<=320&&!!e.match(C),tel:e=>"string"==typeof e&&e.length<=32&&!!e.match(k),url:e=>"string"==typeof e&&e.length<=2048&&!!e.match((()=>{if(n)return n;let e="[a-fA-F\\d:]",t=t=>t&&t.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|$))`:"",r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",a=[`(?:${o}:){7}(?:${o}|:)`,`(?:${o}:){6}(?:${r}|:${o}|:)`,`(?:${o}:){5}(?::${r}|(?::${o}){1,2}|:)`,`(?:${o}:){4}(?:(?::${o}){0,1}:${r}|(?::${o}){1,3}|:)`,`(?:${o}:){3}(?:(?::${o}){0,2}:${r}|(?::${o}){1,4}|:)`,`(?:${o}:){2}(?:(?::${o}){0,3}:${r}|(?::${o}){1,5}|:)`,`(?:${o}:){1}(?:(?::${o}){0,4}:${r}|(?::${o}){1,6}|:)`,`(?::(?:(?::${o}){0,5}:${r}|(?::${o}){1,7}|:))`],i=`(?:${a.join("|")})(?:%[0-9a-zA-Z]{1,})?`,l=RegExp(`(?:^${r}$)|(?:^${i}$)`),s=RegExp(`^${r}$`),c=RegExp(`^${i}$`),u=e=>e&&e.exact?l:RegExp(`(?:${t(e)}${r}${t(e)})|(?:${t(e)}${i}${t(e)})`,"g");u.v4=e=>e&&e.exact?s:RegExp(`${t(e)}${r}${t(e)}`,"g"),u.v6=e=>e&&e.exact?c:RegExp(`${t(e)}${i}${t(e)}`,"g");let d=u.v4().source,f=u.v6().source,p=`(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|${d}|${f}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return n=RegExp(`(?:^${p}$)`,"i")})()),hex:e=>"string"==typeof e&&!!e.match(S)};var M=E,N=(e,t,r,n,o)=>{(/^\s+$/.test(t)||""===t)&&n.push(g(o.messages.whitespace,e.fullField))},O=(e,t,r,n,o)=>{if(e.required&&void 0===t)return void E(e,t,r,n,o);let a=e.type;["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"].indexOf(a)>-1?A[a](t)||n.push(g(o.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&n.push(g(o.messages.types[a],e.fullField,e.type))},I=(e,t,r,n,o)=>{let a="number"==typeof e.len,i="number"==typeof e.min,l="number"==typeof e.max,s=t,c=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?s!==e.len&&n.push(g(o.messages[c].len,e.fullField,e.len)):i&&!l&&s<e.min?n.push(g(o.messages[c].min,e.fullField,e.min)):l&&!i&&s>e.max?n.push(g(o.messages[c].max,e.fullField,e.max)):i&&l&&(s<e.min||s>e.max)&&n.push(g(o.messages[c].range,e.fullField,e.min,e.max))},P=(e,t,r,n,o)=>{e[w]=Array.isArray(e[w])?e[w]:[],-1===e[w].indexOf(t)&&n.push(g(o.messages[w],e.fullField,e[w].join(", ")))},R=(e,t,r,n,o)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||n.push(g(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||n.push(g(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},z=(e,t,r,n,o)=>{let a=e.type,i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(b(t,a)&&!e.required)return r();M(e,t,n,i,o,a),b(t,a)||O(e,t,n,i,o)}r(i)},T={string:(e,t,r,n,o)=>{let a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(b(t,"string")&&!e.required)return r();M(e,t,n,a,o,"string"),b(t,"string")||(O(e,t,n,a,o),I(e,t,n,a,o),R(e,t,n,a,o),!0===e.whitespace&&N(e,t,n,a,o))}r(a)},method:(e,t,r,n,o)=>{let a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(b(t)&&!e.required)return r();M(e,t,n,a,o),void 0!==t&&O(e,t,n,a,o)}r(a)},number:(e,t,r,n,o)=>{let a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(""===t&&(t=void 0),b(t)&&!e.required)return r();M(e,t,n,a,o),void 0!==t&&(O(e,t,n,a,o),I(e,t,n,a,o))}r(a)},boolean:(e,t,r,n,o)=>{let a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(b(t)&&!e.required)return r();M(e,t,n,a,o),void 0!==t&&O(e,t,n,a,o)}r(a)},regexp:(e,t,r,n,o)=>{let a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(b(t)&&!e.required)return r();M(e,t,n,a,o),b(t)||O(e,t,n,a,o)}r(a)},integer:(e,t,r,n,o)=>{let a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(b(t)&&!e.required)return r();M(e,t,n,a,o),void 0!==t&&(O(e,t,n,a,o),I(e,t,n,a,o))}r(a)},float:(e,t,r,n,o)=>{let a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(b(t)&&!e.required)return r();M(e,t,n,a,o),void 0!==t&&(O(e,t,n,a,o),I(e,t,n,a,o))}r(a)},array:(e,t,r,n,o)=>{let a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(null==t&&!e.required)return r();M(e,t,n,a,o,"array"),null!=t&&(O(e,t,n,a,o),I(e,t,n,a,o))}r(a)},object:(e,t,r,n,o)=>{let a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(b(t)&&!e.required)return r();M(e,t,n,a,o),void 0!==t&&O(e,t,n,a,o)}r(a)},enum:(e,t,r,n,o)=>{let a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(b(t)&&!e.required)return r();M(e,t,n,a,o),void 0!==t&&P(e,t,n,a,o)}r(a)},pattern:(e,t,r,n,o)=>{let a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(b(t,"string")&&!e.required)return r();M(e,t,n,a,o),b(t,"string")||R(e,t,n,a,o)}r(a)},date:(e,t,r,n,o)=>{let a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(b(t,"date")&&!e.required)return r();if(M(e,t,n,a,o),!b(t,"date")){let r;r=t instanceof Date?t:new Date(t),O(e,r,n,a,o),r&&I(e,r.getTime(),n,a,o)}}r(a)},url:z,hex:z,email:z,tel:z,required:(e,t,r,n,o)=>{let a=[],i=Array.isArray(t)?"array":typeof t;M(e,t,n,a,o,i),r(a)},any:(e,t,r,n,o)=>{let a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(b(t)&&!e.required)return r();M(e,t,n,a,o)}r(a)}},B=class e{static register=function(e,t){if("function"!=typeof t)throw Error("Cannot register a validator by type, validator is not a function");T[e]=t};static warning=h;static messages=f;static validators=T;rules=null;_messages=f;constructor(e){this.define(e)}define(e){if(!e)throw Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw Error("Rules must be an object");this.rules={},Object.keys(e).forEach(t=>{let r=e[t];this.rules[t]=Array.isArray(r)?r:[r]})}messages(e){return e&&(this._messages=x(d(),e)),this._messages}validate(t,r={},n=()=>{}){let o=t,a=r,i=n;if("function"==typeof a&&(i=a,a={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,o),Promise.resolve(o);if(a.messages){let e=this.messages();e===f&&(e=d()),x(e,a.messages),a.messages=e}else a.messages=this.messages();let l={};(a.keys||Object.keys(this.rules)).forEach(e=>{let r=this.rules[e],n=o[e];r.forEach(r=>{let a=r;"function"==typeof a.transform&&(o===t&&(o={...o}),null!=(n=o[e]=a.transform(n))&&(a.type=a.type||(Array.isArray(n)?"array":typeof n))),(a="function"==typeof a?{validator:a}:{...a}).validator=this.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=this.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:n,source:o,field:e}))})});let s={};return function(e,t,r,n,o){if(t.first){let t=new Promise((t,a)=>{let i;v((i=[],Object.keys(e).forEach(t=>{i.push(...e[t]||[])}),i),r,e=>(n(e),e.length?a(new y(e,m(e))):t(o)))});return t.catch(e=>e),t}let a=!0===t.firstFields?Object.keys(e):t.firstFields||[],i=Object.keys(e),l=i.length,s=0,c=[],u=new Promise((t,u)=>{let d=e=>{if(c.push.apply(c,e),++s===l)return n(c),c.length?u(new y(c,m(c))):t(o)};i.length||(n(c),t(o)),i.forEach(t=>{let n=e[t];if(-1!==a.indexOf(t))v(n,r,d);else{let e=[],t=0,a=n.length;function o(r){e.push(...r||[]),++t===a&&d(e)}n.forEach(e=>{r(e,o)})}})});return u.catch(e=>e),u}(l,a,(t,r)=>{let n,i=t.rule,l=("object"===i.type||"array"===i.type)&&("object"==typeof i.fields||"object"==typeof i.defaultField);function c(e,t){return{...t,fullField:`${i.fullField}.${e}`,fullFields:i.fullFields?[...i.fullFields,e]:[e]}}function u(n=[]){let d=Array.isArray(n)?n:[n];!a.suppressWarning&&d.length&&e.warning("async-validator:",d),d.length&&void 0!==i.message&&null!==i.message&&(d=[].concat(i.message));let f=d.map($(i,o));if(a.first&&f.length)return s[i.field]=1,r(f);if(l){if(i.required&&!t.value)return void 0!==i.message?f=[].concat(i.message).map($(i,o)):a.error&&(f=[a.error(i,g(a.messages.required,i.field))]),r(f);let n={};i.defaultField&&Object.keys(t.value).map(e=>{n[e]=i.defaultField});let l={};Object.keys(n={...n,...t.rule.fields}).forEach(e=>{let t=n[e],r=Array.isArray(t)?t:[t];l[e]=r.map(c.bind(null,e))});let s=new e(l);s.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),s.validate(t.value,t.rule.options||a,e=>{let t=[];f&&f.length&&t.push(...f),e&&e.length&&t.push(...e),r(t.length?t:null)})}else r(f)}if(l=l&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator)n=i.asyncValidator(i,t.value,u,t.source,a);else if(i.validator){try{n=i.validator(i,t.value,u,t.source,a)}catch(e){console.error?.(e),a.suppressValidatorError||setTimeout(()=>{throw e},0),u(e.message)}!0===n?u():!1===n?u("function"==typeof i.message?i.message(i.fullField||i.field):i.message||`${i.fullField||i.field} fails`):n instanceof Array?u(n):n instanceof Error&&u(n.message)}n&&n.then&&n.then(()=>u(),e=>u(e))},e=>{var t;let r=[],n={};for(let n=0;n<e.length;n++)Array.isArray(t=e[n])?r=r.concat(...t):r.push(t);r.length?(n=m(r),i(r,n)):i(null,o)},o)}getType(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!T.hasOwnProperty(e.type))throw Error(g("Unknown rule type %s",e.type));return e.type||"string"}getValidationMethod(e){if("function"==typeof e.validator)return e.validator;let t=Object.keys(e),r=t.indexOf("message");return(-1!==r&&t.splice(r,1),1===t.length&&"required"===t[0])?T.required:T[this.getType(e)]||void 0}};let D="'${name}' is not a valid ${type}",F={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:D,method:D,array:D,object:D,number:D,date:D,boolean:D,integer:D,float:D,regexp:D,email:D,tel:D,url:D,hex:D},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},L="CODE_LOGIC_ERROR";async function H(e,t,r,n,i){let l={...r};if(delete l.ruleIndex,B.warning=()=>void 0,l.validator){let e=l.validator;l.validator=(...t)=>{try{return e(...t)}catch(e){return console.error(e),Promise.reject(L)}}}let s=null;l&&"array"===l.type&&l.defaultField&&(s=l.defaultField,delete l.defaultField);let c=new B({[e]:[l]}),u=(0,a.h1)(F,n.validateMessages);c.messages(u);let d=[];try{await Promise.resolve(c.validate({[e]:t},{...n}))}catch(e){e.errors&&(d=e.errors.map(({message:e},t)=>{let r=e===L?u.default:e;return o.isValidElement(r)?o.cloneElement(r,{key:`error_${t}`}):r}))}if(!d.length&&s&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((t,r)=>H(`${e}.${r}`,t,s,n,i)))).reduce((e,t)=>[...e,...t],[]);let f={...r,name:e,enum:(r.enum||[]).join(", "),...i};return d.map(e=>{if("string"==typeof e)return e.replace(/\\?\$\{\w+\}/g,e=>e.startsWith("\\")?e.slice(1):f[e.slice(2,-1)]);return e})}async function j(e){return Promise.all(e).then(e=>[].concat(...e))}async function _(e){let t=0;return new Promise(r=>{e.forEach(n=>{n.then(n=>{n.errors.length&&r([n]),(t+=1)===e.length&&r([])})})})}function W(e){return u(e)}function q(e,t){let r={};return t.forEach(t=>{let n=(0,a.Jt)(e,t);r=(0,a.hZ)(r,t,n)}),r}function K(e,t,r=!1){return e&&e.some(e=>V(t,e,r))}function V(e,t,r=!1){return!!e&&!!t&&(!!r||e.length===t.length)&&t.every((t,r)=>e[r]===t)}function X(e,t,r){let{length:n}=e;if(t<0||t>=n||r<0||r>=n)return e;let o=e[t],a=t-r;return a>0?[...e.slice(0,r),o,...e.slice(r,t),...e.slice(t+1,n)]:a<0?[...e.slice(0,t),...e.slice(t+1,r+1),o,...e.slice(r+1,n)]:e}let G=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class U{namePathList=[];taskId=0;watcherList=new Set;form;constructor(e){this.form=e}register(e){return this.watcherList.add(e),()=>{this.watcherList.delete(e)}}notify(e){e.forEach(e=>{this.namePathList.every(t=>!V(t,e))&&this.namePathList.push(e)}),this.doBatch()}doBatch(){this.taskId+=1;let e=this.taskId;G(()=>{if(e===this.taskId&&this.watcherList.size){let e=this.form.getForm(),t=e.getFieldsValue(),r=e.getFieldsValue(!0);this.watcherList.forEach(e=>{e(t,r,this.namePathList)}),this.namePathList=[]}})}}async function Y(){return new Promise(e=>{G(()=>{(0,a.er)(()=>{e()})})})}function Q(){return(Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let Z=[],J=[];function ee(e,t,r,n,o,a){return"function"==typeof e?e(t,r,"source"in a?{source:a.source}:{}):n!==o}class et extends o.PureComponent{static contextType=s;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=Z;warnings=J;constructor(e){if(super(e),e.fieldContext){const{getInternalHooks:t}=e.fieldContext,{initEntityValue:r}=t(i);r(this)}}componentDidMount(){let{shouldUpdate:e,fieldContext:t}=this.props;if(this.mounted=!0,t){let{getInternalHooks:e}=t,{registerField:r}=e(i);this.cancelRegisterFunc=r(this)}!0===e&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{let{preserve:e,isListField:t,name:r}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(t,e,W(r)),this.cancelRegisterFunc=null};getNamePath=()=>{let{name:e,fieldContext:t}=this.props,{prefixName:r=[]}=t;return void 0!==e?[...r,...e]:[]};getRules=()=>{let{rules:e=[],fieldContext:t}=this.props;return e.map(e=>"function"==typeof e?e(t):e)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:e})=>({resetCount:e+1}))};metaCache=null;triggerMetaEvent=e=>{let{onMetaChange:t}=this.props;if(t){let r={...this.getMeta(),destroy:e};(0,a.n4)(this.metaCache,r)||t(r),this.metaCache=r}else this.metaCache=null};onStoreChange=(e,t,r)=>{let{shouldUpdate:n,dependencies:o=[],onReset:i}=this.props,{store:l}=r,s=this.getNamePath(),c=this.getValue(e),u=this.getValue(l),d=t&&K(t,s);switch("valueUpdate"===r.type&&"external"===r.source&&!(0,a.n4)(c,u)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Z,this.warnings=J,this.triggerMetaEvent()),r.type){case"reset":if(!t||d){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Z,this.warnings=J,this.triggerMetaEvent(),i?.(),this.refresh();return}break;case"remove":if(n&&ee(n,e,l,c,u,r))return void this.reRender();break;case"setField":{let{data:o}=r;if(d){"touched"in o&&(this.touched=o.touched),"validating"in o&&!("originRCField"in o)&&(this.validatePromise=o.validating?Promise.resolve([]):null),"errors"in o&&(this.errors=o.errors||Z),"warnings"in o&&(this.warnings=o.warnings||J),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}if("value"in o&&K(t,s,!0)||n&&!s.length&&ee(n,e,l,c,u,r))return void this.reRender();break}case"dependenciesUpdate":if(o.map(W).some(e=>K(r.relatedFields,e)))return void this.reRender();break;default:if(d||(!o.length||s.length||n)&&ee(n,e,l,c,u,r))return void this.reRender()}!0===n&&this.reRender()};validateRules=e=>{let t=this.getNamePath(),r=this.getValue(),{triggerName:n,validateOnly:o=!1,delayFrame:i}=e||{},l=Promise.resolve().then(async()=>{if(!this.mounted)return[];let{validateFirst:o=!1,messageVariables:s,validateDebounce:c}=this.props;i&&await Y();let d=this.getRules();if(n&&(d=d.filter(e=>e).filter(e=>{let{validateTrigger:t}=e;return!t||u(t).includes(n)})),c&&n&&(await new Promise(e=>{setTimeout(e,c)}),this.validatePromise!==l))return[];let f=function(e,t,r,n,o,i){let l,s=e.join("."),c=r.map((e,t)=>{let r=e.validator,n={...e,ruleIndex:t};return r&&(n.validator=(e,t,n)=>{let o=!1,i=r(e,t,(...e)=>{Promise.resolve().then(()=>{(0,a.$e)(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||n(...e)})});o=i&&"function"==typeof i.then&&"function"==typeof i.catch,(0,a.$e)(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then(()=>{n()}).catch(e=>{n(e||" ")})}),n}).sort(({warningOnly:e,ruleIndex:t},{warningOnly:r,ruleIndex:n})=>!!e==!!r?t-n:e?1:-1);if(!0===o)l=new Promise(async(e,r)=>{for(let e=0;e<c.length;e+=1){let o=c[e],a=await H(s,t,o,n,i);if(a.length)return void r([{errors:a,rule:o}])}e([])});else{let e=c.map(e=>H(s,t,e,n,i).then(t=>({errors:t,rule:e})));l=(o?_(e):j(e)).then(e=>Promise.reject(e))}return l.catch(e=>e),l}(t,r,d,e,o,s);return f.catch(e=>e).then((e=Z)=>{if(this.validatePromise===l){this.validatePromise=null;let t=[],r=[];e.forEach?.(({rule:{warningOnly:e},errors:n=Z})=>{e?r.push(...n):t.push(...n)}),this.errors=t,this.warnings=r,this.triggerMetaEvent(),this.reRender()}}),f});return o||(this.validatePromise=l,this.dirty=!0,this.errors=Z,this.warnings=J,this.triggerMetaEvent(),this.reRender()),l};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||void 0!==this.props.initialValue)return!0;let{fieldContext:e}=this.props,{getInitialValue:t}=e.getInternalHooks(i);return void 0!==t(this.getNamePath())};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:null===this.validatePromise});getOnlyChild=e=>{if("function"==typeof e){let t=this.getMeta();return{...this.getOnlyChild(e(this.getControlled(),t,this.props.fieldContext)),isFunction:!0}}let t=(0,a.$r)(e);return 1===t.length&&o.isValidElement(t[0])?{child:t[0],isFunction:!1}:{child:t,isFunction:!1}};getValue=e=>{let{getFieldsValue:t}=this.props.fieldContext,r=this.getNamePath();return(0,a.Jt)(e||t(!0),r)};getControlled=(e={})=>{let{name:t,trigger:r="onChange",validateTrigger:n,getValueFromEvent:o,normalize:a,valuePropName:l="value",getValueProps:s,fieldContext:c}=this.props,d=void 0!==n?n:c.validateTrigger,f=this.getNamePath(),{getInternalHooks:p,getFieldsValue:h}=c,{dispatch:m}=p(i),g=this.getValue(),b=s||(e=>({[l]:e})),v=e[r],y=void 0!==t?b(g):{},$={...e,...y};return $[r]=(...e)=>{let t;this.touched=!0,this.dirty=!0,this.triggerMetaEvent(),t=o?o(...e):function(e,...t){let r=t[0];return r&&r.target&&"object"==typeof r.target&&e in r.target?r.target[e]:r}(l,...e),a&&(t=a(t,g,h(!0))),t!==g&&m({type:"updateValue",namePath:f,value:t}),v&&v(...e)},u(d||[]).forEach(e=>{let t=$[e];$[e]=(...r)=>{t&&t(...r);let{rules:n}=this.props;n&&n.length&&m({type:"validateField",namePath:f,triggerName:e})}}),$};render(){let e,{resetCount:t}=this.state,{children:r}=this.props,{child:n,isFunction:i}=this.getOnlyChild(r);return i?e=n:o.isValidElement(n)?e=o.cloneElement(n,this.getControlled(n.props)):((0,a.$e)(!n,"`children` of Field is not validate ReactElement."),e=n),o.createElement(o.Fragment,{key:t},e)}}var er=function({name:e,...t}){let r=o.useContext(s),n=o.useContext(c),a=void 0!==e?W(e):void 0,i=t.isListField??!!n,l="keep";return i||(l=`_${(a||[]).join("_")}`),o.createElement(et,Q({key:l,name:a,isListField:i},t,{fieldContext:r}))};let en="__@field_split__";function eo(e){return e.map(e=>`${typeof e}:${e}`).join(en)}class ea{kvs=new Map;set(e,t){this.kvs.set(eo(e),t)}get(e){return this.kvs.get(eo(e))}getAsPrefix(e){let t=eo(e),r=t+en,n=[],o=this.kvs.get(t);return void 0!==o&&n.push(o),this.kvs.forEach((e,t)=>{t.startsWith(r)&&n.push(e)}),n}update(e,t){let r=t(this.get(e));r?this.set(e,r):this.delete(e)}delete(e){this.kvs.delete(eo(e))}map(e){return[...this.kvs.entries()].map(([t,r])=>e({key:t.split(en).map(e=>{let[,t,r]=e.match(/^([^:]*):(.*)$/);return"number"===t?Number(r):r}),value:r}))}toJSON(){let e={};return this.map(({key:t,value:r})=>(e[t.join(".")]=r,null)),e}}class ei{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new U(this);constructor(e){this.forceRootUpdate=e}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=e=>e===i?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):((0,a.$e)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=e=>{this.subscribable=e};prevWithoutPreserves=null;setInitialValues=(e,t)=>{if(this.initialValues=e||{},t){let t=(0,a.h1)(e,this.store);this.prevWithoutPreserves?.map(({key:r})=>{t=(0,a.hZ)(t,r,(0,a.Jt)(e,r))}),this.prevWithoutPreserves=null,this.updateStore(t)}};destroyForm=e=>{if(e)this.updateStore({});else{let e=new ea;this.getFieldEntities(!0).forEach(t=>{this.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),this.prevWithoutPreserves=e}};getInitialValue=e=>{let t=(0,a.Jt)(this.initialValues,e);return e.length?(0,a.h1)(t):t};setCallbacks=e=>{this.callbacks=e};setValidateMessages=e=>{this.validateMessages=e};setPreserve=e=>{this.preserve=e};registerWatch=e=>this.watcherCenter.register(e);notifyWatch=(e=[])=>{this.watcherCenter.notify(e)};timeoutId=null;warningUnhooked=()=>{};updateStore=e=>{this.store=e};getFieldEntities=(e=!1)=>e?this.fieldEntities.filter(e=>e.getNamePath().length):this.fieldEntities;getFieldsMap=(e=!1)=>{let t=new ea;return this.getFieldEntities(e).forEach(e=>{let r=e.getNamePath();t.set(r,e)}),t};getFieldEntitiesForNamePathList=(e,t=!1)=>{if(!e)return this.getFieldEntities(!0);let r=this.getFieldsMap(!0);return t?e.flatMap(e=>{let t=W(e),n=r.getAsPrefix(t);return n.length?n:[{INVALIDATE_NAME_PATH:t}]}):e.map(e=>{let t=W(e);return r.get(t)||{INVALIDATE_NAME_PATH:W(e)}})};getFieldsValue=(e,t)=>{let r,n;if(this.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,n=t):e&&"object"==typeof e&&(n=e.filter),!0===r&&!n)return this.store;let o=this.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null,!0),i=[],l=[];o.forEach(e=>{let t=e.INVALIDATE_NAME_PATH||e.getNamePath();if(e.isList?.())return void l.push(t);if(n){let r="getMeta"in e?e.getMeta():null;n(r)&&i.push(t)}else i.push(t)});let s=q(this.store,i.map(W));return l.forEach(e=>{(0,a.Jt)(s,e)||(s=(0,a.hZ)(s,e,[]))}),s};getFieldValue=e=>{this.warningUnhooked();let t=W(e);return(0,a.Jt)(this.store,t)};getFieldsError=e=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(e).map((t,r)=>t&&!t.INVALIDATE_NAME_PATH?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:W(e[r]),errors:[],warnings:[]}));getFieldError=e=>{this.warningUnhooked();let t=W(e);return this.getFieldsError([t])[0].errors};getFieldWarning=e=>{this.warningUnhooked();let t=W(e);return this.getFieldsError([t])[0].warnings};isFieldsTouched=(...e)=>{let t;this.warningUnhooked();let[r,n]=e,o=!1;0===e.length?t=null:1===e.length?Array.isArray(r)?(t=r.map(W),o=!1):(t=null,o=r):(t=r.map(W),o=n);let a=this.getFieldEntities(!0),i=e=>e.isFieldTouched();if(!t)return o?a.every(e=>i(e)||e.isList()):a.some(i);let l=new ea;t.forEach(e=>{l.set(e,[])}),a.forEach(e=>{let r=e.getNamePath();t.forEach(t=>{t.every((e,t)=>r[t]===e)&&l.update(t,t=>[...t,e])})});let s=e=>e.some(i),c=l.map(({value:e})=>e);return o?c.every(s):c.some(s)};isFieldTouched=e=>(this.warningUnhooked(),this.isFieldsTouched([e]));isFieldsValidating=e=>{this.warningUnhooked();let t=this.getFieldEntities();if(!e)return t.some(e=>e.isFieldValidating());let r=e.map(W);return t.some(e=>K(r,e.getNamePath())&&e.isFieldValidating())};isFieldValidating=e=>(this.warningUnhooked(),this.isFieldsValidating([e]));resetWithFieldInitialValue=(e={})=>{let t,r=new ea,n=this.getFieldEntities(!0);n.forEach(e=>{let{initialValue:t}=e.props,n=e.getNamePath();if(void 0!==t){let o=r.get(n)||new Set;o.add({entity:e,value:t}),r.set(n,o)}});let o=t=>{t.forEach(t=>{let{initialValue:n}=t.props;if(void 0!==n){let n=t.getNamePath();if(void 0!==this.getInitialValue(n))(0,a.$e)(!1,`Form already set 'initialValues' with path '${n.join(".")}'. Field can not overwrite it.`);else{let o=r.get(n);if(o&&o.size>1)(0,a.$e)(!1,`Multiple Field with path '${n.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(o){let r=this.getFieldValue(n);t.isListField()||e.skipExist&&void 0!==r||this.updateStore((0,a.hZ)(this.store,n,[...o][0].value))}}}})};e.entities?t=e.entities:e.namePathList?(t=[],e.namePathList.forEach(e=>{let n=r.get(e);n&&t.push(...[...n].map(e=>e.entity))})):t=n,o(t)};resetFields=e=>{this.warningUnhooked();let t=this.store;if(!e){this.updateStore((0,a.h1)(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:"reset"}),this.notifyWatch();return}let r=e.map(W);r.forEach(e=>{let t=this.getInitialValue(e);this.updateStore((0,a.hZ)(this.store,e,t))}),this.resetWithFieldInitialValue({namePathList:r}),this.notifyObservers(t,r,{type:"reset"}),this.notifyWatch(r)};setFields=e=>{this.warningUnhooked();let t=this.store,r=[];e.forEach(e=>{let{name:n,...o}=e,i=W(n);r.push(i),"value"in o&&this.updateStore((0,a.hZ)(this.store,i,o.value)),this.notifyObservers(t,[i],{type:"setField",data:e})}),this.notifyWatch(r)};getFields=()=>this.getFieldEntities(!0).map(e=>{let t=e.getNamePath(),r={...e.getMeta(),name:t,value:this.getFieldValue(t)};return Object.defineProperty(r,"originRCField",{value:!0}),r});initEntityValue=e=>{let{initialValue:t}=e.props;if(void 0!==t){let r=e.getNamePath();void 0===(0,a.Jt)(this.store,r)&&this.updateStore((0,a.hZ)(this.store,r,t))}};isMergedPreserve=e=>(void 0!==e?e:this.preserve)??!0;registerField=e=>{this.fieldEntities.push(e);let t=e.getNamePath();if(this.notifyWatch([t]),void 0!==e.props.initialValue){let t=this.store;this.resetWithFieldInitialValue({entities:[e],skipExist:!0}),this.notifyObservers(t,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return(r,n,o=[])=>{if(this.fieldEntities=this.fieldEntities.filter(t=>t!==e),!this.isMergedPreserve(n)&&(!r||o.length>1)){let e=r?void 0:this.getInitialValue(t);if(t.length&&this.getFieldValue(t)!==e&&this.fieldEntities.every(e=>!V(e.getNamePath(),t))){let r=this.store;this.updateStore((0,a.hZ)(r,t,e,!0)),this.notifyObservers(r,[t],{type:"remove"}),this.triggerDependenciesUpdate(r,t)}}this.notifyWatch([t])}};dispatch=e=>{switch(e.type){case"updateValue":{let{namePath:t,value:r}=e;this.updateValue(t,r);break}case"validateField":{let{namePath:t,triggerName:r}=e;this.validateFields([t],{triggerName:r})}}};notifyObservers=(e,t,r)=>{if(this.subscribable){let n={...r,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:r})=>{r(e,t,n)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(e,t)=>{let r=this.getDependencyChildrenFields(t);return r.length&&this.validateFields(r,{delayFrame:!0}),this.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t,...r]}),r};updateValue=(e,t)=>{let r=W(e),n=this.store;this.updateStore((0,a.hZ)(this.store,r,t)),this.notifyObservers(n,[r],{type:"valueUpdate",source:"internal"}),this.notifyWatch([r]);let o=this.triggerDependenciesUpdate(n,r),{onValuesChange:i}=this.callbacks;if(i){let e=q(this.store,[r]),t=this.getFieldsValue(),n=(0,a.hZ)(t,r,(0,a.Jt)(e,r));i(e,n)}this.triggerOnFieldsChange([r,...o])};setFieldsValue=e=>{this.warningUnhooked();let t=this.store;if(e){let t=(0,a.h1)(this.store,e);this.updateStore(t)}this.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()};setFieldValue=(e,t)=>{this.setFields([{name:e,value:t,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=e=>{let t=new Set,r=[],n=new ea;this.getFieldEntities().forEach(e=>{let{dependencies:t}=e.props;(t||[]).forEach(t=>{let r=W(t);n.update(r,(t=new Set)=>(t.add(e),t))})});let o=e=>{(n.get(e)||new Set).forEach(e=>{if(!t.has(e)){t.add(e);let n=e.getNamePath();e.isFieldDirty()&&n.length&&(r.push(n),o(n))}})};return o(e),r};triggerOnFieldsChange=(e,t)=>{let{onFieldsChange:r}=this.callbacks;if(r){let n=this.getFields();if(t){let e=new ea;t.forEach(({name:t,errors:r})=>{e.set(t,r)}),n.forEach(t=>{t.errors=e.get(t.name)||t.errors})}let o=n.filter(({name:t})=>K(e,t));o.length&&r(o,n)}};validateFields=(e,t)=>{let r,n,o,a,i;this.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,n=t):n=e;let l=!!r,s=l?r.map(W):[],c=[...s],u=[],d=String(Date.now()),f=new Set,{recursive:p,dirty:h}=n||{};this.getFieldEntities(!0).forEach(e=>{let t=e.getNamePath();if((l||(e.isList()&&s.some(e=>V(e,t,!0))||c.push(t),s.push(t)),e.props.rules&&e.props.rules.length)&&(!h||e.isFieldDirty())&&(f.add(t.join(d)),!l||K(s,t,p))){let r=e.validateRules({validateMessages:{...F,...this.validateMessages},...n});u.push(r.then(()=>({name:t,errors:[],warnings:[]})).catch(e=>{let r=[],n=[];return(e.forEach?.(({rule:{warningOnly:e},errors:t})=>{e?n.push(...t):r.push(...t)}),r.length)?Promise.reject({name:t,errors:r,warnings:n}):{name:t,errors:r,warnings:n}}))}});let m=(o=!1,a=u.length,i=[],u.length?new Promise((e,t)=>{u.forEach((r,n)=>{r.catch(e=>(o=!0,e)).then(r=>{a-=1,i[n]=r,a>0||(o&&t(i),e(i))})})}):Promise.resolve([]));this.lastValidatePromise=m,m.catch(e=>e).then(e=>{let t=e.map(({name:e})=>e);this.notifyObservers(this.store,t,{type:"validateFinish"}),this.triggerOnFieldsChange(t,e)});let g=m.then(()=>this.lastValidatePromise===m?Promise.resolve(this.getFieldsValue(c)):Promise.reject([])).catch(e=>{let t=e.filter(e=>e&&e.errors.length);return Promise.reject({message:t[0]?.errors?.[0],values:this.getFieldsValue(s),errorFields:t,outOfDate:this.lastValidatePromise!==m})});g.catch(e=>e);let b=s.filter(e=>f.has(e.join(d)));return this.triggerOnFieldsChange(b),g};submit=()=>{this.warningUnhooked(),this.validateFields().then(e=>{let{onFinish:t}=this.callbacks;if(t)try{t(e)}catch(e){console.error(e)}}).catch(e=>{let{onFinishFailed:t}=this.callbacks;t&&t(e)})}}var el=function(e){let t=o.useRef(null),[,r]=o.useState({});return t.current||(e?t.current=e:t.current=new ei(()=>{r({})}).getForm()),[t.current]};let es=o.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}});function ec(){return(ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function eu(e){try{return JSON.stringify(e)}catch{return Math.random()}}let ed=o.forwardRef((e,t)=>{let r,{name:n,initialValues:a,fields:l,form:u,preserve:d,children:f,component:p="form",validateMessages:h,validateTrigger:m="onChange",onValuesChange:g,onFieldsChange:b,onFinish:v,onFinishFailed:y,clearOnDestroy:$,...x}=e,w=o.useRef(null),E=o.useContext(es),[C]=el(u),{useSubscribe:k,setInitialValues:S,setCallbacks:A,setValidateMessages:M,setPreserve:N,destroyForm:O}=C.getInternalHooks(i);o.useImperativeHandle(t,()=>({...C,nativeElement:w.current})),o.useEffect(()=>(E.registerForm(n,C),()=>{E.unregisterForm(n)}),[E,C,n]),M({...E.validateMessages,...h}),A({onValuesChange:g,onFieldsChange:(e,...t)=>{E.triggerFormChange(n,e),b&&b(e,...t)},onFinish:e=>{E.triggerFormFinish(n,e),v&&v(e)},onFinishFailed:y}),N(d);let I=o.useRef(null);S(a,!I.current),I.current||(I.current=!0),o.useEffect(()=>()=>O($),[]);let P="function"==typeof f;r=P?f(C.getFieldsValue(!0),C):f,k(!P);let R=o.useRef(null);o.useEffect(()=>{var e,t;e=R.current||[],e===(t=l||[])||(e||!t)&&(!e||t)&&e&&t&&"object"==typeof e&&"object"==typeof t&&[...new Set([...Object.keys(e),...Object.keys(t)])].every(r=>{let n=e[r],o=t[r];return"function"==typeof n&&"function"==typeof o||n===o})||C.setFields(l||[]),R.current=l},[l,C]);let z=o.useMemo(()=>({...C,validateTrigger:m}),[C,m]),T=o.createElement(c.Provider,{value:null},o.createElement(s.Provider,{value:z},r));return!1===p?T:o.createElement(p,ec({},x,{ref:w,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),C.submit()},onReset:e=>{e.preventDefault(),C.resetFields(),x.onReset?.(e)}}),T)});ed.FormProvider=({validateMessages:e,onFormChange:t,onFormFinish:r,children:n})=>{let a=o.useContext(es),i=o.useRef({});return o.createElement(es.Provider,{value:{...a,validateMessages:{...a.validateMessages,...e},triggerFormChange:(e,r)=>{t&&t(e,{changedFields:r,forms:i.current}),a.triggerFormChange(e,r)},triggerFormFinish:(e,t)=>{r&&r(e,{values:t,forms:i.current}),a.triggerFormFinish(e,t)},registerForm:(e,t)=>{e&&(i.current={...i.current,[e]:t}),a.registerForm(e,t)},unregisterForm:e=>{let t={...i.current};delete t[e],i.current=t,a.unregisterForm(e)}}},n)},ed.Field=er,ed.List=function({name:e,initialValue:t,children:r,rules:n,validateTrigger:i,isListField:l}){let u=o.useContext(s),d=o.useContext(c),f=o.useRef({keys:[],id:0}).current,p=o.useMemo(()=>[...W(u.prefixName)||[],...W(e)],[u.prefixName,e]),h=o.useMemo(()=>({...u,prefixName:p}),[u,p]),m=o.useMemo(()=>({getKey:e=>{let t=p.length,r=e[t];return[f.keys[r],e.slice(t+1)]}}),[f,p]);return"function"!=typeof r?((0,a.$e)(!1,"Form.List only accepts function as children."),null):o.createElement(c.Provider,{value:m},o.createElement(s.Provider,{value:h},o.createElement(er,{name:[],shouldUpdate:(e,t,{source:r})=>"internal"!==r&&e!==t,rules:n,validateTrigger:i,initialValue:t,isList:!0,isListField:l??!!d},({value:e=[],onChange:t},n)=>{let{getFieldValue:o}=u,a=()=>o(p||[])||[],i=e||[];return Array.isArray(i)||(i=[]),r(i.map((e,t)=>{let r=f.keys[t];return void 0===r&&(f.keys[t]=f.id,r=f.keys[t],f.id+=1),{name:t,key:r,isListField:!0}}),{add:(e,r)=>{let n=a();r>=0&&r<=n.length?(f.keys=[...f.keys.slice(0,r),f.id,...f.keys.slice(r)],t([...n.slice(0,r),e,...n.slice(r)])):(f.keys=[...f.keys,f.id],t([...n,e])),f.id+=1},remove:e=>{let r=a(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(f.keys=f.keys.filter((e,t)=>!n.has(t)),t(r.filter((e,t)=>!n.has(t))))},move(e,r){if(e===r)return;let n=a();e<0||e>=n.length||r<0||r>=n.length||(f.keys=X(f.keys,e,r),t(X(n,e,r)))}},n)})))},ed.useForm=el,ed.useWatch=function(...e){let[t,r={}]=e,n=r&&r._init?{form:r}:r,l=n.form,[c,u]=(0,o.useState)(()=>"function"==typeof t?t({}):void 0),d=(0,o.useMemo)(()=>eu(c),[c]);(0,o.useRef)(d).current=d;let f=(0,o.useContext)(s),p=l||f,h=p&&p._init,{getFieldsValue:m,getInternalHooks:g}=p,{registerWatch:b}=g(i),v=(0,a._q)((e,r)=>{let o=n.preserve?r??m(!0):e??m(),i="function"==typeof t?t(o):(0,a.Jt)(o,W(t));eu(c)!==eu(i)&&u(i)}),y="function"==typeof t?t:JSON.stringify(t);return(0,o.useEffect)(()=>{h&&v()},[h,y]),(0,o.useEffect)(()=>{if(h)return b((e,t)=>{v(e,t)})},[h]),c};let ef=o.createContext({}),ep=({children:e,status:t,override:r})=>{let n=o.useContext(ef),a=o.useMemo(()=>{let e={...n};return r&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,r,n]);return o.createElement(ef.Provider,{value:a},e)},eh=o.createContext(void 0)},1679(e,t,r){var n=r(1102),o=r(7034),a=r(850);t.A=(e,t,r)=>{let i,{variant:l,[e]:s}=n.useContext(o.QO),c=n.useContext(a.Pp),u=s?.variant;i=void 0!==t?t:!1===r?"borderless":c??u??l??"outlined";let d=o.lJ.includes(i);return[i,d]}},2438(e,t,r){r.d(t,{A:()=>eu});var n=r(1102),o=r(3085),a=r(252),i=r(2875);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let s=n.forwardRef((e,t)=>n.createElement(i.A,l({},e,{ref:t,icon:a.A})));var c=r(8286);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let d=n.forwardRef((e,t)=>n.createElement(i.A,u({},e,{ref:t,icon:c.A})));var f=r(2096),p=r(7401),h=r(8209),m=r(663);function g(){return"function"==typeof BigInt}function b(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function v(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var n=t||"0",o=n.split("."),a=o[0]||"0",i=o[1]||"0";"0"===a&&"0"===i&&(r=!1);var l=r?"-":"";return{negative:r,negativeStr:l,trimStr:n,integerStr:a,decimalStr:i,fullStr:"".concat(l).concat(n)}}function y(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function $(e){var t=String(e);if(y(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return null!=n&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&w(t)?t.length-t.indexOf(".")-1:0}function x(e){var t=String(e);if(y(e)){if(e>Number.MAX_SAFE_INTEGER)return String(g()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(g()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed($(t))}return v(t).fullStr}function w(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var E=function(){function e(t){if((0,p.A)(this,e),(0,m.A)(this,"origin",""),(0,m.A)(this,"negative",void 0),(0,m.A)(this,"integer",void 0),(0,m.A)(this,"decimal",void 0),(0,m.A)(this,"decimalLen",void 0),(0,m.A)(this,"empty",void 0),(0,m.A)(this,"nan",void 0),b(t)){this.empty=!0;return}if(this.origin=String(t),"-"===t||Number.isNaN(t)){this.nan=!0;return}var r=t;if(y(r)&&(r=Number(r)),w(r="string"==typeof r?r:x(r))){var n=v(r);this.negative=n.negative;var o=n.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return(0,h.A)(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){return BigInt("".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0")))}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,r,n){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),a=r(this.alignDecimal(o),t.alignDecimal(o)).toString(),i=n(o),l=v(a),s=l.negativeStr,c=l.trimStr,u="".concat(s).concat(c.padStart(i+1,"0"));return new e("".concat(u.slice(0,-i),".").concat(u.slice(-i)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var r=new e(t);return r.isInvalidate()?this:this.cal(r,function(e,t){return e+t},function(e){return e})}},{key:"multi",value:function(t){var r=new e(t);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(e,t){return e*t},function(e){return 2*e})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return 0>=this.add(e.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?this.isInvalidate()?"":v("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),C=function(){function e(t){if((0,p.A)(this,e),(0,m.A)(this,"origin",""),(0,m.A)(this,"number",void 0),(0,m.A)(this,"empty",void 0),b(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return(0,h.A)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var r=Number(t);if(Number.isNaN(r))return this;var n=this.number+r;if(n>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(n<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max($(this.number),$(r));return new e(n.toFixed(o))}},{key:"multi",value:function(t){var r=Number(t);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var n=this.number*r;if(n>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(n<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max($(this.number),$(r));return new e(n.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return 0>=this.add(e.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?this.isInvalidate()?"":x(this.number):this.origin}}]),e}();function k(e){return g()?new E(e):new C(e)}function S(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=v(e),a=o.negativeStr,i=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),c="".concat(a).concat(i);if(r>=0){var u=Number(l[r]);return u>=5&&!n?S(k(e).add("".concat(a,"0.").concat("0".repeat(r)).concat(10-u)).toString(),t,r,n):0===r?c:"".concat(c).concat(t).concat(l.padEnd(r,"0").slice(0,r))}return".0"===s?c:"".concat(c).concat(s)}var A=r(9968),M=r(851),N=r(2667),O=r(7810);function I({prefixCls:e,action:t,children:r,disabled:o,className:a,style:i,onStep:l}){let s="up"===t,c=n.useRef(),u=n.useRef([]),d=()=>{clearTimeout(c.current)};n.useEffect(()=>()=>{d(),u.current.forEach(e=>{O.A.cancel(e)})},[]);let f=`${e}-action`,p=(0,M.$)(f,`${f}-${t}`,{[`${f}-${t}-disabled`]:o},a),h=()=>u.current.push((0,O.A)(d));return n.createElement("span",{unselectable:"on",role:"button",onMouseUp:h,onMouseLeave:h,onMouseDown:e=>{e.preventDefault(),d(),l(s,"handler"),c.current=setTimeout(function e(){l(s,"handler"),c.current=setTimeout(e,200)},600)},"aria-label":s?"Increase Value":"Decrease Value","aria-disabled":o,className:p,style:i},r||n.createElement("span",{unselectable:"on",className:`${e}-action-${t}-inner`}))}function P(e){let t="number"==typeof e?x(e):v(e).fullStr;return t.includes(".")?v(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var R=r(7972),z=r(4580);function T(){return(T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let B=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),D=e=>{let t=k(e);return t.isInvalidate()?null:t},F=n.forwardRef((e,t)=>{var r;let o,a,i,{mode:l="input",prefixCls:s="rc-input-number",className:c,style:u,classNames:d,styles:f,min:p,max:h,step:m=1,defaultValue:g,value:b,disabled:v,readOnly:y,upHandler:E,downHandler:C,keyboard:F,changeOnWheel:L=!1,controls:H=!0,prefix:j,suffix:_,stringMode:W,parser:q,formatter:K,precision:V,decimalSeparator:X,onChange:G,onInput:U,onPressEnter:Y,onStep:Q,onMouseDown:Z,onClick:J,onMouseUp:ee,onMouseLeave:et,onMouseMove:er,onMouseEnter:en,onMouseOut:eo,changeOnBlur:ea=!0,...ei}=e,[el,es]=n.useState(!1),ec=n.useRef(!1),eu=n.useRef(!1),ed=n.useRef(!1),ef=n.useRef(null),ep=n.useRef(null);n.useImperativeHandle(t,()=>{var e,t;return e=ep.current,t={focus:e=>{(0,z.F4)(ep.current,e)},blur:()=>{ep.current?.blur()},nativeElement:ef.current},"u">typeof Proxy&&e?new Proxy(e,{get(e,r){if(t[r])return t[r];let n=e[r];return"function"==typeof n?n.bind(e):n}}):e});let[eh,em]=n.useState(()=>k(b??g)),eg=n.useCallback((e,t)=>{if(!t)return V>=0?V:Math.max($(e),$(m))},[V,m]),eb=n.useCallback(e=>{let t=String(e);if(q)return q(t);let r=t;return X&&(r=r.replace(X,".")),r.replace(/[^\w.-]+/g,"")},[q,X]),ev=n.useRef(""),ey=n.useCallback((e,t)=>{if(K)return K(e,{userTyping:t,input:String(ev.current)});let r="number"==typeof e?x(e):e;if(!t){let e=eg(r,t);w(r)&&(X||e>=0)&&(r=S(r,X||".",e))}return r},[K,eg,X]),[e$,ex]=n.useState(()=>{let e=g??b;return eh.isInvalidate()&&["string","number"].includes(typeof e)?Number.isNaN(e)?"":e:ey(eh.toString(),!1)});function ew(e,t){ex(ey(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}ev.current=e$;let eE=n.useMemo(()=>D(h),[h,V]),eC=n.useMemo(()=>D(p),[p,V]),ek=n.useMemo(()=>!(!eE||!eh||eh.isInvalidate())&&eE.lessEquals(eh),[eE,eh]),eS=n.useMemo(()=>!(!eC||!eh||eh.isInvalidate())&&eh.lessEquals(eC),[eC,eh]),[eA,eM]=(r=ep.current,o=(0,n.useRef)(null),[function(){try{let{selectionStart:e,selectionEnd:t,value:n}=r,a=n.substring(0,e),i=n.substring(t);o.current={start:e,end:t,value:n,beforeTxt:a,afterTxt:i}}catch(e){}},function(){if(r&&o.current&&el)try{let{value:e}=r,{beforeTxt:t,afterTxt:n,start:a}=o.current,i=e.length;if(e.startsWith(t))i=t.length;else if(e.endsWith(n))i=e.length-o.current.afterTxt.length;else{let r=t[a-1],n=e.indexOf(r,a-1);-1!==n&&(i=n+1)}r.setSelectionRange(i,i)}catch(e){(0,N.Ay)(!1,`Something warning of cursor restore. Please fire issue about this: ${e.message}`)}}]),eN=e=>eE&&!e.lessEquals(eE)?eE:eC&&!eC.lessEquals(e)?eC:null,eO=(e,t)=>{let r=e,n=!eN(r)||r.isEmpty();if(r.isEmpty()||t||(r=eN(r)||r,n=!0),!y&&!v&&n){let e=r.toString(),n=eg(e,t);if(n>=0&&eN(r=k(S(e,".",n)))&&(r=k(S(e,".",n,!0))),!r.equals(eh)){var o;o=r,void 0===b&&em(o),G?.(r.isEmpty()?null:B(W,r)),void 0===b&&ew(r,t)}return r}return eh},eI=(a=(0,n.useRef)(0),i=()=>{O.A.cancel(a.current)},(0,n.useEffect)(()=>i,[]),e=>{i(),a.current=(0,O.A)(()=>{e()})}),eP=e=>{if(eA(),ev.current=e,ex(e),!eu.current){let t=k(eb(e));t.isNaN()||eO(t,!0)}U?.(e),eI(()=>{let t=e;q||(t=e.replace(/。/g,".")),t!==e&&eP(t)})},eR=(0,R._q)((e,t)=>{if(e&&ek||!e&&eS)return;ec.current=!1;let r=k(ed.current?P(m):m);e||(r=r.negate());let n=eO((eh||k(0)).add(r.toString()),!1);Q?.(B(W,n),{offset:ed.current?P(m):m,type:e?"up":"down",emitter:t}),ep.current?.focus()}),ez=e=>{let t,r=k(eb(e$));t=r.isNaN()?eO(eh,e):eO(r,e),void 0!==b?ew(eh,!1):t.isNaN()||ew(t,!1)};n.useEffect(()=>{if(L&&el){let e=e=>{eR(e.deltaY<0,"wheel"),e.preventDefault()},t=ep.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),()=>t.removeEventListener("wheel",e)}}),(0,A.o)(()=>{eh.isInvalidate()||ew(eh,!1)},[V,K]),(0,A.o)(()=>{let e=k(b);em(e);let t=k(eb(e$));e.equals(t)&&ec.current&&!K||ew(e,ec.current)},[b]),(0,A.o)(()=>{K&&eM()},[e$]);let eT={prefixCls:s,onStep:eR,className:d?.action,style:f?.action},eB=n.createElement(I,T({},eT,{action:"up",disabled:ek}),E),eD=n.createElement(I,T({},eT,{action:"down",disabled:eS}),C);return n.createElement("div",{ref:ef,className:(0,M.$)(s,`${s}-mode-${l}`,c,d?.root,{[`${s}-focused`]:el,[`${s}-disabled`]:v,[`${s}-readonly`]:y,[`${s}-not-a-number`]:eh.isNaN(),[`${s}-out-of-range`]:!eh.isInvalidate()&&!!eN(eh)}),style:{...f?.root,...u},onMouseDown:e=>{ep.current&&e.target!==ep.current&&(ep.current.focus(),e.preventDefault()),Z?.(e)},onMouseUp:ee,onMouseLeave:et,onMouseMove:er,onMouseEnter:en,onMouseOut:eo,onClick:J,onFocus:()=>{es(!0)},onBlur:()=>{ea&&ez(!1),es(!1),ec.current=!1},onKeyDown:e=>{let{key:t,shiftKey:r}=e;ec.current=!0,ed.current=r,"Enter"===t&&(eu.current||(ec.current=!1),ez(!1),Y?.(e)),!1!==F&&!eu.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(eR("Up"===t||"ArrowUp"===t,"keyboard"),e.preventDefault())},onKeyUp:()=>{ec.current=!1,ed.current=!1},onCompositionStart:()=>{eu.current=!0},onCompositionEnd:()=>{eu.current=!1,eP(ep.current.value)},onBeforeInput:()=>{ec.current=!0}},"spinner"===l&&H&&eD,void 0!==j&&n.createElement("div",{className:(0,M.$)(`${s}-prefix`,d?.prefix),style:f?.prefix},j),n.createElement("input",T({autoComplete:"off",role:"spinbutton","aria-valuemin":p,"aria-valuemax":h,"aria-valuenow":eh.isInvalidate()?null:eh.toString(),step:m,ref:ep,className:(0,M.$)(`${s}-input`,d?.input),style:f?.input,value:e$,onChange:e=>{eP(e.target.value)},disabled:v,readOnly:y},ei)),void 0!==_&&n.createElement("div",{className:(0,M.$)(`${s}-suffix`,d?.suffix),style:f?.suffix},_),"spinner"===l&&H&&eB,"input"===l&&H&&n.createElement("div",{className:(0,M.$)(`${s}-actions`,d?.actions),style:f?.actions},eB,eD))});var L=r(6192),H=r(2382),j=r(9882),_=r(1387),W=r(3692),q=r(7034),K=r(8306),V=r(941),X=r(1984),G=r(850),U=r(1679),Y=r(9888),Q=r(9838),Z=r(9078),J=r(9815),ee=r(954),et=r(21),er=r(4440),en=r(3677),eo=r(9233),ea=r(8528),ei=r(3055),el=(0,eo.OF)("InputNumber",e=>{let t=(0,ea.oX)(e,(0,ee.C)(e));return[(e=>{let{componentCls:t,lineWidth:r,lineType:n,borderRadius:o,inputFontSizeSM:a,inputFontSizeLG:i,colorError:l,paddingInlineSM:s,paddingBlockSM:c,paddingBlockLG:u,paddingInlineLG:d,colorIcon:f,colorTextDisabled:p,motionDurationMid:h,handleHoverColor:m,handleOpacity:g,paddingInline:b,paddingBlock:v,handleBg:y,handleActiveBg:$,inputAffixPadding:x,borderRadiusSM:w,controlWidth:E,handleBorderColor:C,filledHandleBg:k,lineHeightLG:S,antCls:A}=e,M=`${(0,Z.zA)(r)} ${n} ${C}`,[N,O]=(0,eo.PN)(A,"input-number");return[{[t]:{...(0,er.dF)(e),...(0,J.wj)(e),[N("input-padding-block")]:(0,Z.zA)(v),[N("input-padding-inline")]:(0,Z.zA)(b),display:"inline-flex",width:E,margin:0,paddingBlock:0,borderRadius:o,...(0,et.Eb)(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:M}}}),...(0,et.sA)(e,{[`${t}-actions`]:{background:k,[`${t}-action-down`]:{borderBlockStart:M}},"&:focus-within":{[`${t}-actions`]:{background:y}}}),...(0,et.aP)(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:M}}}),...(0,et.lB)(e),[`&${t}-borderless`]:{paddingBlock:0,[N("input-padding-block")]:(0,Z.zA)(e.calc(v).add(r).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[N("input-padding-block")]:(0,Z.zA)(e.calc(c).add(r).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[N("input-padding-block")]:(0,Z.zA)(e.calc(u).add(r).equal())},"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:l}},[`${t}-input`]:{...(0,er.dF)(e),width:"100%",paddingBlock:O("input-padding-block"),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:0,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit",lineHeight:"inherit",...(0,J.j_)(e.colorTextPlaceholder),'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&-disabled ${t}-input`]:{cursor:"not-allowed",color:e.colorTextDisabled}}},{[t]:{[`${t}-action`]:{...(0,er.Nk)(),userSelect:"none",overflow:"hidden",fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",transition:`all ${h} linear`,[`&:active:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{background:$},[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{color:m},[`&${t}-action-up-disabled, &${t}-action-down-disabled`]:{cursor:"not-allowed",color:p}},"&-mode-input":{overflow:"hidden",[`${t}-actions`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:g,height:"100%",borderRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${h}`,overflow:"hidden",[`${t}-action`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",marginInlineEnd:0,fontSize:e.handleFontSize}},[`&:hover ${t}-actions, &-focused ${t}-actions`]:{width:e.handleWidth,opacity:1},[`${t}-action`]:{color:f,height:"50%",borderInlineStart:M,[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{height:"60%"}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:"none"}}},[`&${t}-mode-spinner`]:{padding:0,width:"auto",[`${t}-action`]:{flex:"none",paddingInline:O("input-padding-inline"),"&-up":{borderInlineStart:M},"&-down":{borderInlineEnd:M}},[`${t}-input`]:{textAlign:"center",paddingInline:O("input-padding-inline")}}}},{[t]:{"&-lg":{[N("input-padding-block")]:(0,Z.zA)(u),[N("input-padding-inline")]:(0,Z.zA)(d),paddingBlock:0,fontSize:i,lineHeight:S},"&-sm":{[N("input-padding-block")]:(0,Z.zA)(c),[N("input-padding-inline")]:(0,Z.zA)(s),paddingBlock:0,fontSize:a,borderRadius:w}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:"flex",flex:"none",alignItems:"center",alignSelf:"center",pointerEvents:"none"},[`${t}-prefix`]:{marginInlineEnd:x},[`${t}-suffix`]:{height:"100%",marginInlineStart:x,transition:`margin ${h}`},[`&:hover:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}]})(t),(e=>{let{componentCls:t,antCls:r}=e;return{[`${t}-addon`]:{[`&:has(${r}-select)`]:{border:0,padding:0}}}})(t),(0,en.G)(t)]},e=>{let t=e.handleVisible??"auto",r=e.controlHeightSM-2*e.lineWidth;return{...(0,ee.b)(e),controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new ei.Y(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:+(!0===t),handleVisibleWidth:!0===t?r:0}},{unitless:{handleOpacity:!0},resetFont:!1});let es=n.forwardRef((e,t)=>{let r=n.useRef(null);n.useImperativeHandle(t,()=>r.current);let{rootClassName:a,size:i,disabled:l,prefixCls:c,addonBefore:u,addonAfter:p,prefix:h,suffix:m,bordered:g,readOnly:b,status:v,controls:y=!0,variant:$,className:x,style:w,classNames:E,styles:C,mode:k,...S}=e,{direction:A,className:N,style:O,styles:I,classNames:P}=(0,q.TP)("inputNumber"),R=n.useContext(K.A),z=l??R,T=n.useMemo(()=>!!y&&!z&&!b&&y,[y,z,b]),{compactSize:B,compactItemClassnames:D}=(0,Q.RQ)(c,A),L="spinner"===k?n.createElement(d,null):n.createElement(f.A,null),W="spinner"===k?n.createElement(s,null):n.createElement(o.A,null),V="boolean"==typeof T?T:void 0;(0,j.Qd)(T)&&(L=T.upIcon||L,W=T.downIcon||W);let{hasFeedback:Y,isFormItemInput:Z,feedbackIcon:J}=n.useContext(G.$W),ee=(0,X.A)(e=>i??B??e),[et,er]=(0,U.A)("inputNumber",$,g),en=(Y||m)&&n.createElement(n.Fragment,null,m,Y&&J),eo={...e,size:ee,disabled:z,controls:T},ea=(0,H.XT)(O),ei=(0,H.XT)(w),[el,es]=(0,H.AV)([P,E],[I,ea,C,ei],{props:eo});return n.createElement(F,{ref:r,mode:k,disabled:z,className:(0,M.$)(x,a,el.root,N,D,(0,_.L)(c,v,Y),{[`${c}-${et}`]:er,[`${c}-lg`]:"large"===ee,[`${c}-sm`]:"small"===ee,[`${c}-rtl`]:"rtl"===A,[`${c}-in-form-item`]:Z,[`${c}-without-controls`]:!T}),style:es.root,upHandler:L,downHandler:W,prefixCls:c,readOnly:b,controls:V,prefix:h,suffix:en,classNames:el,styles:es,...S})}),ec=n.forwardRef((e,t)=>{let{addonBefore:r,addonAfter:o,prefixCls:a,className:i,status:l,rootClassName:s,...c}=e,{getPrefixCls:u}=(0,q.TP)("inputNumber"),d=u("input-number",a),{status:f}=n.useContext(G.$W),p=(0,_.v)(f,l),h=(0,V.A)(d),[m,g]=el(d,h),b=r||o,v=n.createElement(es,{ref:t,...c,prefixCls:d,status:p,className:(0,M.$)(g,h,m,i),rootClassName:b?void 0:s});if(b){let t=t=>t?n.createElement(Y.A,{className:(0,M.$)(`${d}-addon`,g,m),variant:e.variant,disabled:e.disabled,status:p},n.createElement(L.A,{form:!0},t)):null,a=t(r),i=t(o);return n.createElement(Q.Ay,{rootClassName:s},a,v,i)}return v});ec._InternalPanelDoNotUseOrYouWillBeFired=e=>n.createElement(W.Ay,{theme:{components:{InputNumber:{handleVisible:!0}}}},n.createElement(ec,{...e}));var eu=ec},3228(e,t,r){let n;r.d(t,{A:()=>eC});var o=r(1102),a=r(851),i=r(7034),l=r(850),s=r(7972),c=r(9882);function u(e){return["small","middle","medium","large"].includes(e)}function d(e){return!!e&&(0,c.Et)(e)}var f=r(4340),p=r(2382),h=r(9888),m=r(9838);let g=o.createContext({latestIndex:0}),b=g.Provider;var v=e=>{let{className:t,prefix:r,index:n,children:i,separator:l,style:s,classNames:u,styles:d}=e,{latestIndex:f}=o.useContext(g);return(0,c.AZ)(i)?o.createElement(o.Fragment,null,o.createElement("div",{className:t,style:s},i),n<f&&l&&o.createElement("span",{className:(0,a.$)(`${r}-item-separator`,u?.separator),style:d?.separator},l)):null},y=r(9233),$=r(8528),x=(0,y.OF)("Space",e=>{let t=(0,$.oX)(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[(e=>{let{componentCls:t,antCls:r}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}})(t),(e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}})(t)]},()=>({}),{resetStyle:!1});let w=o.forwardRef((e,t)=>{let{getPrefixCls:r,direction:n,size:l,className:h,style:m,classNames:g,styles:y}=(0,i.TP)("space"),{size:$=l??"small",align:w,className:E,rootClassName:C,children:k,direction:S,orientation:A,prefixCls:M,split:N,separator:O,style:I,vertical:P,wrap:R=!1,classNames:z,styles:T,...B}=e,[D,F]=Array.isArray($)?$:[$,$],L=u(F),H=u(D),j=d(F),_=d(D),W=(0,s.$r)(k,{keepEmpty:!0}),[q,K]=(0,f.M)(A,P,S),V=void 0!==w||K?w:"center",X=O??N,G=r("space",M),[U,Y]=x(G),Q={...e,size:$,orientation:q,align:V},[Z,J]=(0,p.AV)([g,z],[y,T],{props:Q}),ee=(0,a.$)(G,h,U,`${G}-${q}`,{[`${G}-rtl`]:"rtl"===n,[`${G}-align-${V}`]:V,[`${G}-gap-row-${F}`]:L,[`${G}-gap-col-${D}`]:H},E,C,Y,Z.root),et=(0,a.$)(`${G}-item`,Z.item),er=W.map((e,t)=>{let r=e?.key||`${et}-${t}`;return o.createElement(v,{prefix:G,classNames:Z,styles:J,className:et,key:r,index:t,separator:X,style:J.item},e)}),en=o.useMemo(()=>({latestIndex:W.reduce((e,t,r)=>(0,c.AZ)(t)?r:e,0)}),[W]);if(0===W.length)return null;let eo={};return R&&(eo.flexWrap="wrap"),!H&&_&&(eo.columnGap=D),!L&&j&&(eo.rowGap=F),o.createElement("div",{ref:t,className:ee,style:{...eo,...J.root,...m,...I},...B},o.createElement(b,{value:en},er))});w.Compact=m.Ay,w.Addon=h.A;var E=r(9815);function C(e,t,r){let n=t.cloneNode(!0),o=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},o}function k(e,t,r,n){if(!r)return;let o=t;"click"===t.type?r(o=C(t,e,"")):"file"!==e.type&&void 0!==n?r(o=C(t,e,n)):r(o)}function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let A=o.forwardRef((e,t)=>{let{inputElement:r,children:n,prefixCls:i,prefix:l,suffix:s,addonBefore:c,addonAfter:u,className:d,style:f,disabled:p,readOnly:h,focused:m,triggerFocus:g,allowClear:b,value:v,handleReset:y,hidden:$,classes:x,classNames:w,dataAttrs:E,styles:C,components:k,onClear:A}=e,M=n??r,N=k?.affixWrapper||"span",O=k?.groupWrapper||"span",I=k?.wrapper||"span",P=k?.groupAddon||"span",R=(0,o.useRef)(null),z=!!(e.prefix||e.suffix||e.allowClear),T=(0,o.cloneElement)(M,{value:v,className:(0,a.$)(M.props?.className,!z&&w?.variant)||null}),B=(0,o.useRef)(null);if(o.useImperativeHandle(t,()=>({nativeElement:B.current||R.current})),z){let e=null;if(b){let t=!p&&!h&&v&&!("object"==typeof b&&b.disabled),r=`${i}-clear-icon`,n="object"==typeof b&&b?.clearIcon?b.clearIcon:"✖";e=o.createElement("button",{type:"button",onClick:e=>{y?.(e),A?.()},onMouseDown:e=>e.preventDefault(),className:(0,a.$)(r,{[`${r}-hidden`]:!t,[`${r}-has-suffix`]:!!s},w?.clear),style:C?.clear},n)}let t=`${i}-affix-wrapper`,r=(0,a.$)(t,{[`${i}-disabled`]:p,[`${t}-disabled`]:p,[`${t}-focused`]:m,[`${t}-readonly`]:h,[`${t}-input-with-clear-btn`]:s&&b&&v},x?.affixWrapper,w?.affixWrapper,w?.variant),n=(s||b)&&o.createElement("span",{className:(0,a.$)(`${i}-suffix`,w?.suffix),style:C?.suffix},e,s);T=o.createElement(N,S({className:r,style:C?.affixWrapper,onClick:e=>{R.current?.contains(e.target)&&g?.()}},E?.affixWrapper,{ref:R}),l&&o.createElement("span",{className:(0,a.$)(`${i}-prefix`,w?.prefix),style:C?.prefix},l),T,n)}if(e.addonBefore||e.addonAfter){let e=`${i}-group`,t=`${e}-addon`,r=`${e}-wrapper`,n=(0,a.$)(`${i}-wrapper`,e,x?.wrapper,w?.wrapper),l=(0,a.$)(r,{[`${r}-disabled`]:p},x?.group,w?.groupWrapper);T=o.createElement(O,{className:l,ref:B},o.createElement(I,{className:n},c&&o.createElement(P,{className:t},c),T,u&&o.createElement(P,{className:t},u)))}return o.cloneElement(T,{className:(0,a.$)(T.props?.className,d)||null,style:{...T.props?.style,...f},hidden:$})});function M(e,t){return o.useMemo(()=>{let r={};t&&(r.show="object"==typeof t&&t.formatter?t.formatter:!!t);let{show:n,...o}=r={...r,...e};return{...o,show:!!n,showFormatter:"function"==typeof n?n:void 0,strategy:o.strategy||(e=>e.length)}},[e,t])}function N({countConfig:e,value:t,maxLength:r}){return o.useMemo(()=>{let n=e.max??r,o=e.strategy(t),a=!!n&&o>n,i=Number(n)>0,l=e.show?e.showFormatter?e.showFormatter({value:t,count:o,maxLength:n}):`${o}${i?` / ${n}`:""}`:void 0;return{mergedMax:n,isOutOfRange:a,dataCount:l}},[e,r,t])}function O({countConfig:e,getTarget:t}){let[r,n]=o.useState(null),a=o.useRef(t);return o.useEffect(()=>{a.current=t},[t]),o.useEffect(()=>{r&&(a.current()?.setSelectionRange(...r),n(null))},[r]),o.useCallback((t,r)=>{let o=t;return!r&&e.exceedFormatter&&e.max&&e.strategy(t)>e.max&&(o=e.exceedFormatter(t,{max:e.max}),t!==o&&n([a.current()?.selectionStart||0,a.current()?.selectionEnd||0])),o},[e])}function I(e,t){let[r,n]=(0,s.PW)(e,t),o=null==r?"":String(r);return{value:r,setValue:n,formatValue:o}}function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let R=(0,o.forwardRef)((e,t)=>{let r,{autoComplete:n,onChange:i,onFocus:l,onBlur:c,onPressEnter:u,onKeyDown:d,onKeyUp:f,prefixCls:p="rc-input",disabled:h,htmlSize:m,className:g,maxLength:b,suffix:v,showCount:y,count:$,type:x="text",classes:w,classNames:E,styles:C,onCompositionStart:S,onCompositionEnd:R,...z}=e,[T,B]=(0,o.useState)(!1),D=(0,o.useRef)(!1),F=(0,o.useRef)(!1),L=(0,o.useRef)(null),H=(0,o.useRef)(null),j=e=>{L.current&&(0,s.F4)(L.current,e)},{setValue:_,formatValue:W}=I(e.defaultValue,e.value),q=M($,y),{isOutOfRange:K,dataCount:V}=N({countConfig:q,value:W,maxLength:b}),X=O({countConfig:q,getTarget:()=>L.current});(0,o.useImperativeHandle)(t,()=>({focus:j,blur:()=>{L.current?.blur()},setSelectionRange:(e,t,r)=>{L.current?.setSelectionRange(e,t,r)},select:()=>{L.current?.select()},input:L.current,nativeElement:H.current?.nativeElement||L.current})),(0,o.useEffect)(()=>{F.current&&(F.current=!1),B(e=>(!e||!h)&&e)},[h]);let G=(e,t,r)=>{let n=X(t,D.current);("compositionEnd"!==r.source||t!==n)&&(_(n),L.current&&k(L.current,e,i,n))},U=K&&`${p}-out-of-range`;return o.createElement(A,P({},z,{prefixCls:p,className:(0,a.$)(g,U),handleReset:e=>{_(""),j(),L.current&&k(L.current,e,i)},value:W,focused:T,triggerFocus:j,suffix:v||q.show?o.createElement(o.Fragment,null,q.show&&o.createElement("span",{className:(0,a.$)(`${p}-show-count-suffix`,{[`${p}-show-count-has-suffix`]:!!v},E?.count),style:{...C?.count}},V),v):null,disabled:h,classes:w,classNames:E,styles:C,ref:H}),(r=(0,s.cJ)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),o.createElement("input",P({autoComplete:n},r,{onChange:e=>{G(e,e.target.value,{source:"change"})},onFocus:e=>{B(!0),l?.(e)},onBlur:e=>{F.current&&(F.current=!1),B(!1),c?.(e)},onKeyDown:e=>{!u||"Enter"!==e.key||F.current||e.nativeEvent.isComposing||(F.current=!0,u(e)),d?.(e)},onKeyUp:e=>{"Enter"===e.key&&(F.current=!1),f?.(e)},className:(0,a.$)(p,{[`${p}-disabled`]:h},E?.input),style:C?.input,ref:L,size:m,type:x,onCompositionStart:e=>{D.current=!0,S?.(e)},onCompositionEnd:e=>{D.current=!1,G(e,e.currentTarget.value,{source:"compositionEnd"}),R?.(e)}}))))});var z=r(6175);let T=`
|
|
93
|
+
min-height:0 !important;
|
|
94
|
+
max-height:none !important;
|
|
95
|
+
height:0 !important;
|
|
96
|
+
visibility:hidden !important;
|
|
97
|
+
overflow:hidden !important;
|
|
98
|
+
position:absolute !important;
|
|
99
|
+
z-index:-1000 !important;
|
|
100
|
+
top:0 !important;
|
|
101
|
+
right:0 !important;
|
|
102
|
+
pointer-events: none !important;
|
|
103
|
+
`,B=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],D={};function F(){return(F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let L=o.forwardRef((e,t)=>{let{prefixCls:r,defaultValue:i,value:l,autoSize:c,onResize:u,className:d,style:f,disabled:p,onChange:h,onInternalAutoSize:m,...g}=e,[b,v]=(0,s.PW)(i,l),y=o.useRef(null);o.useImperativeHandle(t,()=>({textArea:y.current}));let[$,x]=o.useMemo(()=>c&&"object"==typeof c?[c.minRows,c.maxRows]:[],[c]),w=!!c,[E,C]=o.useState(2),[k,S]=o.useState(),A=()=>{C(0)};(0,s.Nf)(()=>{w&&A()},[l,$,x,w]),(0,s.Nf)(()=>{if(0===E)C(1);else if(1===E){let e=function(e,t=!1,r=null,o=null){let a,i,l;n||((n=document.createElement("textarea")).setAttribute("tab-index","-1"),n.setAttribute("aria-hidden","true"),n.setAttribute("name","hiddenTextarea"),document.body.appendChild(n)),e.getAttribute("wrap")?n.setAttribute("wrap",e.getAttribute("wrap")):n.removeAttribute("wrap");let{paddingSize:s,borderSize:c,boxSizing:u,sizingStyle:d}=function(e,t=!1){let r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&D[r])return D[r];let n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),a=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),l={sizingStyle:B.map(e=>`${e}:${n.getPropertyValue(e)}`).join(";"),paddingSize:a,borderSize:i,boxSizing:o};return t&&r&&(D[r]=l),l}(e,t);n.setAttribute("style",`${d};${T}`),n.value=e.value||e.placeholder||"";let f=n.scrollHeight;if("border-box"===u?f+=c:"content-box"===u&&(f-=s),null!==r||null!==o){n.value=" ";let e=n.scrollHeight-s;null!==r&&(a=e*r,"border-box"===u&&(a=a+s+c),f=Math.max(a,f)),null!==o&&(i=e*o,"border-box"===u&&(i=i+s+c),l=f>i?void 0:"hidden",f=Math.min(i,f))}let p={height:f,overflowY:l,resize:"none"};return a&&(p.minHeight=a),i&&(p.maxHeight=i),p}(y.current,!1,$,x);C(2),S(e)}},[E]);let M=o.useRef(void 0),N=()=>{void 0!==M.current&&s.er.cancel(M.current)};o.useEffect(()=>N,[]);let O={...f,...w?k:null};return(0===E||1===E)&&(O.overflowY="hidden",O.overflowX="hidden"),o.createElement(z.Ay,{onResize:e=>{2===E&&(u?.(e),c&&(N(),M.current=(0,s.er)(()=>{A()})))},disabled:!(c||u)},o.createElement("textarea",F({},g,{ref:y,style:O,className:(0,a.$)(r,d,{[`${r}-disabled`]:p}),disabled:p,value:b??"",onChange:e=>{v(e.target.value),h?.(e)}})))});function H(){return(H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let j=o.forwardRef(({defaultValue:e,value:t,onFocus:r,onBlur:n,onChange:i,allowClear:l,maxLength:s,onCompositionStart:c,onCompositionEnd:u,suffix:d,prefixCls:f="rc-textarea",showCount:p,count:h,className:m,style:g,disabled:b,hidden:v,classNames:y,styles:$,onResize:x,onClear:w,onPressEnter:E,readOnly:C,autoSize:S,onKeyDown:P,...R},z)=>{let[T,B]=o.useState(!1),D=o.useRef(!1),[F,j]=o.useState(null),_=(0,o.useRef)(null),W=(0,o.useRef)(null),q=()=>W.current?.textArea||null,{setValue:K,formatValue:V}=I(e,t),X=M(h,p),{isOutOfRange:G,dataCount:U}=N({countConfig:X,value:V,maxLength:s}),Y=O({countConfig:X,getTarget:()=>W.current?.textArea||null}),Q=()=>{q()?.focus()};(0,o.useImperativeHandle)(z,()=>({resizableTextArea:W.current,focus:Q,blur:()=>{q()?.blur()},nativeElement:_.current?.nativeElement||q()})),(0,o.useEffect)(()=>{B(e=>!b&&e)},[b]);let Z=(e,t)=>{let r=Y(t,D.current);K(r),k(e.currentTarget,e,i,r)},J=d;X.show&&(J=o.createElement(o.Fragment,null,J,o.createElement("span",{className:(0,a.$)(`${f}-data-count`,y?.count),style:$?.count},U)));let ee=!S&&!p&&!l;return o.createElement(A,{ref:_,value:V,allowClear:l,handleReset:e=>{K(""),Q();let t=q();t&&k(t,e,i)},suffix:J,prefixCls:f,classNames:{...y,affixWrapper:(0,a.$)(y?.affixWrapper,{[`${f}-show-count`]:p,[`${f}-textarea-allow-clear`]:l})},disabled:b,focused:T,className:(0,a.$)(m,G&&`${f}-out-of-range`),style:{...g,...F&&!ee?{height:"auto"}:{}},dataAttrs:"string"==typeof U?{affixWrapper:{"data-count":U}}:void 0,styles:$,hidden:v,readOnly:C,onClear:w},o.createElement(L,H({},R,{autoSize:S,maxLength:s,onKeyDown:e=>{"Enter"===e.key&&E&&!e.nativeEvent.isComposing&&E(e),P?.(e)},onChange:e=>{Z(e,e.target.value)},onFocus:e=>{B(!0),r?.(e)},onBlur:e=>{B(!1),n?.(e)},onCompositionStart:e=>{D.current=!0,c?.(e)},onCompositionEnd:e=>{D.current=!1,Z(e,e.currentTarget.value),u?.(e)},className:(0,a.$)(y?.textarea),style:{resize:g?.resize,...$?.textarea},disabled:b,prefixCls:f,onResize:e=>{x?.(e),q()?.style.height&&j(!0)},ref:W,readOnly:C})))});var _=r(6192),W=r(1151),q=r(2661);let K=e=>{let{allowClear:t,clearIcon:r,contextAllowClear:n,contextClearIcon:a,defaultAllowClear:i,componentName:l}=e;return(0,o.useMemo)(()=>!!(t??n??i)&&{clearIcon:(0,q.A)((0,c.Qd)(t)?t?.clearIcon:r,(0,c.Qd)(n)?n?.clearIcon:a,o.createElement(W.A,null)),disabled:((0,c.Qd)(t)?t?.disabled:void 0)??((0,c.Qd)(n)?n?.disabled:void 0)},[t,r,n,a,i])};var V=r(1387),X=r(8306),G=r(941),U=r(1984),Y=r(1679);function Q(e,t){let r=(0,o.useRef)([]),n=()=>{r.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value")}))};return(0,o.useEffect)(()=>(t&&n(),()=>r.current.forEach(e=>{e&&clearTimeout(e)})),[t]),n}let Z=(0,o.forwardRef)((e,t)=>{let{prefixCls:r,bordered:n=!0,status:c,size:u,disabled:d,onBlur:f,onFocus:h,suffix:g,allowClear:b,addonAfter:v,addonBefore:y,className:$,style:x,styles:w,rootClassName:C,onChange:k,classNames:S,variant:A,...M}=e,{getPrefixCls:N,direction:O,allowClear:I,autoComplete:P,className:z,style:T,classNames:B,styles:D}=(0,i.TP)("input"),F=N("input",r),L=(0,o.useRef)(null),H=(0,G.A)(F),[j,W]=(0,E.MG)(F,C);(0,E.Ay)(F,H);let{compactSize:q,compactItemClassnames:Z}=(0,m.RQ)(F,O),J=(0,U.A)(e=>u??q??e),ee=o.useContext(X.A),et=d??ee,er={...e,size:J,disabled:et},en=(0,p.XT)(T),eo=(0,p.XT)(x),[ea,ei]=(0,p.AV)([B,S],[D,en,w,eo],{props:er}),{status:el,hasFeedback:es,feedbackIcon:ec}=(0,o.useContext)(l.$W),eu=(0,V.v)(el,c),ed=!!(e.prefix||e.suffix||e.allowClear||e.showCount)||!!es;(0,o.useRef)(ed);let ef=Q(L,!0),ep=(es||g)&&o.createElement(o.Fragment,null,g,es&&ec),eh=K({allowClear:b,contextAllowClear:I,componentName:"Input"}),[em,eg]=(0,Y.A)("input",A,n);return o.createElement(R,{ref:(0,s.K4)(t,L),prefixCls:F,autoComplete:P,...M,disabled:et,onBlur:e=>{ef(),f?.(e)},onFocus:e=>{ef(),h?.(e)},style:ei.root,styles:ei,suffix:ep,allowClear:eh,className:(0,a.$)($,C,W,H,Z,z,ea.root),onChange:e=>{ef(),k?.(e)},addonBefore:y&&o.createElement(_.A,{form:!0,space:!0},y),addonAfter:v&&o.createElement(_.A,{form:!0,space:!0},v),classNames:{...ea,input:(0,a.$)({[`${F}-sm`]:"small"===J,[`${F}-lg`]:"large"===J,[`${F}-rtl`]:"rtl"===O},ea.input,j),variant:(0,a.$)({[`${F}-${em}`]:eg},(0,V.L)(F,eu)),affixWrapper:(0,a.$)({[`${F}-affix-wrapper-sm`]:"small"===J,[`${F}-affix-wrapper-lg`]:"large"===J,[`${F}-affix-wrapper-rtl`]:"rtl"===O},j),wrapper:(0,a.$)({[`${F}-group-rtl`]:"rtl"===O},j),groupWrapper:(0,a.$)({[`${F}-group-wrapper-sm`]:"small"===J,[`${F}-group-wrapper-lg`]:"large"===J,[`${F}-group-wrapper-rtl`]:"rtl"===O,[`${F}-group-wrapper-${em}`]:eg},(0,V.L)(`${F}-group-wrapper`,eu,es),j)}})});var J=r(5142),ee=r(954),et=(0,y.OF)(["Input","OTP"],e=>(e=>{let{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText,"&::selection":{color:"transparent"}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}})((0,$.oX)(e,(0,ee.C)(e))),ee.b);let er=o.forwardRef((e,t)=>{let{className:r,value:n,onChange:l,onActiveChange:c,index:u,mask:d,onFocus:f,...p}=e,{getPrefixCls:h}=o.useContext(i.QO),m=h("otp"),g="string"==typeof d?d:n,b=o.useRef(null);o.useImperativeHandle(t,()=>b.current);let v=()=>{(0,s.er)(()=>{let e=b.current?.input;document.activeElement===e&&e&&e.select()})};return o.createElement("span",{className:`${m}-input-wrapper`,role:"presentation"},d&&""!==n&&void 0!==n&&o.createElement("span",{className:`${m}-mask-icon`,"aria-hidden":"true"},g),o.createElement(Z,{"aria-label":`OTP Input ${u+1}`,type:!0===d?"password":"text",...p,ref:b,value:n,onInput:e=>{l(u,e.target.value)},onFocus:e=>{f?.(e),v()},onKeyDown:e=>{let{key:t,ctrlKey:r,metaKey:o}=e;"ArrowLeft"===t?c(u-1):"ArrowRight"===t?c(u+1):"z"===t&&(r||o)?e.preventDefault():"Backspace"!==t||n||c(u-1),v()},onMouseDown:v,onMouseUp:v,className:(0,a.$)(r,{[`${m}-mask-input`]:d})}))});function en(e){return(e||"").split("")}let eo=e=>{let{index:t,prefixCls:r,separator:n,className:i,style:l}=e,s=(0,c.Tn)(n)?n(t):n;return s?o.createElement("span",{className:(0,a.$)(`${r}-separator`,i),style:l},s):null},ea=o.forwardRef((e,t)=>{let{prefixCls:r,length:n=6,size:c,defaultValue:u,value:d,onChange:f,formatter:h,separator:m,variant:g,disabled:b,status:v,autoFocus:y,mask:$,type:x,autoComplete:w,onInput:E,onFocus:C,inputMode:k,classNames:S,styles:A,className:M,style:N,...O}=e,{classNames:I,styles:P,getPrefixCls:R,direction:z,style:T,className:B}=(0,i.TP)("otp"),D=R("otp",r),F={...e,length:n},L=(0,p.XT)(T),H=(0,p.XT)(N),[j,_]=(0,p.AV)([I,S],[P,L,A,H],{props:F}),W=(0,s.KE)(O,{aria:!0,data:!0,attr:!0}),[q,K]=et(D),X=(0,U.A)(e=>c??e),G=o.useContext(l.$W),Y=(0,V.v)(G.status,v),Q=o.useMemo(()=>({...G,status:Y,hasFeedback:!1,feedbackIcon:null}),[G,Y]),Z=o.useRef(null),ee=o.useRef({});o.useImperativeHandle(t,()=>({focus:()=>{ee.current[0]?.focus()},blur:()=>{for(let e=0;e<n;e+=1)ee.current[e]?.blur()},nativeElement:Z.current}));let ea=e=>h?h(e):e,[ei,el]=o.useState(()=>en(ea(u||"")));o.useEffect(()=>{void 0!==d&&el(en(d))},[d]);let es=(0,s._q)(e=>{el(e),E&&E(e),f&&e.length===n&&e.every(e=>e)&&e.some((e,t)=>ei[t]!==e)&&f(e.join(""))}),ec=(0,s._q)((e,t)=>{let r=(0,J.A)(ei);for(let t=0;t<e;t+=1)r[t]||(r[t]="");t.length<=1?r[e]=t:r=r.slice(0,e).concat(en(t)),r=r.slice(0,n);for(let e=r.length-1;e>=0&&!r[e];e-=1)r.pop();return r=en(ea(r.map(e=>e||" ").join(""))).map((e,t)=>" "!==e||r[t]?e:r[t])}),eu=(e,t)=>{let r=ec(e,t),o=Math.min(e+t.length,n-1);o!==e&&void 0!==r[e]&&ee.current[o]?.focus(),es(r)},ed=e=>{ee.current[e]?.focus()},ef={variant:g,disabled:b,status:Y,mask:$,type:x,inputMode:k,autoComplete:w};return o.createElement("div",{...W,ref:Z,className:(0,a.$)(M,D,{[`${D}-sm`]:"small"===X,[`${D}-lg`]:"large"===X,[`${D}-rtl`]:"rtl"===z},K,q,B,j.root),style:_.root,role:"group"},o.createElement(l.$W.Provider,{value:Q},Array.from({length:n}).map((e,t)=>{let r=`otp-${t}`,i=ei[t]||"";return o.createElement(o.Fragment,{key:r},o.createElement(er,{ref:e=>{ee.current[t]=e},index:t,size:X,htmlSize:1,className:(0,a.$)(j.input,`${D}-input`),style:_.input,onChange:eu,value:i,onActiveChange:ed,autoFocus:0===t&&y,onFocus:e=>((e,t)=>{for(let e=0;e<t;e+=1)if(!ee.current[e]?.input?.value){ee.current[e]?.focus();break}C?.(e)})(e,t),...ef}),t<n-1&&o.createElement(eo,{separator:m,index:t,prefixCls:D,className:(0,a.$)(j.separator),style:_.separator}))})))});var ei=r(1630),el=r(2875);function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let ec=o.forwardRef((e,t)=>o.createElement(el.A,es({},e,{ref:t,icon:ei.A})));var eu=r(1485);function ed(){return(ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let ef=o.forwardRef((e,t)=>o.createElement(el.A,ed({},e,{ref:t,icon:eu.A})));var ep=r(2564);let eh={click:"onClick",hover:"onMouseOver"},em=o.forwardRef((e,t)=>{let r,n,l,{disabled:u,action:d="click",visibilityToggle:f=!0,iconRender:h,prefixCls:m,inputPrefixCls:g,suffix:b,className:v,style:y,classNames:$,styles:x,...w}=e,{getPrefixCls:E,className:C,style:k,classNames:S,styles:A,iconRender:M}=(0,i.TP)("inputPassword"),[N]=(0,ep.A)("global"),O=o.useContext(X.A),I=u??O,P={...e,disabled:I},[R,z]=(0,p.AV)([S,$],[A,x],{props:P}),T=(0,c.Qd)(f)&&void 0!==f.visible,[B,D]=(0,o.useState)(()=>!!T&&f.visible),F=(0,o.useRef)(null);o.useEffect(()=>{T&&D(f.visible)},[T,f]);let L=Q(F),H=()=>{if(I)return;B&&L();let e=!B;D(e),(0,c.Qd)(f)&&f.onVisibleChange?.(e)},j=E("input",g),_=E("input-password",m),W=f&&(r=eh[d]||"",n=(h||M||(e=>e?o.createElement(ef,null):o.createElement(ec,null)))(B),l=(0,c.Qd)(f)?f.tabIndex:void 0,o.createElement("span",{key:"passwordIcon",role:"button",tabIndex:I?-1:l??0,className:`${_}-icon`,"aria-disabled":I,"aria-pressed":B,"aria-label":B?N.hide:N.show,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),H())},[r]:H},n)),q=(0,a.$)(_,C,v,{[`${_}-${e.size}`]:!!e.size}),K={...w,type:B?"text":"password",prefixCls:j,suffix:o.createElement(o.Fragment,null,W,b),disabled:I,className:q,style:{...k,...y},classNames:R,styles:z};return o.createElement(Z,{ref:(0,s.K4)(t,F),...K})});var eg=r(1125),eb=r(7211),ev=r(6094),ey=r(9078),e$=(0,y.OF)(["Input","Search"],e=>(e=>{let{componentCls:t,antCls:r,calc:n,max:o}=e,a=`${t}-btn`,[i,l]=(0,y.PN)(r,"input-search"),s=e.inputFontSizeSM??e.fontSize,c=o(e.controlHeightSM,n(s).mul(e.lineHeight).add(n(e.paddingBlockSM).mul(2)).add(n(e.lineWidth).mul(2)).equal());return{[t]:{[i("btn-height")]:(0,ey.zA)(e.controlHeight),width:"100%",[a]:{height:l("btn-height"),"&:focus-visible":{zIndex:5},[`&${r}-btn-icon-only`]:{width:l("btn-height")},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[i("btn-height")]:(0,ey.zA)(e.controlHeightLG)},[`&${t}-small`]:{[i("btn-height")]:(0,ey.zA)(e.controlHeightSM)},[`&${t}-small ${a}`]:{minHeight:c,[`&${e.antCls}-btn-icon-only`]:{minWidth:c}}}}})((0,$.oX)(e,(0,ee.C)(e))),ee.b);let ex=o.forwardRef((e,t)=>{let r,{prefixCls:n,inputPrefixCls:l,className:c,size:u,style:d,enterButton:f=!1,searchIcon:h,addonAfter:g,loading:b,disabled:v,onSearch:y,onChange:$,onCompositionStart:x,onCompositionEnd:w,variant:E,onPressEnter:C,classNames:k,styles:S,hidden:A,...M}=e,{direction:N,getPrefixCls:O,className:I,style:P,classNames:R,styles:z,searchIcon:T}=(0,i.TP)("inputSearch"),B=o.useContext(X.A),D=v??B,F={...e,enterButton:f},[L,H]=(0,p.AV)([R,k],[z,S],{props:F},{button:{_default:"root"}}),j=o.useRef(!1),_=O("input-search",n),W=O("input",l),[K,V]=e$(_),{compactSize:G}=(0,m.RQ)(_,N),Y=(0,U.A)(e=>u??G??e),Q=o.useRef(null),J=e=>{document.activeElement===Q.current?.input&&e.preventDefault()},ee=e=>{y&&y(Q.current?.input?.value,e,{source:"input"})},et="boolean"==typeof f?(0,q.A)(h,T,o.createElement(eg.A,null)):null,er=`${_}-btn`,en=(0,a.$)(er,{[`${er}-${E}`]:E}),eo=f||{},ea=eo.type&&!0===eo.type.__ANT_BUTTON;if(ea||"button"===eo.type){let e=eo.props;r=(0,eb.Ob)(eo,{disabled:D||e.disabled||!ea&&b,onMouseDown:J,onClick:e=>{eo?.props?.onClick?.(e),ee(e)},key:"enterButton",...ea?{className:(0,a.$)(en,e.className),loading:b||e.loading,size:Y}:{}})}else r=o.createElement(ev.A,{classNames:L.button,styles:H.button,className:en,color:f?"primary":"default",size:Y,disabled:v,key:"enterButton",onMouseDown:J,onClick:ee,loading:b,icon:et,variant:"borderless"===E||"filled"===E||"underlined"===E?"text":f?"solid":void 0},f);g&&(r=[r,(0,eb.Ob)(g,{key:"addonAfter"})]);let ei=(0,a.$)(_,V,{[`${_}-rtl`]:"rtl"===N,[`${_}-${Y}`]:!!Y,[`${_}-with-button`]:!!f},c,I,K,L.root),el=(0,s.KE)(M,{data:!0}),es=(0,s.cJ)({...M,classNames:(0,s.cJ)(L,["button","root"]),styles:(0,s.cJ)(H,["button","root"]),prefixCls:W,type:"search",size:Y,variant:E,onPressEnter:e=>{j.current||b||(C?.(e),ee(e))},onCompositionStart:e=>{j.current=!0,x?.(e)},onCompositionEnd:e=>{j.current=!1,w?.(e)},onChange:e=>{e?.target&&"click"===e.type&&y&&y(e.target.value,e,{source:"clear"}),$?.(e)},disabled:v},Object.keys(el));return o.createElement(m.Ay,{className:ei,style:{...H.root,...P,...d},...el,hidden:A},o.createElement(Z,{ref:(0,s.K4)(Q,t),...es}),r)});var ew=(0,y.OF)(["Input","TextArea"],e=>(e=>{let{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
104
|
+
&-allow-clear > ${t},
|
|
105
|
+
&-affix-wrapper${n}-has-feedback ${t}
|
|
106
|
+
`]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}})((0,$.oX)(e,(0,ee.C)(e))),ee.b,{resetFont:!1});let eE=(0,o.forwardRef)((e,t)=>{let{prefixCls:r,bordered:n=!0,size:u,disabled:d,status:f,allowClear:h,classNames:g,rootClassName:b,className:v,style:y,styles:$,variant:x,showCount:w,onMouseDown:C,onResize:k,...S}=e,{getPrefixCls:A,direction:M,allowClear:N,autoComplete:O,className:I,style:P,classNames:R,styles:z}=(0,i.TP)("textArea"),T=o.useContext(X.A),{status:B,hasFeedback:D,feedbackIcon:F}=o.useContext(l.$W),L=(0,V.v)(B,f),H=(0,p.XT)(P),_=(0,p.XT)(y),[W,q]=(0,p.AV)([R,g],[z,H,$,_],{props:e}),Q=o.useRef(null);o.useImperativeHandle(t,()=>({resizableTextArea:Q.current?.resizableTextArea,focus:e=>{(0,s.F4)(Q.current?.resizableTextArea?.textArea,e)},blur:()=>Q.current?.blur(),nativeElement:Q.current?.nativeElement||null}));let Z=A("input",r),J=(0,G.A)(Z),[ee,et]=(0,E.MG)(Z,b);ew(Z,J);let{compactSize:er,compactItemClassnames:en}=(0,m.RQ)(Z,M),eo=(0,U.A)(e=>u??er??e),[ea,ei]=(0,Y.A)("textArea",x,n),el=K({allowClear:h,contextAllowClear:N,componentName:"TextArea"}),[es,ec]=o.useState(!1),[eu,ed]=o.useState(!1);return o.createElement(j,{autoComplete:O,...S,style:q.root,styles:q,disabled:d??T,allowClear:el,className:(0,a.$)(et,J,v,b,en,I,W.root,{[`${Z}-textarea-affix-wrapper-resize-dirty`]:eu}),classNames:{...W,textarea:(0,a.$)({[`${Z}-sm`]:"small"===eo,[`${Z}-lg`]:"large"===eo},ee,W.textarea,es&&`${Z}-mouse-active`),variant:(0,a.$)({[`${Z}-${ea}`]:ei},(0,V.L)(Z,L)),affixWrapper:(0,a.$)(`${Z}-textarea-affix-wrapper`,{[`${Z}-affix-wrapper-rtl`]:"rtl"===M,[`${Z}-affix-wrapper-sm`]:"small"===eo,[`${Z}-affix-wrapper-lg`]:"large"===eo,[`${Z}-textarea-show-count`]:w||e.count?.show},ee)},prefixCls:Z,suffix:D&&o.createElement("span",{className:`${Z}-textarea-suffix`},F),showCount:w,ref:Q,onResize:e=>{if(k?.(e),es&&(0,c.Tn)(getComputedStyle)){let e=Q.current?.nativeElement?.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&ed(!0)}},onMouseDown:e=>{ec(!0),C?.(e);let t=()=>{ec(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}})});Z.Group=e=>{let{getPrefixCls:t,direction:r}=(0,o.useContext)(i.QO),{prefixCls:n,className:s}=e,c=t("input-group",n),u=t("input"),[d,f]=(0,E.Ay)(u),p=(0,a.$)(c,f,{[`${c}-lg`]:"large"===e.size,[`${c}-sm`]:"small"===e.size,[`${c}-compact`]:e.compact,[`${c}-rtl`]:"rtl"===r},d,s),h=(0,o.useContext)(l.$W),m=(0,o.useMemo)(()=>({...h,isFormItemInput:!1}),[h]);return o.createElement(l.$W.Provider,{value:m},o.createElement(w.Compact,{className:p,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},Z.Search=ex,Z.TextArea=eE,Z.Password=em,Z.OTP=ea;var eC=Z},9815(e,t,r){var n=r(9078),o=r(4440),a=r(3677),i=r(9233),l=r(8528),s=r(954),c=r(21);let u=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),d=e=>{let{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:a}=e;return{padding:`${(0,n.zA)(t)} ${(0,n.zA)(a)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:o}},f=e=>({padding:`${(0,n.zA)(e.paddingBlockSM)} ${(0,n.zA)(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),p=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,n.zA)(e.paddingBlock)} ${(0,n.zA)(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...u(e.colorTextPlaceholder),"&-lg":{...d(e),...t.largeStyle},"&-sm":{...f(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),h=(0,i.OF)(["Input","Shared"],e=>{let t=(0,l.oX)(e,(0,s.C)(e));return[(e=>{let{componentCls:t,controlHeightSM:r,lineWidth:n,calc:a}=e,i=a(r).sub(a(n).mul(2)).sub(16).div(2).equal();return{[t]:{...(0,o.dF)(e),...p(e),...(0,c.Eb)(e),...(0,c.sA)(e),...(0,c.lB)(e),...(0,c.aP)(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}})(t),(e=>{let{componentCls:t,inputAffixPadding:r,colorTextDescription:a,motionDurationSlow:i,colorIcon:l,colorIconHover:s}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:{...p(e),display:"inline-flex","&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:a,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r},"&-password-icon":{display:"inline-flex",color:l,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:s}}},...(e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...(0,o.jk)(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,n.zA)(e.inputAffixPadding)}`}}}})(e)},[`${t}-underlined`]:{borderRadius:0},[u]:{[`${t}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}})(t)]},s.b,{resetFont:!1});t.Ay=(0,i.OF)(["Input","Component"],e=>{let t=(0,l.oX)(e,(0,s.C)(e));return[(e=>{let{componentCls:t,borderRadiusLG:r,borderRadiusSM:a}=e;return{[`${t}-group`]:{...(0,o.dF)(e),...(e=>{let{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...d(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...f(e)},[`&-lg ${r}-select-single`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,n.zA)(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${(0,n.zA)(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${(0,n.zA)(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${(0,n.zA)(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${r}-cascader-picker`]:{margin:`-9px ${(0,n.zA)(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...(0,o.t6)(),[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
107
|
+
& > ${t}-affix-wrapper,
|
|
108
|
+
& > ${t}-number-affix-wrapper,
|
|
109
|
+
& > ${r}-picker-range
|
|
110
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select,
|
|
111
|
+
& > ${r}-select-auto-complete ${t},
|
|
112
|
+
& > ${r}-cascader-picker ${t},
|
|
113
|
+
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
114
|
+
& > ${r}-select:first-child,
|
|
115
|
+
& > ${r}-select-auto-complete:first-child ${t},
|
|
116
|
+
& > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
117
|
+
& > ${r}-select:last-child,
|
|
118
|
+
& > ${r}-cascader-picker:last-child ${t},
|
|
119
|
+
& > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}})(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},...(0,c.nm)(e),...(0,c.Vy)(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}}})(t),(e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}})(t),(0,a.G)(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},s.b,{resetFont:!1}),r.d(t,{},{MG:h,j_:u,wj:p})},954(e,t,r){var n=r(8528);function o(e){return(0,n.oX)(e,{inputAffixPadding:e.paddingXXS})}r.d(t,{C:()=>o},{b:e=>{let{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:b,colorWarningOutline:v,colorBgContainer:y,inputFontSize:$,inputFontSizeLG:x,inputFontSizeSM:w}=e,E=$||r,C=w||E,k=x||l;return{paddingBlock:Math.max(Math.round((t-E*n)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-C*n)/2*10)/10-o,0),paddingBlockLG:Math.max(Math.ceil((i-k*s)/2*10)/10-o,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${m}px ${g}`,errorActiveShadow:`0 0 0 ${m}px ${b}`,warningActiveShadow:`0 0 0 ${m}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:E,inputFontSizeLG:k,inputFontSizeSM:C}}})},21(e,t,r){var n=r(9078),o=r(8528);let a=e=>{let t;return{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...{borderColor:(t=(0,o.oX)(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled})).hoverBorderColor,backgroundColor:t.hoverBg}}}},i=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),l=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...i(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),s=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),c="&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)",u=(e,t)=>({outline:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:(0,n.zA)(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(e=>`${e} 0s`).join(", ")}),d=(e,t)=>({"&, & input, & textarea":{color:t.color},[c]:u(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),f=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),p=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...f(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),h=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),m=(e,t)=>({background:e.colorBgContainer,borderWidth:`${(0,n.zA)(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),g=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...m(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}});r.d(t,{},{Eb:(e,t)=>({"&-outlined":{...i(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...a(e)},...l(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...l(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),Vy:e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...h(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...h(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),aP:(e,t)=>({"&-underlined":{...m(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"},...g(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...g(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),lB:(e,t)=>{let{componentCls:r}=e;return{"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${r}-sm, &${r}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${r}-lg, &${r}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[c]:u(e,e.activeBorderColor),[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:d(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${r}-status-warning`]:d(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...t}}},nm:e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...s(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...s(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...a(e)}}}}),sA:(e,t)=>({"&-filled":{...f(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...a(e)},...p(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...p(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}})})},7558(e,t,r){t.A=(0,r(1102).createContext)(void 0)},6615(e,t,r){r.d(t,{A:()=>i});var n={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};let o={lang:{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"],yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0,locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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",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"},timePickerLocale:{...n}},a="${label} is not a valid ${type}";var i={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:o,TimePicker:n,Calendar:o,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide"},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",deselectAll:"Deselect 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",collapse:"Collapse"},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}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}}},2564(e,t,r){var n=r(1102),o=r(9882),a=r(7558),i=r(6615);t.A=(e,t)=>{let r=n.useContext(a.A);return[n.useMemo(()=>{let n=t||i.A[e],a=r?.[e]??{};return{...(0,o.Tn)(n)?n():n,...a||{}}},[e,t,r]),n.useMemo(()=>{let e=r?.locale;return r?.exist&&!e?i.A.locale:e},[r])]}},5436(e,t,r){var n=r(6615);let o={...n.A.Modal},a=[],i=()=>a.reduce((e,t)=>({...e,...t}),n.A.Modal);function l(e){if(e){let t={...e};return a.push(t),o=i(),()=>{a=a.filter(e=>e!==t),o=i()}}o={...n.A.Modal}}function s(){return o}r.d(t,{L:()=>l,l:()=>s})},176(e,t,r){r.d(t,{A:()=>k});var n=r(1102),o=r(7972),a=r(851),i=r(9882);let l=e=>(0,i.AZ)(e)?(0,i.Tn)(e)?e():e:null;var s=r(2382),c=r(568),u=r(7034),d=r(7833),f=r(3250),p=r(1540),h=r(4440),m=r(7968),g=r(7354),b=r(1343),v=r(5689),y=r(9233),$=r(8528),x=(0,y.OF)("Popover",e=>{let{colorBgElevated:t,colorText:r}=e,n=(0,$.oX)(e,{popoverBg:t,popoverColor:r});return[(e=>{let{componentCls:t,popoverColor:r,titleMinWidth:n,fontWeightStrong:o,innerPadding:a,dropShadowPopover:i,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:b,antCls:v}=e,[$,x]=(0,y.PN)(v,"tooltip");return[{[t]:{...(0,h.dF)(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",filter:i,[$("valid-offset-x")]:x("arrow-offset-x","var(--arrow-x)"),transformOrigin:[x("valid-offset-x","50%"),"var(--arrow-y, 50%)"].join(" "),[$("arrow-background-color")]:d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:s,padding:a},[`${t}-title`]:{minWidth:n,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:b},[`${t}-content`]:{color:r,padding:m}}},(0,g.A)(e,x("arrow-background-color"),{arrowShadow:!1}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]})(n),(e=>{let{componentCls:t,antCls:r}=e,[n]=(0,y.PN)(r,"tooltip");return{[t]:v.s.map(r=>{let o=e[`${r}6`];return{[`&${t}-${r}`]:{[n("arrow-background-color")]:o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}})}})(n),(0,m.aB)(n,"zoom-big")]},e=>{let{lineWidth:t,controlHeight:r,fontHeight:n,padding:o,wireframe:a,zIndexPopupBase:i,borderRadiusLG:l,marginXS:s,lineType:c,colorSplit:u,paddingSM:d}=e,f=r-n;return{titleMinWidth:177,zIndexPopup:i+30,...(0,b.n)(e),...(0,g.K)({contentRadius:l,limitVerticalRadius:!0}),innerPadding:12*!a,titleMarginBottom:a?0:s,titlePadding:a?`${f/2}px ${o}px ${f/2-t}px`:0,titleBorderBottom:a?`${t}px ${c} ${u}`:"none",innerContentPadding:a?`${d}px ${o}px`:0}},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});let w=e=>{let{title:t,content:r,prefixCls:o,classNames:l,styles:s}=e;return(0,i.AZ)(t)||(0,i.AZ)(r)?n.createElement(n.Fragment,null,(0,i.AZ)(t)&&n.createElement("div",{className:(0,a.$)(`${o}-title`,l?.title),style:s?.title},t),(0,i.AZ)(r)&&n.createElement("div",{className:(0,a.$)(`${o}-content`,l?.content),style:s?.content},r)):null},E=e=>{let{hashId:t,prefixCls:r,className:o,style:i,placement:c="top",title:u,content:d,children:f,classNames:h,styles:m}=e,g=l(u),b=l(d),v={...e,placement:c},[y,$]=(0,s.AV)([h],[m],{props:v}),x=(0,a.$)(t,r,`${r}-pure`,`${r}-placement-${c}`,o);return n.createElement("div",{className:x,style:i},n.createElement("div",{className:`${r}-arrow`}),n.createElement(p.z,{...e,className:t,prefixCls:r,classNames:y,styles:$},f||n.createElement(w,{prefixCls:r,title:g,content:b,classNames:y,styles:$})))},C=n.forwardRef((e,t)=>{let{prefixCls:r,title:p,content:h,overlayClassName:m,placement:g="top",trigger:b,children:v,mouseEnterDelay:y=.1,mouseLeaveDelay:$=.1,onOpenChange:E,overlayStyle:C={},styles:k,classNames:S,motion:A,arrow:M,...N}=e,{getPrefixCls:O,className:I,style:P,classNames:R,styles:z,arrow:T,trigger:B}=(0,u.TP)("popover"),D=O("popover",r),[F,L]=x(D),H=O(),j=(0,f.A)(M,T),_=b||B||"hover",W={...e,placement:g,trigger:_,mouseEnterDelay:y,mouseLeaveDelay:$,overlayStyle:C,styles:k,classNames:S},[q,K]=(0,s.AV)([R,S],[z,k],{props:W}),V=(0,a.$)(m,F,L,I,q.root),[X,G]=(0,o.PW)(e.defaultOpen??!1,e.open),U=l(p),Y=l(h);return n.createElement(d.A,{unique:!1,arrow:j,placement:g,trigger:_,mouseEnterDelay:y,mouseLeaveDelay:$,...N,prefixCls:D,classNames:{root:V,container:q.container,arrow:q.arrow},styles:{root:{...K.root,...P,...C},container:K.container,arrow:K.arrow},ref:t,open:X,onOpenChange:e=>{G(e),E?.(e)},overlay:(0,i.AZ)(U)||(0,i.AZ)(Y)?n.createElement(w,{prefixCls:D,title:U,content:Y,classNames:q,styles:K}):null,motion:{motionName:(0,c.b)(H,"zoom-big","string"==typeof A?.motionName?A?.motionName:void 0)},"data-popover-inject":!0},v)});C._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:r,...o}=e,{getPrefixCls:i}=n.useContext(u.QO),l=i("popover",t),[s,c]=x(l);return n.createElement(E,{...o,prefixCls:l,hashId:s,className:(0,a.$)(r,c)})};var k=C},3525(e,t,r){r.d(t,{A:()=>tp});var n,o,a=r(1102),i=r(7972),l=r(851);let s=a.createContext(null);function c(){return a.useContext(s)}function u(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}var d=r(382);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let p=a.forwardRef((e,t)=>{let{prefixCls:r,disabled:n,visible:o,children:i,popupElement:s,animation:c,transitionName:u,popupStyle:p,popupClassName:h,direction:m="ltr",placement:g,builtinPlacements:b,popupMatchSelectWidth:v,popupRender:y,popupAlign:$,getPopupContainer:x,empty:w,onPopupVisibleChange:E,onPopupMouseEnter:C,onPopupMouseDown:k,onPopupBlur:S,...A}=e,M=`${r}-dropdown`,N=s;y&&(N=y(s));let O=a.useMemo(()=>{let e;return b||{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:e=+(!0!==v),adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:e,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:e,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:e,adjustY:1},htmlRegion:"scroll"}}},[b,v]),I=c?`${M}-${c}`:u,P="number"==typeof v,R=a.useMemo(()=>!1===v||P?"minWidth":"width",[v,P]),z=p;P&&(z={...p,width:v});let T=a.useRef(null);return a.useImperativeHandle(t,()=>({getPopupElement:()=>T.current?.popupElement})),a.createElement(d.Ay,f({},A,{showAction:E?["click"]:[],hideAction:E?["click"]:[],popupPlacement:g||("rtl"===m?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:M,popupMotion:{motionName:I},popup:a.createElement("div",{onMouseEnter:C,onMouseDown:k,onBlur:S},N),ref:T,stretch:R,popupAlign:$,popupVisible:o,getPopupContainer:x,popupClassName:(0,l.$)(h,{[`${M}-empty`]:w}),popupStyle:z,onPopupVisibleChange:E}),i)});function h(e,t){let r,{key:n}=e;return("value"in e&&({value:r}=e),null!=n)?n:void 0!==r?r:`rc-index-key-${t}`}function m(e){return void 0!==e&&!Number.isNaN(e)}function g(e,t){let{label:r,value:n,options:o,groupLabel:a}=e||{},i=r||(t?"children":"label");return{label:i,value:n||"value",options:o||"options",groupLabel:a||i}}function b(e){let t={...e};return"props"in t||Object.defineProperty(t,"props",{get:()=>((0,i.$e)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t)}),t}function v(e){let{visible:t,values:r}=e;return t?a.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${r.slice(0,50).map(({label:e,value:t})=>["number","string"].includes(typeof e)?e:t).join(", ")}`,r.length>50?", ...":null):null}let y=(e,t=1)=>{let r;t<=0?e():((r=new MessageChannel).port1.onmessage=()=>{y(e,t-1)},r.port2.postMessage(null))};function $(e){let{children:t,...r}=e;return t?a.createElement("div",r,t):null}let x=a.createContext(null);function w(){return a.useContext(x)}let E=a.forwardRef((e,t)=>{let{onChange:r,onKeyDown:n,onBlur:o,style:s,syncWidth:u,value:d,className:f,autoComplete:p,...h}=e,{prefixCls:m,mode:g,onSearch:b,onSearchSubmit:v,onInputBlur:y,autoFocus:$,tokenWithEnter:x,placeholder:E,components:{input:C="input"}}=w(),{id:k,classNames:S,styles:A,open:M,activeDescendantId:N,role:O,disabled:I}=c()||{},P=(0,l.$)(`${m}-input`,S?.input,f),R=a.useRef(!1),z=a.useRef(null),T=a.useRef(null);a.useImperativeHandle(t,()=>T.current);let[B,D]=a.useState(void 0);(0,i.Nf)(()=>{let e=T.current;u&&e&&(e.style.width="0px",D(e.scrollWidth),e.style.width="")},[u,d]);let F={id:k,type:"text",...h,ref:T,style:{...A?.input,...s,"--select-input-width":B},autoFocus:$,autoComplete:p||"new-password",className:P,disabled:I,value:d||"",onChange:e=>{let{value:t}=e.target;if(x&&z.current&&/[\r\n]/.test(z.current)){let e=z.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(e,z.current)}z.current=null,b&&b(t,!0,R.current),r?.(e)},onKeyDown:e=>{let{key:t}=e,{value:r}=e.currentTarget;"Enter"!==t||"tags"!==g||M||R.current||!v||v(r),n?.(e)},onBlur:e=>{y?.(),o?.(e)},onPaste:e=>{let{clipboardData:t}=e;z.current=t?.getData("text")||""},onCompositionStart:()=>{R.current=!0},onCompositionEnd:e=>{if(R.current=!1,"combobox"!==g){let{value:t}=e.currentTarget;b?.(t,!0,!1)}},role:O||"combobox","aria-expanded":M||!1,"aria-haspopup":"listbox","aria-owns":M?`${k}_list`:void 0,"aria-autocomplete":"list","aria-controls":M?`${k}_list`:void 0,"aria-activedescendant":M?N:void 0};if(a.isValidElement(C)){let t=C.props||{},r={placeholder:e.placeholder||E,...F,...t};return Object.keys(t).forEach(e=>{let n=t[e];"function"==typeof n&&(r[e]=(...t)=>{n(...t),F[e]?.(...t)})}),r.ref=(0,i.K4)(C.ref,F.ref),a.cloneElement(C,r)}return a.createElement(C,F)});function C(e){let{prefixCls:t,placeholder:r,displayValues:n}=w(),{classNames:o,styles:i}=c(),{show:s=!0}=e;return n.length?null:a.createElement("div",{className:(0,l.$)(`${t}-placeholder`,o?.placeholder),style:{visibility:s?"visible":"hidden",...i?.placeholder}},r)}let k=a.createContext(null);function S(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function A(e){return["string","number"].includes(typeof e)}function M(e){let t;return e&&(A(e.title)?t=e.title.toString():A(e.label)&&(t=e.label.toString())),t}function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}"u">typeof window&&window.document&&window.document.documentElement;let O=a.forwardRef(({inputProps:e},t)=>{let{prefixCls:r,searchValue:n,activeValue:o,displayValues:i,maxLength:s,mode:u,components:d}=w(),{triggerOpen:f,title:p,showSearch:h,classNames:m,styles:g}=c(),b=a.useContext(k),[v,y]=a.useState(!1),$="combobox"===u,x=i[0],S=a.useMemo(()=>$&&o&&!v&&f?o:h?n:"",[$,o,v,f,n,h]),[A,O,I,P]=a.useMemo(()=>{let e,t,r;if(x&&b?.flattenOptions){let n=b.flattenOptions.find(e=>e.value===x.value);n?.data&&(e=n.data.className,t=n.data.style,r=M(n.data))}x&&!r&&(r=M(x)),void 0!==p&&(r=p);let n=!!e||!!t;return[e,t,r,n]},[x,b?.flattenOptions,p]);a.useEffect(()=>{$&&y(!1)},[$,o]);let R=x&&null!==x.label&&void 0!==x.label&&""!==String(x.label).trim(),z=$&&d?.input?null:x?P?a.createElement("div",{className:(0,l.$)(`${r}-content-value`,A),style:{...S?{visibility:"hidden"}:{},...O},title:I},x.label):x.label:a.createElement(C,{show:!S});return a.createElement("div",{className:(0,l.$)(`${r}-content`,R&&`${r}-content-has-value`,S&&`${r}-content-has-search-value`,P&&`${r}-content-has-option-style`,m?.content),style:g?.content,title:P?void 0:I},z,a.createElement(E,N({ref:t},e,{value:S,maxLength:"combobox"===u?s:void 0,onChange:t=>{y(!0),e.onChange?.(t)}})))});var I=r(9932),P=r(6175),R=r(9968);let z,T=a.forwardRef(function(e,t){let r,{prefixCls:n,invalidate:o,item:i,renderItem:s,responsive:c,responsiveDisabled:u,registerSize:d,itemKey:f,className:p,style:h,children:m,display:g,order:b,component:v="div",...y}=e,$=c&&!g;a.useEffect(()=>()=>{d(f,null)},[]);let x=s&&i!==z?s(i,{index:b}):m;o||(r={opacity:+!$,height:$?0:z,overflowY:$?"hidden":z,order:c?b:z,pointerEvents:$?"none":z,position:$?"absolute":z});let w={};$&&(w["aria-hidden"]=!0);let E=a.createElement(v,(0,I.A)({className:(0,l.$)(!o&&n,p),style:{...r,...h}},w,y,{ref:t}),x);return c&&(E=a.createElement(P.Ay,{onResize:({offsetWidth:e})=>{d(f,e)},disabled:u},E)),E});var B=r(4495),D=r(2450),F=r(7810);function L(e,t){let[r,n]=a.useState(t);return[r,(0,B.A)(t=>{e(()=>{n(t)})})]}let H=a.createContext(null),j=a.forwardRef((e,t)=>{let r=a.useContext(H);if(!r){let{component:r="div",...n}=e;return a.createElement(r,(0,I.A)({},n,{ref:t}))}let{className:n,...o}=r,{className:i,...s}=e;return a.createElement(H.Provider,{value:null},a.createElement(T,(0,I.A)({ref:t,className:(0,l.$)(n,i)},o,s)))}),_="responsive",W="invalidate";function q(e){return`+ ${e.length} ...`}let K=a.forwardRef(function(e,t){let r,{prefixCls:n="rc-overflow",data:o=[],renderItem:i,renderRawItem:s,itemKey:c,itemWidth:u=10,ssr:d,style:f,className:p,maxCount:h,renderRest:m,renderRawRest:g,prefix:b,suffix:v,component:y="div",itemComponent:$,onVisibleChange:x,...w}=e,E="full"===d,C=(r=a.useRef(null),e=>{if(!r.current){r.current=[];var t=()=>{(0,D.unstable_batchedUpdates)(()=>{r.current.forEach(e=>{e()}),r.current=null})};if("u"<typeof MessageChannel)(0,F.A)(t);else{let e=new MessageChannel;e.port1.onmessage=()=>t(),e.port2.postMessage(void 0)}}r.current.push(e)}),[k,S]=L(C,null),A=k||0,[M,N]=L(C,new Map),[O,z]=L(C,0),[B,j]=L(C,0),[K,V]=L(C,0),[X,G]=L(C,0),[U,Y]=(0,a.useState)(null),[Q,Z]=(0,a.useState)(null),J=a.useMemo(()=>null===Q&&E?Number.MAX_SAFE_INTEGER:Q||0,[Q,k]),[ee,et]=(0,a.useState)(!1),er=`${n}-item`,en=Math.max(O,B),eo=h===_,ea=o.length&&eo,ei=h===W,el=ea||"number"==typeof h&&o.length>h,es=(0,a.useMemo)(()=>{let e=o;return ea?e=null===k&&E?o:o.slice(0,Math.min(o.length,A/u)):"number"==typeof h&&(e=o.slice(0,h)),e},[o,u,k,h,ea]),ec=(0,a.useMemo)(()=>ea?o.slice(J+1):o.slice(es.length),[o,es,ea,J]),eu=(0,a.useCallback)((e,t)=>"function"==typeof c?c(e):(c&&e?.[c])??t,[c]),ed=(0,a.useCallback)(i||(e=>e),[i]);function ef(e,t,r){(Q!==e||void 0!==t&&t!==U)&&(Z(e),r||(et(e<o.length-1),x?.(e)),void 0!==t&&Y(t))}function ep(e,t){N(r=>{let n=new Map(r);return null===t?n.delete(e):n.set(e,t),n})}function eh(e){return M.get(eu(es[e],e))}(0,R.A)(()=>{if(A&&"number"==typeof en&&es){let e=K+X,t=es.length,r=t-1;if(!t)return void ef(0,null);for(let n=0;n<t;n+=1){let t=eh(n);if(E&&(t=t||0),void 0===t){ef(n-1,void 0,!0);break}if(e+=t,0===r&&e<=A||n===r-1&&e+eh(r)<=A){ef(r,null);break}if(e+en>A){ef(n-1,e-t-X+B);break}}v&&eh(0)+X>A&&Y(null)}},[A,M,B,K,X,eu,es]);let em=ee&&!!ec.length,eg={};null!==U&&ea&&(eg={position:"absolute",left:U,top:0});let eb={prefixCls:er,responsive:ea,component:$,invalidate:ei},ev=s?(e,t)=>{let r=eu(e,t);return a.createElement(H.Provider,{key:r,value:{...eb,order:t,item:e,itemKey:r,registerSize:ep,display:t<=J}},s(e,t))}:(e,t)=>{let r=eu(e,t);return a.createElement(T,(0,I.A)({},eb,{order:t,key:r,item:e,renderItem:ed,itemKey:r,registerSize:ep,display:t<=J}))},ey={order:em?J:Number.MAX_SAFE_INTEGER,className:`${er}-rest`,registerSize:function(e,t){j(t),z(B)},display:em},e$=m||q,ex=g?a.createElement(H.Provider,{value:{...eb,...ey}},g(ec)):a.createElement(T,(0,I.A)({},eb,ey),"function"==typeof e$?e$(ec):e$),ew=a.createElement(y,(0,I.A)({className:(0,l.$)(!ei&&n,p),style:f,ref:t},w),b&&a.createElement(T,(0,I.A)({},eb,{responsive:eo,responsiveDisabled:!ea,order:-1,className:`${er}-prefix`,registerSize:function(e,t){V(t)},display:!0}),b),es.map(ev),el?ex:null,v&&a.createElement(T,(0,I.A)({},eb,{responsive:eo,responsiveDisabled:!ea,order:J,className:`${er}-suffix`,registerSize:function(e,t){G(t)},display:!0,style:eg}),v));return eo?a.createElement(P.Ay,{onResize:function(e,t){S(t.clientWidth)},disabled:!ea},ew):ew});K.Item=j,K.RESPONSIVE=_,K.INVALIDATE=W;var V=e=>{let{className:t,style:r,customizeIcon:n,customizeIconProps:o,children:i,onMouseDown:s,onClick:c}=e,u="function"==typeof n?n(o):n;return a.createElement("span",{className:t,onMouseDown:e=>{e.preventDefault(),s?.(e)},style:{userSelect:"none",WebkitUserSelect:"none",...r},unselectable:"on",onClick:c,"aria-hidden":!0},void 0!==u?u:a.createElement("span",{className:(0,l.$)(t.split(/\s+/).map(e=>`${e}-icon`))},i))};function X(){return(X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function G(e){return e.key??e.value}let U=e=>{e.preventDefault(),e.stopPropagation()};var Y=a.forwardRef(function({inputProps:e},t){let{prefixCls:r,displayValues:n,searchValue:o,mode:i,onSelectorRemove:s,removeIcon:u}=w(),{disabled:d,showSearch:f,triggerOpen:p,rawOpen:h,toggleOpen:m,autoClearSearchValue:g,tagRender:b,maxTagPlaceholder:v,maxTagTextLength:y,maxTagCount:$,classNames:x,styles:k}=c(),S=`${r}-selection-item`,A=o;h||"multiple"!==i||!1===g||(A="");let N=f&&A||"",O=f&&!d,I=u??"×",P=v??(e=>`+ ${e.length} ...`),R=(e,t,r,n,o)=>a.createElement("span",{title:M(e),className:(0,l.$)(S,{[`${S}-disabled`]:r},x?.item),style:k?.item},a.createElement("span",{className:(0,l.$)(`${S}-content`,x?.itemContent),style:k?.itemContent},t),n&&a.createElement(V,{className:(0,l.$)(`${S}-remove`,x?.itemRemove),style:k?.itemRemove,onMouseDown:U,onClick:o,customizeIcon:I},"×")),z=(e,t,r,n,o,i,l)=>a.createElement("span",{onMouseDown:e=>{U(e),m(!p)}},b({label:t,value:e,index:l?.index,disabled:r,closable:n,onClose:o,isMaxTag:!!i}));return a.createElement(K,{prefixCls:`${r}-content`,className:x?.content,style:k?.content,prefix:!n.length&&!N&&a.createElement(C,null),data:n,renderItem:(e,t)=>{let{disabled:r,label:n,value:o}=e,a=!d&&!r,i=n;if("number"==typeof y&&("string"==typeof n||"number"==typeof n)){let e=String(i);e.length>y&&(i=`${e.slice(0,y)}...`)}let l=t=>{t&&t.stopPropagation(),s?.(e)};return"function"==typeof b?z(o,i,r,a,l,void 0,t):R(e,i,r,a,l)},renderRest:e=>{if(!n.length)return null;let t="function"==typeof P?P(e):P;return"function"==typeof b?z(void 0,t,!1,!1,void 0,!0):R({title:t},t,!1)},suffix:a.createElement(E,X({ref:t,disabled:d,readOnly:!O},e,{value:N||"",syncWidth:!0})),itemKey:G,maxCount:$})});let Q=a.forwardRef(function(e,t){let{multiple:r,onInputKeyDown:n,tabIndex:o}=w(),l=c(),{showSearch:s}=l,u={...(0,i.KE)(l,{aria:!0}),onKeyDown:n,readOnly:!s,tabIndex:o};return r?a.createElement(Y,{ref:t,inputProps:u}):a.createElement(O,{ref:t,inputProps:u})});function Z(){return(Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let J=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"];var ee=a.forwardRef(function(e,t){let{prefixCls:r,className:n,style:o,prefix:s,suffix:u,clearIcon:d,children:f,multiple:p,displayValues:h,placeholder:m,mode:g,searchValue:b,onSearch:v,onSearchSubmit:y,onInputBlur:w,maxLength:E,autoFocus:C,onMouseDown:k,onClearMouseDown:S,onInputKeyDown:A,onSelectorRemove:M,tokenWithEnter:N,components:O,...I}=e,{triggerOpen:P,toggleOpen:R,showSearch:z,disabled:T,loading:B,classNames:D,styles:F}=c(),L=a.useRef(null),H=a.useRef(null),j=(0,i._q)(e=>{var t;let{which:r}=e,n=H.current instanceof HTMLTextAreaElement;!n&&P&&(r===i.DD.UP||r===i.DD.DOWN)&&e.preventDefault(),A&&A(e),!(n&&!P&&~[i.DD.UP,i.DD.DOWN,i.DD.LEFT,i.DD.RIGHT].indexOf(r))&&!(e.ctrlKey||e.altKey||e.metaKey)&&(t=r)&&![i.DD.ESC,i.DD.SHIFT,i.DD.BACKSPACE,i.DD.TAB,i.DD.WIN_KEY,i.DD.ALT,i.DD.META,i.DD.WIN_KEY_RIGHT,i.DD.CTRL,i.DD.SEMICOLON,i.DD.EQUALS,i.DD.CAPS_LOCK,i.DD.CONTEXT_MENU,i.DD.UP,i.DD.LEFT,i.DD.RIGHT,i.DD.F1,i.DD.F2,i.DD.F3,i.DD.F4,i.DD.F5,i.DD.F6,i.DD.F7,i.DD.F8,i.DD.F9,i.DD.F10,i.DD.F11,i.DD.F12].includes(t)&&R(!0)});a.useImperativeHandle(t,()=>({focus:e=>{(H.current||L.current).focus?.(e)},blur:()=>{(H.current||L.current).blur?.()},nativeElement:(0,i.rb)(L.current)}));let _=(0,i._q)(e=>{if(!T){let t=(0,i.rb)(H.current);e.nativeEvent._ori_target=t;let r=t===e.target||t?.contains(e.target);t&&!r&&e.preventDefault();let n=P&&!p&&("combobox"===g||z),o=P&&p&&r;e.nativeEvent._select_lazy?P&&!p&&R(!1):(H.current?.focus(),n||o||R())}k?.(e)}),{root:W}=O,q=(0,i.cJ)(I,J),K=Object.keys((0,i.KE)(q,{aria:!0})),V={...e,onInputKeyDown:j};if(W){let e=W.props||{},t={...e,...q};return(Object.keys(e).forEach(r=>{let n=e[r],o=q[r];"function"==typeof n&&"function"==typeof o&&(t[r]=(...e)=>{o(...e),n(...e)})}),a.isValidElement(W))?a.cloneElement(W,{...t,ref:(0,i.K4)(W.ref,L)}):a.createElement(W,Z({},t,{ref:L}))}return a.createElement(x.Provider,{value:V},a.createElement("div",Z({},(0,i.cJ)(q,K),{ref:L,className:n,style:o,onMouseDown:_}),a.createElement($,{className:(0,l.$)(`${r}-prefix`,D?.prefix),style:F?.prefix},s),a.createElement(Q,{ref:H}),a.createElement($,{className:(0,l.$)(`${r}-suffix`,{[`${r}-suffix-loading`]:B},D?.suffix),style:F?.suffix},u),d&&a.createElement($,{className:(0,l.$)(`${r}-clear`,D?.clear),style:F?.clear,onMouseDown:e=>{e.nativeEvent._select_lazy=!0,S?.(e)}},d),f))});function et(){return(et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let er=e=>"tags"===e||"multiple"===e,en=a.forwardRef((e,t)=>{var r;let n,o,{id:c,prefixCls:d,className:f,styles:h,classNames:g,showSearch:b,tagRender:$,showScrollBar:x="optional",direction:w,omitDomProps:E,displayValues:C,onDisplayValuesChange:k,emptyOptions:S,notFoundContent:A="Not Found",onClear:M,maxCount:N,placeholder:O,mode:I,disabled:P,loading:R,getInputElement:z,getRawInputElement:T,open:B,defaultOpen:D,onPopupVisibleChange:F,activeValue:L,onActiveValueChange:H,activeDescendantId:j,searchValue:_,autoClearSearchValue:W,onSearch:q,onSearchSplit:K,tokenSeparators:V,allowClear:X,prefix:G,suffix:U,suffixIcon:Y,clearIcon:Q,OptionList:Z,animation:J,transitionName:en,popupStyle:eo,popupClassName:ea,popupMatchSelectWidth:ei,popupRender:el,popupAlign:es,placement:ec,builtinPlacements:eu,getPopupContainer:ed,showAction:ef=[],onFocus:ep,onBlur:eh,onKeyUp:em,onKeyDown:eg,onMouseDown:eb,components:ev,...ey}=e,e$=er(I),ex=a.useRef(null),ew=a.useRef(null),eE=a.useRef(null),[eC,ek]=a.useState(!1);a.useImperativeHandle(t,()=>({focus:ex.current?.focus,blur:ex.current?.blur,scrollTo:e=>eE.current?.scrollTo(e),nativeElement:(0,i.rb)(ex.current)}));let eS=a.useMemo(()=>{let{root:e,input:t}=ev||{};return T&&(e=T()),z&&(t=z()),{root:e,input:t}},[ev,z,T]),eA=a.useMemo(()=>{if("combobox"!==I)return _;let e=C[0]?.value;return"string"==typeof e||"number"==typeof e?String(e):""},[_,I,C]),eM="combobox"===I&&"function"==typeof z&&z()||null,eN=!A&&S,[eO,eI,eP,eR]=function(e,t,r,n){let[o,l]=(0,a.useState)(!1);(0,a.useEffect)(()=>{l(!0)},[]);let[s,c]=(0,i.PW)(e,t),[u,d]=(0,a.useState)(!1),f=!!o&&s,p=n(f),h=(0,a.useRef)(0),m=(0,i._q)(e=>{r&&p!==e&&r(e),c(e)}),g=(0,i._q)((e,t={})=>{let{cancelFun:r}=t;h.current+=1;let n=h.current,o="boolean"==typeof e?e:!p;function a(){n!==h.current||r?.()||(m(o),d(!1))}d(!o),o?a():y(()=>{a()})});return[f,p,g,u]}(D||!1,B,F,e=>!P&&!eN&&e),ez=a.useMemo(()=>"function"==typeof V||(V||[]).some(e=>["\n","\r\n"].includes(e)),[V]),eT=a.useMemo(()=>"function"==typeof V?(e,t)=>{let r=V(e),n=Array.isArray(r)&&1===r.length&&r[0]===e;return Array.isArray(r)&&r.length&&!n?void 0!==t?r.slice(0,t):r:null}:(e,t)=>((e,t,r)=>{if(!t||!t.length)return null;let n=!1,o=(e,[t,...r])=>{if(!t)return[e];let a=e.split(t);return n=n||a.length>1,a.reduce((e,t)=>[...e,...o(t,r)],[]).filter(Boolean)},a=o(e,t);return n?void 0!==r?a.slice(0,r):a:null})(e,V,t),[V]),eB=(e,t,r)=>{if(e$&&m(N)&&C.length>=N)return;let n=!0,o=e;H?.(null);let a=m(N)?N-C.length:void 0,i=r?null:eT(e,a);return"combobox"!==I&&i&&(o="",K?.(i),eP(!1),n=!1),q&&eA!==o&&q(o,{source:t?"typing":"effect"}),e&&t&&n&&eP(!0),n};a.useEffect(()=>{eO||e$||"combobox"===I||eB("",!1,!1)},[eO]),a.useEffect(()=>{P&&(eP(!1),ek(!1))},[P,eI]);let[eD,eF]=function(e=250){let t=a.useRef(null),r=a.useRef(null);return a.useEffect(()=>()=>{window.clearTimeout(r.current)},[]),[()=>t.current,function(n){(n||null===t.current)&&(t.current=n),window.clearTimeout(r.current),r.current=window.setTimeout(()=>{t.current=null},e)}]}(),eL=a.useRef(!1),eH=(0,i._q)(e=>{k(C.filter(t=>t!==e),{type:"remove",values:[e]})}),ej=()=>[(0,i.rb)(ex.current),ew.current?.getPopupElement()];r=!!eS.root,o=(0,i._q)(e=>{if(r)return;let t=e.target;t.shadowRoot&&e.composed&&(t=e.composedPath()[0]||t),e._ori_target&&(t=e._ori_target),eI&&!u(ej(),t)&&eP(!1)}),a.useEffect(()=>(window.addEventListener("mousedown",o),()=>window.removeEventListener("mousedown",o)),[o]);let e_=a.useRef(!1),eW=()=>{eI&&!e_.current&&eP(!1,{cancelFun:()=>u(ej(),document.activeElement)})},eq=(e,...t)=>{let{target:r}=e,n=ew.current?.getPopupElement();n?.contains(r)&&eP&&eP(!0),eb?.(e,...t),e_.current=!0,y(()=>{e_.current=!1})},[,eK]=a.useState({});eS.root&&(n=e=>{eP(e)});let eV=a.useMemo(()=>({...e,notFoundContent:A,open:eI,triggerOpen:eI,rawOpen:eO,id:c,showSearch:b,multiple:e$,toggleOpen:eP,showScrollBar:x,styles:h,classNames:g,lockOptions:eR}),[e,A,eP,c,b,e$,eI,eO,x,h,g,eR]),eX=a.useMemo(()=>{let e=U??Y;return"function"==typeof e?e({searchValue:eA,open:eI,focused:eC,showSearch:b,loading:R}):e},[U,Y,eA,eI,eC,b,R]),{allowClear:eG,clearIcon:eU}=((e,t,r,n=!1,o,i)=>{let l=(0,a.useMemo)(()=>"boolean"==typeof t?{allowClear:t}:t&&"object"==typeof t?t:{allowClear:!1},[t]);return(0,a.useMemo)(()=>{let t=!n&&!1!==l.allowClear&&(e.length||o)&&("combobox"!==i||""!==o);return{allowClear:t,clearIcon:t?l.clearIcon||r||"×":null}},[l,r,n,e.length,o,i])})(C,X,Q,P,eA,I),eY=a.createElement(Z,{ref:eE}),eQ=(0,l.$)(d,f,{[`${d}-focused`]:eC,[`${d}-multiple`]:e$,[`${d}-single`]:!e$,[`${d}-allow-clear`]:eG,[`${d}-show-arrow`]:null!=eX,[`${d}-disabled`]:P,[`${d}-loading`]:R,[`${d}-open`]:eI,[`${d}-customize-input`]:eM,[`${d}-show-search`]:b}),eZ=a.createElement(ee,et({},ey,{ref:ex,prefixCls:d,className:eQ,focused:eC,prefix:G,suffix:eX,clearIcon:eU,multiple:e$,mode:I,displayValues:C,placeholder:O,searchValue:eA,activeValue:L,onSearch:eB,onSearchSubmit:e=>{e&&e.trim()&&q(e,{source:"submit"})},onInputBlur:()=>{eL.current=!1},onFocus:e=>{ek(!0),P||(ef.includes("focus")&&eP(!0),ep?.(e))},onBlur:e=>{ek(!1),eA&&("tags"===I?q(eA,{source:"submit"}):"multiple"===I&&q("",{source:"blur"})),eW(),P||eh?.(e)},onClearMouseDown:()=>{M?.(),ex.current?.focus(),k([],{type:"clear",values:C}),eB("",!1,!1)},onKeyDown:e=>{let t=eD(),{key:r}=e,n="Enter"===r,o=" "===r;if(n||o){let t="combobox"===I,r=t||b;(o&&!r||n&&!t)&&e.preventDefault(),eI||eP(!0)}if(eF(!!eA),"Backspace"===r&&!t&&e$&&!eA&&C.length){let e=[...C],t=null;for(let r=e.length-1;r>=0;r-=1){let n=e[r];if(!n.disabled){e.splice(r,1),t=n;break}}t&&k(e,{type:"remove",values:[t]})}!eI||n&&eL.current||o||(n&&(eL.current=!0),eE.current?.onKeyDown(e)),eg?.(e)},onKeyUp:(e,...t)=>{eI&&eE.current?.onKeyUp(e,...t),"Enter"===e.key&&(eL.current=!1),em?.(e,...t)},onSelectorRemove:eH,tokenWithEnter:ez,onMouseDown:eq,components:eS}));return eZ=a.createElement(p,{ref:ew,disabled:P,prefixCls:d,visible:eI,popupElement:eY,animation:J,transitionName:en,popupStyle:eo,popupClassName:ea,direction:w,popupMatchSelectWidth:ei,popupRender:el,popupAlign:es,placement:ec,builtinPlacements:eu,getPopupContainer:ed,empty:S,onPopupVisibleChange:n,onPopupMouseEnter:function(){eK({})},onPopupMouseDown:eq,onPopupBlur:eW},eZ),a.createElement(s.Provider,{value:eV},a.createElement(v,{visible:eC&&!eI,values:C}),eZ)}),eo=()=>null;eo.isSelectOptGroup=!0;let ea=()=>null;ea.isSelectOption=!0;var ei=r(2201);function el(){return(el=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function es(e){return"string"==typeof e||"number"==typeof e}let ec=a.forwardRef((e,t)=>{let{prefixCls:r,id:n,open:o,multiple:s,mode:u,searchValue:d,toggleOpen:f,notFoundContent:p,onPopupScroll:h,showScrollBar:g,lockOptions:b}=c(),{maxCount:v,flattenOptions:y,onActiveValue:$,defaultActiveFirstOption:x,onSelect:w,menuItemSelectedIcon:E,rawValues:C,fieldNames:S,virtual:A,direction:M,listHeight:N,listItemHeight:O,optionRender:I,classNames:P,styles:R}=a.useContext(k),z=`${r}-item`,T=(0,i.Kr)(()=>y,[o,b],(e,t)=>t[0]&&!t[1]),B=a.useRef(null),D=a.useMemo(()=>s&&m(v)&&C?.size>=v,[s,v,C?.size]),F=e=>{e.preventDefault()},L=e=>{B.current?.scrollTo("number"==typeof e?{index:e}:e)},H=a.useCallback(e=>"combobox"!==u&&C.has(e),[u,[...C].toString(),C.size]),j=(e,t=1)=>{let r=T.length;for(let n=0;n<r;n+=1){let o=(e+n*t+r)%r,{group:a,data:i}=T[o]||{};if(!a&&!i?.disabled&&(H(i.value)||!D))return o}return -1},[_,W]=a.useState(()=>j(0)),q=(e,t=!1)=>{W(e);let r={source:t?"keyboard":"mouse"},n=T[e];n?$(n.value,e,r):$(null,-1,r)};(0,a.useEffect)(()=>{q(!1!==x?j(0):-1)},[T.length,d]);let K=a.useCallback(e=>"combobox"===u?String(e).toLowerCase()===d.toLowerCase():C.has(e),[u,d,[...C].toString(),C.size]);(0,a.useEffect)(()=>{let e;if(!s&&o&&1===C.size){let t=Array.from(C)[0],r=T.findIndex(({data:e})=>d?String(e.value).startsWith(d):e.value===t);-1!==r&&(q(r),e=setTimeout(()=>{L(r)}))}return o&&B.current?.scrollTo(void 0),()=>clearTimeout(e)},[o,d]);let X=e=>{void 0!==e&&w(e,{selected:!C.has(e)}),s||f(!1)};if(a.useImperativeHandle(t,()=>({onKeyDown:e=>{let{which:t,ctrlKey:r}=e;switch(t){case i.DD.N:case i.DD.P:case i.DD.UP:case i.DD.DOWN:{let e=0;if(t===i.DD.UP?e=-1:t===i.DD.DOWN?e=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&r&&(t===i.DD.N?e=1:t===i.DD.P&&(e=-1)),0!==e){let t=j(_+e,e);L(t),q(t,!0)}break}case i.DD.TAB:case i.DD.ENTER:{let t=T[_];if(!t||t.data.disabled)return X(void 0);!D||C.has(t.value)?X(t.value):X(void 0),o&&e.preventDefault();break}case i.DD.ESC:f(!1),o&&e.stopPropagation()}},onKeyUp:()=>{},scrollTo:e=>{L(e)}})),0===T.length)return a.createElement("div",{role:"listbox",id:`${n}_list`,className:`${z}-empty`,onMouseDown:F},p);let G=Object.keys(S).map(e=>S[e]);function U(e,t){let{group:r}=e;return{role:r?"presentation":"option",id:`${n}_list_${t}`}}let Y=e=>{let t=T[e];if(!t)return null;let r=t.data||{},{value:n,disabled:o}=r,{group:l}=t,s=(0,i.KE)(r,!0),c=t.label;return t?a.createElement("div",el({"aria-label":"string"!=typeof c||l?null:c},s,{key:e},U(t,e),{"aria-selected":K(n),"aria-disabled":o}),n):null},Q={role:"listbox",id:`${n}_list`};return a.createElement(a.Fragment,null,A&&a.createElement("div",el({},Q,{style:{height:0,width:0,overflow:"hidden"}}),Y(_-1),Y(_),Y(_+1)),a.createElement(ei.A,{itemKey:"key",ref:B,data:T,height:N,itemHeight:O,fullHeight:!1,onMouseDown:F,onScroll:h,virtual:A,direction:M,innerProps:A?null:Q,showScrollBar:g,className:P?.popup?.list,style:R?.popup?.list},(e,t)=>{let{group:r,groupOption:n,data:o,label:s,value:c}=e,{key:u}=o;if(r){let e=o.title??(es(s)?s.toString():void 0);return a.createElement("div",{className:(0,l.$)(z,`${z}-group`,o.className),title:e},void 0!==s?s:u)}let{disabled:d,title:f,children:p,style:h,className:m,...g}=o,b=(0,i.cJ)(g,G),v=H(c),y=d||!v&&D,$=`${z}-option`,x=(0,l.$)(z,$,m,P?.popup?.listItem,{[`${$}-grouped`]:n,[`${$}-active`]:_===t&&!y,[`${$}-disabled`]:y,[`${$}-selected`]:v}),w=e.label,C=!E||"function"==typeof E||v,k="number"==typeof w?w:w||c,S=es(k)?k.toString():void 0;return void 0!==f&&(S=f),a.createElement("div",el({},(0,i.KE)(b),A?{}:U(e,t),{"aria-selected":A?void 0:K(c),"aria-disabled":y,className:x,title:S,onMouseMove:()=>{_===t||y||q(t)},onClick:()=>{y||X(c)},style:{...R?.popup?.listItem,...h}}),a.createElement("div",{className:`${$}-content`},"function"==typeof I?I(e,{index:t}):k),a.isValidElement(E)||v,C&&a.createElement(V,{className:`${z}-option-state`,customizeIcon:E,customizeIconProps:{value:c,disabled:y,isSelected:v}},v?"✓":null))}))});function eu(e,t){return S(e).join("").toUpperCase().includes(t)}function ed(e){let t=a.useRef();return t.current=e,a.useCallback((...e)=>t.current(...e),[])}function ef(){return(ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let ep=["inputValue"],eh=a.forwardRef((e,t)=>{var r;let n,o,{id:l,mode:s,prefixCls:c="rc-select",backfill:u,fieldNames:d,showSearch:f,searchValue:p,onSearch:m,autoClearSearchValue:v,filterOption:y,optionFilterProp:$,filterSort:x,onSelect:w,onDeselect:E,onActive:C,popupMatchSelectWidth:A=!0,optionLabelProp:M,options:N,optionRender:O,children:I,defaultActiveFirstOption:P,menuItemSelectedIcon:R,virtual:z,direction:T,listHeight:B=200,listItemHeight:D=20,labelRender:F,value:L,defaultValue:H,labelInValue:j,onChange:_,maxCount:W,classNames:q,styles:K,...V}=e,[X,G]=function(e,t,r){let{filterOption:n,searchValue:o,optionFilterProp:i,filterSort:l,onSearch:s,autoClearSearchValue:c}=t;return a.useMemo(()=>{let t="object"==typeof e,a={filterOption:n,searchValue:o,optionFilterProp:i,filterSort:l,onSearch:s,autoClearSearchValue:c,...t?e:{}};return[!!t||"combobox"===r||"tags"===r||"multiple"===r&&void 0===e||e,a]},[r,e,n,o,i,l,s,c])}(f,{searchValue:p,onSearch:m,autoClearSearchValue:v,filterOption:y,optionFilterProp:$,filterSort:x},s),{filterOption:U,searchValue:Y,optionFilterProp:Q,filterSort:Z,onSearch:J,autoClearSearchValue:ee=!0}=G,et=a.useMemo(()=>Q?Array.isArray(Q)?Q:[Q]:[],[Q]),eo=(0,i.Bi)(l),ea=er(s),ei=!!(!N&&I),el=a.useMemo(()=>(void 0!==U||"combobox"!==s)&&U,[U,s]),es=a.useMemo(()=>g(d,ei),[JSON.stringify(d),ei]),[eh,em]=(0,i.PW)("",Y),eg=eh||"",eb=a.useMemo(()=>{let e=N;N||(e=function e(t,r=!1){return(0,i.$r)(t).map((t,n)=>{if(!a.isValidElement(t)||!t.type)return null;let{type:{isSelectOptGroup:o},key:i,props:{children:l,...s}}=t;return r||!o?function(e){let{key:t,props:{children:r,value:n,...o}}=e;return{key:t,value:void 0!==n?n:t,children:r,...o}}(t):{key:`__RC_SELECT_GRP__${null===i?n:i}__`,label:i,...s,options:e(l)}}).filter(e=>e)}(I));let t=new Map,r=new Map,n=(e,t,r)=>{r&&"string"==typeof r&&e.set(t[r],t)},o=(e,a=!1)=>{for(let i=0;i<e.length;i+=1){let l=e[i];!l[es.options]||a?(t.set(l[es.value],l),n(r,l,es.label),et.forEach(e=>{n(r,l,e)}),n(r,l,M)):o(l[es.options],!0)}};return o(e),{options:e,valueOptions:t,labelOptions:r}},[N,I,es,et,M]),{valueOptions:ev,labelOptions:ey,options:e$}=eb,ex=a.useCallback(e=>S(e).map(e=>{let t,r,n,o;e&&"object"==typeof e?(r=e.label,t=e.value):t=e;let a=ev.get(t);return a&&(void 0===r&&(r=a?.[M||es.label]),n=a?.disabled,o=a?.title),{label:r,value:t,key:t,disabled:n,title:o}}),[es,M,ev]),[ew,eE]=(0,i.PW)(H,L),[eC,ek]=(r=a.useMemo(()=>{var e;let t=ex(ea&&null===ew?[]:ew);return"combobox"!==s||(e=t[0]?.value)||0===e?t:[]},[ew,ex,s,ea]),n=a.useRef({values:new Map,options:new Map}),[a.useMemo(()=>{let{values:e,options:t}=n.current,o=r.map(t=>void 0===t.label?{...t,label:e.get(t.value)?.label}:t),a=new Map,i=new Map;return o.forEach(e=>{a.set(e.value,e),i.set(e.value,ev.get(e.value)||t.get(e.value))}),n.current.values=a,n.current.options=i,o},[r,ev]),a.useCallback(e=>ev.get(e)||n.current.options.get(e),[ev])]),eS=a.useMemo(()=>{if(!s&&1===eC.length){let e=eC[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return eC.map(e=>({...e,label:("function"==typeof F?F(e):e.label)??e.value}))},[s,eC,F]),eA=a.useMemo(()=>new Set(eC.map(e=>e.value)),[eC]);a.useEffect(()=>{if("combobox"===s){let e=eC[0]?.value;em(null!=e?String(e):"")}},[eC]);let eM=ed((e,t)=>({[es.value]:e,[es.label]:t??e})),eN=(o=a.useMemo(()=>{if("tags"!==s)return e$;let e=[...e$];return[...eC].sort((e,t)=>e.value<t.value?-1:1).forEach(t=>{let r=t.value;ev.has(r)||e.push(eM(r,t.label))}),e},[eM,e$,ev,eC,s]),a.useMemo(()=>{if(!eg||!1===el)return o;let{options:e,label:t,value:r}=es,n=[],a="function"==typeof el,i=eg.toUpperCase(),l=a?el:(n,o)=>et&&et.length?et.some(e=>eu(o[e],i)):o[e]?eu(o["children"!==t?t:"label"],i):eu(o[r],i),s=a?e=>b(e):e=>e;return o.forEach(t=>{if(t[e]){if(l(eg,s(t)))n.push(t);else{let r=t[e].filter(e=>l(eg,s(e)));r.length&&n.push({...t,[e]:r})}return}l(eg,s(t))&&n.push(t)}),n},[o,el,et,eg,es])),eO=a.useMemo(()=>"tags"!==s||!eg||eN.some(e=>et.length?et.some(t=>e?.[t]===eg):e?.value===eg)||eN.some(e=>e[es.value]===eg)||ev.get(eg)?.disabled?eN:[eM(eg),...eN],[eM,et,s,eN,eg,es,ev]),eI=e=>[...e].sort((e,t)=>Z(e,t,{searchValue:eg})).map(e=>Array.isArray(e.options)?{...e,options:e.options.length>0?eI(e.options):e.options}:e),eP=a.useMemo(()=>Z?eI(eO):eO,[eO,Z,eg]),eR=a.useMemo(()=>(function(e,{fieldNames:t,childrenAsData:r}={}){let n=[],{label:o,value:a,options:i,groupLabel:l}=g(t,!1);return!function e(t,s){Array.isArray(t)&&t.forEach(t=>{if(!s&&i in t){let o=t[l];void 0===o&&r&&(o=t.label),n.push({key:h(t,n.length),group:!0,data:t,label:o}),e(t[i],!0)}else{let e=t[a];n.push({key:h(t,n.length),groupOption:s,data:t,label:t[o],value:e})}})}(e,!1),n})(eP,{fieldNames:es,childrenAsData:ei}),[eP,es,ei]),ez=e=>{let t=ex(e);if(eE(t),_&&(t.length!==eC.length||t.some((e,t)=>eC[t]?.value!==e?.value))){let e=j?t.map(({label:e,value:t})=>({label:e,value:t})):t.map(e=>e.value),r=t.map(e=>b(ek(e.value)));_(ea?e:e[0],ea?r:r[0])}},[eT,eB]=a.useState(null),[eD,eF]=a.useState(0),eL=void 0!==P?P:"combobox"!==s,eH=a.useRef(),ej=a.useCallback((e,t,{source:r="keyboard"}={})=>{eF(t),u&&"combobox"===s&&null!==e&&"keyboard"===r&&eB(String(e));let n=Promise.resolve().then(()=>{eH.current===n&&C?.(e)});eH.current=n},[u,s,C]),e_=(e,t,r)=>{let n=()=>{let t=ek(e);return[j?{label:t?.[es.label],value:e}:e,b(t)]};if(t&&w){let[e,t]=n();w(e,t)}else if(!t&&E&&"clear"!==r){let[e,t]=n();E(e,t)}},eW=ed((e,t)=>{let r=!ea||t.selected;ez(r?ea?[...eC,e]:[e]:eC.filter(t=>t.value!==e)),e_(e,r),"combobox"===s?eB(""):(!er||ee)&&(em(""),eB(""))}),eq=a.useMemo(()=>{let e=!1!==z&&!1!==A;return{...eb,flattenOptions:eR,onActiveValue:ej,defaultActiveFirstOption:eL,onSelect:eW,menuItemSelectedIcon:R,rawValues:eA,fieldNames:es,virtual:e,direction:T,listHeight:B,listItemHeight:D,childrenAsData:ei,maxCount:W,optionRender:O,classNames:q,styles:K}},[W,eb,eR,ej,eL,eW,R,eA,es,z,A,T,B,D,ei,O,q,K]);return a.createElement(k.Provider,{value:eq},a.createElement(en,ef({},V,{id:eo,prefixCls:c,ref:t,omitDomProps:ep,mode:s,classNames:q,styles:K,displayValues:eS,onDisplayValuesChange:(e,t)=>{ez(e);let{type:r,values:n}=t;("remove"===r||"clear"===r)&&n.forEach(e=>{e_(e.value,!1,r)})},maxCount:W,direction:T,showSearch:X,searchValue:eg,onSearch:(e,t)=>{if(em(e),eB(null),"submit"===t.source){let t=(e||"").trim();if(t){if(ev.get(t)?.disabled)return void em("");ez(Array.from(new Set([...eA,t]))),e_(t,!0),em("")}return}"blur"!==t.source&&("combobox"===s&&ez(e),J?.(e))},autoClearSearchValue:ee,onSearchSplit:e=>{let t=e;"tags"!==s&&(t=e.map(e=>{let t=ey.get(e);return t?.value}).filter(e=>void 0!==e)),"tags"===s&&(t=t.filter(e=>!ev.get(e)?.disabled));let r=Array.from(new Set([...eA,...t]));ez(r),r.forEach(e=>{e_(e,!0)})},popupMatchSelectWidth:A,OptionList:ec,emptyOptions:!eR.length,activeValue:eT,activeDescendantId:`${eo}_list_${eD}`})))});eh.Option=ea,eh.OptGroup=eo;var em=r(7874),eg=r(2382),eb=r(568);function ev(e,t,r){return!1===e?null:!0===e?r:e&&void 0!==e[t]?e[t]:r}var ey=r(3692),e$=r(7034),ex=r(1387),ew=r(2564),eE=r(8156),eC=r(3055);let ek=(e,t)=>e?.startsWith("var(")||t?.startsWith("var(")?e:new eC.Y(e).onBackground(t).toHexString();var eS=r(9233),eA=r(8528),eM=(0,eS.OF)("Empty",e=>{let{componentCls:t,controlHeightLG:r,calc:n}=e;return(e=>{let{componentCls:t,margin:r,marginXS:n,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:n,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}})((0,eA.oX)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()}))});let eN=a.createElement(()=>{let[,e]=(0,eE.Ay)(),[t]=(0,ew.A)("Empty"),{colorBgContainer:r,colorFill:n,colorFillSecondary:o,colorFillTertiary:i,colorTextQuaternary:l}=e,{panelBgColor:s,borderColor:c,detailColor:u,shadowColor:d,iconColor:f}=(0,a.useMemo)(()=>({panelBgColor:ek(i,r),borderColor:ek(l,r),detailColor:ek(n,r),shadowColor:ek(o,r),iconColor:r}),[r,n,o,i,l]);return a.createElement("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},a.createElement("title",null,t?.description||"Empty"),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("g",{transform:"translate(24 31.7)"},a.createElement("ellipse",{fillOpacity:".8",fill:d,cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),a.createElement("path",{fill:c,d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),a.createElement("path",{fill:s,d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),a.createElement("path",{fill:u,d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),a.createElement("path",{fill:u,d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),a.createElement("g",{fill:f,transform:"translate(149.7 15.4)"},a.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),a.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},null),eO=a.createElement(()=>{let[,e]=(0,eE.Ay)(),[t]=(0,ew.A)("Empty"),{colorFill:r,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:l,shadowColor:s,contentColor:c}=(0,a.useMemo)(()=>({borderColor:ek(r,i),shadowColor:ek(n,i),contentColor:ek(o,i)}),[r,n,o,i]);return a.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},a.createElement("title",null,t?.description||"Empty"),a.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},a.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),a.createElement("g",{fillRule:"nonzero",stroke:l},a.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),a.createElement("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:c}))))},null),eI=e=>{let{className:t,rootClassName:r,prefixCls:n,image:o,description:i,children:s,imageStyle:c,style:u,classNames:d,styles:f,...p}=e,{getPrefixCls:h,direction:m,className:g,style:b,classNames:v,styles:y,image:$}=(0,e$.TP)("empty"),x=h("empty",n),[w,E]=eM(x),C=(0,eg.XT)(b),k=(0,eg.XT)(u),[S,A]=(0,eg.AV)([v,d],[y,C,f,k],{props:e}),[M]=(0,ew.A)("Empty"),N=void 0!==i?i:M?.description,O="string"==typeof N?N:"empty",I=o??$??eN,P=null;return P="string"==typeof I?a.createElement("img",{draggable:!1,alt:O,src:I}):I,a.createElement("div",{className:(0,l.$)(w,E,x,g,{[`${x}-normal`]:I===eO,[`${x}-rtl`]:"rtl"===m},t,r,S.root),style:A.root,...p},a.createElement("div",{className:(0,l.$)(`${x}-image`,S.image),style:{...c,...A.image}},P),N&&a.createElement("div",{className:(0,l.$)(`${x}-description`,S.description),style:A.description},N),s&&a.createElement("div",{className:(0,l.$)(`${x}-footer`,S.footer),style:A.footer},s))};eI.PRESENTED_IMAGE_DEFAULT=eN,eI.PRESENTED_IMAGE_SIMPLE=eO;var eP=e=>{let{componentName:t}=e,{getPrefixCls:r}=(0,a.useContext)(e$.QO),n=r("empty");switch(t){case"Table":case"List":return a.createElement(eI,{image:eI.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return a.createElement(eI,{image:eI.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});case"Table.filter":return null;default:return a.createElement(eI,null)}},eR=r(8306),ez=r(941),eT=r(1984),eB=r(850),eD=r(1679),eF=r(9838),eL=function(e,t){let r;return e||{bottomLeft:{...r={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===t?"scroll":"visible",dynamicInset:!0},points:["tl","bl"],offset:[0,4]},bottomRight:{...r,points:["tr","br"],offset:[0,4]},topLeft:{...r,points:["bl","tl"],offset:[0,-4]},topRight:{...r,points:["br","tr"],offset:[0,-4]}}},eH=r(4440),ej=r(3677),e_=r(9078),eW=r(4933);let eq=new e_.Mo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),eK=new e_.Mo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),eV=new e_.Mo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),eX=new e_.Mo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),eG={"slide-up":{inKeyframes:eq,outKeyframes:eK},"slide-down":{inKeyframes:eV,outKeyframes:eX},"slide-left":{inKeyframes:new e_.Mo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new e_.Mo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new e_.Mo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new e_.Mo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},eU=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:a}=eG[t];return[(0,eW.b)(n,o,a,e.motionDurationMid),{[`
|
|
120
|
+
${n}-enter,
|
|
121
|
+
${n}-appear
|
|
122
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},eY=new e_.Mo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),eQ=new e_.Mo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),eZ=new e_.Mo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),eJ=new e_.Mo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),e0=new e_.Mo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),e1=new e_.Mo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),e2={"move-up":{inKeyframes:new e_.Mo("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 e_.Mo("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:eY,outKeyframes:eQ},"move-left":{inKeyframes:eZ,outKeyframes:eJ},"move-right":{inKeyframes:e0,outKeyframes:e1}},e5=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:a}=e2[t];return[(0,eW.b)(n,o,a,e.motionDurationMid),{[`
|
|
123
|
+
${n}-enter,
|
|
124
|
+
${n}-appear
|
|
125
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},e4=e=>{let{optionHeight:t,optionFontSize:r,optionLineHeight:n,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:n,boxSizing:"border-box"}},e6=(e,t)=>{let{componentCls:r,antCls:n}=e,[o]=(0,eS.PN)(n,"select"),{border:a,borderHover:i,borderActive:l,borderOutline:s}=t,c=t.background||e.selectorBg||e.colorBgContainer;return{[o("border-color")]:a,[o("background-color")]:c,[o("affix-color")]:t.affixColor,[`&:not(${r}-disabled)`]:{"&:hover":{[o("border-color")]:i,[o("background-color")]:t.backgroundHover||c},[`&${r}-focused`]:{[o("border-color")]:l,[o("background-color")]:t.backgroundActive||c,boxShadow:`0 0 0 ${(0,e_.zA)(e.controlOutlineWidth)} ${s}`}},[`&${r}-disabled`]:{[o("border-color")]:t.borderDisabled||t.border,[o("background-color")]:t.backgroundDisabled||t.background}}},e8=(e,t,r,n,o,a)=>{let{componentCls:i}=e;return{[`&${i}-${t}`]:[e6(e,r),{[`&${i}-status-error`]:e6(e,{...r,...n}),[`&${i}-status-warning`]:e6(e,{...r,...o})},a]}},e3=(e,t)=>({outline:`${(0,e_.zA)(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:(0,e_.zA)(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(e=>`${e} 0s`).join(", ")});var e9=(0,eS.OF)("Select",(e,{rootPrefixCls:t})=>{let r=(0,eA.oX)(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[(e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},(e=>{let{antCls:t,componentCls:r,motionDurationMid:n,inputPaddingHorizontalBase:o}=e,a={[`${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[r]:{...(0,eH.dF)(e),[`${r}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...eH.L9,[`> ${t}-typography`]:{display:"inline"}},[`${r}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:["color","opacity"].map(e=>`${e} ${n} ease`).join(", "),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a},[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}})(e),(e=>{let{antCls:t,componentCls:r}=e,n=`${r}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${r}-dropdown-placement-`,s=`${n}-option-selected`;return[{[`${r}-dropdown`]:{...(0,eH.dF)(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,[`
|
|
126
|
+
${o}${l}bottomLeft,
|
|
127
|
+
${a}${l}bottomLeft
|
|
128
|
+
`]:{animationName:eq},[`
|
|
129
|
+
${o}${l}topLeft,
|
|
130
|
+
${a}${l}topLeft,
|
|
131
|
+
${o}${l}topRight,
|
|
132
|
+
${a}${l}topRight
|
|
133
|
+
`]:{animationName:eV},[`${i}${l}bottomLeft`]:{animationName:eK},[`
|
|
134
|
+
${i}${l}topLeft,
|
|
135
|
+
${i}${l}topRight
|
|
136
|
+
`]:{animationName:eX},"&-hidden":{display:"none"},[n]:{...e4(e),cursor:"pointer",transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...eH.L9},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${n}-option-state`]:{color:e.colorPrimary}},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected${n}-option-active:not(${n}-option-disabled)`]:{backgroundColor:e.controlItemBgActiveHover},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...e4(e),color:e.colorTextDisabled}},[`${s}:has(+ ${s})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${s}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},eU(e,"slide-up"),eU(e,"slide-down"),e5(e,"move-up"),e5(e,"move-down")]})(e),{[`${t}-rtl`]:{direction:"rtl"}},(0,ej.G)(e,{focusElCls:`${t}-focused`})]})(r),(e=>{let{componentCls:t,fontHeight:r,controlHeight:n,fontSizeIcon:o,showArrowPaddingInlineEnd:a,iconCls:i,antCls:l,max:s,calc:c}=e,[u,d]=(0,eS.PN)(l,"select"),f=s(c(a).sub(o).equal(),0);return{[t]:[{[u("border-radius")]:e.borderRadius,[u("border-color")]:"#000",[u("border-size")]:e.lineWidth,[u("background-color")]:e.colorBgContainer,[u("font-size")]:e.fontSize,[u("line-height")]:e.lineHeight,[u("font-height")]:r,[u("color")]:e.colorText,[u("affix-color")]:e.colorText,[u("height")]:n,[u("padding-horizontal")]:c(e.paddingSM).sub(e.lineWidth).equal(),[u("padding-vertical")]:`calc((${d("height")} - ${d("font-height")}) / 2 - ${d("border-size")})`,...(0,eH.dF)(e),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:d("border-radius"),borderWidth:d("border-size"),borderStyle:e.lineType,borderColor:d("border-color"),background:d("background-color"),fontSize:d("font-size"),lineHeight:d("line-height"),color:d("color"),paddingInline:d("padding-horizontal"),paddingBlock:d("padding-vertical"),[`${t}-prefix`]:{color:d("affix-color"),flex:"none",lineHeight:1},[`${t}-placeholder`]:{...eH.L9,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:f,"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{visibility:"inherit"},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[i]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[u("height")]:e.controlHeightSM,[u("padding-horizontal")]:c(e.paddingXS).sub(e.lineWidth).equal(),[u("border-radius")]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:d("padding-horizontal")}},"&-lg":{[u("height")]:e.controlHeightLG,[u("font-size")]:e.fontSizeLG,[u("line-height")]:e.lineHeightLG,[u("font-height")]:e.fontHeightLG,[u("border-radius")]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:d("color"),fontFamily:"inherit",fontSize:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",inset:0,lineHeight:"inherit"},[`${t}-content`]:{...eH.L9,alignSelf:"center","&-has-value":{display:"block","&:before":{display:"none"}},"&-has-search-value":{color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1,opacity:1}},[`&${t}-open ${t}-content`]:{"&-has-value":{opacity:.25},"&-has-search-value":{opacity:1,transition:`opacity ${e.motionDurationMid} ${e.motionEaseInOut}`,color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},(e=>{let{componentCls:t,calc:r,iconCls:n,paddingXS:o,paddingXXS:a,INTERNAL_FIXED_ITEM_MARGIN:i,lineWidth:l,lineType:s,colorIcon:c,colorIconHover:u,inputPaddingHorizontalBase:d,antCls:f}=e,[p,h]=(0,eS.PN)(f,"select");return{"&-multiple":{[p("multi-item-background")]:e.multipleItemBg,[p("multi-item-border-color")]:"transparent",[p("multi-item-border-radius")]:e.borderRadiusSM,[p("multi-item-height")]:e.multipleItemHeight,[p("multi-padding-base")]:`calc((${h("height")} - ${h("multi-item-height")}) / 2)`,[p("multi-padding-vertical")]:`calc(${h("multi-padding-base")} - ${i} - ${l})`,[p("multi-item-padding-horizontal")]:`calc(${d} - ${h("multi-padding-vertical")} - ${l} * 2)`,paddingBlock:h("multi-padding-vertical"),paddingInlineStart:`calc(${h("multi-padding-base")} - ${l})`,[`${t}-prefix`]:{marginInlineStart:h("multi-item-padding-horizontal")},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:"absolute",lineHeight:h("line-height"),insetInlineStart:h("multi-item-padding-horizontal"),width:`calc(100% - ${h("multi-item-padding-horizontal")})`,top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:h("font-size")},"&-item":{lineHeight:1,maxWidth:"calc(100% - 4px)"},[`${t}-content-item-prefix + ${t}-content-item-suffix,
|
|
137
|
+
${t}-content-item-suffix:first-child`]:{marginInlineStart:h("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${h("multi-item-height")} - ${l} * 2)`,border:`${l} ${s} ${h("multi-item-border-color")}`,display:"flex",marginBlock:i,marginInlineEnd:r(i).mul(2).equal(),background:h("multi-item-background"),borderRadius:h("multi-item-border-radius"),paddingInlineStart:o,paddingInlineEnd:a,transition:["height","line-height","padding"].map(t=>`${t} ${e.motionDurationSlow}`).join(","),"&-content":{...eH.L9,marginInlineEnd:a},"&-remove":{...(0,eH.Nk)(),display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}}},[`${t}-input`]:{lineHeight:r(i).mul(2).add(h("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:4,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[p("multi-item-height")]:e.multipleItemHeightSM,[p("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[p("multi-item-height")]:e.multipleItemHeightLG,[p("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[p("multi-item-border-color")]:e.colorSplit,[p("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[p("multi-item-border-color")]:"transparent"}}}}})(e),e8(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline,affixColor:e.colorErrorAffix},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline,affixColor:e.colorWarningAffix}),e8(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{color:e.colorErrorText,background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),e8(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"},{},{},{[`&:not(${t}-disabled):has(input:focus-visible), &:not(${t}-disabled):has(textarea:focus-visible)`]:e3(e,e.activeBorderColor),[`&${t}-status-error:not(${t}-disabled):has(input:focus-visible), &${t}-status-error:not(${t}-disabled):has(textarea:focus-visible)`]:e3(e,e.colorError),[`&${t}-status-warning:not(${t}-disabled):has(input:focus-visible), &${t}-status-warning:not(${t}-disabled):has(textarea:focus-visible)`]:e3(e,e.colorWarning)}),e8(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderInlineColor:"transparent"}),(e=>{let{antCls:t,componentCls:r}=e,n={background:"transparent"},o=`> input[disabled], > textarea[disabled], > ${r}-input, > ${t}-input-affix-wrapper-disabled, > ${t}-input-search`;return{[`&${r}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${r}-placeholder`]:{display:"none"},[`${r}-content`]:{margin:0,padding:0,"&-value":{display:"none"}},[`&${r}-filled ${r}-content`]:{[`${t}-input-filled`]:n},[`&${r}-disabled ${r}-content`]:{[o]:n,"input[disabled], textarea[disabled]":n}}}})(e)]}})(r)]},e=>{let{fontSize:t,lineHeight:r,lineWidth:n,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:h,colorFillSecondary:m,colorBgContainerDisabled:g,colorTextDisabled:b,colorPrimaryHover:v,colorPrimary:y,controlOutline:$}=e,x=2*l,w=2*n,E=Math.min(o-x,o-w),C=Math.min(a-x,a-w),k=Math.min(i-x,i-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(o-t*r)/2}px ${s}px`,optionFontSize:t,optionLineHeight:r,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:i,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:E,multipleItemHeightSM:C,multipleItemHeightLG:k,multipleSelectorBgDisabled:g,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:$,selectAffixPadding:l}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),e7=r(6344),te=r(2875);function tt(){return(tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let tr=a.forwardRef((e,t)=>a.createElement(te.A,tt({},e,{ref:t,icon:e7.A})));var tn=r(1151),to=r(197),ta=r(3085),ti=r(6941),tl=r(1125),ts=r(2661),tc=r(6192);let tu="SECRET_COMBOBOX_MODE_DO_NOT_USE",td=a.forwardRef((e,t)=>{var r,n,o;let s,{prefixCls:c,bordered:u,className:d,rootClassName:f,getPopupContainer:p,popupClassName:h,dropdownClassName:m,listHeight:g=256,placement:b,listItemHeight:v,size:y,disabled:$,notFoundContent:x,status:w,builtinPlacements:E,dropdownMatchSelectWidth:C,popupMatchSelectWidth:k,direction:S,style:A,allowClear:M,variant:N,popupStyle:O,dropdownStyle:I,transitionName:P,tagRender:R,maxCount:z,prefix:T,dropdownRender:B,popupRender:D,onDropdownVisibleChange:F,onOpenChange:L,styles:H,classNames:j,clearIcon:_,showSearch:W,...q}=e,{getPopupContainer:K,getPrefixCls:V,renderEmpty:X,direction:G,virtual:U,popupMatchSelectWidth:Y,popupOverflow:Q}=a.useContext(e$.QO),{showSearch:Z,allowClear:J,style:ee,styles:et,className:er,classNames:en,clearIcon:eo,loadingIcon:ea,menuItemSelectedIcon:ei,removeIcon:el,suffixIcon:es}=(0,e$.TP)("select"),[,ec]=(0,eE.Ay)(),eu=v??ec?.controlHeight,ed=V("select",c),ef=V(),ep=S??G,{compactSize:ey,compactItemClassnames:ew}=(0,eF.RQ)(ed,ep),[eC,ek]=(0,eD.A)("select",N,u),eS=(0,ez.A)(ed),[eA,eM]=e9(ed,eS),eN=a.useMemo(()=>{let{mode:t}=e;if("combobox"!==t)return t===tu?"combobox":t},[e.mode]),eO="multiple"===eN||"tags"===eN,eI=(r=e.suffixIcon,void 0!==(n=e.showArrow)?n:null!==r),eH=(o=D||B,a.useMemo(()=>{if(o)return(...e)=>a.createElement(tc.A,{space:!0},o.apply(void 0,e))},[o])),{status:ej,hasFeedback:e_,isFormItemInput:eW,feedbackIcon:eq}=a.useContext(eB.$W),eK=(0,ex.v)(ej,w);s=void 0!==x?x:"combobox"===eN?null:X?.("Select")||a.createElement(eP,{componentName:"Select"});let{suffixIcon:eV,itemIcon:eX,removeIcon:eG,clearIcon:eU}=function({suffixIcon:e,contextSuffixIcon:t,clearIcon:r,contextClearIcon:n,menuItemSelectedIcon:o,contextMenuItemSelectedIcon:i,removeIcon:l,contextRemoveIcon:s,loading:c,loadingIcon:u,contextLoadingIcon:d,searchIcon:f,contextSearchIcon:p,multiple:h,hasFeedback:m,showSuffixIcon:g,feedbackIcon:b,showArrow:v,componentName:y}){return a.useMemo(()=>{let y=(0,ts.A)(r,n,a.createElement(tn.A,null)),$=t=>null!==e||m||v?a.createElement(a.Fragment,null,!1!==g&&t,m&&b):null,x=null;return{clearIcon:y,suffixIcon:x=void 0!==e?$(e):c?$((0,ts.A)(u,d,a.createElement(ti.A,{spin:!0}))):({open:e,showSearch:r})=>e&&r?$((0,ts.A)(f,p,a.createElement(tl.A,null))):$((0,ts.A)(t,a.createElement(ta.A,null))),itemIcon:(0,ts.A)(o,i,h?a.createElement(tr,null):null),removeIcon:(0,ts.A)(l,s,a.createElement(to.A,null))}},[e,t,r,n,o,i,l,s,c,u,d,f,p,h,m,g,b,v])}({...q,multiple:eO,hasFeedback:e_,feedbackIcon:eq,showSuffixIcon:eI,prefixCls:ed,componentName:"Select",clearIcon:_,searchIcon:ev(W,"searchIcon"),contextClearIcon:eo,contextLoadingIcon:ea,contextMenuItemSelectedIcon:ei,contextRemoveIcon:el,contextSearchIcon:ev(Z,"searchIcon"),contextSuffixIcon:es}),eY=M??J,eQ=W??Z,eZ=(0,i.cJ)(q,["suffixIcon","itemIcon"]),eJ=(0,eT.A)(e=>y??ey??e),e0=a.useContext(eR.A),e1=$??e0,e2={...e,variant:eC,status:eK,disabled:e1,size:eJ},e5=(0,eg.XT)(ee),e4=(0,eg.XT)(A),[e6,e8]=(0,eg.AV)([en,j],[et,e5,H,e4],{props:e2},{popup:{_default:"root"}}),e3=(0,l.$)(e6.popup.root,h,m,{[`${ed}-dropdown-${ep}`]:"rtl"===ep},f,eM,eS,eA),e7={...e8.popup?.root,...O??I},te=(0,l.$)({[`${ed}-lg`]:"large"===eJ,[`${ed}-sm`]:"small"===eJ,[`${ed}-rtl`]:"rtl"===ep,[`${ed}-${eC}`]:ek,[`${ed}-in-form-item`]:eW},(0,ex.L)(ed,eK,e_),ew,er,d,e6.root,f,eM,eS,eA),tt=a.useMemo(()=>void 0!==b?b:"rtl"===ep?"bottomRight":"bottomLeft",[b,ep]),[td]=(0,em.YK)("SelectLike",e8.popup.root?.zIndex??e7.zIndex);return a.createElement(eh,{ref:t,virtual:U,classNames:e6,styles:e8,showSearch:eQ,...eZ,style:e8.root,popupMatchSelectWidth:k??C??Y,transitionName:(0,eb.b)(ef,"slide-up",P),builtinPlacements:eL(E,Q),listHeight:g,listItemHeight:eu,mode:eN,prefixCls:ed,placement:tt,direction:ep,prefix:T,suffixIcon:eV,menuItemSelectedIcon:eX,removeIcon:eG,allowClear:!0===eY?{clearIcon:eU}:eY,notFoundContent:s,className:te,getPopupContainer:p||K,popupClassName:e3,disabled:e1,popupStyle:{...e8.popup.root,...e7,zIndex:td},maxCount:eO?z:void 0,tagRender:eO?R:void 0,popupRender:eH,onPopupVisibleChange:L||F})}),tf=(n="popupAlign",o=e=>{let{prefixCls:t,style:r}=e,o=a.useRef(null),[l,s]=a.useState(0),[c,u]=a.useState(0),[d,f]=(0,i.PW)(!1,e.open),{getPrefixCls:p}=a.useContext(e$.QO),h=p("select",t);a.useEffect(()=>{if(f(!0),"u">typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;s(t.offsetHeight+8),u(t.offsetWidth)}),t=setInterval(()=>{let r=`.${h}-dropdown`,n=o.current?.querySelector(r);n&&(clearInterval(t),e.observe(n))},10);return()=>{clearInterval(t),e.disconnect()}}},[h]);let m={...e,style:{...r,margin:0},open:d,getPopupContainer:()=>o.current};return n&&(m={...m,[n]:{overflow:{adjustX:!1,adjustY:!1}}}),a.createElement("div",{ref:o,style:{paddingBottom:l,position:"relative",minWidth:c}},a.createElement(td,{...m}))},e=>a.createElement(ey.Ay,{theme:{token:{motion:!1,zIndexPopupBase:0}}},a.createElement(o,{...e})));td.SECRET_COMBOBOX_MODE_DO_NOT_USE=tu,td.Option=ea,td.OptGroup=eo,td._InternalPanelDoNotUseOrYouWillBeFired=tf;var tp=td},854(e,t,r){r.d(t,{A:()=>S});var n=r(1102),o=r(851),a=r(2382),i=r(9882),l=r(7034),s=r(1984),c=e=>{let{prefixCls:t,className:r,style:a,size:l,shape:s}=e,c=(0,o.$)({[`${t}-lg`]:"large"===l,[`${t}-sm`]:"small"===l}),u=(0,o.$)({[`${t}-circle`]:"circle"===s,[`${t}-square`]:"square"===s,[`${t}-round`]:"round"===s}),d=n.useMemo(()=>(0,i.Et)(l)?{width:l,height:l,lineHeight:`${l}px`}:{},[l]);return n.createElement("span",{className:(0,o.$)(t,c,u,r),style:{...d,...a}})},u=r(9078),d=r(9233),f=r(8528);let p=new u.Mo("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),h=e=>({height:e,lineHeight:(0,u.zA)(e)}),m=e=>({width:e,...h(e)}),g=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...h(e)}),b=e=>{let{gradientFromColor:t,borderRadiusSM:r,imageSizeBase:n,calc:o}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:r,...m(o(n).mul(2).equal())}},v=(e,t,r)=>{let{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},y=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...h(e)});var $=(0,d.OF)("Skeleton",e=>{let{componentCls:t,calc:r}=e;return(e=>{let{componentCls:t,skeletonAvatarCls:r,skeletonTitleCls:n,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonNodeCls:l,skeletonImageCls:s,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:h,marginSM:$,borderRadius:x,titleHeight:w,blockRadius:E,paragraphLiHeight:C,controlHeightXS:k,paragraphMarginTop:S}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:h,verticalAlign:"top",[r]:{display:"inline-block",verticalAlign:"top",background:f,...m(c)},[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:{...m(u)},[`${r}-sm`]:{...m(d)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:w,background:f,borderRadius:E,[`+ ${o}`]:{marginBlockStart:d}},[o]:{padding:0,"> li":{width:"100%",height:C,listStyle:"none",background:f,borderRadius:E,"+ li":{marginBlockStart:k}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${n}, ${o} > li`]:{borderRadius:x}}},[`${t}-with-avatar ${t}-section`]:{[n]:{marginBlockStart:$,[`+ ${o}`]:{marginBlockStart:S}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...(e=>{let{borderRadiusSM:t,skeletonButtonCls:r,controlHeight:n,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:l(n).mul(2).equal(),minWidth:l(n).mul(2).equal(),...y(n,l)},...v(e,n,r),[`${r}-lg`]:{...y(o,l)},...v(e,o,`${r}-lg`),[`${r}-sm`]:{...y(a,l)},...v(e,a,`${r}-sm`)}})(e),...(e=>{let{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:o,controlHeightSM:a}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:r,...m(n)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...m(o)},[`${t}${t}-sm`]:{...m(a)}}})(e),...(e=>{let{controlHeight:t,borderRadiusSM:r,skeletonInputCls:n,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return{[n]:{display:"inline-block",verticalAlign:"top",background:i,borderRadius:r,...g(t,l)},[`${n}-lg`]:{...g(o,l)},[`${n}-sm`]:{...g(a,l)}}})(e),...{[e.skeletonNodeCls]:{...b(e)}},...(e=>{let{skeletonImageCls:t,imageSizeBase:r,calc:n}=e;return{[t]:{...b(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...m(r),maxWidth:n(r).mul(4).equal(),maxHeight:n(r).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}})(e)},[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
138
|
+
${n},
|
|
139
|
+
${o} > li,
|
|
140
|
+
${r},
|
|
141
|
+
${a},
|
|
142
|
+
${i},
|
|
143
|
+
${l},
|
|
144
|
+
${s}
|
|
145
|
+
`]:{...{background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:p,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}}}}})((0,f.oX)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:r(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"}))},e=>{let{colorFillContent:t,colorFill:r}=e;return{color:t,colorGradientEnd:r,gradientFromColor:t,gradientToColor:r,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),x=e=>{let{prefixCls:t,className:r,classNames:a,rootClassName:i,internalClassName:s,style:c,styles:u,active:d,children:f}=e,{getPrefixCls:p}=n.useContext(l.QO),h=p("skeleton",t),[m,g]=$(h),b=(0,o.$)(h,`${h}-element`,{[`${h}-active`]:d},m,a?.root,r,i,g);return n.createElement("div",{className:b,style:u?.root},n.createElement("div",{className:(0,o.$)(a?.content,s||`${h}-node`),style:{...u?.content,...c}},f))},w=e=>{let{prefixCls:t,className:r,style:a,rows:i=0}=e,l=Array.from({length:i}).map((t,r)=>n.createElement("li",{key:r,style:{width:((e,t)=>{let{width:r,rows:n=2}=t;return Array.isArray(r)?r[e]:n-1===e?r:void 0})(r,e)}}));return n.createElement("ul",{className:(0,o.$)(t,r),style:a},l)},E=({prefixCls:e,className:t,width:r,style:a})=>n.createElement("h3",{className:(0,o.$)(e,t),style:{width:r,...a}});function C(e){return(0,i.Qd)(e)?e:{}}let k=e=>{let{prefixCls:t,loading:r,className:i,rootClassName:s,classNames:u,style:d,styles:f,children:p,avatar:h=!1,title:m=!0,paragraph:g=!0,active:b,round:v}=e,{getPrefixCls:y,direction:x,className:k,style:S,classNames:A,styles:M}=(0,l.TP)("skeleton"),N=y("skeleton",t),[O,I]=$(N),P={...e,avatar:h,title:m,paragraph:g},R=(0,a.XT)(S),z=(0,a.XT)(d),[T,B]=(0,a.AV)([A,u],[M,R,f,z],{props:P});if(r||!("loading"in e)){let e,t,r=!!h,a=!!m,l=!!g;if(r){let t={className:T.avatar,prefixCls:`${N}-avatar`,...a&&!l?{size:"large",shape:"square"}:{size:"large",shape:"circle"},...C(h),style:B.avatar};e=n.createElement("div",{className:(0,o.$)(T.header,`${N}-header`),style:B.header},n.createElement(c,{...t}))}if(a||l){let e,i;if(a){let t={className:T.title,prefixCls:`${N}-title`,...!r&&l?{width:"38%"}:r&&l?{width:"50%"}:{},...C(m),style:B.title};e=n.createElement(E,{...t})}if(l){let e,t={className:T.paragraph,prefixCls:`${N}-paragraph`,...(e={},(!r||!a)&&(e.width="61%"),!r&&a?e.rows=3:e.rows=2,e),...C(g),style:B.paragraph};i=n.createElement(w,{...t})}t=n.createElement("div",{className:(0,o.$)(T.section,`${N}-section`),style:B.section},e,i)}let u=(0,o.$)(N,{[`${N}-with-avatar`]:r,[`${N}-active`]:b,[`${N}-rtl`]:"rtl"===x,[`${N}-round`]:v},T.root,k,i,s,O,I);return n.createElement("div",{className:u,style:B.root},e,t)}return p??null};k.Button=e=>{let{prefixCls:t,className:r,rootClassName:a,classNames:i,active:u,style:d,styles:f,block:p=!1,size:h,...m}=e,{getPrefixCls:g}=n.useContext(l.QO),b=g("skeleton",t),[v,y]=$(b),x=(0,s.A)(e=>h??e),w=(0,o.$)(b,`${b}-element`,{[`${b}-active`]:u,[`${b}-block`]:p},i?.root,r,a,v,y);return n.createElement("div",{className:w,style:f?.root},n.createElement(c,{prefixCls:`${b}-button`,className:i?.content,style:{...f?.content,...d},size:x,...m}))},k.Avatar=e=>{let{prefixCls:t,className:r,classNames:a,rootClassName:i,active:u,style:d,styles:f,shape:p="circle",size:h,...m}=e,{getPrefixCls:g}=n.useContext(l.QO),b=g("skeleton",t),[v,y]=$(b),x=(0,s.A)(e=>h??e),w=(0,o.$)(b,`${b}-element`,{[`${b}-active`]:u},a?.root,r,i,v,y);return n.createElement("div",{className:w,style:f?.root},n.createElement(c,{prefixCls:`${b}-avatar`,className:a?.content,style:{...f?.content,...d},shape:p,size:x,...m}))},k.Input=e=>{let{prefixCls:t,className:r,classNames:a,rootClassName:i,active:u,block:d,style:f,styles:p,size:h,...m}=e,{getPrefixCls:g}=n.useContext(l.QO),b=g("skeleton",t),[v,y]=$(b),x=(0,s.A)(e=>h??e),w=(0,o.$)(b,`${b}-element`,{[`${b}-active`]:u,[`${b}-block`]:d},a?.root,r,i,v,y);return n.createElement("div",{className:w,style:p?.root},n.createElement(c,{prefixCls:`${b}-input`,className:a?.content,style:{...p?.content,...f},size:x,...m}))},k.Image=e=>{let{getPrefixCls:t}=n.useContext(l.QO),r=t("skeleton",e.prefixCls);return n.createElement(x,{...e,internalClassName:`${r}-image`},n.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${r}-image-svg`},n.createElement("title",null,"Image placeholder"),n.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${r}-image-path`})))},k.Node=x;var S=k},9888(e,t,r){r.d(t,{A:()=>f});var n=r(1102),o=r(851),a=r(1387),i=r(7034),l=r(9838),s=r(4440),c=r(3677),u=r(9233),d=(0,u.OF)("Addon",e=>[(e=>{let{componentCls:t,borderRadius:r,paddingSM:n,colorBorder:o,paddingXS:a,fontSizeLG:i,fontSizeSM:l,borderRadiusLG:c,borderRadiusSM:d,colorBgContainerDisabled:f,lineWidth:p,lineType:h,antCls:m}=e,[g,b]=(0,u.PN)(m,"space-addon");return{[t]:[{...(0,s.dF)(e),display:"inline-flex",alignItems:"center",gap:0,whiteSpace:"nowrap",paddingInline:n,margin:0,borderWidth:p,borderStyle:h,borderRadius:r,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:i,borderRadius:c},"&-small":{paddingInline:a,borderRadius:d,fontSize:l},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[g("addon-border-color")]:o,[g("addon-background")]:f,[g("addon-border-color-outlined")]:o,[g("addon-background-filled")]:f,borderColor:b("addon-border-color"),background:b("addon-background"),"&-variant-outlined":{[g("addon-border-color")]:b("addon-border-color-outlined")},"&-variant-filled":{[g("addon-border-color")]:"transparent",[g("addon-background")]:b("addon-background-filled"),[`&${t}-disabled`]:{[g("addon-border-color")]:o,[g("addon-background")]:f}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[g("addon-border-color-outlined")]:e.colorError,[g("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[g("addon-border-color-outlined")]:e.colorWarning,[g("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}})(e),(0,c.G)(e,{focus:!1})]),f=n.forwardRef((e,t)=>{let{className:r,children:s,style:c,prefixCls:u,variant:f="outlined",disabled:p,status:h,...m}=e,{getPrefixCls:g,direction:b}=n.useContext(i.QO),v=g("space-addon",u),[y,$]=d(v),{compactItemClassnames:x,compactSize:w}=(0,l.RQ)(v,b),E=(0,a.L)(v,h),C=(0,o.$)(v,y,x,$,`${v}-variant-${f}`,E,{[`${v}-${w}`]:w,[`${v}-disabled`]:p},r);return n.createElement("div",{ref:t,className:C,style:c,...m},s)})},9838(e,t,r){r.d(t,{K6:()=>f,Ay:()=>h,RQ:()=>d});var n=r(1102),o=r(7972),a=r(851),i=r(4340),l=r(7034),s=r(1984),c=(0,r(9233).OF)(["Space","Compact"],e=>{let{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},()=>({}),{resetStyle:!1});let u=n.createContext(null),d=(e,t)=>{let r=n.useContext(u),o=n.useMemo(()=>{if(!r)return"";let{compactDirection:n,isFirstItem:o,isLastItem:i}=r,l="vertical"===n?"-vertical-":"-";return(0,a.$)(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:o,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:"rtl"===t})},[e,t,r]);return{compactSize:r?.compactSize,compactDirection:r?.compactDirection,compactItemClassnames:o}},f=e=>{let{children:t}=e;return n.createElement(u.Provider,{value:null},t)},p=e=>{let{children:t,...r}=e;return n.createElement(u.Provider,{value:n.useMemo(()=>r,[r])},t)};var h=e=>{let{getPrefixCls:t,direction:r}=n.useContext(l.QO),{size:d,direction:f,orientation:h,block:m,prefixCls:g,className:b,rootClassName:v,children:y,vertical:$,...x}=e,[w,E]=(0,i.M)(h,$,f),C=(0,s.A)(e=>d??e),k=t("space-compact",g),[S]=c(k),A=(0,a.$)(k,S,{[`${k}-rtl`]:"rtl"===r,[`${k}-block`]:m,[`${k}-vertical`]:E},b,v),M=n.useContext(u),N=(0,o.$r)(y),O=n.useMemo(()=>N.map((e,t)=>{let r=e?.key||`${k}-item-${t}`;return n.createElement(p,{key:r,compactSize:C,compactDirection:w,isFirstItem:0===t&&(!M||M?.isFirstItem),isLastItem:t===N.length-1&&(!M||M?.isLastItem)},e)}),[N,M,w,C,k]);return 0===N.length?null:n.createElement("div",{className:A,...x},O)}},4591(e,t,r){r.d(t,{A:()=>z});var n=r(1102),o=r(851);let a=(0,n.forwardRef)((e,t)=>{let{prefixCls:r,className:a,children:i,destroyOnHidden:l=!1,size:s,style:c,supportMotion:u}=e,d=0===s||"string"==typeof s&&0===Number.parseFloat(s),f=(0,o.$)(`${r}-panel`,{[`${r}-panel-hidden`]:d,[`${r}-panel-transition`]:u},a),p=void 0!==s;return n.createElement("div",{ref:t,className:f,style:{...c,flexBasis:p?s:"auto",flexGrow:+!p}},!(l&&d)&&i)});var i=r(6175),l=r(7972),s=r(4340),c=r(2382),u=r(9882),d=r(7034),f=r(941);function p(e,t){return e.collapsible&&t.collapsible?!0===e.showCollapsibleIcon||!0===t.showCollapsibleIcon||("auto"===e.showCollapsibleIcon||"auto"===t.showCollapsibleIcon)&&"auto":e.collapsible?e.showCollapsibleIcon:!!t.collapsible&&t.showCollapsibleIcon}var h=r(5142);function m(e){return Number(e.slice(0,-1))/100}function g(e){return"string"==typeof e&&e.endsWith("%")}var b=r(3085),v=r(839),y=r(2875);function $(){return($=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let x=n.forwardRef((e,t)=>n.createElement(y.A,$({},e,{ref:t,icon:v.A})));var w=r(6870);function E(){return(E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let C=n.forwardRef((e,t)=>n.createElement(y.A,E({},e,{ref:t,icon:w.A})));var k=r(2096),S=r(9233);let A=e=>(0,u.Et)(e)&&Number.isFinite(e)?Math.round(e):0;var M=e=>{let{prefixCls:t,rootPrefixCls:r,vertical:a,index:i,active:s,ariaNow:c,ariaMin:u,ariaMax:d,resizable:f,draggerIcon:p,draggerStyle:h,draggerClassName:m,collapsibleIcon:g,startCollapsible:v,endCollapsible:y,onDraggerDoubleClick:$,onOffsetStart:w,onOffsetUpdate:E,onOffsetEnd:M,onCollapse:N,lazy:O,containerSize:I,showStartCollapsibleIcon:P,showEndCollapsibleIcon:R}=e,z=`${t}-bar`,T=(0,n.useRef)(0),[B]=(0,S.PN)(r,"splitter"),[D,F]=(0,n.useState)(null),[L,H]=(0,n.useState)(0),j=a?0:L,_=a?L:0,W=(0,l._q)((e,t)=>{var r;let n;H((r=a?t:e,n=I*c/100,Math.max(Math.max(0,I*u/100),Math.min(Math.min(I,I*d/100),n+r))-n))}),q=(0,l._q)(()=>{E(i,j,_,!0),H(0),M(!0)}),K=(e,t)=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),N(i,t))},V=e=>{switch(e){case!0:return`${z}-collapse-bar-always-visible`;case!1:return`${z}-collapse-bar-always-hidden`;case"auto":return`${z}-collapse-bar-hover-only`}};(0,l.Nf)(()=>{if(!D)return;let e={mousemove:e=>{let{pageX:t,pageY:r}=e,n=t-D[0],o=r-D[1];O?W(n,o):E(i,n,o)},mouseup:()=>{O?q():M(),F(null)},touchmove:e=>{if(1===e.touches.length){let t=e.touches[0],r=t.pageX-D[0],n=t.pageY-D[1];O?W(r,n):E(i,r,n)}},touchend:()=>{O?q():M(),F(null)}};for(let[t,r]of Object.entries(e))window.addEventListener(t,r);return()=>{for(let[t,r]of Object.entries(e))window.removeEventListener(t,r)}},[D,i,O]);let X={[B("bar-preview-offset")]:`${L}px`},[G,U,Y,Q]=n.useMemo(()=>{let e=null,t=null,r=g?.start!==void 0,o=g?.end!==void 0;return a?(e=r?g.start:n.createElement(k.A,null),t=o?g.end:n.createElement(b.A,null)):(e=r?g.start:n.createElement(x,null),t=o?g.end:n.createElement(C,null)),[e,t,r,o]},[g,a]);return n.createElement("div",{className:z},O&&n.createElement("div",{className:(0,o.$)(`${z}-preview`,{[`${z}-preview-active`]:!!L}),style:X}),n.createElement("div",{style:h?.default,className:(0,o.$)(`${z}-dragger`,{[`${z}-dragger-disabled`]:!f,[`${z}-dragger-active`]:s,[`${z}-dragger-customize`]:void 0!==p},m?.default,s&&m?.active),onMouseDown:e=>{e.stopPropagation();let t=Date.now(),r=t-T.current;(!(r>0)||!(r<300))&&(T.current=t,f&&e.currentTarget&&(F([e.pageX,e.pageY]),w(i)))},onTouchStart:e=>{if(f&&1===e.touches.length){let t=e.touches[0];F([t.pageX,t.pageY]),w(i)}},onDoubleClick:()=>$?.(i),role:"separator","aria-disabled":!f,"aria-orientation":a?"horizontal":"vertical","aria-valuenow":A(c),"aria-valuemin":A(u),"aria-valuemax":A(d)},void 0!==p?n.createElement("div",{className:(0,o.$)(`${z}-dragger-icon`)},p):null),v&&n.createElement("div",{className:(0,o.$)(`${z}-collapse-bar`,`${z}-collapse-bar-start`,{[`${z}-collapse-bar-customize`]:Y},V(P)),role:"button",tabIndex:0,"aria-label":"Toggle start panel",onClick:()=>N(i,"start"),onKeyDown:e=>K(e,"start")},n.createElement("span",{className:(0,o.$)(`${z}-collapse-icon`,`${z}-collapse-start`)},G)),y&&n.createElement("div",{className:(0,o.$)(`${z}-collapse-bar`,`${z}-collapse-bar-end`,{[`${z}-collapse-bar-customize`]:Q},V(R)),role:"button",tabIndex:0,"aria-label":"Toggle end panel",onClick:()=>N(i,"end"),onKeyDown:e=>K(e,"end")},n.createElement("span",{className:(0,o.$)(`${z}-collapse-icon`,`${z}-collapse-end`)},U)))},N=r(4440),O=r(6003);let I={position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"};var P=(0,S.OF)("Splitter",e=>{let{componentCls:t,colorFill:r,splitBarDraggableSize:n,splitBarSize:o,splitTriggerSize:a,controlItemBgHover:i,controlItemBgActive:l,controlItemBgActiveHover:s,colorPrimary:c,antCls:u,calc:d}=e,[,f]=(0,S.PN)(u,"splitter"),p=`${t}-bar`,h=`${t}-mask`,m=`${t}-panel`,g=d(a).div(2).equal(),b={position:"absolute",background:e.colorPrimary,opacity:.2,pointerEvents:"none",transition:"none",zIndex:1,display:"none"};return{[t]:{...(0,N.dF)(e),display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${p}`]:{flex:"none",position:"relative",userSelect:"none",[`${p}-dragger`]:{...I,zIndex:1,"&::before":{content:'""',background:i,...I},"&::after":{content:'""',background:r,...I},[`&:hover:not(${p}-dragger-active)`]:{"&::before":{background:l}},"&-active":{zIndex:2,"&::before":{background:s}},[`&-active${p}-dragger-customize`]:{[`${p}-dragger-icon`]:{color:c}},[`&-disabled${p}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&::before":{background:i}},"&::after":{display:"none"},[`${p}-dragger-icon`]:{display:"none"}},"&-customize":{[`${p}-dragger-icon`]:{...I,display:"flex",alignItems:"center",color:r},"&::after":{display:"none"}}},[`${p}-collapse-bar`]:{...I,zIndex:e.zIndexPopupBase,background:i,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center",[`&:hover:not(${p}-collapse-bar-customize)`]:{background:l},[`&:active:not(${p}-collapse-bar-customize)`]:{background:s},[`${p}-collapse-icon`]:{display:"flex",alignItems:"center"}},[`${p}-collapse-bar-customize`]:{background:"transparent"},"&:hover, &:active, &:focus-within":{[`${p}-collapse-bar-hover-only`]:{opacity:1}},[`${p}-collapse-bar-hover-only`]:{"@media(hover:none)":{opacity:1}},[`${p}-collapse-bar-always-hidden`]:{display:"none"},[`${p}-collapse-bar-always-visible`]:{opacity:1}},[h]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${p}`]:{width:0,[`${p}-preview`]:{height:"100%",width:o,...b,[`&${p}-preview-active`]:{display:"block",transform:`translate3d(${f("bar-preview-offset")}, 0, 0)`}},[`${p}-dragger`]:{cursor:"col-resize",height:"100%",width:a,"&::before":{height:"100%",width:o},"&::after":{height:n,width:o}},[`${p}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:g},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:!0,value:g},right:{_skip_check_:!0,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${p}`]:{height:0,[`${p}-preview`]:{height:o,width:"100%",...b,[`&${p}-preview-active`]:{display:"block",transform:`translate3d(0, ${f("bar-preview-offset")}, 0)`}},[`${p}-dragger`]:{cursor:"row-resize",width:"100%",height:a,"&::before":{width:"100%",height:o},"&::after":{width:n,height:o}},[`${p}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:g,transform:"translateX(-50%)"},"&-end":{top:g,bottom:"auto",transform:"translateX(-50%)"}}}},[m]:{overflow:"auto",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{overflow:"hidden"},[`&:has(${t}:only-child)`]:{overflow:"hidden"},"&-transition":{transition:`flex-basis ${e.motionDurationSlow} ${e.motionEaseInOut}`,...(0,O.V)()}}}}},e=>{let t=e.splitBarSize||2,r=e.splitTriggerSize||6,n=e.resizeSpinnerSize||20;return{splitBarSize:t,splitTriggerSize:r,splitBarDraggableSize:e.splitBarDraggableSize??n,resizeSpinnerSize:n}});let R=e=>{let{prefixCls:t,className:r,classNames:b,collapsible:v,style:y,styles:$,layout:x,orientation:w,vertical:E,children:C,destroyOnHidden:k,draggerIcon:S,collapsibleIcon:A,rootClassName:N,onDraggerDoubleClick:O,onResizeStart:I,onResize:R,onResizeEnd:z,lazy:T}=e,{getPrefixCls:B,direction:D,className:F,style:L,classNames:H,styles:j}=(0,d.TP)("splitter"),_=B("splitter",t),W=B(),q=(0,f.A)(_),[K,V]=P(_,q),[X,G]=(0,s.M)(w,E,x),U="rtl"===D,Y=!G&&U,Q=n.useMemo(()=>(0,l.$r)(C).filter(e=>n.isValidElement(e)).map(e=>{let{props:t}=e,{collapsible:r,...n}=t;return{...n,collapsible:function(e){if((0,u.Qd)(e))return{...e,showCollapsibleIcon:void 0===e.showCollapsibleIcon?"auto":e.showCollapsibleIcon};let t=!!e;return{start:t,end:t,showCollapsibleIcon:"auto"}}(r)}}),[C]),[Z,J]=(0,n.useState)(),[ee,et,er,en,eo,ea]=function(e,t){let r=e.map(e=>e.size),o=e.length,a=t||0,i=e=>e*a,[l,s]=n.useState(()=>e.map(e=>e.defaultSize)),c=n.useMemo(()=>r.some(u.R)?r:l,[o,l,r]),d=n.useMemo(()=>e.map(e=>g(e.min)?m(e.min):(e.min||0)/a),[e,a]),f=n.useMemo(()=>e.map(e=>g(e.max)?m(e.max):(e.max||a)/a),[e,a]),p=n.useMemo(()=>{let e=[];for(let t=0;t<o;t+=1){let r=c[t];if(g(r))e[t]=m(r);else if(r||0===r){let n=Number(r);Number.isNaN(n)||(e[t]=n/a)}else e[t]=void 0}return function(e,t,r){let n=0,o=[];e.forEach((e,t)=>{void 0===e?o.push(t):n+=e});let a=1-n,i=o.length;if(e.length&&!o.length&&1!==n){if(0===n){let t=1/e.length;return e.map(()=>t)}let t=1/n;return e.map(e=>e*t)}if(a<0){let t=1/n;return e.map(e=>void 0===e?0:e*t)}let l=0,s=0,c=0,u=1;for(let e of o){let n=t[e]||0,o=r[e]||1;l+=n,s+=o,c=Math.max(c,n),u=Math.min(u,o)}if(l>1&&s<1){let t=1/i;return e.map(e=>void 0===e?t:e)}let d=a/i;if(c<=d&&d<=u)return e.map(e=>void 0===e?d:e);let f=(0,h.A)(e),p=a-l;for(let e=0;e<i;e+=1){let n=o[e],a=t[n]||0,i=r[n]||1;f[n]=a;let l=Math.min(i-a,p);f[n]+=l,p-=l}return f}(e,d,f)},[o,c,a,d,f]),b=n.useMemo(()=>p.map(i),[p,a]);return[n.useMemo(()=>t?b:c,[b,c,t]),b,p,d,f,s]}(Q,Z),ei=n.useMemo(()=>{let e=[];for(let t=0;t<Q.length-1;t+=1){let r=Q[t],n=Q[t+1],o=et[t],a=et[t+1],{resizable:i=!0,min:l,collapsible:s}=r,{resizable:c=!0,min:u,collapsible:d}=n,f=i&&c&&(0!==o||!l)&&(0!==a||!u),h=!!s.end&&o>0,m=!!d.start&&0===a&&o>0,g=h||m,b=!!d.start&&a>0,v=!!s.end&&0===o&&a>0,y=b||v,$=p({collapsible:h,showCollapsibleIcon:s.showCollapsibleIcon},{collapsible:m,showCollapsibleIcon:d.showCollapsibleIcon}),x=p({collapsible:b,showCollapsibleIcon:d.showCollapsibleIcon},{collapsible:v,showCollapsibleIcon:s.showCollapsibleIcon});e[t]={resizable:f,startCollapsible:!!(Y?y:g),endCollapsible:!!(Y?g:y),showStartCollapsibleIcon:Y?x:$,showEndCollapsibleIcon:Y?$:x}}return e},[et,Q,Y]),[el,es,ec,eu,ed]=function(e,t,r,o,a,i){let l=e.map(e=>[e.min,e.max]),s=o||0,c=e=>e*s;function u(e,t){return"string"==typeof e?c(m(e)):e??t}let[d,f]=n.useState([]),p=n.useRef([]),[g,b]=n.useState(null);return[e=>{f(r.map(c)),b({index:e,confirmed:!1})},(e,r)=>{let n=null;if((!g||!g.confirmed)&&0!==r){if(r>0)n=e,b({index:e,confirmed:!0});else for(let r=e;r>=0;r-=1)if(d[r]>0&&t[r].resizable){n=r,b({index:r,confirmed:!0});break}}let o=n??g?.index??e,i=(0,h.A)(d),c=o+1,f=u(l[o][0],0),p=u(l[c][0],0),m=u(l[o][1],s),v=u(l[c][1],s),y=r;return i[o]+y<f&&(y=f-i[o]),i[c]-y<p&&(y=i[c]-p),i[o]+y>m&&(y=m-i[o]),i[c]-y>v&&(y=i[c]-v),i[o]+=y,i[c]-=y,a(i),i},()=>{b(null)},(e,t)=>{let n=r.map(c),o=i?"start"===t?"end":"start":t,d="start"===o?e:e+1,f="start"===o?e+1:e,h=n[d],m=n[f];if(0!==h&&0!==m)n[d]=0,n[f]+=h,p.current[e]=h;else{let t=h+m,r=u(l[d][0],0),o=u(l[d][1],s),a=u(l[f][0],0),i=u(l[f][1],s),c=Math.max(r,t-i),g=Math.min(o,t-a),b=a||(g-c)/2,v=p.current[e],y=t-v;v&&v<=i&&v>=a&&y<=o&&y>=r?(n[f]=v,n[d]=y):(n[d]-=b,n[f]+=b)}return a(n),n},g?.index]}(Q,ei,er,Z,ea,Y),ef=(0,l._q)(e=>{el(e),I?.(et)}),ep=(0,l._q)((e,t,r)=>{let n=es(e,t);r?z?.(n):R?.(n)}),eh=(0,l._q)(e=>{ec(),e||z?.(et)}),em=(0,l._q)((t,r)=>{let n=eu(t,r);R?.(n),z?.(n);let o=n.map(e=>Math.abs(e)<Number.EPSILON);e.onCollapse?.(o,n)}),eg={...e,vertical:G,orientation:X},eb=(0,c.XT)(L),ev=(0,c.XT)(y),[ey,e$]=(0,c.AV)([H,b],[j,eb,$,ev],{props:eg},{dragger:{_default:"default"}}),ex=(0,o.$)(_,r,`${_}-${X}`,{[`${_}-rtl`]:U},N,ey.root,F,V,q,K),ew=`${_}-mask`,eE=n.useMemo(()=>{let e=[],t=0,r=Q.length;for(let n=0;n<r;n+=1)e.push(t+=er[n]);return e},[er,Q.length]);return n.createElement(i.Ay,{onResize:e=>{let{offsetWidth:t,offsetHeight:r}=e,n=G?r:t;0!==n&&J(n)}},n.createElement("div",{style:e$.root,className:ex},Q.map((e,t)=>{let r={...e,className:(0,o.$)(ey.panel,e.className),style:{...e$.panel,...e.style}},i=n.createElement(a,{...r,prefixCls:_,size:ee[t],supportMotion:v?.motion&&void 0===ed,destroyOnHidden:e.destroyOnHidden??k}),l=null,s=ei[t];if(s){let e=Number.isFinite(eE[t-1])?eE[t-1]:0,r=Number.isFinite(eE[t+1])?eE[t+1]:1,o=e+en[t],a=r-eo[t+1],i=e+eo[t],c=r-en[t+1];l=n.createElement(M,{lazy:T,index:t,active:ed===t,prefixCls:_,rootPrefixCls:W,vertical:G,resizable:s.resizable,draggerStyle:e$.dragger,draggerClassName:ey.dragger,draggerIcon:S,collapsibleIcon:v?.icon||A,ariaNow:100*eE[t],ariaMin:100*Math.max(o,a),ariaMax:100*Math.min(i,c),startCollapsible:s.startCollapsible,endCollapsible:s.endCollapsible,showStartCollapsibleIcon:s.showStartCollapsibleIcon,showEndCollapsibleIcon:s.showEndCollapsibleIcon,onDraggerDoubleClick:O,onOffsetStart:ef,onOffsetUpdate:(e,t,r,n)=>{let o=G?r:t;Y&&(o=-o),ep(e,o,n)},onOffsetEnd:eh,onCollapse:em,containerSize:Z||0})}return n.createElement(n.Fragment,{key:`split-panel-${t}`},i,l)}),(0,u.Et)(ed)&&n.createElement("div",{"aria-hidden":!0,className:(0,o.$)(ew,`${ew}-${X}`)})))};R.Panel=()=>null;var z=R},3677(e,t,r){function n(e,t={focus:!0}){let{componentCls:r}=e,{componentCls:o}=t,a=o||r,i=`${a}-compact`;return{[i]:{...function(e,t,r,n){let{focusElCls:o,focus:a,borderElCls:i}=r,l=i?"> *":"",s=l?` ${l}`:"",c=e=>e.filter(Boolean).map(e=>`&:${e}${s}`).join(","),u=c(["hover",o?`hover${o}`:null]),d=c([a?"focus":null,"active"]);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{[d]:{zIndex:3},[u]:{zIndex:4},...o?{[`&${o}`]:{zIndex:3}}:{},[`&[disabled] ${l}`]:{zIndex:0}}}}(e,i,t,a),...function(e,t,r){let{borderElCls:n}=r,o=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}(a,i,t)}}}r.d(t,{G:()=>n})},4440(e,t,r){var n=r(9078);let o=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),a=new n.Mo("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),i=(e,t)=>({outline:`${(0,n.zA)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(e=>`${e} 0s`).join(", ")}),l=(e,t)=>({"&:focus-visible":i(e,t)});r.d(t,{},{K8:l,L9:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Nk:o,av:e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},...l(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),dF:(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),jk:i,jz:e=>({[`.${e}`]:{...o(),[`.${e} .${e}-icon`]:{display:"block"}},[`.${e}-spin`]:{animationName:a,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),t6:()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),vj:(e,t,r,n)=>{let o=`[class^="${t}"], [class*=" ${t}"]`,a=r?`.${r}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},l={};return!1!==n&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...l,...i,[o]:i}}}})},7521(e,t,r){var n=r(9078),o=r(4933);let a=new n.Mo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),i=new n.Mo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}});r.d(t,{},{p9:(e,t=!1)=>{let{antCls:r}=e,n=`${r}-fade`,l=t?"&":"";return[(0,o.b)(n,a,i,e.motionDurationMid,t),{[`
|
|
146
|
+
${l}${n}-enter,
|
|
147
|
+
${l}${n}-appear
|
|
148
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${l}${n}-leave`]:{animationTimingFunction:"linear"}}]}})},4933(e,t,r){let n=e=>({animationDuration:e,animationFillMode:"both"});r.d(t,{},{b:(e,t,r,o,a=!1)=>{let i=a?"&":"";return{[`
|
|
149
|
+
${i}${e}-enter,
|
|
150
|
+
${i}${e}-appear
|
|
151
|
+
`]:{...n(o),animationPlayState:"paused"},[`${i}${e}-leave`]:{...n(o),animationPlayState:"paused"},[`
|
|
152
|
+
${i}${e}-enter${e}-enter-active,
|
|
153
|
+
${i}${e}-appear${e}-appear-active
|
|
154
|
+
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}}})},6003(e,t,r){r.d(t,{},{V:()=>({"@media (prefers-reduced-motion: reduce)":{"&, &::before, &::after":{transition:"none",animation:"none"}}}),X:()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}})})},7968(e,t,r){var n=r(9078),o=r(4933);let a=new n.Mo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),i=new n.Mo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),l=new n.Mo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),s=new n.Mo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),c=new n.Mo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),u=new n.Mo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),d={zoom:{inKeyframes:a,outKeyframes:i},"zoom-big":{inKeyframes:l,outKeyframes:s},"zoom-big-fast":{inKeyframes:l,outKeyframes:s},"zoom-left":{inKeyframes:new n.Mo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new n.Mo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new n.Mo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new n.Mo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:c,outKeyframes:u},"zoom-down":{inKeyframes:new n.Mo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new n.Mo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}};r.d(t,{},{aB:(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:i}=d[t];return[(0,o.b)(n,a,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`
|
|
155
|
+
${n}-enter,
|
|
156
|
+
${n}-appear
|
|
157
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}})},7354(e,t,r){var n=r(9078),o=r(9233),a=r(1343);function i(e){let{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?8:n}}t.A=(e,t,r)=>{let{componentCls:i,boxShadowPopoverArrow:l,arrowOffsetVertical:s,arrowOffsetHorizontal:c,antCls:u}=e,[d]=(0,o.PN)(u,"tooltip"),{arrowDistance:f=0,arrowShadow:p=!0}=r||{};return{[i]:{[`${i}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...(0,a.j)(e,t,!!p&&l),"&:before":{background:t}}],[`&-placement-top > ${i}-arrow,&-placement-topLeft > ${i}-arrow,&-placement-topRight > ${i}-arrow`]:{bottom:f,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[d("arrow-offset-x")]:c,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{[d("arrow-offset-x")]:`calc(100% - ${(0,n.zA)(c)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:c}}},[`&-placement-bottom > ${i}-arrow,&-placement-bottomLeft > ${i}-arrow,&-placement-bottomRight > ${i}-arrow`]:{top:f,transform:"translateY(-100%)"},[`&-placement-bottom > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[d("arrow-offset-x")]:c,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{[d("arrow-offset-x")]:`calc(100% - ${(0,n.zA)(c)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:c}}},[`&-placement-left > ${i}-arrow,&-placement-leftTop > ${i}-arrow,&-placement-leftBottom > ${i}-arrow`]:{right:{_skip_check_:!0,value:f},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${i}-arrow`]:{top:s},[`&-placement-leftBottom > ${i}-arrow`]:{bottom:s},[`&-placement-right > ${i}-arrow,&-placement-rightTop > ${i}-arrow,&-placement-rightBottom > ${i}-arrow`]:{left:{_skip_check_:!0,value:f},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${i}-arrow`]:{top:s},[`&-placement-rightBottom > ${i}-arrow`]:{bottom:s}}}},r.d(t,{K:()=>i})},1343(e,t,r){var n=r(9078);function o(e){let{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,a=n/Math.sqrt(2),i=o-n*(1-1/Math.sqrt(2)),l=o-1/Math.sqrt(2)*r,s=n*(Math.sqrt(2)-1)+1/Math.sqrt(2)*r,c=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),u=n*(Math.sqrt(2)-1),d=`polygon(${u}px 100%, 50% ${u}px, ${2*o-u}px 100%, ${u}px 100%)`;return{arrowShadowWidth:c,arrowPath:`path('M 0 ${o} A ${n} ${n} 0 0 0 ${a} ${i} L ${l} ${s} A ${r} ${r} 0 0 1 ${2*o-l} ${s} L ${2*o-a} ${i} A ${n} ${n} 0 0 0 ${2*o-0} ${o} Z')`,arrowPolygon:d}}r.d(t,{n:()=>o},{j:(e,t,r)=>{let{sizePopupArrow:o,arrowPolygon:a,arrowPath:i,arrowShadowWidth:l,borderRadiusXS:s,calc:c}=e,u={content:'""',position:"absolute",width:l,height:l,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,n.zA)(s)} 0`},transform:"translateY(50%) rotate(-135deg)",zIndex:0,background:"transparent"};return r&&(u.boxShadow=r),{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:c(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,i]},content:'""'},"&::after":u}}})},3986(e,t,r){r.d(t,{A:()=>R});var n=r(1102),o=r(7972),a=r(851),i=r(3661),l=r(2382),s=r(9882),c=r(7211),u=r(9746),d=r(7034),f=r(8306),p=r(9078),h=r(3055),m=r(7328),g=r(4419),b=r(4440),v=r(8528),y=r(9233);let $=e=>{let{lineWidth:t,fontSizeIcon:r,calc:n}=e,o=e.fontSizeSM;return(0,v.oX)(e,{tagFontSize:o,tagLineHeight:(0,p.zA)(n(e.lineHeightSM).mul(o).equal()),tagIconSize:n(r).sub(n(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},x=e=>{let t=(0,g.z)(new m.kf(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new h.Y(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}};var w=(0,y.OF)("Tag",e=>(e=>{let{paddingXXS:t,lineWidth:r,tagPaddingHorizontal:n,componentCls:o,calc:a}=e,i=a(n).sub(r).equal(),l=a(t).sub(r).equal();return{[o]:{...(0,b.dF)(e),display:"inline-block",height:"auto",paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${(0,p.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:"not-allowed",[`&:not(${o}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${o}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${o}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},"> svg":{verticalAlign:"middle",marginBlockEnd:"0.2em"},[`> ${e.iconCls} + span, > span + ${e.iconCls}, > svg + span, > span + svg`]:{marginInlineStart:i}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${o}-default`]:{color:e.solidTextColor}},[`${o}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${o}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${o}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${o}-solid, &${o}-filled`]:{color:e.colorTextDisabled,[`${o}-close-icon`]:{color:e.colorTextDisabled}},[`${o}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}})($(e)),x);let E=n.forwardRef((e,t)=>{let{prefixCls:r,style:o,className:i,checked:l,children:s,icon:c,onChange:u,onClick:p,onKeyDown:h,disabled:m,...g}=e,{getPrefixCls:b,tag:v}=n.useContext(d.QO),y=n.useContext(f.A),$=m??y,x=b("tag",r),[E,C]=w(x),k=(0,a.$)(x,`${x}-checkable`,{[`${x}-checkable-checked`]:l,[`${x}-checkable-disabled`]:$},v?.className,i,E,C);return n.createElement("span",{...g,ref:t,role:"checkbox","aria-checked":l,"aria-disabled":$||void 0,tabIndex:$?-1:0,style:{...o,...v?.style},className:k,onClick:e=>{$||(u?.(!l),p?.(e))},onKeyDown:e=>{h?.(e),e.defaultPrevented||$||" "===e.key&&(e.preventDefault(),u?.(!l))}},c,n.createElement("span",null,s))});var C=r(5142),k=r(941);let S=n.forwardRef((e,t)=>{let{id:r,prefixCls:i,rootClassName:c,className:u,style:f,classNames:p,styles:h,disabled:m,options:g,value:b,defaultValue:v,onChange:y,multiple:$,...x}=e,{getPrefixCls:S,direction:A,className:M,style:N,classNames:O,styles:I}=(0,d.TP)("tag"),P=S("tag",i),R=`${P}-checkable-group`,z=(0,k.A)(P),[T,B]=w(P,z),D=(0,l.XT)(N),F=(0,l.XT)(f),[L,H]=(0,l.AV)([O,p],[I,D,h,F],{props:e}),j=(0,n.useMemo)(()=>Array.isArray(g)?g.map(e=>(0,s.Qd)(e)?e:{value:e,label:e}):[],[g]),[_,W]=(0,o.PW)(v,b),q=n.useRef(null);(0,n.useImperativeHandle)(t,()=>({nativeElement:q.current}));let K=(0,o.KE)(x,{aria:!0,data:!0});return n.createElement("div",{...K,className:(0,a.$)(R,M,c,{[`${R}-disabled`]:m,[`${R}-rtl`]:"rtl"===A},T,B,u,L.root),style:H.root,id:r,ref:q},j.map(e=>n.createElement(E,{key:e.value,className:(0,a.$)(`${R}-item`,L.item,e.className),style:{...H.item,...e.style},checked:$?(_||[]).includes(e.value):_===e.value,onChange:t=>((e,t)=>{let r=null;if($){let n=_||[];r=e?[].concat((0,C.A)(n),[t.value]):n.filter(e=>e!==t.value)}else r=e?t.value:null;W(r),y?.(r)})(t,e),disabled:m},e.label)))});var A=r(9534),M=r(7961),N=(0,y.bf)(["Tag","preset"],e=>{let t;return t=$(e),(0,M.A)(t,(e,{textColor:r,lightBorderColor:n,lightColor:o,darkColor:a})=>({[`${t.componentCls}${t.componentCls}-${e}:not(${t.componentCls}-disabled)`]:{[`&${t.componentCls}-outlined`]:{backgroundColor:o,borderColor:n,color:r},[`&${t.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:t.colorTextLightSolid},[`&${t.componentCls}-filled`]:{backgroundColor:o,color:r}}}))},x);let O=(e,t,r)=>{let n="string"!=typeof r?r:r.charAt(0).toUpperCase()+r.slice(1);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${n}Bg`],borderColor:e[`color${n}Border`],color:e[`color${r}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${r}`],borderColor:e[`color${r}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${n}Bg`],color:e[`color${r}`]}}}};var I=(0,y.bf)(["Tag","status"],e=>{let t=$(e);return[O(t,"success","Success"),O(t,"processing","Info"),O(t,"error","Error"),O(t,"warning","Warning")]},x);let P=n.forwardRef((e,t)=>{let{prefixCls:r,className:p,rootClassName:m,style:g,children:b,icon:v,color:y,variant:$,onClose:x,bordered:E,disabled:C,href:k,target:S,styles:M,classNames:O,...P}=e,{getPrefixCls:R,direction:z,className:T,variant:B,style:D,classNames:F,styles:L}=(0,d.TP)("tag"),[H,j,_,W,q]=function(e,t){let{color:r,variant:o,bordered:a}=e;return n.useMemo(()=>{let e,n=r?.endsWith("-inverse");e=o||(n?"solid":!1===a?"filled":t||"filled");let i=n?r?.replace("-inverse",""):r;void 0===i&&"solid"===e&&(i="default");let l=(0,A.nP)(i),s=(0,A.ZZ)(i),c={};if(!l&&!s&&i)if("solid"===e)c.backgroundColor=r;else{let t=new h.Y(i).toHsl();t.l=.95,c.backgroundColor=new h.Y(t).toHexString(),c.color=r,"outlined"===e&&(c.borderColor=r)}return[e,i,l,s,c]},[r,o,a,t])}(e,B),K=_||W,V=n.useContext(f.A),X=C??V,{tag:G}=n.useContext(d.QO),[U,Y]=n.useState(!0),Q=(0,o.cJ)(P,["closeIcon","closable"]),Z={...e,color:j,variant:H,disabled:X},[J,ee]=(0,l.AV)([F,O],[L,M],{props:Z}),et=n.useMemo(()=>{let e={...ee.root,...D,...g};return X||(e={...q,...e}),e},[ee.root,D,g,q,X]),er=R("tag",r),[en,eo]=w(er),ea=(0,a.$)(er,T,J.root,`${er}-${H}`,{[`${er}-${j}`]:K,[`${er}-hidden`]:!U,[`${er}-rtl`]:"rtl"===z,[`${er}-disabled`]:X},p,m,en,eo),ei=e=>{X||(e.stopPropagation(),x?.(e),e.defaultPrevented||(k&&e.preventDefault(),Y(!1)))},el=e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),e.currentTarget.click())},[,es]=(0,i.$Z)((0,i.dG)(e),(0,i.dG)(G),{closable:!1,closeIconRender:e=>{let t=n.createElement("span",{role:"button",tabIndex:X?-1:0,"aria-disabled":X||void 0,className:(0,a.$)(`${er}-close-icon`,J.close),onClick:ei,onKeyDown:el,style:ee.close},e);return(0,c.fx)(e,t,e=>({onClick:t=>{e?.onClick?.(t),ei(t)},onKeyDown:t=>{e?.onKeyDown?.(t),t.defaultPrevented||el(t)},role:"button",tabIndex:X?-1:0,"aria-disabled":X||void 0,className:(0,a.$)(e?.className,`${er}-close-icon`,J.close),style:{...ee.close,...e?.style}}))}}),ec=(0,s.Tn)(P.onClick)||b&&"a"===b.type,eu=(0,c.Ob)(v,{className:(0,a.$)(n.isValidElement(v)?v.props?.className:void 0,J.icon),style:ee.icon}),ed=eu?n.createElement(n.Fragment,null,eu,b&&n.createElement("span",{className:J.content,style:ee.content},b)):b,ef=n.createElement(k?"a":"span",{...Q,ref:t,className:ea,style:et,href:X?void 0:k,target:S,onClick:X?void 0:Q.onClick,...k&&X?{"aria-disabled":!0}:{}},ed,es,_&&n.createElement(N,{key:"preset",prefixCls:er}),W&&n.createElement(I,{key:"status",prefixCls:er}));return ec?n.createElement(u.A,{component:"Tag"},ef):ef});P.CheckableTag=E,P.CheckableTagGroup=S;var R=P},6275(e,t,r){var n=r(1102),o=r(5170);let a={token:o.A,override:{override:o.A},hashed:!0},i=n.createContext(a);r.d(t,{},{sb:a,vG:i})},64(e,t,r){r.d(t,{A:()=>$});var n=r(9078),o=r(5720),a=r(5170),i=r(9297),l=r(8156),s=r(6275),c=r(6174),u=r(7125),d=r(8505),f=r(834),p=r(5689),h=r(2275),m=r(3055);let g=(e,t)=>new m.Y(e).setA(t).toRgbString(),b=(e,t)=>new m.Y(e).lighten(t).toHexString(),v=e=>{let t=(0,f.cM)(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},y=(e,t,r)=>{let n=e||"#000",o=t||"#fff";return{colorBgBase:n,colorTextBase:o,colorShadow:r||"rgba(255, 255, 255, 0.2)",colorText:g(o,.85),colorTextSecondary:g(o,.65),colorTextTertiary:g(o,.45),colorTextQuaternary:g(o,.25),colorFill:g(o,.18),colorFillSecondary:g(o,.12),colorFillTertiary:g(o,.08),colorFillQuaternary:g(o,.04),colorBgSolid:g(o,.95),colorBgSolidHover:g(o,1),colorBgSolidActive:g(o,.9),colorBgElevated:b(n,12),colorBgContainer:b(n,8),colorBgLayout:b(n,0),colorBgSpotlight:b(n,26),colorBgBlur:g(o,.04),colorBorder:b(n,26),colorBorderDisabled:b(n,26),colorBorderSecondary:b(n,19)}};var $={defaultSeed:s.sb.token,useToken:function(){let[e,t,r,n]=(0,l.Ay)();return{theme:e,token:t,hashId:r,cssVar:n}},defaultAlgorithm:c.A,darkAlgorithm:(e,t)=>{let r=Object.keys(a.r).map(t=>{let r=(0,f.cM)(e[t],{theme:"dark"});return Array.from({length:10},()=>1).reduce((e,n,o)=>(e[`${t}-${o+1}`]=r[o],e[`${t}${o+1}`]=r[o],e),{})}).reduce((e,t)=>e={...e,...t},{}),n=t??(0,c.A)(e),o=(0,h.A)(e,{generateColorPalettes:v,generateNeutralColorPalettes:y}),i=p.s.reduce((t,r)=>{let n=e[r];if(n){let e=v(n);t[`${r}Hover`]=e[7],t[`${r}Active`]=e[5]}return t},{});return{...n,...r,...o,...i,colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover}},compactAlgorithm:(e,t)=>{let r=t??(0,c.A)(e),n=r.fontSizeSM,o=r.controlHeight-4;return{...r,...function(e){let{sizeUnit:t,sizeStep:r}=e,n=r-2;return{sizeXXL:t*(n+10),sizeXL:t*(n+6),sizeLG:t*(n+2),sizeMD:t*(n+2),sizeMS:t*(n+1),size:t*n,sizeSM:t*n,sizeXS:t*(n-1),sizeXXS:t*(n-1)}}(t??e),...(0,d.A)(n),controlHeight:o,...(0,u.A)({...r,controlHeight:o})}},getDesignToken:e=>{let t=e?.algorithm?(0,n.an)(e.algorithm):o.A,r={...a.A,...e?.token};return(0,n.lO)(r,{override:e?.token},t,i.A)},defaultConfig:s.sb,_internalContext:s.vG}},5689(e,t,r){r.d(t,{},{s:["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]})},6174(e,t,r){r.d(t,{A:()=>p});var n=r(834),o=r(5170),a=r(2275),i=r(7125),l=r(8505),s=r(3055);let c=(e,t)=>new s.Y(e).setA(t).toRgbString(),u=(e,t)=>new s.Y(e).darken(t).toHexString(),d=e=>{let t=(0,n.cM)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},f=(e,t,r)=>{let n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorShadow:r||"#000",colorText:c(o,.88),colorTextSecondary:c(o,.65),colorTextTertiary:c(o,.45),colorTextQuaternary:c(o,.25),colorFill:c(o,.15),colorFillSecondary:c(o,.06),colorFillTertiary:c(o,.04),colorFillQuaternary:c(o,.02),colorBgSolid:c(o,1),colorBgSolidHover:c(o,.75),colorBgSolidActive:c(o,.95),colorBgLayout:u(n,4),colorBgContainer:u(n,0),colorBgElevated:u(n,0),colorBgSpotlight:c(o,.85),colorBgBlur:"transparent",colorBorder:u(n,15),colorBorderDisabled:u(n,15),colorBorderSecondary:u(n,6)}};function p(e){n.uy.pink=n.uy.magenta,n.UA.pink=n.UA.magenta;let t=Object.keys(o.r).map(t=>{let r=e[t]===n.uy[t]?n.UA[t]:(0,n.cM)(e[t]);return Array.from({length:10},()=>1).reduce((e,n,o)=>(e[`${t}-${o+1}`]=r[o],e[`${t}${o+1}`]=r[o],e),{})}).reduce((e,t)=>e={...e,...t},{});return{...e,...t,...(0,a.A)(e,{generateColorPalettes:d,generateNeutralColorPalettes:f}),...(0,l.A)(e.fontSize),...function(e){let{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}(e),...(0,i.A)(e),...function(e){let t,r,n,o,{motionUnit:a,motionBase:i,borderRadius:l,lineWidth:s}=e;return{motionDurationFast:`${(i+a).toFixed(1)}s`,motionDurationMid:`${(i+2*a).toFixed(1)}s`,motionDurationSlow:`${(i+3*a).toFixed(1)}s`,lineWidthBold:s+1,...(t=l,r=l,n=l,o=l,l<6&&l>=5?t=l+1:l<16&&l>=6?t=l+2:l>=16&&(t=16),l<7&&l>=5?r=4:l<8&&l>=7?r=5:l<14&&l>=8?r=6:l<16&&l>=14?r=7:l>=16&&(r=8),l<6&&l>=2?n=1:l>=6&&(n=2),l>4&&l<8?o=4:l>=8&&(o=6),{borderRadius:l,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o})}}(e)}}},5720(e,t,r){var n=r(9078),o=r(6174);t.A=(0,n.an)(o.A)},5170(e,t,r){let n={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"};t.A={...n,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
158
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
159
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},r.d(t,{},{r:n})},2275(e,t,r){var n=r(3055),o=r(5689);function a(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){let{colorSuccess:i,colorWarning:l,colorError:s,colorInfo:c,colorPrimary:u,colorBgBase:d,colorTextBase:f}=e,p=t(u),h=t(i),m=t(l),g=t(s),b=t(c),v=r(d,f),y=t(e.colorLink||e.colorInfo),$=new n.Y(g[1]).mix(new n.Y(g[3]),50).toHexString(),x={};return o.s.forEach(r=>{let n=e[r];if(n){let e=t(n);x[`${r}Hover`]=e[5],x[`${r}Active`]=e[7]}}),{...v,colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:$,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],...x,colorBgMask:new n.Y("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}r.d(t,{A:()=>a})},7125(e,t){t.A=e=>{let{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}}},8505(e,t,r){var n=r(3038);t.A=e=>{let t=(0,n.A)(e),r=t.map(e=>e.size),o=t.map(e=>e.lineHeight),a=r[1],i=r[0],l=r[2],s=o[1],c=o[0],u=o[2];return{fontSizeSM:i,fontSize:a,fontSizeLG:l,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(s*a),fontHeightLG:Math.round(u*l),fontHeightSM:Math.round(c*i),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}}},3038(e,t,r){function n(e){return(e+8)/e}function o(e){let t=Array.from({length:10}).map((t,r)=>{let n=e*Math.E**((r-1)/5);return 2*Math.floor((r>1?Math.floor(n):Math.ceil(n))/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:n(e)}))}r.d(t,{A:()=>o,k:()=>n})},8156(e,t,r){r.d(t,{Ay:()=>h,Is:()=>u});var n=r(1102),o=r(9078),a=r(7034),i=r(6275),l=r(5720),s=r(5170),c=r(9297);let u={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},d={motionBase:!0,motionUnit:!0},f={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},p=(e,t,r)=>{let n=r.getDerivativeToken(e),{override:o,...a}=t,i={...n,override:o};return i=(0,c.A)(i),a&&Object.entries(a).forEach(([e,t])=>{let{theme:r,...n}=t,o=n;r&&(o=p({...i,...n},{override:n},r)),i[e]=o}),i};function h(){let{token:e,hashed:t,theme:r,override:c,cssVar:h,zeroRuntime:m}=n.useContext(i.vG),{csp:g,getPrefixCls:b}=n.useContext(a.QO),v={prefix:h?.prefix??b(),key:h?.key??"css-var-root"},y=`6.5.2-${t||""}`,$=r||l.A,[x,w,E]=(0,o.hV)($,[s.A,e],{salt:y,override:c,getComputedToken:p,cssVar:{...v,unitless:u,ignore:d,preserve:f},nonce:g?.nonce});return[$,E,t?w:"",x,v,!!m]}},9297(e,t,r){var n=r(3055),o=r(5170),a=r(5210);function i(e){let{override:t,...r}=e,i={...t};Object.keys(o.A).forEach(e=>{delete i[e]});let l={...r,...i},s=new n.Y(l.colorShadow),c=s.a,u=e=>s.clone().setA(c*e).toRgbString();return!1===l.motion&&(l.motionDurationFast="0s",l.motionDurationMid="0s",l.motionDurationSlow="0s"),{...l,colorFillContent:l.colorFillSecondary,colorFillContentHover:l.colorFill,colorFillAlter:l.colorFillQuaternary,colorBgContainerDisabled:l.colorFillTertiary,colorBorderBg:l.colorBgContainer,colorSplit:(0,a.A)(l.colorBorderSecondary,l.colorBgContainer),colorTextPlaceholder:l.colorTextQuaternary,colorTextDisabled:l.colorTextQuaternary,colorTextHeading:l.colorText,colorTextLabel:l.colorTextSecondary,colorTextDescription:l.colorTextTertiary,colorTextLightSolid:l.colorWhite,colorHighlight:l.colorError,colorBgTextHover:l.colorFillSecondary,colorBgTextActive:l.colorFill,colorIcon:l.colorTextTertiary,colorIconHover:l.colorText,colorErrorOutline:(0,a.A)(l.colorErrorBg,l.colorBgContainer),colorWarningOutline:(0,a.A)(l.colorWarningBg,l.colorBgContainer),colorErrorAffix:l.colorError,colorWarningAffix:l.colorWarning,fontSizeIcon:l.fontSizeSM,lineWidthFocus:3*l.lineWidth,lineWidth:l.lineWidth,controlOutlineWidth:2*l.lineWidth,controlInteractiveSize:l.controlHeight/2,controlItemBgHover:l.colorFillTertiary,controlItemBgActive:l.colorPrimaryBg,controlItemBgActiveHover:l.colorPrimaryBgHover,controlItemBgActiveDisabled:l.colorFill,controlTmpOutline:l.colorFillQuaternary,controlOutline:(0,a.A)(l.colorPrimaryBg,l.colorBgContainer),lineType:l.lineType,borderRadius:l.borderRadius,borderRadiusXS:l.borderRadiusXS,borderRadiusSM:l.borderRadiusSM,borderRadiusLG:l.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:l.sizeXXS,paddingXS:l.sizeXS,paddingSM:l.sizeSM,padding:l.size,paddingMD:l.sizeMD,paddingLG:l.sizeLG,paddingXL:l.sizeXL,paddingContentHorizontalLG:l.sizeLG,paddingContentVerticalLG:l.sizeMS,paddingContentHorizontal:l.sizeMS,paddingContentVertical:l.sizeSM,paddingContentHorizontalSM:l.size,paddingContentVerticalSM:l.sizeXS,marginXXS:l.sizeXXS,marginXS:l.sizeXS,marginSM:l.sizeSM,margin:l.size,marginMD:l.sizeMD,marginLG:l.sizeLG,marginXL:l.sizeXL,marginXXL:l.sizeXXL,boxShadow:`
|
|
160
|
+
0 6px 16px 0 ${u(.08)},
|
|
161
|
+
0 3px 6px -4px ${u(.12)},
|
|
162
|
+
0 9px 28px 8px ${u(.05)}
|
|
163
|
+
`,boxShadowSecondary:`
|
|
164
|
+
0 6px 16px 0 ${u(.08)},
|
|
165
|
+
0 3px 6px -4px ${u(.12)},
|
|
166
|
+
0 9px 28px 8px ${u(.05)}
|
|
167
|
+
`,boxShadowTertiary:`
|
|
168
|
+
0 1px 2px 0 ${u(.05)},
|
|
169
|
+
0 1px 6px -1px ${u(.03)},
|
|
170
|
+
0 2px 4px 0 ${u(.03)}
|
|
171
|
+
`,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,screenXXLMax:1919,screenXXXL:1920,screenXXXLMin:1920,boxShadowPopoverArrow:`2px 2px 5px ${u(.05)}`,dropShadowPopover:`drop-shadow(0 6px 16px ${u(.08)}) drop-shadow(0 3px 6px ${u(.12)}) drop-shadow(0 9px 28px ${u(.05)})`,boxShadowCard:`
|
|
172
|
+
0 1px 2px -2px ${u(.16)},
|
|
173
|
+
0 3px 6px 0 ${u(.12)},
|
|
174
|
+
0 5px 12px 4px ${u(.09)}
|
|
175
|
+
`,boxShadowDrawerRight:`
|
|
176
|
+
-6px 0 16px 0 ${u(.08)},
|
|
177
|
+
-3px 0 6px -4px ${u(.12)},
|
|
178
|
+
-9px 0 28px 8px ${u(.05)}
|
|
179
|
+
`,boxShadowDrawerLeft:`
|
|
180
|
+
6px 0 16px 0 ${u(.08)},
|
|
181
|
+
3px 0 6px -4px ${u(.12)},
|
|
182
|
+
9px 0 28px 8px ${u(.05)}
|
|
183
|
+
`,boxShadowDrawerUp:`
|
|
184
|
+
0 6px 16px 0 ${u(.08)},
|
|
185
|
+
0 3px 6px -4px ${u(.12)},
|
|
186
|
+
0 9px 28px 8px ${u(.05)}
|
|
187
|
+
`,boxShadowDrawerDown:`
|
|
188
|
+
0 -6px 16px 0 ${u(.08)},
|
|
189
|
+
0 -3px 6px -4px ${u(.12)},
|
|
190
|
+
0 -9px 28px 8px ${u(.05)}
|
|
191
|
+
`,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${u(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${u(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${u(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${u(.08)}`,...i}}r.d(t,{A:()=>i})},7961(e,t,r){var n=r(5689);function o(e,t){return n.s.reduce((r,n)=>{let o=e[`${n}1`],a=e[`${n}3`],i=e[`${n}6`],l=e[`${n}7`];return{...r,...t(n,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l})}},{})}r.d(t,{A:()=>o})},9233(e,t,r){var n=r(1102),o=r(8528),a=r(7034),i=r(4440),l=r(8156);let{genStyleHooks:s,genComponentStyleHook:c,genSubStyleComponent:u}=(0,o.L_)({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,n.useContext)(a.QO);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,r,n,o,a]=(0,l.Ay)();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o,zeroRuntime:a}},useCSP:()=>{let{csp:e}=(0,n.useContext)(a.QO);return e??{}},getResetStyles:(e,t)=>{let r=(0,i.av)(e);return[r,{"&":r},(0,i.jz)(t?.prefix.iconPrefixCls??a.pM)]},getCommonStyle:i.vj,getCompUnitless:()=>l.Is});r.d(t,{},{OF:s,Or:c,PN:(e,t)=>{let r=`--${e.replace(/\./g,"")}-${t}-`;return[e=>`${r}${e}`,(e,t)=>t?`var(${r}${e}, ${t})`:`var(${r}${e})`]},bf:u})},5210(e,t,r){var n=r(3055);function o(e){return e>=0&&e<=255}t.A=function(e,t){let{r:r,g:a,b:i,a:l}=new n.Y(e).toRgb();if(l<1)return e;let{r:s,g:c,b:u}=new n.Y(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((r-s*(1-e))/e),l=Math.round((a-c*(1-e))/e),d=Math.round((i-u*(1-e))/e);if(o(t)&&o(l)&&o(d))return new n.Y({r:t,g:l,b:d,a:Math.round(100*e)/100}).toRgbString()}return new n.Y({r:r,g:a,b:i,a:1}).toRgbString()}},7193(e,t,r){r.d(t,{A:()=>f});var n=r(1102),o=r(382),a=r(9882),i=r(2539),l=r(851),s=r(7211),c=r(7034),u=({children:e})=>{let{getPrefixCls:t}=n.useContext(c.QO),r=t();return n.isValidElement(e)?n.createElement(i.Ay,{visible:!0,motionName:`${r}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:t,className:r})=>(0,s.Ob)(e,e=>({className:(0,l.$)(e.className,r),style:{...e.style,...t}}))):e};let d=[null,null];var f=({children:e})=>n.createElement(o.xR,{postTriggerProps:e=>{let{id:t,builtinPlacements:r,popup:o}=e,i=(0,a.Tn)(o)?o():o,l=function(e){if(d[0]!==e){let t={};Object.keys(e).forEach(r=>{t[r]={...e[r],dynamicInset:!1}}),d[0]=e,d[1]=t}return d[1]}(r);return{...e,getPopupContainer:null,arrow:!1,popup:n.createElement(u,{key:t},i),builtinPlacements:l}}},e)},3250(e,t,r){var n=r(1102);t.A=(e,t)=>{let r=e=>"boolean"==typeof e?{show:e}:e||{};return n.useMemo(()=>{let n=r(e),o=r(t);return{...o,...n,show:n.show??o.show??!0}},[e,t])}},7833(e,t,r){r.d(t,{A:()=>L});var n=r(1102),o=r(1540),a=r(7972),i=r(851),l=r(6192),s=r(7874),c=r(2382),u=r(9882),d=r(568),f=r(7354);let p={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},h={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},m=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);var g=r(7211),b=r(2048),v=r(9809),y=r(7034),$=r(941);let x=n.createContext(!1);var w=r(8156),E=r(3250),C=r(9078),k=r(4440),S=r(7521),A=r(7968),M=r(1343),N=r(7961),O=r(8528),I=r(9233);let P=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...(0,f.K)({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...(0,M.n)((0,O.oX)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))});var R=(e,t,r=!0)=>(0,I.OF)("Tooltip",e=>{let{borderRadius:t,colorTextLightSolid:r,colorBgSpotlight:n,maxWidth:o}=e;return[(e=>{let{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:s,dropShadowPopover:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:p,sizePopupArrow:h,antCls:m}=e,[g,b]=(0,I.PN)(m,"tooltip"),v=t(i).add(h).add(p).equal(),y={minWidth:t(i).mul(2).add(h).equal(),minHeight:s,padding:`${(0,C.zA)(e.calc(u).div(2).equal())} ${(0,C.zA)(d)}`,color:b("overlay-color",o),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxSizing:"border-box"},$={[g("valid-offset-x")]:b("arrow-offset-x","var(--arrow-x)"),transformOrigin:[b("valid-offset-x","50%"),"var(--arrow-y, 50%)"].join(" ")};return[{[r]:{...(0,k.dF)(e),position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:n,visibility:"visible",filter:c,...$,"&-hidden":{display:"none"},[g("arrow-background-color")]:a,[`${r}-container`]:[y,(0,S.p9)(e,!0)],[`&:has(~ ${r}-unique-container)`]:{[`${r}-container`]:{border:"none",background:"transparent"}},"&-placement-topLeft,&-placement-topRight,&-placement-bottomLeft,&-placement-bottomRight":{minWidth:v},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{[`${r}-inner`]:{borderRadius:e.min(i,8)}},[`${r}-content`]:{position:"relative"},...(0,N.A)(e,(e,{darkColor:t})=>({[`&${r}-${e}`]:{[`${r}-container`]:{backgroundColor:t},[`${r}-arrow`]:{[g("arrow-background-color")]:t}}})),"&-rtl":{direction:"rtl"}}},(0,f.A)(e,b("arrow-background-color"),{arrowShadow:!1}),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${r}-unique-container`]:{...y,...$,position:"absolute",zIndex:t(l).sub(1).equal(),filter:c,"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]})((0,O.oX)(e,{tooltipMaxWidth:o,tooltipColor:r,tooltipBorderRadius:t,tooltipBg:n})),(0,A.aB)(e,"zoom-big-fast")]},P,{resetStyle:!1,injectStyle:r})(e,t),z=r(9534);r(5258);var T=r(7328);let B=(e,t,r)=>{let n=(0,z.nP)(r),[o]=(0,I.PN)(e,"tooltip"),a=(0,i.$)({[`${t}-${r}`]:r&&n}),l={},s={},c=(r instanceof T.kf?r:new T.kf(r)).toRgb(),u=(.299*c.r+.587*c.g+.114*c.b)/255;return r&&!n&&(l.background=r,l[o("overlay-color")]=u<.5?"#FFF":"#000",s[o("arrow-background-color")]=r),{className:a,overlayStyle:l,arrowStyle:s}};var D=r(7193);let F=n.forwardRef((e,t)=>{let{prefixCls:r,openClassName:C,getTooltipContainer:k,color:S,children:A,afterOpenChange:M,arrow:N,destroyTooltipOnHide:O,destroyOnHidden:I,title:P,overlay:z,trigger:T,builtinPlacements:D,autoAdjustOverflow:F=!0,motion:L,getPopupContainer:H,placement:j="top",mouseEnterDelay:_=.1,mouseLeaveDelay:W=.1,rootClassName:q,styles:K,classNames:V,onOpenChange:X,overlayInnerStyle:G,overlayStyle:U,overlayClassName:Y,...Q}=e,[,Z]=(0,w.Ay)(),J=e["data-popover-inject"],{getPopupContainer:ee,getPrefixCls:et,direction:er,...en}=(0,y.TP)("tooltip"),{className:eo,style:ea,classNames:ei,styles:el,arrow:es,trigger:ec}=J?{}:en,eu=(0,E.A)(N,es),ed=eu.show,ef=T||ec||"hover",ep=H||ee,eh=I??!!O,em=n.useContext(x);(0,b.rJ)("Tooltip");let eg=n.useRef(null),eb=()=>{eg.current?.forceAlign()};n.useImperativeHandle(t,()=>({forceAlign:eb,nativeElement:eg.current?.nativeElement,popupElement:eg.current?.popupElement}));let[ev,ey]=(0,a.PW)(e.defaultOpen??!1,e.open),e$=!P&&!z&&0!==P,ex=n.useMemo(()=>D||function(e){let{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:a,visibleFirst:i}=e,l=t/2,s={},c=(0,f.K)({contentRadius:a,limitVerticalRadius:!0});return Object.keys(p).forEach(e=>{let a={...n&&h[e]||p[e],offset:[0,0],dynamicInset:!0};switch(s[e]=a,m.has(e)&&(a.autoArrow=!1),e){case"top":case"topLeft":case"topRight":a.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":a.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":a.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":a.offset[0]=l+o}if(n)switch(e){case"topLeft":case"bottomLeft":a.offset[0]=-c.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":a.offset[0]=c.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":a.offset[1]=-(2*c.arrowOffsetHorizontal)+l;break;case"leftBottom":case"rightBottom":a.offset[1]=2*c.arrowOffsetHorizontal-l}a.overflow=function(e,t,r,n){if(!1===n)return{adjustX:!1,adjustY:!1};let o=(0,u.Qd)(n)?n:{},a={};switch(e){case"top":case"bottom":a.shiftX=2*t.arrowOffsetHorizontal+r,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=2*t.arrowOffsetVertical+r,a.shiftX=!0,a.adjustX=!0}let i={...a,...o};return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(e,c,t,r),i&&(a.htmlRegion="visibleFirst")}),s}({arrowPointAtCenter:eu?.pointAtCenter??!1,autoAdjustOverflow:F,arrowWidth:ed?Z.sizePopupArrow:0,borderRadius:Z.borderRadius,offset:Z.marginXXS,visibleFirst:!0}),[eu,D,Z,ed,F]),ew=n.useMemo(()=>0===P?P:z||P||"",[z,P]),eE=n.createElement(l.A,{space:!0,form:!0},(0,u.Tn)(ew)?ew():ew),eC={...e,trigger:ef,builtinPlacements:ex,getPopupContainer:ep,destroyOnHidden:eh},[ek,eS]=(0,c.AV)([ei,V],[el,K],{props:eC}),eA=et("tooltip",r),eM=et(),eN=ev;("open"in e||!e$)&&!em||(eN=!1);let eO=n.isValidElement(A)&&!(0,g.zv)(A)?A:n.createElement("span",null,A),eI=eO.props,eP=eI.className&&"string"!=typeof eI.className?eI.className:(0,i.$)(eI.className,C||`${eA}-open`),eR=(0,$.A)(eA),[ez,eT]=R(eA,eR,!J),eB=B(eM,eA,S),eD=eB.arrowStyle,eF=(0,i.$)(eR,ez,eT),eL=(0,i.$)(Y,{[`${eA}-rtl`]:"rtl"===er},eB.className,q,eF,eo,ek.root),[eH,ej]=(0,s.YK)("Tooltip",Q.zIndex),e_={...eS.container,...G,...eB.overlayStyle},eW=n.createElement(o.A,{unique:!0,...Q,zIndex:eH,showArrow:ed,placement:j,mouseEnterDelay:_,mouseLeaveDelay:W,prefixCls:eA,classNames:{root:eL,container:ek.container,arrow:ek.arrow,uniqueContainer:(0,i.$)(eF,ek.container)},styles:{root:{...eD,...eS.root,...ea,...U},container:e_,uniqueContainer:e_,arrow:eS.arrow},ref:eg,overlay:eE,visible:eN,onVisibleChange:e=>{ey(!e$&&e),!e$&&X&&X(e)},afterVisibleChange:M,arrowContent:n.createElement("span",{className:`${eA}-arrow-content`}),motion:{motionName:(0,d.b)(eM,"zoom-big-fast","string"==typeof L?.motionName?L?.motionName:void 0),motionDeadline:1e3},trigger:ef,builtinPlacements:ex,getTooltipContainer:ep,destroyOnHidden:eh},eN?(0,g.Ob)(eO,{className:eP}):eO);return n.createElement(v.A.Provider,{value:ej},eW)});F._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:r,placement:a="top",title:l,color:s,overlayInnerStyle:u,classNames:d,styles:f}=e,{getPrefixCls:p}=n.useContext(y.QO),h=p("tooltip",t),m=p(),g=(0,$.A)(h),[b,v]=R(h,g),x=B(m,h,s),w=x.arrowStyle,E=n.useMemo(()=>({container:{...u,...x.overlayStyle}}),[u,x.overlayStyle]),C={...e,placement:a},[k,S]=(0,c.AV)([d],[E,f],{props:C}),A=(0,i.$)(g,b,v,h,`${h}-pure`,`${h}-placement-${a}`,r,x.className);return n.createElement("div",{className:A,style:w},n.createElement("div",{className:`${h}-arrow`}),n.createElement(o.z,{...e,className:b,prefixCls:h,classNames:k,styles:S},l))},F.UniqueProvider=D.A;var L=F},8440(e,t,r){r.d(t,{A:()=>eL});var n=r(851),o=r(7972),a=r(1102);let i=a.createContext(null),l=a.createContext({});var s=e=>{let{dropPosition:t,dropLevelOffset:r,indent:n}=e,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case -1:o.top=0,o.left=-r*n;break;case 1:o.bottom=0,o.left=-r*n;break;case 0:o.bottom=0,o.left=n}return a.createElement("div",{style:o})},c=r(2201),u=r(2539),d=a.memo(({prefixCls:e,level:t,isStart:r,isEnd:o})=>{let i=`${e}-indent-unit`,l=[];for(let e=0;e<t;e+=1)l.push(a.createElement("span",{key:e,className:(0,n.$)(i,{[`${i}-start`]:r[e],[`${i}-end`]:o[e]})}));return a.createElement("span",{"aria-hidden":"true",className:`${e}-indent`},l)});function f(e,t){return null!=e?e:t}function p(e){let{title:t,_title:r,key:n,children:o}=e||{},a=t||"title";return{title:a,_title:r||[a],key:n||"key",children:o||"children"}}function h(e){return function e(t){return(0,o.$r)(t).map(t=>{if(!(t&&t.type&&t.type.isTreeNode))return(0,o.$e)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;let{key:r}=t,{children:n,...a}=t.props,i={key:r,...a},l=e(n);return l.length&&(i.children=l),i}).filter(e=>e)}(e)}function m(e,t,r){let{_title:n,key:a,children:i}=p(r),l=new Set(!0===t?[]:t),s=[];return!function e(r,c=null){return r.map((u,d)=>{var p;let h,m=(p=c?c.pos:"0",`${p}-${d}`),g=f(u[a],m);for(let e=0;e<n.length;e+=1){let t=n[e];if(void 0!==u[t]){h=u[t];break}}let b=Object.assign((0,o.cJ)(u,[...n,a,i]),{title:h,key:g,parent:c,pos:m,children:null,data:u,isStart:[...c?c.isStart:[],0===d],isEnd:[...c?c.isEnd:[],d===r.length-1]});return s.push(b),!0===t||l.has(g)?b.children=e(u[i]||[],b):b.children=[],b})}(e),s}function g(e,{initWrapper:t,processEntity:r,onProcessFinished:n,externalGetKey:o,childrenPropName:a,fieldNames:i}={},l){let s={},c={},u={posEntities:s,keyEntities:c};return t&&(u=t(u)||u),!function(e,t,r){let n,{childrenPropName:o,externalGetKey:a,fieldNames:i}=("object"==typeof r?r:{externalGetKey:r})||{},{key:l,children:s}=p(i),c=o||s;a?"string"==typeof a?n=e=>e[a]:"function"==typeof a&&(n=e=>a(e)):n=(e,t)=>f(e[l],t),!function r(o,a,i,l){var s;let u=o?o[c]:e,d=o?(s=i.pos,`${s}-${a}`):"0",f=o?[...l,o]:[];if(o){let e=n(o,d);t({node:o,index:a,pos:d,key:e,parentPos:i.node?i.pos:null,level:i.level+1,nodes:f})}u&&u.forEach((e,t)=>{r(e,t,{node:o,pos:d,level:i?i.level+1:-1},f)})}(null)}(e,e=>{let{node:t,index:n,pos:o,key:a,parentPos:i,level:l,nodes:d}=e,p={node:t,nodes:d,index:n,key:a,pos:o,level:l},h=f(a,o);s[o]=p,c[h]=p,p.parent=s[i],p.parent&&(p.parent.children=p.parent.children||[],p.parent.children.push(p)),r&&r(p,u)},{externalGetKey:o||l,childrenPropName:a,fieldNames:i}),n&&n(u),u}function b(e,t,r,n){return!1!==e&&(e||!t&&!r||t&&n&&!r)}function v(e,{expandedKeys:t,selectedKeys:r,loadedKeys:n,loadingKeys:o,checkedKeys:a,halfCheckedKeys:i,dragOverNodeKey:l,dropPosition:s,keyEntities:c}){let u=c[e];return{eventKey:e,expanded:-1!==t.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==n.indexOf(e),loading:-1!==o.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==i.indexOf(e),pos:String(u?u.pos:""),dragOver:l===e&&0===s,dragOverGapTop:l===e&&-1===s,dragOverGapBottom:l===e&&1===s}}function y(e){let{data:t,expanded:r,selected:n,checked:a,loaded:i,loading:l,halfChecked:s,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:p,eventKey:h}=e,m={...t,expanded:r,selected:n,checked:a,loaded:i,loading:l,halfChecked:s,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:p,key:h};return"props"in m||Object.defineProperty(m,"props",{get:()=>((0,o.$e)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e)}),m}function $(){return($=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let x="open",w="close",E=e=>{let{eventKey:t,className:r,style:s,dragOver:c,dragOverGapTop:u,dragOverGapBottom:f,isLeaf:p,isStart:h,isEnd:m,expanded:g,selected:v,checked:E,halfChecked:C,loading:k,domRef:S,active:A,data:M,onMouseMove:N,selectable:O,treeId:I,...P}=e,R=(0,o.OX)(I,t),z=a.useContext(i),{classNames:T,styles:B}=z||{},D=a.useContext(l),F=a.useRef(null),[L,H]=a.useState(!1),j=!!(z.disabled||e.disabled||D.nodeDisabled?.(M)),_=a.useMemo(()=>!!z.checkable&&!1!==e.checkable&&z.checkable,[z.checkable,e.checkable]),W=t=>{j||_&&!e.disableCheckbox&&z.onNodeCheck(t,y(e),!E)},q=a.useMemo(()=>"boolean"==typeof O?O:z.selectable,[O,z.selectable]),K=t=>{if(z.onNodeClick(t,y(e)),q)j||z.onNodeSelect(t,y(e));else W(t)},V=t=>{z.onNodeDoubleClick(t,y(e))},X=t=>{z.onNodeMouseEnter(t,y(e))},G=t=>{z.onNodeMouseLeave(t,y(e))},U=t=>{z.onNodeContextMenu(t,y(e))},Y=a.useMemo(()=>!!(z.draggable&&(!z.draggable.nodeDraggable||z.draggable.nodeDraggable(M))),[z.draggable,M]),Q=t=>{k||z.onNodeExpand(t,y(e))},Z=a.useMemo(()=>{let{children:e}=z.keyEntities[t]||{};return!!(e||[]).length},[z.keyEntities,t]),J=a.useMemo(()=>b(p,z.loadData,Z,e.loaded),[p,z.loadData,Z,e.loaded]);a.useEffect(()=>{!k&&("function"!=typeof z.loadData||!g||J||e.loaded||z.onNodeLoad(y(e)))},[k,z.loadData,z.onNodeLoad,g,J,e]);let ee=a.useMemo(()=>z.draggable?.icon?a.createElement("span",{className:`${z.prefixCls}-draggable-icon`},z.draggable.icon):null,[z.draggable]),et=t=>{let r=e.switcherIcon||z.switcherIcon;return"function"==typeof r?r({...e,isLeaf:t}):r},er=a.useMemo(()=>{if(!_)return null;let t="boolean"!=typeof _?_:null;return a.createElement("span",{className:(0,n.$)(`${z.prefixCls}-checkbox`,{[`${z.prefixCls}-checkbox-checked`]:E,[`${z.prefixCls}-checkbox-indeterminate`]:!E&&C,[`${z.prefixCls}-checkbox-disabled`]:j||e.disableCheckbox}),onClick:W,role:"checkbox","aria-checked":C?"mixed":E,"aria-disabled":j||e.disableCheckbox,"aria-labelledby":R},t)},[_,E,C,j,e.disableCheckbox,R]),en=a.useMemo(()=>J?null:g?x:w,[J,g]),eo=a.useMemo(()=>a.createElement("span",{className:(0,n.$)(T?.itemIcon,`${z.prefixCls}-iconEle`,`${z.prefixCls}-icon__${en||"docu"}`,{[`${z.prefixCls}-icon_loading`]:k}),style:B?.itemIcon}),[z.prefixCls,en,k]),ea=a.useMemo(()=>{let r=!!z.draggable;return!e.disabled&&r&&z.dragOverNodeKey===t?z.dropIndicatorRender({dropPosition:z.dropPosition,dropLevelOffset:z.dropLevelOffset,indent:z.indent,prefixCls:z.prefixCls,direction:z.direction}):null},[z.dropPosition,z.dropLevelOffset,z.indent,z.prefixCls,z.direction,z.draggable,z.dragOverNodeKey,z.dropIndicatorRender]),ei=a.useMemo(()=>{let t,r,{title:o="---"}=e,i=`${z.prefixCls}-node-content-wrapper`;if(z.showIcon){let r=e.icon||z.icon;t=r?a.createElement("span",{className:(0,n.$)(T?.itemIcon,`${z.prefixCls}-iconEle`,`${z.prefixCls}-icon__customize`),style:B?.itemIcon},"function"==typeof r?r(e):r):eo}else z.loadData&&k&&(t=eo);return r="function"==typeof o?o(M):z.titleRender?z.titleRender(M):o,a.createElement("span",{ref:F,title:"string"==typeof o?o:"",className:(0,n.$)(i,`${i}-${en||"normal"}`,{[`${z.prefixCls}-node-selected`]:!j&&(v||L)}),onMouseEnter:X,onMouseLeave:G,onContextMenu:U,onClick:K,onDoubleClick:V},t,a.createElement("span",{className:(0,n.$)(`${z.prefixCls}-title`,T?.itemTitle),style:B?.itemTitle},r),ea)},[z.prefixCls,z.showIcon,e,z.icon,eo,z.titleRender,M,en,X,G,U,K,V]),el=(0,o.KE)(P,{aria:!0,data:!0}),{level:es}=z.keyEntities[t]||{},ec=m[m.length-1],eu=!j&&Y,ed=z.draggingNodeKey===t;return a.createElement("div",$({ref:S,role:"treeitem",id:R,"aria-expanded":J?void 0:g,"aria-selected":q&&!j?v:void 0,"aria-checked":_&&!j?C?"mixed":E:void 0,"aria-disabled":j,className:(0,n.$)(r,`${z.prefixCls}-treenode`,T?.item,{[`${z.prefixCls}-treenode-disabled`]:j,[`${z.prefixCls}-treenode-switcher-${g?"open":"close"}`]:!p,[`${z.prefixCls}-treenode-checkbox-checked`]:E,[`${z.prefixCls}-treenode-checkbox-indeterminate`]:C,[`${z.prefixCls}-treenode-selected`]:v,[`${z.prefixCls}-treenode-loading`]:k,[`${z.prefixCls}-treenode-active`]:A,[`${z.prefixCls}-treenode-leaf-last`]:ec,[`${z.prefixCls}-treenode-draggable`]:Y,dragging:ed,"drop-target":z.dropTargetKey===t,"drop-container":z.dropContainerKey===t,"drag-over":!j&&c,"drag-over-gap-top":!j&&u,"drag-over-gap-bottom":!j&&f,"filter-node":z.filterTreeNode?.(y(e)),[`${z.prefixCls}-treenode-leaf`]:J}),style:{...s,...B?.item},draggable:eu,onDragStart:eu?t=>{t.stopPropagation(),H(!0),z.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch{}}:void 0,onDragEnter:Y?t=>{t.preventDefault(),t.stopPropagation(),z.onNodeDragEnter(t,e)}:void 0,onDragOver:Y?t=>{t.preventDefault(),t.stopPropagation(),z.onNodeDragOver(t,e)}:void 0,onDragLeave:Y?t=>{t.stopPropagation(),z.onNodeDragLeave(t,e)}:void 0,onDrop:Y?t=>{t.preventDefault(),t.stopPropagation(),H(!1),z.onNodeDrop(t,e)}:void 0,onDragEnd:Y?t=>{t.stopPropagation(),H(!1),z.onNodeDragEnd(t,e)}:void 0,onMouseMove:N},el),a.createElement(d,{prefixCls:z.prefixCls,level:es,isStart:h,isEnd:m}),ee,(()=>{if(J){let e=et(!0);return!1!==e?a.createElement("span",{className:(0,n.$)(`${z.prefixCls}-switcher`,`${z.prefixCls}-switcher-noop`,T?.itemSwitcher),style:B?.itemSwitcher},e):null}let e=et(!1);return!1!==e?a.createElement("span",{onClick:Q,className:(0,n.$)(`${z.prefixCls}-switcher`,`${z.prefixCls}-switcher_${g?x:w}`,T?.itemSwitcher),style:B?.itemSwitcher},e):null})(),er,ei)};E.isTreeNode=1;var C=function(e,t){let[r,n]=a.useState(!1);(0,o.Nf)(()=>{if(r)return e(),()=>{t()}},[r]),(0,o.Nf)(()=>(n(!0),()=>{n(!1)}),[])};function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let S=a.forwardRef((e,t)=>{let{className:r,style:l,motion:s,motionNodes:c,motionType:d,onMotionStart:f,onMotionEnd:p,active:h,treeNodeRequiredProps:m,...g}=e,[b,y]=a.useState(!0),{prefixCls:$}=a.useContext(i),x=c&&"hide"!==d;(0,o.Nf)(()=>{c&&x!==b&&y(x)},[c]);let w=a.useRef(!1),S=()=>{c&&!w.current&&(w.current=!0,p())};return(C(()=>{c&&f()},S),c)?a.createElement(u.Ay,k({ref:t,visible:b},s,{motionAppear:"show"===d,onVisibleChanged:e=>{x===e&&S()}}),({className:e,style:t},r)=>a.createElement("div",{ref:r,className:(0,n.$)(`${$}-treenode-motion`,e),style:t},c.map(e=>{let{data:{...t},title:r,key:n,isStart:o,isEnd:i}=e;delete t.children;let l=v(n,m);return a.createElement(E,k({},t,l,{title:r,active:h,data:e.data,key:n,isStart:o,isEnd:i}))}))):a.createElement(E,k({domRef:t,className:r,style:l},g,{active:h}))});function A(e,t,r){let n=e.findIndex(e=>e.key===r),o=e[n+1],a=t.findIndex(e=>e.key===r);if(o){let e=t.findIndex(e=>e.key===o.key);return t.slice(a+1,e)}return t.slice(a+1)}function M(){return(M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let N=`RC_TREE_MOTION_${Math.random()}`,O={key:N},I={key:N,level:0,index:0,pos:"0",node:O,nodes:[O]},P={parent:null,children:[],pos:I.pos,data:O,title:null,key:N,isStart:[],isEnd:[]};function R(e,t,r,n){return!1!==t&&r?e.slice(0,Math.ceil(r/n)+1):e}function z(e){let{key:t,pos:r}=e;return f(t,r)}let T=a.forwardRef((e,t)=>{let{prefixCls:r,data:n,selectable:i,checkable:l,expandedKeys:s,selectedKeys:u,checkedKeys:d,loadedKeys:p,loadingKeys:h,halfCheckedKeys:m,keyEntities:g,disabled:b,dragging:y,dragOverNodeKey:$,dropPosition:x,motion:w,height:E,itemHeight:C,virtual:k,scrollWidth:O,focusable:I,activeItem:T,tabIndex:B,onKeyDown:D,onFocus:F,onBlur:L,onMouseDown:H,onActiveChange:j,onListChangeStart:_,onListChangeEnd:W,...q}=e,K=(0,o.Bi)(),V=a.useRef(null),X=a.useRef(null);a.useImperativeHandle(t,()=>({scrollTo:e=>{V.current.scrollTo(e)},getIndentWidth:()=>X.current.offsetWidth}));let[G,U]=a.useState(s),[Y,Q]=a.useState(n),[Z,J]=a.useState(n),[ee,et]=a.useState([]),[er,en]=a.useState(null),eo=a.useRef(n);function ea(){let e=eo.current;Q(e),J(e),et([]),en(null),W()}eo.current=n,(0,o.Nf)(()=>{U(s);let e=function(e=[],t=[]){let r=e.length,n=t.length;if(1!==Math.abs(r-n))return{add:!1,key:null};function o(e,t){let r=new Map;e.forEach(e=>{r.set(e,!0)});let n=t.filter(e=>!r.has(e));return 1===n.length?n[0]:null}return r<n?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}(G,s);if(null!==e.key)if(e.add){let t=Y.findIndex(({key:t})=>t===e.key),r=R(A(Y,n,e.key),k,E,C),o=Y.slice();o.splice(t+1,0,P),J(o),et(r),en("show")}else{let t=n.findIndex(({key:t})=>t===e.key),r=R(A(n,Y,e.key),k,E,C),o=n.slice();o.splice(t+1,0,P),J(o),et(r),en("hide")}else Y!==n&&(Q(n),J(n))},[s,n]),a.useEffect(()=>{y||ea()},[y]);let ei=w?Z:n,el={expandedKeys:s,selectedKeys:u,loadedKeys:p,loadingKeys:h,checkedKeys:d,halfCheckedKeys:m,dragOverNodeKey:$,dropPosition:x,keyEntities:g};return a.createElement(a.Fragment,null,a.createElement("div",{className:`${r}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},a.createElement("div",{className:`${r}-indent`},a.createElement("div",{ref:X,className:`${r}-indent-unit`}))),a.createElement(c.A,M({},q,{data:ei,itemKey:z,height:E,fullHeight:!1,virtual:k,itemHeight:C,scrollWidth:O,prefixCls:`${r}-list`,ref:V,role:"tree",tabIndex:!1===I||b?void 0:B,"aria-activedescendant":T?(0,o.OX)(K,T.key):void 0,onKeyDown:D,onFocus:F,onBlur:L,onMouseDown:H,onVisibleChange:e=>{e.every(e=>z(e)!==N)&&ea()}}),e=>{let{pos:t,data:{...r},title:n,key:o,isStart:i,isEnd:l}=e,s=f(o,t);delete r.key,delete r.children;let c=v(s,el);return a.createElement(S,M({},r,c,{title:n,active:!!T&&o===T.key,pos:t,data:e.data,isStart:i,isEnd:l,motion:w,motionNodes:o===N?ee:null,motionType:er,onMotionStart:_,onMotionEnd:ea,treeNodeRequiredProps:el,treeId:K,onMouseMove:()=>{j(null)}}))}))});function B(e,t){if(!e)return[];let r=e.slice(),n=r.indexOf(t);return n>=0&&r.splice(n,1),r}function D(e,t){let r=(e||[]).slice();return -1===r.indexOf(t)&&r.push(t),r}function F(e){return e.split("-")}function L(e,t,r,n,o,a,i,l,s,c){let u,{clientX:d,clientY:f}=e,{top:p,height:h}=e.target.getBoundingClientRect(),m=(("rtl"===c?-1:1)*((o?.x||0)-d)-12)/n,g=s.filter(e=>l[e]?.children?.length),b=l[r.eventKey];if(f<p+h/2){let e=i.findIndex(e=>e.key===b.key);b=l[i[e<=0?0:e-1].key]}let v=b.key,y=b,$=b.key,x=0,w=0;if(!g.includes(v))for(let e=0;e<m;e+=1)if(function(e){if(e.parent){let t=F(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}(b))b=b.parent,w+=1;else break;let E=t.data,C=b.node,k=!0;return 0===Number((u=F(b.pos))[u.length-1])&&0===b.level&&f<p+h/2&&a({dragNode:E,dropNode:C,dropPosition:-1})&&b.key===r.eventKey?x=-1:(y.children||[]).length&&g.includes($)?a({dragNode:E,dropNode:C,dropPosition:0})?x=0:k=!1:0===w?m>-1.5?a({dragNode:E,dropNode:C,dropPosition:1})?x=1:k=!1:a({dragNode:E,dropNode:C,dropPosition:0})?x=0:a({dragNode:E,dropNode:C,dropPosition:1})?x=1:k=!1:a({dragNode:E,dropNode:C,dropPosition:1})?x=1:k=!1,{dropPosition:x,dropLevelOffset:w,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:$,dropContainerKey:0===x?null:b.parent?.key||null,dropAllowed:k}}function H(e,t){if(!e)return;let{multiple:r}=t;return r?e.slice():e.length?[e[0]]:e}function j(e){let t;if(!e)return null;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!=typeof e)return(0,o.$e)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function _(e,t){let r=new Set;return(e||[]).forEach(e=>{!function e(n){if(r.has(n))return;let o=t[n];if(!o)return;r.add(n);let{parent:a,node:i}=o;!i.disabled&&a&&e(a.key)}(e)}),[...r]}function W(e,t){let r=new Set;return e.forEach(e=>{t.has(e)||r.add(e)}),r}function q(e){let{disabled:t,disableCheckbox:r,checkable:n}=e||{};return!!(t||r)||!1===n}function K(e,t,r,n){let a,i=[];a=n||q;let l=new Set(e.filter(e=>{let t=!!r[e];return t||i.push(e),t})),s=new Map,c=0;return Object.keys(r).forEach(e=>{let t=r[e],{level:n}=t,o=s.get(n);o||(o=new Set,s.set(n,o)),o.add(t),c=Math.max(c,n)}),(0,o.$e)(!i.length,`Tree missing follow keys: ${i.slice(0,100).map(e=>`'${e}'`).join(", ")}`),!0===t?function(e,t,r,n){let o=new Set(e),a=new Set;for(let e=0;e<=r;e+=1)(t.get(e)||new Set).forEach(e=>{let{key:t,node:r,children:a=[]}=e;o.has(t)&&!n(r)&&a.filter(e=>!n(e.node)).forEach(e=>{o.add(e.key)})});let i=new Set;for(let e=r;e>=0;e-=1)(t.get(e)||new Set).forEach(e=>{let{parent:t,node:r}=e;if(n(r)||!e.parent||i.has(e.parent.key))return;if(n(e.parent.node))return void i.add(t.key);let l=!0,s=!1;(t.children||[]).filter(e=>!n(e.node)).forEach(({key:e})=>{let t=o.has(e);l&&!t&&(l=!1),!s&&(t||a.has(e))&&(s=!0)}),l&&o.add(t.key),s&&a.add(t.key),i.add(t.key)});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(W(a,o))}}(l,s,c,a):function(e,t,r,n,o){let a=new Set(e),i=new Set(t);for(let e=0;e<=n;e+=1)(r.get(e)||new Set).forEach(e=>{let{key:t,node:r,children:n=[]}=e;a.has(t)||i.has(t)||o(r)||n.filter(e=>!o(e.node)).forEach(e=>{a.delete(e.key)})});i=new Set;let l=new Set;for(let e=n;e>=0;e-=1)(r.get(e)||new Set).forEach(e=>{let{parent:t,node:r}=e;if(o(r)||!e.parent||l.has(e.parent.key))return;if(o(e.parent.node))return void l.add(t.key);let n=!0,s=!1;(t.children||[]).filter(e=>!o(e.node)).forEach(({key:e})=>{let t=a.has(e);n&&!t&&(n=!1),!s&&(t||i.has(e))&&(s=!0)}),n||a.delete(t.key),s&&i.add(t.key),l.add(t.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(W(i,a))}}(l,t.halfCheckedKeys,s,c,a)}function V(){return(V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}class X extends a.Component{static defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:s,allowDrop:()=>!0,expandAction:!1};static TreeNode=E;destroyed=!1;delayedDragEnterLogic;loadingRetryTimes={};state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],activeKey:null,listChanging:!1,prevProps:null,fieldNames:p()};dragStartMousePosition=null;dragNodeProps=null;currentMouseOverDroppableNodeKey=null;focusedByMouse=!1;listRef=a.createRef();componentDidMount(){this.destroyed=!1,this.onUpdated(),window.addEventListener("mouseup",this.onGlobalMouseUp)}componentDidUpdate(){this.onUpdated()}onUpdated(){let{activeKey:e,itemScrollOffset:t=0}=this.props;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e,offset:t}))}componentWillUnmount(){window.removeEventListener("dragend",this.onWindowDragEnd),window.removeEventListener("mouseup",this.onGlobalMouseUp),this.destroyed=!0}static getDerivedStateFromProps(e,t){let r,{prevProps:n}=t,a={prevProps:e};function i(t){return!n&&e.hasOwnProperty(t)||n&&n[t]!==e[t]}let{fieldNames:l}=t;i("fieldNames")&&(a.fieldNames=l=p(e.fieldNames)),i("treeData")?{treeData:r}=e:i("children")&&((0,o.$e)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),r=h(e.children)),r&&(a.treeData=r,a.keyEntities={[N]:I,...g(r,{fieldNames:l}).keyEntities});let s=a.keyEntities||t.keyEntities;if(i("expandedKeys")||n&&i("autoExpandParent"))a.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?_(e.expandedKeys,s):e.expandedKeys;else if(!n&&e.defaultExpandAll){let e={...s};delete e[N];let t=[];Object.keys(e).forEach(r=>{let n=e[r];n.children&&n.children.length&&t.push(n.key)}),a.expandedKeys=t}else!n&&e.defaultExpandedKeys&&(a.expandedKeys=e.autoExpandParent||e.defaultExpandParent?_(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,r||a.expandedKeys){let e=m(r||t.treeData,a.expandedKeys||t.expandedKeys,l);a.flattenNodes=e}if(e.selectable&&(i("selectedKeys")?a.selectedKeys=H(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(a.selectedKeys=H(e.defaultSelectedKeys,e))),e.checkable){let o;if(i("checkedKeys")?o=j(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?o=j(e.defaultCheckedKeys)||{}:r&&(o=j(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),o){let{checkedKeys:t=[],halfCheckedKeys:r=[]}=o;if(!e.checkStrictly){let e=K(t,!0,s);({checkedKeys:t,halfCheckedKeys:r}=e)}a.checkedKeys=t,a.halfCheckedKeys=r}}return i("loadedKeys")&&(a.loadedKeys=e.loadedKeys),a}onNodeDragStart=(e,t)=>{let r,{expandedKeys:n,keyEntities:o}=this.state,{onDragStart:a}=this.props,{eventKey:i}=t;this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY};let l=B(n,i);this.setState({draggingNodeKey:i,dragChildrenKeys:(r=[],!function e(t=[]){t.forEach(({key:t,children:n})=>{r.push(t),e(n)})}(o[i].children),r),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(l),window.addEventListener("dragend",this.onWindowDragEnd),a?.({event:e,node:y(t)})};onNodeDragEnter=(e,t)=>{let{expandedKeys:r,keyEntities:n,dragChildrenKeys:o,flattenNodes:a,indent:i}=this.state,{onDragEnter:l,onExpand:s,allowDrop:c,direction:u}=this.props,{pos:d,eventKey:f}=t;if(this.currentMouseOverDroppableNodeKey!==f&&(this.currentMouseOverDroppableNodeKey=f),!this.dragNodeProps)return void this.resetDragState();let{dropPosition:p,dropLevelOffset:h,dropTargetKey:m,dropContainerKey:g,dropTargetPos:b,dropAllowed:v,dragOverNodeKey:$}=L(e,this.dragNodeProps,t,i,this.dragStartMousePosition,c,a,n,r,u);o.includes(m)||!v||(this.delayedDragEnterLogic||(this.delayedDragEnterLogic={}),Object.keys(this.delayedDragEnterLogic).forEach(e=>{clearTimeout(this.delayedDragEnterLogic[e])}),this.dragNodeProps.eventKey!==t.eventKey&&(e.persist(),this.delayedDragEnterLogic[d]=window.setTimeout(()=>{if(null===this.state.draggingNodeKey)return;let o=[...r],a=n[t.eventKey];a&&(a.children||[]).length&&(o=D(r,t.eventKey)),this.props.hasOwnProperty("expandedKeys")||this.setExpandedKeys(o),s?.(o,{node:y(t),expanded:!0,nativeEvent:e.nativeEvent})},800)),this.dragNodeProps.eventKey===m&&0===h)?this.resetDragState():(this.setState({dragOverNodeKey:$,dropPosition:p,dropLevelOffset:h,dropTargetKey:m,dropContainerKey:g,dropTargetPos:b,dropAllowed:v}),l?.({event:e,node:y(t),expandedKeys:r}))};onNodeDragOver=(e,t)=>{let{dragChildrenKeys:r,flattenNodes:n,keyEntities:o,expandedKeys:a,indent:i}=this.state,{onDragOver:l,allowDrop:s,direction:c}=this.props;if(!this.dragNodeProps)return;let{dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:h,dropAllowed:m,dragOverNodeKey:g}=L(e,this.dragNodeProps,t,i,this.dragStartMousePosition,s,n,o,a,c);!r.includes(f)&&m&&(this.dragNodeProps.eventKey===f&&0===d?(null!==this.state.dropPosition||null!==this.state.dropLevelOffset||null!==this.state.dropTargetKey||null!==this.state.dropContainerKey||null!==this.state.dropTargetPos||!1!==this.state.dropAllowed||null!==this.state.dragOverNodeKey)&&this.resetDragState():(u!==this.state.dropPosition||d!==this.state.dropLevelOffset||f!==this.state.dropTargetKey||p!==this.state.dropContainerKey||h!==this.state.dropTargetPos||m!==this.state.dropAllowed||g!==this.state.dragOverNodeKey)&&this.setState({dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:h,dropAllowed:m,dragOverNodeKey:g}),l?.({event:e,node:y(t)}))};onNodeDragLeave=(e,t)=>{this.currentMouseOverDroppableNodeKey!==t.eventKey||e.currentTarget.contains(e.relatedTarget)||(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);let{onDragLeave:r}=this.props;r?.({event:e,node:y(t)})};onWindowDragEnd=e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener("dragend",this.onWindowDragEnd)};onNodeDragEnd=(e,t)=>{let{onDragEnd:r}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),r?.({event:e,node:y(t)}),this.dragNodeProps=null,window.removeEventListener("dragend",this.onWindowDragEnd)};onNodeDrop=(e,t,r=!1)=>{let{dragChildrenKeys:n,dropPosition:a,dropTargetKey:i,dropTargetPos:l,dropAllowed:s}=this.state;if(!s)return;let{onDrop:c}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),null===i)return;let u={...v(i,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===i,data:this.state.keyEntities[i].node},d=n.includes(i);(0,o.$e)(!d,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");let f=F(l),p={event:e,node:y(u),dragNode:this.dragNodeProps?y(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(n),dropToGap:0!==a,dropPosition:a+Number(f[f.length-1])};r||c?.(p),this.dragNodeProps=null};resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}cleanDragState=()=>{let{draggingNodeKey:e}=this.state;null!==e&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null};triggerExpandActionExpand=(e,t)=>{let{expandedKeys:r,flattenNodes:n}=this.state,{expanded:o,key:a,isLeaf:i}=t;if(i||e.shiftKey||e.metaKey||e.ctrlKey)return;let l=n.filter(e=>e.key===a)[0],s=y({...v(a,this.getTreeNodeRequiredProps()),data:l.data});this.setExpandedKeys(o?B(r,a):D(r,a)),this.onNodeExpand(e,s)};onNodeClick=(e,t)=>{let{onClick:r,expandAction:n}=this.props;"click"===n&&this.triggerExpandActionExpand(e,t),r?.(e,t)};onNodeDoubleClick=(e,t)=>{let{onDoubleClick:r,expandAction:n}=this.props;"doubleClick"===n&&this.triggerExpandActionExpand(e,t),r?.(e,t)};onNodeSelect=(e,t)=>{let{selectedKeys:r}=this.state,{keyEntities:n,fieldNames:o}=this.state,{onSelect:a,multiple:i}=this.props,{selected:l}=t,s=t[o.key],c=!l,u=(r=c?i?D(r,s):[s]:B(r,s)).map(e=>{let t=n[e];return t?t.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:r}),a?.(r,{event:"select",selected:c,node:t,selectedNodes:u,nativeEvent:e.nativeEvent})};onNodeCheck=(e,t,r)=>{let n,{keyEntities:o,checkedKeys:a,halfCheckedKeys:i}=this.state,{checkStrictly:l,onCheck:s}=this.props,{key:c}=t,u={event:"check",node:t,checked:r,nativeEvent:e.nativeEvent};if(l){let e=r?D(a,c):B(a,c);n={checked:e,halfChecked:B(i,c)},u.checkedNodes=e.map(e=>o[e]).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=K([...a,c],!0,o);if(!r){let r=new Set(e);r.delete(c),{checkedKeys:e,halfCheckedKeys:t}=K(Array.from(r),{checked:!1,halfCheckedKeys:t},o)}n=e,u.checkedNodes=[],u.checkedNodesPositions=[],u.halfCheckedKeys=t,e.forEach(e=>{let t=o[e];if(!t)return;let{node:r,pos:n}=t;u.checkedNodes.push(r),u.checkedNodesPositions.push({node:r,pos:n})}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}s?.(n,u)};onNodeLoad=e=>{let{key:t}=e,{keyEntities:r}=this.state,n=r[t];if(n?.children?.length)return;let a=new Promise((r,n)=>{this.setState(({loadedKeys:a=[],loadingKeys:i=[]})=>{let{loadData:l,onLoad:s}=this.props;return!l||a.includes(t)||i.includes(t)?null:(l(e).then(()=>{let{loadedKeys:n}=this.state,o=D(n,t);s?.(o,{event:"load",node:e}),this.setUncontrolledState({loadedKeys:o}),this.setState(e=>({loadingKeys:B(e.loadingKeys,t)})),r()}).catch(e=>{if(this.setState(e=>({loadingKeys:B(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=10){let{loadedKeys:e}=this.state;(0,o.$e)(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:D(e,t)}),r()}n(e)}),{loadingKeys:D(i,t)})})});return a.catch(()=>{}),a};onNodeMouseEnter=(e,t)=>{let{onMouseEnter:r}=this.props;r?.({event:e,node:t})};onNodeMouseLeave=(e,t)=>{let{onMouseLeave:r}=this.props;r?.({event:e,node:t})};onNodeContextMenu=(e,t)=>{let{onRightClick:r}=this.props;r&&(e.preventDefault(),r({event:e,node:t}))};onMouseDown=e=>{this.focusedByMouse=!0;let{onMouseDown:t}=this.props;t?.(e)};onGlobalMouseUp=()=>{this.focusedByMouse=!1};onFocus=(...e)=>{let{onFocus:t,disabled:r}=this.props,{activeKey:n,selectedKeys:o,flattenNodes:a}=this.state;if(!this.focusedByMouse&&!r&&null===n){let e=o.find(e=>a.some(t=>t.key===e));void 0!==e?this.onActiveChange(e):this.onActiveChange(a?.[0]?.key||null)}t?.(...e)};onBlur=(...e)=>{let{onBlur:t}=this.props;this.onActiveChange(null),t?.(...e)};getTreeNodeRequiredProps=()=>{let{expandedKeys:e,selectedKeys:t,loadedKeys:r,loadingKeys:n,checkedKeys:o,halfCheckedKeys:a,dragOverNodeKey:i,dropPosition:l,keyEntities:s}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:r||[],loadingKeys:n||[],checkedKeys:o||[],halfCheckedKeys:a||[],dragOverNodeKey:i,dropPosition:l,keyEntities:s}};setExpandedKeys=e=>{let{treeData:t,fieldNames:r}=this.state,n=m(t,e,r);this.setUncontrolledState({expandedKeys:e,flattenNodes:n},!0)};onNodeExpand=(e,t)=>{let{expandedKeys:r}=this.state,{listChanging:n,fieldNames:a}=this.state,{onExpand:i,loadData:l}=this.props,{expanded:s}=t,c=t[a.key];if(n)return;let u=r.includes(c),d=!s;if((0,o.$e)(s&&u||!s&&!u,"Expand state not sync with index check"),r=d?D(r,c):B(r,c),this.setExpandedKeys(r),i?.(r,{node:t,expanded:d,nativeEvent:e.nativeEvent}),d&&l){let e=this.onNodeLoad(t);e&&e.then(()=>{let e=m(this.state.treeData,r,a);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{let{expandedKeys:e}=this.state,t=B(e,c);this.setExpandedKeys(t)})}};onListChangeStart=()=>{this.setUncontrolledState({listChanging:!0})};onListChangeEnd=()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})};onActiveChange=e=>{let{activeKey:t}=this.state,{onActiveChange:r,itemScrollOffset:n=0}=this.props;t!==e&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e,offset:n}),r?.(e))};getActiveItem=()=>{let{activeKey:e,flattenNodes:t}=this.state;return null===e?null:t.find(({key:t})=>t===e)||null};offsetActiveKey=e=>{let{flattenNodes:t,activeKey:r}=this.state,n=t.findIndex(({key:e})=>e===r);-1===n&&e<0&&(n=t.length),n=(n+e+t.length)%t.length;let o=t[n];if(o){let{key:e}=o;this.onActiveChange(e)}else this.onActiveChange(null)};onKeyDown=e=>{let{activeKey:t,expandedKeys:r,checkedKeys:n,flattenNodes:o,keyEntities:a}=this.state,{onKeyDown:i,checkable:l,selectable:s,disabled:c,loadData:u}=this.props;if(c)return;switch(e.key){case"ArrowUp":this.offsetActiveKey(-1),e.preventDefault();break;case"ArrowDown":this.offsetActiveKey(1),e.preventDefault();break;case"Home":this.onActiveChange(o?.[0]?.key),e.preventDefault();break;case"End":this.onActiveChange(o?.[o.length-1]?.key),e.preventDefault()}let d=this.getActiveItem();if(d&&d.data){let o=y({...v(t,this.getTreeNodeRequiredProps()),data:d.data,active:!0}),i=a[t],c=!!i?.children?.length,f=!b(d.data.isLeaf,u,c,o.loaded),p=l&&!o.disabled&&!1!==o.checkable&&!o.disableCheckbox,h=!l&&s&&!o.disabled&&!1!==o.selectable;switch(e.key){case"ArrowLeft":f&&r.includes(t)?this.onNodeExpand({},o):d.parent&&this.onActiveChange(d.parent.key),e.preventDefault();break;case"ArrowRight":f&&!r.includes(t)?this.onNodeExpand({},o):d.children&&d.children.length&&this.onActiveChange(d.children[0].key),e.preventDefault();break;case"Enter":f?(e.preventDefault(),this.onNodeExpand({},o)):p?n.includes(t)||(e.preventDefault(),this.onNodeCheck({},o,!0)):h&&!o.selected&&(e.preventDefault(),this.onNodeSelect({},o));break;case" ":p?(e.preventDefault(),this.onNodeCheck({},o,!n.includes(t))):h&&(e.preventDefault(),this.onNodeSelect({},o))}}i?.(e)};setUncontrolledState=(e,t=!1,r=null)=>{if(!this.destroyed){let n=!1,o=!0,a={};Object.keys(e).forEach(t=>{if(this.props.hasOwnProperty(t)){o=!1;return}n=!0,a[t]=e[t]}),n&&(!t||o)&&this.setState({...a,...r})}};scrollTo=e=>{this.listRef.current.scrollTo(e)};render(){let e,{flattenNodes:t,keyEntities:r,draggingNodeKey:l,dropLevelOffset:s,dropContainerKey:c,dropTargetKey:u,dropPosition:d,dragOverNodeKey:f,indent:p}=this.state,{prefixCls:h,className:m,style:g,styles:b,classNames:v,showLine:y,focusable:$,tabIndex:x=0,selectable:w,showIcon:E,icon:C,switcherIcon:k,draggable:S,checkable:A,checkStrictly:M,disabled:N,motion:O,loadData:I,filterTreeNode:P,height:R,itemHeight:z,scrollWidth:B,virtual:D,titleRender:F,dropIndicatorRender:L,onContextMenu:H,onScroll:j,direction:_,rootClassName:W,rootStyle:q}=this.props,K=(0,o.KE)(this.props,{aria:!0,data:!0});S&&(e="object"==typeof S?S:"function"==typeof S?{nodeDraggable:S}:{});let X={styles:b,classNames:v,prefixCls:h,selectable:w,showIcon:E,icon:C,switcherIcon:k,draggable:e,draggingNodeKey:l,checkable:A,checkStrictly:M,disabled:N,keyEntities:r,dropLevelOffset:s,dropContainerKey:c,dropTargetKey:u,dropPosition:d,dragOverNodeKey:f,indent:p,direction:_,dropIndicatorRender:L,loadData:I,filterTreeNode:P,titleRender:F,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return a.createElement(i.Provider,{value:X},a.createElement("div",{className:(0,n.$)(h,m,W,{[`${h}-show-line`]:y}),style:q},a.createElement(T,V({ref:this.listRef,prefixCls:h,style:g,data:t,disabled:N,selectable:w,checkable:!!A,motion:O,dragging:null!==l,height:R,itemHeight:z,virtual:D,focusable:$,tabIndex:x,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:H,onScroll:j,scrollWidth:B},this.getTreeNodeRequiredProps(),K))))}}var G=r(5142),U=r(5432),Y=r(2875);function Q(){return(Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let Z=a.forwardRef((e,t)=>a.createElement(Y.A,Q({},e,{ref:t,icon:U.A})));var J=r(66);function ee(){return(ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let et=a.forwardRef((e,t)=>a.createElement(Y.A,ee({},e,{ref:t,icon:J.A})));var er=r(5862);function en(){return(en=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let eo=a.forwardRef((e,t)=>a.createElement(Y.A,en({},e,{ref:t,icon:er.A})));var ea=r(7034),ei=r(9656);function el(){return(el=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let es=a.forwardRef((e,t)=>a.createElement(Y.A,el({},e,{ref:t,icon:ei.A})));var ec=r(2382),eu=r(568),ed=r(8306),ef=r(8156),ep=r(9078),eh=r(4440),em=r(6003),eg=r(8528),eb=r(9233);function ev(e,t){return(e=>{let{checkboxCls:t,checkboxSize:r,lineWidth:n}=e,o=`${t}-wrapper`,a="@media (hover: hover) and (pointer: fine)";return[{[`${t}-group`]:{...(0,eh.dF)(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[o]:{...(0,eh.dF)(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${o}`]:{marginInlineStart:0}},[t]:{...(0,eh.dF)(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:r,height:r,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${(0,ep.zA)(n)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,flex:"none",...(0,em.V)(),"&:after":{boxSizing:"border-box",position:"absolute",top:`calc(${r} / 2 - ${n})`,insetInlineStart:`calc(${r} / 4 - ${n})`,display:"table",width:e.calc(r).div(14).mul(5).equal(),height:e.calc(r).div(14).mul(8).equal(),border:`${(0,ep.zA)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`,...(0,em.X)()},[`${t}-input`]:{position:"absolute",inset:`calc(-1 * (${n}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:(0,eh.jk)(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[a]:{[`
|
|
192
|
+
${o}:not(${o}-disabled),
|
|
193
|
+
${t}:not(${t}-disabled)
|
|
194
|
+
`]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${o}:not(${o}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}}},{[`${t}-checked`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`,...(0,em.X)()},[a]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}}},{[t]:{"&-indeterminate":{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'},[a]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}}},{[`${o}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]})((0,eg.oX)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}(0,eb.OF)("Checkbox",(e,{prefixCls:t})=>[ev(t,e)]);let ey=new ep.Mo("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}});var e$=(0,eb.OF)("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:ev(`${t}-checkbox`,e)},((e,t,r=!0)=>{let n=`.${e}`,o=`${n}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),i=(0,eg.oX)(t,{treeCls:n,treeNodeCls:o,treeNodePadding:a});return[((e,t)=>{let{treeCls:r,treeNodeCls:n,treeNodePadding:o,titleHeight:a,indentSize:i,switcherSize:l,motionDurationMid:s,nodeSelectedBg:c,nodeHoverBg:u,colorTextQuaternary:d,controlItemBgActiveDisabled:f}=t;return{[r]:{...(0,eh.dF)(t),"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${r}-rtl ${r}-switcher_close ${r}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`${r}-list`]:{"&:focus-visible":{outline:"none",[`${n}-active ${r}-node-content-wrapper`]:{...(0,eh.jk)(t)}}},[`${r}-list-holder-inner`]:{alignItems:"flex-start"},[`&${r}-block-node`]:{[`${r}-list-holder-inner`]:{alignItems:"stretch",[`${r}-node-content-wrapper`]:{flex:"auto"},[`${n}.dragging:after`]:{position:"absolute",inset:0,border:`${(0,ep.zA)(t.lineWidth)} ${t.lineType} ${t.colorPrimary}`,opacity:0,animationName:ey,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[n]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:(0,ep.zA)(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-disabled ${r}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${r}-checkbox-disabled + ${r}-node-selected,&${n}-disabled${n}-selected ${r}-node-content-wrapper`]:{backgroundColor:f},[`${r}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${n}-disabled)`]:{[`${r}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${r}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${n}-disabled).filter-node ${r}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${r}-draggable-icon`]:{flexShrink:0,width:l,textAlign:"center",visibility:"visible",color:d},[`&${n}-disabled ${r}-draggable-icon`]:{visibility:"hidden"}}},[`${r}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${r}-draggable-icon`]:{visibility:"hidden"},[`${r}-switcher, ${r}-checkbox`]:{marginInlineEnd:t.calc(t.calc(l).sub(t.controlInteractiveSize)).div(2).equal()},[`${r}-checkbox`]:{flexShrink:0,alignSelf:"flex-start",marginBlockStart:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${r}-switcher`]:{...{[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}},position:"relative",flex:"none",alignSelf:"stretch",width:l,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:l,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${r}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${r}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(l).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:t.calc(t.lineWidth).mul(-1).equal(),borderInlineEnd:`${(0,ep.zA)(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(l).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`${(0,ep.zA)(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,content:'""'}}},[`${r}-node-content-wrapper`]:{position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${s}, border 0s, line-height 0s, box-shadow 0s`,...{[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,ep.zA)(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}},"&:hover":{backgroundColor:u},[`&${r}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:c},[`${r}-iconEle`]:{display:"inline-block",width:l,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${r}-unselectable ${r}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${r}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(l).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`${(0,ep.zA)(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${r}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${n}-leaf-last ${r}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,ep.zA)(t.calc(a).div(2).equal())} !important`}}}})(e,i),r&&(({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:r,directoryNodeSelectedColor:n,motionDurationMid:o,borderRadius:a,controlItemBgHover:i})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:a},"&:hover:before":{background:i}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:r,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:n},[`${e}-node-content-wrapper`]:{color:n,background:"transparent","&, &:hover":{color:n},"&:before, &:hover:before":{background:r}}}}}))(i)].filter(Boolean)})(t,e),(e=>{let{componentCls:t,antCls:r,motionDurationMid:n,motionEaseInOut:o}=e;return{[t]:{[`${r}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(e=>`${e} ${n} ${o}`).join(", ")} !important`}},[`${r}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(e=>`${e} ${n} ${o}`).join(", ")} !important`}}}})(e)],e=>{let{colorTextLightSolid:t,colorPrimary:r}=e;return{...(e=>{let{controlHeightSM:t,controlItemBgHover:r,controlItemBgActive:n}=e;return{titleHeight:t,switcherSize:t,indentSize:t,nodeHoverBg:r,nodeHoverColor:e.colorText,nodeSelectedBg:n,nodeSelectedColor:e.colorText}})(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:r}}),ex=e=>{let{dropPosition:t,dropLevelOffset:r,prefixCls:n,indent:o,direction:i="ltr"}=e,l="ltr"===i?"left":"right",s={[l]:-r*o+4,["ltr"===i?"right":"left"]:0};switch(t){case -1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[l]=o+4}return a.createElement("div",{style:s,className:`${n}-drop-indicator`})},ew=r(1633);function eE(){return(eE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let eC=a.forwardRef((e,t)=>a.createElement(Y.A,eE({},e,{ref:t,icon:ew.A})));var ek=r(6941),eS=r(3863);function eA(){return(eA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let eM=a.forwardRef((e,t)=>a.createElement(Y.A,eA({},e,{ref:t,icon:eS.A})));var eN=r(6601);function eO(){return(eO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let eI=a.forwardRef((e,t)=>a.createElement(Y.A,eO({},e,{ref:t,icon:eN.A})));var eP=r(9882),eR=r(7211),ez=e=>{let t,{prefixCls:r,switcherIcon:o,treeNodeProps:i,showLine:l,switcherLoadingIcon:s}=e,{isLeaf:c,expanded:u,loading:d}=i;if(d)return a.isValidElement(s)?s:a.createElement(ek.A,{className:`${r}-switcher-loading-icon`});if((0,eP.Qd)(l)&&(t=l.showLeafIcon),c){if(!l)return null;if("boolean"!=typeof t&&t){let e=(0,eP.Tn)(t)?t(i):t,o=`${r}-switcher-line-custom-icon`;return a.isValidElement(e)?(0,eR.Ob)(e,{className:(0,n.$)(e.props?.className,o)}):e}return t?a.createElement(Z,{className:`${r}-switcher-line-icon`}):a.createElement("span",{className:`${r}-switcher-leaf-line`})}let f=`${r}-switcher-icon`,p=(0,eP.Tn)(o)?o(i):o;return a.isValidElement(p)?(0,eR.Ob)(p,{className:(0,n.$)(p.props?.className,l?`${r}-switcher-line-icon`:f)}):void 0!==p?p:l?u?a.createElement(eM,{className:`${r}-switcher-line-icon`}):a.createElement(eI,{className:`${r}-switcher-line-icon`}):a.createElement(eC,{className:f})};let eT=a.forwardRef((e,t)=>{let{getPrefixCls:r,direction:o,className:i,style:l,classNames:s,styles:c}=(0,ea.TP)("tree"),{virtual:u}=a.useContext(ea.QO),{prefixCls:d,className:f,showIcon:p=!1,showLine:h,switcherIcon:m,switcherLoadingIcon:g,blockNode:b=!1,children:v,checkable:y=!1,selectable:$=!0,draggable:x,disabled:w,motion:E,style:C,rootClassName:k,rootStyle:S,classNames:A,styles:M,icon:N}=e,O=a.useContext(ed.A),I=w??O,P=r("tree",d),R=r(),z=E??{...(0,eu.A)(R),motionAppear:!1},T={...e,showIcon:p,blockNode:b,checkable:y,selectable:$,disabled:I,motion:z},B=(0,ec.XT)(S),[D,F]=(0,ec.AV)([s,A],[c,B,M],{props:T}),L={...T,showLine:!!h,icon:N,dropIndicatorRender:ex},[H,j]=e$(P),[,_]=(0,ef.Ay)(),W=_.paddingXS/2+(_.Tree?.titleHeight||_.controlHeightSM),q=a.useMemo(()=>{if(!x)return!1;let e={};switch(typeof x){case"function":e.nodeDraggable=x;break;case"object":e={...x}}return!1!==e.icon&&(e.icon=e.icon||a.createElement(es,null)),e},[x]);return a.createElement(X,{itemHeight:W,ref:t,virtual:u,...L,prefixCls:P,className:(0,n.$)({[`${P}-icon-hide`]:!p,[`${P}-block-node`]:b,[`${P}-unselectable`]:!$,[`${P}-rtl`]:"rtl"===o,[`${P}-disabled`]:I},i,f,H,j),style:{...l,...C},rootClassName:(0,n.$)(D.root,k),rootStyle:F.root,classNames:D,styles:F,direction:o,checkable:y?a.createElement("span",{className:`${P}-checkbox-inner`}):y,selectable:$,switcherIcon:e=>a.createElement(ez,{prefixCls:P,switcherIcon:m,switcherLoadingIcon:g,treeNodeProps:e,showLine:h}),draggable:q},v)});function eB(e,t,r){let{key:n,children:o}=r;e.forEach(function(e){let a=e[n],i=e[o];!1!==t(a,e)&&eB(i||[],t,r)})}function eD(e){let{isLeaf:t,expanded:r}=e;return t?a.createElement(Z,null):r?a.createElement(et,null):a.createElement(eo,null)}let eF=a.forwardRef((e,t)=>{let{defaultExpandAll:r,defaultExpandParent:o=!0,defaultExpandedKeys:i,...l}=e,s=a.useRef(null),c=a.useRef(null),[u,d]=a.useState(l.selectedKeys||l.defaultSelectedKeys||[]),[f,m]=a.useState(()=>(()=>{let{keyEntities:e}=g(function({treeData:e,children:t}){return e||h(t)}(l),{fieldNames:l.fieldNames}),t=l.expandedKeys||i||[];return r?Object.keys(e):o?_(t,e):t})());a.useEffect(()=>{"selectedKeys"in l&&d(l.selectedKeys)},[l.selectedKeys]),a.useEffect(()=>{"expandedKeys"in l&&m(l.expandedKeys)},[l.expandedKeys]);let{getPrefixCls:b,direction:v}=a.useContext(ea.QO),{prefixCls:y,className:$,showIcon:x=!0,expandAction:w="click",...E}=l,C=b("tree",y),k=(0,n.$)(`${C}-directory`,{[`${C}-directory-rtl`]:"rtl"===v},$);return a.createElement(eT,{icon:eD,ref:t,blockNode:!0,...E,showIcon:x,expandAction:w,prefixCls:C,className:k,defaultExpandParent:o,expandedKeys:f,selectedKeys:u,onSelect:(e,t)=>{var r,n,o;let a,i,u,{multiple:m,fieldNames:g}=l,{node:b,nativeEvent:v}=t,{key:y=""}=b,$=function({treeData:e,children:t}){return e||h(t)}(l),x={...t,selected:!0},w=v?.ctrlKey||v?.metaKey,E=v?.shiftKey;m&&w?(u=e,s.current=y,c.current=u):m&&E?u=Array.from(new Set([].concat((0,G.A)(c.current||[]),(0,G.A)(function({treeData:e,expandedKeys:t,startKey:r,endKey:n,fieldNames:o}){let a=[],i=0;return r&&r===n?[r]:r&&n?(eB(e,e=>{if(2===i)return!1;if(e===r||e===n){if(a.push(e),0===i)i=1;else if(1===i)return i=2,!1}else 1===i&&a.push(e);return t.includes(e)},p(o)),a):[]}({treeData:$,expandedKeys:f,startKey:y,endKey:s.current,fieldNames:g}))))):(u=[y],s.current=y,c.current=u),r=$,n=u,o=g,a=(0,G.A)(n),i=[],eB(r,(e,t)=>{let r=a.indexOf(e);return -1!==r&&(i.push(t),a.splice(r,1)),!!a.length},p(o)),x.selectedNodes=i,l.onSelect?.(u,x),"selectedKeys"in l||d(u)},onExpand:(e,t)=>("expandedKeys"in l||m(e),l.onExpand?.(e,t))})});eT.DirectoryTree=eF,eT.TreeNode=E;var eL=eT},1641(e){e.exports=o,e.exports.isMobile=o,e.exports.default=o;let t=/(android|bb\d+|meego).+mobile|armv7l|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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,n=/android|ipad|playbook|silk/i;function o(e){e||(e={});let o=e.ua;if(!o&&"u">typeof navigator&&(o=navigator.userAgent),o&&o.headers&&"string"==typeof o.headers["user-agent"]&&(o=o.headers["user-agent"]),"string"!=typeof o)return!1;let a=t.test(o)&&!r.test(o)||!!e.tablet&&n.test(o);return!a&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==o.indexOf("Macintosh")&&-1!==o.indexOf("Safari")&&(a=!0),a}},6956(e,t){var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition");Symbol.for("react.client.reference");t.vM=c,t.Rf=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case i:case a:case u:case d:case h:return e;default:switch(e=e&&e.$$typeof){case s:case c:case p:case f:case l:return e;default:return t}}case n:return t}}}(e)===f}},301(e,t,r){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{A:()=>n})},7401(e,t,r){function n(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}r.d(t,{A:()=>n})},8209(e,t,r){var n=r(8382);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,n.A)(o.key),o)}}function a(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r.d(t,{A:()=>a})},663(e,t,r){var n=r(8382);function o(e,t,r){return(t=(0,n.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{A:()=>o})},9932(e,t,r){function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}r.d(t,{A:()=>n})},5142(e,t,r){r.d(t,{A:()=>a});var n=r(301),o=r(9876);function a(e){return function(e){if(Array.isArray(e))return(0,n.A)(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.A)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},8382(e,t,r){r.d(t,{A:()=>o});var n=r(7408);function o(e){var t=function(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=(0,n.A)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,n.A)(t)?t:t+""}},7408(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{A:()=>n})},9876(e,t,r){var n=r(301);function o(e,t){if(e){if("string"==typeof e)return(0,n.A)(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.A)(e,t):void 0}}r.d(t,{A:()=>o})},5999(e,t,r){let n=Math.random.bind(Math),o=e=>e,{clearTimeout:a,setTimeout:i}=globalThis;function l(e,t){let r,l,{post:s,on:c,off:u=()=>{},eventNames:d=[],serialize:f=o,deserialize:p=o,resolver:h,bind:m="rpc",timeout:g=6e4,proxify:b=!0}=t,v=!1,y=new Map;async function $(e,o,c,u){let d,p,h;if(v)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let m={m:e,a:o,t:"q"};u&&(m.o=!0);let b=async e=>s(f(e));if(c)return void await b(m);if(r)try{await r}finally{r=void 0}let{promise:$,resolve:x,reject:w}={promise:new Promise((e,t)=>{p=e,h=t}),resolve:p,reject:h},E=function(e=21){let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*n()|0];return t}();async function C(r=m){return g>=0&&"object"==typeof(d=i(()=>{try{if(t.onTimeoutError?.call(l,e,o)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){w(e)}y.delete(E)},g))&&(d=d.unref?.()),y.set(E,{resolve:x,reject:w,timeoutId:d,method:e}),await b(r),$}m.i=E;try{t.onRequest?await t.onRequest.call(l,m,C,x):await C()}catch(e){if(t.onGeneralError?.call(l,e)!==!0)throw e;return}finally{a(d),y.delete(E)}return $}let x={$call:(e,...t)=>$(e,t,!1),$callOptional:(e,...t)=>$(e,t,!1,!0),$callEvent:(e,...t)=>$(e,t,!0),$callRaw:e=>$(e.method,e.args,e.event,e.optional),$rejectPendingCalls:function(e){let t=Array.from(y.values()).map(({method:t,reject:r})=>e?e({method:t,reject:r}):r(Error(`[birpc]: rejected pending call "${t}".`)));return y.clear(),t},get $closed(){return v},get $meta(){return t.meta},$close:function(e){v=!0,y.forEach(({reject:t,method:r})=>{let n=Error(`[birpc] rpc is closed, cannot call "${r}"`);if(e)return e.cause??=n,t(e);t(n)}),y.clear(),u(w)},$functions:e};async function w(r,...n){let o;try{o=p(r)}catch(e){if(t.onGeneralError?.call(l,e)!==!0)throw e;return}if("q"===o.t){let r,a,{m:i,a:c,o:u}=o,d=await (h?h.call(l,i,e[i]):e[i]);if(u&&(d||=()=>void 0),d)try{r=await d.apply("rpc"===m?l:e,c)}catch(e){a=e}else a=Error(`[birpc] function "${i}" not found`);if(o.i){if(a&&t.onFunctionError&&!0===t.onFunctionError.call(l,a,i,c))return;if(!a)try{await s(f({t:"s",i:o.i,r:r}),...n);return}catch(e){if(a=e,t.onGeneralError?.call(l,e,i,c)!==!0)throw e}try{await s(f({t:"s",i:o.i,e:a}),...n)}catch(e){if(t.onGeneralError?.call(l,e,i,c)!==!0)throw e}}}else{let{i:e,r:t,e:r}=o,n=y.get(e);n&&(a(n.timeoutId),r?n.reject(r):n.resolve(t)),y.delete(e)}}return l=b?new Proxy({},{get(t,r){if(Object.prototype.hasOwnProperty.call(x,r))return x[r];if("then"===r&&!d.includes("then")&&!("then"in e))return;let n=(...e)=>$(r,e,!0);if(d.includes(r))return n.asEvent=n,n;let o=(...e)=>$(r,e,!1);return o.asEvent=n,o}}):x,r=c(w),l}r.d(t,{L:()=>l})},851(e,t,r){function n(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{$:()=>n})},1042(e,t,r){r.d(t,{A:()=>c});var n=r(1102);let o=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),a=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,n.createContext)({}),s=(0,n.forwardRef)(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:a,className:s="",children:c,iconNode:u,...d},f)=>{let{size:p=24,strokeWidth:h=2,absoluteStrokeWidth:m=!1,color:g="currentColor",className:b=""}=(0,n.useContext)(l)??{},v=a??m?24*Number(r??h)/Number(t??p):r??h;return(0,n.createElement)("svg",{ref:f,...i,width:t??p??i.width,height:t??p??i.height,stroke:e??g,strokeWidth:v,className:o("lucide",b,s),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(d)&&{"aria-hidden":"true"},...d},[...u.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(c)?c:[c]])}),c=(e,t)=>{let r=(0,n.forwardRef)(({className:r,...i},l)=>(0,n.createElement)(s,{ref:l,iconNode:t,className:o(`lucide-${a(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...i}));return r.displayName=a(e),r}},236(e,t,r){let n=(0,r(1042).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);r.d(t,{},{A:n})},6794(e,t,r){let n=(0,r(1042).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);r.d(t,{},{A:n})},3005(e,t,r){let n=(0,r(1042).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);r.d(t,{},{A:n})},1176(e,t,r){let n=(0,r(1042).A)("circle-dashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);r.d(t,{},{A:n})},3833(e,t,r){let n=(0,r(1042).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);r.d(t,{},{A:n})},4389(e,t,r){let n=(0,r(1042).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);r.d(t,{},{A:n})},5242(e,t,r){let n=(0,r(1042).A)("file-code",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]);r.d(t,{},{A:n})},3734(e,t,r){let n=(0,r(1042).A)("fold-vertical",[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3-3-3 3",key:"e37ymu"}],["path",{d:"m15 5-3 3-3-3",key:"19d6lf"}]]);r.d(t,{},{A:n})},2659(e,t,r){let n=(0,r(1042).A)("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);r.d(t,{},{A:n})},8916(e,t,r){let n=(0,r(1042).A)("maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);r.d(t,{},{A:n})},1945(e,t,r){let n=(0,r(1042).A)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);r.d(t,{},{A:n})},6922(e,t,r){let n=(0,r(1042).A)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);r.d(t,{},{A:n})},9331(e,t,r){let n=(0,r(1042).A)("ratio",[["rect",{width:"12",height:"20",x:"6",y:"2",rx:"2",key:"1oxtiu"}],["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]]);r.d(t,{},{A:n})},8082(e,t,r){let n=(0,r(1042).A)("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);r.d(t,{},{A:n})},773(e,t,r){let n=(0,r(1042).A)("scaling",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M14 15H9v-5",key:"pi4jk9"}],["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M21 3 9 15",key:"15kdhq"}]]);r.d(t,{},{A:n})},6590(e,t,r){let n=(0,r(1042).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);r.d(t,{},{A:n})},3035(e,t,r){let n=(0,r(1042).A)("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);r.d(t,{},{A:n})},2795(e,t,r){let n=(0,r(1042).A)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);r.d(t,{},{A:n})},4663(e,t,r){let n=(0,r(1042).A)("square-arrow-out-up-right",[["path",{d:"M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6",key:"y09zxi"}],["path",{d:"m21 3-9 9",key:"mpx6sq"}],["path",{d:"M15 3h6v6",key:"1q9fwt"}]]);r.d(t,{},{A:n})},6710(e,t,r){let n=(0,r(1042).A)("sun-moon",[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715",key:"xlf6rm"}],["path",{d:"M16 12a4 4 0 0 0-4-4",key:"6vsxu"}],["path",{d:"m19 5-1.256 1.256",key:"1yg6a6"}],["path",{d:"M20 12h2",key:"1q8mjw"}]]);r.d(t,{},{A:n})},4704(e,t,r){let n=(0,r(1042).A)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);r.d(t,{},{A:n})},162(e,t,r){let n=(0,r(1042).A)("tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);r.d(t,{},{A:n})},6433(e,t,r){let n=(0,r(1042).A)("unfold-vertical",[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m15 5-3-3-3 3",key:"itvq4r"}]]);r.d(t,{},{A:n})}}]);
|