diff --git a/assets/js/src/core/modules/element/dynamic-types/defintinitions/field-filters/components/dynamic-type-field-filter-datetime-component.tsx b/assets/js/src/core/modules/element/dynamic-types/defintinitions/field-filters/components/dynamic-type-field-filter-datetime-component.tsx
index 48143f92e..02d85b784 100644
--- a/assets/js/src/core/modules/element/dynamic-types/defintinitions/field-filters/components/dynamic-type-field-filter-datetime-component.tsx
+++ b/assets/js/src/core/modules/element/dynamic-types/defintinitions/field-filters/components/dynamic-type-field-filter-datetime-component.tsx
@@ -118,15 +118,18 @@ export const DynamicTypeFieldFilterDatetimeComponent = ({ column }: DynamicTypeF
format={ DATE_FORMAT }
onChange={ handleChangeDateOnValue }
outputType='timestamp'
+ showTime
value={ dateOnValue }
/>
)}
{settingValue === DatePickerSettingValue.BETWEEN && (
)}
diff --git a/public/build/064a9a2c-9983-44d5-80ae-f7a4ecf48c11/entrypoints.json b/public/build/064a9a2c-9983-44d5-80ae-f7a4ecf48c11/entrypoints.json
new file mode 100644
index 000000000..cbbb6815f
--- /dev/null
+++ b/public/build/064a9a2c-9983-44d5-80ae-f7a4ecf48c11/entrypoints.json
@@ -0,0 +1,9 @@
+{
+ "entrypoints": {
+ "main": {
+ "js": [
+ "/bundles/pimcorestudioui/build/064a9a2c-9983-44d5-80ae-f7a4ecf48c11/main.js"
+ ]
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/build/064a9a2c-9983-44d5-80ae-f7a4ecf48c11/main.js b/public/build/064a9a2c-9983-44d5-80ae-f7a4ecf48c11/main.js
new file mode 100644
index 000000000..aac79c417
--- /dev/null
+++ b/public/build/064a9a2c-9983-44d5-80ae-f7a4ecf48c11/main.js
@@ -0,0 +1,2 @@
+/*! For license information please see main.js.LICENSE.txt */
+var Pimcore;(()=>{var r={189:(r,e,o)=>{r.exports=o(717)(82173)},717:r=>{"use strict";r.exports=studio_core}},e={};var o=function o(t){var s=e[t];if(void 0!==s)return s.exports;var i=e[t]={exports:{}};return r[t](i,i.exports,o),i.exports}(189);Pimcore=o})();
\ No newline at end of file
diff --git a/public/build/064a9a2c-9983-44d5-80ae-f7a4ecf48c11/main.js.LICENSE.txt b/public/build/064a9a2c-9983-44d5-80ae-f7a4ecf48c11/main.js.LICENSE.txt
new file mode 100644
index 000000000..6c9b00cfe
--- /dev/null
+++ b/public/build/064a9a2c-9983-44d5-80ae-f7a4ecf48c11/main.js.LICENSE.txt
@@ -0,0 +1,16 @@
+/*!
+ *
+ * /**
+ * * Pimcore
+ * *
+ * * This source file is available under two different licenses:
+ * * - Pimcore Open Core License (POCL)
+ * * - Pimcore Commercial License (PCL)
+ * * Full copyright and license information is available in
+ * * LICENSE.md which is distributed with this source code.
+ * *
+ * * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
+ * * @license https://github.com/pimcore/studio-ui-bundle/blob/1.x/LICENSE.md POCL and PCL
+ * * /
+ *
+ */
diff --git a/public/build/064a9a2c-9983-44d5-80ae-f7a4ecf48c11/manifest.json b/public/build/064a9a2c-9983-44d5-80ae-f7a4ecf48c11/manifest.json
new file mode 100644
index 000000000..5aa0d37b7
--- /dev/null
+++ b/public/build/064a9a2c-9983-44d5-80ae-f7a4ecf48c11/manifest.json
@@ -0,0 +1,3 @@
+{
+ "bundles/pimcorestudioui/build/064a9a2c-9983-44d5-80ae-f7a4ecf48c11/main.js": "/bundles/pimcorestudioui/build/064a9a2c-9983-44d5-80ae-f7a4ecf48c11/main.js"
+}
\ No newline at end of file
diff --git a/public/build/5df36112-3a97-4cd1-84ec-bc586af4f8bc/entrypoints.json b/public/build/5df36112-3a97-4cd1-84ec-bc586af4f8bc/entrypoints.json
new file mode 100644
index 000000000..b964d3506
--- /dev/null
+++ b/public/build/5df36112-3a97-4cd1-84ec-bc586af4f8bc/entrypoints.json
@@ -0,0 +1,9 @@
+{
+ "entrypoints": {
+ "vendor": {
+ "js": [
+ "/bundles/pimcorestudioui/build/5df36112-3a97-4cd1-84ec-bc586af4f8bc/vendor.js"
+ ]
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/build/5df36112-3a97-4cd1-84ec-bc586af4f8bc/manifest.json b/public/build/5df36112-3a97-4cd1-84ec-bc586af4f8bc/manifest.json
new file mode 100644
index 000000000..77fea11c5
--- /dev/null
+++ b/public/build/5df36112-3a97-4cd1-84ec-bc586af4f8bc/manifest.json
@@ -0,0 +1,3 @@
+{
+ "bundles/pimcorestudioui/build/5df36112-3a97-4cd1-84ec-bc586af4f8bc/vendor.js": "/bundles/pimcorestudioui/build/5df36112-3a97-4cd1-84ec-bc586af4f8bc/vendor.js"
+}
\ No newline at end of file
diff --git a/public/build/5df36112-3a97-4cd1-84ec-bc586af4f8bc/vendor.js b/public/build/5df36112-3a97-4cd1-84ec-bc586af4f8bc/vendor.js
new file mode 100644
index 000000000..a73b89152
--- /dev/null
+++ b/public/build/5df36112-3a97-4cd1-84ec-bc586af4f8bc/vendor.js
@@ -0,0 +1,2 @@
+/*! For license information please see vendor.js.LICENSE.txt */
+var studio_vendor;(()=>{var e,t,n={5748:(e,t,n)=>{"use strict";n.d(t,{z1:()=>O,cM:()=>b,bK:()=>A,UA:()=>P,uy:()=>y});var r=n(2456),o=n(6250),i=2,a=.16,l=.05,c=.05,s=.15,u=5,d=4,f=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function p(e){var t=e.r,n=e.g,o=e.b,i=(0,r.wE)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function m(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.Ob)(t,n,o,!1))}function g(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-i*t:Math.round(e.h)+i*t:n?Math.round(e.h)+i*t:Math.round(e.h)-i*t)<0?r+=360:r>=360&&(r-=360),r}function h(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-a*t:t===d?e.s+a:e.s+l*t)>1&&(r=1),n&&t===u&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function v(e,t,n){var r;return(r=n?e.v+c*t:e.v-s*t)>1&&(r=1),Number(r.toFixed(2))}function b(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.RO)(e),i=u;i>0;i-=1){var a=p(r),l=m((0,o.RO)({h:g(a,i,!0),s:h(a,i,!0),v:v(a,i,!0)}));n.push(l)}n.push(m(r));for(var c=1;c<=d;c+=1){var s=p(r),b=m((0,o.RO)({h:g(s,c),s:h(s,c),v:v(s,c)}));n.push(b)}return"dark"===t.theme?f.map((function(e){var r,i,a,l=e.index,c=e.opacity;return m((r=(0,o.RO)(t.backgroundColor||"#141414"),i=(0,o.RO)(n[l]),a=100*c/100,{r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b}))})):n}var y={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"},C=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];C.primary=C[5];var x=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];x.primary=x[5];var w=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];w.primary=w[5];var A=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];A.primary=A[5];var S=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];S.primary=S[5];var $=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];$.primary=$[5];var k=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];k.primary=k[5];var E=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];E.primary=E[5];var O=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];O.primary=O[5];var I=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];I.primary=I[5];var M=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];M.primary=M[5];var N=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];N.primary=N[5];var z=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];z.primary=z[5];var P={red:C,volcano:x,orange:w,gold:A,yellow:S,lime:$,green:k,cyan:E,blue:O,geekblue:I,purple:M,magenta:N,grey:z},j=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];j.primary=j[5];var R=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];R.primary=R[5];var T=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];T.primary=T[5];var D=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];D.primary=D[5];var B=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];B.primary=B[5];var L=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];L.primary=L[5];var H=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];H.primary=H[5];var F=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];F.primary=F[5];var _=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];_.primary=_[5];var W=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];W.primary=W[5];var V=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];V.primary=V[5];var q=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];q.primary=q[5];var K=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];K.primary=K[5]},4277:(e,t,n)=>{"use strict";n.d(t,{L_:()=>j,oX:()=>$});var r=n(2284),o=n(5544),i=n(4467),a=n(9379),l=n(6540),c=n(2187),s=n(3029),u=n(2901),d=n(9417),f=n(5501),p=n(9426);const m=(0,u.A)((function e(){(0,s.A)(this,e)}));var g="CALC_UNIT",h=new RegExp(g,"g");function v(e){return"number"==typeof e?"".concat(e).concat(g):e}var b=function(e){(0,f.A)(n,e);var t=(0,p.A)(n);function n(e,o){var a;(0,s.A)(this,n),a=t.call(this),(0,i.A)((0,d.A)(a),"result",""),(0,i.A)((0,d.A)(a),"unitlessCssVar",void 0),(0,i.A)((0,d.A)(a),"lowPriority",void 0);var l=(0,r.A)(e);return a.unitlessCssVar=o,e instanceof n?a.result="(".concat(e.result,")"):"number"===l?a.result=v(e):"string"===l&&(a.result=e),a}return(0,u.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(v(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(v(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?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 n?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,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(h,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(m);const y=function(e){(0,f.A)(n,e);var t=(0,p.A)(n);function n(e){var r;return(0,s.A)(this,n),r=t.call(this),(0,i.A)((0,d.A)(r),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return(0,u.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(m);const C=function(e,t){var n="css"===e?b:y;return function(e){return new n(e,t)}};const x=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("-"))};n(1470);const w=function(e,t,n,r){var i=(0,a.A)({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(e){var t,n=(0,o.A)(e,2),r=n[0],a=n[1];(null!=i&&i[r]||null!=i&&i[a])&&(null!==(t=i[a])&&void 0!==t||(i[a]=null==i?void 0:i[r]))}));var l=(0,a.A)((0,a.A)({},n),i);return Object.keys(l).forEach((function(e){l[e]===t[e]&&delete l[e]})),l};var A="undefined"!=typeof CSSINJS_STATISTIC,S=!0;function $(){for(var e=arguments.length,t=new Array(e),n=0;n1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}());const z=function(e,t){return l.useMemo((function(){var n=N.get(t);if(n)return n;var r=e();return N.set(t,r),r}),t)};const P=function(){return{}};const j=function(e){var t=e.useCSP,n=void 0===t?P:t,s=e.useToken,u=e.usePrefix,d=e.getResetStyles,f=e.getCommonStyle,p=e.getCompUnitless;function m(t,i,l){var p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},m=Array.isArray(t)?t:[t,t],g=(0,o.A)(m,1)[0],h=m.join("-"),v=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=s(),m=o.theme,b=o.realToken,y=o.hashId,A=o.token,S=o.cssVar,k=u(),E=k.rootPrefixCls,N=k.iconPrefixCls,P=n(),j=S?"css":"js",R=z((function(){var e=new Set;return S&&Object.keys(p.unitless||{}).forEach((function(t){e.add((0,c.Ki)(t,S.prefix)),e.add((0,c.Ki)(t,x(g,S.prefix)))})),C(j,e)}),[j,g,null==S?void 0:S.prefix]),T=M(j),D=T.max,B=T.min,L={theme:m,token:A,hashId:y,nonce:function(){return P.nonce},clientOnly:p.clientOnly,layer:v,order:p.order||-999};return(0,c.IV)((0,a.A)((0,a.A)({},L),{},{clientOnly:!1,path:["Shared",E]}),(function(){return"function"==typeof d?d(A):[]})),[(0,c.IV)((0,a.A)((0,a.A)({},L),{},{path:[h,e,N]}),(function(){if(!1===p.injectStyle)return[];var n=O(A),o=n.token,a=n.flush,s=I(g,b,l),u=".".concat(e),d=w(g,b,s,{deprecatedTokens:p.deprecatedTokens});S&&s&&"object"===(0,r.A)(s)&&Object.keys(s).forEach((function(e){s[e]="var(".concat((0,c.Ki)(e,x(g,S.prefix)),")")}));var m=$(o,{componentCls:u,prefixCls:e,iconCls:".".concat(N),antCls:".".concat(E),calc:R,max:D,min:B},S?s:d),h=i(m,{hashId:y,prefixCls:e,rootPrefixCls:E,iconPrefixCls:N});a(g,d);var v="function"==typeof f?f(m,e,t,p.resetFont):null;return[!1===p.resetStyle?null:v,h]})),y]}}return{genStyleHooks:function(e,t,n,r){var u=Array.isArray(e)?e[0]:e;function d(e){return"".concat(String(u)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var f=(null==r?void 0:r.unitless)||{},g="function"==typeof p?p(e):{},h=(0,a.A)((0,a.A)({},g),{},(0,i.A)({},d("zIndexPopup"),!0));Object.keys(f).forEach((function(e){h[d(e)]=f[e]}));var v=(0,a.A)((0,a.A)({},r),{},{unitless:h,prefixToken:d}),b=m(e,t,n,v),y=function(e,t,n){var r=n.unitless,o=n.injectStyle,i=void 0===o||o,a=n.prefixToken,u=n.ignore,d=function(o){var i=o.rootCls,l=o.cssVar,d=void 0===l?{}:l,f=s().realToken;return(0,c.RC)({path:[e],prefix:d.prefix,key:d.key,unitless:r,ignore:u,token:f,scope:i},(function(){var r=I(e,f,t),o=w(e,f,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((function(e){o[a(e)]=o[e],delete o[e]})),o})),null},f=function(t){var n=s().cssVar;return[function(r){return i&&n?l.createElement(l.Fragment,null,l.createElement(d,{rootCls:t,cssVar:n,component:e}),r):r},null==n?void 0:n.key]};return f}(u,n,v);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=b(e,t),r=(0,o.A)(n,2)[1],i=y(t),a=(0,o.A)(i,2);return[a[0],r,a[1]]}},genSubStyleComponent:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=m(e,t,n,(0,a.A)({resetStyle:!1,order:-998},r));return function(e){var t=e.prefixCls,n=e.rootCls;return o(t,void 0===n?t:n),null}},genComponentStyleHook:m}}},2187:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>vt,N7:()=>$,VC:()=>A,an:()=>R,Jb:()=>ht,lO:()=>oe,Ki:()=>V,zA:()=>_,RC:()=>ft,hV:()=>ae,IV:()=>ut});var r=n(5544),o=n(4467),i=n(436),a=n(9379);const l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var c=n(5089),s=n(6540),u=n.t(s,2),d=n(3986),f=n(8104),p=n(3210),m=n(3029),g=n(2901),h="%";function v(e){return e.join(h)}const b=function(){function e(t){(0,m.A)(this,e),(0,o.A)(this,"instanceId",void 0),(0,o.A)(this,"cache",new Map),this.instanceId=t}return(0,g.A)(e,[{key:"get",value:function(e){return this.opGet(v(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(v(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();var y=["children"],C="data-token-hash",x="data-css-hash",w="__cssinjs_instance__";function A(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(x,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[w]=t[w]||e,t[w]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(x,"]"))).forEach((function(t){var n,o=t.getAttribute(x);r[o]?t[w]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new b(e)}var S=s.createContext({hashPriority:"low",cache:A(),defaultCache:!0}),$=function(e){var t=e.children,n=(0,d.A)(e,y),r=s.useContext(S),o=(0,f.A)((function(){var e=(0,a.A)({},r);Object.keys(n).forEach((function(t){var r=n[t];void 0!==n[t]&&(e[t]=r)}));var t=n.cache;return e.cache=e.cache||A(),e.defaultCache=!t&&r.defaultCache,e}),[r,n],(function(e,t){return!(0,p.A)(e[0],t[0],!0)||!(0,p.A)(e[1],t[1],!0)}));return s.createElement(S.Provider,{value:o},t)};const k=S;var E=n(2284),O=n(998),I="CALC_UNIT";new RegExp(I,"g");var M=function(){function e(){(0,m.A)(this,e),(0,o.A)(this,"cache",void 0),(0,o.A)(this,"keys",void 0),(0,o.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,g.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var o=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce((function(e,t){var n=(0,r.A)(e,2)[1];return o.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),z+=1}return(0,g.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),j=new M;function R(e){var t=Array.isArray(e)?e:[e];return j.has(t)||j.set(t,new P(t)),j.get(t)}var T=new WeakMap,D={};var B=new WeakMap;function L(e){var t=B.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof P?t+=r.id:r&&"object"===(0,E.A)(r)?t+=L(r):t+=r})),t=l(t),B.set(e,t)),t}function H(e,t){return l("".concat(t,"_").concat(L(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var F=(0,O.A)();function _(e){return"number"==typeof e?"".concat(e,"px"):e}function W(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var l=(0,a.A)((0,a.A)({},i),{},(r={},(0,o.A)(r,C,t),(0,o.A)(r,x,n),r)),c=Object.keys(l).map((function(e){var t=l[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var V=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(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()},q=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,r.A)(e,2),n=t[0],o=t[1];return"".concat(n,":").concat(o,";")})).join(""),"}"):""},K=function(e,t,n){var o={},i={};return Object.entries(e).forEach((function(e){var t,a,l=(0,r.A)(e,2),c=l[0],s=l[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[c])i[c]=s;else if(!("string"!=typeof s&&"number"!=typeof s||null!=n&&null!==(a=n.ignore)&&void 0!==a&&a[c])){var u,d=V(c,null==n?void 0:n.prefix);o[d]="number"!=typeof s||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[c]?String(s):"".concat(s,"px"),i[c]="var(".concat(d,")")}})),[i,q(o,t,{scope:null==n?void 0:n.scope})]},X=n(981),G=(0,a.A)({},u).useInsertionEffect;const Y=G?function(e,t,n){return G((function(){return e(),t()}),n)}:function(e,t,n){s.useMemo(e,n),(0,X.A)((function(){return t(!0)}),n)};const U=void 0!==(0,a.A)({},u).useInsertionEffect?function(e){var t=[],n=!1;return s.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};const Q=function(){return!1};function Z(e,t,n,o,a){var l=s.useContext(k).cache,c=v([e].concat((0,i.A)(t))),u=U([c]),d=(Q(),function(e){l.opUpdate(c,(function(t){var o=t||[void 0,void 0],i=(0,r.A)(o,2),a=i[0];var l=[void 0===a?0:a,i[1]||n()];return e?e(l):l}))});s.useMemo((function(){d()}),[c]);var f=l.opGet(c)[1];return Y((function(){null==a||a(f)}),(function(e){return d((function(t){var n=(0,r.A)(t,2),o=n[0],i=n[1];return e&&0===o&&(null==a||a(f)),[o+1,i]})),function(){l.opUpdate(c,(function(t){var n=t||[],i=(0,r.A)(n,2),a=i[0],s=void 0===a?0:a,d=i[1];return 0===s-1?(u((function(){!e&&l.opGet(c)||null==o||o(d,!1)})),null):[s-1,d]}))}}),[c]),f}var J={},ee="css",te=new Map;var ne=0;function re(e,t){te.set(e,(te.get(e)||0)-1);var n=Array.from(te.keys()),r=n.filter((function(e){return(te.get(e)||0)<=0}));n.length-r.length>ne&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(C,'="').concat(e,'"]')).forEach((function(e){var n;e[w]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),te.delete(e)}))}var oe=function(e,t,n,r){var o=n.getDerivativeToken(e),i=(0,a.A)((0,a.A)({},o),t);return r&&(i=r(i)),i},ie="token";function ae(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,s.useContext)(k),u=o.cache.instanceId,d=o.container,f=n.salt,p=void 0===f?"":f,m=n.override,g=void 0===m?J:m,h=n.formatToken,v=n.getComputedToken,b=n.cssVar,y=function(e,t){for(var n=T,r=0;r0?Ce(Ne,--Ie):0,Ee--,10===Me&&(Ee=1,ke--),Me}function je(){return Me=Ie2||Be(Me)>3?"":" "}function We(e,t){for(;--t&&je()&&!(Me<48||Me>102||Me>57&&Me<65||Me>70&&Me<97););return De(e,Te()+(t<6&&32==Re()&&32==je()))}function Ve(e){for(;je();)switch(Me){case e:return Ie;case 34:case 39:34!==e&&39!==e&&Ve(Me);break;case 40:41===e&&Ve(e);break;case 92:je()}return Ie}function qe(e,t){for(;je()&&e+Me!==57&&(e+Me!==84||47!==Re()););return"/*"+De(t,Ie-1)+"*"+he(47===e?e:je())}function Ke(e){for(;!Be(Re());)je();return De(e,Ie)}function Xe(e){return He(Ge("",null,null,null,[""],e=Le(e),0,[0],e))}function Ge(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,m=0,g=1,h=1,v=1,b=0,y="",C=o,x=i,w=r,A=y;h;)switch(m=b,b=je()){case 40:if(108!=m&&58==Ce(A,d-1)){-1!=ye(A+=be(Fe(b),"&","&\f"),"&\f",ge(s?l[s-1]:0))&&(v=-1);break}case 34:case 39:case 91:A+=Fe(b);break;case 9:case 10:case 13:case 32:A+=_e(m);break;case 92:A+=We(Te()-1,7);continue;case 47:switch(Re()){case 42:case 47:Ae(Ue(qe(je(),Te()),t,n,c),c),5!=Be(m||1)&&5!=Be(Re()||1)||!we(A)||" "===xe(A,-1,void 0)||(A+=" ");break;default:A+="/"}break;case 123*g:l[s++]=we(A)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:-1==v&&(A=be(A,/\f/g,"")),p>0&&(we(A)-d||0===g&&47===m)&&Ae(p>32?Qe(A+";",r,n,d-1,c):Qe(be(A," ","")+";",r,n,d-2,c),c);break;case 59:A+=";";default:if(Ae(w=Ye(A,t,n,s,u,o,l,y,C=[],x=[],d,i),i),123===b)if(0===u)Ge(A,t,w,w,C,i,d,l,x);else switch(99===f&&110===Ce(A,3)?100:f){case 100:case 108:case 109:case 115:Ge(e,w,w,r&&Ae(Ye(e,w,w,0,0,o,l,y,o,C=[],d,x),x),o,x,d,l,r?C:x);break;default:Ge(A,w,w,w,[""],x,0,l,x)}}s=u=p=0,g=v=1,y=A="",d=a;break;case 58:d=1+we(A),p=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Pe())continue;switch(A+=he(b),b*g){case 38:v=u>0?1:(A+="\f",-1);break;case 44:l[s++]=(we(A)-1)*v,v=1;break;case 64:45===Re()&&(A+=Fe(je())),f=Re(),u=d=we(y=A+=Ke(Te())),b++;break;case 45:45===m&&2==we(A)&&(g=0)}}return i}function Ye(e,t,n,r,o,i,a,l,c,s,u,d){for(var f=o-1,p=0===o?i:[""],m=function(e){return e.length}(p),g=0,h=0,v=0;g0?p[b]+" "+y:be(y,/&\f/g,p[b])))&&(c[v++]=C);return ze(e,t,n,0===o?ue:l,c,s,u,d)}function Ue(e,t,n,r){return ze(e,t,n,se,he(Me),xe(e,2,-2),0,r)}function Qe(e,t,n,r,o){return ze(e,t,n,de,xe(e,0,r),xe(e,r+1,-1),r,o)}var Ze,Je="data-ant-cssinjs-cache-path",et="_FILE_STYLE__";var tt=!0;function nt(e){return function(){if(!Ze&&(Ze={},(0,O.A)())){var e=document.createElement("div");e.className=Je,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),n=(0,r.A)(t,2),o=n[0],i=n[1];Ze[o]=i}));var n,o=document.querySelector("style[".concat(Je,"]"));o&&(tt=!1,null===(n=o.parentNode)||void 0===n||n.removeChild(o)),document.body.removeChild(e)}}(),!!Ze[e]}var rt="_multi_value_";function ot(e){return Se(Xe(e),$e).replace(/\{%%%\:[^;];}/g,";")}function it(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,i.A)(n.slice(1))).join(" ")})).join(",")}var at=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},l=o.root,c=o.injectHash,s=o.parentSelectors,u=n.hashId,d=n.layer,f=(n.path,n.hashPriority),p=n.transformers,m=void 0===p?[]:p,g=(n.linters,""),h={};function v(t){var o=t.getName(u);if(!h[o]){var i=e(t.style,n,{root:!1,parentSelectors:s}),a=(0,r.A)(i,1)[0];h[o]="@keyframes ".concat(t.getName(u)).concat(a)}}var b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return b.forEach((function(t){var o="string"!=typeof t||l?t:{};if("string"==typeof o)g+="".concat(o,"\n");else if(o._keyframe)v(o);else{var d=m.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),o);Object.keys(d).forEach((function(t){var o=d[t];if("object"!==(0,E.A)(o)||!o||"animationName"===t&&o._keyframe||function(e){return"object"===(0,E.A)(e)&&e&&("_skip_check_"in e||rt in e)}(o)){var p;function $(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;ce[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(u)),g+="".concat(n,":").concat(r,";")}var m=null!==(p=null==o?void 0:o.value)&&void 0!==p?p:o;"object"===(0,E.A)(o)&&null!=o&&o[rt]&&Array.isArray(m)?m.forEach((function(e){$(t,e)})):$(t,m)}else{var b=!1,y=t.trim(),C=!1;(l||c)&&u?y.startsWith("@")?b=!0:y=it("&"===y?"":t,u,f):!l||u||"&"!==y&&""!==y||(y="",C=!0);var x=e(o,n,{root:C,injectHash:b,parentSelectors:[].concat((0,i.A)(s),[y])}),w=(0,r.A)(x,2),A=w[0],S=w[1];h=(0,a.A)((0,a.A)({},h),S),g+="".concat(y).concat(A)}}))}})),l?d&&(g="@layer ".concat(d.name," {").concat(g,"}"),d.dependencies&&(h["@layer ".concat(d.name)]=d.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(d.name,";")})).join("\n"))):g="{".concat(g,"}"),[g,h]};function lt(e,t){return l("".concat(e.join("%")).concat(t))}function ct(){return null}var st="style";function ut(e,t){var n=e.token,l=e.path,u=e.hashId,d=e.layer,f=e.nonce,p=e.clientOnly,m=e.order,g=void 0===m?0:m,h=s.useContext(k),v=h.autoClear,b=(h.mock,h.defaultCache),y=h.hashPriority,A=h.container,S=h.ssrInline,$=h.transformers,E=h.linters,I=h.cache,M=h.layer,N=n._tokenKey,z=[N];M&&z.push("layer"),z.push.apply(z,(0,i.A)(l));var P=F;var j=Z(st,z,(function(){var e=z.join("|");if(nt(e)){var n=function(e){var t=Ze[e],n=null;if(t&&(0,O.A)())if(tt)n=et;else{var r=document.querySelector("style[".concat(x,'="').concat(Ze[e],'"]'));r?n=r.innerHTML:delete Ze[e]}return[n,t]}(e),o=(0,r.A)(n,2),i=o[0],a=o[1];if(i)return[i,N,a,{},p,g]}var c=t(),s=at(c,{hashId:u,hashPriority:y,layer:M?d:void 0,path:l.join("-"),transformers:$,linters:E}),f=(0,r.A)(s,2),m=f[0],h=f[1],v=ot(m),b=lt(z,v);return[v,N,b,h,p,g]}),(function(e,t){var n=(0,r.A)(e,3)[2];(t||v)&&F&&(0,c.m6)(n,{mark:x})}),(function(e){var t=(0,r.A)(e,4),n=t[0],o=(t[1],t[2]),i=t[3];if(P&&n!==et){var l={mark:x,prepend:!M&&"queue",attachTo:A,priority:g},s="function"==typeof f?f():f;s&&(l.csp={nonce:s});var u=[],d=[];Object.keys(i).forEach((function(e){e.startsWith("@layer")?u.push(e):d.push(e)})),u.forEach((function(e){(0,c.BD)(ot(i[e]),"_layer-".concat(e),(0,a.A)((0,a.A)({},l),{},{prepend:!0}))}));var p=(0,c.BD)(n,o,l);p[w]=I.instanceId,p.setAttribute(C,N),d.forEach((function(e){(0,c.BD)(ot(i[e]),"_effect-".concat(e),l)}))}})),R=(0,r.A)(j,3),T=R[0],D=R[1],B=R[2];return function(e){var t,n;S&&!P&&b?t=s.createElement("style",(0,le.A)({},(n={},(0,o.A)(n,C,D),(0,o.A)(n,x,B),n),{dangerouslySetInnerHTML:{__html:T}})):t=s.createElement(ct,null);return s.createElement(s.Fragment,null,t,e)}}var dt="cssVar";const ft=function(e,t){var n=e.key,o=e.prefix,a=e.unitless,l=e.ignore,u=e.token,d=e.scope,f=void 0===d?"":d,p=(0,s.useContext)(k),m=p.cache.instanceId,g=p.container,h=u._tokenKey,v=[].concat((0,i.A)(e.path),[n,f,h]);return Z(dt,v,(function(){var e=t(),i=K(e,n,{prefix:o,unitless:a,ignore:l,scope:f}),c=(0,r.A)(i,2),s=c[0],u=c[1];return[s,u,lt(v,u),n]}),(function(e){var t=(0,r.A)(e,3)[2];F&&(0,c.m6)(t,{mark:x})}),(function(e){var t=(0,r.A)(e,3),o=t[1],i=t[2];if(o){var a=(0,c.BD)(o,i,{mark:x,prepend:"queue",attachTo:g,priority:-999});a[w]=m,a.setAttribute(C,n)}}))};var pt,mt=(pt={},(0,o.A)(pt,st,(function(e,t,n){var o=(0,r.A)(e,6),i=o[0],a=o[1],l=o[2],c=o[3],s=o[4],u=o[5],d=(n||{}).plain;if(s)return null;var f=i,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return f=W(i,a,l,p,d),c&&Object.keys(c).forEach((function(e){if(!t[e]){t[e]=!0;var n=W(ot(c[e]),a,"_effect-".concat(e),p,d);e.startsWith("@layer")?f=n+f:f+=n}})),[u,l,f]})),(0,o.A)(pt,ie,(function(e,t,n){var o=(0,r.A)(e,5),i=o[2],a=o[3],l=o[4],c=(n||{}).plain;if(!a)return null;var s=i._tokenKey;return[-999,s,W(a,l,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]})),(0,o.A)(pt,dt,(function(e,t,n){var o=(0,r.A)(e,4),i=o[1],a=o[2],l=o[3],c=(n||{}).plain;if(!i)return null;return[-999,a,W(i,l,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]})),pt);function gt(e){return null!==e}function ht(e,t){var n="boolean"==typeof t?{plain:t}:t||{},i=n.plain,a=void 0!==i&&i,l=n.types,c=void 0===l?["style","token","cssVar"]:l,s=new RegExp("^(".concat(("string"==typeof c?[c]:c).join("|"),")%")),u=Array.from(e.cache.keys()).filter((function(e){return s.test(e)})),d={},f={},p="";return u.map((function(t){var n=t.replace(s,"").replace(/%/g,"|"),o=t.split("%"),i=(0,r.A)(o,1)[0],l=(0,mt[i])(e.cache.get(t)[1],d,{plain:a});if(!l)return null;var c=(0,r.A)(l,3),u=c[0],p=c[1],m=c[2];return t.startsWith("style")&&(f[n]=p),[u,m]})).filter(gt).sort((function(e,t){return(0,r.A)(e,1)[0]-(0,r.A)(t,1)[0]})).forEach((function(e){var t=(0,r.A)(e,2)[1];p+=t})),p+=W(".".concat(Je,'{content:"').concat(function(e){return Object.keys(e).map((function(t){var n=e[t];return"".concat(t,":").concat(n)})).join(";")}(f),'";}'),void 0,void 0,(0,o.A)({},Je,Je),a),p}const vt=function(){function e(t,n){(0,m.A)(this,e),(0,o.A)(this,"name",void 0),(0,o.A)(this,"style",void 0),(0,o.A)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,g.A)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function bt(e){return e.notSplit=!0,e}bt(["borderTop","borderBottom"]),bt(["borderTop"]),bt(["borderBottom"]),bt(["borderLeft","borderRight"]),bt(["borderLeft"]),bt(["borderRight"])},7064:(e,t,n)=>{"use strict";n.d(t,{A:()=>I});var r=n(8168),o=n(5544),i=n(4467),a=n(3986),l=n(6540),c=n(6942),s=n.n(c),u=n(5748),d=n(1053),f=n(9379),p=n(2284),m=n(5089),g=n(2633),h=n(8210);function v(e){return"object"===(0,p.A)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,p.A)(e.icon)||"function"==typeof e.icon)}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function y(e,t,n){return n?l.createElement(e.tag,(0,f.A)((0,f.A)({key:t},b(e.attrs)),n),(e.children||[]).map((function(n,r){return y(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):l.createElement(e.tag,(0,f.A)({key:t},b(e.attrs)),(e.children||[]).map((function(n,r){return y(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function C(e){return(0,u.cM)(e)[0]}function x(e){return e?Array.isArray(e)?e:[e]:[]}var w=["icon","className","onClick","style","primaryColor","secondaryColor"],A={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var S=function(e){var t,n,r,o,i,c,s,u=e.icon,p=e.className,b=e.onClick,x=e.style,S=e.primaryColor,$=e.secondaryColor,k=(0,a.A)(e,w),E=l.useRef(),O=A;if(S&&(O={primaryColor:S,secondaryColor:$||C(S)}),t=E,n=(0,l.useContext)(d.A),r=n.csp,o=n.prefixCls,i="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",o&&(i=i.replace(/anticon/g,o)),(0,l.useEffect)((function(){var e=t.current,n=(0,g.j)(e);(0,m.BD)(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})}),[]),c=v(u),s="icon should be icon definiton, but got ".concat(u),(0,h.Ay)(c,"[@ant-design/icons] ".concat(s)),!v(u))return null;var I=u;return I&&"function"==typeof I.icon&&(I=(0,f.A)((0,f.A)({},I),{},{icon:I.icon(O.primaryColor,O.secondaryColor)})),y(I.icon,"svg-".concat(I.name),(0,f.A)((0,f.A)({className:p,onClick:b,style:x,"data-icon":I.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},k),{},{ref:E}))};S.displayName="IconReact",S.getTwoToneColors=function(){return(0,f.A)({},A)},S.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;A.primaryColor=t,A.secondaryColor=n||C(t),A.calculated=!!n};const $=S;function k(e){var t=x(e),n=(0,o.A)(t,2),r=n[0],i=n[1];return $.setTwoToneColors({primaryColor:r,secondaryColor:i})}var E=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];k(u.z1.primary);var O=l.forwardRef((function(e,t){var n=e.className,c=e.icon,u=e.spin,f=e.rotate,p=e.tabIndex,m=e.onClick,g=e.twoToneColor,h=(0,a.A)(e,E),v=l.useContext(d.A),b=v.prefixCls,y=void 0===b?"anticon":b,C=v.rootClassName,w=s()(C,y,(0,i.A)((0,i.A)({},"".concat(y,"-").concat(c.name),!!c.name),"".concat(y,"-spin"),!!u||"loading"===c.name),n),A=p;void 0===A&&m&&(A=-1);var S=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,k=x(g),O=(0,o.A)(k,2),I=O[0],M=O[1];return l.createElement("span",(0,r.A)({role:"img","aria-label":c.name},h,{ref:t,tabIndex:A,onClick:m,className:w}),l.createElement($,{icon:c,primaryColor:I,secondaryColor:M,style:S}))}));O.displayName="AntdIcon",O.getTwoToneColor=function(){var e=$.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},O.setTwoToneColor=k;const I=O},1053:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(6540).createContext)({})},8811:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(6540);const i={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"};var a=n(7064),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=o.forwardRef(l)},6029:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(6540);const i={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"};var a=n(7064),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=o.forwardRef(l)},7852:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(6540);const i={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"};var a=n(7064),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=o.forwardRef(l)},7541:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(6540);const i={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"};var a=n(7064),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=o.forwardRef(l)},7850:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(6540);const i={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"};var a=n(7064),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=o.forwardRef(l)},3567:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(6540);const i={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"};var a=n(7064),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=o.forwardRef(l)},8e3:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(6540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var a=n(7064),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=o.forwardRef(l)},2456:(e,t,n)=>{"use strict";n.d(t,{H:()=>d,K6:()=>i,Me:()=>s,Ob:()=>u,YL:()=>l,_:()=>o,g8:()=>m,n6:()=>p,oS:()=>g,wE:()=>c});var r=n(9244);function o(e,t,n){return{r:255*(0,r.Cg)(e,255),g:255*(0,r.Cg)(t,255),b:255*(0,r.Cg)(n,255)}}function i(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=0,c=(o+i)/2;if(o===i)l=0,a=0;else{var s=o-i;switch(l=c>.5?s/(2-o-i):s/(o+i),o){case e:a=(t-n)/s+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){var o,i,l;if(e=(0,r.Cg)(e,360),t=(0,r.Cg)(t,100),n=(0,r.Cg)(n,100),0===t)i=n,l=n,o=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;o=a(s,c,e+1/3),i=a(s,c,e),l=a(s,c,e-1/3)}return{r:255*o,g:255*i,b:255*l}}function c(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=o,c=o-i,s=0===o?0:c/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/c+(t>16,g:(65280&e)>>8,b:255&e}}},2434:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},6250:(e,t,n)=>{"use strict";n.d(t,{RO:()=>a});var r=n(2456),o=n(2434),i=n(9244);function a(e){var t={r:0,g:0,b:0},n=1,a=null,l=null,c=null,s=!1,f=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(o.D[e])e=o.D[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=u.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=u.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=u.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=u.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=u.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=u.hex8.exec(e),n)return{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),a:(0,r.n6)(n[4]),format:t?"name":"hex8"};if(n=u.hex6.exec(e),n)return{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),format:t?"name":"hex"};if(n=u.hex4.exec(e),n)return{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),a:(0,r.n6)(n[4]+n[4]),format:t?"name":"hex8"};if(n=u.hex3.exec(e),n)return{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r._)(e.r,e.g,e.b),s=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(a=(0,i.Px)(e.s),l=(0,i.Px)(e.v),t=(0,r.Me)(e.h,a,l),s=!0,f="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(a=(0,i.Px)(e.s),c=(0,i.Px)(e.l),t=(0,r.YL)(e.h,a,c),s=!0,f="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.TV)(n),{ok:s,format:e.format||f,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+c),rgba:new RegExp("rgba"+s),hsl:new RegExp("hsl"+c),hsla:new RegExp("hsla"+s),hsv:new RegExp("hsv"+c),hsva:new RegExp("hsva"+s),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d(e){return Boolean(u.CSS_UNIT.exec(String(e)))}},4978:(e,t,n)=>{"use strict";n.d(t,{q:()=>l});var r=n(2456),o=n(2434),i=n(6250),a=n(9244),l=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.oS)(t)),this.originalInput=t;var a=(0,i.RO)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.TV)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.wE)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.wE)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.K6)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.K6)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.Ob)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.H)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.Cg)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.Cg)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.Ob)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.D);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a{"use strict";function r(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}n.d(t,{Cg:()=>r,J$:()=>o,Px:()=>a,TV:()=>i,wl:()=>l})},2153:(e,t,n)=>{"use strict";n.d(t,{Q1:()=>w,ZC:()=>I,Ay:()=>F});var r=n(8168),o=n(4467),i=n(5544),a=n(6540),l=n(9379),c=n(3029),s=n(2901),u=n(5501),d=n(9426),f=n(3986),p=n(2284);const m=Math.round;function g(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const h=(e,t,n)=>0===n?e:e/100;function v(e,t){const n=t||255;return e>n?n:e<0?0:e}class b{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,o.A)(this,"isValid",!0),(0,o.A)(this,"r",0),(0,o.A)(this,"g",0),(0,o.A)(this,"b",0),(0,o.A)(this,"a",1),(0,o.A)(this,"_h",void 0),(0,o.A)(this,"_s",void 0),(0,o.A)(this,"_l",void 0),(0,o.A)(this,"_v",void 0),(0,o.A)(this,"_max",void 0),(0,o.A)(this,"_min",void 0),(0,o.A)(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof b)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=v(e.r),this.g=v(e.g),this.b=v(e.b),this.a="number"==typeof e.a?v(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}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){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const 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){const e=this.getMax()-this.getMin();this._h=0===e?0:m(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:m(o("r")),g:m(o("g")),b:m(o("b")),a:m(100*o("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){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>m((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}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="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=m(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=m(100*this.getSaturation()),n=m(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),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,n){const r=this.clone();return r[e]=v(t,n),r}_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){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=m(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const l=e/60,c=(1-Math.abs(2*n-1))*t,s=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,i=s):l>=1&&l<2?(o=s,i=c):l>=2&&l<3?(i=c,a=s):l>=3&&l<4?(i=s,a=c):l>=4&&l<5?(o=s,a=c):l>=5&&l<6&&(o=c,a=s);const u=n-c/2;this.r=m(255*(o+u)),this.g=m(255*(i+u)),this.b=m(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=m(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),l=i-a,c=m(n*(1-t)*255),s=m(n*(1-t*l)*255),u=m(n*(1-t*(1-l))*255);switch(a){case 0:this.g=u,this.b=c;break;case 1:this.r=s,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=s;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=s}}fromHsvString(e){const t=g(e,h);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=g(e,h);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=g(e,((e,t)=>t.includes("%")?m(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var y=["b"],C=["v"],x=function(e){return Math.round(Number(e||0))},w=function(e){(0,u.A)(n,e);var t=(0,d.A)(n);function n(e){return(0,c.A)(this,n),t.call(this,function(e){if(e instanceof b)return e;if(e&&"object"===(0,p.A)(e)&&"h"in e&&"b"in e){var t=e,n=t.b,r=(0,f.A)(t,y);return(0,l.A)((0,l.A)({},r),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return(0,s.A)(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=x(100*e.s),n=x(100*e.b),r=x(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,n=(0,f.A)(e,C);return(0,l.A)((0,l.A)({},n),{},{b:t,a:this.a})}}]),n}(b),A=function(e){return e instanceof w?e:new w(e)},S=A("#1677ff"),$=function(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.color,i=e.type,a=r.current.getBoundingClientRect(),c=a.width,s=a.height,u=n.current.getBoundingClientRect(),d=u.width/2,f=u.height/2,p=(t.x+d)/c,m=1-(t.y+f)/s,g=o.toHsb(),h=p,v=(t.x+d)/c*360;if(i)switch(i){case"hue":return A((0,l.A)((0,l.A)({},g),{},{h:v<=0?0:v}));case"alpha":return A((0,l.A)((0,l.A)({},g),{},{a:h<=0?0:h}))}return A({h:g.h,s:p<=0?0:p,b:m>=1?1:m,a:g.a})},k=function(e,t){var n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}},E=n(6942),O=n.n(E);const I=function(e){var t=e.color,n=e.prefixCls,r=e.className,o=e.style,i=e.onClick,l="".concat(n,"-color-block");return a.createElement("div",{className:O()(l,r),style:o,onClick:i},a.createElement("div",{className:"".concat(l,"-inner"),style:{background:t}}))};const M=function(e){var t=e.targetRef,n=e.containerRef,r=e.direction,o=e.onDragChange,l=e.onDragChangeComplete,c=e.calculate,s=e.color,u=e.disabledDrag,d=(0,a.useState)({x:0,y:0}),f=(0,i.A)(d,2),p=f[0],m=f[1],g=(0,a.useRef)(null),h=(0,a.useRef)(null);(0,a.useEffect)((function(){m(c())}),[s]),(0,a.useEffect)((function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",h.current),g.current=null,h.current=null}}),[]);var v=function(e){var i=function(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}(e),a=i.pageX,l=i.pageY,c=n.current.getBoundingClientRect(),s=c.x,u=c.y,d=c.width,f=c.height,m=t.current.getBoundingClientRect(),g=m.width,h=m.height,v=g/2,b=h/2,y=Math.max(0,Math.min(a-s,d))-v,C=Math.max(0,Math.min(l-u,f))-b,x={x:y,y:"x"===r?p.y:C};if(0===g&&0===h||g!==h)return!1;null==o||o(x)},b=function(e){e.preventDefault(),v(e)},y=function(e){e.preventDefault(),document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",h.current),g.current=null,h.current=null,null==l||l()};return[p,function(e){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),u||(v(e),document.addEventListener("mousemove",b),document.addEventListener("mouseup",y),document.addEventListener("touchmove",b),document.addEventListener("touchend",y),g.current=b,h.current=y)}]};var N=n(1470);const z=function(e){var t=e.size,n=void 0===t?"default":t,r=e.color,i=e.prefixCls;return a.createElement("div",{className:O()("".concat(i,"-handler"),(0,o.A)({},"".concat(i,"-handler-sm"),"small"===n)),style:{backgroundColor:r}})};const P=function(e){var t=e.children,n=e.style,r=e.prefixCls;return a.createElement("div",{className:"".concat(r,"-palette"),style:(0,l.A)({position:"relative"},n)},t)};const j=(0,a.forwardRef)((function(e,t){var n=e.children,r=e.x,o=e.y;return a.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}));const R=function(e){var t=e.color,n=e.onChange,r=e.prefixCls,o=e.onChangeComplete,l=e.disabled,c=(0,a.useRef)(),s=(0,a.useRef)(),u=(0,a.useRef)(t),d=(0,N._q)((function(e){var r=$({offset:e,targetRef:s,containerRef:c,color:t});u.current=r,n(r)})),f=M({color:t,containerRef:c,targetRef:s,calculate:function(){return k(t)},onDragChange:d,onDragChangeComplete:function(){return null==o?void 0:o(u.current)},disabledDrag:l}),p=(0,i.A)(f,2),m=p[0],g=p[1];return a.createElement("div",{ref:c,className:"".concat(r,"-select"),onMouseDown:g,onTouchStart:g},a.createElement(P,{prefixCls:r},a.createElement(j,{x:m.x,y:m.y,ref:s},a.createElement(z,{color:t.toRgbString(),prefixCls:r})),a.createElement("div",{className:"".concat(r,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))};const T=function(e,t){var n=(0,N.vz)(e,{value:t}),r=(0,i.A)(n,2),o=r[0],l=r[1];return[(0,a.useMemo)((function(){return A(o)}),[o]),l]};const D=function(e){var t=e.colors,n=e.children,r=e.direction,o=void 0===r?"to right":r,i=e.type,l=e.prefixCls,c=(0,a.useMemo)((function(){return t.map((function(e,n){var r=A(e);return"alpha"===i&&n===t.length-1&&(r=new w(r.setA(1))),r.toRgbString()})).join(",")}),[t,i]);return a.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(c,")")}},n)};const B=function(e){var t=e.prefixCls,n=e.colors,r=e.disabled,o=e.onChange,l=e.onChangeComplete,c=e.color,s=e.type,u=(0,a.useRef)(),d=(0,a.useRef)(),f=(0,a.useRef)(c),p=function(e){return"hue"===s?e.getHue():100*e.a},m=(0,N._q)((function(e){var t=$({offset:e,targetRef:d,containerRef:u,color:c,type:s});f.current=t,o(p(t))})),g=M({color:c,targetRef:d,containerRef:u,calculate:function(){return k(c,s)},onDragChange:m,onDragChangeComplete:function(){l(p(f.current))},direction:"x",disabledDrag:r}),h=(0,i.A)(g,2),v=h[0],b=h[1],y=a.useMemo((function(){if("hue"===s){var e=c.toHsb();return e.s=1,e.b=1,e.a=1,new w(e)}return c}),[c,s]),C=a.useMemo((function(){return n.map((function(e){return"".concat(e.color," ").concat(e.percent,"%")}))}),[n]);return a.createElement("div",{ref:u,className:O()("".concat(t,"-slider"),"".concat(t,"-slider-").concat(s)),onMouseDown:b,onTouchStart:b},a.createElement(P,{prefixCls:t},a.createElement(j,{x:v.x,y:v.y,ref:d},a.createElement(z,{size:"small",color:y.toHexString(),prefixCls:t})),a.createElement(D,{colors:C,type:s,prefixCls:t})))};var L=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],H=(0,a.forwardRef)((function(e,t){var n=e.value,l=e.defaultValue,c=e.prefixCls,s=void 0===c?"rc-color-picker":c,u=e.onChange,d=e.onChangeComplete,f=e.className,p=e.style,m=e.panelRender,g=e.disabledAlpha,h=void 0!==g&&g,v=e.disabled,b=void 0!==v&&v,y=function(e){return a.useMemo((function(){return[(e||{}).slider||B]}),[e])}(e.components),C=(0,i.A)(y,1)[0],x=T(l||S,n),A=(0,i.A)(x,2),$=A[0],k=A[1],E=(0,a.useMemo)((function(){return $.setA(1).toRgbString()}),[$]),M=function(e,t){n||k(e),null==u||u(e,t)},N=function(e){return new w($.setHue(e))},z=function(e){return new w($.setA(e/100))},P=O()("".concat(s,"-panel"),f,(0,o.A)({},"".concat(s,"-panel-disabled"),b)),j={prefixCls:s,disabled:b,color:$},D=a.createElement(a.Fragment,null,a.createElement(R,(0,r.A)({onChange:M},j,{onChangeComplete:d})),a.createElement("div",{className:"".concat(s,"-slider-container")},a.createElement("div",{className:O()("".concat(s,"-slider-group"),(0,o.A)({},"".concat(s,"-slider-group-disabled-alpha"),h))},a.createElement(C,(0,r.A)({},j,{type:"hue",colors:L,min:0,max:359,value:$.getHue(),onChange:function(e){M(N(e),{type:"hue",value:e})},onChangeComplete:function(e){d&&d(N(e))}})),!h&&a.createElement(C,(0,r.A)({},j,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:E}],min:0,max:100,value:100*$.a,onChange:function(e){M(z(e),{type:"alpha",value:e})},onChangeComplete:function(e){d&&d(z(e))}}))),a.createElement(I,{color:$.toRgbString(),prefixCls:s})));return a.createElement("div",{className:P,style:p,ref:t},"function"==typeof m?m(D):D)}));const F=H},5062:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(5544),o=n(6540),i=n(961),a=n(998),l=(n(8210),n(8719));const c=o.createContext(null);var s=n(436),u=n(981),d=[];var f=n(5089),p=n(2987);var m="rc-util-locker-".concat(Date.now()),g=0;function h(e){var t=!!e,n=o.useState((function(){return g+=1,"".concat(m,"_").concat(g)})),i=(0,r.A)(n,1)[0];(0,u.A)((function(){if(t){var e=(0,p.V)(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,f.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),i)}else(0,f.m6)(i);return function(){(0,f.m6)(i)}}),[t,i])}var v=!1;var b=function(e){return!1!==e&&((0,a.A)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};const y=o.forwardRef((function(e,t){var n=e.open,f=e.autoLock,p=e.getContainer,m=(e.debug,e.autoDestroy),g=void 0===m||m,y=e.children,C=o.useState(n),x=(0,r.A)(C,2),w=x[0],A=x[1],S=w||n;o.useEffect((function(){(g||n)&&A(n)}),[n,g]);var $=o.useState((function(){return b(p)})),k=(0,r.A)($,2),E=k[0],O=k[1];o.useEffect((function(){var e=b(p);O(null!=e?e:null)}));var I=function(e){var t=o.useState((function(){return(0,a.A)()?document.createElement("div"):null})),n=(0,r.A)(t,1)[0],i=o.useRef(!1),l=o.useContext(c),f=o.useState(d),p=(0,r.A)(f,2),m=p[0],g=p[1],h=l||(i.current?void 0:function(e){g((function(t){return[e].concat((0,s.A)(t))}))});function v(){n.parentElement||document.body.appendChild(n),i.current=!0}function b(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),i.current=!1}return(0,u.A)((function(){return e?l?l(v):v():b(),b}),[e]),(0,u.A)((function(){m.length&&(m.forEach((function(e){return e()})),g(d))}),[m]),[n,h]}(S&&!E),M=(0,r.A)(I,2),N=M[0],z=M[1],P=null!=E?E:N;h(f&&n&&(0,a.A)()&&(P===N||P===document.body));var j=null;y&&(0,l.f3)(y)&&t&&(j=y.ref);var R=(0,l.xK)(j,t);if(!S||!(0,a.A)()||void 0===E)return null;var T,D=!1===P||("boolean"==typeof T&&(v=T),v),B=y;return t&&(B=o.cloneElement(y,{ref:R})),o.createElement(c.Provider,{value:z},D?B:(0,i.createPortal)(B,P))}))},4187:(e,t,n)=>{"use strict";n.r(t),n.d(t,{StyleProvider:()=>Ut,ThemeProvider:()=>Yt,createGlobalStyle:()=>_t,createInstance:()=>Tt,createStyles:()=>Ft,createStylish:()=>Wt,css:()=>Vt,cx:()=>qt,extractStaticStyle:()=>Lt,injectGlobal:()=>Xt,keyframes:()=>Kt,setupStyled:()=>ft,styleManager:()=>Gt,useAntdStylish:()=>Nt,useAntdTheme:()=>zt,useAntdToken:()=>ot,useResponsive:()=>Jt,useTheme:()=>Qt,useThemeMode:()=>Ct});var r=n(9379),o=n(6540),i=n.t(o,2),a=n(3029),l=n(2901),c=n(4467);var s=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?h(k,--S):0,w--,10===$&&(w=1,x--),$}function M(){return $=S2||j($)>3?"":" "}function L(e,t){for(;--t&&M()&&!($<48||$>102||$>57&&$<65||$>70&&$<97););return P(e,z()+(t<6&&32==N()&&32==M()))}function H(e){for(;M();)switch($){case e:return S;case 34:case 39:34!==e&&39!==e&&H($);break;case 40:41===e&&H(e);break;case 92:M()}return S}function F(e,t){for(;M()&&e+$!==57&&(e+$!==84||47!==N()););return"/*"+P(t,S-1)+"*"+d(47===e?e:M())}function _(e){for(;!j(N());)M();return P(e,S)}var W="-ms-",V="-moz-",q="-webkit-",K="comm",X="rule",G="decl",Y="@keyframes";function U(e,t){for(var n="",r=y(e),o=0;o0&&b(P)-f&&C(v>32?ne(P+";",r,n,f-1):ne(m(P," ","")+";",r,n,f-2),c);break;case 59:P+=";";default:if(C(O=ee(P,t,n,s,u,o,l,$,k=[],E=[],f),i),123===S)if(0===u)J(P,t,O,O,k,i,f,l,E);else switch(99===p&&110===h(P,3)?100:p){case 100:case 108:case 109:case 115:J(e,O,O,r&&C(ee(e,O,O,0,0,o,l,$,o,k=[],f),E),o,E,f,l,r?k:E);break;default:J(P,O,O,O,[""],E,0,l,E)}}s=u=v=0,x=A=1,$=P="",f=a;break;case 58:f=1+b(P),v=y;default:if(x<1)if(123==S)--x;else if(125==S&&0==x++&&125==I())continue;switch(P+=d(S),S*x){case 38:A=u>0?1:(P+="\f",-1);break;case 44:l[s++]=(b(P)-1)*A,A=1;break;case 64:45===N()&&(P+=D(M())),p=N(),u=f=b($=P+=_(z())),S++;break;case 45:45===y&&2==b(P)&&(x=0)}}return i}function ee(e,t,n,r,o,i,a,l,c,s,d){for(var f=o-1,g=0===o?i:[""],h=y(g),b=0,C=0,x=0;b0?g[w]+" "+A:m(A,/&\f/g,g[w])))&&(c[x++]=S);return E(e,t,n,0===o?X:l,c,s,d)}function te(e,t,n){return E(e,t,n,K,d($),v(e,2,-2),0)}function ne(e,t,n,r){return E(e,t,n,G,v(e,0,r),v(e,r+1,-1),r)}var re=function(e,t,n){for(var r=0,o=0;r=o,o=N(),38===r&&12===o&&(t[n]=1),!j(o);)M();return P(e,S)},oe=function(e,t){return T(function(e,t){var n=-1,r=44;do{switch(j(r)){case 0:38===r&&12===N()&&(t[n]=1),e[n]+=re(S-1,t,n);break;case 2:e[n]+=D(r);break;case 4:if(44===r){e[++n]=58===N()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=d(r)}}while(r=M());return e}(R(e),t))},ie=new WeakMap,ae=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ie.get(n))&&!r){ie.set(e,!0);for(var o=[],i=oe(t,o),a=n.props,l=0,c=0;l6)switch(h(e,t+1)){case 109:if(45!==h(e,t+4))break;case 102:return m(e,/(.+:)(.+)-([^]+)/,"$1"+q+"$2-$3$1"+V+(108==h(e,t+3)?"$3":"$2-$3"))+e;case 115:return~g(e,"stretch")?ce(m(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==h(e,t+1))break;case 6444:switch(h(e,b(e)-3-(~g(e,"!important")&&10))){case 107:return m(e,":",":"+q)+e;case 101:return m(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+q+(45===h(e,14)?"inline-":"")+"box$3$1"+q+"$2$3$1"+W+"$2box$3")+e}break;case 5936:switch(h(e,t+11)){case 114:return q+e+W+m(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return q+e+W+m(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return q+e+W+m(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return q+e+W+e+e}return e}var se=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case G:e.return=ce(e.value,e.length);break;case Y:return U([O(e,{value:m(e.value,"@","@"+q)})],r);case X:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return U([O(e,{props:[m(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return U([O(e,{props:[m(t,/:(plac\w+)/,":"+q+"input-$1")]}),O(e,{props:[m(t,/:(plac\w+)/,":-moz-$1")]}),O(e,{props:[m(t,/:(plac\w+)/,W+"input-$1")]})],r)}return""}))}}],ue=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||se,a={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:s,styles:o,next:Ce}}function Ae(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Se=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},$e=function(e,t,n){Se(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};function ke(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Ee(e,t,n){var r=[],o=Ae(e,r,n);return r.length<2?n:o+t(r)}var Oe=function(e){var t=ue(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n]*>/g,"").replace(/<\/style>/g,""),l={style:(0,Ze.jsx)("style",{"data-antd-version":Dt.A,"data-rc-order":"prepend","data-rc-priority":"-9999",dangerouslySetInnerHTML:{__html:a}},"antd"),ids:Array.from(i.cache.keys()),key:"antd",css:a,tag:'")},c=n.g.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__.getCacheList().map((function(t){var n=function(e){return!0!==e.compat&&(e.compat=!0),function(t){for(var n,r=new RegExp(e.key+"-([a-zA-Z0-9-_]+)","gm"),o={html:t,ids:[],css:""},i={};null!==(n=r.exec(t));)void 0===i[n[1]]&&(i[n[1]]=!0);return o.ids=Object.keys(e.inserted).filter((function(t){return(void 0!==i[t]||void 0===e.registered[e.key+"-"+t])&&!0!==e.inserted[t]&&(o.css+=e.inserted[t],!0)})),o}}(t),r=e?n(e):function(e){return{ids:Object.keys(e.inserted),css:Object.values(e.inserted).filter((function(e){return"string"==typeof e})).join("")}}(t);if(!r.css)return null;var o=r.css,i=r.ids;return{key:t.key,style:(0,Ze.jsx)("style",{"data-emotion":"".concat(t.key," ").concat(i.join(" ")),dangerouslySetInnerHTML:{__html:o}},t.key),css:o,ids:i,tag:'")}}));return a&&o&&c.unshift(l),c.filter(Boolean)};Lt.cache=Bt;var Ht=Tt({key:"acss",speedy:!1}),Ft=Ht.createStyles,_t=Ht.createGlobalStyle,Wt=Ht.createStylish,Vt=Ht.css,qt=Ht.cx,Kt=Ht.keyframes,Xt=Ht.injectGlobal,Gt=Ht.styleManager,Yt=Ht.ThemeProvider,Ut=Ht.StyleProvider,Qt=Ht.useTheme,Zt=n(372),Jt=function(){var e=Zt.Ay.useBreakpoint();return(0,o.useMemo)((function(){return it(e)}),[e])}},8431:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(6540),o=n(1233),i=n(8777),a=n(9449);function l(e){return!!(null==e?void 0:e.then)}const c=e=>{const{type:t,children:n,prefixCls:c,buttonProps:s,close:u,autoFocus:d,emitEvent:f,isSilent:p,quitOnNullishReturnValue:m,actionFn:g}=e,h=r.useRef(!1),v=r.useRef(null),[b,y]=(0,o.A)(!1),C=function(){null==u||u.apply(void 0,arguments)};r.useEffect((()=>{let e=null;return d&&(e=setTimeout((()=>{var e;null===(e=v.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return r.createElement(i.Ay,Object.assign({},(0,a.DU)(t),{onClick:e=>{if(h.current)return;if(h.current=!0,!g)return void C();let t;if(f){if(t=g(e),m&&!l(t))return h.current=!1,void C(e)}else if(g.length)t=g(u),h.current=!1;else if(t=g(),!l(t))return void C();(e=>{l(e)&&(y(!0),e.then((function(){y(!1,!0),C.apply(void 0,arguments),h.current=!1}),(e=>{if(y(!1,!0),h.current=!1,!(null==p?void 0:p()))return Promise.reject(e)})))})(t)},loading:b,prefixCls:c},s,{ref:v}),n)}},2897:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6540),o=n(4241),i=n(6327);const a=e=>{const{space:t,form:n,children:a}=e;if(null==a)return null;let l=a;return n&&(l=r.createElement(o.XB,{override:!0,status:!0},l)),t&&(l=r.createElement(i.K6,null,l)),l}},3425:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,U:()=>l});var r=n(6540),o=n(2533),i=n(1587),a=n(2279);function l(e){return t=>r.createElement(i.Ay,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(e,Object.assign({},t)))}const c=(e,t,n,i)=>l((l=>{const{prefixCls:c,style:s}=l,u=r.useRef(null),[d,f]=r.useState(0),[p,m]=r.useState(0),[g,h]=(0,o.A)(!1,{value:l.open}),{getPrefixCls:v}=r.useContext(a.ConfigContext),b=v(t||"select",c);r.useEffect((()=>{if(h(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;f(t.offsetHeight+8),m(t.offsetWidth)})),t=setInterval((()=>{var r;const o=n?`.${n(b)}`:`.${b}-dropdown`,i=null===(r=u.current)||void 0===r?void 0:r.querySelector(o);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let y=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},s),{margin:0}),open:g,visible:g,getPopupContainer:()=>u.current});i&&(y=i(y));const C={paddingBottom:d,position:"relative",minWidth:p};return r.createElement("div",{ref:u,style:C},r.createElement(e,Object.assign({},y)))}))},64:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,d:()=>a});var r=n(6540),o=n(7852),i=n(2065);function a(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function l(e){const{closable:t,closeIcon:n}=e||{};return r.useMemo((()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!=typeof n&&null!==n?n:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e}),[t,n])}function c(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&(e[n]=t[n])}))})),e}const s={};function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;const a=l(e),u=l(t),d="boolean"!=typeof a&&!!(null==a?void 0:a.disabled),f=r.useMemo((()=>Object.assign({closeIcon:r.createElement(o.A,null)},n)),[n]),p=r.useMemo((()=>!1!==a&&(a?c(f,u,a):!1!==u&&(u?c(f,u):!!f.closable&&f))),[a,u,f]);return r.useMemo((()=>{if(!1===p)return[!1,null,d];const{closeIconRender:e}=f,{closeIcon:t}=p;let n=t;if(null!=n){e&&(n=e(t));const o=(0,i.A)(p,!0);Object.keys(o).length&&(n=r.isValidElement(n)?r.cloneElement(n,o):r.createElement("span",Object.assign({},o),n))}return[!0,n,d]}),[p,f])}},7447:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540);function o(){const[,e]=r.useReducer((e=>e+1),0);return e}},275:(e,t,n)=>{"use strict";n.d(t,{YK:()=>u,jH:()=>l});var r=n(6540),o=n(3093),i=n(2616);const a=100,l=1e3,c={Modal:a,Drawer:a,Popover:a,Popconfirm:a,Tooltip:a,Tour:a,FloatButton:a},s={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const u=(e,t)=>{const[,n]=(0,o.Ay)(),a=r.useContext(i.A),l=e in c;let u;if(void 0!==t)u=[t,t];else{let r=null!=a?a:0;r+=l?(a?0:n.zIndexPopupBase)+c[e]:s[e],u=[void 0===a?t:r,r]}return u}},3723:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,b:()=>c});var r=n(2279);const o=()=>({height:0,opacity:0}),i=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},a=e=>({height:e?e.offsetHeight:0}),l=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,c=(e,t,n)=>void 0!==n?n:`${e}-${t}`,s=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.defaultPrefixCls}-motion-collapse`,onAppearStart:o,onEnterStart:o,onAppearActive:i,onEnterActive:i,onLeaveStart:a,onLeaveActive:o,onAppearEnd:l,onEnterEnd:l,onLeaveEnd:l,motionDeadline:500}}},682:(e,t,n)=>{"use strict";n.d(t,{Ob:()=>a,fx:()=>i,zv:()=>o});var r=n(6540);function o(e){return e&&r.isValidElement(e)&&e.type===r.Fragment}const i=(e,t,n)=>r.isValidElement(e)?r.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t;function a(e,t){return i(e,e,t)}},4945:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c,ko:()=>s,ye:()=>i});var r=n(6540),o=n(3093);const i=["xxl","xl","lg","md","sm","xs"],a=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),l=e=>{const t=e,n=[].concat(i).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}const s=(e,t)=>{if(t&&"object"==typeof t)for(let n=0;n{"use strict";n.d(t,{_n:()=>i,rJ:()=>a});var r=n(6540);n(8210);function o(){}const i=r.createContext({}),a=()=>{const e=()=>{};return e.deprecated=o,e}},57:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var r=n(6540),o=n(6942),i=n.n(o),a=n(2467),l=n(8719),c=n(2279),s=n(682),u=n(7358);const d=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},f=(0,u.Or)("Wave",(e=>[d(e)]));var p=n(6956),m=n(5371),g=n(3093),h=n(4424),v=n(754),b=n(4832);function y(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function C(e){return Number.isNaN(e)?0:e}const x=e=>{const{className:t,target:n,component:o}=e,a=r.useRef(null),[c,s]=r.useState(null),[u,d]=r.useState([]),[f,p]=r.useState(0),[g,x]=r.useState(0),[w,A]=r.useState(0),[S,$]=r.useState(0),[k,E]=r.useState(!1),O={left:f,top:g,width:w,height:S,borderRadius:u.map((e=>`${e}px`)).join(" ")};function I(){const e=getComputedStyle(n);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return y(t)?t:y(n)?n:y(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;p(t?n.offsetLeft:C(-parseFloat(r))),x(t?n.offsetTop:C(-parseFloat(o))),A(n.offsetWidth),$(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:c}=e;d([i,a,c,l].map((e=>C(parseFloat(e)))))}if(c&&(O["--wave-color"]=c),r.useEffect((()=>{if(n){const e=(0,m.A)((()=>{I(),E(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(I),t.observe(n)),()=>{m.A.cancel(e),null==t||t.disconnect()}}}),[]),!k)return null;const M=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(h.D));return r.createElement(v.Ay,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=a.current)||void 0===n?void 0:n.parentElement;(0,b.v)(e).then((()=>{null==e||e.remove()}))}return!1}},((e,n)=>{let{className:o}=e;return r.createElement("div",{ref:(0,l.K4)(a,n),className:i()(t,o,{"wave-quick":M}),style:O})}))},w=(e,t)=>{var n;const{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),(0,b.X)(r.createElement(x,Object.assign({},t,{target:e})),i)},A=(e,t,n)=>{const{wave:o}=r.useContext(c.ConfigContext),[,i,a]=(0,g.Ay)(),l=(0,p.A)((r=>{const l=e.current;if((null==o?void 0:o.disabled)||!l)return;const c=l.querySelector(`.${h.D}`)||l,{showEffect:s}=o||{};(s||w)(c,{className:t,token:i,component:n,event:r,hashId:a})})),s=r.useRef();return e=>{m.A.cancel(s.current),s.current=(0,m.A)((()=>{l(e)}))}};const S=e=>{const{children:t,disabled:n,component:o}=e,{getPrefixCls:u}=(0,r.useContext)(c.ConfigContext),d=(0,r.useRef)(null),p=u("wave"),[,m]=f(p),g=A(d,i()(p,m),o);if(r.useEffect((()=>{const e=d.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!(0,a.A)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||g(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),!r.isValidElement(t))return null!=t?t:null;const h=(0,l.f3)(t)?(0,l.K4)(t.ref,d):d;return(0,s.Ob)(t,{ref:h})}},4424:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});const r=`${n(2279).defaultPrefixCls}-wave-target`},2616:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(6540).createContext(void 0)},1240:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,B:()=>o});var r=n(6540);const o=r.createContext({}),i=r.createContext({message:{},notification:{},modal:{}})},9449:(e,t,n)=>{"use strict";n.d(t,{Ap:()=>a,DU:()=>l,u1:()=>s,uR:()=>u});var r=n(6540),o=n(682);const i=/^[\u4E00-\u9FA5]{2}$/,a=i.test.bind(i);function l(e){return"danger"===e?{danger:!0}:{type:e}}function c(e){return"string"==typeof e}function s(e){return"text"===e||"link"===e}function u(e,t){let n=!1;const i=[];return r.Children.forEach(e,(e=>{const t=typeof e,r="string"===t||"number"===t;if(n&&r){const t=i.length-1,n=i[t];i[t]=`${n}${e}`}else i.push(e);n=r})),r.Children.map(i,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&c(e.type)&&a(e.props.children)?(0,o.Ob)(e,{children:e.props.children.split("").join(n)}):c(e)?a(e)?r.createElement("span",null,e.split("").join(n)):r.createElement("span",null,e):(0,o.zv)(e)?r.createElement("span",null,e):e}(e,t)))}},8777:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>ve});var r=n(6540),o=n(6942),i=n.n(o),a=n(9853),l=n(8719),c=n(57),s=n(2279),u=n(8119),d=n(829),f=n(6327),p=n(3093),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=r.useContext(s.ConfigContext),{prefixCls:o,size:a,className:l}=e,c=m(e,["prefixCls","size","className"]),u=t("btn-group",o),[,,d]=(0,p.Ay)();let f="";switch(a){case"large":f="lg";break;case"small":f="sm"}const h=i()(u,{[`${u}-${f}`]:f,[`${u}-rtl`]:"rtl"===n},l,d);return r.createElement(g.Provider,{value:a},r.createElement("div",Object.assign({},c,{className:h})))};var v=n(9449);const b=(0,r.forwardRef)(((e,t)=>{const{className:n,style:o,children:a,prefixCls:l}=e,c=i()(`${l}-icon`,n);return r.createElement("span",{ref:t,className:c,style:o},a)})),y=b;var C=n(3567),x=n(754);const w=(0,r.forwardRef)(((e,t)=>{const{prefixCls:n,className:o,style:a,iconClassName:l}=e,c=i()(`${n}-loading-icon`,o);return r.createElement(y,{prefixCls:n,className:c,style:a,ref:t},r.createElement(C.A,{className:l}))})),A=()=>({width:0,opacity:0,transform:"scale(0)"}),S=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),$=e=>{const{prefixCls:t,loading:n,existIcon:o,className:i,style:a}=e,l=!!n;return o?r.createElement(w,{prefixCls:t,className:i,style:a}):r.createElement(x.Ay,{visible:l,motionName:`${t}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:A,onAppearActive:S,onEnterStart:A,onEnterActive:S,onLeaveStart:S,onLeaveActive:A},((e,n)=>{let{className:o,style:l}=e;return r.createElement(w,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),l),ref:n,iconClassName:o})}))};var k=n(2187),E=n(5905),O=n(4277),I=n(7358);const M=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),N=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=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(r).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:n}},M(`${t}-primary`,o),M(`${t}-danger`,i)]}};var z=n(9911),P=n(3596),j=n(4925);const R=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return(0,O.oX)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},T=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:(0,j.k)(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:(0,j.k)(c),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:(0,j.k)(s),p=(0,P.z)(new z.kf(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,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.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,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:p,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)}},D=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,k.zA)(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,E.K8)(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},B=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),L=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),H=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),F=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),_=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},B(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),W=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},F(e))}),V=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),q=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?V:W;return Object.assign(Object.assign({},o(e)),B(e.componentCls,t,n))},K=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},q(e,r,o))}),X=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},q(e,r,o))}),G=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Y=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},q(e,n,r))}),U=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},q(e,r,o,n))}),Q=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},K(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),G(e)),Y(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),U(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),_(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Z=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},X(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),G(e)),Y(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),U(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),_(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),J=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},K(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),X(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),G(e)),Y(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),U(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),U(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),_(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ee=e=>{const{componentCls:t}=e;return{[`${t}-color-default`]:Q(e),[`${t}-color-primary`]:Z(e),[`${t}-color-dangerous`]:J(e)}},te=e=>Object.assign(Object.assign(Object.assign(Object.assign({},X(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),U(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),K(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),U(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ne=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:s}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${(0,k.zA)(s)} ${(0,k.zA)(l)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:L(e)},{[`${n}${n}-round${t}`]:H(e)}]},re=e=>{const t=(0,O.oX)(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return ne(t,e.componentCls)},oe=e=>{const t=(0,O.oX)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return ne(t,`${e.componentCls}-sm`)},ie=e=>{const t=(0,O.oX)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return ne(t,`${e.componentCls}-lg`)},ae=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},le=(0,I.OF)("Button",(e=>{const t=R(e);return[D(t),re(t),oe(t),ie(t),ae(t),ee(t),te(t),N(t)]}),T,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});var ce=n(5974);function se(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function ue(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},se(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const de=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${(0,k.zA)(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${(0,k.zA)(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},fe=(0,I.bf)(["Button","compact"],(e=>{const t=R(e);return[(0,ce.G)(t),ue(t),de(t)]}),T);var pe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,o,p,m;const{loading:h=!1,prefixCls:b,color:C,variant:x,type:w,danger:A=!1,shape:S="default",size:k,styles:E,disabled:O,className:I,rootClassName:M,children:N,icon:z,iconPosition:P="start",ghost:j=!1,block:R=!1,htmlType:T="button",classNames:D,style:B={},autoInsertSpace:L}=e,H=pe(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),F=w||"default",[_,W]=(0,r.useMemo)((()=>{if(C&&x)return[C,x];const e=me[F]||[];return A?["danger",e[1]]:e}),[w,C,x,A]),V="danger"===_?"dangerous":_,{getPrefixCls:q,direction:K,button:X}=(0,r.useContext)(s.ConfigContext),G=null===(n=null!=L?L:null==X?void 0:X.autoInsertSpace)||void 0===n||n,Y=q("btn",b),[U,Q,Z]=le(Y),J=(0,r.useContext)(u.A),ee=null!=O?O:J,te=(0,r.useContext)(g),ne=(0,r.useMemo)((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(h)),[h]),[re,oe]=(0,r.useState)(ne.loading),[ie,ae]=(0,r.useState)(!1),ce=(0,r.createRef)(),se=(0,l.K4)(t,ce),ue=1===r.Children.count(N)&&!z&&!(0,v.u1)(W);(0,r.useEffect)((()=>{let e=null;return ne.delay>0?e=setTimeout((()=>{e=null,oe(!0)}),ne.delay):oe(ne.loading),function(){e&&(clearTimeout(e),e=null)}}),[ne]),(0,r.useEffect)((()=>{if(!se||!se.current||!G)return;const e=se.current.textContent;ue&&(0,v.Ap)(e)?ie||ae(!0):ie&&ae(!1)}),[se]);const de=r.useCallback((t=>{var n;re||ee?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)}),[e.onClick,re,ee]);const{compactSize:ge,compactItemClassnames:he}=(0,f.RQ)(Y,K),ve={large:"lg",small:"sm",middle:void 0},be=(0,d.A)((e=>{var t,n;return null!==(n=null!==(t=null!=k?k:ge)&&void 0!==t?t:te)&&void 0!==n?n:e})),ye=be&&null!==(o=ve[be])&&void 0!==o?o:"",Ce=re?"loading":z,xe=(0,a.A)(H,["navigate"]),we=i()(Y,Q,Z,{[`${Y}-${S}`]:"default"!==S&&S,[`${Y}-${F}`]:F,[`${Y}-dangerous`]:A,[`${Y}-color-${V}`]:V,[`${Y}-variant-${W}`]:W,[`${Y}-${ye}`]:ye,[`${Y}-icon-only`]:!N&&0!==N&&!!Ce,[`${Y}-background-ghost`]:j&&!(0,v.u1)(W),[`${Y}-loading`]:re,[`${Y}-two-chinese-chars`]:ie&&G&&!re,[`${Y}-block`]:R,[`${Y}-rtl`]:"rtl"===K,[`${Y}-icon-end`]:"end"===P},he,I,M,null==X?void 0:X.className),Ae=Object.assign(Object.assign({},null==X?void 0:X.style),B),Se=i()(null==D?void 0:D.icon,null===(p=null==X?void 0:X.classNames)||void 0===p?void 0:p.icon),$e=Object.assign(Object.assign({},(null==E?void 0:E.icon)||{}),(null===(m=null==X?void 0:X.styles)||void 0===m?void 0:m.icon)||{}),ke=z&&!re?r.createElement(y,{prefixCls:Y,className:Se,style:$e},z):r.createElement($,{existIcon:!!z,prefixCls:Y,loading:re}),Ee=N||0===N?(0,v.uR)(N,ue&&G):null;if(void 0!==xe.href)return U(r.createElement("a",Object.assign({},xe,{className:i()(we,{[`${Y}-disabled`]:ee}),href:ee?void 0:xe.href,style:Ae,onClick:de,ref:se,tabIndex:ee?-1:0}),ke,Ee));let Oe=r.createElement("button",Object.assign({},H,{type:T,className:we,style:Ae,onClick:de,disabled:ee,ref:se}),ke,Ee,!!he&&r.createElement(fe,{key:"compact",prefixCls:Y}));return(0,v.u1)(W)||(Oe=r.createElement(c.A,{component:"Button",disabled:re},Oe)),U(Oe)})),he=ge;he.Group=h,he.__ANT_BUTTON=!0;const ve=he},4685:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(8826).A},696:(e,t,n)=>{"use strict";n.d(t,{A:()=>X});var r=n(6540),o=n(8e3),i=n(6942),a=n.n(i),l=n(8168),c=n(436),s=n(5544),u=n(2284),d=n(2533),f=n(8210),p=n(3986),m=n(2546),g=n(9379),h=n(4467),v=n(754),b=n(6928),y=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.forceRender,i=e.className,l=e.style,c=e.children,u=e.isActive,d=e.role,f=e.classNames,p=e.styles,m=r.useState(u||o),g=(0,s.A)(m,2),v=g[0],b=g[1];return r.useEffect((function(){(o||u)&&b(!0)}),[o,u]),v?r.createElement("div",{ref:t,className:a()("".concat(n,"-content"),(0,h.A)((0,h.A)({},"".concat(n,"-content-active"),u),"".concat(n,"-content-inactive"),!u),i),style:l,role:d},r.createElement("div",{className:a()("".concat(n,"-content-box"),null==f?void 0:f.body),style:null==p?void 0:p.body},c)):null}));y.displayName="PanelContent";const C=y;var x=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"];const w=r.forwardRef((function(e,t){var n=e.showArrow,o=void 0===n||n,i=e.headerClass,c=e.isActive,s=e.onItemClick,u=e.forceRender,d=e.className,f=e.classNames,m=void 0===f?{}:f,y=e.styles,w=void 0===y?{}:y,A=e.prefixCls,S=e.collapsible,$=e.accordion,k=e.panelKey,E=e.extra,O=e.header,I=e.expandIcon,M=e.openMotion,N=e.destroyInactivePanel,z=e.children,P=(0,p.A)(e,x),j="disabled"===S,R=null!=E&&"boolean"!=typeof E,T=(0,h.A)((0,h.A)((0,h.A)({onClick:function(){null==s||s(k)},onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==b.A.ENTER&&e.which!==b.A.ENTER||null==s||s(k)},role:$?"tab":"button"},"aria-expanded",c),"aria-disabled",j),"tabIndex",j?-1:0),D="function"==typeof I?I(e):r.createElement("i",{className:"arrow"}),B=D&&r.createElement("div",(0,l.A)({className:"".concat(A,"-expand-icon")},["header","icon"].includes(S)?T:{}),D),L=a()("".concat(A,"-item"),(0,h.A)((0,h.A)({},"".concat(A,"-item-active"),c),"".concat(A,"-item-disabled"),j),d),H=a()(i,"".concat(A,"-header"),(0,h.A)({},"".concat(A,"-collapsible-").concat(S),!!S),m.header),F=(0,g.A)({className:H,style:w.header},["header","icon"].includes(S)?{}:T);return r.createElement("div",(0,l.A)({},P,{ref:t,className:L}),r.createElement("div",F,o&&B,r.createElement("span",(0,l.A)({className:"".concat(A,"-header-text")},"header"===S?T:{}),O),R&&r.createElement("div",{className:"".concat(A,"-extra")},E)),r.createElement(v.Ay,(0,l.A)({visible:c,leavedClassName:"".concat(A,"-content-hidden")},M,{forceRender:u,removeOnLeave:N}),(function(e,t){var n=e.className,o=e.style;return r.createElement(C,{ref:t,prefixCls:A,className:n,classNames:m,style:o,styles:w,isActive:c,forceRender:u,role:$?"tabpanel":void 0},z)})))}));var A=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];const S=function(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,o=t.accordion,i=t.collapsible,a=t.destroyInactivePanel,c=t.onItemClick,s=t.activeKey,u=t.openMotion,d=t.expandIcon;return e.map((function(e,t){var f=e.children,m=e.label,g=e.key,h=e.collapsible,v=e.onItemClick,b=e.destroyInactivePanel,y=(0,p.A)(e,A),C=String(null!=g?g:t),x=null!=h?h:i,S=null!=b?b:a,$=!1;return $=o?s[0]===C:s.indexOf(C)>-1,r.createElement(w,(0,l.A)({},y,{prefixCls:n,key:C,panelKey:C,isActive:$,accordion:o,openMotion:u,expandIcon:d,header:m,collapsible:x,onItemClick:function(e){"disabled"!==x&&(c(e),null==v||v(e))},destroyInactivePanel:S}),f)}))}(e,n):(0,m.A)(t).map((function(e,t){return function(e,t,n){if(!e)return null;var o=n.prefixCls,i=n.accordion,a=n.collapsible,l=n.destroyInactivePanel,c=n.onItemClick,s=n.activeKey,u=n.openMotion,d=n.expandIcon,f=e.key||String(t),p=e.props,m=p.header,g=p.headerClass,h=p.destroyInactivePanel,v=p.collapsible,b=p.onItemClick,y=!1;y=i?s[0]===f:s.indexOf(f)>-1;var C=null!=v?v:a,x={key:f,panelKey:f,header:m,headerClass:g,isActive:y,prefixCls:o,destroyInactivePanel:null!=h?h:l,openMotion:u,accordion:i,children:e.props.children,onItemClick:function(e){"disabled"!==C&&(c(e),null==b||b(e))},expandIcon:d,collapsible:C};return"string"==typeof e.type?e:(Object.keys(x).forEach((function(e){void 0===x[e]&&delete x[e]})),r.cloneElement(e,x))}(e,t,n)}))};var $=n(2065);function k(e){var t=e;if(!Array.isArray(t)){var n=(0,u.A)(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var E=r.forwardRef((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-collapse":n,i=e.destroyInactivePanel,u=void 0!==i&&i,p=e.style,m=e.accordion,g=e.className,h=e.children,v=e.collapsible,b=e.openMotion,y=e.expandIcon,C=e.activeKey,x=e.defaultActiveKey,w=e.onChange,A=e.items,E=a()(o,g),O=(0,d.A)([],{value:C,onChange:function(e){return null==w?void 0:w(e)},defaultValue:x,postState:k}),I=(0,s.A)(O,2),M=I[0],N=I[1];(0,f.Ay)(!h,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var z=S(A,h,{prefixCls:o,accordion:m,openMotion:b,expandIcon:y,collapsible:v,destroyInactivePanel:u,onItemClick:function(e){return N((function(){return m?M[0]===e?[]:[e]:M.indexOf(e)>-1?M.filter((function(t){return t!==e})):[].concat((0,c.A)(M),[e])}))},activeKey:M});return r.createElement("div",(0,l.A)({ref:t,className:E,style:p,role:m?"tablist":void 0},(0,$.A)(e,{aria:!0,data:!0})),z)}));const O=Object.assign(E,{Panel:w}),I=O;O.Panel;var M=n(9853),N=n(3723),z=n(682),P=n(2279),j=n(829);const R=r.forwardRef(((e,t)=>{const{getPrefixCls:n}=r.useContext(P.ConfigContext),{prefixCls:o,className:i,showArrow:l=!0}=e,c=n("collapse",o),s=a()({[`${c}-no-arrow`]:!l},i);return r.createElement(I.Panel,Object.assign({ref:t},e,{prefixCls:c,className:s}))}));var T=n(2187),D=n(5905),B=n(977),L=n(7358),H=n(4277);const F=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:s,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:m,fontSizeLG:g,lineHeight:h,lineHeightLG:v,marginSM:b,paddingSM:y,paddingLG:C,paddingXS:x,motionDurationSlow:w,fontSizeIcon:A,contentPadding:S,fontHeight:$,fontHeightLG:k}=e,E=`${(0,T.zA)(s)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},(0,D.dF)(e)),{backgroundColor:o,border:E,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:E,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${(0,T.zA)(c)} ${(0,T.zA)(c)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:h,cursor:"pointer",transition:`all ${w}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:$,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},(0,D.Nk)()),{fontSize:A,transition:`transform ${w}`,svg:{transition:`transform ${w}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:E,[`& > ${t}-content-box`]:{padding:S},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(x).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:v,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:k,marginInlineStart:e.calc(C).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${(0,T.zA)(c)} ${(0,T.zA)(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},_=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},W=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},V=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},q=(0,L.OF)("Collapse",(e=>{const t=(0,H.oX)(e,{collapseHeaderPaddingSM:`${(0,T.zA)(e.paddingXS)} ${(0,T.zA)(e.paddingSM)}`,collapseHeaderPaddingLG:`${(0,T.zA)(e.padding)} ${(0,T.zA)(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[F(t),W(t),V(t),_(t),(0,B.A)(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}))),K=r.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:i,collapse:l}=r.useContext(P.ConfigContext),{prefixCls:c,className:s,rootClassName:u,style:d,bordered:f=!0,ghost:p,size:g,expandIconPosition:h="start",children:v,expandIcon:b}=e,y=(0,j.A)((e=>{var t;return null!==(t=null!=g?g:e)&&void 0!==t?t:"middle"})),C=n("collapse",c),x=n(),[w,A,S]=q(C);const $=r.useMemo((()=>"left"===h?"start":"right"===h?"end":h),[h]),k=null!=b?b:null==l?void 0:l.expandIcon,E=r.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t="function"==typeof k?k(e):r.createElement(o.A,{rotate:e.isActive?90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return(0,z.Ob)(t,(()=>{var e;return{className:a()(null===(e=null==t?void 0:t.props)||void 0===e?void 0:e.className,`${C}-arrow`)}}))}),[k,C]),O=a()(`${C}-icon-position-${$}`,{[`${C}-borderless`]:!f,[`${C}-rtl`]:"rtl"===i,[`${C}-ghost`]:!!p,[`${C}-${y}`]:"middle"!==y},null==l?void 0:l.className,s,u,A,S),R=Object.assign(Object.assign({},(0,N.A)(x)),{motionAppear:!1,leavedClassName:`${C}-content-hidden`}),T=r.useMemo((()=>v?(0,m.A)(v).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:i}=e.props,a=Object.assign(Object.assign({},(0,M.A)(e.props,["disabled"])),{key:n,collapsible:null!=i?i:o?"disabled":void 0});return(0,z.Ob)(e,a)}return e})):null),[v]);return w(r.createElement(I,Object.assign({ref:t,openMotion:R},(0,M.A)(e,["rootClassName"]),{expandIcon:E,prefixCls:C,className:O,style:Object.assign(Object.assign({},null==l?void 0:l.style),d)}),T))}));const X=Object.assign(K,{Panel:R})},9911:(e,t,n)=>{"use strict";n.d(t,{Ol:()=>a,kf:()=>l});var r=n(3029),o=n(2901),i=n(2153);const a=(e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"";let l=function(){return(0,o.A)((function e(t){var n;if((0,r.A)(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const o=Array.isArray(t);o&&t.length?(this.colors=t.map((t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}})),this.metaColor=new i.Q1(this.colors[0].color.metaColor)):this.metaColor=new i.Q1(o?"":t),(!t||o&&!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(){return e=this.toHexString(),t=this.metaColor.a<1,e?a(e,t):"";var e,t}},{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(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map((e=>`${e.color.toRgbString()} ${e.percent}%`)).join(", ")})`}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,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)})):this.toHexString()===e.toHexString())}}])}()},3596:(e,t,n)=>{"use strict";n.d(t,{A:()=>g,z:()=>p});var r=n(6540),o=n(2153),i=n(6942),a=n.n(i),l=n(2533),c=n(696),s=n(9155),u=n(3093),d=n(6058);const f=e=>e.map((e=>(e.colors=e.colors.map(d.Z6),e))),p=(e,t)=>{const{r:n,g:r,b:i,a}=e.toRgb(),l=new o.Q1(e.toRgbString()).onBackground(t).toHsv();return a<=.5?l.v>.5:.299*n+.587*r+.114*i>192},m=e=>{let{label:t}=e;return`panel-${t}`},g=e=>{let{prefixCls:t,presets:n,value:i,onChange:g}=e;const[h]=(0,s.A)("ColorPicker"),[,v]=(0,u.Ay)(),[b]=(0,l.A)(f(n),{value:f(n),postState:f}),y=`${t}-presets`,C=(0,r.useMemo)((()=>b.reduce(((e,t)=>{const{defaultOpen:n=!0}=t;return n&&e.push(m(t)),e}),[])),[b]),x=b.map((e=>{var n;return{key:m(e),label:r.createElement("div",{className:`${y}-label`},null==e?void 0:e.label),children:r.createElement("div",{className:`${y}-items`},Array.isArray(null==e?void 0:e.colors)&&(null===(n=e.colors)||void 0===n?void 0:n.length)>0?e.colors.map(((e,n)=>r.createElement(o.ZC,{key:`preset-${n}-${e.toHexString()}`,color:(0,d.Z6)(e).toRgbString(),prefixCls:t,className:a()(`${y}-color`,{[`${y}-color-checked`]:e.toHexString()===(null==i?void 0:i.toHexString()),[`${y}-color-bright`]:p(e,v.colorBgElevated)}),onClick:()=>{return t=e,void(null==g||g(t));var t}}))):r.createElement("span",{className:`${y}-empty`},h.presetEmpty))}}));return r.createElement("div",{className:y},r.createElement(c.A,{defaultActiveKey:C,ghost:!0,items:x}))}},6058:(e,t,n)=>{"use strict";n.d(t,{E:()=>s,Gp:()=>c,PU:()=>u,W:()=>l,Z6:()=>a});var r=n(436),o=n(2153),i=n(9911);const a=e=>e instanceof i.kf?e:new i.kf(e),l=e=>Math.round(Number(e||0)),c=e=>l(100*e.toHsb().a),s=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const n=e.toHsb();return n.a=t||1,a(n)}return n.a=t||1,a(n)},u=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat((0,r.A)(e),[{percent:100,color:e[e.length-1].color}]);for(let e=0;e{"use strict";n.d(t,{A:()=>a,X:()=>i});var r=n(6540);const o=r.createContext(!1),i=e=>{let{children:t,disabled:n}=e;const i=r.useContext(o);return r.createElement(o.Provider,{value:null!=n?n:i},t)},a=o},8224:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,c:()=>i});var r=n(6540);const o=r.createContext(void 0),i=e=>{let{children:t,size:n}=e;const i=r.useContext(o);return r.createElement(o.Provider,{value:n||i},t)},a=o},2279:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfigConsumer:()=>c,ConfigContext:()=>l,Variants:()=>a,defaultIconPrefixCls:()=>i,defaultPrefixCls:()=>o});var r=n(6540);const o="ant",i="anticon",a=["outlined","borderless","filled"],l=r.createContext({getPrefixCls:(e,t)=>t||(e?`${o}-${e}`:o),iconPrefixCls:i}),{Consumer:c}=l},934:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3093);const o=e=>{const[,,,,t]=(0,r.Ay)();return t?`${e}-css-var`:""}},829:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6540),o=n(8224);const i=e=>{const t=r.useContext(o.A);return r.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])}},1587:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>X,cr:()=>V});var r=n(6540),o=n.t(r,2),i=n(2187),a=n(1053),l=n(8104),c=n(488),s=n(8877),u=n(9407),d=n(1815),f=n(685);const p=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;r.useEffect((()=>(0,d.L)(null==t?void 0:t.Modal)),[t]);const i=r.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return r.createElement(f.A.Provider,{value:i},n)};var m=n(8182),g=n(9806),h=n(723),v=n(2279),b=n(5748),y=n(4978),C=n(998),x=n(5089);const w=`-ant-${Date.now()}-${Math.random()}`;function A(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new y.q(e),i=(0,b.cM)(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new y.q(t.primaryColor),i=(0,b.cM)(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new y.q(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);(0,C.A)()&&(0,x.BD)(n,`${w}-dynamic-theme`)}var S=n(8119),$=n(8224);const k=function(){return{componentDisabled:(0,r.useContext)(S.A),componentSize:(0,r.useContext)($.A)}};var E=n(3210);const O=Object.assign({},o),{useId:I}=O,M=void 0===I?()=>"":I;var N=n(754),z=n(3093);function P(e){const{children:t}=e,[,n]=(0,z.Ay)(),{motion:o}=n,i=r.useRef(!1);return i.current=i.current||!1===o,i.current?r.createElement(N.Kq,{motion:o},t):t}const j=()=>null;var R=n(2366),T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o({getPrefixCls:(e,t)=>t||(e?`${_()}-${e}`:_()),getIconPrefixCls:W,getRootPrefixCls:()=>B||_(),getTheme:()=>H,holderRender:F}),q=e=>{const{children:t,csp:n,autoInsertSpaceInButton:o,alert:d,anchor:f,form:b,locale:y,componentSize:C,direction:x,space:w,splitter:A,virtual:k,dropdownMatchSelectWidth:O,popupMatchSelectWidth:I,popupOverflow:N,legacyLocale:z,parentContext:B,iconPrefixCls:L,theme:H,componentDisabled:F,segmented:_,statistic:W,spin:V,calendar:q,carousel:K,cascader:X,collapse:G,typography:Y,checkbox:U,descriptions:Q,divider:Z,drawer:J,skeleton:ee,steps:te,image:ne,layout:re,list:oe,mentions:ie,modal:ae,progress:le,result:ce,slider:se,breadcrumb:ue,menu:de,pagination:fe,input:pe,textArea:me,empty:ge,badge:he,radio:ve,rate:be,switch:ye,transfer:Ce,avatar:xe,message:we,tag:Ae,table:Se,card:$e,tabs:ke,timeline:Ee,timePicker:Oe,upload:Ie,notification:Me,tree:Ne,colorPicker:ze,datePicker:Pe,rangePicker:je,flex:Re,wave:Te,dropdown:De,warning:Be,tour:Le,floatButtonGroup:He,variant:Fe,inputNumber:_e,treeSelect:We}=e,Ve=r.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||B.getPrefixCls("");return t?`${o}-${t}`:o}),[B.getPrefixCls,e.prefixCls]),qe=L||B.iconPrefixCls||v.defaultIconPrefixCls,Ke=n||B.csp;(0,R.A)(qe,Ke);const Xe=function(e,t,n){var r;(0,s.rJ)("ConfigProvider");const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},g.sb),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:g.sb.hashed,cssVar:null==t?void 0:t.cssVar}),a=M();return(0,l.A)((()=>{var r,l;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach((t=>{c[t]=Object.assign(Object.assign({},c[t]),e.components[t])}));const s=`css-var-${a.replace(/:/g,"")}`,u=(null!==(r=o.cssVar)&&void 0!==r?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null===(l=o.cssVar)||void 0===l?void 0:l.key)||s});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:c,cssVar:u})}),[o,i],((e,t)=>e.some(((e,n)=>{const r=t[n];return!(0,E.A)(e,r,!0)}))))}(H,B.theme,{prefixCls:Ve("")});const Ge={csp:Ke,autoInsertSpaceInButton:o,alert:d,anchor:f,locale:y||z,direction:x,space:w,splitter:A,virtual:k,popupMatchSelectWidth:null!=I?I:O,popupOverflow:N,getPrefixCls:Ve,iconPrefixCls:qe,theme:Xe,segmented:_,statistic:W,spin:V,calendar:q,carousel:K,cascader:X,collapse:G,typography:Y,checkbox:U,descriptions:Q,divider:Z,drawer:J,skeleton:ee,steps:te,image:ne,input:pe,textArea:me,layout:re,list:oe,mentions:ie,modal:ae,progress:le,result:ce,slider:se,breadcrumb:ue,menu:de,pagination:fe,empty:ge,badge:he,radio:ve,rate:be,switch:ye,transfer:Ce,avatar:xe,message:we,tag:Ae,table:Se,card:$e,tabs:ke,timeline:Ee,timePicker:Oe,upload:Ie,notification:Me,tree:Ne,colorPicker:ze,datePicker:Pe,rangePicker:je,flex:Re,wave:Te,dropdown:De,warning:Be,tour:Le,floatButtonGroup:He,variant:Fe,inputNumber:_e,treeSelect:We};const Ye=Object.assign({},B);Object.keys(Ge).forEach((e=>{void 0!==Ge[e]&&(Ye[e]=Ge[e])})),D.forEach((t=>{const n=e[t];n&&(Ye[t]=n)})),void 0!==o&&(Ye.button=Object.assign({autoInsertSpace:o},Ye.button));const Ue=(0,l.A)((()=>Ye),Ye,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Qe=r.useMemo((()=>({prefixCls:qe,csp:Ke})),[qe,Ke]);let Ze=r.createElement(r.Fragment,null,r.createElement(j,{dropdownMatchSelectWidth:O}),t);const Je=r.useMemo((()=>{var e,t,n,r;return(0,c.h)((null===(e=m.A.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ue.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Ue.form)||void 0===r?void 0:r.validateMessages)||{},(null==b?void 0:b.validateMessages)||{})}),[Ue,null==b?void 0:b.validateMessages]);Object.keys(Je).length>0&&(Ze=r.createElement(u.A.Provider,{value:Je},Ze)),y&&(Ze=r.createElement(p,{locale:y,_ANT_MARK__:"internalMark"},Ze)),(qe||Ke)&&(Ze=r.createElement(a.A.Provider,{value:Qe},Ze)),C&&(Ze=r.createElement($.c,{size:C},Ze)),Ze=r.createElement(P,null,Ze);const et=r.useMemo((()=>{const e=Xe||{},{algorithm:t,token:n,components:r,cssVar:o}=e,a=T(e,["algorithm","token","components","cssVar"]),l=t&&(!Array.isArray(t)||t.length>0)?(0,i.an)(t):g.zQ,c={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=l:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=(0,i.an)(r.algorithm)),delete r.algorithm),c[t]=r}));const s=Object.assign(Object.assign({},h.A),n);return Object.assign(Object.assign({},a),{theme:l,token:s,components:c,override:Object.assign({override:s},c),cssVar:o})}),[Xe]);return H&&(Ze=r.createElement(g.vG.Provider,{value:et},Ze)),Ue.warning&&(Ze=r.createElement(s._n.Provider,{value:Ue.warning},Ze)),void 0!==F&&(Ze=r.createElement(S.X,{disabled:F},Ze)),r.createElement(v.ConfigContext.Provider,{value:Ue},Ze)},K=e=>{const t=r.useContext(v.ConfigContext),n=r.useContext(f.A);return r.createElement(q,Object.assign({parentContext:t,legacyLocale:n},e))};K.ConfigContext=v.ConfigContext,K.SizeContext=$.A,K.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(B=t),void 0!==n&&(L=n),"holderRender"in e&&(F=o),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?H=r:A(_(),r))},K.useConfig=k,Object.defineProperty(K,"SizeContext",{get:()=>$.A});const X=K},8826:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(9379);const o=(0,r.A)((0,r.A)({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});var i=n(5341);const a={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},o),timePickerLocale:Object.assign({},i.A)}},4241:(e,t,n)=>{"use strict";n.d(t,{$W:()=>u,Op:()=>c,Pp:()=>f,XB:()=>d,cK:()=>a,hb:()=>s,jC:()=>l});var r=n(6540),o=n(7537),i=n(9853);const a=r.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),l=r.createContext(null),c=e=>{const t=(0,i.A)(e,["prefixCls"]);return r.createElement(o.Op,Object.assign({},t))},s=r.createContext({prefixCls:""}),u=r.createContext({});const d=e=>{let{children:t,status:n,override:o}=e;const i=(0,r.useContext)(u),a=(0,r.useMemo)((()=>{const e=Object.assign({},i);return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,o,i]);return r.createElement(u.Provider,{value:a},t)},f=(0,r.createContext)(void 0)},9407:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(6540).createContext)(void 0)},8551:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6540),o=n(981),i=n(7447),a=n(4945);const l=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=(0,r.useRef)({}),n=(0,i.A)(),l=(0,a.Ay)();return(0,o.A)((()=>{const r=l.subscribe((r=>{t.current=r,e&&n()}));return()=>l.unsubscribe(r)}),[]),t.current}},372:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o});var r=n(8551);const o={useBreakpoint:function(){return(0,r.A)()}}},712:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Affix:()=>le,Alert:()=>Re,Anchor:()=>it,App:()=>pt,AutoComplete:()=>xi,Avatar:()=>ka,BackTop:()=>Pa,Badge:()=>el,Breadcrumb:()=>Us,Button:()=>Qs.Ay,Calendar:()=>rp,Card:()=>vm,Carousel:()=>vg,Cascader:()=>Mh,Checkbox:()=>Lh,Col:()=>Uh,Collapse:()=>Qh.A,ColorPicker:()=>SC,ConfigProvider:()=>ab.Ay,DatePicker:()=>dx,Descriptions:()=>Ex,Divider:()=>nv,Drawer:()=>Zx,Dropdown:()=>pw,Empty:()=>eo,Flex:()=>kw,FloatButton:()=>Jw,Form:()=>rS,Grid:()=>oS.Ay,Image:()=>o$,Input:()=>cy,InputNumber:()=>hb,Layout:()=>m$,List:()=>fk,Mentions:()=>Tk,Menu:()=>Is,Modal:()=>Bk.A,Pagination:()=>L$,Popconfirm:()=>Yk,Popover:()=>wa,Progress:()=>ME,QRCode:()=>lO,Radio:()=>sO,Rate:()=>SO,Result:()=>FO,Row:()=>_O,Segmented:()=>yv,Select:()=>gi,Skeleton:()=>op.A,Slider:()=>Ky,Space:()=>cw,Spin:()=>J$,Splitter:()=>kB,Statistic:()=>tI,Steps:()=>$I,Switch:()=>BI,Table:()=>QP,Tabs:()=>Jp,Tag:()=>uj,TimePicker:()=>bj,Timeline:()=>Oj,Tooltip:()=>da,Tour:()=>Zj,Transfer:()=>$R,Tree:()=>iP,TreeSelect:()=>eT,Typography:()=>ZT,Upload:()=>eB,Watermark:()=>dB,message:()=>Dk.Ay,notification:()=>Lk.Ay,theme:()=>dj.A,version:()=>tB.A});var r=n(6540),o=n(6942),i=n.n(o),a=n(8168),l=n(2546),c=n(8210),s=n(9379),u=n(2284),d=n(6588),f=n(8719),p=r.createContext(null);var m=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){g&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),y?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){g&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;b.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),x=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),P="undefined"!=typeof WeakMap?new WeakMap:new m,j=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=C.getInstance(),r=new z(t,n,this);P.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){j.prototype[e]=function(){var t;return(t=P.get(this))[e].apply(t,arguments)}}));const R=void 0!==h.ResizeObserver?h.ResizeObserver:j;var T=new Map;var D=new R((function(e){e.forEach((function(e){var t,n=e.target;null===(t=T.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var B=n(3029),L=n(2901),H=n(5501),F=n(9426),_=function(e){(0,H.A)(n,e);var t=(0,F.A)(n);function n(){return(0,B.A)(this,n),t.apply(this,arguments)}return(0,L.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function W(e,t){var n=e.children,o=e.disabled,i=r.useRef(null),a=r.useRef(null),l=r.useContext(p),c="function"==typeof n,m=c?n(i):n,g=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!c&&r.isValidElement(m)&&(0,f.f3)(m),v=h?m.ref:null,b=(0,f.xK)(v,i),y=function(){var e;return(0,d.Ay)(i.current)||(i.current&&"object"===(0,u.A)(i.current)?(0,d.Ay)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||(0,d.Ay)(a.current)};r.useImperativeHandle(t,(function(){return y()}));var C=r.useRef(e);C.current=e;var x=r.useCallback((function(e){var t=C.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,c=e.offsetWidth,u=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(g.current.width!==d||g.current.height!==f||g.current.offsetWidth!==c||g.current.offsetHeight!==u){var p={width:d,height:f,offsetWidth:c,offsetHeight:u};g.current=p;var m=c===Math.round(i)?i:c,h=u===Math.round(a)?a:u,v=(0,s.A)((0,s.A)({},p),{},{offsetWidth:m,offsetHeight:h});null==l||l(v,e,r),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return r.useEffect((function(){var e,t,n=y();return n&&!o&&(e=n,t=x,T.has(e)||(T.set(e,new Set),D.observe(e)),T.get(e).add(t)),function(){return function(e,t){T.has(e)&&(T.get(e).delete(t),T.get(e).size||(D.unobserve(e),T.delete(e)))}(n,x)}}),[i.current,o]),r.createElement(_,{ref:a},h?r.cloneElement(m,{ref:b}):m)}const V=r.forwardRef(W);function q(e,t){var n=e.children;return("function"==typeof n?[n]:(0,l.A)(n)).map((function(n,o){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return r.createElement(V,(0,a.A)({},e,{key:i,ref:0===o?t:void 0}),n)}))}var K=r.forwardRef(q);K.Collection=function(e){var t=e.children,n=e.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(p),l=r.useCallback((function(e,t,r){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){l===o.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(p.Provider,{value:l},t)};const X=K;var G=n(9853),Y=n(436),U=n(5371);const Q=function(e){let t;const n=function(){if(null==t){for(var n=arguments.length,r=new Array(n),o=0;o()=>{t=null,e.apply(void 0,(0,Y.A)(n))})(r))}};return n.cancel=()=>{U.A.cancel(t),t=null},n};var Z=n(2279),J=n(7358);const ee=(0,J.OF)("Affix",(e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}}),(e=>({zIndexPopup:e.zIndexBase+10})));function te(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function ne(e,t,n){if(void 0!==n&&Math.round(t.top)>Math.round(e.top)-n)return n+t.top}function re(e,t,n){if(void 0!==n&&Math.round(t.bottom){var n;const{style:o,offsetTop:a,offsetBottom:l,prefixCls:c,className:s,rootClassName:u,children:d,target:f,onChange:p}=e,{getPrefixCls:m,getTargetContainer:g}=r.useContext(Z.ConfigContext),h=m("affix",c),[v,b]=r.useState(!1),[y,C]=r.useState(),[x,w]=r.useState(),A=r.useRef(0),S=r.useRef(null),$=r.useRef(),k=r.useRef(null),E=r.useRef(null),O=r.useRef(null),I=null!==(n=null!=f?f:g)&&void 0!==n?n:ie,M=void 0===l&&void 0===a?0:a,N=()=>{A.current=1,(()=>{if(1!==A.current||!E.current||!k.current||!I)return;const e=I();if(e){const t={status:0},n=te(k.current);if(0===n.top&&0===n.left&&0===n.width&&0===n.height)return;const r=te(e),o=ne(n,r,M),i=re(n,r,l);void 0!==o?(t.affixStyle={position:"fixed",top:o,width:n.width,height:n.height},t.placeholderStyle={width:n.width,height:n.height}):void 0!==i&&(t.affixStyle={position:"fixed",bottom:i,width:n.width,height:n.height},t.placeholderStyle={width:n.width,height:n.height}),t.lastAffix=!!t.affixStyle,v!==t.lastAffix&&(null==p||p(t.lastAffix)),A.current=t.status,C(t.affixStyle),w(t.placeholderStyle),b(t.lastAffix)}})()},z=Q((()=>{N()})),P=Q((()=>{if(I&&y){const e=I();if(e&&k.current){const t=te(e),n=te(k.current),r=ne(n,t,M),o=re(n,t,l);if(void 0!==r&&y.top===r||void 0!==o&&y.bottom===o)return}}N()})),j=()=>{const e=null==I?void 0:I();e&&(oe.forEach((t=>{var n;$.current&&(null===(n=S.current)||void 0===n||n.removeEventListener(t,$.current)),null==e||e.addEventListener(t,P)})),S.current=e,$.current=P)};r.useImperativeHandle(t,(()=>({updatePosition:z}))),r.useEffect((()=>(O.current=setTimeout(j),()=>(()=>{O.current&&(clearTimeout(O.current),O.current=null);const e=null==I?void 0:I();oe.forEach((t=>{var n;null==e||e.removeEventListener(t,P),$.current&&(null===(n=S.current)||void 0===n||n.removeEventListener(t,$.current))})),z.cancel(),P.cancel()})())),[]),r.useEffect((()=>{j()}),[f,y]),r.useEffect((()=>{z()}),[f,a,l]);const[R,T,D]=ee(h),B=i()(u,T,h,D),L=i()({[B]:y});let H=(0,G.A)(e,["prefixCls","offsetTop","offsetBottom","target","onChange","rootClassName"]);return R(r.createElement(X,{onResize:z},r.createElement("div",Object.assign({style:o,className:s,ref:k},H),y&&r.createElement("div",{style:x,"aria-hidden":"true"}),r.createElement("div",{className:L,ref:E,style:y},r.createElement(X,{onResize:z},d)))))}));const le=ae;var ce=n(8811),se=n(6029),ue=n(7852),de=n(7541),fe=n(7850),pe=n(754),me=n(2065),ge=n(682),he=n(2187),ve=n(5905);const be=(e,t,n,r,o)=>({background:e,border:`${(0,he.zA)(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),ye=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:s,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${s}, opacity ${n} ${s},\n padding-top ${n} ${s}, padding-bottom ${n} ${s},\n margin-bottom ${n} ${s}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:o,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:f,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Ce=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:c,colorErrorBorder:s,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":be(o,r,n,e,t),"&-info":be(p,f,d,e,t),"&-warning":be(l,a,i,e,t),"&-error":Object.assign(Object.assign({},be(u,s,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},xe=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:(0,he.zA)(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}},we=(0,J.OF)("Alert",(e=>[ye(e),Ce(e),xe(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})));var Ae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{icon:t,prefixCls:n,type:o}=e,a=Se[o]||null;return t?(0,ge.fx)(t,r.createElement("span",{className:`${n}-icon`},t),(()=>({className:i()(`${n}-icon`,{[t.props.className]:t.props.className})}))):r.createElement(a,{className:`${n}-icon`})},ke=e=>{const{isClosable:t,prefixCls:n,closeIcon:o,handleClose:i,ariaProps:a}=e,l=!0===o||void 0===o?r.createElement(ue.A,null):o;return t?r.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},a),l):null},Ee=r.forwardRef(((e,t)=>{const{description:n,prefixCls:o,message:a,banner:l,className:c,rootClassName:s,style:u,onMouseEnter:d,onMouseLeave:p,onClick:m,afterClose:g,showIcon:h,closable:v,closeText:b,closeIcon:y,action:C,id:x}=e,w=Ae(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[A,S]=r.useState(!1);const $=r.useRef(null);r.useImperativeHandle(t,(()=>({nativeElement:$.current})));const{getPrefixCls:k,direction:E,alert:O}=r.useContext(Z.ConfigContext),I=k("alert",o),[M,N,z]=we(I),P=t=>{var n;S(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},j=r.useMemo((()=>void 0!==e.type?e.type:l?"warning":"info"),[e.type,l]),R=r.useMemo((()=>!("object"!=typeof v||!v.closeIcon)||(!!b||("boolean"==typeof v?v:!1!==y&&null!=y||!!(null==O?void 0:O.closable)))),[b,y,v,null==O?void 0:O.closable]),T=!(!l||void 0!==h)||h,D=i()(I,`${I}-${j}`,{[`${I}-with-description`]:!!n,[`${I}-no-icon`]:!T,[`${I}-banner`]:!!l,[`${I}-rtl`]:"rtl"===E},null==O?void 0:O.className,c,s,z,N),B=(0,me.A)(w,{aria:!0,data:!0}),L=r.useMemo((()=>{var e,t;return"object"==typeof v&&v.closeIcon?v.closeIcon:b||(void 0!==y?y:"object"==typeof(null==O?void 0:O.closable)&&(null===(e=null==O?void 0:O.closable)||void 0===e?void 0:e.closeIcon)?null===(t=null==O?void 0:O.closable)||void 0===t?void 0:t.closeIcon:null==O?void 0:O.closeIcon)}),[y,v,b,null==O?void 0:O.closeIcon]),H=r.useMemo((()=>{const e=null!=v?v:null==O?void 0:O.closable;if("object"==typeof e){const{closeIcon:t}=e;return Ae(e,["closeIcon"])}return{}}),[v,null==O?void 0:O.closable]);return M(r.createElement(pe.Ay,{visible:!A,motionName:`${I}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:g},((t,o)=>{let{className:l,style:c}=t;return r.createElement("div",Object.assign({id:x,ref:(0,f.K4)($,o),"data-show":!A,className:i()(D,l),style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.style),u),c),onMouseEnter:d,onMouseLeave:p,onClick:m,role:"alert"},B),T?r.createElement($e,{description:n,icon:e.icon,prefixCls:I,type:j}):null,r.createElement("div",{className:`${I}-content`},a?r.createElement("div",{className:`${I}-message`},a):null,n?r.createElement("div",{className:`${I}-description`},n):null),C?r.createElement("div",{className:`${I}-action`},C):null,r.createElement(ke,{isClosable:R,prefixCls:I,closeIcon:L,handleClose:P,ariaProps:H}))})))}));const Oe=Ee;var Ie=n(3954),Me=n(2176),Ne=n(6822);let ze=function(e){function t(){var e;return(0,B.A)(this,t),e=function(e,t,n){return t=(0,Ie.A)(t),(0,Ne.A)(e,(0,Me.A)()?Reflect.construct(t,n||[],(0,Ie.A)(e).constructor):t.apply(e,n))}(this,t,arguments),e.state={error:void 0,info:{componentStack:""}},e}return(0,H.A)(t,e),(0,L.A)(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,description:t,id:n,children:o}=this.props,{error:i,info:a}=this.state,l=(null==a?void 0:a.componentStack)||null,c=void 0===e?(i||"").toString():e,s=void 0===t?l:t;return i?r.createElement(Oe,{id:n,type:"error",message:c,description:r.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},s)}):o}}])}(r.Component);const Pe=ze,je=Oe;je.ErrorBoundary=Pe;const Re=je;var Te=n(6956);const De=e=>"object"==typeof e&&null!=e&&1===e.nodeType,Be=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,Le=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightit||i>e&&a=t&&l>=n?i-e-r:a>t&&ln?a-t+o:0,Fe=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},_e=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:c,boundary:s,skipOverflowHiddenElements:u}=t,d="function"==typeof s?s:e=>e!==s;if(!De(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let m=e;for(;De(m)&&d(m);){if(m=Fe(m),m===f){p.push(m);break}null!=m&&m===document.body&&Le(m)&&!Le(document.documentElement)||null!=m&&Le(m,u)&&p.push(m)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,h=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:v,scrollY:b}=window,{height:y,width:C,top:x,right:w,bottom:A,left:S}=e.getBoundingClientRect(),{top:$,right:k,bottom:E,left:O}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let I="start"===l||"nearest"===l?x-$:"end"===l?A+E:x+y/2-$+E,M="center"===c?S+C/2-O+k:"end"===c?w+k:S-O;const N=[];for(let e=0;e=0&&S>=0&&A<=h&&w<=g&&x>=o&&A<=s&&S>=u&&w<=i)return N;const d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),$=parseInt(d.borderTopWidth,10),k=parseInt(d.borderRightWidth,10),E=parseInt(d.borderBottomWidth,10);let O=0,z=0;const P="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-k:0,j="offsetHeight"in t?t.offsetHeight-t.clientHeight-$-E:0,R="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,T="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)O="start"===l?I:"end"===l?I-h:"nearest"===l?He(b,b+h,h,$,E,b+I,b+I+y,y):I-h/2,z="start"===c?M:"center"===c?M-g/2:"end"===c?M-g:He(v,v+g,g,m,k,v+M,v+M+C,C),O=Math.max(0,O+b),z=Math.max(0,z+v);else{O="start"===l?I-o-$:"end"===l?I-s+E+j:"nearest"===l?He(o,s,n,$,E+j,I,I+y,y):I-(o+n/2)+j/2,z="start"===c?M-u-m:"center"===c?M-(u+r/2)+P/2:"end"===c?M-i+k+P:He(u,i,r,m,k+P,M,M+C,C);const{scrollLeft:e,scrollTop:a}=t;O=0===T?0:Math.max(0,Math.min(a+O/T,t.scrollHeight-n/T+j)),z=0===R?0:Math.max(0,Math.min(e+z/R,t.scrollWidth-r/R+P)),I+=a-O,M+=e-z}N.push({el:t,top:O,left:z})}return N};function We(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(_e(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of _e(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}function Ve(e){return null!=e&&e===e.window}const qe=e=>{var t,n;if("undefined"==typeof window)return 0;let r=0;return Ve(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!Ve(e)&&"number"!=typeof r&&(r=null===(n=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===n?void 0:n.scrollTop),r};function Ke(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=qe(i),l=Date.now(),c=()=>{const t=Date.now()-l,n=function(e,t,n,r){const o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(t>o?o:t,a,e,o);Ve(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t{const{href:t,title:n,prefixCls:o,children:a,className:l,target:c,replace:s}=e,u=r.useContext(Ge),{registerLink:d,unregisterLink:f,scrollTo:p,onClick:m,activeLink:g,direction:h}=u||{};r.useEffect((()=>(null==d||d(t),()=>{null==f||f(t)})),[t]);const{getPrefixCls:v}=r.useContext(Z.ConfigContext),b=v("anchor",o),y=g===t,C=i()(`${b}-link`,l,{[`${b}-link-active`]:y}),x=i()(`${b}-link-title`,{[`${b}-link-title-active`]:y});return r.createElement("div",{className:C},r.createElement("a",{className:x,href:t,title:"string"==typeof n?n:"",target:c,onClick:e=>{null==m||m(e,{title:n,href:t}),null==p||p(t),s&&(e.preventDefault(),window.location.replace(t))}},n),"horizontal"!==h?a:null)};var Ue=n(4277);const Qe=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:r,lineWidthBold:o,colorPrimary:i,lineType:a,colorSplit:l,calc:c}=e;return{[`${t}-wrapper`]:{marginBlockStart:c(n).mul(-1).equal(),paddingBlockStart:n,[t]:Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"relative",paddingInlineStart:o,[`${t}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${(0,he.zA)(e.linkPaddingInlineStart)} 0`,"&-title":Object.assign(Object.assign({},ve.L9),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${(0,he.zA)(o)} ${a} ${l}`,content:'" "'},[`${t}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${r} ease-in-out`,width:o,backgroundColor:i,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},Ze=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:r,colorPrimary:o}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:r,backgroundColor:o}}}}},Je=(0,J.OF)("Anchor",(e=>{const{fontSize:t,fontSizeLG:n,paddingXXS:r,calc:o}=e,i=(0,Ue.oX)(e,{holderOffsetBlock:r,anchorPaddingBlockSecondary:o(r).div(2).equal(),anchorTitleBlock:o(t).div(14).mul(3).equal(),anchorBallSize:o(n).div(2).equal()});return[Qe(i),Ze(i)]}),(e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding})));function et(){return window}function tt(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?n.top-e.ownerDocument.documentElement.clientTop:n.top-t.getBoundingClientRect().top:n.top}const nt=/#([\S ]+)$/;const rt=e=>{var t;const{rootClassName:n,prefixCls:o,className:a,style:l,offsetTop:c,affix:s=!0,showInkInFixed:u=!1,children:d,items:f,direction:p="vertical",bounds:m,targetOffset:g,onClick:h,onChange:v,getContainer:b,getCurrentAnchor:y,replace:C}=e;const[x,w]=r.useState([]),[A,S]=r.useState(null),$=r.useRef(A),k=r.useRef(null),E=r.useRef(null),O=r.useRef(!1),{direction:I,anchor:M,getTargetContainer:N,getPrefixCls:z}=r.useContext(Z.ConfigContext),P=z("anchor",o),j=(0,Xe.A)(P),[R,T,D]=Je(P,j),B=null!==(t=null!=b?b:N)&&void 0!==t?t:et,L=JSON.stringify(x),H=(0,Te.A)((e=>{x.includes(e)||w((t=>[].concat((0,Y.A)(t),[e])))})),F=(0,Te.A)((e=>{x.includes(e)&&w((t=>t.filter((t=>t!==e))))})),_=(0,Te.A)((e=>{if($.current===e)return;const t="function"==typeof y?y(e):e;S(t),$.current=t,null==v||v(e)})),W=r.useCallback((()=>{if(O.current)return;const e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;const r=[],o=B();if(e.forEach((e=>{const i=nt.exec(null==e?void 0:e.toString());if(!i)return;const a=document.getElementById(i[1]);if(a){const i=tt(a,o);i<=t+n&&r.push({link:e,top:i})}})),r.length)return r.reduce(((e,t)=>t.top>e.top?t:e)).link;return""}(x,void 0!==g?g:c||0,m);_(e)}),[L,g,c]),V=r.useCallback((e=>{_(e);const t=nt.exec(e);if(!t)return;const n=document.getElementById(t[1]);if(!n)return;const r=B();let o=qe(r)+tt(n,r);o-=void 0!==g?g:c||0,O.current=!0,Ke(o,{getContainer:B,callback(){O.current=!1}})}),[g,c]),q=i()(T,D,j,n,`${P}-wrapper`,{[`${P}-wrapper-horizontal`]:"horizontal"===p,[`${P}-rtl`]:"rtl"===I},a,null==M?void 0:M.className),K=i()(P,{[`${P}-fixed`]:!s&&!u}),X=i()(`${P}-ink`,{[`${P}-ink-visible`]:A}),G=Object.assign(Object.assign({maxHeight:c?`calc(100vh - ${c}px)`:"100vh"},null==M?void 0:M.style),l),U=e=>Array.isArray(e)?e.map((e=>r.createElement(Ye,Object.assign({replace:C},e,{key:e.key}),"vertical"===p&&U(e.children)))):null,Q=r.createElement("div",{ref:k,className:q,style:G},r.createElement("div",{className:K},r.createElement("span",{className:X,ref:E}),"items"in e?U(f):d));r.useEffect((()=>{const e=B();return W(),null==e||e.addEventListener("scroll",W),()=>{null==e||e.removeEventListener("scroll",W)}}),[L]),r.useEffect((()=>{"function"==typeof y&&_(y($.current||""))}),[y]),r.useEffect((()=>{(()=>{var e;const t=null===(e=k.current)||void 0===e?void 0:e.querySelector(`.${P}-link-title-active`);if(t&&E.current){const{style:e}=E.current,n="horizontal"===p;e.top=n?"":`${t.offsetTop+t.clientHeight/2}px`,e.height=n?"":`${t.clientHeight}px`,e.left=n?`${t.offsetLeft}px`:"",e.width=n?`${t.clientWidth}px`:"",n&&We(t,{scrollMode:"if-needed",block:"nearest"})}})()}),[p,y,L,A]);const J=r.useMemo((()=>({registerLink:H,unregisterLink:F,scrollTo:V,activeLink:A,onClick:h,direction:p})),[A,h,V,p]),ee=s&&"object"==typeof s?s:void 0;return R(r.createElement(Ge.Provider,{value:J},s?r.createElement(le,Object.assign({offsetTop:c,target:B},ee),Q):Q))},ot=rt;ot.Link=Ye;const it=ot;var at=n(8877),lt=n(9585),ct=n(6777),st=n(4045),ut=n(1240);const dt=(0,J.OF)("App",(e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}}),(()=>({}))),ft=e=>{const{prefixCls:t,children:n,className:o,rootClassName:a,message:l,notification:c,style:s,component:u="div"}=e,{direction:d,getPrefixCls:f}=(0,r.useContext)(Z.ConfigContext),p=f("app",t),[m,g,h]=dt(p),v=i()(g,p,o,a,h,{[`${p}-rtl`]:"rtl"===d}),b=(0,r.useContext)(ut.B),y=r.useMemo((()=>({message:Object.assign(Object.assign({},b.message),l),notification:Object.assign(Object.assign({},b.notification),c)})),[l,c,b.message,b.notification]),[C,x]=(0,lt.A)(y.message),[w,A]=(0,st.A)(y.notification),[S,$]=(0,ct.A)(),k=r.useMemo((()=>({message:C,notification:w,modal:S})),[C,w,S]);(0,at.rJ)("App")(!(h&&!1===u),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const E=!1===u?r.Fragment:u,O={className:v,style:s};return m(r.createElement(ut.A.Provider,{value:k},r.createElement(ut.B.Provider,{value:y},r.createElement(E,Object.assign({},!1===u?void 0:O),$,x,A,n))))};ft.useApp=()=>r.useContext(ut.A);const pt=ft;var mt=n(275),gt=n(3425),ht=n(4467),vt=n(5544),bt=n(3986),yt=n(2533),Ct=n(981);const xt=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};const wt=function(e){var t=e.className,n=e.customizeIcon,o=e.customizeIconProps,a=e.children,l=e.onMouseDown,c=e.onClick,s="function"==typeof n?n(o):n;return r.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==l||l(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:c,"aria-hidden":!0},void 0!==s?s:r.createElement("span",{className:i()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},a))};var At=r.createContext(null);function St(){return r.useContext(At)}function $t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=r.useRef(null),n=r.useRef(null);return r.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var kt=n(6928);var Et=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ot=void 0;function It(e,t){var n=e.prefixCls,o=e.invalidate,l=e.item,c=e.renderItem,u=e.responsive,d=e.responsiveDisabled,f=e.registerSize,p=e.itemKey,m=e.className,g=e.style,h=e.children,v=e.display,b=e.order,y=e.component,C=void 0===y?"div":y,x=(0,bt.A)(e,Et),w=u&&!v;function A(e){f(p,e)}r.useEffect((function(){return function(){A(null)}}),[]);var S,$=c&&l!==Ot?c(l):h;o||(S={opacity:w?0:1,height:w?0:Ot,overflowY:w?"hidden":Ot,order:u?b:Ot,pointerEvents:w?"none":Ot,position:w?"absolute":Ot});var k={};w&&(k["aria-hidden"]=!0);var E=r.createElement(C,(0,a.A)({className:i()(!o&&n,m),style:(0,s.A)((0,s.A)({},S),g)},k,x,{ref:t}),$);return u&&(E=r.createElement(X,{onResize:function(e){A(e.offsetWidth)},disabled:d},E)),E}var Mt=r.forwardRef(It);Mt.displayName="Item";const Nt=Mt;var zt=n(961);function Pt(){var e=r.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)(0,U.A)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,zt.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function jt(e,t){var n=r.useState(t),o=(0,vt.A)(n,2),i=o[0],a=o[1];return[i,(0,Te.A)((function(t){e((function(){a(t)}))}))]}var Rt=r.createContext(null),Tt=["component"],Dt=["className"],Bt=["className"],Lt=function(e,t){var n=r.useContext(Rt);if(!n){var o=e.component,l=void 0===o?"div":o,c=(0,bt.A)(e,Tt);return r.createElement(l,(0,a.A)({},c,{ref:t}))}var s=n.className,u=(0,bt.A)(n,Dt),d=e.className,f=(0,bt.A)(e,Bt);return r.createElement(Rt.Provider,{value:null},r.createElement(Nt,(0,a.A)({ref:t,className:i()(s,d)},u,f)))},Ht=r.forwardRef(Lt);Ht.displayName="RawItem";const Ft=Ht;var _t=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Wt="responsive",Vt="invalidate";function qt(e){return"+ ".concat(e.length," ...")}function Kt(e,t){var n=e.prefixCls,o=void 0===n?"rc-overflow":n,l=e.data,c=void 0===l?[]:l,u=e.renderItem,d=e.renderRawItem,f=e.itemKey,p=e.itemWidth,m=void 0===p?10:p,g=e.ssr,h=e.style,v=e.className,b=e.maxCount,y=e.renderRest,C=e.renderRawRest,x=e.suffix,w=e.component,A=void 0===w?"div":w,S=e.itemComponent,$=e.onVisibleChange,k=(0,bt.A)(e,_t),E="full"===g,O=Pt(),I=jt(O,null),M=(0,vt.A)(I,2),N=M[0],z=M[1],P=N||0,j=jt(O,new Map),R=(0,vt.A)(j,2),T=R[0],D=R[1],B=jt(O,0),L=(0,vt.A)(B,2),H=L[0],F=L[1],_=jt(O,0),W=(0,vt.A)(_,2),V=W[0],q=W[1],K=jt(O,0),G=(0,vt.A)(K,2),Y=G[0],U=G[1],Q=(0,r.useState)(null),Z=(0,vt.A)(Q,2),J=Z[0],ee=Z[1],te=(0,r.useState)(null),ne=(0,vt.A)(te,2),re=ne[0],oe=ne[1],ie=r.useMemo((function(){return null===re&&E?Number.MAX_SAFE_INTEGER:re||0}),[re,N]),ae=(0,r.useState)(!1),le=(0,vt.A)(ae,2),ce=le[0],se=le[1],ue="".concat(o,"-item"),de=Math.max(H,V),fe=b===Wt,pe=c.length&&fe,me=b===Vt,ge=pe||"number"==typeof b&&c.length>b,he=(0,r.useMemo)((function(){var e=c;return pe?e=null===N&&E?c:c.slice(0,Math.min(c.length,P/m)):"number"==typeof b&&(e=c.slice(0,b)),e}),[c,m,N,b,pe]),ve=(0,r.useMemo)((function(){return pe?c.slice(ie+1):c.slice(he.length)}),[c,he,pe,ie]),be=(0,r.useCallback)((function(e,t){var n;return"function"==typeof f?f(e):null!==(n=f&&(null==e?void 0:e[f]))&&void 0!==n?n:t}),[f]),ye=(0,r.useCallback)(u||function(e){return e},[u]);function Ce(e,t,n){(re!==e||void 0!==t&&t!==J)&&(oe(e),n||(se(eP){Ce(r-1,e-o-Y+V);break}}x&&we(0)+Y>P&&ee(null)}}),[P,T,V,Y,be,he]);var Ae=ce&&!!ve.length,Se={};null!==J&&pe&&(Se={position:"absolute",left:J,top:0});var $e,ke={prefixCls:ue,responsive:pe,component:S,invalidate:me},Ee=d?function(e,t){var n=be(e,t);return r.createElement(Rt.Provider,{key:n,value:(0,s.A)((0,s.A)({},ke),{},{order:t,item:e,itemKey:n,registerSize:xe,display:t<=ie})},d(e,t))}:function(e,t){var n=be(e,t);return r.createElement(Nt,(0,a.A)({},ke,{order:t,key:n,item:e,renderItem:ye,itemKey:n,registerSize:xe,display:t<=ie}))},Oe={order:Ae?ie:Number.MAX_SAFE_INTEGER,className:"".concat(ue,"-rest"),registerSize:function(e,t){q(t),F(V)},display:Ae};if(C)C&&($e=r.createElement(Rt.Provider,{value:(0,s.A)((0,s.A)({},ke),Oe)},C(ve)));else{var Ie=y||qt;$e=r.createElement(Nt,(0,a.A)({},ke,Oe),"function"==typeof Ie?Ie(ve):Ie)}var Me=r.createElement(A,(0,a.A)({className:i()(!me&&o,v),style:h,ref:t},k),he.map(Ee),ge?$e:null,x&&r.createElement(Nt,(0,a.A)({},ke,{responsive:fe,responsiveDisabled:!pe,order:ie,className:"".concat(ue,"-suffix"),registerSize:function(e,t){U(t)},display:!0,style:Se}),x));return fe&&(Me=r.createElement(X,{onResize:function(e,t){z(t.clientWidth)},disabled:!pe},Me)),Me}var Xt=r.forwardRef(Kt);Xt.displayName="Overflow",Xt.Item=Ft,Xt.RESPONSIVE=Wt,Xt.INVALIDATE=Vt;const Gt=Xt;var Yt=function(e,t){var n,o=e.prefixCls,a=e.id,l=e.inputElement,u=e.disabled,d=e.tabIndex,p=e.autoFocus,m=e.autoComplete,g=e.editable,h=e.activeDescendantId,v=e.value,b=e.maxLength,y=e.onKeyDown,C=e.onMouseDown,x=e.onChange,w=e.onPaste,A=e.onCompositionStart,S=e.onCompositionEnd,$=e.open,k=e.attrs,E=l||r.createElement("input",null),O=E,I=O.ref,M=O.props,N=M.onKeyDown,z=M.onChange,P=M.onMouseDown,j=M.onCompositionStart,R=M.onCompositionEnd,T=M.style;return(0,c.$e)(!("maxLength"in E.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),E=r.cloneElement(E,(0,s.A)((0,s.A)((0,s.A)({type:"search"},M),{},{id:a,ref:(0,f.K4)(t,I),disabled:u,tabIndex:d,autoComplete:m||"off",autoFocus:p,className:i()("".concat(o,"-selection-search-input"),null===(n=E)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":$||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":$?h:void 0},k),{},{value:g?v:"",maxLength:b,readOnly:!g,unselectable:g?null:"on",style:(0,s.A)((0,s.A)({},T),{},{opacity:g?null:0}),onKeyDown:function(e){y(e),N&&N(e)},onMouseDown:function(e){C(e),P&&P(e)},onChange:function(e){x(e),z&&z(e)},onCompositionStart:function(e){A(e),j&&j(e)},onCompositionEnd:function(e){S(e),R&&R(e)},onPaste:w}))};const Ut=r.forwardRef(Yt);function Qt(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var Zt="undefined"!=typeof window&&window.document&&window.document.documentElement;function Jt(e){return["string","number"].includes((0,u.A)(e))}function en(e){var t=void 0;return e&&(Jt(e.title)?t=e.title.toString():Jt(e.label)&&(t=e.label.toString())),t}function tn(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var nn=function(e){e.preventDefault(),e.stopPropagation()};const rn=function(e){var t,n,o=e.id,a=e.prefixCls,l=e.values,c=e.open,s=e.searchValue,u=e.autoClearSearchValue,d=e.inputRef,f=e.placeholder,p=e.disabled,m=e.mode,g=e.showSearch,h=e.autoFocus,v=e.autoComplete,b=e.activeDescendantId,y=e.tabIndex,C=e.removeIcon,x=e.maxTagCount,w=e.maxTagTextLength,A=e.maxTagPlaceholder,S=void 0===A?function(e){return"+ ".concat(e.length," ...")}:A,$=e.tagRender,k=e.onToggleOpen,E=e.onRemove,O=e.onInputChange,I=e.onInputPaste,M=e.onInputKeyDown,N=e.onInputMouseDown,z=e.onInputCompositionStart,P=e.onInputCompositionEnd,j=r.useRef(null),R=(0,r.useState)(0),T=(0,vt.A)(R,2),D=T[0],B=T[1],L=(0,r.useState)(!1),H=(0,vt.A)(L,2),F=H[0],_=H[1],W="".concat(a,"-selection"),V=c||"multiple"===m&&!1===u||"tags"===m?s:"",q="tags"===m||"multiple"===m&&!1===u||g&&(c||F);t=function(){B(j.current.scrollWidth)},n=[V],Zt?r.useLayoutEffect(t,n):r.useEffect(t,n);var K=function(e,t,n,o,a){return r.createElement("span",{title:en(e),className:i()("".concat(W,"-item"),(0,ht.A)({},"".concat(W,"-item-disabled"),n))},r.createElement("span",{className:"".concat(W,"-item-content")},t),o&&r.createElement(wt,{className:"".concat(W,"-item-remove"),onMouseDown:nn,onClick:a,customizeIcon:C},"×"))},X=function(e,t,n,o,i,a){return r.createElement("span",{onMouseDown:function(e){nn(e),k(!c)}},$({label:t,value:e,disabled:n,closable:o,onClose:i,isMaxTag:!!a}))},G=r.createElement("div",{className:"".concat(W,"-search"),style:{width:D},onFocus:function(){_(!0)},onBlur:function(){_(!1)}},r.createElement(Ut,{ref:d,open:c,prefixCls:a,id:o,inputElement:null,disabled:p,autoFocus:h,autoComplete:v,editable:q,activeDescendantId:b,value:V,onKeyDown:M,onMouseDown:N,onChange:O,onPaste:I,onCompositionStart:z,onCompositionEnd:P,tabIndex:y,attrs:(0,me.A)(e,!0)}),r.createElement("span",{ref:j,className:"".concat(W,"-search-mirror"),"aria-hidden":!0},V," ")),Y=r.createElement(Gt,{prefixCls:"".concat(W,"-overflow"),data:l,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!p&&!t,i=n;if("number"==typeof w&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>w&&(i="".concat(a.slice(0,w),"..."))}var l=function(t){t&&t.stopPropagation(),E(e)};return"function"==typeof $?X(r,i,t,o,l):K(e,i,t,o,l)},renderRest:function(e){var t="function"==typeof S?S(e):S;return"function"==typeof $?X(void 0,t,!1,!1,void 0,!0):K({title:t},t,!1)},suffix:G,itemKey:tn,maxCount:x});return r.createElement("span",{className:"".concat(W,"-wrap")},Y,!l.length&&!V&&r.createElement("span",{className:"".concat(W,"-placeholder")},f))};const on=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,i=e.inputRef,a=e.disabled,l=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,p=e.placeholder,m=e.tabIndex,g=e.showSearch,h=e.searchValue,v=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,C=e.onInputMouseDown,x=e.onInputChange,w=e.onInputPaste,A=e.onInputCompositionStart,S=e.onInputCompositionEnd,$=e.title,k=r.useState(!1),E=(0,vt.A)(k,2),O=E[0],I=E[1],M="combobox"===u,N=M||g,z=f[0],P=h||"";M&&v&&!O&&(P=v),r.useEffect((function(){M&&I(!1)}),[M,v]);var j=!("combobox"!==u&&!d&&!g)&&!!P,R=void 0===$?en(z):$,T=r.useMemo((function(){return z?null:r.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},p)}),[z,j,p,n]);return r.createElement("span",{className:"".concat(n,"-selection-wrap")},r.createElement("span",{className:"".concat(n,"-selection-search")},r.createElement(Ut,{ref:i,prefixCls:n,id:o,open:d,inputElement:t,disabled:a,autoFocus:l,autoComplete:c,editable:N,activeDescendantId:s,value:P,onKeyDown:y,onMouseDown:C,onChange:function(e){I(!0),x(e)},onPaste:w,onCompositionStart:A,onCompositionEnd:S,tabIndex:m,attrs:(0,me.A)(e,!0),maxLength:M?b:void 0})),!M&&z?r.createElement("span",{className:"".concat(n,"-selection-item"),title:R,style:j?{visibility:"hidden"}:void 0},z.label):null,T)};var an=function(e,t){var n=(0,r.useRef)(null),o=(0,r.useRef)(!1),i=e.prefixCls,l=e.open,c=e.mode,s=e.showSearch,u=e.tokenWithEnter,d=e.disabled,f=e.prefix,p=e.autoClearSearchValue,m=e.onSearch,g=e.onSearchSubmit,h=e.onToggleOpen,v=e.onInputKeyDown,b=e.domRef;r.useImperativeHandle(t,(function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}}));var y=$t(0),C=(0,vt.A)(y,2),x=C[0],w=C[1],A=(0,r.useRef)(null),S=function(e){!1!==m(e,!0,o.current)&&h(!0)},$={inputRef:n,onInputKeyDown:function(e){var t,r=e.which,i=n.current instanceof HTMLTextAreaElement;(i||!l||r!==kt.A.UP&&r!==kt.A.DOWN||e.preventDefault(),v&&v(e),r!==kt.A.ENTER||"tags"!==c||o.current||l||null==g||g(e.target.value),i&&!l&&~[kt.A.UP,kt.A.DOWN,kt.A.LEFT,kt.A.RIGHT].indexOf(r))||(t=r,[kt.A.ESC,kt.A.SHIFT,kt.A.BACKSPACE,kt.A.TAB,kt.A.WIN_KEY,kt.A.ALT,kt.A.META,kt.A.WIN_KEY_RIGHT,kt.A.CTRL,kt.A.SEMICOLON,kt.A.EQUALS,kt.A.CAPS_LOCK,kt.A.CONTEXT_MENU,kt.A.F1,kt.A.F2,kt.A.F3,kt.A.F4,kt.A.F5,kt.A.F6,kt.A.F7,kt.A.F8,kt.A.F9,kt.A.F10,kt.A.F11,kt.A.F12].includes(t)||h(!0))},onInputMouseDown:function(){w(!0)},onInputChange:function(e){var t=e.target.value;if(u&&A.current&&/[\r\n]/.test(A.current)){var n=A.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,A.current)}A.current=null,S(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");A.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==c&&S(e.target.value)}},k="multiple"===c||"tags"===c?r.createElement(rn,(0,a.A)({},e,$)):r.createElement(on,(0,a.A)({},e,$));return r.createElement("div",{ref:b,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=x();e.target===n.current||t||"combobox"===c&&d||e.preventDefault(),("combobox"===c||s&&t)&&l||(l&&!1!==p&&m("",!0,!1),h())}},f&&r.createElement("div",{className:"".concat(i,"-prefix")},f),k)};const ln=r.forwardRef(an);var cn=n(5062),sn=n(2633),un=n(6855);function dn(e){var t=e.prefixCls,n=e.align,o=e.arrow,a=e.arrowPos,l=o||{},c=l.className,s=l.content,u=a.x,d=void 0===u?0:u,f=a.y,p=void 0===f?0:f,m=r.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],v=n.points[1],b=h[0],y=h[1],C=v[0],x=v[1];b!==C&&["t","b"].includes(b)?"t"===b?g.top=0:g.bottom=0:g.top=p,y!==x&&["l","r"].includes(y)?"l"===y?g.left=0:g.right=0:g.left=d}return r.createElement("div",{ref:m,className:i()("".concat(t,"-arrow"),c),style:g},s)}function fn(e){var t=e.prefixCls,n=e.open,o=e.zIndex,l=e.mask,c=e.motion;return l?r.createElement(pe.Ay,(0,a.A)({},c,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return r.createElement("div",{style:{zIndex:o},className:i()("".concat(t,"-mask"),n)})})):null}const pn=r.memo((function(e){return e.children}),(function(e,t){return t.cache}));var mn=r.forwardRef((function(e,t){var n=e.popup,o=e.className,l=e.prefixCls,c=e.style,u=e.target,d=e.onVisibleChanged,p=e.open,m=e.keepDom,g=e.fresh,h=e.onClick,v=e.mask,b=e.arrow,y=e.arrowPos,C=e.align,x=e.motion,w=e.maskMotion,A=e.forceRender,S=e.getPopupContainer,$=e.autoDestroy,k=e.portal,E=e.zIndex,O=e.onMouseEnter,I=e.onMouseLeave,M=e.onPointerEnter,N=e.onPointerDownCapture,z=e.ready,P=e.offsetX,j=e.offsetY,R=e.offsetR,T=e.offsetB,D=e.onAlign,B=e.onPrepare,L=e.stretch,H=e.targetWidth,F=e.targetHeight,_="function"==typeof n?n():n,W=p||m,V=(null==S?void 0:S.length)>0,q=r.useState(!S||!V),K=(0,vt.A)(q,2),G=K[0],Y=K[1];if((0,Ct.A)((function(){!G&&V&&u&&Y(!0)}),[G,V,u]),!G)return null;var U="auto",Q={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(z||!p){var Z,J=C.points,ee=C.dynamicInset||(null===(Z=C._experimental)||void 0===Z?void 0:Z.dynamicInset),te=ee&&"r"===J[0][1],ne=ee&&"b"===J[0][0];te?(Q.right=R,Q.left=U):(Q.left=P,Q.right=U),ne?(Q.bottom=T,Q.top=U):(Q.top=j,Q.bottom=U)}var re={};return L&&(L.includes("height")&&F?re.height=F:L.includes("minHeight")&&F&&(re.minHeight=F),L.includes("width")&&H?re.width=H:L.includes("minWidth")&&H&&(re.minWidth=H)),p||(re.pointerEvents="none"),r.createElement(k,{open:A||W,getContainer:S&&function(){return S(u)},autoDestroy:$},r.createElement(fn,{prefixCls:l,open:p,zIndex:E,mask:v,motion:w}),r.createElement(X,{onResize:D,disabled:!p},(function(e){return r.createElement(pe.Ay,(0,a.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:A,leavedClassName:"".concat(l,"-hidden")},x,{onAppearPrepare:B,onEnterPrepare:B,visible:p,onVisibleChanged:function(e){var t;null==x||null===(t=x.onVisibleChanged)||void 0===t||t.call(x,e),d(e)}}),(function(n,a){var u=n.className,d=n.style,m=i()(l,u,o);return r.createElement("div",{ref:(0,f.K4)(e,t,a),className:m,style:(0,s.A)((0,s.A)((0,s.A)((0,s.A)({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},Q),re),d),{},{boxSizing:"border-box",zIndex:E},c),onMouseEnter:O,onMouseLeave:I,onPointerEnter:M,onClick:h,onPointerDownCapture:N},b&&r.createElement(dn,{prefixCls:l,arrow:b,arrowPos:y,align:C}),r.createElement(pn,{cache:!p&&!g},_))}))})))}));const gn=mn;const hn=r.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,i=(0,f.f3)(n),a=r.useCallback((function(e){(0,f.Xf)(t,o?o(e):e)}),[o]),l=(0,f.xK)(a,n.ref);return i?r.cloneElement(n,{ref:l}):n}));const vn=r.createContext(null);function bn(e){return e?Array.isArray(e)?e:[e]:[]}var yn=n(2467);function Cn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function xn(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function wn(e){return e.ownerDocument.defaultView}function An(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=wn(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function Sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function $n(e){return Sn(parseFloat(e),0)}function kn(e,t){var n=(0,s.A)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=wn(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=$n(i),g=$n(a),h=$n(l),v=$n(c),b=Sn(Math.round(s.width/f*1e3)/1e3),y=Sn(Math.round(s.height/u*1e3)/1e3),C=(f-p-h-v)*b,x=(u-d-m-g)*y,w=m*y,A=g*y,S=h*b,$=v*b,k=0,E=0;if("clip"===r){var O=$n(o);k=O*b,E=O*y}var I=s.x+S-k,M=s.y+w-E,N=I+s.width+2*k-S-$-C,z=M+s.height+2*E-w-A-x;n.left=Math.max(n.left,I),n.top=Math.max(n.top,M),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,z)}})),n}function En(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function On(e,t){var n=t||[],r=(0,vt.A)(n,2),o=r[0],i=r[1];return[En(e.width,o),En(e.height,i)]}function In(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Mn(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?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:n}}function Nn(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var zn=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const Pn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cn.A,t=r.forwardRef((function(t,n){var o=t.prefixCls,a=void 0===o?"rc-trigger-popup":o,l=t.children,c=t.action,u=void 0===c?"hover":c,f=t.showAction,p=t.hideAction,m=t.popupVisible,g=t.defaultPopupVisible,h=t.onPopupVisibleChange,v=t.afterPopupVisibleChange,b=t.mouseEnterDelay,y=t.mouseLeaveDelay,C=void 0===y?.1:y,x=t.focusDelay,w=t.blurDelay,A=t.mask,S=t.maskClosable,$=void 0===S||S,k=t.getPopupContainer,E=t.forceRender,O=t.autoDestroy,I=t.destroyPopupOnHide,M=t.popup,N=t.popupClassName,z=t.popupStyle,P=t.popupPlacement,j=t.builtinPlacements,R=void 0===j?{}:j,T=t.popupAlign,D=t.zIndex,B=t.stretch,L=t.getPopupClassNameFromAlign,H=t.fresh,F=t.alignPoint,_=t.onPopupClick,W=t.onPopupAlign,V=t.arrow,q=t.popupMotion,K=t.maskMotion,G=t.popupTransitionName,U=t.popupAnimation,Q=t.maskTransitionName,Z=t.maskAnimation,J=t.className,ee=t.getTriggerDOMNode,te=(0,bt.A)(t,zn),ne=O||I||!1,re=r.useState(!1),oe=(0,vt.A)(re,2),ie=oe[0],ae=oe[1];(0,Ct.A)((function(){ae(xt())}),[]);var le=r.useRef({}),ce=r.useContext(vn),se=r.useMemo((function(){return{registerSubPopup:function(e,t){le.current[e]=t,null==ce||ce.registerSubPopup(e,t)}}}),[ce]),ue=(0,un.A)(),de=r.useState(null),fe=(0,vt.A)(de,2),pe=fe[0],me=fe[1],ge=r.useRef(null),he=(0,Te.A)((function(e){ge.current=e,(0,d.fk)(e)&&pe!==e&&me(e),null==ce||ce.registerSubPopup(ue,e)})),ve=r.useState(null),be=(0,vt.A)(ve,2),ye=be[0],Ce=be[1],xe=r.useRef(null),we=(0,Te.A)((function(e){(0,d.fk)(e)&&ye!==e&&(Ce(e),xe.current=e)})),Ae=r.Children.only(l),Se=(null==Ae?void 0:Ae.props)||{},$e={},ke=(0,Te.A)((function(e){var t,n,r=ye;return(null==r?void 0:r.contains(e))||(null===(t=(0,sn.j)(r))||void 0===t?void 0:t.host)===e||e===r||(null==pe?void 0:pe.contains(e))||(null===(n=(0,sn.j)(pe))||void 0===n?void 0:n.host)===e||e===pe||Object.values(le.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Ee=xn(a,q,U,G),Oe=xn(a,K,Z,Q),Ie=r.useState(g||!1),Me=(0,vt.A)(Ie,2),Ne=Me[0],ze=Me[1],Pe=null!=m?m:Ne,je=(0,Te.A)((function(e){void 0===m&&ze(e)}));(0,Ct.A)((function(){ze(m||!1)}),[m]);var Re=r.useRef(Pe);Re.current=Pe;var De=r.useRef([]);De.current=[];var Be=(0,Te.A)((function(e){var t;je(e),(null!==(t=De.current[De.current.length-1])&&void 0!==t?t:Pe)!==e&&(De.current.push(e),null==h||h(e))})),Le=r.useRef(),He=function(){clearTimeout(Le.current)},Fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;He(),0===t?Be(e):Le.current=setTimeout((function(){Be(e)}),1e3*t)};r.useEffect((function(){return He}),[]);var _e=r.useState(!1),We=(0,vt.A)(_e,2),Ve=We[0],qe=We[1];(0,Ct.A)((function(e){e&&!Pe||qe(!0)}),[Pe]);var Ke=r.useState(null),Xe=(0,vt.A)(Ke,2),Ge=Xe[0],Ye=Xe[1],Ue=r.useState(null),Qe=(0,vt.A)(Ue,2),Ze=Qe[0],Je=Qe[1],et=function(e){Je([e.clientX,e.clientY])},tt=function(e,t,n,o,i,a,l){var c=r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),u=(0,vt.A)(c,2),f=u[0],p=u[1],m=r.useRef(0),g=r.useMemo((function(){return t?An(t):[]}),[t]),h=r.useRef({});e||(h.current={});var v=(0,Te.A)((function(){if(t&&n&&e){var r,c,u,f,m,v=t,b=v.ownerDocument,y=wn(v).getComputedStyle(v),C=y.width,x=y.height,w=y.position,A=v.style.left,S=v.style.top,$=v.style.right,k=v.style.bottom,E=v.style.overflow,O=(0,s.A)((0,s.A)({},i[o]),a),I=b.createElement("div");if(null===(r=v.parentElement)||void 0===r||r.appendChild(I),I.style.left="".concat(v.offsetLeft,"px"),I.style.top="".concat(v.offsetTop,"px"),I.style.position=w,I.style.height="".concat(v.offsetHeight,"px"),I.style.width="".concat(v.offsetWidth,"px"),v.style.left="0",v.style.top="0",v.style.right="auto",v.style.bottom="auto",v.style.overflow="hidden",Array.isArray(n))m={x:n[0],y:n[1],width:0,height:0};else{var M,N,z=n.getBoundingClientRect();z.x=null!==(M=z.x)&&void 0!==M?M:z.left,z.y=null!==(N=z.y)&&void 0!==N?N:z.top,m={x:z.x,y:z.y,width:z.width,height:z.height}}var P=v.getBoundingClientRect();P.x=null!==(c=P.x)&&void 0!==c?c:P.left,P.y=null!==(u=P.y)&&void 0!==u?u:P.top;var j=b.documentElement,R=j.clientWidth,T=j.clientHeight,D=j.scrollWidth,B=j.scrollHeight,L=j.scrollTop,H=j.scrollLeft,F=P.height,_=P.width,W=m.height,V=m.width,q={left:0,top:0,right:R,bottom:T},K={left:-H,top:-L,right:D-H,bottom:B-L},X=O.htmlRegion,G="visible",Y="visibleFirst";"scroll"!==X&&X!==Y&&(X=G);var U=X===Y,Q=kn(K,g),Z=kn(q,g),J=X===G?Z:Q,ee=U?Z:J;v.style.left="auto",v.style.top="auto",v.style.right="0",v.style.bottom="0";var te=v.getBoundingClientRect();v.style.left=A,v.style.top=S,v.style.right=$,v.style.bottom=k,v.style.overflow=E,null===(f=v.parentElement)||void 0===f||f.removeChild(I);var ne=Sn(Math.round(_/parseFloat(C)*1e3)/1e3),re=Sn(Math.round(F/parseFloat(x)*1e3)/1e3);if(0===ne||0===re||(0,d.fk)(n)&&!(0,yn.A)(n))return;var oe=O.offset,ie=O.targetOffset,ae=On(P,oe),le=(0,vt.A)(ae,2),ce=le[0],se=le[1],ue=On(m,ie),de=(0,vt.A)(ue,2),fe=de[0],pe=de[1];m.x-=fe,m.y-=pe;var me=O.points||[],ge=(0,vt.A)(me,2),he=ge[0],ve=In(ge[1]),be=In(he),ye=Mn(m,ve),Ce=Mn(P,be),xe=(0,s.A)({},O),we=ye.x-Ce.x+ce,Ae=ye.y-Ce.y+se;function ht(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=P.x+e,o=P.y+t,i=r+_,a=o+F,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var Se,$e,ke,Ee,Oe=ht(we,Ae),Ie=ht(we,Ae,Z),Me=Mn(m,["t","l"]),Ne=Mn(P,["t","l"]),ze=Mn(m,["b","r"]),Pe=Mn(P,["b","r"]),je=O.overflow||{},Re=je.adjustX,Te=je.adjustY,De=je.shiftX,Be=je.shiftY,Le=function(e){return"boolean"==typeof e?e:e>=0};function bt(){Se=P.y+Ae,$e=Se+F,ke=P.x+we,Ee=ke+_}bt();var He=Le(Te),Fe=be[0]===ve[0];if(He&&"t"===be[0]&&($e>ee.bottom||h.current.bt)){var _e=Ae;Fe?_e-=F-W:_e=Me.y-Pe.y-se;var We=ht(we,_e),Ve=ht(we,_e,Z);We>Oe||We===Oe&&(!U||Ve>=Ie)?(h.current.bt=!0,Ae=_e,se=-se,xe.points=[Nn(be,0),Nn(ve,0)]):h.current.bt=!1}if(He&&"b"===be[0]&&(SeOe||Ke===Oe&&(!U||Xe>=Ie)?(h.current.tb=!0,Ae=qe,se=-se,xe.points=[Nn(be,0),Nn(ve,0)]):h.current.tb=!1}var Ge=Le(Re),Ye=be[1]===ve[1];if(Ge&&"l"===be[1]&&(Ee>ee.right||h.current.rl)){var Ue=we;Ye?Ue-=_-V:Ue=Me.x-Pe.x-ce;var Qe=ht(Ue,Ae),Ze=ht(Ue,Ae,Z);Qe>Oe||Qe===Oe&&(!U||Ze>=Ie)?(h.current.rl=!0,we=Ue,ce=-ce,xe.points=[Nn(be,1),Nn(ve,1)]):h.current.rl=!1}if(Ge&&"r"===be[1]&&(keOe||et===Oe&&(!U||tt>=Ie)?(h.current.lr=!0,we=Je,ce=-ce,xe.points=[Nn(be,1),Nn(ve,1)]):h.current.lr=!1}bt();var nt=!0===De?0:De;"number"==typeof nt&&(keZ.right&&(we-=Ee-Z.right-ce,m.x>Z.right-nt&&(we+=m.x-Z.right+nt)));var rt=!0===Be?0:Be;"number"==typeof rt&&(SeZ.bottom&&(Ae-=$e-Z.bottom-se,m.y>Z.bottom-rt&&(Ae+=m.y-Z.bottom+rt)));var ot=P.x+we,it=ot+_,at=P.y+Ae,lt=at+F,ct=m.x,st=ct+V,ut=m.y,dt=ut+W,ft=(Math.max(ot,ct)+Math.min(it,st))/2-ot,pt=(Math.max(at,ut)+Math.min(lt,dt))/2-at;null==l||l(t,xe);var mt=te.right-P.x-(we+P.width),gt=te.bottom-P.y-(Ae+P.height);1===ne&&(we=Math.round(we),mt=Math.round(mt)),1===re&&(Ae=Math.round(Ae),gt=Math.round(gt)),p({ready:!0,offsetX:we/ne,offsetY:Ae/re,offsetR:mt/ne,offsetB:gt/re,arrowX:ft/ne,arrowY:pt/re,scaleX:ne,scaleY:re,align:xe})}})),b=function(){p((function(e){return(0,s.A)((0,s.A)({},e),{},{ready:!1})}))};return(0,Ct.A)(b,[o]),(0,Ct.A)((function(){e||b()}),[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,function(){m.current+=1;var e=m.current;Promise.resolve().then((function(){m.current===e&&v()}))}]}(Pe,pe,F&&null!==Ze?Ze:ye,P,R,T,W),nt=(0,vt.A)(tt,11),rt=nt[0],ot=nt[1],it=nt[2],at=nt[3],lt=nt[4],ct=nt[5],st=nt[6],ut=nt[7],dt=nt[8],ft=nt[9],pt=nt[10],mt=function(e,t,n,o){return r.useMemo((function(){var r=bn(null!=n?n:t),i=bn(null!=o?o:t),a=new Set(r),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,o])}(ie,u,f,p),gt=(0,vt.A)(mt,2),ht=gt[0],yt=gt[1],wt=ht.has("click"),At=yt.has("click")||yt.has("contextMenu"),St=(0,Te.A)((function(){Ve||pt()}));!function(e,t,n,r,o){(0,Ct.A)((function(){if(e&&t&&n){var i=n,a=An(t),l=An(i),c=wn(i),s=new Set([c].concat((0,Y.A)(a),(0,Y.A)(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(Pe,ye,pe,St,(function(){Re.current&&F&&At&&Fe(!1)})),(0,Ct.A)((function(){St()}),[Ze,P]),(0,Ct.A)((function(){!Pe||null!=R&&R[P]||St()}),[JSON.stringify(T)]);var $t=r.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1?a-1:0),c=1;c1?n-1:0),o=1;o1?n-1:0),o=1;o50?", ...":null)}var Vn=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],qn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Kn=function(e){return"tags"===e||"multiple"===e},Xn=r.forwardRef((function(e,t){var n,o=e.id,l=e.prefixCls,c=e.className,d=e.showSearch,p=e.tagRender,m=e.direction,g=e.omitDomProps,h=e.displayValues,v=e.onDisplayValuesChange,b=e.emptyOptions,y=e.notFoundContent,C=void 0===y?"Not Found":y,x=e.onClear,w=e.mode,A=e.disabled,S=e.loading,$=e.getInputElement,k=e.getRawInputElement,E=e.open,O=e.defaultOpen,I=e.onDropdownVisibleChange,M=e.activeValue,N=e.onActiveValueChange,z=e.activeDescendantId,P=e.searchValue,j=e.autoClearSearchValue,R=e.onSearch,T=e.onSearchSplit,D=e.tokenSeparators,B=e.allowClear,L=e.prefix,H=e.suffixIcon,F=e.clearIcon,_=e.OptionList,W=e.animation,V=e.transitionName,q=e.dropdownStyle,K=e.dropdownClassName,X=e.dropdownMatchSelectWidth,G=e.dropdownRender,U=e.dropdownAlign,Q=e.placement,Z=e.builtinPlacements,J=e.getPopupContainer,ee=e.showAction,te=void 0===ee?[]:ee,ne=e.onFocus,re=e.onBlur,oe=e.onKeyUp,ie=e.onKeyDown,ae=e.onMouseDown,le=(0,bt.A)(e,Vn),ce=Kn(w),se=(void 0!==d?d:ce)||"combobox"===w,ue=(0,s.A)({},le);qn.forEach((function(e){delete ue[e]})),null==g||g.forEach((function(e){delete ue[e]}));var de=r.useState(!1),fe=(0,vt.A)(de,2),pe=fe[0],me=fe[1];r.useEffect((function(){me(xt())}),[]);var ge=r.useRef(null),he=r.useRef(null),ve=r.useRef(null),be=r.useRef(null),ye=r.useRef(null),Ce=r.useRef(!1),xe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=r.useState(!1),n=(0,vt.A)(t,2),o=n[0],i=n[1],a=r.useRef(null),l=function(){window.clearTimeout(a.current)};return r.useEffect((function(){return l}),[]),[o,function(t,n){l(),a.current=window.setTimeout((function(){i(t),n&&n()}),e)},l]}(),we=(0,vt.A)(xe,3),Ae=we[0],Se=we[1],$e=we[2];r.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=be.current)||void 0===e?void 0:e.focus,blur:null===(t=be.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=ye.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:ge.current||he.current}}));var ke=r.useMemo((function(){var e;if("combobox"!==w)return P;var t=null===(e=h[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[P,w,h]),Ee="combobox"===w&&"function"==typeof $&&$()||null,Oe="function"==typeof k&&k(),Ie=(0,f.xK)(he,null==Oe||null===(n=Oe.props)||void 0===n?void 0:n.ref),Me=r.useState(!1),Ne=(0,vt.A)(Me,2),ze=Ne[0],Pe=Ne[1];(0,Ct.A)((function(){Pe(!0)}),[]);var je=(0,yt.A)(!1,{defaultValue:O,value:E}),Re=(0,vt.A)(je,2),Te=Re[0],De=Re[1],Be=!!ze&&Te,Le=!C&&b;(A||Le&&Be&&"combobox"===w)&&(Be=!1);var He=!Le&&Be,Fe=r.useCallback((function(e){var t=void 0!==e?e:!Be;A||(De(t),Be!==t&&(null==I||I(t)))}),[A,Be,De,I]),_e=r.useMemo((function(){return(D||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[D]),We=r.useContext(_n)||{},Ve=We.maxCount,qe=We.rawValues,Ke=function(e,t,n){if(!(ce&&Ln(Ve)&&(null==qe?void 0:qe.size)>=Ve)){var r=!0,o=e;null==N||N(null);var i=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=(0,Dn.A)(n),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return r=r||l.length>1,l.reduce((function(t,n){return[].concat((0,Y.A)(t),(0,Y.A)(e(n,a)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,D,Ln(Ve)?Ve-qe.size:void 0),a=n?null:i;return"combobox"!==w&&a&&(o="",null==T||T(a),Fe(!1),r=!1),R&&ke!==o&&R(o,{source:t?"typing":"effect"}),r}};r.useEffect((function(){Be||ce||"combobox"===w||Ke("",!1,!1)}),[Be]),r.useEffect((function(){Te&&A&&De(!1),A&&!Ce.current&&Se(!1)}),[A]);var Xe=$t(),Ge=(0,vt.A)(Xe,2),Ye=Ge[0],Ue=Ge[1],Qe=r.useRef(!1),Ze=r.useRef(!1),Je=[];r.useEffect((function(){return function(){Je.forEach((function(e){return clearTimeout(e)})),Je.splice(0,Je.length)}}),[]);var et,tt=r.useState({}),nt=(0,vt.A)(tt,2)[1];Oe&&(et=function(e){Fe(e)}),function(e,t,n,o){var i=r.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:o},r.useEffect((function(){function t(t){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),i.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[ge.current,null===(e=ve.current)||void 0===e?void 0:e.getPopupElement()]}),He,Fe,!!Oe);var rt,ot=r.useMemo((function(){return(0,s.A)((0,s.A)({},e),{},{notFoundContent:C,open:Be,triggerOpen:He,id:o,showSearch:se,multiple:ce,toggleOpen:Fe})}),[e,C,He,Be,o,se,ce,Fe]),it=!!H||S;it&&(rt=r.createElement(wt,{className:i()("".concat(l,"-arrow"),(0,ht.A)({},"".concat(l,"-arrow-loading"),S)),customizeIcon:H,customizeIconProps:{loading:S,searchValue:ke,open:Be,focused:Ae,showSearch:se}}));var at,lt=function(e,t,n,o,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,s=r.useMemo((function(){return"object"===(0,u.A)(o)?o.clearIcon:i||void 0}),[o,i]);return{allowClear:r.useMemo((function(){return!(a||!o||!n.length&&!l||"combobox"===c&&""===l)}),[o,a,n.length,l,c]),clearIcon:r.createElement(wt,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"×")}}(l,(function(){var e;null==x||x(),null===(e=be.current)||void 0===e||e.focus(),v([],{type:"clear",values:h}),Ke("",!1,!1)}),h,B,F,A,ke,w),ct=lt.allowClear,st=lt.clearIcon,ut=r.createElement(_,{ref:ye}),dt=i()(l,c,(0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)({},"".concat(l,"-focused"),Ae),"".concat(l,"-multiple"),ce),"".concat(l,"-single"),!ce),"".concat(l,"-allow-clear"),B),"".concat(l,"-show-arrow"),it),"".concat(l,"-disabled"),A),"".concat(l,"-loading"),S),"".concat(l,"-open"),Be),"".concat(l,"-customize-input"),Ee),"".concat(l,"-show-search"),se)),ft=r.createElement(Tn,{ref:ve,disabled:A,prefixCls:l,visible:He,popupElement:ut,animation:W,transitionName:V,dropdownStyle:q,dropdownClassName:K,direction:m,dropdownMatchSelectWidth:X,dropdownRender:G,dropdownAlign:U,placement:Q,builtinPlacements:Z,getPopupContainer:J,empty:b,getTriggerDOMNode:function(e){return he.current||e},onPopupVisibleChange:et,onPopupMouseEnter:function(){nt({})}},Oe?r.cloneElement(Oe,{ref:Ie}):r.createElement(ln,(0,a.A)({},e,{domRef:he,prefixCls:l,inputElement:Ee,ref:be,id:o,prefix:L,showSearch:se,autoClearSearchValue:j,mode:w,activeDescendantId:z,tagRender:p,values:h,open:Be,onToggleOpen:Fe,activeValue:M,searchValue:ke,onSearch:Ke,onSearchSubmit:function(e){e&&e.trim()&&R(e,{source:"submit"})},onRemove:function(e){var t=h.filter((function(t){return t!==e}));v(t,{type:"remove",values:[e]})},tokenWithEnter:_e})));return at=Oe?ft:r.createElement("div",(0,a.A)({className:dt},ue,{ref:ge,onMouseDown:function(e){var t,n=e.target,r=null===(t=ve.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=Je.indexOf(o);-1!==t&&Je.splice(t,1),$e(),pe||r.contains(document.activeElement)||null===(e=be.current)||void 0===e||e.focus()}));Je.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l=0;l-=1){var c=i[l];if(!c.disabled){i.splice(l,1),a=c;break}}a&&v(i,{type:"remove",values:[a]})}for(var s=arguments.length,u=new Array(s>1?s-1:0),d=1;d1?t-1:0),r=1;r2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):r&&!i.current||(clearTimeout(a.current),i.current=!0,a.current=setTimeout((function(){i.current=!1}),50)),!i.current&&r}};function lr(e,t,n,o,i,a,l){var c=(0,r.useRef)(0),s=(0,r.useRef)(null),u=(0,r.useRef)(null),d=(0,r.useRef)(!1),f=ar(t,n,o,i);var p=(0,r.useRef)(null),m=(0,r.useRef)(null);return[function(t){if(e){U.A.cancel(m.current),m.current=(0,U.A)((function(){p.current=null}),2);var n=t.deltaX,r=t.deltaY,o=t.shiftKey,i=n,g=r;("sx"===p.current||!p.current&&o&&r&&!n)&&(i=r,g=0,p.current="sx");var h=Math.abs(i),v=Math.abs(g);null===p.current&&(p.current=a&&h>v?"x":"y"),"y"===p.current?function(e,t){if(U.A.cancel(s.current),!f(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,c.current+=t,u.current=t,ir||n.preventDefault(),s.current=(0,U.A)((function(){var e=d.current?10:1;l(c.current*e,!1),c.current=0})))}}(t,g):function(e,t){l(t,!0),ir||e.preventDefault()}(t,i)}},function(t){e&&(d.current=t.detail===u.current)}]}const cr=function(){function e(){(0,B.A)(this,e),(0,ht.A)(this,"maps",void 0),(0,ht.A)(this,"id",0),this.maps=Object.create(null)}return(0,L.A)(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();function sr(e){var t=parseFloat(e);return isNaN(t)?0:t}var ur=14/15;function dr(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var fr=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.rtl,a=e.scrollOffset,l=e.scrollRange,c=e.onStartMove,u=e.onStopMove,d=e.onScroll,f=e.horizontal,p=e.spinSize,m=e.containerSize,g=e.style,h=e.thumbStyle,v=r.useState(!1),b=(0,vt.A)(v,2),y=b[0],C=b[1],x=r.useState(null),w=(0,vt.A)(x,2),A=w[0],S=w[1],$=r.useState(null),k=(0,vt.A)($,2),E=k[0],O=k[1],I=!o,M=r.useRef(),N=r.useRef(),z=r.useState(!1),P=(0,vt.A)(z,2),j=P[0],R=P[1],T=r.useRef(),D=function(){clearTimeout(T.current),R(!0),T.current=setTimeout((function(){R(!1)}),3e3)},B=l-m||0,L=m-p||0,H=r.useMemo((function(){return 0===a||0===B?0:a/B*L}),[a,B,L]),F=r.useRef({top:H,dragging:y,pageY:A,startTop:E});F.current={top:H,dragging:y,pageY:A,startTop:E};var _=function(e){C(!0),S(dr(e,f)),O(F.current.top),c(),e.stopPropagation(),e.preventDefault()};r.useEffect((function(){var e=function(e){e.preventDefault()},t=M.current,n=N.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",_,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",_)}}),[]);var W=r.useRef();W.current=B;var V=r.useRef();V.current=L,r.useEffect((function(){if(y){var e,t=function(t){var n=F.current,r=n.dragging,o=n.pageY,i=n.startTop;U.A.cancel(e);var a=M.current.getBoundingClientRect(),l=m/(f?a.width:a.height);if(r){var c=(dr(t,f)-o)*l,s=i;!I&&f?s-=c:s+=c;var u=W.current,p=V.current,g=p?s/p:0,h=Math.ceil(g*u);h=Math.max(h,0),h=Math.min(h,u),e=(0,U.A)((function(){d(h,f)}))}},n=function(){C(!1),u()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),U.A.cancel(e)}}}),[y]),r.useEffect((function(){return D(),function(){clearTimeout(T.current)}}),[a]),r.useImperativeHandle(t,(function(){return{delayHidden:D}}));var q="".concat(n,"-scrollbar"),K={position:"absolute",visibility:j?null:"hidden"},X={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return f?(K.height=8,K.left=0,K.right=0,K.bottom=0,X.height="100%",X.width=p,I?X.left=H:X.right=H):(K.width=8,K.top=0,K.bottom=0,I?K.right=0:K.left=0,X.width="100%",X.height=p,X.top=H),r.createElement("div",{ref:M,className:i()(q,(0,ht.A)((0,ht.A)((0,ht.A)({},"".concat(q,"-horizontal"),f),"".concat(q,"-vertical"),!f),"".concat(q,"-visible"),j)),style:(0,s.A)((0,s.A)({},K),g),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:D},r.createElement("div",{ref:N,className:i()("".concat(q,"-thumb"),(0,ht.A)({},"".concat(q,"-thumb-moving"),y)),style:(0,s.A)((0,s.A)({},X),h),onMouseDown:_}))}));const pr=fr;function mr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,20),Math.floor(t)}var gr=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],hr=[],vr={overflowY:"auto",overflowAnchor:"none"};function br(e,t){var n=e.prefixCls,o=void 0===n?"rc-virtual-list":n,l=e.className,c=e.height,f=e.itemHeight,p=e.fullHeight,m=void 0===p||p,g=e.style,h=e.data,v=e.children,b=e.itemKey,y=e.virtual,C=e.direction,x=e.scrollWidth,w=e.component,A=void 0===w?"div":w,S=e.onScroll,$=e.onVirtualScroll,k=e.onVisibleChange,E=e.innerProps,O=e.extraRender,I=e.styles,M=(0,bt.A)(e,gr),N=r.useCallback((function(e){return"function"==typeof b?b(e):null==e?void 0:e[b]}),[b]),z=function(e,t,n){var o=r.useState(0),i=(0,vt.A)(o,2),a=i[0],l=i[1],c=(0,r.useRef)(new Map),s=(0,r.useRef)(new cr),u=(0,r.useRef)();function f(){U.A.cancel(u.current)}function p(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];f();var t=function(){c.current.forEach((function(e,t){if(e&&e.offsetParent){var n=(0,d.Ay)(e),r=n.offsetHeight,o=getComputedStyle(n),i=o.marginTop,a=o.marginBottom,l=r+sr(i)+sr(a);s.current.get(t)!==l&&s.current.set(t,l)}})),l((function(e){return e+1}))};e?t():u.current=(0,U.A)(t)}return(0,r.useEffect)((function(){return f}),[]),[function(r,o){var i=e(r),a=c.current.get(i);o?(c.current.set(i,o),p()):c.current.delete(i),!a!=!o&&(o?null==t||t(r):null==n||n(r))},p,s.current,a]}(N,null,null),P=(0,vt.A)(z,4),j=P[0],R=P[1],T=P[2],D=P[3],B=!(!1===y||!c||!f),L=r.useMemo((function(){return Object.values(T.maps).reduce((function(e,t){return e+t}),0)}),[T.id,T.maps]),H=B&&h&&(Math.max(f*h.length,L)>c||!!x),F="rtl"===C,_=i()(o,(0,ht.A)({},"".concat(o,"-rtl"),F),l),W=h||hr,V=(0,r.useRef)(),q=(0,r.useRef)(),K=(0,r.useRef)(),G=(0,r.useState)(0),Y=(0,vt.A)(G,2),Q=Y[0],Z=Y[1],J=(0,r.useState)(0),ee=(0,vt.A)(J,2),te=ee[0],ne=ee[1],re=(0,r.useState)(!1),oe=(0,vt.A)(re,2),ie=oe[0],ae=oe[1],le=function(){ae(!0)},ce=function(){ae(!1)},se={getKey:N};function ue(e){Z((function(t){var n=function(e){var t=e;Number.isNaN(Ie.current)||(t=Math.min(t,Ie.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return V.current.scrollTop=n,n}))}var de=(0,r.useRef)({start:0,end:W.length}),fe=(0,r.useRef)(),pe=or(W,N),me=(0,vt.A)(pe,1)[0];fe.current=me;var ge=r.useMemo((function(){if(!B)return{scrollHeight:void 0,start:0,end:W.length-1,offset:void 0};var e;if(!H)return{scrollHeight:(null===(e=q.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:W.length-1,offset:void 0};for(var t,n,r,o=0,i=W.length,a=0;a=Q&&void 0===t&&(t=a,n=o),d>Q+c&&void 0===r&&(r=a),o=d}return void 0===t&&(t=0,n=0,r=Math.ceil(c/f)),void 0===r&&(r=W.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,W.length-1),offset:n}}),[H,B,Q,W,D,c]),he=ge.scrollHeight,ve=ge.start,be=ge.end,ye=ge.offset;de.current.start=ve,de.current.end=be;var Ce=r.useState({width:0,height:c}),xe=(0,vt.A)(Ce,2),we=xe[0],Ae=xe[1],Se=(0,r.useRef)(),$e=(0,r.useRef)(),ke=r.useMemo((function(){return mr(we.width,x)}),[we.width,x]),Ee=r.useMemo((function(){return mr(we.height,he)}),[we.height,he]),Oe=he-c,Ie=(0,r.useRef)(Oe);Ie.current=Oe;var Me=Q<=0,Ne=Q>=Oe,ze=te<=0,Pe=te>=x,je=ar(Me,Ne,ze,Pe),Re=function(){return{x:F?-te:te,y:Q}},Te=(0,r.useRef)(Re()),De=(0,er._q)((function(e){if($){var t=(0,s.A)((0,s.A)({},Re()),e);Te.current.x===t.x&&Te.current.y===t.y||($(t),Te.current=t)}}));function Be(e,t){var n=e;t?((0,zt.flushSync)((function(){ne(n)})),De()):ue(n)}var Le=function(e){var t=e,n=x?x-we.width:0;return t=Math.max(t,0),t=Math.min(t,n)},He=(0,er._q)((function(e,t){t?((0,zt.flushSync)((function(){ne((function(t){return Le(t+(F?-e:e))}))})),De()):ue((function(t){return t+e}))})),Fe=lr(B,Me,Ne,ze,Pe,!!x,He),_e=(0,vt.A)(Fe,2),We=_e[0],Ve=_e[1];!function(e,t,n){var o,i=(0,r.useRef)(!1),a=(0,r.useRef)(0),l=(0,r.useRef)(0),c=(0,r.useRef)(null),s=(0,r.useRef)(null),u=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),o=a.current-t,c=l.current-r,u=Math.abs(o)>Math.abs(c);u?a.current=t:l.current=r;var d=n(u,u?o:c,!1,e);d&&e.preventDefault(),clearInterval(s.current),d&&(s.current=setInterval((function(){u?o*=ur:c*=ur;var e=Math.floor(u?o:c);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)}),16))}},d=function(){i.current=!1,o()},f=function(e){o(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageX),l.current=Math.ceil(e.touches[0].pageY),c.current=e.target,c.current.addEventListener("touchmove",u,{passive:!1}),c.current.addEventListener("touchend",d,{passive:!0}))};o=function(){c.current&&(c.current.removeEventListener("touchmove",u),c.current.removeEventListener("touchend",d))},(0,Ct.A)((function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",f),o(),clearInterval(s.current)}}),[e])}(B,V,(function(e,t,n,r){var o=r;return!je(e,t,n)&&((!o||!o._virtualHandled)&&(o&&(o._virtualHandled=!0),We({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))})),(0,Ct.A)((function(){function e(e){var t=Me&&e.detail<0,n=Ne&&e.detail>0;!B||t||n||e.preventDefault()}var t=V.current;return t.addEventListener("wheel",We,{passive:!1}),t.addEventListener("DOMMouseScroll",Ve,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",We),t.removeEventListener("DOMMouseScroll",Ve),t.removeEventListener("MozMousePixelScroll",e)}}),[B,Me,Ne]),(0,Ct.A)((function(){if(x){var e=Le(te);ne(e),De({x:e})}}),[we.width,x]);var qe=function(){var e,t;null===(e=Se.current)||void 0===e||e.delayHidden(),null===(t=$e.current)||void 0===t||t.delayHidden()},Ke=function(e,t,n,o,i,a,l,c){var d=r.useRef(),f=r.useState(null),p=(0,vt.A)(f,2),m=p[0],g=p[1];return(0,Ct.A)((function(){if(m&&m.times<10){if(!e.current)return void g((function(e){return(0,s.A)({},e)}));a();var r=m.targetAlign,c=m.originAlign,u=m.index,d=m.offset,f=e.current.clientHeight,p=!1,h=r,v=null;if(f){for(var b=r||c,y=0,C=0,x=0,w=Math.min(t.length-1,u),A=0;A<=w;A+=1){var S=i(t[A]);C=y;var $=n.get(S);y=x=C+(void 0===$?o:$)}for(var k="top"===b?d:f-d,E=w;E>=0;E-=1){var O=i(t[E]),I=n.get(O);if(void 0===I){p=!0;break}if((k-=I)<=0)break}switch(b){case"top":v=C-d;break;case"bottom":v=x-f+d;break;default:var M=e.current.scrollTop;CM+f&&(h="bottom")}null!==v&&l(v),v!==m.lastTop&&(p=!0)}p&&g((0,s.A)((0,s.A)({},m),{},{times:m.times+1,targetAlign:h,lastTop:v}))}}),[m,e.current]),function(e){if(null!=e){if(U.A.cancel(d.current),"number"==typeof e)l(e);else if(e&&"object"===(0,u.A)(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return i(t)===e.key}));var o=e.offset;g({times:0,index:n,offset:void 0===o?0:o,originAlign:r})}}else c()}}(V,W,T,f,N,(function(){return R(!0)}),ue,qe);r.useImperativeHandle(t,(function(){return{nativeElement:K.current,getScrollInfo:Re,scrollTo:function(e){var t;(t=e)&&"object"===(0,u.A)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&ne(Le(e.left)),Ke(e.top)):Ke(e)}}})),(0,Ct.A)((function(){if(k){var e=W.slice(ve,be+1);k(e,W)}}),[ve,be,W]);var Xe=function(e,t,n,o){var i=r.useMemo((function(){return[new Map,[]]}),[e,n.id,o]),a=(0,vt.A)(i,2),l=a[0],c=a[1];return function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,a=l.get(r),s=l.get(i);if(void 0===a||void 0===s)for(var u=e.length,d=c.length;dc&&r.createElement(pr,{ref:Se,prefixCls:o,scrollOffset:Q,scrollRange:he,rtl:F,onScroll:Be,onStartMove:le,onStopMove:ce,spinSize:Ee,containerSize:we.height,style:null==I?void 0:I.verticalScrollBar,thumbStyle:null==I?void 0:I.verticalScrollBarThumb}),H&&x>we.width&&r.createElement(pr,{ref:$e,prefixCls:o,scrollOffset:te,scrollRange:x,rtl:F,onScroll:Be,onStartMove:le,onStopMove:ce,spinSize:ke,containerSize:we.width,horizontal:!0,style:null==I?void 0:I.horizontalScrollBar,thumbStyle:null==I?void 0:I.horizontalScrollBarThumb}))}var yr=r.forwardRef(br);yr.displayName="List";const Cr=yr;var xr=["disabled","title","children","style","className"];function wr(e){return"string"==typeof e||"number"==typeof e}var Ar=function(e,t){var n=St(),o=n.prefixCls,l=n.id,c=n.open,s=n.multiple,u=n.mode,d=n.searchValue,f=n.toggleOpen,p=n.notFoundContent,m=n.onPopupScroll,g=r.useContext(_n),h=g.maxCount,v=g.flattenOptions,b=g.onActiveValue,y=g.defaultActiveFirstOption,C=g.onSelect,x=g.menuItemSelectedIcon,w=g.rawValues,A=g.fieldNames,S=g.virtual,$=g.direction,k=g.listHeight,E=g.listItemHeight,O=g.optionRender,I="".concat(o,"-item"),M=(0,Jn.A)((function(){return v}),[c,v],(function(e,t){return t[0]&&e[1]!==t[1]})),N=r.useRef(null),z=r.useMemo((function(){return s&&Ln(h)&&(null==w?void 0:w.size)>=h}),[s,h,null==w?void 0:w.size]),P=function(e){e.preventDefault()},j=function(e){var t;null===(t=N.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},R=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=M.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];L(e);var n={source:t?"keyboard":"mouse"},r=M[e];r?b(r.value,e,n):b(null,-1,n)};(0,r.useEffect)((function(){H(!1!==y?R(0):-1)}),[M.length,d]);var F=r.useCallback((function(e){return"combobox"!==u&&w.has(e)}),[u,(0,Y.A)(w).toString(),w.size]),_=r.useCallback((function(e){return"combobox"===u?String(e).toLowerCase()===d.toLowerCase():w.has(e)}),[u,d,(0,Y.A)(w).toString(),w.size]);(0,r.useEffect)((function(){var e,t=setTimeout((function(){if(!s&&c&&1===w.size){var e=Array.from(w)[0],t=M.findIndex((function(t){return t.data.value===e}));-1!==t&&(H(t),j(t))}}));c&&(null===(e=N.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[c,d]);var W=function(e){void 0!==e&&C(e,{selected:!w.has(e)}),s||f(!1)};if(r.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case kt.A.N:case kt.A.P:case kt.A.UP:case kt.A.DOWN:var r=0;if(t===kt.A.UP?r=-1:t===kt.A.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===kt.A.N?r=1:t===kt.A.P&&(r=-1)),0!==r){var o=R(B+r,r);j(o),H(o,!0)}break;case kt.A.TAB:case kt.A.ENTER:var i,a=M[B];!a||null!=a&&null!==(i=a.data)&&void 0!==i&&i.disabled||z?W(void 0):W(a.value),c&&e.preventDefault();break;case kt.A.ESC:f(!1),c&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){j(e)}}})),0===M.length)return r.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(I,"-empty"),onMouseDown:P},p);var V=Object.keys(A).map((function(e){return A[e]})),q=function(e){return e.label};function K(e,t){return{role:e.group?"presentation":"option",id:"".concat(l,"_list_").concat(t)}}var X=function(e){var t=M[e];if(!t)return null;var n=t.data||{},o=n.value,i=t.group,l=(0,me.A)(n,!0),c=q(t);return t?r.createElement("div",(0,a.A)({"aria-label":"string"!=typeof c||i?null:c},l,{key:e},K(t,e),{"aria-selected":_(o)}),o):null},U={role:"listbox",id:"".concat(l,"_list")};return r.createElement(r.Fragment,null,S&&r.createElement("div",(0,a.A)({},U,{style:{height:0,width:0,overflow:"hidden"}}),X(B-1),X(B),X(B+1)),r.createElement(Cr,{itemKey:"key",ref:N,data:M,height:k,itemHeight:E,fullHeight:!1,onMouseDown:P,onScroll:m,virtual:S,direction:$,innerProps:S?null:U},(function(e,t){var n=e.group,o=e.groupOption,l=e.data,c=e.label,s=e.value,u=l.key;if(n){var d,f=null!==(d=l.title)&&void 0!==d?d:wr(c)?c.toString():void 0;return r.createElement("div",{className:i()(I,"".concat(I,"-group"),l.className),title:f},void 0!==c?c:u)}var p=l.disabled,m=l.title,g=(l.children,l.style),h=l.className,v=(0,bt.A)(l,xr),b=(0,G.A)(v,V),y=F(s),C=p||!y&&z,w="".concat(I,"-option"),A=i()(I,w,h,(0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)({},"".concat(w,"-grouped"),o),"".concat(w,"-active"),B===t&&!C),"".concat(w,"-disabled"),C),"".concat(w,"-selected"),y)),$=q(e),k=!x||"function"==typeof x||y,E="number"==typeof $?$:$||s,M=wr(E)?E.toString():void 0;return void 0!==m&&(M=m),r.createElement("div",(0,a.A)({},(0,me.A)(b),S?{}:K(e,t),{"aria-selected":_(s),className:A,title:M,onMouseMove:function(){B===t||C||H(t)},onClick:function(){C||W(s)},style:g}),r.createElement("div",{className:"".concat(w,"-content")},"function"==typeof O?O(e,{index:t}):E),r.isValidElement(x)||y,k&&r.createElement(wt,{className:"".concat(I,"-option-state"),customizeIcon:x,customizeIconProps:{value:s,disabled:C,isSelected:y}},y?"✓":null))})))};const Sr=r.forwardRef(Ar);function $r(e,t){return Qt(e).join("").toUpperCase().includes(t)}var kr=n(998),Er=0,Or=(0,kr.A)();function Ir(e){var t=r.useState(),n=(0,vt.A)(t,2),o=n[0],i=n[1];return r.useEffect((function(){var e;i("rc_select_".concat((Or?(e=Er,Er+=1):e="TEST_OR_SSR",e)))}),[]),e||o}var Mr=["children","value"],Nr=["children"];function zr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,l.A)(e).map((function(e,n){if(!r.isValidElement(e)||!e.type)return null;var o=e,i=o.type.isSelectOptGroup,a=o.key,l=o.props,c=l.children,u=(0,bt.A)(l,Nr);return t||!i?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=(0,bt.A)(r,Mr);return(0,s.A)({key:n,value:void 0!==i?i:n,children:o},a)}(e):(0,s.A)((0,s.A)({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},u),{},{options:zr(c)})})).filter((function(e){return e}))}const Pr=function(e,t,n,o,i){return r.useMemo((function(){var r=e;!e&&(r=zr(t));var a=new Map,l=new Map,c=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s0?e(t.options):t.options}):t}))},ye=r.useMemo((function(){return w?be(ve):ve}),[ve,w,Q]),Ce=r.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=Hn(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(c in t)){var i=t[l];o.push({key:Bn(t,o.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[s];void 0===u&&r&&(u=t.label),o.push({key:Bn(t,o.length),group:!0,data:t,label:u}),e(t[c],!0)}}))}(e,!1),o}(ye,{fieldNames:X,childrenAsData:q})}),[ye,X,q]),xe=function(e){var t=re(e);if(le(t),H&&(t.length!==de.length||t.some((function(e,t){var n;return(null===(n=de[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=L?t:t.map((function(e){return e.value})),r=t.map((function(e){return Fn(fe(e.value))}));H(V?n:n[0],V?r:r[0])}},we=r.useState(null),Ae=(0,vt.A)(we,2),Se=Ae[0],$e=Ae[1],ke=r.useState(0),Ee=(0,vt.A)(ke,2),Oe=Ee[0],Ie=Ee[1],Me=void 0!==O?O:"combobox"!==o,Ne=r.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Ie(t),c&&"combobox"===o&&null!==e&&"keyboard"===r&&$e(String(e))}),[c,o]),ze=function(e,t,n){var r=function(){var t,n=fe(e);return[L?{label:null==n?void 0:n[X.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,Fn(n)]};if(t&&v){var o=r(),i=(0,vt.A)(o,2),a=i[0],l=i[1];v(a,l)}else if(!t&&b&&"clear"!==n){var c=r(),s=(0,vt.A)(c,2),u=s[0],d=s[1];b(u,d)}},Pe=jr((function(e,t){var n,r=!V||t.selected;n=r?V?[].concat((0,Y.A)(de),[e]):[e]:de.filter((function(t){return t.value!==e})),xe(n),ze(e,r),"combobox"===o?$e(""):Kn&&!h||(Z(""),$e(""))})),je=r.useMemo((function(){var e=!1!==M&&!1!==C;return(0,s.A)((0,s.A)({},J),{},{flattenOptions:Ce,onActiveValue:Ne,defaultActiveFirstOption:Me,onSelect:Pe,menuItemSelectedIcon:I,rawValues:me,fieldNames:X,virtual:e,direction:N,listHeight:P,listItemHeight:R,childrenAsData:q,maxCount:F,optionRender:k})}),[F,J,Ce,Ne,Me,Pe,I,me,X,M,C,N,P,R,q,k]);return r.createElement(_n.Provider,{value:je},r.createElement(Gn,(0,a.A)({},_,{id:W,prefixCls:l,ref:t,omitDomProps:Tr,mode:o,displayValues:pe,onDisplayValuesChange:function(e,t){xe(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){ze(e.value,!1,n)}))},direction:N,searchValue:Q,onSearch:function(e,t){if(Z(e),$e(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===o&&xe(e),null==m||m(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat((0,Y.A)(me),[n])));xe(r),ze(n,!0),Z("")}}},autoClearSearchValue:h,onSearchSplit:function(e){var t=e;"tags"!==o&&(t=e.map((function(e){var t=te.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,Y.A)(me),(0,Y.A)(t))));xe(n),n.forEach((function(e){ze(e,!0)}))},dropdownMatchSelectWidth:C,OptionList:Sr,emptyOptions:!Ce.length,activeValue:Se,activeDescendantId:"".concat(W,"_list_").concat(Oe)})))}));var Br=Dr;Br.Option=Zn,Br.OptGroup=Un;const Lr=Br;var Hr=n(3723);function Fr(e,t,n){return i()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const _r=(e,t)=>t||e;var Wr=n(9155),Vr=n(4978),qr=n(3093);const Kr=()=>{const[,e]=(0,qr.Ay)(),[t]=(0,Wr.A)("Empty"),n=new Vr.q(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return r.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,(null==t?void 0:t.description)||"Empty"),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(24 31.67)"},r.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),r.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),r.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),r.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),r.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),r.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),r.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},r.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),r.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};const Xr=()=>{const[,e]=(0,qr.Ay)(),[t]=(0,Wr.A)("Empty"),{colorFill:n,colorFillTertiary:o,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:l,shadowColor:c,contentColor:s}=(0,r.useMemo)((()=>({borderColor:new Vr.q(n).onBackground(a).toHexShortString(),shadowColor:new Vr.q(o).onBackground(a).toHexShortString(),contentColor:new Vr.q(i).onBackground(a).toHexShortString()})),[n,o,i,a]);return r.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,(null==t?void 0:t.description)||"Empty"),r.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},r.createElement("ellipse",{fill:c,cx:"32",cy:"33",rx:"32",ry:"7"}),r.createElement("g",{fillRule:"nonzero",stroke:l},r.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),r.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},Gr=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Yr=(0,J.OF)("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=(0,Ue.oX)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[Gr(o)]}));var Ur=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:n,prefixCls:o,image:a=Qr,description:l,children:c,imageStyle:s,style:u}=e,d=Ur(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:f,direction:p,empty:m}=r.useContext(Z.ConfigContext),g=f("empty",o),[h,v,b]=Yr(g),[y]=(0,Wr.A)("Empty"),C=void 0!==l?l:null==y?void 0:y.description,x="string"==typeof C?C:"empty";let w=null;return w="string"==typeof a?r.createElement("img",{alt:x,src:a}):a,h(r.createElement("div",Object.assign({className:i()(v,b,g,null==m?void 0:m.className,{[`${g}-normal`]:a===Zr,[`${g}-rtl`]:"rtl"===p},t,n),style:Object.assign(Object.assign({},null==m?void 0:m.style),u)},d),r.createElement("div",{className:`${g}-image`,style:s},w),C&&r.createElement("div",{className:`${g}-description`},C),c&&r.createElement("div",{className:`${g}-footer`},c)))};Jr.PRESENTED_IMAGE_DEFAULT=Qr,Jr.PRESENTED_IMAGE_SIMPLE=Zr;const eo=Jr,to=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,r.useContext)(Z.ConfigContext),o=n("empty");switch(t){case"Table":case"List":return r.createElement(eo,{image:eo.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(eo,{image:eo.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});case"Table.filter":return null;default:return r.createElement(eo,null)}};var no=n(8119),ro=n(829),oo=n(4241);const io=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,i;const{variant:a,[e]:l}=(0,r.useContext)(Z.ConfigContext),c=(0,r.useContext)(oo.Pp),s=null==l?void 0:l.variant;let u;u=void 0!==t?t:!1===n?"borderless":null!==(i=null!==(o=null!=c?c:s)&&void 0!==o?o:a)&&void 0!==i?i:"outlined";return[u,Z.Variants.includes(u)]};var ao=n(6327);const lo=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)};var co=n(5974),so=n(4980);const uo=new he.Mo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),fo=new he.Mo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),po=new he.Mo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),mo=new he.Mo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),go=new he.Mo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),ho=new he.Mo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),vo=new he.Mo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),bo=new he.Mo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),yo={"slide-up":{inKeyframes:uo,outKeyframes:fo},"slide-down":{inKeyframes:po,outKeyframes:mo},"slide-left":{inKeyframes:go,outKeyframes:ho},"slide-right":{inKeyframes:vo,outKeyframes:bo}},Co=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=yo[t];return[(0,so.b)(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},xo=new he.Mo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),wo=new he.Mo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Ao=new he.Mo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),So=new he.Mo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),$o=new he.Mo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ko=new he.Mo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Eo={"move-up":{inKeyframes:new he.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 he.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:xo,outKeyframes:wo},"move-left":{inKeyframes:Ao,outKeyframes:So},"move-right":{inKeyframes:$o,outKeyframes:ko}},Oo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Eo[t];return[(0,so.b)(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Io=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},Mo=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,ve.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,[`\n ${o}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:uo},[`\n ${o}${l}topLeft,\n ${i}${l}topLeft,\n ${o}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:po},[`${a}${l}bottomLeft`]:{animationName:fo},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:mo},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},Io(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ve.L9),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Io(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Co(e,"slide-up"),Co(e,"slide-down"),Oo(e,"move-up"),Oo(e,"move-down")]},No=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(o).equal(),0),itemHeight:(0,he.zA)(t),itemLineHeight:(0,he.zA)(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},zo=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:s,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ve.Nk)()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:s}})}}}},Po=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e),l=t?`${n}-${t}`:"",c=No(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},zo(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,he.zA)(r)} 0`,lineHeight:(0,he.zA)(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-wrap`]:{width:"100%",overflow:"hidden"},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:(0,he.zA)(c.itemLineHeight)},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:(0,he.zA)(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`},[`${n}-prefix`]:{height:c.itemHeight,lineHeight:(0,he.zA)(c.itemLineHeight),marginInlineStart:`calc(${(0,he.zA)(e.inputPaddingHorizontalBase)} - ${(0,he.zA)(c.basePadding)})`,marginInlineEnd:e.selectAffixPadding}})}};function jo(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[Po(e,t),o]}const Ro=e=>{const{componentCls:t}=e,n=(0,Ue.oX)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=(0,Ue.oX)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[jo(e),jo(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},jo(r,"lg")]};function To(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o,selectAffixPadding:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},(0,ve.dF)(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative"},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder,\n ${n}-prefix\n `]:{display:"block",padding:0,lineHeight:(0,he.zA)(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[`${n}-prefix`]:{marginInlineEnd:i},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-search,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${(0,he.zA)(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:(0,he.zA)(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,he.zA)(r)}`,"&:after":{display:"none"}}}}}}}function Do(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[To(e),To((0,Ue.oX)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${(0,he.zA)(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},To((0,Ue.oX)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Bo=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${(0,he.zA)(o)} ${t.activeOutlineColor}`,outline:0}}}},Lo=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Bo(e,t))}),Ho=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Bo(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor})),Lo(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline})),Lo(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Fo=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},_o=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Fo(e,t))}),Wo=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Fo(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),_o(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),_o(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Vo=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),qo=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Ho(e)),Wo(e)),Vo(e))}),Ko=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Xo=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Go=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Ko(e)),Xo(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ve.L9),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ve.L9),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},(0,ve.Nk)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,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 ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},Yo=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Go(e),Do(e),Ro(e),Mo(e),{[`${t}-rtl`]:{direction:"rtl"}},(0,co.G)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Uo=(0,J.OF)("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=(0,Ue.oX)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Yo(r),qo(r)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:s,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:h,colorTextDisabled:v,colorPrimaryHover:b,colorPrimary:y,controlOutline:C}=e,x=2*l,w=2*r,A=Math.min(o-x,o-w),S=Math.min(i-x,i-w),$=Math.min(a-x,a-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:A,multipleItemHeightSM:S,multipleItemHeightLG:$,multipleSelectorBgDisabled:h,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:C,selectAffixPadding:l}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});const Qo={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"};var Zo=n(7064),Jo=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:Qo}))};const ei=r.forwardRef(Jo);const ti={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"};var ni=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:ti}))};const ri=r.forwardRef(ni);var oi=n(3567);const ii={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"};var ai=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:ii}))};const li=r.forwardRef(ai);function ci(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:o,removeIcon:i,loading:a,multiple:l,hasFeedback:c,prefixCls:s,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const m=null!=n?n:r.createElement(se.A,null),g=e=>null!==t||c||f?r.createElement(r.Fragment,null,!1!==u&&e,c&&d):null;let h=null;if(void 0!==t)h=g(t);else if(a)h=g(r.createElement(oi.A,{spin:!0}));else{const e=`${s}-suffix`;h=t=>{let{open:n,showSearch:o}=t;return g(n&&o?r.createElement(li,{className:e}):r.createElement(ri,{className:e}))}}let v=null;v=void 0!==o?o:l?r.createElement(ei,null):null;let b=null;return b=void 0!==i?i:r.createElement(ue.A,null),{clearIcon:m,suffixIcon:h,itemIcon:v,removeIcon:b}}function si(e,t){return void 0!==t?t:null!==e}var ui=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:o,bordered:a,className:l,rootClassName:c,getPopupContainer:s,popupClassName:u,dropdownClassName:d,listHeight:f=256,placement:p,listItemHeight:m,size:g,disabled:h,notFoundContent:v,status:b,builtinPlacements:y,dropdownMatchSelectWidth:C,popupMatchSelectWidth:x,direction:w,style:A,allowClear:S,variant:$,dropdownStyle:k,transitionName:E,tagRender:O,maxCount:I,prefix:M}=e,N=ui(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:z,getPrefixCls:P,renderEmpty:j,direction:R,virtual:T,popupMatchSelectWidth:D,popupOverflow:B,select:L}=r.useContext(Z.ConfigContext),[,H]=(0,qr.Ay)(),F=null!=m?m:null==H?void 0:H.controlHeight,_=P("select",o),W=P(),V=null!=w?w:R,{compactSize:q,compactItemClassnames:K}=(0,ao.RQ)(_,V),[X,Y]=io("select",$,a),U=(0,Xe.A)(_),[Q,J,ee]=Uo(_,U),te=r.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===di?"combobox":t}),[e.mode]),ne="multiple"===te||"tags"===te,re=si(e.suffixIcon,e.showArrow),oe=null!==(n=null!=x?x:C)&&void 0!==n?n:D,{status:ie,hasFeedback:ae,isFormItemInput:le,feedbackIcon:ce}=r.useContext(oo.$W),se=_r(ie,b);let ue;ue=void 0!==v?v:"combobox"===te?null:(null==j?void 0:j("Select"))||r.createElement(to,{componentName:"Select"});const{suffixIcon:de,itemIcon:fe,removeIcon:pe,clearIcon:me}=ci(Object.assign(Object.assign({},N),{multiple:ne,hasFeedback:ae,feedbackIcon:ce,showSuffixIcon:re,prefixCls:_,componentName:"Select"})),ge=!0===S?{clearIcon:me}:S,he=(0,G.A)(N,["suffixIcon","itemIcon"]),ve=i()(u||d,{[`${_}-dropdown-${V}`]:"rtl"===V},c,ee,U,J),be=(0,ro.A)((e=>{var t;return null!==(t=null!=g?g:q)&&void 0!==t?t:e})),ye=r.useContext(no.A),Ce=null!=h?h:ye,xe=i()({[`${_}-lg`]:"large"===be,[`${_}-sm`]:"small"===be,[`${_}-rtl`]:"rtl"===V,[`${_}-${X}`]:Y,[`${_}-in-form-item`]:le},Fr(_,se,ae),K,null==L?void 0:L.className,l,c,ee,U,J),we=r.useMemo((()=>void 0!==p?p:"rtl"===V?"bottomRight":"bottomLeft"),[p,V]);const[Ae]=(0,mt.YK)("SelectLike",null==k?void 0:k.zIndex);return Q(r.createElement(Lr,Object.assign({ref:t,virtual:T,showSearch:null==L?void 0:L.showSearch},he,{style:Object.assign(Object.assign({},null==L?void 0:L.style),A),dropdownMatchSelectWidth:oe,transitionName:(0,Hr.b)(W,"slide-up",E),builtinPlacements:lo(y,B),listHeight:f,listItemHeight:F,mode:te,prefixCls:_,placement:we,direction:V,prefix:M,suffixIcon:de,menuItemSelectedIcon:fe,removeIcon:pe,allowClear:ge,notFoundContent:ue,className:xe,getPopupContainer:s||z,dropdownClassName:ve,disabled:Ce,dropdownStyle:Object.assign(Object.assign({},k),{zIndex:Ae}),maxCount:ne?I:void 0,tagRender:ne?O:void 0})))};const pi=r.forwardRef(fi),mi=(0,gt.A)(pi);pi.SECRET_COMBOBOX_MODE_DO_NOT_USE=di,pi.Option=Zn,pi.OptGroup=Un,pi._InternalPanelDoNotUseOrYouWillBeFired=mi;const gi=pi,{Option:hi}=gi;function vi(e){return(null==e?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const bi=(e,t)=>{var n;const{prefixCls:o,className:a,popupClassName:c,dropdownClassName:s,children:u,dataSource:d}=e,f=(0,l.A)(u);let p;1===f.length&&r.isValidElement(f[0])&&!vi(f[0])&&([p]=f);const m=p?()=>p:void 0;let g;g=f.length&&vi(f[0])?u:d?d.map((e=>{if(r.isValidElement(e))return e;switch(typeof e){case"string":return r.createElement(hi,{key:e,value:e},e);case"object":{const{value:t}=e;return r.createElement(hi,{key:t,value:t},e.text)}default:return}})):[];const{getPrefixCls:h}=r.useContext(Z.ConfigContext),v=h("select",o),[b]=(0,mt.YK)("SelectLike",null===(n=e.dropdownStyle)||void 0===n?void 0:n.zIndex);return r.createElement(gi,Object.assign({ref:t,suffixIcon:null},(0,G.A)(e,["dataSource","dropdownClassName"]),{prefixCls:v,popupClassName:c||s,dropdownStyle:Object.assign(Object.assign({},e.dropdownStyle),{zIndex:b}),className:i()(`${v}-auto-complete`,a),mode:gi.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:m}),g)},yi=r.forwardRef(bi),Ci=(0,gt.A)(yi);yi.Option=hi,yi._InternalPanelDoNotUseOrYouWillBeFired=Ci;const xi=yi;var wi=n(4945),Ai=n(8551);const Si=r.createContext({}),$i=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:c,textFontSize:s,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:p,borderRadiusSM:m,lineWidth:g,lineType:h}=e,v=(e,t,o)=>({width:e,height:e,borderRadius:"50%",[`&${n}-square`]:{borderRadius:o},[`&${n}-icon`]:{fontSize:t,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${(0,he.zA)(g)} ${h} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),v(a,s,f)),{"&-lg":Object.assign({},v(l,u,p)),"&-sm":Object.assign({},v(c,d,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},ki=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},Ei=(0,J.OF)("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=(0,Ue.oX)(e,{avatarBg:n,avatarColor:t});return[$i(r),ki(r)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:c,marginXXS:s,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:l,textFontSizeSM:o,groupSpace:s,groupOverlapping:-c,groupBorderColor:u}}));var Oi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const[n,o]=r.useState(1),[a,l]=r.useState(!1),[c,s]=r.useState(!0),u=r.useRef(null),d=r.useRef(null),p=(0,f.K4)(t,u),{getPrefixCls:m,avatar:g}=r.useContext(Z.ConfigContext),h=r.useContext(Si),v=()=>{if(!d.current||!u.current)return;const t=d.current.offsetWidth,n=u.current.offsetWidth;if(0!==t&&0!==n){const{gap:r=4}=e;2*r{l(!0)}),[]),r.useEffect((()=>{s(!0),o(1)}),[e.src]),r.useEffect(v,[e.gap]);const b=()=>{const{onError:t}=e;!1!==(null==t?void 0:t())&&s(!1)},{prefixCls:y,shape:C,size:x,src:w,srcSet:A,icon:S,className:$,rootClassName:k,alt:E,draggable:O,children:I,crossOrigin:M}=e,N=Oi(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),z=(0,ro.A)((e=>{var t,n;return null!==(n=null!==(t=null!=x?x:null==h?void 0:h.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"})),P=Object.keys("object"==typeof z&&z||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e))),j=(0,Ai.A)(P),R=r.useMemo((()=>{if("object"!=typeof z)return{};const e=wi.ye.find((e=>j[e])),t=z[e];return t?{width:t,height:t,fontSize:t&&(S||I)?t/2:18}:{}}),[j,z]);const T=m("avatar",y),D=(0,Xe.A)(T),[B,L,H]=Ei(T,D),F=i()({[`${T}-lg`]:"large"===z,[`${T}-sm`]:"small"===z}),_=r.isValidElement(w),W=C||(null==h?void 0:h.shape)||"circle",V=i()(T,F,null==g?void 0:g.className,`${T}-${W}`,{[`${T}-image`]:_||w&&c,[`${T}-icon`]:!!S},H,D,$,k,L),q="number"==typeof z?{width:z,height:z,fontSize:S?z/2:18}:{};let K;if("string"==typeof w&&c)K=r.createElement("img",{src:w,draggable:O,srcSet:A,onError:b,alt:E,crossOrigin:M});else if(_)K=w;else if(S)K=S;else if(a||1!==n){const e=`scale(${n})`,t={msTransform:e,WebkitTransform:e,transform:e};K=r.createElement(X,{onResize:v},r.createElement("span",{className:`${T}-string`,ref:d,style:Object.assign({},t)},I))}else K=r.createElement("span",{className:`${T}-string`,style:{opacity:0},ref:d},I);return delete N.onError,delete N.gap,B(r.createElement("span",Object.assign({},N,{style:Object.assign(Object.assign(Object.assign(Object.assign({},q),R),null==g?void 0:g.style),N.style),className:V,ref:p}),K))};const Mi=r.forwardRef(Ii),Ni=e=>e?"function"==typeof e?e():e:null;function zi(e){var t=e.children,n=e.prefixCls,o=e.id,a=e.overlayInnerStyle,l=e.className,c=e.style;return r.createElement("div",{className:i()("".concat(n,"-content"),l),style:c},r.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:a},"function"==typeof t?t():t))}var Pi={shiftX:64,adjustY:1},ji={adjustX:1,shiftY:!0},Ri=[0,0],Ti={left:{points:["cr","cl"],overflow:ji,offset:[-4,0],targetOffset:Ri},right:{points:["cl","cr"],overflow:ji,offset:[4,0],targetOffset:Ri},top:{points:["bc","tc"],overflow:Pi,offset:[0,-4],targetOffset:Ri},bottom:{points:["tc","bc"],overflow:Pi,offset:[0,4],targetOffset:Ri},topLeft:{points:["bl","tl"],overflow:Pi,offset:[0,-4],targetOffset:Ri},leftTop:{points:["tr","tl"],overflow:ji,offset:[-4,0],targetOffset:Ri},topRight:{points:["br","tr"],overflow:Pi,offset:[0,-4],targetOffset:Ri},rightTop:{points:["tl","tr"],overflow:ji,offset:[4,0],targetOffset:Ri},bottomRight:{points:["tr","br"],overflow:Pi,offset:[0,4],targetOffset:Ri},rightBottom:{points:["bl","br"],overflow:ji,offset:[4,0],targetOffset:Ri},bottomLeft:{points:["tl","bl"],overflow:Pi,offset:[0,4],targetOffset:Ri},leftBottom:{points:["br","bl"],overflow:ji,offset:[-4,0],targetOffset:Ri}};var Di=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Bi=function(e,t){var n=e.overlayClassName,o=e.trigger,i=void 0===o?["hover"]:o,l=e.mouseEnterDelay,c=void 0===l?0:l,u=e.mouseLeaveDelay,d=void 0===u?.1:u,f=e.overlayStyle,p=e.prefixCls,m=void 0===p?"rc-tooltip":p,g=e.children,h=e.onVisibleChange,v=e.afterVisibleChange,b=e.transitionName,y=e.animation,C=e.motion,x=e.placement,w=void 0===x?"right":x,A=e.align,S=void 0===A?{}:A,$=e.destroyTooltipOnHide,k=void 0!==$&&$,E=e.defaultVisible,O=e.getTooltipContainer,I=e.overlayInnerStyle,M=(e.arrowContent,e.overlay),N=e.id,z=e.showArrow,P=void 0===z||z,j=(0,bt.A)(e,Di),R=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(function(){return R.current}));var T=(0,s.A)({},j);"visible"in e&&(T.popupVisible=e.visible);return r.createElement(Pn,(0,a.A)({popupClassName:n,prefixCls:m,popup:function(){return r.createElement(zi,{key:"content",prefixCls:m,id:N,overlayInnerStyle:I},M)},action:i,builtinPlacements:Ti,popupPlacement:w,ref:R,popupAlign:S,getPopupContainer:O,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:b,popupAnimation:y,popupMotion:C,defaultPopupVisible:E,autoDestroy:k,mouseLeaveDelay:d,popupStyle:f,mouseEnterDelay:c,arrow:P},T),g)};const Li=(0,r.forwardRef)(Bi);var Hi=n(2897);function Fi(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),s=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-c,d=s,f=2*o-a,p=l,m=2*o-0,g=i,h=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1);return{arrowShadowWidth:h,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${c} ${s} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*o-v}px 100%, ${v}px 100%)`}}const _i=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,he.zA)(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function Wi(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function Vi(e,t){return e?t:{}}function qi(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},_i(e,t,o)),{"&:before":{background:t}})]},Vi(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,he.zA)(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Vi(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,he.zA)(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Vi(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Vi(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const Ki={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"]}},Xi={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"]}},Gi=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Yi(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(Ki).forEach((e=>{const s=r&&Xi[e]||Ki[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,Gi.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=Wi({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),c}var Ui=n(2616),Qi=n(9077);const Zi=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Ji(e,t){return Zi.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const ea=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:s,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:l,padding:`${(0,he.zA)(e.calc(s).div(2).equal())} ${(0,he.zA)(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,8)}},[`${t}-content`]:{position:"relative"}}),Ji(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},qi(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},ta=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Wi({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Fi((0,Ue.oX)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),na=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(0,J.OF)("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=(0,Ue.oX)(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[ea(o),(0,Qi.aB)(e,"zoom-big-fast")]}),ta,{resetStyle:!1,injectStyle:t})(e)},ra=Zi.map((e=>`${e}-inverse`)),oa=["success","processing","error","default","warning"];function ia(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat((0,Y.A)(ra),(0,Y.A)(Zi)).includes(e):Zi.includes(e)}function aa(e,t){const n=ia(t),r=i()({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const la=e=>{const{prefixCls:t,className:n,placement:o="top",title:a,color:l,overlayInnerStyle:c}=e,{getPrefixCls:s}=r.useContext(Z.ConfigContext),u=s("tooltip",t),[d,f,p]=na(u),m=aa(u,l),g=m.arrowStyle,h=Object.assign(Object.assign({},c),m.overlayStyle),v=i()(f,p,u,`${u}-pure`,`${u}-placement-${o}`,n,m.className);return d(r.createElement("div",{className:v,style:g},r.createElement("div",{className:`${u}-arrow`}),r.createElement(zi,Object.assign({},e,{className:f,prefixCls:u,overlayInnerStyle:h}),a)))};var ca=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,o;const{prefixCls:a,openClassName:l,getTooltipContainer:c,overlayClassName:s,color:u,overlayInnerStyle:d,children:f,afterOpenChange:p,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:h=!0,title:v,overlay:b,builtinPlacements:y,arrowPointAtCenter:C=!1,autoAdjustOverflow:x=!0}=e,w=!!h,[,A]=(0,qr.Ay)(),{getPopupContainer:S,getPrefixCls:$,direction:k}=r.useContext(Z.ConfigContext),E=(0,at.rJ)("Tooltip"),O=r.useRef(null),I=()=>{var e;null===(e=O.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,(()=>{var e;return{forceAlign:I,forcePopupAlign:()=>{E.deprecated(!1,"forcePopupAlign","forceAlign"),I()},nativeElement:null===(e=O.current)||void 0===e?void 0:e.nativeElement}}));const[M,N]=(0,yt.A)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),z=!v&&!b&&0!==v,P=r.useMemo((()=>{var e,t;let n=C;return"object"==typeof h&&(n=null!==(t=null!==(e=h.pointAtCenter)&&void 0!==e?e:h.arrowPointAtCenter)&&void 0!==t?t:C),y||Yi({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:w?A.sizePopupArrow:0,borderRadius:A.borderRadius,offset:A.marginXXS,visibleFirst:!0})}),[C,h,y,A]),j=r.useMemo((()=>0===v?v:b||v||""),[b,v]),R=r.createElement(Hi.A,{space:!0},"function"==typeof j?j():j),{getPopupContainer:T,placement:D="top",mouseEnterDelay:B=.1,mouseLeaveDelay:L=.1,overlayStyle:H,rootClassName:F}=e,_=ca(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),W=$("tooltip",a),V=$(),q=e["data-popover-inject"];let K=M;"open"in e||"visible"in e||!z||(K=!1);const X=r.isValidElement(f)&&!(0,ge.zv)(f)?f:r.createElement("span",null,f),G=X.props,Y=G.className&&"string"!=typeof G.className?G.className:i()(G.className,l||`${W}-open`),[U,Q,J]=na(W,!q),ee=aa(W,u),te=ee.arrowStyle,ne=Object.assign(Object.assign({},d),ee.overlayStyle),re=i()(s,{[`${W}-rtl`]:"rtl"===k},ee.className,F,Q,J),[oe,ie]=(0,mt.YK)("Tooltip",_.zIndex),ae=r.createElement(Li,Object.assign({},_,{zIndex:oe,showArrow:w,placement:D,mouseEnterDelay:B,mouseLeaveDelay:L,prefixCls:W,overlayClassName:re,overlayStyle:Object.assign(Object.assign({},te),H),getTooltipContainer:T||c||S,ref:O,builtinPlacements:P,overlay:R,visible:K,onVisibleChange:t=>{var n,r;N(!z&&t),z||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=p?p:m,overlayInnerStyle:ne,arrowContent:r.createElement("span",{className:`${W}-arrow-content`}),motion:{motionName:(0,Hr.b)(V,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),K?(0,ge.Ob)(X,{className:Y}):X);return U(r.createElement(Ui.A.Provider,{value:ie},ae))})),ua=sa;ua._InternalPanelDoNotUseOrYouWillBeFired=la;const da=ua,fa=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},qi(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},pa=e=>{const{componentCls:t}=e;return{[t]:Zi.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},ma=(0,J.OF)("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=(0,Ue.oX)(e,{popoverBg:t,popoverColor:n});return[fa(r),pa(r),(0,Qi.aB)(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:c,lineType:s,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},Fi(e)),Wi({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:c,titlePadding:i?`${p}px ${g}px ${m}px`:0,titleBorderBottom:i?`${t}px ${s} ${u}`:"none",innerContentPadding:i?`${d}px ${g}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var ga=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{title:t,content:n,prefixCls:o}=e;return t||n?r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${o}-title`},t),n&&r.createElement("div",{className:`${o}-inner-content`},n)):null},va=e=>{const{hashId:t,prefixCls:n,className:o,style:a,placement:l="top",title:c,content:s,children:u}=e,d=Ni(c),f=Ni(s),p=i()(t,n,`${n}-pure`,`${n}-placement-${l}`,o);return r.createElement("div",{className:p,style:a},r.createElement("div",{className:`${n}-arrow`}),r.createElement(zi,Object.assign({},e,{className:t,prefixCls:n}),u||r.createElement(ha,{prefixCls:n,title:d,content:f})))},ba=e=>{const{prefixCls:t,className:n}=e,o=ga(e,["prefixCls","className"]),{getPrefixCls:a}=r.useContext(Z.ConfigContext),l=a("popover",t),[c,s,u]=ma(l);return c(r.createElement(va,Object.assign({},o,{prefixCls:l,hashId:s,className:i()(n,u)})))};var ya=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,o;const{prefixCls:a,title:l,content:c,overlayClassName:s,placement:u="top",trigger:d="hover",children:f,mouseEnterDelay:p=.1,mouseLeaveDelay:m=.1,onOpenChange:g,overlayStyle:h={}}=e,v=ya(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:b}=r.useContext(Z.ConfigContext),y=b("popover",a),[C,x,w]=ma(y),A=b(),S=i()(s,x,w),[$,k]=(0,yt.A)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),E=(e,t)=>{k(e,!0),null==g||g(e,t)},O=Ni(l),I=Ni(c);return C(r.createElement(da,Object.assign({placement:u,trigger:d,mouseEnterDelay:p,mouseLeaveDelay:m,overlayStyle:h},v,{prefixCls:y,overlayClassName:S,ref:t,open:$,onOpenChange:e=>{E(e)},overlay:O||I?r.createElement(ha,{prefixCls:y,title:O,content:I}):null,transitionName:(0,Hr.b)(A,"zoom-big",v.transitionName),"data-popover-inject":!0}),(0,ge.Ob)(f,{onKeyDown:e=>{var t,n;r.isValidElement(f)&&(null===(n=null==f?void 0:(t=f.props).onKeyDown)||void 0===n||n.call(t,e)),(e=>{e.keyCode===kt.A.ESC&&E(!1,e)})(e)}})))})),xa=Ca;xa._InternalPanelDoNotUseOrYouWillBeFired=ba;const wa=xa,Aa=e=>{const{size:t,shape:n}=r.useContext(Si),o=r.useMemo((()=>({size:e.size||t,shape:e.shape||n})),[e.size,e.shape,t,n]);return r.createElement(Si.Provider,{value:o},e.children)},Sa=e=>{var t,n,o;const{getPrefixCls:a,direction:c}=r.useContext(Z.ConfigContext),{prefixCls:s,className:u,rootClassName:d,style:f,maxCount:p,maxStyle:m,size:g,shape:h,maxPopoverPlacement:v,maxPopoverTrigger:b,children:y,max:C}=e;const x=a("avatar",s),w=`${x}-group`,A=(0,Xe.A)(x),[S,$,k]=Ei(x,A),E=i()(w,{[`${w}-rtl`]:"rtl"===c},k,A,u,d,$),O=(0,l.A)(y).map(((e,t)=>(0,ge.Ob)(e,{key:`avatar-key-${t}`}))),I=(null==C?void 0:C.count)||p,M=O.length;if(I&&I{const{componentCls:t,backTopFontSize:n,backTopSize:r,zIndexPopup:o}=e;return{[t]:Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"fixed",insetInlineEnd:e.backTopInlineEnd,insetBlockEnd:e.backTopBlockEnd,zIndex:o,width:40,height:40,cursor:"pointer","&:empty":{display:"none"},[`${t}-content`]:{width:r,height:r,overflow:"hidden",color:e.backTopColor,textAlign:"center",backgroundColor:e.backTopBackground,borderRadius:r,transition:`all ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.backTopHoverBackground,transition:`all ${e.motionDurationMid}`}},[`${t}-icon`]:{fontSize:n,lineHeight:(0,he.zA)(r)}})}},Na=e=>{const{componentCls:t,screenMD:n,screenXS:r,backTopInlineEndMD:o,backTopInlineEndXS:i}=e;return{[`@media (max-width: ${(0,he.zA)(n)})`]:{[t]:{insetInlineEnd:o}},[`@media (max-width: ${(0,he.zA)(r)})`]:{[t]:{insetInlineEnd:i}}}},za=(0,J.OF)("BackTop",(e=>{const{fontSizeHeading3:t,colorTextDescription:n,colorTextLightSolid:r,colorText:o,controlHeightLG:i,calc:a}=e,l=(0,Ue.oX)(e,{backTopBackground:n,backTopColor:r,backTopHoverBackground:o,backTopFontSize:t,backTopSize:i,backTopBlockEnd:a(i).mul(1.25).equal(),backTopInlineEnd:a(i).mul(2.5).equal(),backTopInlineEndMD:a(i).mul(1.5).equal(),backTopInlineEndXS:a(i).mul(.5).equal()});return[Ma(l),Na(l)]}),(e=>({zIndexPopup:e.zIndexBase+10})));const Pa=e=>{const{prefixCls:t,className:n,rootClassName:o,visibilityHeight:a=400,target:l,onClick:c,duration:s=450}=e,[u,d]=r.useState(0===a),f=r.useRef(null),p=()=>{var e;return(null===(e=f.current)||void 0===e?void 0:e.ownerDocument)||window},m=Q((e=>{const t=qe(e.target);d(t>=a)}));r.useEffect((()=>{const e=(l||p)();return m({target:e}),null==e||e.addEventListener("scroll",m),()=>{m.cancel(),null==e||e.removeEventListener("scroll",m)}}),[l]);const{getPrefixCls:g,direction:h}=r.useContext(Z.ConfigContext),v=g("back-top",t),b=g(),[y,C,x]=za(v),w=i()(C,x,v,{[`${v}-rtl`]:"rtl"===h},n,o),A=(0,G.A)(e,["prefixCls","className","rootClassName","children","visibilityHeight","target"]),S=r.createElement("div",{className:`${v}-content`},r.createElement("div",{className:`${v}-icon`},r.createElement(Ia,null)));return y(r.createElement("div",Object.assign({},A,{className:w,onClick:e=>{Ke(0,{getContainer:l||p,duration:s}),null==c||c(e)},ref:f}),r.createElement(pe.Ay,{visible:u,motionName:`${b}-fade`},(t=>{let{className:n}=t;return(0,ge.Ob)(e.children||S,(e=>{let{className:t}=e;return{className:i()(n,t)}}))}))))},ja=new he.Mo("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Ra=new he.Mo("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Ta=new he.Mo("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Da=new he.Mo("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Ba=new he.Mo("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),La=new he.Mo("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Ha=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,i=t,a=n,l=e.colorTextLightSolid,c=e.colorError,s=e.colorErrorHover;return(0,Ue.oX)(e,{badgeFontHeight:i,badgeShadowSize:a,badgeTextColor:l,badgeColor:c,badgeColorHover:s,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Fa=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},_a=(0,J.OF)("Badge",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:l,dotSize:c,textFontWeight:s,indicatorHeight:u,indicatorHeightSM:d,marginXS:f,calc:p}=e,m=`${r}-scroll-number`,g=Ji(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t} ${t}-color-${e}`]:{background:r,[`&:not(${t}-count)`]:{color:r},"a:hover &":{background:r}}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:s,fontSize:i,lineHeight:(0,he.zA)(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(u).div(2).equal(),boxShadow:`0 0 0 ${(0,he.zA)(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:d,height:d,fontSize:a,lineHeight:(0,he.zA)(d),borderRadius:p(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${(0,he.zA)(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${(0,he.zA)(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${m}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:La,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:ja,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:f,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Ra,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Ta,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Da,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Ba,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${m}-custom-component, ${t}-count`]:{transform:"none"},[`${m}-custom-component, ${m}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[m]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${m}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${m}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${m}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${m}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}})(Ha(e))),Fa),Wa=(0,J.OF)(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,c=Ji(e,((e,t)=>{let{darkColor:n}=t;return{[`&${a}-color-${e}`]:{background:n,color:n}}}));return{[l]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"absolute",top:r,padding:`0 ${(0,he.zA)(e.paddingXS)}`,color:e.colorPrimary,lineHeight:(0,he.zA)(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${(0,he.zA)(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(Ha(e))),Fa);const Va=e=>{const{className:t,prefixCls:n,style:o,color:a,children:l,text:c,placement:s="end",rootClassName:u}=e,{getPrefixCls:d,direction:f}=r.useContext(Z.ConfigContext),p=d("ribbon",n),m=`${p}-wrapper`,[g,h,v]=Wa(p,m),b=ia(a,!1),y=i()(p,`${p}-placement-${s}`,{[`${p}-rtl`]:"rtl"===f,[`${p}-color-${a}`]:b},t),C={},x={};return a&&!b&&(C.background=a,x.color=a),g(r.createElement("div",{className:i()(m,u,h,v)},l,r.createElement("div",{className:i()(y,h),style:Object.assign(Object.assign({},C),o)},r.createElement("span",{className:`${p}-text`},c),r.createElement("div",{className:`${p}-corner`,style:x}))))},qa=e=>{const{prefixCls:t,value:n,current:o,offset:a=0}=e;let l;return a&&(l={position:"absolute",top:`${a}00%`,left:0}),r.createElement("span",{style:l,className:i()(`${t}-only-unit`,{current:o})},n)};function Ka(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const Xa=e=>{const{prefixCls:t,count:n,value:o}=e,i=Number(o),a=Math.abs(n),[l,c]=r.useState(i),[s,u]=r.useState(a),d=()=>{c(i),u(a)};let f,p;if(r.useEffect((()=>{const e=setTimeout(d,1e3);return()=>clearTimeout(e)}),[i]),l===i||Number.isNaN(i)||Number.isNaN(l))f=[r.createElement(qa,Object.assign({},e,{key:i,current:!0}))],p={transition:"none"};else{f=[];const t=i+10,n=[];for(let e=i;e<=t;e+=1)n.push(e);const o=se%10===l));f=(o<0?n.slice(0,c+1):n.slice(c)).map(((t,n)=>{const i=t%10;return r.createElement(qa,Object.assign({},e,{key:t,value:i,offset:o<0?n-c:n,current:n===c}))})),p={transform:`translateY(${-Ka(l,i,o)}00%)`}}return r.createElement("span",{className:`${t}-only`,style:p,onTransitionEnd:d},f)};var Ga=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,count:o,className:a,motionClassName:l,style:c,title:s,show:u,component:d="sup",children:f}=e,p=Ga(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=r.useContext(Z.ConfigContext),g=m("scroll-number",n),h=Object.assign(Object.assign({},p),{"data-show":u,style:c,className:i()(g,a,l),title:s});let v=o;if(o&&Number(o)%1==0){const e=String(o).split("");v=r.createElement("bdi",null,e.map(((t,n)=>r.createElement(Xa,{prefixCls:g,count:Number(o),value:t,key:e.length-n}))))}return(null==c?void 0:c.borderColor)&&(h.style=Object.assign(Object.assign({},c),{boxShadow:`0 0 0 1px ${c.borderColor} inset`})),f?(0,ge.Ob)(f,(e=>({className:i()(`${g}-custom-component`,null==e?void 0:e.className,l)}))):r.createElement(d,Object.assign({},h,{ref:t}),v)})),Ua=Ya;var Qa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,o,a,l,c;const{prefixCls:s,scrollNumberPrefixCls:u,children:d,status:f,text:p,color:m,count:g=null,overflowCount:h=99,dot:v=!1,size:b="default",title:y,offset:C,style:x,className:w,rootClassName:A,classNames:S,styles:$,showZero:k=!1}=e,E=Qa(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:O,direction:I,badge:M}=r.useContext(Z.ConfigContext),N=O("badge",s),[z,P,j]=_a(N),R=g>h?`${h}+`:g,T="0"===R||0===R,D=(null!=f||null!=m)&&(null===g||T&&!k),B=v&&!T,L=B?"":R,H=(0,r.useMemo)((()=>(null==L||""===L||T&&!k)&&!B),[L,T,k,B]),F=(0,r.useRef)(g);H||(F.current=g);const _=F.current,W=(0,r.useRef)(L);H||(W.current=L);const V=W.current,q=(0,r.useRef)(B);H||(q.current=B);const K=(0,r.useMemo)((()=>{if(!C)return Object.assign(Object.assign({},null==M?void 0:M.style),x);const e={marginTop:C[1]};return"rtl"===I?e.left=parseInt(C[0],10):e.right=-parseInt(C[0],10),Object.assign(Object.assign(Object.assign({},e),null==M?void 0:M.style),x)}),[I,C,x,null==M?void 0:M.style]),X=null!=y?y:"string"==typeof _||"number"==typeof _?_:void 0,G=H||!p?null:r.createElement("span",{className:`${N}-status-text`},p),Y=_&&"object"==typeof _?(0,ge.Ob)(_,(e=>({style:Object.assign(Object.assign({},K),e.style)}))):void 0,U=ia(m,!1),Q=i()(null==S?void 0:S.indicator,null===(n=null==M?void 0:M.classNames)||void 0===n?void 0:n.indicator,{[`${N}-status-dot`]:D,[`${N}-status-${f}`]:!!f,[`${N}-color-${m}`]:U}),J={};m&&!U&&(J.color=m,J.background=m);const ee=i()(N,{[`${N}-status`]:D,[`${N}-not-a-wrapper`]:!d,[`${N}-rtl`]:"rtl"===I},w,A,null==M?void 0:M.className,null===(o=null==M?void 0:M.classNames)||void 0===o?void 0:o.root,null==S?void 0:S.root,P,j);if(!d&&D){const e=K.color;return z(r.createElement("span",Object.assign({},E,{className:ee,style:Object.assign(Object.assign(Object.assign({},null==$?void 0:$.root),null===(a=null==M?void 0:M.styles)||void 0===a?void 0:a.root),K)}),r.createElement("span",{className:Q,style:Object.assign(Object.assign(Object.assign({},null==$?void 0:$.indicator),null===(l=null==M?void 0:M.styles)||void 0===l?void 0:l.indicator),J)}),p&&r.createElement("span",{style:{color:e},className:`${N}-status-text`},p)))}return z(r.createElement("span",Object.assign({ref:t},E,{className:ee,style:Object.assign(Object.assign({},null===(c=null==M?void 0:M.styles)||void 0===c?void 0:c.root),null==$?void 0:$.root)}),d,r.createElement(pe.Ay,{visible:!H,motionName:`${N}-zoom`,motionAppear:!1,motionDeadline:1e3},(e=>{let{className:t}=e;var n,o;const a=O("scroll-number",u),l=q.current,c=i()(null==S?void 0:S.indicator,null===(n=null==M?void 0:M.classNames)||void 0===n?void 0:n.indicator,{[`${N}-dot`]:l,[`${N}-count`]:!l,[`${N}-count-sm`]:"small"===b,[`${N}-multiple-words`]:!l&&V&&V.toString().length>1,[`${N}-status-${f}`]:!!f,[`${N}-color-${m}`]:U});let s=Object.assign(Object.assign(Object.assign({},null==$?void 0:$.indicator),null===(o=null==M?void 0:M.styles)||void 0===o?void 0:o.indicator),K);return m&&!U&&(s=s||{},s.background=m),r.createElement(Ua,{prefixCls:a,show:!H,motionClassName:t,className:c,count:V,title:X,style:s,key:"scrollNumber"},Y)})),G))})),Ja=Za;Ja.Ribbon=Va;const el=Ja;var tl=n(8e3),nl=kt.A.ESC,rl=kt.A.TAB;const ol=(0,r.forwardRef)((function(e,t){var n=e.overlay,o=e.arrow,i=e.prefixCls,a=(0,r.useMemo)((function(){return"function"==typeof n?n():n}),[n]),l=(0,f.K4)(t,null==a?void 0:a.ref);return r.createElement(r.Fragment,null,o&&r.createElement("div",{className:"".concat(i,"-arrow")}),r.cloneElement(a,{ref:(0,f.f3)(a)?l:void 0}))}));var il={adjustX:1,adjustY:1},al=[0,0];const ll={topLeft:{points:["bl","tl"],overflow:il,offset:[0,-4],targetOffset:al},top:{points:["bc","tc"],overflow:il,offset:[0,-4],targetOffset:al},topRight:{points:["br","tr"],overflow:il,offset:[0,-4],targetOffset:al},bottomLeft:{points:["tl","bl"],overflow:il,offset:[0,4],targetOffset:al},bottom:{points:["tc","bc"],overflow:il,offset:[0,4],targetOffset:al},bottomRight:{points:["tr","br"],overflow:il,offset:[0,4],targetOffset:al}};var cl=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function sl(e,t){var n,o=e.arrow,l=void 0!==o&&o,c=e.prefixCls,s=void 0===c?"rc-dropdown":c,u=e.transitionName,d=e.animation,p=e.align,m=e.placement,g=void 0===m?"bottomLeft":m,h=e.placements,v=void 0===h?ll:h,b=e.getPopupContainer,y=e.showAction,C=e.hideAction,x=e.overlayClassName,w=e.overlayStyle,A=e.visible,S=e.trigger,$=void 0===S?["hover"]:S,k=e.autoFocus,E=e.overlay,O=e.children,I=e.onVisibleChange,M=(0,bt.A)(e,cl),N=r.useState(),z=(0,vt.A)(N,2),P=z[0],j=z[1],R="visible"in e?A:P,T=r.useRef(null),D=r.useRef(null),B=r.useRef(null);r.useImperativeHandle(t,(function(){return T.current}));var L=function(e){j(e),null==I||I(e)};!function(e){var t=e.visible,n=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,l=r.useRef(!1),c=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==o||o(!1))},s=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),l.current=!0,0))},u=function(e){switch(e.keyCode){case nl:c();break;case rl:var t=!1;l.current||(t=s()),t?e.preventDefault():c()}};r.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&(0,U.A)(s,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[t])}({visible:R,triggerRef:B,onVisibleChange:L,autoFocus:k,overlayRef:D});var H,F,_,W=function(){return r.createElement(ol,{ref:D,overlay:E,prefixCls:s,arrow:l})},V=r.cloneElement(O,{className:i()(null===(n=O.props)||void 0===n?void 0:n.className,R&&(H=e.openClassName,void 0!==H?H:"".concat(s,"-open"))),ref:(0,f.f3)(O)?(0,f.K4)(B,O.ref):void 0}),q=C;return q||-1===$.indexOf("contextMenu")||(q=["click"]),r.createElement(Pn,(0,a.A)({builtinPlacements:v},M,{prefixCls:s,ref:T,popupClassName:i()(x,(0,ht.A)({},"".concat(s,"-show-arrow"),l)),popupStyle:w,action:$,showAction:y,hideAction:q,popupPlacement:g,popupAlign:p,popupTransitionName:u,popupAnimation:d,popupVisible:R,stretch:(F=e.minOverlayWidthMatchTrigger,_=e.alignPoint,("minOverlayWidthMatchTrigger"in e?F:!_)?"minWidth":""),popup:"function"==typeof E?W:W(),onPopupVisibleChange:L,onPopupClick:function(t){var n=e.onOverlayClick;j(!1),n&&n(t)},getPopupContainer:b}),V)}const ul=r.forwardRef(sl);var dl=n(3210),fl=r.createContext(null);function pl(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function ml(e){return pl(r.useContext(fl),e)}var gl=["children","locked"],hl=r.createContext(null);function vl(e){var t=e.children,n=e.locked,o=(0,bt.A)(e,gl),i=r.useContext(hl),a=(0,Jn.A)((function(){return e=i,t=o,n=(0,s.A)({},e),Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n;var e,t,n}),[i,o],(function(e,t){return!(n||e[0]===t[0]&&(0,dl.A)(e[1],t[1],!0))}));return r.createElement(hl.Provider,{value:a},t)}var bl=[],yl=r.createContext(null);function Cl(){return r.useContext(yl)}var xl=r.createContext(bl);function wl(e){var t=r.useContext(xl);return r.useMemo((function(){return void 0!==e?[].concat((0,Y.A)(t),[e]):t}),[t,e])}var Al=r.createContext(null);const Sl=r.createContext({});function $l(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,yn.A)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function kl(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,Y.A)(e.querySelectorAll("*")).filter((function(e){return $l(e,t)}));return $l(e,t)&&n.unshift(e),n}var El=kt.A.LEFT,Ol=kt.A.RIGHT,Il=kt.A.UP,Ml=kt.A.DOWN,Nl=kt.A.ENTER,zl=kt.A.ESC,Pl=kt.A.HOME,jl=kt.A.END,Rl=[Il,Ml,El,Ol];function Tl(e,t){return kl(e,!0).filter((function(e){return t.has(e)}))}function Dl(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=Tl(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var Bl=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(pl(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function Ll(e,t,n,o,i,a,l,c,s,u){var d=r.useRef(),f=r.useRef();f.current=t;var p=function(){U.A.cancel(d.current)};return r.useEffect((function(){return function(){p()}}),[]),function(r){var m=r.which;if([].concat(Rl,[Nl,zl,Pl,jl]).includes(m)){var g=a(),h=Bl(g,o),v=h,b=v.elements,y=v.key2element,C=v.element2key,x=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),w=C.get(x),A=function(e,t,n,r){var o,i="prev",a="next",l="children",c="parent";if("inline"===e&&r===Nl)return{inlineTrigger:!0};var s=(0,ht.A)((0,ht.A)({},Il,i),Ml,a),u=(0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)({},El,n?a:i),Ol,n?i:a),Ml,l),Nl,l),d=(0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)({},Il,i),Ml,a),Nl,l),zl,c),El,n?l:c),Ol,n?c:l);switch(null===(o={inline:s,horizontal:u,vertical:d,inlineSub:s,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===l(w,!0).length,n,m);if(!A&&m!==Pl&&m!==jl)return;(Rl.includes(m)||[Pl,jl].includes(m))&&r.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=C.get(e);c(r),p(),d.current=(0,U.A)((function(){f.current===r&&t.focus()}))}};if([Pl,jl].includes(m)||A.sibling||!x){var $,k,E=Tl($=x&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(x):i.current,b);k=m===Pl?E[0]:m===jl?E[E.length-1]:Dl($,b,x,A.offset),S(k)}else if(A.inlineTrigger)s(w);else if(A.offset>0)s(w,!0),p(),d.current=(0,U.A)((function(){h=Bl(g,o);var e=x.getAttribute("aria-controls"),t=Dl(document.getElementById(e),h.elements);S(t)}),5);else if(A.offset<0){var O=l(w,!0),I=O[O.length-2],M=y.get(I);s(I,!1),S(M)}}null==u||u(r)}}var Hl="__RC_UTIL_PATH_SPLIT__",Fl=function(e){return e.join(Hl)},_l="rc-menu-more";function Wl(){var e=r.useState({}),t=(0,vt.A)(e,2)[1],n=(0,r.useRef)(new Map),o=(0,r.useRef)(new Map),i=r.useState([]),a=(0,vt.A)(i,2),l=a[0],c=a[1],s=(0,r.useRef)(0),u=(0,r.useRef)(!1),d=(0,r.useCallback)((function(e,r){var i=Fl(r);o.current.set(i,e),n.current.set(e,i),s.current+=1;var a,l=s.current;a=function(){l===s.current&&(u.current||t({}))},Promise.resolve().then(a)}),[]),f=(0,r.useCallback)((function(e,t){var r=Fl(t);o.current.delete(r),n.current.delete(e)}),[]),p=(0,r.useCallback)((function(e){c(e)}),[]),m=(0,r.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(Hl);return t&&l.includes(o[0])&&o.unshift(_l),o}),[l]),g=(0,r.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return m(e,!0).includes(t)}))}),[m]),h=(0,r.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(Hl),r=new Set;return(0,Y.A)(o.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(o.current.get(e))})),r}),[]);return r.useEffect((function(){return function(){u.current=!0}}),[]),{registerPath:d,unregisterPath:f,refreshOverflowKeys:p,isSubPathKey:g,getKeyPath:m,getKeys:function(){var e=(0,Y.A)(n.current.keys());return l.length&&e.push(_l),e},getSubPathKeys:h}}function Vl(e){var t=r.useRef(e);t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o1&&(x.motionAppear=!1);var w=x.onVisibleChanged;return x.onVisibleChanged=function(e){return g.current||e||y(!0),null==w?void 0:w(e)},b?null:r.createElement(vl,{mode:l,locked:!g.current},r.createElement(pe.Ay,(0,a.A)({visible:C},x,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),(function(e){var n=e.className,o=e.style;return r.createElement(cc,{id:t,className:n,style:o},i)})))}var vc=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],bc=["active"],yc=r.forwardRef((function(e,t){var n=e.style,o=e.className,l=e.title,c=e.eventKey,u=(e.warnKey,e.disabled),d=e.internalPopupClose,f=e.children,p=e.itemIcon,m=e.expandIcon,g=e.popupClassName,h=e.popupOffset,v=e.popupStyle,b=e.onClick,y=e.onMouseEnter,C=e.onMouseLeave,x=e.onTitleClick,w=e.onTitleMouseEnter,A=e.onTitleMouseLeave,S=(0,bt.A)(e,vc),$=ml(c),k=r.useContext(hl),E=k.prefixCls,O=k.mode,I=k.openKeys,M=k.disabled,N=k.overflowDisabled,z=k.activeKey,P=k.selectedKeys,j=k.itemIcon,R=k.expandIcon,T=k.onItemClick,D=k.onOpenChange,B=k.onActive,L=r.useContext(Sl)._internalRenderSubMenuItem,H=r.useContext(Al).isSubPathKey,F=wl(),_="".concat(E,"-submenu"),W=M||u,V=r.useRef(),q=r.useRef();var K=null!=p?p:j,X=null!=m?m:R,G=I.includes(c),Y=!N&&G,U=H(P,c),Q=Xl(c,W,w,A),Z=Q.active,J=(0,bt.A)(Q,bc),ee=r.useState(!1),te=(0,vt.A)(ee,2),ne=te[0],re=te[1],oe=function(e){W||re(e)},ie=r.useMemo((function(){return Z||"inline"!==O&&(ne||H([z],c))}),[O,Z,z,ne,c,H]),ae=Gl(F.length),le=Vl((function(e){null==b||b(Ql(e)),T(e)})),ce=$&&"".concat($,"-popup"),se=r.createElement("div",(0,a.A)({role:"menuitem",style:ae,className:"".concat(_,"-title"),tabIndex:W?null:-1,ref:V,title:"string"==typeof l?l:null,"data-menu-id":N&&$?null:$,"aria-expanded":Y,"aria-haspopup":!0,"aria-controls":ce,"aria-disabled":W,onClick:function(e){W||(null==x||x({key:c,domEvent:e}),"inline"===O&&D(c,!G))},onFocus:function(){B(c)}},J),l,r.createElement(Yl,{icon:"horizontal"!==O?X:void 0,props:(0,s.A)((0,s.A)({},e),{},{isOpen:Y,isSubMenu:!0})},r.createElement("i",{className:"".concat(_,"-arrow")}))),ue=r.useRef(O);if("inline"!==O&&F.length>1?ue.current="vertical":ue.current=O,!N){var de=ue.current;se=r.createElement(gc,{mode:de,prefixCls:_,visible:!d&&Y&&"inline"!==O,popupClassName:g,popupOffset:h,popupStyle:v,popup:r.createElement(vl,{mode:"horizontal"===de?"vertical":de},r.createElement(cc,{id:ce,ref:q},f)),disabled:W,onVisibleChange:function(e){"inline"!==O&&D(c,e)}},se)}var fe=r.createElement(Gt.Item,(0,a.A)({ref:t,role:"none"},S,{component:"li",style:n,className:i()(_,"".concat(_,"-").concat(O),o,(0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)({},"".concat(_,"-open"),Y),"".concat(_,"-active"),ie),"".concat(_,"-selected"),U),"".concat(_,"-disabled"),W)),onMouseEnter:function(e){oe(!0),null==y||y({key:c,domEvent:e})},onMouseLeave:function(e){oe(!1),null==C||C({key:c,domEvent:e})}}),se,!N&&r.createElement(hc,{id:ce,open:Y,keyPath:F},f));return L&&(fe=L(fe,e,{selected:U,active:ie,open:Y,disabled:W})),r.createElement(vl,{onItemClick:le,mode:"horizontal"===O?"vertical":O,itemIcon:K,expandIcon:X},fe)}));const Cc=r.forwardRef((function(e,t){var n,o=e.eventKey,i=e.children,l=wl(o),c=sc(i,l),s=Cl();return r.useEffect((function(){if(s)return s.registerPath(o,l),function(){s.unregisterPath(o,l)}}),[l]),n=s?c:r.createElement(yc,(0,a.A)({ref:t},e),c),r.createElement(xl.Provider,{value:l},n)}));function xc(e){var t=e.className,n=e.style,o=r.useContext(hl).prefixCls;return Cl()?null:r.createElement("li",{role:"separator",className:i()("".concat(o,"-item-divider"),t),style:n})}var wc=["className","title","eventKey","children"],Ac=r.forwardRef((function(e,t){var n=e.className,o=e.title,l=(e.eventKey,e.children),c=(0,bt.A)(e,wc),s=r.useContext(hl).prefixCls,u="".concat(s,"-item-group");return r.createElement("li",(0,a.A)({ref:t,role:"presentation"},c,{onClick:function(e){return e.stopPropagation()},className:i()(u,n)}),r.createElement("div",{role:"presentation",className:"".concat(u,"-title"),title:"string"==typeof o?o:void 0},o),r.createElement("ul",{role:"group",className:"".concat(u,"-list")},l))}));const Sc=r.forwardRef((function(e,t){var n=e.eventKey,o=sc(e.children,wl(n));return Cl()?o:r.createElement(Ac,(0,a.A)({ref:t},(0,G.A)(e,["warnKey"])),o)}));var $c=["label","children","key","type","extra"];function kc(e,t,n){var o=t.item,i=t.group,l=t.submenu,c=t.divider;return(e||[]).map((function(e,s){if(e&&"object"===(0,u.A)(e)){var d=e,f=d.label,p=d.children,m=d.key,g=d.type,h=d.extra,v=(0,bt.A)(d,$c),b=null!=m?m:"tmp-".concat(s);return p||"group"===g?"group"===g?r.createElement(i,(0,a.A)({key:b},v,{title:f}),kc(p,t,n)):r.createElement(l,(0,a.A)({key:b},v,{title:f}),kc(p,t,n)):"divider"===g?r.createElement(c,(0,a.A)({key:b},v)):r.createElement(o,(0,a.A)({key:b},v,{extra:h}),f,(!!h||0===h)&&r.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null})).filter((function(e){return e}))}function Ec(e,t,n,r,o){var i=e,a=(0,s.A)({divider:xc,item:oc,group:Sc,submenu:Cc},r);return t&&(i=kc(t,a,o)),sc(i,n)}var Oc=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Ic=[],Mc=r.forwardRef((function(e,t){var n,o=e,l=o.prefixCls,c=void 0===l?"rc-menu":l,u=o.rootClassName,d=o.style,f=o.className,p=o.tabIndex,m=void 0===p?0:p,g=o.items,h=o.children,v=o.direction,b=o.id,y=o.mode,C=void 0===y?"vertical":y,x=o.inlineCollapsed,w=o.disabled,A=o.disabledOverflow,S=o.subMenuOpenDelay,$=void 0===S?.1:S,k=o.subMenuCloseDelay,E=void 0===k?.1:k,O=o.forceSubMenuRender,I=o.defaultOpenKeys,M=o.openKeys,N=o.activeKey,z=o.defaultActiveFirst,P=o.selectable,j=void 0===P||P,R=o.multiple,T=void 0!==R&&R,D=o.defaultSelectedKeys,B=o.selectedKeys,L=o.onSelect,H=o.onDeselect,F=o.inlineIndent,_=void 0===F?24:F,W=o.motion,V=o.defaultMotions,q=o.triggerSubMenuAction,K=void 0===q?"hover":q,X=o.builtinPlacements,G=o.itemIcon,U=o.expandIcon,Q=o.overflowedIndicator,Z=void 0===Q?"...":Q,J=o.overflowedIndicatorPopupClassName,ee=o.getPopupContainer,te=o.onClick,ne=o.onOpenChange,re=o.onKeyDown,oe=(o.openAnimation,o.openTransitionName,o._internalRenderMenuItem),ie=o._internalRenderSubMenuItem,ae=o._internalComponents,le=(0,bt.A)(o,Oc),ce=r.useMemo((function(){return[Ec(h,g,Ic,ae,c),Ec(h,g,Ic,{},c)]}),[h,g,ae]),se=(0,vt.A)(ce,2),ue=se[0],de=se[1],fe=r.useState(!1),pe=(0,vt.A)(fe,2),me=pe[0],ge=pe[1],he=r.useRef(),ve=function(e){var t=(0,yt.A)(e,{value:e}),n=(0,vt.A)(t,2),o=n[0],i=n[1];return r.useEffect((function(){Kl+=1;var e="".concat(ql,"-").concat(Kl);i("rc-menu-uuid-".concat(e))}),[]),o}(b),be="rtl"===v;var ye=(0,yt.A)(I,{value:M,postState:function(e){return e||Ic}}),Ce=(0,vt.A)(ye,2),xe=Ce[0],we=Ce[1],Ae=function(e){function t(){we(e),null==ne||ne(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,zt.flushSync)(t):t()},Se=r.useState(xe),$e=(0,vt.A)(Se,2),ke=$e[0],Ee=$e[1],Oe=r.useRef(!1),Ie=r.useMemo((function(){return"inline"!==C&&"vertical"!==C||!x?[C,!1]:["vertical",x]}),[C,x]),Me=(0,vt.A)(Ie,2),Ne=Me[0],ze=Me[1],Pe="inline"===Ne,je=r.useState(Ne),Re=(0,vt.A)(je,2),Te=Re[0],De=Re[1],Be=r.useState(ze),Le=(0,vt.A)(Be,2),He=Le[0],Fe=Le[1];r.useEffect((function(){De(Ne),Fe(ze),Oe.current&&(Pe?we(ke):Ae(Ic))}),[Ne,ze]);var _e=r.useState(0),We=(0,vt.A)(_e,2),Ve=We[0],qe=We[1],Ke=Ve>=ue.length-1||"horizontal"!==Te||A;r.useEffect((function(){Pe&&Ee(xe)}),[xe]),r.useEffect((function(){return Oe.current=!0,function(){Oe.current=!1}}),[]);var Xe=Wl(),Ge=Xe.registerPath,Ye=Xe.unregisterPath,Ue=Xe.refreshOverflowKeys,Qe=Xe.isSubPathKey,Ze=Xe.getKeyPath,Je=Xe.getKeys,et=Xe.getSubPathKeys,tt=r.useMemo((function(){return{registerPath:Ge,unregisterPath:Ye}}),[Ge,Ye]),nt=r.useMemo((function(){return{isSubPathKey:Qe}}),[Qe]);r.useEffect((function(){Ue(Ke?Ic:ue.slice(Ve+1).map((function(e){return e.key})))}),[Ve,Ke]);var rt=(0,yt.A)(N||z&&(null===(n=ue[0])||void 0===n?void 0:n.key),{value:N}),ot=(0,vt.A)(rt,2),it=ot[0],at=ot[1],lt=Vl((function(e){at(e)})),ct=Vl((function(){at(void 0)}));(0,r.useImperativeHandle)(t,(function(){return{list:he.current,focus:function(e){var t,n,r=Je(),o=Bl(r,ve),i=o.elements,a=o.key2element,l=o.element2key,c=Tl(he.current,i),s=null!=it?it:c[0]?l.get(c[0]):null===(t=ue.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var st=(0,yt.A)(D||[],{value:B,postState:function(e){return Array.isArray(e)?e:null==e?Ic:[e]}}),ut=(0,vt.A)(st,2),dt=ut[0],ft=ut[1],pt=Vl((function(e){null==te||te(Ql(e)),function(e){if(j){var t,n=e.key,r=dt.includes(n);t=T?r?dt.filter((function(e){return e!==n})):[].concat((0,Y.A)(dt),[n]):[n],ft(t);var o=(0,s.A)((0,s.A)({},e),{},{selectedKeys:t});r?null==H||H(o):null==L||L(o)}!T&&xe.length&&"inline"!==Te&&Ae(Ic)}(e)})),mt=Vl((function(e,t){var n=xe.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Te){var r=et(e);n=n.filter((function(e){return!r.has(e)}))}(0,dl.A)(xe,n,!0)||Ae(n,!0)})),gt=Ll(Te,it,be,ve,he,Je,Ze,at,(function(e,t){var n=null!=t?t:!xe.includes(e);mt(e,n)}),re);r.useEffect((function(){ge(!0)}),[]);var Ct=r.useMemo((function(){return{_internalRenderMenuItem:oe,_internalRenderSubMenuItem:ie}}),[oe,ie]),xt="horizontal"!==Te||A?ue:ue.map((function(e,t){return r.createElement(vl,{key:e.key,overflowDisabled:t>Ve},e)})),wt=r.createElement(Gt,(0,a.A)({id:b,ref:he,prefixCls:"".concat(c,"-overflow"),component:"ul",itemComponent:oc,className:i()(c,"".concat(c,"-root"),"".concat(c,"-").concat(Te),f,(0,ht.A)((0,ht.A)({},"".concat(c,"-inline-collapsed"),He),"".concat(c,"-rtl"),be),u),dir:v,style:d,role:"menu",tabIndex:m,data:xt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ue.slice(-t):null;return r.createElement(Cc,{eventKey:_l,title:Z,disabled:Ke,internalPopupClose:0===t,popupClassName:J},n)},maxCount:"horizontal"!==Te||A?Gt.INVALIDATE:Gt.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){qe(e)},onKeyDown:gt},le));return r.createElement(Sl.Provider,{value:Ct},r.createElement(fl.Provider,{value:ve},r.createElement(vl,{prefixCls:c,rootClassName:u,mode:Te,openKeys:xe,rtl:be,disabled:w,motion:me?W:null,defaultMotions:me?V:null,activeKey:it,onActive:lt,onInactive:ct,selectedKeys:dt,inlineIndent:_,subMenuOpenDelay:$,subMenuCloseDelay:E,forceSubMenuRender:O,builtinPlacements:X,triggerSubMenuAction:K,getPopupContainer:ee,itemIcon:G,expandIcon:U,onItemClick:pt,onOpenChange:mt},r.createElement(Al.Provider,{value:nt},wt),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(yl.Provider,{value:tt},de)))))}));var Nc=Mc;Nc.Item=oc,Nc.SubMenu=Cc,Nc.ItemGroup=Sc,Nc.Divider=xc;const zc=Nc;const Pc={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};var jc=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:Pc}))};const Rc=r.forwardRef(jc);const Tc={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"};var Dc=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:Tc}))};const Bc=r.forwardRef(Dc),Lc=e=>!isNaN(parseFloat(e))&&isFinite(e),Hc=r.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),Fc=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:i,headerPadding:a,headerColor:l,footerPadding:c,fontSize:s,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:i,padding:a,color:l,lineHeight:(0,he.zA)(i),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:s,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},_c=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,s=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${s}px`,headerColor:o,footerPadding:`${i}px ${s}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},Wc=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Vc=(0,J.OF)("Layout",(e=>[Fc(e)]),_c,{deprecatedTokens:Wc}),qc=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:i,triggerHeight:a,triggerColor:l,triggerBg:c,headerHeight:s,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadius:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:g,bodyBg:h}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:(0,he.zA)(a),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderStartStartRadius:0,borderStartEndRadius:f,borderEndEndRadius:f,borderEndStartRadius:0,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderStartStartRadius:f,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:f}}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${h}`,borderInlineStart:0}}}}},Kc=(0,J.OF)(["Layout","Sider"],(e=>[qc(e)]),_c,{deprecatedTokens:Wc});var Xc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),Qc=r.forwardRef(((e,t)=>{const{prefixCls:n,className:o,trigger:a,children:l,defaultCollapsed:c=!1,theme:s="dark",style:u={},collapsible:d=!1,reverseArrow:f=!1,width:p=200,collapsedWidth:m=80,zeroWidthTriggerStyle:g,breakpoint:h,onCollapse:v,onBreakpoint:b}=e,y=Xc(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:C}=(0,r.useContext)(Hc),[x,w]=(0,r.useState)("collapsed"in e?e.collapsed:c),[A,S]=(0,r.useState)(!1);(0,r.useEffect)((()=>{"collapsed"in e&&w(e.collapsed)}),[e.collapsed]);const $=(t,n)=>{"collapsed"in e||w(t),null==v||v(t,n)},{getPrefixCls:k}=(0,r.useContext)(Z.ConfigContext),E=k("layout-sider",n),[O,I,M]=Kc(E),N=(0,r.useRef)();N.current=e=>{S(e.matches),null==b||b(e.matches),x!==e.matches&&$(e.matches,"responsive")},(0,r.useEffect)((()=>{function e(e){return N.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&h&&h in Gc){t=n(`screen and (max-width: ${Gc[h]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[h]),(0,r.useEffect)((()=>{const e=Uc("ant-sider-");return C.addSider(e),()=>C.removeSider(e)}),[]);const z=()=>{$(!x,"clickTrigger")},P=r.useMemo((()=>({siderCollapsed:x})),[x]);return O(r.createElement(Yc.Provider,{value:P},(()=>{const e=(0,G.A)(y,["collapsed"]),n=x?m:p,c=Lc(n)?`${n}px`:String(n),h=0===parseFloat(String(m||0))?r.createElement("span",{onClick:z,className:i()(`${E}-zero-width-trigger`,`${E}-zero-width-trigger-${f?"right":"left"}`),style:g},a||r.createElement(Rc,null)):null,v={expanded:f?r.createElement(tl.A,null):r.createElement(Bc,null),collapsed:f?r.createElement(Bc,null):r.createElement(tl.A,null)}[x?"collapsed":"expanded"],b=null!==a?h||r.createElement("div",{className:`${E}-trigger`,onClick:z,style:{width:c}},a||v):null,C=Object.assign(Object.assign({},u),{flex:`0 0 ${c}`,maxWidth:c,minWidth:c,width:c}),w=i()(E,`${E}-${s}`,{[`${E}-collapsed`]:!!x,[`${E}-has-trigger`]:d&&null!==a&&!h,[`${E}-below`]:!!A,[`${E}-zero-width`]:0===parseFloat(c)},o,I,M);return r.createElement("aside",Object.assign({className:w},e,{style:C,ref:t}),r.createElement("div",{className:`${E}-children`},l),d||A&&h?b:null)})()))}));const Zc=Qc;const Jc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var es=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:Jc}))};const ts=r.forwardRef(es),ns=(0,r.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var rs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,dashed:o}=e,a=rs(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=r.useContext(Z.ConfigContext),c=l("menu",t),s=i()({[`${c}-item-divider-dashed`]:!!o},n);return r.createElement(xc,Object.assign({className:s},a))},is=e=>{var t;const{className:n,children:o,icon:a,title:c,danger:s,extra:u}=e,{prefixCls:d,firstLevel:f,direction:p,disableMenuItemTitleTooltip:m,inlineCollapsed:g}=r.useContext(ns),{siderCollapsed:h}=r.useContext(Yc);let v=c;void 0===c?v=f?o:"":!1===c&&(v="");const b={title:v};h||g||(b.title=null,b.open=!1);const y=(0,l.A)(o).length;let C=r.createElement(oc,Object.assign({},(0,G.A)(e,["title","icon","danger"]),{className:i()({[`${d}-item-danger`]:s,[`${d}-item-only-child`]:1===(a?y+1:y)},n),title:"string"==typeof c?c:void 0}),(0,ge.Ob)(a,{className:i()(r.isValidElement(a)?null===(t=a.props)||void 0===t?void 0:t.className:"",`${d}-item-icon`)}),(e=>{const t=null==o?void 0:o[0],n=r.createElement("span",{className:i()(`${d}-title-content`,{[`${d}-title-content-with-extra`]:!!u||0===u})},o);return(!a||r.isValidElement(o)&&"span"===o.type)&&o&&e&&f&&"string"==typeof t?r.createElement("div",{className:`${d}-inline-collapsed-noicon`},t.charAt(0)):n})(g));return m||(C=r.createElement(da,Object.assign({},b,{placement:"rtl"===p?"left":"right",overlayClassName:`${d}-inline-collapsed-tooltip`}),C)),C};var as=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{children:n}=e,o=as(e,["children"]),i=r.useContext(ls),a=r.useMemo((()=>Object.assign(Object.assign({},i),o)),[i,o.prefixCls,o.mode,o.selectable,o.rootClassName]),l=(0,f.H3)(n),c=(0,f.xK)(t,l?n.ref:null);return r.createElement(ls.Provider,{value:a},r.createElement(Hi.A,{space:!0},l?r.cloneElement(n,{ref:c}):n))})),ss=ls;var us=n(977);const ds=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${(0,he.zA)(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},fs=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,he.zA)(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,he.zA)(n)})`}}}}},ps=e=>Object.assign({},(0,ve.jk)(e)),ms=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:s,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:h,itemHoverColor:v,lineType:b,colorSplit:y,itemDisabledColor:C,dangerItemColor:x,dangerItemHoverColor:w,dangerItemSelectedColor:A,dangerItemActiveBg:S,dangerItemSelectedBg:$,popupBg:k,itemHoverBg:E,itemActiveBg:O,menuSubMenuBg:I,horizontalItemSelectedColor:M,horizontalItemSelectedBg:N,horizontalItemBorderRadius:z,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},ps(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:i}},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},ps(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:E},"&:active":{backgroundColor:O}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:E},"&:active":{backgroundColor:O}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:A},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:$}},[`&${n}-submenu > ${n}`]:{backgroundColor:I},[`&${n}-popup > ${n}`]:{backgroundColor:k},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:k},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:z,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${(0,he.zA)(s)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:s,borderBottomColor:M}},"&-selected":{color:M,backgroundColor:N,"&:hover":{backgroundColor:N},"&::after":{borderBottomWidth:s,borderBottomColor:M}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${(0,he.zA)(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,he.zA)(u)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${m}`,`opacity ${h} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:A}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${p}`,`opacity ${h} ${p}`].join(",")}}}}}},gs=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:s}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:(0,he.zA)(n),paddingInline:s,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:(0,he.zA)(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},hs=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:c,itemMarginInline:s,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:h}=e,v={height:r,lineHeight:(0,he.zA)(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},gs(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},gs(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${(0,he.zA)(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${d} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,he.zA)(e.calc(u).div(2).equal())} - ${(0,he.zA)(s)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:(0,he.zA)(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},ve.L9),{paddingInline:p})}}]},vs=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},(0,ve.Nk)()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},bs=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,he.zA)(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,he.zA)(a)})`}}}}},ys=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:g,lineType:h,groupTitleLineHeight:v,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},(0,ve.t6)()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ve.dF)(e)),(0,ve.t6)()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${(0,he.zA)(l)} ${(0,he.zA)(c)}`,fontSize:b,lineHeight:v,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding,fontSize:e.fontSizeSM}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:h,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),vs(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${(0,he.zA)(e.calc(r).mul(2).equal())} ${(0,he.zA)(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},vs(e)),bs(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),bs(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,he.zA)(g)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,he.zA)(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${(0,he.zA)(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,he.zA)(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,he.zA)(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Cs=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:s,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:h,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:C,padding:x,fontSize:w,controlHeightSM:A,fontSizeLG:S,colorTextLightSolid:$,colorErrorHover:k}=e,E=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,O=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,I=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,M=new Vr.q($).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:h,itemHoverBg:h,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:E,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:O,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:I,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:C,itemPaddingInline:x,horizontalLineHeight:1.15*v+"px",iconSize:w,iconMarginInlineEnd:A-w,collapsedIconSize:S,groupTitleFontSize:w,darkItemDisabledColor:new Vr.q($).setAlpha(.25).toRgbString(),darkItemColor:M,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:M,darkItemHoverColor:$,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:i,itemWidth:E?`calc(100% + ${O}px)`:`calc(100% - ${2*I}px)`}},xs=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,J.OF)("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:c,darkItemSelectedBg:s,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:h,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,C=e.calc(r).div(7).mul(5).equal(),x=(0,Ue.oX)(e,{menuArrowSize:C,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(C).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),w=(0,Ue.oX)(x,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:s,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:h,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:c,horizontalItemSelectedBg:s});return[ys(x),ds(x),hs(x),ms(x,"light"),ms(w,"dark"),fs(x),(0,us.A)(x),Co(x,"slide-up"),Co(x,"slide-down"),(0,Qi.aB)(x,"zoom-big")]}),Cs,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)},ws=e=>{var t;const{popupClassName:n,icon:o,title:a,theme:l}=e,c=r.useContext(ns),{prefixCls:s,inlineCollapsed:u,theme:d}=c,f=wl();let p;if(o){const e=r.isValidElement(a)&&"span"===a.type;p=r.createElement(r.Fragment,null,(0,ge.Ob)(o,{className:i()(r.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),e?a:r.createElement("span",{className:`${s}-title-content`},a))}else p=u&&!f.length&&a&&"string"==typeof a?r.createElement("div",{className:`${s}-inline-collapsed-noicon`},a.charAt(0)):r.createElement("span",{className:`${s}-title-content`},a);const m=r.useMemo((()=>Object.assign(Object.assign({},c),{firstLevel:!1})),[c]),[g]=(0,mt.YK)("Menu");return r.createElement(ns.Provider,{value:m},r.createElement(Cc,Object.assign({},(0,G.A)(e,["icon"]),{title:p,popupClassName:i()(s,n,`${s}-${l||d}`),popupStyle:Object.assign({zIndex:g},e.popupStyle)})))};var As=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const o=r.useContext(ss),a=o||{},{getPrefixCls:l,getPopupContainer:c,direction:s,menu:u}=r.useContext(Z.ConfigContext),d=l(),{prefixCls:f,className:p,style:m,theme:g="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:b,siderCollapsed:y,rootClassName:C,mode:x,selectable:w,onClick:A,overflowedIndicatorPopupClassName:S}=e,$=As(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),k=(0,G.A)($,["collapsedWidth"]);null===(n=a.validator)||void 0===n||n.call(a,{mode:x});const E=(0,Te.A)((function(){var e;null==A||A.apply(void 0,arguments),null===(e=a.onClick)||void 0===e||e.call(a)})),O=a.mode||x,I=null!=w?w:a.selectable,M=r.useMemo((()=>void 0!==y?y:b),[b,y]),N={horizontal:{motionName:`${d}-slide-up`},inline:(0,Hr.A)(d),other:{motionName:`${d}-zoom-big`}},z=l("menu",f||a.prefixCls),P=(0,Xe.A)(z),[j,R,T]=xs(z,P,!o),D=i()(`${z}-${g}`,null==u?void 0:u.className,p),B=r.useMemo((()=>{var e,t;if("function"==typeof h||Ss(h))return h||null;if("function"==typeof a.expandIcon||Ss(a.expandIcon))return a.expandIcon||null;if("function"==typeof(null==u?void 0:u.expandIcon)||Ss(null==u?void 0:u.expandIcon))return(null==u?void 0:u.expandIcon)||null;const n=null!==(e=null!=h?h:null==a?void 0:a.expandIcon)&&void 0!==e?e:null==u?void 0:u.expandIcon;return(0,ge.Ob)(n,{className:i()(`${z}-submenu-expand-icon`,r.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[h,null==a?void 0:a.expandIcon,null==u?void 0:u.expandIcon,z]),L=r.useMemo((()=>({prefixCls:z,inlineCollapsed:M||!1,direction:s,firstLevel:!0,theme:g,mode:O,disableMenuItemTitleTooltip:v})),[z,M,s,v,g]);return j(r.createElement(ss.Provider,{value:null},r.createElement(ns.Provider,{value:L},r.createElement(zc,Object.assign({getPopupContainer:c,overflowedIndicator:r.createElement(ts,null),overflowedIndicatorPopupClassName:i()(z,`${z}-${g}`,S),mode:O,selectable:I,onClick:E},k,{inlineCollapsed:M,style:Object.assign(Object.assign({},null==u?void 0:u.style),m),className:D,prefixCls:z,direction:s,defaultMotions:N,expandIcon:B,ref:t,rootClassName:i()(C,R,a.rootClassName,T,P),_internalComponents:$s})))))})),Es=ks,Os=(0,r.forwardRef)(((e,t)=>{const n=(0,r.useRef)(null),o=r.useContext(Yc);return(0,r.useImperativeHandle)(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),r.createElement(Es,Object.assign({ref:n},e,o))}));Os.Item=is,Os.SubMenu=ws,Os.Divider=os,Os.ItemGroup=Sc;const Is=Os,Ms=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},Ns=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:c,paddingBlock:s,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:p},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:uo},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:po},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:fo},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:mo}}},qi(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},(0,ve.dF)(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,ve.K8)(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${(0,he.zA)(s)} ${(0,he.zA)(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,he.zA)(s)} ${(0,he.zA)(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,ve.K8)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,he.zA)(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${(0,he.zA)(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Co(e,"slide-up"),Co(e,"slide-down"),Oo(e,"move-up"),Oo(e,"move-down"),(0,Qi.aB)(e,"zoom-big")]]},zs=(0,J.OF)("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=(0,Ue.oX)(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Ns(i),Ms(i)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Wi({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Fi(e))),{resetStyle:!1}),Ps=e=>{var t;const{menu:n,arrow:o,prefixCls:a,children:l,trigger:c,disabled:s,dropdownRender:u,getPopupContainer:d,overlayClassName:f,rootClassName:p,overlayStyle:m,open:g,onOpenChange:h,visible:v,onVisibleChange:b,mouseEnterDelay:y=.15,mouseLeaveDelay:C=.1,autoAdjustOverflow:x=!0,placement:w="",overlay:A,transitionName:S}=e,{getPopupContainer:$,getPrefixCls:k,direction:E,dropdown:O}=r.useContext(Z.ConfigContext);(0,at.rJ)("Dropdown");const I=r.useMemo((()=>{const e=k();return void 0!==S?S:w.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[k,w,S]),M=r.useMemo((()=>w?w.includes("Center")?w.slice(0,w.indexOf("Center")):w:"rtl"===E?"bottomRight":"bottomLeft"),[w,E]);const N=k("dropdown",a),z=(0,Xe.A)(N),[P,j,R]=zs(N,z),[,T]=(0,qr.Ay)(),D=r.Children.only(l),B=(0,ge.Ob)(D,{className:i()(`${N}-trigger`,{[`${N}-rtl`]:"rtl"===E},D.props.className),disabled:null!==(t=D.props.disabled)&&void 0!==t?t:s}),L=s?[]:c,H=!!(null==L?void 0:L.includes("contextMenu")),[F,_]=(0,yt.A)(!1,{value:null!=g?g:v}),W=(0,Te.A)((e=>{null==h||h(e,{source:"trigger"}),null==b||b(e),_(e)})),V=i()(f,p,j,R,z,null==O?void 0:O.className,{[`${N}-rtl`]:"rtl"===E}),q=Yi({arrowPointAtCenter:"object"==typeof o&&o.pointAtCenter,autoAdjustOverflow:x,offset:T.marginXXS,arrowWidth:o?T.sizePopupArrow:0,borderRadius:T.borderRadius}),K=r.useCallback((()=>{(null==n?void 0:n.selectable)&&(null==n?void 0:n.multiple)||(null==h||h(!1,{source:"menu"}),_(!1))}),[null==n?void 0:n.selectable,null==n?void 0:n.multiple]),[X,Y]=(0,mt.YK)("Dropdown",null==m?void 0:m.zIndex);let U=r.createElement(ul,Object.assign({alignPoint:H},(0,G.A)(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:C,visible:F,builtinPlacements:q,arrow:!!o,overlayClassName:V,prefixCls:N,getPopupContainer:d||$,transitionName:I,trigger:L,overlay:()=>{let e;return e=(null==n?void 0:n.items)?r.createElement(Is,Object.assign({},n)):"function"==typeof A?A():A,u&&(e=u(e)),e=r.Children.only("string"==typeof e?r.createElement("span",null,e):e),r.createElement(cs,{prefixCls:`${N}-menu`,rootClassName:i()(R,z),expandIcon:r.createElement("span",{className:`${N}-menu-submenu-arrow`},r.createElement(tl.A,{className:`${N}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:K,validator:e=>{let{mode:t}=e}},e)},placement:M,onVisibleChange:W,overlayStyle:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.style),m),{zIndex:X})}),B);return X&&(U=r.createElement(Ui.A.Provider,{value:Y},U)),P(U)};const js=(0,gt.A)(Ps,"dropdown",(e=>e),(function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}));Ps._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(js,Object.assign({},e),r.createElement("span",null));const Rs=Ps,Ts=e=>{let{children:t}=e;const{getPrefixCls:n}=r.useContext(Z.ConfigContext),o=n("breadcrumb");return r.createElement("li",{className:`${o}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};Ts.__ANT_BREADCRUMB_SEPARATOR=!0;const Ds=Ts;var Bs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(t)return t(n,r,o,i);const l=function(e,t){if(void 0===e.title||null===e.title)return null;const n=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(n,r);return Ls(e,n,l,a)}}var Fs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,separator:n="/",children:o,menu:i,overlay:a,dropdownProps:l,href:c}=e;const s=(e=>{if(i||a){const n=Object.assign({},l);if(i){const e=i||{},{items:t}=e,o=Fs(e,["items"]);n.menu=Object.assign(Object.assign({},o),{items:null==t?void 0:t.map(((e,t)=>{var{key:n,title:o,label:i,path:a}=e,l=Fs(e,["key","title","label","path"]);let s=null!=i?i:o;return a&&(s=r.createElement("a",{href:`${c}${a}`},s)),Object.assign(Object.assign({},l),{key:null!=n?n:t,label:s})}))})}else a&&(n.overlay=a);return r.createElement(Rs,Object.assign({placement:"bottom"},n),r.createElement("span",{className:`${t}-overlay-link`},e,r.createElement(ri,null)))}return e})(o);return null!=s?r.createElement(r.Fragment,null,r.createElement("li",null,s),n&&r.createElement(Ds,null,n)):null},Ws=e=>{const{prefixCls:t,children:n,href:o}=e,i=Fs(e,["prefixCls","children","href"]),{getPrefixCls:a}=r.useContext(Z.ConfigContext),l=a("breadcrumb",t);return r.createElement(_s,Object.assign({},i,{prefixCls:l}),Ls(l,i,n,o))};Ws.__ANT_BREADCRUMB_ITEM=!0;const Vs=Ws,qs=(0,J.OF)("Breadcrumb",(e=>(e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},(0,ve.dF)(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${(0,he.zA)(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,ve.K8)(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${(0,he.zA)(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}})((0,Ue.oX)(e,{}))),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS})));var Ks=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{breadcrumbName:t}=e,n=Ks(e,["breadcrumbName"]);return Object.assign(Object.assign({},n),{title:t})}))}),o}var Gs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,separator:n="/",style:o,className:a,rootClassName:c,routes:s,items:u,children:d,itemRender:f,params:p={}}=e,m=Gs(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:g,direction:h,breadcrumb:v}=r.useContext(Z.ConfigContext);let b;const y=g("breadcrumb",t),[C,x,w]=qs(y),A=function(e,t){return(0,r.useMemo)((()=>e||(t?t.map(Xs):null)),[e,t])}(u,s);const S=Hs(y,f);if(A&&A.length>0){const e=[],t=u||s;b=A.map(((o,i)=>{const{path:a,key:l,type:c,menu:s,overlay:u,onClick:d,className:f,separator:m,dropdownProps:g}=o,h=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{n=n.replace(`:${t}`,e[t])})),n})(p,a);void 0!==h&&e.push(h);const v=null!=l?l:i;if("separator"===c)return r.createElement(Ds,{key:v},m);const b={},C=i===A.length-1;s?b.menu=s:u&&(b.overlay=u);let{href:x}=o;return e.length&&void 0!==h&&(x=`#/${e.join("/")}`),r.createElement(_s,Object.assign({key:v},b,(0,me.A)(o,{data:!0,aria:!0}),{className:f,dropdownProps:g,href:x,separator:C?"":n,onClick:d,prefixCls:y}),S(o,p,t,e,x))}))}else if(d){const e=(0,l.A)(d).length;b=(0,l.A)(d).map(((t,r)=>{if(!t)return t;const o=r===e-1;return(0,ge.Ob)(t,{separator:o?"":n,key:r})}))}const $=i()(y,null==v?void 0:v.className,{[`${y}-rtl`]:"rtl"===h},a,c,x,w),k=Object.assign(Object.assign({},null==v?void 0:v.style),o);return C(r.createElement("nav",Object.assign({className:$,style:k},m),r.createElement("ol",null,b)))};Ys.Item=Vs,Ys.Separator=Ds;const Us=Ys;var Qs=n(8777),Zs=n(4353),Js=n.n(Zs),eu=n(6986),tu=n.n(eu),nu=n(1840),ru=n.n(nu),ou=n(8134),iu=n.n(ou),au=n(8623),lu=n.n(au),cu=n(7375),su=n.n(cu),uu=n(445),du=n.n(uu);Js().extend(du()),Js().extend(su()),Js().extend(tu()),Js().extend(ru()),Js().extend(iu()),Js().extend(lu()),Js().extend((function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}}));var fu={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},pu=function(e){return fu[e]||e.split("_")[0]},mu=function(){(0,c.g9)(!1,"Not match any format. Please help to fire a issue about this.")},gu={getNow:function(){var e=Js()();return"function"==typeof e.tz?e.tz():e},getFixedDate:function(e){return Js()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return Js()().locale(pu(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(pu(e)).weekday(0)},getWeek:function(e,t){return t.locale(pu(e)).week()},getShortWeekDays:function(e){return Js()().locale(pu(e)).localeData().weekdaysMin()},getShortMonths:function(e){return Js()().locale(pu(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(pu(e)).format(n)},parse:function(e,t,n){for(var r=pu(e),o=0;o2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length2&&void 0!==arguments[2]?arguments[2]:[],o=r.useState([!1,!1]),i=(0,vt.A)(o,2),a=i[0],l=i[1],c=r.useMemo((function(){return a.map((function(r,o){if(r)return!0;var i=e[o];return!!i&&(!n[o]&&!i||!(!i||!t(i,{activeIndex:o})))}))}),[e,a,t,n]);return[c,function(e,t){l((function(n){return Su(n,t,e)}))}]}function Nu(e,t,n,r,o){var i="",a=[];return e&&a.push(o?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),r&&(i+=".SSS"),o&&(i+=" A"),i}function zu(e,t){var n=t.showHour,o=t.showMinute,i=t.showSecond,a=t.showMillisecond,l=t.use12Hours;return r.useMemo((function(){return function(e,t,n,r,o,i){var a=e.fieldDateTimeFormat,l=e.fieldDateFormat,c=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,p=e.fieldQuarterFormat,m=e.yearFormat,g=e.cellYearFormat,h=e.cellQuarterFormat,v=e.dayFormat,b=e.cellDateFormat,y=Nu(t,n,r,o,i);return(0,s.A)((0,s.A)({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(y),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:c||y,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:m||"YYYY",cellYearFormat:g||"YYYY",cellQuarterFormat:h||"[Q]Q",cellDateFormat:b||v||"D"})}(e,n,o,i,a,l)}),[e,n,o,i,a,l])}function Pu(e,t,n){return null!=n?n:t.some((function(t){return e.includes(t)}))}var ju=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Ru(e){return e&&"string"==typeof e}function Tu(e,t,n,r){return[e,t,n,r].some((function(e){return void 0!==e}))}function Du(e,t,n,r,o){var i=t,a=n,l=r;if(e||i||a||l||o){if(e){var c,s,u,d=[i,a,l].some((function(e){return!1===e})),f=[i,a,l].some((function(e){return!0===e})),p=!!d||!f;i=null!==(c=i)&&void 0!==c?c:p,a=null!==(s=a)&&void 0!==s?s:p,l=null!==(u=l)&&void 0!==u?u:p}}else i=!0,a=!0,l=!0;return[i,a,l,o]}function Bu(e){var t=e.showTime,n=function(e){var t=$u(e,ju),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o="object"===(0,u.A)(o)?o.format:o),"time"===r&&(t.format=o),[t,o]}(e),r=(0,vt.A)(n,2),o=r[0],i=r[1],a=t&&"object"===(0,u.A)(t)?t:{},l=(0,s.A)((0,s.A)({defaultOpenValue:a.defaultOpenValue||a.defaultValue},o),a),c=l.showMillisecond,d=l.showHour,f=l.showMinute,p=l.showSecond,m=Du(Tu(d,f,p,c),d,f,p,c),g=(0,vt.A)(m,3);return d=g[0],f=g[1],p=g[2],[l,(0,s.A)((0,s.A)({},l),{},{showHour:d,showMinute:f,showSecond:p,showMillisecond:c}),l.format,i]}function Lu(e,t,n,r,o){if("datetime"===e||"time"===e){for(var i=r,a=ku(e,o,null),l=[t,n],c=0;c1&&void 0!==arguments[1]&&arguments[1],n=r.useMemo((function(){var n=e?Au(e):e;return t&&n&&(n[1]=n[1]||n[0]),n}),[e,t]);return n}function nd(e,t){var n=e.generateConfig,o=e.locale,i=e.picker,a=void 0===i?"date":i,l=e.prefixCls,c=void 0===l?"rc-picker":l,d=e.styles,f=void 0===d?{}:d,p=e.classNames,m=void 0===p?{}:p,g=e.order,h=void 0===g||g,v=e.components,b=void 0===v?{}:v,y=e.inputRender,C=e.allowClear,x=e.clearIcon,w=e.needConfirm,A=e.multiple,S=e.format,$=e.inputReadOnly,k=e.disabledDate,E=e.minDate,O=e.maxDate,I=e.showTime,M=e.value,N=e.defaultValue,z=e.pickerValue,P=e.defaultPickerValue,j=td(M),R=td(N),T=td(z),D=td(P),B="date"===a&&I?"datetime":a,L="time"===B||"datetime"===B,H=L||A,F=null!=w?w:L,_=Bu(e),W=(0,vt.A)(_,4),V=W[0],q=W[1],K=W[2],X=W[3],G=zu(o,q),Y=r.useMemo((function(){return Lu(B,K,X,V,G)}),[B,K,X,V,G]);var U=r.useMemo((function(){return(0,s.A)((0,s.A)({},e),{},{prefixCls:c,locale:G,picker:a,styles:f,classNames:m,order:h,components:(0,s.A)({input:y},b),clearIcon:Hu(c,C,x),showTime:Y,value:j,defaultValue:R,pickerValue:T,defaultPickerValue:D},null==t?void 0:t())}),[e]),Q=function(e,t,n){return r.useMemo((function(){var r=Au(ku(e,t,n)),o=r[0],i="object"===(0,u.A)(o)&&"mask"===o.type?o.format:null;return[r.map((function(e){return"string"==typeof e||"function"==typeof e?e:e.format})),i]}),[e,t,n])}(B,G,S),Z=(0,vt.A)(Q,2),J=Z[0],ee=Z[1],te=function(e,t,n){return!("function"!=typeof e[0]&&!n)||t}(J,$,A),ne=function(e,t,n,r,o){return(0,er._q)((function(i,a){return!(!n||!n(i,a))||!(!r||!e.isAfter(r,i)||Uu(e,t,r,i,a.type))||!(!o||!e.isAfter(i,o)||Uu(e,t,o,i,a.type))}))}(n,o,k,E,O),re=function(e,t,n,r){return(0,er._q)((function(o,i){var a=(0,s.A)({type:t},i);if(delete a.activeIndex,!e.isValidate(o)||n&&n(o,a))return!0;if(("date"===t||"time"===t)&&r){var l,c=i&&1===i.activeIndex?"end":"start",u=(null===(l=r.disabledTime)||void 0===l?void 0:l.call(r,o,c,{from:a.from}))||{},d=u.disabledHours,f=u.disabledMinutes,p=u.disabledSeconds,m=u.disabledMilliseconds,g=r.disabledHours,h=r.disabledMinutes,v=r.disabledSeconds,b=d||g,y=f||h,C=p||v,x=e.getHour(o),w=e.getMinute(o),A=e.getSecond(o),S=e.getMillisecond(o);if(b&&b().includes(x))return!0;if(y&&y(x).includes(w))return!0;if(C&&C(x,w).includes(A))return!0;if(m&&m(x,w,A).includes(S))return!0}return!1}))}(n,a,ne,Y);return[r.useMemo((function(){return(0,s.A)((0,s.A)({},U),{},{needConfirm:F,inputReadOnly:te,disabledDate:ne})}),[U,F,te,ne]),B,H,J,ee,re]}function rd(e,t){var n,o,i,a,l,c,s,u,d,f,p,m,g=arguments.length>3?arguments[3]:void 0,h=!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every((function(e){return e}))&&e,v=(n=h,o=t||!1,i=g,a=(0,er.vz)(o,{value:n}),l=(0,vt.A)(a,2),c=l[0],s=l[1],u=r.useRef(n),d=r.useRef(),f=function(){U.A.cancel(d.current)},p=(0,er._q)((function(){s(u.current),i&&c!==u.current&&i(u.current)})),m=(0,er._q)((function(e,t){f(),u.current=e,e||t?p():d.current=(0,U.A)(p)})),r.useEffect((function(){return f}),[]),[c,m]),b=(0,vt.A)(v,2),y=b[0],C=b[1];return[y,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!y||C(e,t.force)}]}function od(e){var t=r.useRef();return r.useImperativeHandle(e,(function(){var e;return{nativeElement:null===(e=t.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var n;null===(n=t.current)||void 0===n||n.focus(e)},blur:function(){var e;null===(e=t.current)||void 0===e||e.blur()}}})),t}function id(e,t){return r.useMemo((function(){return e||(t?((0,c.Ay)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map((function(e){var t=(0,vt.A)(e,2);return{label:t[0],value:t[1]}}))):[])}),[e,t])}function ad(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=r.useRef(t);o.current=t,(0,Ct.o)((function(){if(!e){var t=(0,U.A)((function(){o.current(e)}),n);return function(){U.A.cancel(t)}}o.current(e)}),[e])}function ld(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=r.useState(0),i=(0,vt.A)(o,2),a=i[0],l=i[1],c=r.useState(!1),s=(0,vt.A)(c,2),u=s[0],d=s[1],f=r.useRef([]),p=r.useRef(null);return ad(u||n,(function(){u||(f.current=[])})),r.useEffect((function(){u&&f.current.push(a)}),[u,a]),[u,function(e){d(e)},function(e){return e&&(p.current=e),p.current},a,l,function(n){var r=f.current,o=new Set(r.filter((function(e){return n[e]||t[e]}))),i=0===r[r.length-1]?1:0;return o.size>=2||e[i]?null:i},f.current]}function cd(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var sd=[];function ud(e,t,n,o,i,a,l,c){var s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:sd,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:sd,d=arguments.length>10&&void 0!==arguments[10]?arguments[10]:sd,f=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,m=arguments.length>13?arguments[13]:void 0,g="time"===l,h=a||0,v=function(t){var r=e.getNow();return g&&(r=ed(e,r)),s[t]||n[t]||r},b=(0,vt.A)(u,2),y=b[0],C=b[1],x=(0,er.vz)((function(){return v(0)}),{value:y}),w=(0,vt.A)(x,2),A=w[0],S=w[1],$=(0,er.vz)((function(){return v(1)}),{value:C}),k=(0,vt.A)($,2),E=k[0],O=k[1],I=r.useMemo((function(){var t=[A,E][h];return g?t:ed(e,t,d[h])}),[g,A,E,h,e,d]),M=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[S,O][h])(n);var i=[A,E];i[h]=n,!f||Uu(e,t,A,i[0],l)&&Uu(e,t,E,i[1],l)||f(i,{source:r,range:1===h?"end":"start",mode:o})},N=r.useRef(null);return(0,Ct.A)((function(){if(i&&!s[h]){var r=g?null:e.getNow();if(null!==N.current&&N.current!==h?r=[A,E][1^h]:n[h]?r=0===h?n[0]:function(n,r){if(c){var o={date:"month",week:"month",month:"year",quarter:"year"}[l];if(o&&!Uu(e,t,n,r,o))return cd(e,l,r,-1);if("year"===l&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return cd(e,l,r,-1)}return r}(n[0],n[1]):n[1^h]&&(r=n[1^h]),r){p&&e.isAfter(p,r)&&(r=p);var o=c?cd(e,l,r,1):r;m&&e.isAfter(o,m)&&(r=c?cd(e,l,m,-1):m),M(r,"reset")}}}),[i,h,n[h]]),r.useEffect((function(){N.current=i?h:null}),[i,h]),(0,Ct.A)((function(){i&&s&&s[h]&&M(s[h],"reset")}),[i,h]),[I,M]}function dd(e,t){var n=r.useRef(e),o=r.useState({}),i=(0,vt.A)(o,2)[1],a=function(e){return e&&void 0!==t?t:n.current};return[a,function(e){n.current=e,i({})},a(!0)]}var fd=[];function pd(e,t,n){return[function(r){return r.map((function(r){return Ju(r,{generateConfig:e,locale:t,format:n[0]})}))},function(t,n){for(var r=Math.max(t.length,n.length),o=-1,i=0;i2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],l=n>=1?0|n:1,c=e;c<=t;c+=l){var s=o.includes(c);s&&r||a.push({label:wu(c,i),value:c,disabled:s})}return a}function Cd(e){var t=arguments.length>2?arguments[2]:void 0,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},o=n.use12Hours,i=n.hourStep,a=void 0===i?1:i,l=n.minuteStep,c=void 0===l?1:l,u=n.secondStep,d=void 0===u?1:u,f=n.millisecondStep,p=void 0===f?100:f,m=n.hideDisabledOptions,g=n.disabledTime,h=n.disabledHours,v=n.disabledMinutes,b=n.disabledSeconds,y=r.useMemo((function(){return t||e.getNow()}),[t,e]),C=r.useCallback((function(e){var t=(null==g?void 0:g(e))||{};return[t.disabledHours||h||bd,t.disabledMinutes||v||bd,t.disabledSeconds||b||bd,t.disabledMilliseconds||bd]}),[g,h,v,b]),x=r.useMemo((function(){return C(y)}),[y,C]),w=(0,vt.A)(x,4),A=w[0],S=w[1],$=w[2],k=w[3],E=r.useCallback((function(e,t,n,r){var i=yd(0,23,a,m,e());return[o?i.map((function(e){return(0,s.A)((0,s.A)({},e),{},{label:wu(e.value%12||12,2)})})):i,function(e){return yd(0,59,c,m,t(e))},function(e,t){return yd(0,59,d,m,n(e,t))},function(e,t,n){return yd(0,999,p,m,r(e,t,n),3)}]}),[m,a,o,p,c,d]),O=r.useMemo((function(){return E(A,S,$,k)}),[E,A,S,$,k]),I=(0,vt.A)(O,4),M=I[0],N=I[1],z=I[2],P=I[3];return[function(t,n){var r=function(){return M},o=N,i=z,a=P;if(n){var l=C(n),c=(0,vt.A)(l,4),s=c[0],u=c[1],d=c[2],f=c[3],p=E(s,u,d,f),m=(0,vt.A)(p,4),g=m[0];r=function(){return g},o=m[1],i=m[2],a=m[3]}var h=function(e,t,n,r,o,i){var a=e;function l(e,t,n){var r=i[e](a),o=n.find((function(e){return e.value===r}));if(!o||o.disabled){var l=n.filter((function(e){return!e.disabled})),c=(0,Y.A)(l).reverse().find((function(e){return e.value<=r}))||l[0];c&&(r=c.value,a=i[t](a,r))}return r}var c=l("getHour","setHour",t()),s=l("getMinute","setMinute",n(c)),u=l("getSecond","setSecond",r(c,s));return l("getMillisecond","setMillisecond",o(c,s,u)),a}(t,r,o,i,a,e);return h},M,N,z,P]}function xd(e){var t=e.mode,n=e.internalMode,o=e.renderExtraFooter,a=e.showNow,l=e.showTime,c=e.onSubmit,s=e.onNow,u=e.invalid,d=e.needConfirm,f=e.generateConfig,p=e.disabledDate,m=r.useContext(yu),g=m.prefixCls,h=m.locale,v=m.button,b=void 0===v?"button":v,y=f.getNow(),C=Cd(f,l,y),x=(0,vt.A)(C,1)[0],w=null==o?void 0:o(t),A=p(y,{type:t}),S="".concat(g,"-now"),$="".concat(S,"-btn"),k=a&&r.createElement("li",{className:S},r.createElement("a",{className:i()($,A&&"".concat($,"-disabled")),"aria-disabled":A,onClick:function(){if(!A){var e=x(y);s(e)}}},"date"===n?h.today:h.now)),E=d&&r.createElement("li",{className:"".concat(g,"-ok")},r.createElement(b,{disabled:u,onClick:c},h.ok)),O=(k||E)&&r.createElement("ul",{className:"".concat(g,"-ranges")},k,E);return w||O?r.createElement("div",{className:"".concat(g,"-footer")},w&&r.createElement("div",{className:"".concat(g,"-footer-extra")},w),O):null}function wd(e,t,n){return function(r,o){var i=r.findIndex((function(r){return Uu(e,t,r,o,n)}));if(-1===i)return[].concat((0,Y.A)(r),[o]);var a=(0,Y.A)(r);return a.splice(i,1),a}}var Ad=r.createContext(null);function Sd(){return r.useContext(Ad)}function $d(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.disabledDate,a=e.minDate,l=e.maxDate,c=e.cellRender,s=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,f=e.values,p=e.pickerValue,m=e.onSelect,g=e.prevIcon,h=e.nextIcon,v=e.superPrevIcon,b=e.superNextIcon,y=r.getNow();return[{now:y,values:f,pickerValue:p,prefixCls:n,disabledDate:i,minDate:a,maxDate:l,cellRender:c,hoverValue:s,hoverRangeValue:u,onHover:d,locale:o,generateConfig:r,onSelect:m,panelType:t,prevIcon:g,nextIcon:h,superPrevIcon:v,superNextIcon:b},y]}var kd=r.createContext({});function Ed(e){for(var t=e.rowNum,n=e.colNum,o=e.baseDate,a=e.getCellDate,l=e.prefixColumn,c=e.rowClassName,u=e.titleFormat,d=e.getCellText,f=e.getCellClassName,p=e.headerCells,m=e.cellSelection,g=void 0===m||m,h=e.disabledDate,v=Sd(),b=v.prefixCls,y=v.panelType,C=v.now,x=v.disabledDate,w=v.cellRender,A=v.onHover,S=v.hoverValue,$=v.hoverRangeValue,k=v.generateConfig,E=v.values,O=v.locale,I=v.onSelect,M=h||x,N="".concat(b,"-cell"),z=r.useContext(kd).onCellDblClick,P=[],j=0;j1&&(a=t.addDate(a,-7)),a}(l.locale,c,k),O=c.getMonth(s),I=(void 0===v?C:v)?function(e){var t=null==m?void 0:m(e,{type:"week"});return r.createElement("td",{key:"week",className:i()(y,"".concat(y,"-week"),(0,ht.A)({},"".concat(y,"-disabled"),t)),onClick:function(){t||g(e)},onMouseEnter:function(){t||null==h||h(e)},onMouseLeave:function(){t||null==h||h(null)}},r.createElement("div",{className:"".concat(y,"-inner")},c.locale.getWeek(l.locale,e)))}:null,M=[],N=l.shortWeekDays||(c.locale.getShortWeekDays?c.locale.getShortWeekDays(l.locale):[]);I&&M.push(r.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var z=0;z<7;z+=1)M.push(r.createElement("th",{key:z},N[(z+$)%7]));var P=l.shortMonths||(c.locale.getShortMonths?c.locale.getShortMonths(l.locale):[]),j=r.createElement("button",{type:"button","aria-label":"year panel",key:"year",onClick:function(){d("year",s)},tabIndex:-1,className:"".concat(t,"-year-btn")},Ju(s,{locale:l,format:l.yearFormat,generateConfig:c})),R=r.createElement("button",{type:"button","aria-label":"month panel",key:"month",onClick:function(){d("month",s)},tabIndex:-1,className:"".concat(t,"-month-btn")},l.monthFormat?Ju(s,{locale:l,format:l.monthFormat,generateConfig:c}):P[O]),T=l.monthBeforeYear?[R,j]:[j,R];return r.createElement(Ad.Provider,{value:A},r.createElement("div",{className:i()(b,v&&"".concat(b,"-show-week"))},r.createElement(Id,{offset:function(e){return c.addMonth(s,e)},superOffset:function(e){return c.addYear(s,e)},onChange:u,getStart:function(e){return c.setDate(e,1)},getEnd:function(e){var t=c.setDate(e,1);return t=c.addMonth(t,1),c.addDate(t,-1)}},T),r.createElement(Ed,(0,a.A)({titleFormat:l.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:E,headerCells:M,getCellDate:function(e,t){return c.addDate(e,t)},getCellText:function(e){return Ju(e,{locale:l,format:l.cellDateFormat,generateConfig:c})},getCellClassName:function(e){return(0,ht.A)((0,ht.A)({},"".concat(t,"-cell-in-view"),qu(c,e,s)),"".concat(t,"-cell-today"),Ku(c,e,S))},prefixColumn:I,cellSelection:!C}))))}var Nd=1/3;function zd(e){var t=e.units,n=e.value,o=e.optionalValue,a=e.type,l=e.onChange,c=e.onHover,s=e.onDblClick,u=e.changeOnScroll,d=Sd(),f=d.prefixCls,p=d.cellRender,m=d.now,g=d.locale,h="".concat(f,"-time-panel"),v="".concat(f,"-time-panel-cell"),b=r.useRef(null),y=r.useRef(),C=function(){clearTimeout(y.current)},x=function(e,t){var n=r.useRef(!1),o=r.useRef(null),i=r.useRef(null),a=function(){U.A.cancel(o.current),n.current=!1},l=r.useRef();return[(0,er._q)((function(){var r=e.current;if(i.current=null,l.current=0,r){var c=r.querySelector('[data-value="'.concat(t,'"]')),s=r.querySelector("li");c&&s&&function e(){a(),n.current=!0,l.current+=1;var t=r.scrollTop,u=s.offsetTop,d=c.offsetTop,f=d-u;if(0===d&&c!==s||!(0,yn.A)(r))l.current<=5&&(o.current=(0,U.A)(e));else{var p=t+(f-t)*Nd,m=Math.abs(f-p);if(null!==i.current&&i.current1&&void 0!==arguments[1]&&arguments[1];se(e),null==C||C(e),t&&ue(e)},fe=function(e,t){U(e),t&&de(t),ue(t,e)},pe=r.useMemo((function(){var e,t;if(Array.isArray(E)){var n=(0,vt.A)(E,2);e=n[0],t=n[1]}else e=E;return e||t?(e=e||t,t=t||e,l.isAfter(e,t)?[t,e]:[e,t]):null}),[E,l]),me=Iu(O,I,M),ge=z[Q]||Td[Q]||Md,he=r.useContext(kd),ve=r.useMemo((function(){return(0,s.A)((0,s.A)({},he),{},{hideHeader:P})}),[he,P]);var be="".concat(j,"-panel"),ye=$u(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return r.createElement(kd.Provider,{value:ve},r.createElement("div",{ref:R,tabIndex:f,className:i()(be,(0,ht.A)({},"".concat(be,"-rtl"),"rtl"===c))},r.createElement(ge,(0,a.A)({},ye,{showTime:V,prefixCls:j,locale:_,generateConfig:l,onModeChange:fe,pickerValue:ce,onPickerValueChange:function(e){de(e,!0)},value:re[0],onSelect:function(e){if(ie(e),de(e),G!==S){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat((0,Y.A)(n),["week"]),date:[].concat((0,Y.A)(n),["date"])}[S]||n,o=r.indexOf(G),i=r[o+1];i&&fe(i,e)}},values:re,cellRender:me,hoverRangeValue:pe,hoverValue:k}))))}const Bd=r.memo(r.forwardRef(Dd));function Ld(e){var t=e.picker,n=e.multiplePanel,o=e.pickerValue,i=e.onPickerValueChange,l=e.needConfirm,c=e.onSubmit,u=e.range,d=e.hoverValue,f=r.useContext(yu),p=f.prefixCls,m=f.generateConfig,g=r.useCallback((function(e,n){return cd(m,t,e,n)}),[m,t]),h=r.useMemo((function(){return g(o,1)}),[o,g]),v={onCellDblClick:function(){l&&c()}},b="time"===t,y=(0,s.A)((0,s.A)({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:b});return u?y.hoverRangeValue=d:y.hoverValue=d,n?r.createElement("div",{className:"".concat(p,"-panels")},r.createElement(kd.Provider,{value:(0,s.A)((0,s.A)({},v),{},{hideNext:!0})},r.createElement(Bd,y)),r.createElement(kd.Provider,{value:(0,s.A)((0,s.A)({},v),{},{hidePrev:!0})},r.createElement(Bd,(0,a.A)({},y,{pickerValue:h,onPickerValueChange:function(e){i(g(e,-1))}})))):r.createElement(kd.Provider,{value:(0,s.A)({},v)},r.createElement(Bd,y))}function Hd(e){return"function"==typeof e?e():e}function Fd(e){var t=e.prefixCls,n=e.presets,o=e.onClick,i=e.onHover;return n.length?r.createElement("div",{className:"".concat(t,"-presets")},r.createElement("ul",null,n.map((function(e,t){var n=e.label,a=e.value;return r.createElement("li",{key:t,onClick:function(){o(Hd(a))},onMouseEnter:function(){i(Hd(a))},onMouseLeave:function(){i(null)}},n)})))):null}function _d(e){var t=e.panelRender,n=e.internalMode,o=e.picker,l=e.showNow,c=e.range,s=e.multiple,u=e.activeOffset,d=void 0===u?0:u,f=e.placement,p=e.presets,m=e.onPresetHover,g=e.onPresetSubmit,h=e.onFocus,v=e.onBlur,b=e.onPanelMouseDown,y=e.direction,C=e.value,x=e.onSelect,w=e.isInvalid,A=e.defaultOpenValue,S=e.onOk,$=e.onSubmit,k=r.useContext(yu).prefixCls,E="".concat(k,"-panel"),O="rtl"===y,I=r.useRef(null),M=r.useRef(null),N=r.useState(0),z=(0,vt.A)(N,2),P=z[0],j=z[1],R=r.useState(0),T=(0,vt.A)(R,2),D=T[0],B=T[1];function L(e){return e.filter((function(e){return e}))}r.useEffect((function(){if(c){var e,t=(null===(e=I.current)||void 0===e?void 0:e.offsetWidth)||0;B(d<=P-t?0:d+t-P)}}),[P,d,c]);var H=r.useMemo((function(){return L(Au(C))}),[C]),F="time"===o&&!H.length,_=r.useMemo((function(){return F?L([A]):H}),[F,H,A]),W=F?A:H,V=r.useMemo((function(){return!_.length||_.some((function(e){return w(e)}))}),[_,w]),q=r.createElement("div",{className:"".concat(k,"-panel-layout")},r.createElement(Fd,{prefixCls:k,presets:p,onClick:g,onHover:m}),r.createElement("div",null,r.createElement(Ld,(0,a.A)({},e,{value:W})),r.createElement(xd,(0,a.A)({},e,{showNow:!s&&l,invalid:V,onSubmit:function(){F&&x(A),S(),$()}}))));t&&(q=t(q));var K="".concat(E,"-container"),G="marginLeft",Y="marginRight",U=r.createElement("div",{onMouseDown:b,tabIndex:-1,className:i()(K,"".concat(k,"-").concat(n,"-panel-container")),style:(0,ht.A)((0,ht.A)({},O?Y:G,D),O?G:Y,"auto"),onFocus:h,onBlur:v},q);if(c){var Q=bu(vu(f,O),O);U=r.createElement("div",{onMouseDown:b,ref:M,className:i()("".concat(k,"-range-wrapper"),"".concat(k,"-").concat(o,"-range-wrapper"))},r.createElement("div",{ref:I,className:"".concat(k,"-range-arrow"),style:(0,ht.A)({},Q,d)}),r.createElement(X,{onResize:function(e){e.offsetWidth&&j(e.offsetWidth)}},U))}return U}function Wd(e,t){var n=e.format,o=e.maskFormat,i=e.generateConfig,a=e.locale,l=e.preserveInvalidOnBlur,c=e.inputReadOnly,u=e.required,d=e["aria-required"],f=e.onSubmit,p=e.onFocus,m=e.onBlur,g=e.onInputChange,h=e.onInvalid,v=e.open,b=e.onOpenChange,y=e.onKeyDown,C=e.onChange,x=e.activeHelp,w=e.name,A=e.autoComplete,S=e.id,$=e.value,k=e.invalid,E=e.placeholder,O=e.disabled,I=e.activeIndex,M=e.allHelp,N=e.picker,z=function(e,t){var n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},P=n[0],j=r.useCallback((function(e){return Ju(e,{locale:a,format:P,generateConfig:i})}),[a,i,P]),R=r.useMemo((function(){return $.map(j)}),[$,j]),T=r.useMemo((function(){var e="time"===N?8:10,t="function"==typeof P?P(i.getNow()).length:P.length;return Math.max(e,t)+2}),[P,N,i]),D=function(e){for(var t=0;t=i&&e<=a)return r;var l=Math.min(Math.abs(e-i),Math.abs(e-a));l0?r:o));var s=o-r+1;return String(r+(s+(c+e)-r)%s)};switch(t){case"Backspace":case"Delete":n="",r=i;break;case"ArrowLeft":n="",a(-1);break;case"ArrowRight":n="",a(1);break;case"ArrowUp":n="",r=l(1);break;case"ArrowDown":n="",r=l(-1);break;default:isNaN(Number(t))||(r=n=H+t)}if(null!==n&&(F(n),n.length>=o&&(a(1),F(""))),null!==r){var c=Q.slice(0,re)+wu(r,o)+Q.slice(oe);ae(c.slice(0,s.length))}Y({})},onMouseDown:function(){le.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=ee.getMaskCellIndex(t);q(n),Y({}),null==S||S(e),le.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");u(t)&&ae(t)}}:{};return r.createElement("div",{ref:Z,className:i()(I,(0,ht.A)((0,ht.A)({},"".concat(I,"-active"),n&&l),"".concat(I,"-placeholder"),f))},r.createElement(O,(0,a.A)({ref:J,"aria-invalid":b,autoComplete:"off"},C,{onKeyDown:se,onBlur:ce},de,{value:Q,onChange:function(e){if(!s){var t=e.target.value;ie(t),D(t),d(t)}}})),r.createElement(Gd,{type:"suffix",icon:c}),y)}));const ef=Jd;var tf=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],nf=["index"],rf=["insetInlineStart","insetInlineEnd"];function of(e,t){var n=e.id,o=e.prefix,l=e.clearIcon,c=e.suffixIcon,d=e.separator,f=void 0===d?"~":d,p=e.activeIndex,m=(e.activeHelp,e.allHelp,e.focused),g=(e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig,e.placeholder),h=e.className,v=e.style,b=e.onClick,y=e.onClear,C=e.value,x=(e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),w=e.invalid,A=(e.inputReadOnly,e.direction),S=(e.onOpenChange,e.onActiveOffset),$=e.placement,k=e.onMouseDown,E=(e.required,e["aria-required"],e.autoFocus),O=e.tabIndex,I=(0,bt.A)(e,tf),M="rtl"===A,N=r.useContext(yu).prefixCls,z=r.useMemo((function(){if("string"==typeof n)return[n];var e=n||{};return[e.start,e.end]}),[n]),P=r.useRef(),j=r.useRef(),R=r.useRef(),T=function(e){var t;return null===(t=[j,R][e])||void 0===t?void 0:t.current};r.useImperativeHandle(t,(function(){return{nativeElement:P.current,focus:function(e){if("object"===(0,u.A)(e)){var t,n=e||{},r=n.index,o=void 0===r?0:r,i=(0,bt.A)(n,nf);null===(t=T(o))||void 0===t||t.focus(i)}else{var a;null===(a=T(null!=e?e:0))||void 0===a||a.focus()}},blur:function(){var e,t;null===(e=T(0))||void 0===e||e.blur(),null===(t=T(1))||void 0===t||t.blur()}}}));var D=qd(I),B=r.useMemo((function(){return Array.isArray(g)?g:[g,g]}),[g]),L=Wd((0,s.A)((0,s.A)({},e),{},{id:z,placeholder:B})),H=(0,vt.A)(L,1)[0],F=vu($,M),_=bu(F,M),W=null==F?void 0:F.toLowerCase().endsWith("right"),V=r.useState({position:"absolute",width:0}),q=(0,vt.A)(V,2),K=q[0],G=q[1],Y=(0,er._q)((function(){var e=T(p);if(e){var t=e.nativeElement,n=t.offsetWidth,r=t.offsetLeft,o=t.offsetParent,i=(null==o?void 0:o.offsetWidth)||0,a=W?i-n-r:r;G((function(e){e.insetInlineStart,e.insetInlineEnd;var t=(0,bt.A)(e,rf);return(0,s.A)((0,s.A)({},t),{},(0,ht.A)({width:n},_,a))})),S(a)}}));r.useEffect((function(){Y()}),[p]);var U=l&&(C[0]&&!x[0]||C[1]&&!x[1]),Q=E&&!x[0],Z=E&&!Q&&!x[1];return r.createElement(X,{onResize:Y},r.createElement("div",(0,a.A)({},D,{className:i()(N,"".concat(N,"-range"),(0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)({},"".concat(N,"-focused"),m),"".concat(N,"-disabled"),x.every((function(e){return e}))),"".concat(N,"-invalid"),w.some((function(e){return e}))),"".concat(N,"-rtl"),M),h),style:v,ref:P,onClick:b,onMouseDown:function(e){var t=e.target;t!==j.current.inputElement&&t!==R.current.inputElement&&e.preventDefault(),null==k||k(e)}}),o&&r.createElement("div",{className:"".concat(N,"-prefix")},o),r.createElement(ef,(0,a.A)({ref:j},H(0),{autoFocus:Q,tabIndex:O,"date-range":"start"})),r.createElement("div",{className:"".concat(N,"-range-separator")},f),r.createElement(ef,(0,a.A)({ref:R},H(1),{autoFocus:Z,tabIndex:O,"date-range":"end"})),r.createElement("div",{className:"".concat(N,"-active-bar"),style:K}),r.createElement(Gd,{type:"suffix",icon:c}),U&&r.createElement(Yd,{icon:l,onClear:y})))}const af=r.forwardRef(of);function lf(e,t){var n=null!=e?e:t;return Array.isArray(n)?n:[n,n]}function cf(e){return 1===e?"end":"start"}function sf(e,t){var n=nd(e,(function(){var t=e.disabled,n=e.allowEmpty;return{disabled:lf(t,!1),allowEmpty:lf(n,!1)}})),o=(0,vt.A)(n,6),i=o[0],l=o[1],c=o[2],u=o[3],d=o[4],f=o[5],p=i.prefixCls,m=i.styles,g=i.classNames,h=i.placement,v=i.defaultValue,b=i.value,y=i.needConfirm,C=i.onKeyDown,x=i.disabled,w=i.allowEmpty,A=i.disabledDate,S=i.minDate,$=i.maxDate,k=i.defaultOpen,E=i.open,O=i.onOpenChange,I=i.locale,M=i.generateConfig,N=i.picker,z=i.showNow,P=i.showToday,j=i.showTime,R=i.mode,T=i.onPanelChange,D=i.onCalendarChange,B=i.onOk,L=i.defaultPickerValue,H=i.pickerValue,F=i.onPickerValueChange,_=i.inputReadOnly,W=i.suffixIcon,V=i.onFocus,q=i.onBlur,K=i.presets,X=i.ranges,U=i.components,Q=i.cellRender,Z=i.dateRender,J=i.monthCellRender,ee=i.onClick,te=od(t),ne=rd(E,k,x,O),re=(0,vt.A)(ne,2),oe=re[0],ie=re[1],ae=function(e,t){!x.some((function(e){return!e}))&&e||ie(e,t)},le=gd(M,I,u,!0,!1,v,b,D,B),ce=(0,vt.A)(le,5),se=ce[0],ue=ce[1],de=ce[2],fe=ce[3],pe=ce[4],ge=de(),he=ld(x,w,oe),ve=(0,vt.A)(he,7),be=ve[0],ye=ve[1],Ce=ve[2],xe=ve[3],we=ve[4],Ae=ve[5],Se=ve[6],$e=function(e,t){ye(!0),null==V||V(e,{range:cf(null!=t?t:xe)})},ke=function(e,t){ye(!1),null==q||q(e,{range:cf(null!=t?t:xe)})},Ee=r.useMemo((function(){if(!j)return null;var e=j.disabledTime,t=e?function(t){var n=cf(xe),r=Eu(ge,Se,xe);return e(t,n,{from:r})}:void 0;return(0,s.A)((0,s.A)({},j),{},{disabledTime:t})}),[j,xe,ge,Se]),Oe=(0,er.vz)([N,N],{value:R}),Ie=(0,vt.A)(Oe,2),Me=Ie[0],Ne=Ie[1],ze=Me[xe]||N,Pe="date"===ze&&Ee?"datetime":ze,je=Pe===N&&"time"!==Pe,Re=vd(N,ze,z,P,!0),Te=hd(i,se,ue,de,fe,x,u,be,oe,f),De=(0,vt.A)(Te,3),Be=De[0],Le=De[1],He=De[2],Fe=function(e,t,n,r,o,i){var a=n[n.length-1];return function(l,c){var u=(0,vt.A)(e,2),d=u[0],f=u[1],p=(0,s.A)((0,s.A)({},c),{},{from:Eu(e,n)});return!(1!==a||!t[0]||!d||Uu(r,o,d,l,p.type)||!r.isAfter(d,l))||!(0!==a||!t[1]||!f||Uu(r,o,f,l,p.type)||!r.isAfter(l,f))||(null==i?void 0:i(l,p))}}(ge,x,Se,M,I,A),_e=Mu(ge,f,w),We=(0,vt.A)(_e,2),Ve=We[0],qe=We[1],Ke=ud(M,I,ge,Me,oe,xe,l,je,L,H,null==Ee?void 0:Ee.defaultOpenValue,F,S,$),Xe=(0,vt.A)(Ke,2),Ge=Xe[0],Ye=Xe[1],Ue=(0,er._q)((function(e,t,n){var r=Su(Me,xe,t);if(r[0]===Me[0]&&r[1]===Me[1]||Ne(r),T&&!1!==n){var o=(0,Y.A)(ge);e&&(o[xe]=e),T(o,r)}})),Qe=function(e,t){return Su(ge,t,e)},Ze=function(e,t){var n=ge;e&&(n=Qe(e,xe));var r=Ae(n);fe(n),Be(xe,null===r),null===r?ae(!1,{force:!0}):t||te.current.focus({index:r})},Je=r.useState(null),et=(0,vt.A)(Je,2),tt=et[0],nt=et[1],rt=r.useState(null),ot=(0,vt.A)(rt,2),it=ot[0],at=ot[1],lt=r.useMemo((function(){return it||ge}),[ge,it]);r.useEffect((function(){oe||at(null)}),[oe]);var ct=r.useState(0),st=(0,vt.A)(ct,2),ut=st[0],dt=st[1],ft=id(K,X),pt=Iu(Q,Z,J,cf(xe)),mt=ge[xe]||null,gt=(0,er._q)((function(e){return f(e,{activeIndex:xe})})),ht=r.useMemo((function(){var e=(0,me.A)(i,!1);return(0,G.A)(i,[].concat((0,Y.A)(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))}),[i]),bt=r.createElement(_d,(0,a.A)({},ht,{showNow:Re,showTime:Ee,range:!0,multiplePanel:je,activeOffset:ut,placement:h,disabledDate:Fe,onFocus:function(e){ae(!0),$e(e)},onBlur:ke,onPanelMouseDown:function(){Ce("panel")},picker:N,mode:ze,internalMode:Pe,onPanelChange:Ue,format:d,value:mt,isInvalid:gt,onChange:null,onSelect:function(e){var t=Su(ge,xe,e);fe(t),y||c||l!==Pe||Ze(e)},pickerValue:Ge,defaultOpenValue:Au(null==j?void 0:j.defaultOpenValue)[xe],onPickerValueChange:Ye,hoverValue:lt,onHover:function(e){at(e?Qe(e,xe):null),nt("cell")},needConfirm:y,onSubmit:Ze,onOk:pe,presets:ft,onPresetHover:function(e){at(e),nt("preset")},onPresetSubmit:function(e){Le(e)&&ae(!1,{force:!0})},onNow:function(e){Ze(e)},cellRender:pt})),yt=r.useMemo((function(){return{prefixCls:p,locale:I,generateConfig:M,button:U.button,input:U.input}}),[p,I,M,U.button,U.input]);return(0,Ct.A)((function(){oe&&void 0!==xe&&Ue(null,N,!1)}),[oe,xe,N]),(0,Ct.A)((function(){var e=Ce();oe||"input"!==e||(ae(!1),Ze(null,!0)),oe||!c||y||"panel"!==e||(ae(!0),Ze())}),[oe]),r.createElement(yu.Provider,{value:yt},r.createElement(xu,(0,a.A)({},Ou(i),{popupElement:bt,popupStyle:m.popup,popupClassName:g.popup,visible:oe,onClose:function(){ae(!1)},range:!0}),r.createElement(af,(0,a.A)({},i,{ref:te,suffixIcon:W,activeIndex:be||oe?xe:null,activeHelp:!!it,allHelp:!!it&&"preset"===tt,focused:be,onFocus:function(e,t){var n=Se.length,r=Se[n-1];n&&r!==t&&y&&!w[r]&&!He(r)&&ge[r]?te.current.focus({index:r}):(Ce("input"),ae(!0,{inherit:!0}),xe!==t&&oe&&!y&&c&&Ze(null,!0),we(t),$e(e,t))},onBlur:function(e,t){if(ae(!1),!y&&"input"===Ce()){var n=Ae(ge);Be(xe,null===n)}ke(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&Ze(null,!0),null==C||C(e,t)},onSubmit:Ze,value:lt,maskFormat:d,onChange:function(e,t){var n=Qe(e,t);fe(n)},onInputChange:function(){Ce("input")},format:u,inputReadOnly:_,disabled:x,open:oe,onOpenChange:ae,onClick:function(e){var t,n=e.target.getRootNode();if(!te.current.nativeElement.contains(null!==(t=n.activeElement)&&void 0!==t?t:document.activeElement)){var r=x.findIndex((function(e){return!e}));r>=0&&te.current.focus({index:r})}ae(!0),null==ee||ee(e)},onClear:function(){Le(null),ae(!1,{force:!0})},invalid:Ve,onInvalid:qe,onActiveOffset:dt}))))}const uf=r.forwardRef(sf);function df(e){var t=e.prefixCls,n=e.value,o=e.onRemove,a=e.removeIcon,l=void 0===a?"×":a,c=e.formatDate,s=e.disabled,u=e.maxTagCount,d=e.placeholder,f="".concat(t,"-selector"),p="".concat(t,"-selection"),m="".concat(p,"-overflow");function g(e,t){return r.createElement("span",{className:i()("".concat(p,"-item")),title:"string"==typeof e?e:null},r.createElement("span",{className:"".concat(p,"-item-content")},e),!s&&t&&r.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(p,"-item-remove")},l))}return r.createElement("div",{className:f},r.createElement(Gt,{prefixCls:m,data:n,renderItem:function(e){return g(c(e),(function(t){t&&t.stopPropagation(),o(e)}))},renderRest:function(e){return g("+ ".concat(e.length," ..."))},itemKey:function(e){return c(e)},maxCount:u}),!n.length&&r.createElement("span",{className:"".concat(t,"-selection-placeholder")},d))}var ff=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function pf(e,t){e.id;var n=e.open,o=e.prefix,l=e.clearIcon,c=e.suffixIcon,u=(e.activeHelp,e.allHelp,e.focused),d=(e.onFocus,e.onBlur,e.onKeyDown,e.locale),f=e.generateConfig,p=e.placeholder,m=e.className,g=e.style,h=e.onClick,v=e.onClear,b=e.internalPicker,y=e.value,C=e.onChange,x=e.onSubmit,w=(e.onInputChange,e.multiple),A=e.maxTagCount,S=(e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),$=e.invalid,k=(e.inputReadOnly,e.direction),E=(e.onOpenChange,e.onMouseDown),O=(e.required,e["aria-required"],e.autoFocus),I=e.tabIndex,M=e.removeIcon,N=(0,bt.A)(e,ff),z="rtl"===k,P=r.useContext(yu).prefixCls,j=r.useRef(),R=r.useRef();r.useImperativeHandle(t,(function(){return{nativeElement:j.current,focus:function(e){var t;null===(t=R.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=R.current)||void 0===e||e.blur()}}}));var T=qd(N),D=Wd((0,s.A)((0,s.A)({},e),{},{onChange:function(e){C([e])}}),(function(e){return{value:e.valueTexts[0]||"",active:u}})),B=(0,vt.A)(D,2),L=B[0],H=B[1],F=!(!l||!y.length||S),_=w?r.createElement(r.Fragment,null,r.createElement(df,{prefixCls:P,value:y,onRemove:function(e){var t=y.filter((function(t){return t&&!Uu(f,d,t,e,b)}));C(t),n||x()},formatDate:H,maxTagCount:A,disabled:S,removeIcon:M,placeholder:p}),r.createElement("input",{className:"".concat(P,"-multiple-input"),value:y.map(H).join(","),ref:R,readOnly:!0,autoFocus:O,tabIndex:I}),r.createElement(Gd,{type:"suffix",icon:c}),F&&r.createElement(Yd,{icon:l,onClear:v})):r.createElement(ef,(0,a.A)({ref:R},L(),{autoFocus:O,tabIndex:I,suffixIcon:c,clearIcon:F&&r.createElement(Yd,{icon:l,onClear:v}),showActiveCls:!1}));return r.createElement("div",(0,a.A)({},T,{className:i()(P,(0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)({},"".concat(P,"-multiple"),w),"".concat(P,"-focused"),u),"".concat(P,"-disabled"),S),"".concat(P,"-invalid"),$),"".concat(P,"-rtl"),z),m),style:g,ref:j,onClick:h,onMouseDown:function(e){var t;e.target!==(null===(t=R.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==E||E(e)}}),o&&r.createElement("div",{className:"".concat(P,"-prefix")},o),_)}const mf=r.forwardRef(pf);function gf(e,t){var n=nd(e),o=(0,vt.A)(n,6),i=o[0],l=o[1],c=o[2],u=o[3],d=o[4],f=o[5],p=i,m=p.prefixCls,g=p.styles,h=p.classNames,v=p.order,b=p.defaultValue,y=p.value,C=p.needConfirm,x=p.onChange,w=p.onKeyDown,A=p.disabled,S=p.disabledDate,$=p.minDate,k=p.maxDate,E=p.defaultOpen,O=p.open,I=p.onOpenChange,M=p.locale,N=p.generateConfig,z=p.picker,P=p.showNow,j=p.showToday,R=p.showTime,T=p.mode,D=p.onPanelChange,B=p.onCalendarChange,L=p.onOk,H=p.multiple,F=p.defaultPickerValue,_=p.pickerValue,W=p.onPickerValueChange,V=p.inputReadOnly,q=p.suffixIcon,K=p.removeIcon,X=p.onFocus,U=p.onBlur,Q=p.presets,Z=p.components,J=p.cellRender,ee=p.dateRender,te=p.monthCellRender,ne=p.onClick,re=od(t);function oe(e){return null===e?null:H?e:e[0]}var ie=wd(N,M,l),ae=rd(O,E,[A],I),le=(0,vt.A)(ae,2),ce=le[0],se=le[1],ue=gd(N,M,u,!1,v,b,y,(function(e,t,n){if(B){var r=(0,s.A)({},n);delete r.range,B(oe(e),oe(t),r)}}),(function(e){null==L||L(oe(e))})),de=(0,vt.A)(ue,5),fe=de[0],pe=de[1],ge=de[2],he=de[3],ve=de[4],be=ge(),ye=ld([A]),Ce=(0,vt.A)(ye,4),xe=Ce[0],we=Ce[1],Ae=Ce[2],Se=Ce[3],$e=function(e){we(!0),null==X||X(e,{})},ke=function(e){we(!1),null==U||U(e,{})},Ee=(0,er.vz)(z,{value:T}),Oe=(0,vt.A)(Ee,2),Ie=Oe[0],Me=Oe[1],Ne="date"===Ie&&R?"datetime":Ie,ze=vd(z,Ie,P,j),Pe=x&&function(e,t){x(oe(e),oe(t))},je=hd((0,s.A)((0,s.A)({},i),{},{onChange:Pe}),fe,pe,ge,he,[],u,xe,ce,f),Re=(0,vt.A)(je,2)[1],Te=Mu(be,f),De=(0,vt.A)(Te,2),Be=De[0],Le=De[1],He=r.useMemo((function(){return Be.some((function(e){return e}))}),[Be]),Fe=ud(N,M,be,[Ie],ce,Se,l,!1,F,_,Au(null==R?void 0:R.defaultOpenValue),(function(e,t){if(W){var n=(0,s.A)((0,s.A)({},t),{},{mode:t.mode[0]});delete n.range,W(e[0],n)}}),$,k),_e=(0,vt.A)(Fe,2),We=_e[0],Ve=_e[1],qe=(0,er._q)((function(e,t,n){if(Me(t),D&&!1!==n){var r=e||be[be.length-1];D(r,t)}})),Ke=function(){Re(ge()),se(!1,{force:!0})},Xe=r.useState(null),Ge=(0,vt.A)(Xe,2),Ye=Ge[0],Ue=Ge[1],Qe=r.useState(null),Ze=(0,vt.A)(Qe,2),Je=Ze[0],et=Ze[1],tt=r.useMemo((function(){var e=[Je].concat((0,Y.A)(be)).filter((function(e){return e}));return H?e:e.slice(0,1)}),[be,Je,H]),nt=r.useMemo((function(){return!H&&Je?[Je]:be.filter((function(e){return e}))}),[be,Je,H]);r.useEffect((function(){ce||et(null)}),[ce]);var rt=id(Q),ot=function(e){var t=H?ie(ge(),e):[e];Re(t)&&!H&&se(!1,{force:!0})},it=Iu(J,ee,te),at=r.useMemo((function(){var e=(0,me.A)(i,!1),t=(0,G.A)(i,[].concat((0,Y.A)(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,s.A)((0,s.A)({},t),{},{multiple:i.multiple})}),[i]),lt=r.createElement(_d,(0,a.A)({},at,{showNow:ze,showTime:R,disabledDate:S,onFocus:function(e){se(!0),$e(e)},onBlur:ke,picker:z,mode:Ie,internalMode:Ne,onPanelChange:qe,format:d,value:be,isInvalid:f,onChange:null,onSelect:function(e){Ae("panel");var t=H?ie(ge(),e):[e];he(t),C||c||l!==Ne||Ke()},pickerValue:We,defaultOpenValue:null==R?void 0:R.defaultOpenValue,onPickerValueChange:Ve,hoverValue:tt,onHover:function(e){et(e),Ue("cell")},needConfirm:C,onSubmit:Ke,onOk:ve,presets:rt,onPresetHover:function(e){et(e),Ue("preset")},onPresetSubmit:ot,onNow:function(e){ot(e)},cellRender:it})),ct=r.useMemo((function(){return{prefixCls:m,locale:M,generateConfig:N,button:Z.button,input:Z.input}}),[m,M,N,Z.button,Z.input]);return(0,Ct.A)((function(){ce&&void 0!==Se&&qe(null,z,!1)}),[ce,Se,z]),(0,Ct.A)((function(){var e=Ae();ce||"input"!==e||(se(!1),Ke()),ce||!c||C||"panel"!==e||(se(!0),Ke())}),[ce]),r.createElement(yu.Provider,{value:ct},r.createElement(xu,(0,a.A)({},Ou(i),{popupElement:lt,popupStyle:g.popup,popupClassName:h.popup,visible:ce,onClose:function(){se(!1)}}),r.createElement(mf,(0,a.A)({},i,{ref:re,suffixIcon:q,removeIcon:K,activeHelp:!!Je,allHelp:!!Je&&"preset"===Ye,focused:xe,onFocus:function(e){Ae("input"),se(!0,{inherit:!0}),$e(e)},onBlur:function(e){se(!1),ke(e)},onKeyDown:function(e,t){"Tab"===e.key&&Ke(),null==w||w(e,t)},onSubmit:Ke,value:nt,maskFormat:d,onChange:function(e){he(e)},onInputChange:function(){Ae("input")},internalPicker:l,format:u,inputReadOnly:V,disabled:A,open:ce,onOpenChange:se,onClick:function(e){A||re.current.nativeElement.contains(document.activeElement)||re.current.focus(),se(!0),null==ne||ne(e)},onClear:function(){Re(null),se(!1,{force:!0})},invalid:He,onInvalid:function(e){Le(e,0)}}))))}const hf=r.forwardRef(gf),vf=r.createContext(null),bf=vf.Provider,yf=vf,Cf=r.createContext(null),xf=Cf.Provider;var wf=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Af=(0,r.forwardRef)((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-checkbox":n,l=e.className,c=e.style,u=e.checked,d=e.disabled,f=e.defaultChecked,p=void 0!==f&&f,m=e.type,g=void 0===m?"checkbox":m,h=e.title,v=e.onChange,b=(0,bt.A)(e,wf),y=(0,r.useRef)(null),C=(0,r.useRef)(null),x=(0,yt.A)(p,{value:u}),w=(0,vt.A)(x,2),A=w[0],S=w[1];(0,r.useImperativeHandle)(t,(function(){return{focus:function(e){var t;null===(t=y.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=y.current)||void 0===e||e.blur()},input:y.current,nativeElement:C.current}}));var $=i()(o,l,(0,ht.A)((0,ht.A)({},"".concat(o,"-checked"),A),"".concat(o,"-disabled"),d));return r.createElement("span",{className:$,title:h,style:c,ref:C},r.createElement("input",(0,a.A)({},b,{className:"".concat(o,"-input"),ref:y,onChange:function(t){d||("checked"in e||S(t.target.checked),null==v||v({target:(0,s.A)((0,s.A)({},e),{},{type:g,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:d,checked:!!A,type:g})),r.createElement("span",{className:"".concat(o,"-inner")}))}));const Sf=Af;var $f=n(57),kf=n(4424);const Ef=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},(0,ve.dF)(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},Of=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:m,lineType:g,radioColor:h,radioBgColor:v,calc:b}=e,y=`${t}-inner`,C=b(o).sub(b(4).mul(2)),x=b(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,ve.dF)(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,he.zA)(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:Object.assign({},(0,ve.jk)(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:b(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:h,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:c,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(C).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},If=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:s,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:m,paddingXS:g,borderRadius:h,borderRadiusSM:v,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:C,colorTextDisabled:x,colorBgContainerDisabled:w,buttonCheckedBgDisabled:A,buttonCheckedColorDisabled:S,colorPrimary:$,colorPrimaryHover:k,colorPrimaryActive:E,buttonSolidCheckedBg:O,buttonSolidCheckedHoverBg:I,buttonSolidCheckedActiveBg:M,calc:N}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:(0,he.zA)(N(n).sub(N(o).mul(2)).equal()),background:d,border:`${(0,he.zA)(o)} ${i} ${a}`,borderBlockStartWidth:N(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:N(o).mul(-1).equal(),insetInlineStart:N(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,he.zA)(o)} ${i} ${a}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:(0,he.zA)(N(p).sub(N(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:m,paddingInline:N(g).sub(o).equal(),paddingBlock:0,lineHeight:(0,he.zA)(N(m).sub(N(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Object.assign({},(0,ve.jk)(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:y,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:k,borderColor:k,"&::before":{backgroundColor:k}},"&:active":{color:E,borderColor:E,"&::before":{backgroundColor:E}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:O,borderColor:O,"&:hover":{color:C,background:I,borderColor:I},"&:active":{color:C,background:M,borderColor:M}},"&-disabled":{color:x,backgroundColor:w,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:w,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:S,backgroundColor:A,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},Mf=(0,J.OF)("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${(0,he.zA)(n)} ${t}`,o=r,i=(0,Ue.oX)(e,{radioFocusShadow:r,radioButtonFocusShadow:o});return[Ef(i),Of(i),If(i)]}),(e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:s,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+o),dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?l:d}}),{unitless:{radioSize:!0,dotSize:!0}});var Nf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,o;const a=r.useContext(yf),l=r.useContext(Cf),{getPrefixCls:c,direction:s,radio:u}=r.useContext(Z.ConfigContext),d=r.useRef(null),p=(0,f.K4)(t,d),{isFormItemInput:m}=r.useContext(oo.$W);const g=t=>{var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null==a?void 0:a.onChange)||void 0===r||r.call(a,t)},{prefixCls:h,className:v,rootClassName:b,children:y,style:C,title:x}=e,w=Nf(e,["prefixCls","className","rootClassName","children","style","title"]),A=c("radio",h),S="button"===((null==a?void 0:a.optionType)||l),$=S?`${A}-button`:A,k=(0,Xe.A)(A),[E,O,I]=Mf(A,k),M=Object.assign({},w),N=r.useContext(no.A);a&&(M.name=a.name,M.onChange=g,M.checked=e.value===a.value,M.disabled=null!==(n=M.disabled)&&void 0!==n?n:a.disabled),M.disabled=null!==(o=M.disabled)&&void 0!==o?o:N;const z=i()(`${$}-wrapper`,{[`${$}-wrapper-checked`]:M.checked,[`${$}-wrapper-disabled`]:M.disabled,[`${$}-wrapper-rtl`]:"rtl"===s,[`${$}-wrapper-in-form-item`]:m,[`${$}-wrapper-block`]:!!(null==a?void 0:a.block)},null==u?void 0:u.className,v,b,O,I,k);return E(r.createElement($f.A,{component:"Radio",disabled:M.disabled},r.createElement("label",{className:z,style:Object.assign(Object.assign({},null==u?void 0:u.style),C),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:x},r.createElement(Sf,Object.assign({},M,{className:i()(M.className,{[kf.D]:!S}),type:"radio",prefixCls:$,ref:p})),void 0!==y?r.createElement("span",null,y):null)))};const Pf=r.forwardRef(zf),jf=r.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:o}=r.useContext(Z.ConfigContext),{prefixCls:a,className:l,rootClassName:c,options:s,buttonStyle:u="outline",disabled:d,children:f,size:p,style:m,id:g,optionType:h,name:v,defaultValue:b,value:y,block:C=!1,onChange:x,onMouseEnter:w,onMouseLeave:A,onFocus:S,onBlur:$}=e,[k,E]=(0,yt.A)(b,{value:y}),O=r.useCallback((t=>{const n=k,r=t.target.value;"value"in e||E(r),r!==n&&(null==x||x(t))}),[k,E,x]),I=n("radio",a),M=`${I}-group`,N=(0,Xe.A)(I),[z,P,j]=Mf(I,N);let R=f;s&&s.length>0&&(R=s.map((e=>"string"==typeof e||"number"==typeof e?r.createElement(Pf,{key:e.toString(),prefixCls:I,disabled:d,value:e,checked:k===e},e):r.createElement(Pf,{key:`radio-group-value-options-${e.value}`,prefixCls:I,disabled:e.disabled||d,value:e.value,checked:k===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const T=(0,ro.A)(p),D=i()(M,`${M}-${u}`,{[`${M}-${T}`]:T,[`${M}-rtl`]:"rtl"===o,[`${M}-block`]:C},l,c,P,j,N),B=r.useMemo((()=>({onChange:O,value:k,disabled:d,name:v,optionType:h,block:C})),[O,k,d,v,h,C]);return z(r.createElement("div",Object.assign({},(0,me.A)(e,{aria:!0,data:!0}),{className:D,style:m,onMouseEnter:w,onMouseLeave:A,onFocus:S,onBlur:$,id:g,ref:t}),r.createElement(bf,{value:B},R)))})),Rf=r.memo(jf);var Tf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n}=r.useContext(Z.ConfigContext),{prefixCls:o}=e,i=Tf(e,["prefixCls"]),a=n("radio",o);return r.createElement(xf,{value:"button"},r.createElement(Pf,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))},Bf=r.forwardRef(Df);function Lf(e){const{fullscreen:t,validRange:n,generateConfig:o,locale:i,prefixCls:a,value:l,onChange:c,divRef:s}=e,u=o.getYear(l||o.getNow());let d=u-10,f=d+20;n&&(d=o.getYear(n[0]),f=o.getYear(n[1])+1);const p=i&&"年"===i.year?"年":"",m=[];for(let e=d;e{let t=o.setYear(l,e);if(n){const[e,r]=n,i=o.getYear(t),a=o.getMonth(t);i===o.getYear(r)&&a>o.getMonth(r)&&(t=o.setMonth(t,o.getMonth(r))),i===o.getYear(e)&&as.current})}function Hf(e){const{prefixCls:t,fullscreen:n,validRange:o,value:i,generateConfig:a,locale:l,onChange:c,divRef:s}=e,u=a.getMonth(i||a.getNow());let d=0,f=11;if(o){const[e,t]=o,n=a.getYear(i);a.getYear(t)===n&&(f=a.getMonth(t)),a.getYear(e)===n&&(d=a.getMonth(e))}const p=l.shortMonths||a.locale.getShortMonths(l.locale),m=[];for(let e=d;e<=f;e+=1)m.push({label:p[e],value:e});return r.createElement(gi,{size:n?void 0:"small",className:`${t}-month-select`,value:u,options:m,onChange:e=>{c(a.setMonth(i,e))},getPopupContainer:()=>s.current})}function Ff(e){const{prefixCls:t,locale:n,mode:o,fullscreen:i,onModeChange:a}=e;return r.createElement(Rf,{onChange:e=>{let{target:{value:t}}=e;a(t)},value:o,size:i?void 0:"small",className:`${t}-mode-switch`},r.createElement(Bf,{value:"month"},n.month),r.createElement(Bf,{value:"year"},n.year))}const _f=function(e){const{prefixCls:t,fullscreen:n,mode:o,onChange:i,onModeChange:a}=e,l=r.useRef(null),c=(0,r.useContext)(oo.$W),s=(0,r.useMemo)((()=>Object.assign(Object.assign({},c),{isFormItemInput:!1})),[c]),u=Object.assign(Object.assign({},e),{fullscreen:n,divRef:l});return r.createElement("div",{className:`${t}-header`,ref:l},r.createElement(oo.$W.Provider,{value:s},r.createElement(Lf,Object.assign({},u,{onChange:e=>{i(e,"year")}})),"month"===o&&r.createElement(Hf,Object.assign({},u,{onChange:e=>{i(e,"month")}}))),r.createElement(Ff,Object.assign({},u,{onModeChange:a})))};var Wf=n(4685);const Vf=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:a,lineWidth:l,lineType:c,colorPrimary:s,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:m}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:(0,he.zA)(r),borderRadius:o,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${(0,he.zA)(l)} ${c} ${s}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:s},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:f,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},qf=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:a,paddingSM:l,paddingXS:c,paddingXXS:s,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:m,colorTextHeading:g,colorSplit:h,pickerControlIconBorderWidth:v,colorIcon:b,textHeight:y,motionDurationMid:C,colorIconHover:x,fontWeightStrong:w,cellHeight:A,pickerCellPaddingVertical:S,colorTextDisabled:$,colorText:k,fontSize:E,motionDurationSlow:O,withoutTimeCellHeight:I,pickerQuarterPanelContentHeight:M,borderRadiusSM:N,colorTextLightSolid:z,cellHoverBg:P,timeColumnHeight:j,timeColumnWidth:R,timeCellHeight:T,controlItemBgActive:D,marginXXS:B,pickerDatePanelPaddingHorizontal:L,pickerControlIconMargin:H}=e,F=e.calc(a).mul(7).add(e.calc(L).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:F},"&-header":{display:"flex",padding:`0 ${(0,he.zA)(c)}`,color:g,borderBottom:`${(0,he.zA)(d)} ${f} ${h}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:(0,he.zA)(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${C}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"},"> button":{minWidth:"1.6em",fontSize:E,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:w,lineHeight:(0,he.zA)(y),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${(0,he.zA)(v)} 0`,borderInlineWidth:`${(0,he.zA)(v)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:H,insetInlineStart:H,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${(0,he.zA)(v)} 0`,borderInlineWidth:`${(0,he.zA)(v)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:A,fontWeight:"normal"},th:{height:e.calc(A).add(e.calc(S).mul(2)).equal(),color:k,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${(0,he.zA)(S)} 0`,color:$,cursor:"pointer","&-in-view":{color:k}},Vf(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(I).mul(4).equal()},[r]:{padding:`0 ${(0,he.zA)(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:M}},"&-decade-panel":{[r]:{padding:`0 ${(0,he.zA)(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${(0,he.zA)(c)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${(0,he.zA)(c)} ${(0,he.zA)(L)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},\n &-selected ${r},\n ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${C}`},"&:first-child:before":{borderStartStartRadius:N,borderEndStartRadius:N},"&:last-child:before":{borderStartEndRadius:N,borderEndEndRadius:N}},"&:hover td:before":{background:P},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new Vr.q(z).setAlpha(.5).toHexString()},[r]:{color:z}}},"&-range-hover td:before":{background:D}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${(0,he.zA)(c)} ${(0,he.zA)(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${(0,he.zA)(d)} ${f} ${h}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${O}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:j},"&-column":{flex:"1 0 auto",width:R,margin:`${(0,he.zA)(s)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${C}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${(0,he.zA)(T)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${(0,he.zA)(d)} ${f} ${h}`},"&-active":{background:new Vr.q(D).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:B,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(R).sub(e.calc(B).mul(2)).equal(),height:T,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(R).sub(T).div(2).equal(),color:k,lineHeight:(0,he.zA)(T),borderRadius:N,cursor:"pointer",transition:`background ${C}`,"&:hover":{background:P}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:D}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:$,background:"transparent",cursor:"not-allowed"}}}}}}}}},Kf=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:i,colorPrimary:a,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:s,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${(0,he.zA)(r)} ${s} ${u}`,"&-extra":{padding:`0 ${(0,he.zA)(o)}`,lineHeight:(0,he.zA)(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${(0,he.zA)(r)} ${s} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:(0,he.zA)(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:(0,he.zA)(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:l,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}};var Xf=n(4335);const Gf=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}},Yf=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:i,lineWidth:a}=e,l=2*i,c=2*a,s=Math.min(n-l,n-c),u=Math.min(r-l,r-c),d=Math.min(o-l,o-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Vr.q(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Vr.q(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*o,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*r,cellHeight:r,textHeight:o,withoutTimeCellHeight:1.65*o,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:s,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},Uf=e=>{const{calendarCls:t,componentCls:n,fullBg:r,fullPanelBg:o,itemActiveBg:i}=e;return{[t]:Object.assign(Object.assign(Object.assign({},qf(e)),(0,ve.dF)(e)),{background:r,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${(0,he.zA)(e.paddingSM)} 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${n}-panel`]:{background:o,border:0,borderTop:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${(0,he.zA)(e.paddingXS)} 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${(0,he.zA)(e.borderRadiusLG)} ${(0,he.zA)(e.borderRadiusLG)}`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:(0,he.zA)(e.weekHeight)}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:r,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:(0,he.zA)(e.weekHeight)}}},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:i}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${(0,he.zA)(e.calc(e.marginXS).div(2).equal())}`,padding:`${(0,he.zA)(e.calc(e.paddingXS).div(2).equal())} ${(0,he.zA)(e.paddingXS)} 0`,border:0,borderTop:`${(0,he.zA)(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:(0,he.zA)(e.dateValueHeight),transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${(0,he.zA)(e.screenXS)}) `]:{[t]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${(0,he.zA)(e.paddingXS)})`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},Qf=(0,J.OF)("Calendar",(e=>{const t=`${e.componentCls}-calendar`,n=(0,Ue.oX)(e,Gf(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,dateValueHeight:e.controlHeightSM,weekHeight:e.calc(e.controlHeightSM).mul(.75).equal(),dateContentHeight:e.calc(e.calc(e.fontHeightSM).add(e.marginXS)).mul(3).add(e.calc(e.lineWidth).mul(2)).equal()});return[Uf(n)]}),(e=>Object.assign({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256},Yf(e)))),Zf=(e,t,n)=>{const{getYear:r}=n;return e&&t&&r(e)===r(t)},Jf=(e,t,n)=>{const{getMonth:r}=n;return Zf(e,t,n)&&r(e)===r(t)},ep=(e,t,n)=>{const{getDate:r}=n;return Jf(e,t,n)&&r(e)===r(t)},tp=e=>t=>{const{prefixCls:n,className:o,rootClassName:a,style:l,dateFullCellRender:c,dateCellRender:s,monthFullCellRender:u,monthCellRender:d,cellRender:f,fullCellRender:p,headerRender:m,value:g,defaultValue:h,disabledDate:v,mode:b,validRange:y,fullscreen:C=!0,onChange:x,onPanelChange:w,onSelect:A}=t,{getPrefixCls:S,direction:$,calendar:k}=r.useContext(Z.ConfigContext),E=S("picker",n),O=`${E}-calendar`,[I,M,N]=Qf(E,O),z=e.getNow();const[P,j]=(0,yt.A)((()=>g||e.getNow()),{defaultValue:h,value:g}),[R,T]=(0,yt.A)("month",{value:b}),D=r.useMemo((()=>"year"===R?"month":"date"),[R]),B=r.useCallback((t=>!!y&&(e.isAfter(y[0],t)||e.isAfter(t,y[1]))||!!(null==v?void 0:v(t))),[v,y]),L=(e,t)=>{null==w||w(e,t)},H=e=>{T(e),L(P,e)},F=(t,n)=>{(t=>{j(t),ep(t,P,e)||(("date"===D&&!Jf(t,P,e)||"month"===D&&!Zf(t,P,e))&&L(t,R),null==x||x(t))})(t),null==A||A(t,{source:n})},_=r.useCallback(((t,n)=>p?p(t,n):c?c(t):r.createElement("div",{className:i()(`${E}-cell-inner`,`${O}-date`,{[`${O}-date-today`]:ep(z,t,e)})},r.createElement("div",{className:`${O}-date-value`},String(e.getDate(t)).padStart(2,"0")),r.createElement("div",{className:`${O}-date-content`},f?f(t,n):null==s?void 0:s(t)))),[c,s,f,p]),W=r.useCallback(((t,n)=>{if(p)return p(t,n);if(u)return u(t);const o=n.locale.shortMonths||e.locale.getShortMonths(n.locale.locale);return r.createElement("div",{className:i()(`${E}-cell-inner`,`${O}-date`,{[`${O}-date-today`]:Jf(z,t,e)})},r.createElement("div",{className:`${O}-date-value`},o[e.getMonth(t)]),r.createElement("div",{className:`${O}-date-content`},f?f(t,n):null==d?void 0:d(t)))}),[u,d,f,p]),[V]=(0,Wr.A)("Calendar",Wf.A),q=Object.assign(Object.assign({},V),t.locale);return I(r.createElement("div",{className:i()(O,{[`${O}-full`]:C,[`${O}-mini`]:!C,[`${O}-rtl`]:"rtl"===$},null==k?void 0:k.className,o,a,M,N),style:Object.assign(Object.assign({},null==k?void 0:k.style),l)},m?m({value:P,type:R,onChange:e=>{F(e,"customize")},onTypeChange:H}):r.createElement(_f,{prefixCls:O,value:P,generateConfig:e,mode:R,fullscreen:C,locale:null==q?void 0:q.lang,validRange:y,onChange:F,onModeChange:H}),r.createElement(Bd,{value:P,prefixCls:E,locale:null==q?void 0:q.lang,generateConfig:e,cellRender:(e,t)=>"date"===t.type?_(e,t):"month"===t.type?W(e,Object.assign(Object.assign({},t),{locale:null==q?void 0:q.lang})):void 0,onSelect:e=>{F(e,D)},mode:D,picker:D,disabledDate:B,hideHeader:!0})))},np=tp(hu);np.generateCalendar=tp;const rp=np;var op=n(7072);const ip={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"};var ap=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:ip}))};const lp=r.forwardRef(ap),cp=(0,r.createContext)(null);const sp=function(e){var t=e.activeTabOffset,n=e.horizontal,o=e.rtl,i=e.indicator,a=void 0===i?{}:i,l=a.size,c=a.align,s=void 0===c?"center":c,u=(0,r.useState)(),d=(0,vt.A)(u,2),f=d[0],p=d[1],m=(0,r.useRef)(),g=r.useCallback((function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e}),[l]);function h(){U.A.cancel(m.current)}return(0,r.useEffect)((function(){var e={};if(t)if(n){e.width=g(t.width);var r=o?"right":"left";"start"===s&&(e[r]=t[r]),"center"===s&&(e[r]=t[r]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[r]=t[r]+t.width,e.transform="translateX(-100%)")}else e.height=g(t.height),"start"===s&&(e.top=t.top),"center"===s&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return h(),m.current=(0,U.A)((function(){p(e)})),h}),[t,n,o,s,g]),{style:f}};var up={width:0,height:0,left:0,top:0};function dp(e,t){var n=r.useRef(e),o=r.useState({}),i=(0,vt.A)(o,2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,i({})}]}var fp=Math.pow(.995,20);function pp(e){var t=(0,r.useState)(0),n=(0,vt.A)(t,2),o=n[0],i=n[1],a=(0,r.useRef)(0),l=(0,r.useRef)();return l.current=e,(0,Ct.o)((function(){var e;null===(e=l.current)||void 0===e||e.call(l)}),[o]),function(){a.current===o&&(a.current+=1,i(a.current))}}var mp={width:0,height:0,left:0,top:0,right:0};function gp(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function hp(e){return String(e).replace(/"/g,"TABS_DQ")}function vp(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var bp=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}));const yp=bp;var Cp=r.forwardRef((function(e,t){var n,o=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==(0,u.A)(a)||r.isValidElement(a)?l.right=a:l=a,"right"===o&&(n=l.right),"left"===o&&(n=l.left),n?r.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null}));const xp=Cp;var wp=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.id,l=e.tabs,c=e.locale,s=e.mobile,u=e.more,d=void 0===u?{}:u,f=e.style,p=e.className,m=e.editable,g=e.tabBarGutter,h=e.rtl,v=e.removeAriaLabel,b=e.onTabClick,y=e.getPopupContainer,C=e.popupClassName,x=(0,r.useState)(!1),w=(0,vt.A)(x,2),A=w[0],S=w[1],$=(0,r.useState)(null),k=(0,vt.A)($,2),E=k[0],O=k[1],I=d.icon,M=void 0===I?"More":I,N="".concat(o,"-more-popup"),z="".concat(n,"-dropdown"),P=null!==E?"".concat(N,"-").concat(E):null,j=null==c?void 0:c.dropdownAriaLabel;var R=r.createElement(zc,{onClick:function(e){var t=e.key,n=e.domEvent;b(t,n),S(!1)},prefixCls:"".concat(z,"-menu"),id:N,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[E],"aria-label":void 0!==j?j:"expanded dropdown"},l.map((function(e){var t=e.closable,n=e.disabled,i=e.closeIcon,a=e.key,l=e.label,c=vp(t,i,m,n);return r.createElement(oc,{key:a,id:"".concat(N,"-").concat(a),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(a),disabled:n},r.createElement("span",null,l),c&&r.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(z,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:t,event:e})}(e,a)}},i||m.removeIcon||"×"))})));function T(e){for(var t=l.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===E}))||0,r=t.length,o=0;ot?"left":"right"})})),j=(0,vt.A)(P,2),R=j[0],T=j[1],D=dp(0,(function(e,t){!z&&C&&C({direction:e>t?"top":"bottom"})})),B=(0,vt.A)(D,2),L=B[0],H=B[1],F=(0,r.useState)([0,0]),_=(0,vt.A)(F,2),W=_[0],V=_[1],q=(0,r.useState)([0,0]),K=(0,vt.A)(q,2),G=K[0],U=K[1],Q=(0,r.useState)([0,0]),Z=(0,vt.A)(Q,2),J=Z[0],ee=Z[1],te=(0,r.useState)([0,0]),ne=(0,vt.A)(te,2),re=ne[0],oe=ne[1],ie=function(e){var t=(0,r.useRef)([]),n=(0,r.useState)({}),o=(0,vt.A)(n,2)[1],i=(0,r.useRef)("function"==typeof e?e():e),a=pp((function(){var e=i.current;t.current.forEach((function(t){e=t(e)})),t.current=[],i.current=e,o({})}));return[i.current,function(e){t.current.push(e),a()}]}(new Map),ae=(0,vt.A)(ie,2),le=ae[0],ce=ae[1],se=function(e,t,n){return(0,r.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||up,i=o.left+o.width,a=0;abe?be:e}z&&d?(ve=0,be=Math.max(0,de-ge)):(ve=Math.min(0,ge-de),be=0);var Ce=(0,r.useRef)(null),xe=(0,r.useState)(),we=(0,vt.A)(xe,2),Ae=we[0],Se=we[1];function $e(){Se(Date.now())}function ke(){Ce.current&&clearTimeout(Ce.current)}!function(e,t){var n=(0,r.useState)(),o=(0,vt.A)(n,2),i=o[0],a=o[1],l=(0,r.useState)(0),c=(0,vt.A)(l,2),s=c[0],u=c[1],d=(0,r.useState)(0),f=(0,vt.A)(d,2),p=f[0],m=f[1],g=(0,r.useState)(),h=(0,vt.A)(g,2),v=h[0],b=h[1],y=(0,r.useRef)(),C=(0,r.useRef)(),x=(0,r.useRef)(null);x.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;a({x:n,y:r}),window.clearInterval(y.current)},onTouchMove:function(e){if(i){var n=e.touches[0],r=n.screenX,o=n.screenY;a({x:r,y:o});var l=r-i.x,c=o-i.y;t(l,c);var d=Date.now();u(d),m(d-s),b({x:l,y:c})}},onTouchEnd:function(){if(i&&(a(null),b(null),v)){var e=v.x/p,n=v.y/p,r=Math.abs(e),o=Math.abs(n);if(Math.max(r,o)<.1)return;var l=e,c=n;y.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(y.current):t(20*(l*=fp),20*(c*=fp))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===C.current?n:r:i>a?(o=n,C.current="x"):(o=r,C.current="y"),t(-o,-o)&&e.preventDefault()}},r.useEffect((function(){function t(e){x.current.onTouchMove(e)}function n(e){x.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",(function(e){x.current.onTouchStart(e)}),{passive:!0}),e.current.addEventListener("wheel",(function(e){x.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(O,(function(e,t){function n(e,t){e((function(e){return ye(e+t)}))}return!!me&&(z?n(T,e):n(H,t),ke(),$e(),!0)})),(0,r.useEffect)((function(){return ke(),Ae&&(Ce.current=setTimeout((function(){Se(0)}),100)),ke}),[Ae]);var Ee=function(e,t,n,o,i,a,l){var c,s,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(c="width",s=p?"right":"left",u=Math.abs(n)):(c="height",s="top",u=-n),(0,r.useMemo)((function(){if(!d.length)return[0,0];for(var n=d.length,r=n,o=0;oMath.floor(u+t)){r=o-1;break}}for(var a=0,l=n-1;l>=0;l-=1)if((e.get(d[l].key)||mp)[s]=r?[0,0]:[a,r]}),[e,t,o,i,a,u,f,d.map((function(e){return e.key})).join("_"),p])}(se,ge,z?R:L,de,fe,pe,(0,s.A)((0,s.A)({},e),{},{tabs:S})),Oe=(0,vt.A)(Ee,2),Ie=Oe[0],Me=Oe[1],Ne=(0,Te.A)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=se.get(e)||{width:0,height:0,left:0,right:0,top:0};if(z){var n=R;d?t.rightR+ge&&(n=t.right+t.width-ge):t.left<-R?n=-t.left:t.left+t.width>-R+ge&&(n=-(t.left+t.width-ge)),H(0),T(ye(n))}else{var r=L;t.top<-L?r=-t.top:t.top+t.height>-L+ge&&(r=-(t.top+t.height-ge)),T(0),H(ye(r))}})),ze={};"top"===h||"bottom"===h?ze[d?"marginRight":"marginLeft"]=v:ze.marginTop=v;var Pe=S.map((function(e,t){var n=e.key;return r.createElement(Sp,{id:l,prefixCls:A,key:n,tab:e,style:0===t?void 0:ze,closable:e.closable,editable:m,active:n===u,renderWrapper:b,removeAriaLabel:null==g?void 0:g.removeAriaLabel,onClick:function(e){y(n,e)},onFocus:function(){Ne(n),$e(),O.current&&(d||(O.current.scrollLeft=0),O.current.scrollTop=0)}})})),je=function(){return ce((function(){var e,t=new Map,n=null===(e=I.current)||void 0===e?void 0:e.getBoundingClientRect();return S.forEach((function(e){var r,o=e.key,i=null===(r=I.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(hp(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.left,u=a.top;return Math.abs(l-n)<1?[l,c,s-t.left,u-t.top]:[n,r,i,o]}(i,n),l=(0,vt.A)(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(o,{width:c,height:s,left:u,top:d})}})),t}))};(0,r.useEffect)((function(){je()}),[S.map((function(e){return e.key})).join("_")]);var Re=pp((function(){var e=$p($),t=$p(k),n=$p(E);V([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=$p(N);ee(r);var o=$p(M);oe(o);var i=$p(I);U([i[0]-r[0],i[1]-r[1]]),je()})),De=S.slice(0,Ie),Be=S.slice(Me+1),Le=[].concat((0,Y.A)(De),(0,Y.A)(Be)),He=se.get(u),Fe=sp({activeTabOffset:He,horizontal:z,indicator:x,rtl:d}).style;(0,r.useEffect)((function(){Ne()}),[u,ve,be,gp(He),gp(se),z]),(0,r.useEffect)((function(){Re()}),[d]);var _e,We,Ve,qe,Ke=!!Le.length,Xe="".concat(A,"-nav-wrap");return z?d?(We=R>0,_e=R!==be):(_e=R<0,We=R!==ve):(Ve=L<0,qe=L!==ve),r.createElement(X,{onResize:Re},r.createElement("div",{ref:(0,f.xK)(t,$),role:"tablist",className:i()("".concat(A,"-nav"),n),style:o,onKeyDown:function(){$e()}},r.createElement(xp,{ref:k,position:"left",extra:p,prefixCls:A}),r.createElement(X,{onResize:Re},r.createElement("div",{className:i()(Xe,(0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)({},"".concat(Xe,"-ping-left"),_e),"".concat(Xe,"-ping-right"),We),"".concat(Xe,"-ping-top"),Ve),"".concat(Xe,"-ping-bottom"),qe)),ref:O},r.createElement(X,{onResize:Re},r.createElement("div",{ref:I,className:"".concat(A,"-nav-list"),style:{transform:"translate(".concat(R,"px, ").concat(L,"px)"),transition:Ae?"none":void 0}},Pe,r.createElement(yp,{ref:N,prefixCls:A,locale:g,editable:m,style:(0,s.A)((0,s.A)({},0===Pe.length?void 0:ze),{},{visibility:Ke?"hidden":null})}),r.createElement("div",{className:i()("".concat(A,"-ink-bar"),(0,ht.A)({},"".concat(A,"-ink-bar-animated"),c.inkBar)),style:Fe}))))),r.createElement(Ap,(0,a.A)({},e,{removeAriaLabel:null==g?void 0:g.removeAriaLabel,ref:M,prefixCls:A,tabs:Le,className:!Ke&&he,tabMoving:!!Ae})),r.createElement(xp,{ref:E,position:"right",extra:p,prefixCls:A})))}));const Op=Ep;var Ip=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,a=e.style,l=e.id,c=e.active,s=e.tabKey,u=e.children;return r.createElement("div",{id:l&&"".concat(l,"-panel-").concat(s),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(s),"aria-hidden":!c,style:a,className:i()(n,c&&"".concat(n,"-active"),o),ref:t},u)}));const Mp=Ip;var Np=["renderTabBar"],zp=["label","key"];const Pp=function(e){var t=e.renderTabBar,n=(0,bt.A)(e,Np),o=r.useContext(cp).tabs;return t?t((0,s.A)((0,s.A)({},n),{},{panes:o.map((function(e){var t=e.label,n=e.key,o=(0,bt.A)(e,zp);return r.createElement(Mp,(0,a.A)({tab:t,key:n,tabKey:n},o))}))}),Op):r.createElement(Op,n)};var jp=["key","forceRender","style","className","destroyInactiveTabPane"];const Rp=function(e){var t=e.id,n=e.activeKey,o=e.animated,l=e.tabPosition,c=e.destroyInactiveTabPane,u=r.useContext(cp),d=u.prefixCls,f=u.tabs,p=o.tabPane,m="".concat(d,"-tabpane");return r.createElement("div",{className:i()("".concat(d,"-content-holder"))},r.createElement("div",{className:i()("".concat(d,"-content"),"".concat(d,"-content-").concat(l),(0,ht.A)({},"".concat(d,"-content-animated"),p))},f.map((function(e){var l=e.key,u=e.forceRender,d=e.style,f=e.className,g=e.destroyInactiveTabPane,h=(0,bt.A)(e,jp),v=l===n;return r.createElement(pe.Ay,(0,a.A)({key:l,visible:v,forceRender:u,removeOnLeave:!(!c&&!g),leavedClassName:"".concat(m,"-hidden")},o.tabPaneMotion),(function(e,n){var o=e.style,c=e.className;return r.createElement(Mp,(0,a.A)({},h,{prefixCls:m,id:t,tabKey:l,animated:p,active:v,style:(0,s.A)((0,s.A)({},d),o),className:i()(f,c),ref:n}))}))}))))};var Tp=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Dp=0,Bp=r.forwardRef((function(e,t){var n=e.id,o=e.prefixCls,l=void 0===o?"rc-tabs":o,c=e.className,d=e.items,f=e.direction,p=e.activeKey,m=e.defaultActiveKey,g=e.editable,h=e.animated,v=e.tabPosition,b=void 0===v?"top":v,y=e.tabBarGutter,C=e.tabBarStyle,x=e.tabBarExtraContent,w=e.locale,A=e.more,S=e.destroyInactiveTabPane,$=e.renderTabBar,k=e.onChange,E=e.onTabClick,O=e.onTabScroll,I=e.getPopupContainer,M=e.popupClassName,N=e.indicator,z=(0,bt.A)(e,Tp),P=r.useMemo((function(){return(d||[]).filter((function(e){return e&&"object"===(0,u.A)(e)&&"key"in e}))}),[d]),j="rtl"===f,R=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,s.A)({inkBar:!0},"object"===(0,u.A)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(h),T=(0,r.useState)(!1),D=(0,vt.A)(T,2),B=D[0],L=D[1];(0,r.useEffect)((function(){L(xt())}),[]);var H=(0,yt.A)((function(){var e;return null===(e=P[0])||void 0===e?void 0:e.key}),{value:p,defaultValue:m}),F=(0,vt.A)(H,2),_=F[0],W=F[1],V=(0,r.useState)((function(){return P.findIndex((function(e){return e.key===_}))})),q=(0,vt.A)(V,2),K=q[0],X=q[1];(0,r.useEffect)((function(){var e,t=P.findIndex((function(e){return e.key===_}));-1===t&&(t=Math.max(0,Math.min(K,P.length-1)),W(null===(e=P[t])||void 0===e?void 0:e.key));X(t)}),[P.map((function(e){return e.key})).join("_"),_,K]);var G=(0,yt.A)(null,{value:n}),Y=(0,vt.A)(G,2),U=Y[0],Q=Y[1];(0,r.useEffect)((function(){n||(Q("rc-tabs-".concat(Dp)),Dp+=1)}),[]);var Z={id:U,activeKey:_,animated:R,tabPosition:b,rtl:j,mobile:B},J=(0,s.A)((0,s.A)({},Z),{},{editable:g,locale:w,more:A,tabBarGutter:y,onTabClick:function(e,t){null==E||E(e,t);var n=e!==_;W(e),n&&(null==k||k(e))},onTabScroll:O,extra:x,style:C,panes:null,getPopupContainer:I,popupClassName:M,indicator:N});return r.createElement(cp.Provider,{value:{tabs:P,prefixCls:l}},r.createElement("div",(0,a.A)({ref:t,id:n,className:i()(l,"".concat(l,"-").concat(b),(0,ht.A)((0,ht.A)((0,ht.A)({},"".concat(l,"-mobile"),B),"".concat(l,"-editable"),g),"".concat(l,"-rtl"),j),c)},z),r.createElement(Pp,(0,a.A)({},J,{renderTabBar:$})),r.createElement(Rp,(0,a.A)({destroyInactiveTabPane:S},Z,{animated:R}))))}));const Lp=Bp,Hp={motionAppear:!1,motionEnter:!0,motionLeave:!0};var Fp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Co(e,"slide-up"),Co(e,"slide-down")]]},Wp=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,he.zA)(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,he.zA)(e.borderRadiusLG)} ${(0,he.zA)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,he.zA)(e.borderRadiusLG)} ${(0,he.zA)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,he.zA)(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,he.zA)(e.borderRadiusLG)} 0 0 ${(0,he.zA)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,he.zA)(e.borderRadiusLG)} ${(0,he.zA)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Vp=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,he.zA)(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ve.L9),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,he.zA)(e.paddingXXS)} ${(0,he.zA)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},qp=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,he.zA)(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Kp=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,he.zA)(e.borderRadius)} ${(0,he.zA)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,he.zA)(e.borderRadius)} ${(0,he.zA)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,he.zA)(e.borderRadius)} ${(0,he.zA)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,he.zA)(e.borderRadius)} 0 0 ${(0,he.zA)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Xp=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},(0,ve.K8)(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},Gp=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,he.zA)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,he.zA)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,he.zA)(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Yp=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ve.dF)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${(0,he.zA)(e.paddingXS)}`,background:"transparent",border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${(0,he.zA)(e.borderRadiusLG)} ${(0,he.zA)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},(0,ve.K8)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Xp(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},Up=(0,J.OF)("Tabs",(e=>{const t=(0,Ue.oX)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,he.zA)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,he.zA)(e.horizontalItemGutter)}`});return[Kp(t),Gp(t),qp(t),Vp(t),Wp(t),Yp(t),_p(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));var Qp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t,n,o,a,c,s,u,d,f,p,m;const{type:g,className:h,rootClassName:v,size:b,onEdit:y,hideAdd:C,centered:x,addIcon:w,removeIcon:A,moreIcon:S,more:$,popupClassName:k,children:E,items:O,animated:I,style:M,indicatorSize:N,indicator:z}=e,P=Qp(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:j}=P,{direction:R,tabs:T,getPrefixCls:D,getPopupContainer:B}=r.useContext(Z.ConfigContext),L=D("tabs",j),H=(0,Xe.A)(L),[F,_,W]=Up(L,H);let V;"editable-card"===g&&(V={onEdit:(e,t)=>{let{key:n,event:r}=t;null==y||y("add"===e?r:n,e)},removeIcon:null!==(t=null!=A?A:null==T?void 0:T.removeIcon)&&void 0!==t?t:r.createElement(ue.A,null),addIcon:(null!=w?w:null==T?void 0:T.addIcon)||r.createElement(lp,null),showAdd:!0!==C});const q=D();const K=(0,ro.A)(b),X=function(e,t){return e||function(e){return e.filter((e=>e))}((0,l.A)(t).map((e=>{if(r.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=Fp(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null})))}(O,E),G=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},Hp),{motionName:(0,Hr.b)(e,"switch")})),t}(L,I),Y=Object.assign(Object.assign({},null==T?void 0:T.style),M),U={align:null!==(n=null==z?void 0:z.align)&&void 0!==n?n:null===(o=null==T?void 0:T.indicator)||void 0===o?void 0:o.align,size:null!==(u=null!==(c=null!==(a=null==z?void 0:z.size)&&void 0!==a?a:N)&&void 0!==c?c:null===(s=null==T?void 0:T.indicator)||void 0===s?void 0:s.size)&&void 0!==u?u:null==T?void 0:T.indicatorSize};return F(r.createElement(Lp,Object.assign({direction:R,getPopupContainer:B},P,{items:X,className:i()({[`${L}-${K}`]:K,[`${L}-card`]:["card","editable-card"].includes(g),[`${L}-editable-card`]:"editable-card"===g,[`${L}-centered`]:x},null==T?void 0:T.className,h,v,_,W,H),popupClassName:i()(k,_,W,H),style:Y,editable:V,more:Object.assign({icon:null!==(m=null!==(p=null!==(f=null===(d=null==T?void 0:T.more)||void 0===d?void 0:d.icon)&&void 0!==f?f:null==T?void 0:T.moreIcon)&&void 0!==p?p:S)&&void 0!==m?m:r.createElement(ts,null),transitionName:`${q}-slide-up`},$),prefixCls:L,animated:G,indicator:U})))};Zp.TabPane=()=>null;const Jp=Zp;var em=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,hoverable:o=!0}=e,a=em(e,["prefixCls","className","hoverable"]);const{getPrefixCls:l}=r.useContext(Z.ConfigContext),c=l("card",t),s=i()(`${c}-grid`,n,{[`${c}-grid-hoverable`]:o});return r.createElement("div",Object.assign({},a,{className:s}))},nm=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${(0,he.zA)(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,he.zA)(e.borderRadiusLG)} ${(0,he.zA)(e.borderRadiusLG)} 0 0`},(0,ve.t6)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ve.L9),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},rm=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${(0,he.zA)(o)} 0 0 0 ${n},\n 0 ${(0,he.zA)(o)} 0 0 ${n},\n ${(0,he.zA)(o)} ${(0,he.zA)(o)} 0 0 ${n},\n ${(0,he.zA)(o)} 0 0 0 ${n} inset,\n 0 ${(0,he.zA)(o)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},om=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${(0,he.zA)(e.borderRadiusLG)} ${(0,he.zA)(e.borderRadiusLG)}`},(0,ve.t6)()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,he.zA)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:(0,he.zA)(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${i}`}}})},im=e=>Object.assign(Object.assign({margin:`${(0,he.zA)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,ve.t6)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},ve.L9),"&-description":{color:e.colorTextDescription}}),am=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${(0,he.zA)(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${(0,he.zA)(e.padding)} ${(0,he.zA)(n)}`}}},lm=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},cm=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,cardPaddingBase:a,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:nm(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${(0,he.zA)(e.borderRadiusLG)} ${(0,he.zA)(e.borderRadiusLG)}`},(0,ve.t6)()),[`${t}-grid`]:rm(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${(0,he.zA)(e.borderRadiusLG)} ${(0,he.zA)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:om(e),[`${t}-meta`]:im(e)}),[`${t}-bordered`]:{border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${(0,he.zA)(e.borderRadiusLG)} ${(0,he.zA)(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:am(e),[`${t}-loading`]:lm(e),[`${t}-rtl`]:{direction:"rtl"}}},sm=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${(0,he.zA)(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},um=(0,J.OF)("Card",(e=>{const t=(0,Ue.oX)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[cm(t),sm(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText})));var dm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{actionClasses:t,actions:n=[],actionStyle:o}=e;return r.createElement("ul",{className:t,style:o},n.map(((e,t)=>{const o=`action-${t}`;return r.createElement("li",{style:{width:100/n.length+"%"},key:o},r.createElement("span",null,e))})))},pm=r.forwardRef(((e,t)=>{const{prefixCls:n,className:o,rootClassName:a,style:l,extra:c,headStyle:s={},bodyStyle:u={},title:d,loading:f,bordered:p=!0,size:m,type:g,cover:h,actions:v,tabList:b,children:y,activeTabKey:C,defaultActiveTabKey:x,tabBarExtraContent:w,hoverable:A,tabProps:S={},classNames:$,styles:k}=e,E=dm(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:O,direction:I,card:M}=r.useContext(Z.ConfigContext);const N=e=>{var t;return i()(null===(t=null==M?void 0:M.classNames)||void 0===t?void 0:t[e],null==$?void 0:$[e])},z=e=>{var t;return Object.assign(Object.assign({},null===(t=null==M?void 0:M.styles)||void 0===t?void 0:t[e]),null==k?void 0:k[e])},P=r.useMemo((()=>{let e=!1;return r.Children.forEach(y,(t=>{(null==t?void 0:t.type)===tm&&(e=!0)})),e}),[y]),j=O("card",n),[R,T,D]=um(j),B=r.createElement(op.A,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),L=void 0!==C,H=Object.assign(Object.assign({},S),{[L?"activeKey":"defaultActiveKey"]:L?C:x,tabBarExtraContent:w});let F;const _=(0,ro.A)(m),W=_&&"default"!==_?_:"large",V=b?r.createElement(Jp,Object.assign({size:W},H,{className:`${j}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:b.map((e=>{var{tab:t}=e,n=dm(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(d||c||V){const e=i()(`${j}-head`,N("header")),t=i()(`${j}-head-title`,N("title")),n=i()(`${j}-extra`,N("extra")),o=Object.assign(Object.assign({},s),z("header"));F=r.createElement("div",{className:e,style:o},r.createElement("div",{className:`${j}-head-wrapper`},d&&r.createElement("div",{className:t,style:z("title")},d),c&&r.createElement("div",{className:n,style:z("extra")},c)),V)}const q=i()(`${j}-cover`,N("cover")),K=h?r.createElement("div",{className:q,style:z("cover")},h):null,X=i()(`${j}-body`,N("body")),Y=Object.assign(Object.assign({},u),z("body")),U=r.createElement("div",{className:X,style:Y},f?B:y),Q=i()(`${j}-actions`,N("actions")),J=(null==v?void 0:v.length)?r.createElement(fm,{actionClasses:Q,actionStyle:z("actions"),actions:v}):null,ee=(0,G.A)(E,["onTabChange"]),te=i()(j,null==M?void 0:M.className,{[`${j}-loading`]:f,[`${j}-bordered`]:p,[`${j}-hoverable`]:A,[`${j}-contain-grid`]:P,[`${j}-contain-tabs`]:null==b?void 0:b.length,[`${j}-${_}`]:_,[`${j}-type-${g}`]:!!g,[`${j}-rtl`]:"rtl"===I},o,a,T,D),ne=Object.assign(Object.assign({},null==M?void 0:M.style),l);return R(r.createElement("div",Object.assign({ref:t},ee,{className:te,style:ne}),F,K,U,J))}));var mm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,avatar:o,title:a,description:l}=e,c=mm(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=r.useContext(Z.ConfigContext),u=s("card",t),d=i()(`${u}-meta`,n),f=o?r.createElement("div",{className:`${u}-meta-avatar`},o):null,p=a?r.createElement("div",{className:`${u}-meta-title`},a):null,m=l?r.createElement("div",{className:`${u}-meta-description`},l):null,g=p||m?r.createElement("div",{className:`${u}-meta-detail`},p,m):null;return r.createElement("div",Object.assign({},c,{className:d}),f,g)},hm=pm;hm.Grid=tm,hm.Meta=gm;const vm=hm;const bm={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};function ym(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,l=o.noLeading,c=void 0!==l&&l,s=o.debounceMode,u=void 0===s?void 0:s,d=!1,f=0;function p(){r&&clearTimeout(r)}function m(){for(var n=arguments.length,o=new Array(n),i=0;ie?c?(f=Date.now(),a||(r=setTimeout(u?g:m,e))):m():!0!==a&&(r=setTimeout(u?g:m,void 0===u?e-s:e)))}return m.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},m}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}const Cm={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return r.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return r.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null};function xm(e,t,n){return Math.max(t,Math.min(e,n))}var wm=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},Am=function(e){for(var t=[],n=Sm(e),r=$m(e),o=n;o0?1:0):0},Em=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},Om=function(e){return e&&e.offsetWidth||0},Im=function(e){return e&&e.offsetHeight||0},Mm=function(e){var t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(o=Math.round(180*r/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":!0===i?o>=35&&o<=135?"up":"down":"vertical"},Nm=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},zm=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},Pm=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,o=[];nn[n.length-1])t=n[n.length-1];else for(var o in n){if(t-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+Om(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},Rm=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},Tm=function(e){var t,n;(Rm(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]),e.vertical)?n=(e.unslick?e.slideCount:e.slideCount+2*e.slidesToShow)*e.slideHeight:t=Fm(e)*e.slideWidth;var r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=(0,s.A)((0,s.A)({},r),{},{WebkitTransform:o,transform:i,msTransform:a})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t),n&&(r.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},Dm=function(e){Rm(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=Tm(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},Bm=function(e){if(e.unslick)return 0;Rm(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,o=e.trackRef,i=e.infinite,a=e.centerMode,l=e.slideCount,c=e.slidesToShow,s=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,f=e.variableWidth,p=e.slideHeight,m=e.fade,g=e.vertical;if(m||1===e.slideCount)return 0;var h=0;if(i?(h=-Lm(e),l%s!=0&&r+s>l&&(h=-(r>l?c-(r-l):l%s)),a&&(h+=parseInt(c/2))):(l%s!=0&&r+s>l&&(h=c-l%s),a&&(h=parseInt(c/2))),t=g?r*p*-1+h*p:r*u*-1+h*u,!0===f){var v,b=o&&o.node;if(v=r+Lm(e),t=(n=b&&b.childNodes[v])?-1*n.offsetLeft:0,!0===a){v=i?r+Lm(e):r,n=b&&b.children[v],t=0;for(var y=0;ye.currentSlide?e.targetSlide>e.currentSlide+Wm(e)?"left":"right":e.targetSlide0&&(i+=1),r&&t%2==0&&(i+=1),i}return r?0:t-1},Vm=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r||t%2!=0||(i+=1),i}return r?t-1:0},qm=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},Km=Object.keys(Cm);var Xm=function(e){var t,n,r,o,i;return r=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount==0,i>e.currentSlide-o-1&&i<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=i&&i=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},Gm=function(e,t){return e.key+"-"+t},Ym=function(e){var t,n=[],o=[],a=[],l=r.Children.count(e.children),c=Sm(e),u=$m(e);return r.Children.forEach(e.children,(function(d,f){var p,m={message:"children",index:f,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};p=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(f)>=0?d:r.createElement("div",null);var g=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical&&e.slideHeight?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}((0,s.A)((0,s.A)({},e),{},{index:f})),h=p.props.className||"",v=Xm((0,s.A)((0,s.A)({},e),{},{index:f}));if(n.push(r.cloneElement(p,{key:"original"+Gm(p,f),"data-index":f,className:i()(v,h),tabIndex:"-1","aria-hidden":!v["slick-active"],style:(0,s.A)((0,s.A)({outline:"none"},p.props.style||{}),g),onClick:function(t){p.props&&p.props.onClick&&p.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(m)}})),e.infinite&&l>1&&!1===e.fade&&!e.unslick){var b=l-f;b<=Lm(e)&&((t=-b)>=c&&(p=d),v=Xm((0,s.A)((0,s.A)({},e),{},{index:t})),o.push(r.cloneElement(p,{key:"precloned"+Gm(p,t),"data-index":t,tabIndex:"-1",className:i()(v,h),"aria-hidden":!v["slick-active"],style:(0,s.A)((0,s.A)({},p.props.style||{}),g),onClick:function(t){p.props&&p.props.onClick&&p.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(m)}}))),(t=l+f)=C&&f<=b:f===C}),w={message:"dots",index:h,slidesToScroll:c,currentSlide:f},A=this.clickHandler.bind(this,w);g=g.concat(r.createElement("li",{key:h,className:x},r.cloneElement(this.props.customPaging(h),{onClick:A})))}return r.cloneElement(this.props.appendDots(g),(0,s.A)({className:this.props.dotsClass},m))}}])}(r.PureComponent);function Zm(e,t,n){return t=(0,Ie.A)(t),(0,Ne.A)(e,(0,Me.A)()?Reflect.construct(t,n||[],(0,Ie.A)(e).constructor):t.apply(e,n))}var Jm=function(e){function t(){return(0,B.A)(this,t),Zm(this,t,arguments)}return(0,H.A)(t,e),(0,L.A)(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:i()(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?r.cloneElement(this.props.prevArrow,(0,s.A)((0,s.A)({},n),o)):r.createElement("button",(0,a.A)({key:"0",type:"button"},n)," ","Previous")}}])}(r.PureComponent),eg=function(e){function t(){return(0,B.A)(this,t),Zm(this,t,arguments)}return(0,H.A)(t,e),(0,L.A)(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});Nm(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:i()(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?r.cloneElement(this.props.nextArrow,(0,s.A)((0,s.A)({},n),o)):r.createElement("button",(0,a.A)({key:"1",type:"button"},n)," ","Next")}}])}(r.PureComponent),tg=["animating"];var ng=function(e){function t(e){var n;(0,B.A)(this,t),n=function(e,t,n){return t=(0,Ie.A)(t),(0,Ne.A)(e,(0,Me.A)()?Reflect.construct(t,n||[],(0,Ie.A)(e).constructor):t.apply(e,n))}(this,t,[e]),(0,ht.A)(n,"listRefHandler",(function(e){return n.list=e})),(0,ht.A)(n,"trackRefHandler",(function(e){return n.track=e})),(0,ht.A)(n,"adaptHeight",(function(){if(n.props.adaptiveHeight&&n.list){var e=n.list.querySelector('[data-index="'.concat(n.state.currentSlide,'"]'));n.list.style.height=Im(e)+"px"}})),(0,ht.A)(n,"componentDidMount",(function(){if(n.props.onInit&&n.props.onInit(),n.props.lazyLoad){var e=Am((0,s.A)((0,s.A)({},n.props),n.state));e.length>0&&(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad&&n.props.onLazyLoad(e))}var t=(0,s.A)({listRef:n.list,trackRef:n.track},n.props);n.updateState(t,!0,(function(){n.adaptHeight(),n.props.autoplay&&n.autoPlay("playing")})),"progressive"===n.props.lazyLoad&&(n.lazyLoadTimer=setInterval(n.progressiveLazyLoad,1e3)),n.ro=new R((function(){n.state.animating?(n.onWindowResized(!1),n.callbackTimers.push(setTimeout((function(){return n.onWindowResized()}),n.props.speed))):n.onWindowResized()})),n.ro.observe(n.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=n.props.pauseOnFocus?n.onSlideFocus:null,e.onblur=n.props.pauseOnFocus?n.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",n.onWindowResized):window.attachEvent("onresize",n.onWindowResized)})),(0,ht.A)(n,"componentWillUnmount",(function(){n.animationEndCallback&&clearTimeout(n.animationEndCallback),n.lazyLoadTimer&&clearInterval(n.lazyLoadTimer),n.callbackTimers.length&&(n.callbackTimers.forEach((function(e){return clearTimeout(e)})),n.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",n.onWindowResized):window.detachEvent("onresize",n.onWindowResized),n.autoplayTimer&&clearInterval(n.autoplayTimer),n.ro.disconnect()})),(0,ht.A)(n,"componentDidUpdate",(function(e){if(n.checkImagesLoad(),n.props.onReInit&&n.props.onReInit(),n.props.lazyLoad){var t=Am((0,s.A)((0,s.A)({},n.props),n.state));t.length>0&&(n.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}})),n.props.onLazyLoad&&n.props.onLazyLoad(t))}n.adaptHeight();var o=(0,s.A)((0,s.A)({listRef:n.list,trackRef:n.track},n.props),n.state),i=n.didPropsChange(e);i&&n.updateState(o,i,(function(){n.state.currentSlide>=r.Children.count(n.props.children)&&n.changeSlide({message:"index",index:r.Children.count(n.props.children)-n.props.slidesToShow,currentSlide:n.state.currentSlide}),e.autoplay===n.props.autoplay&&e.autoplaySpeed===n.props.autoplaySpeed||(!e.autoplay&&n.props.autoplay?n.autoPlay("playing"):n.props.autoplay?n.autoPlay("update"):n.pause("paused"))}))})),(0,ht.A)(n,"onWindowResized",(function(e){n.debouncedResize&&n.debouncedResize.cancel(),n.debouncedResize=ym(50,(function(){return n.resizeWindow(e)})),n.debouncedResize()})),(0,ht.A)(n,"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(n.track&&n.track.node)){var t=(0,s.A)((0,s.A)({listRef:n.list,trackRef:n.track},n.props),n.state);n.updateState(t,e,(function(){n.props.autoplay?n.autoPlay("update"):n.pause("paused")})),n.setState({animating:!1}),clearTimeout(n.animationEndCallback),delete n.animationEndCallback}})),(0,ht.A)(n,"updateState",(function(e,t,o){var i=function(e){var t,n=r.Children.count(e.children),o=e.listRef,i=Math.ceil(Om(o)),a=e.trackRef&&e.trackRef.node,l=Math.ceil(Om(a));if(e.vertical)t=i;else{var c=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(c*=i/100),t=Math.ceil((i-c)/e.slidesToShow)}var u=o&&Im(o.querySelector('[data-index="0"]')),d=u*e.slidesToShow,f=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(f=n-1-e.initialSlide);var p=e.lazyLoadedList||[],m=Am((0,s.A)((0,s.A)({},e),{},{currentSlide:f,lazyLoadedList:p})),g={slideCount:n,slideWidth:t,listWidth:i,trackWidth:l,currentSlide:f,slideHeight:u,listHeight:d,lazyLoadedList:p=p.concat(m)};return null===e.autoplaying&&e.autoplay&&(g.autoplaying="playing"),g}(e);e=(0,s.A)((0,s.A)((0,s.A)({},e),i),{},{slideIndex:i.currentSlide});var a=Bm(e);e=(0,s.A)((0,s.A)({},e),{},{left:a});var l=Tm(e);(t||r.Children.count(n.props.children)!==r.Children.count(e.children))&&(i.trackStyle=l),n.setState(i,o)})),(0,ht.A)(n,"ssrInit",(function(){if(n.props.variableWidth){var e=0,t=0,o=[],i=Lm((0,s.A)((0,s.A)((0,s.A)({},n.props),n.state),{},{slideCount:n.props.children.length})),a=Hm((0,s.A)((0,s.A)((0,s.A)({},n.props),n.state),{},{slideCount:n.props.children.length}));n.props.children.forEach((function(t){o.push(t.props.style.width),e+=t.props.style.width}));for(var l=0;l=t&&n.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(t){i(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(n.props.lazyLoad?e.onload=function(){n.adaptHeight(),n.callbackTimers.push(setTimeout(n.onWindowResized,n.props.speed))}:(e.onload=o,e.onerror=function(){o(),n.props.onLazyLoadError&&n.props.onLazyLoadError()}))}))})),(0,ht.A)(n,"progressiveLazyLoad",(function(){for(var e=[],t=(0,s.A)((0,s.A)({},n.props),n.state),r=n.state.currentSlide;r=-Lm(t);o--)if(n.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}e.length>0?(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad&&n.props.onLazyLoad(e)):n.lazyLoadTimer&&(clearInterval(n.lazyLoadTimer),delete n.lazyLoadTimer)})),(0,ht.A)(n,"slideHandler",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n.props,o=r.asNavFor,i=r.beforeChange,a=r.onLazyLoad,l=r.speed,c=r.afterChange,u=n.state.currentSlide,d=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,o=e.infinite,i=e.index,a=e.slideCount,l=e.lazyLoad,c=e.currentSlide,u=e.centerMode,d=e.slidesToScroll,f=e.slidesToShow,p=e.useCSS,m=e.lazyLoadedList;if(t&&n)return{};var g,h,v,b=i,y={},C={},x=o?i:xm(i,0,a-1);if(r){if(!o&&(i<0||i>=a))return{};i<0?b=i+a:i>=a&&(b=i-a),l&&m.indexOf(b)<0&&(m=m.concat(b)),y={animating:!0,currentSlide:b,lazyLoadedList:m,targetSlide:b},C={animating:!1,targetSlide:b}}else g=b,b<0?(g=b+a,o?a%d!=0&&(g=a-a%d):g=0):!Nm(e)&&b>c?b=g=c:u&&b>=a?(b=o?a:a-1,g=o?0:a-1):b>=a&&(g=b-a,o?a%d!=0&&(g=0):g=a-f),!o&&b+f>=a&&(g=a-f),h=Bm((0,s.A)((0,s.A)({},e),{},{slideIndex:b})),v=Bm((0,s.A)((0,s.A)({},e),{},{slideIndex:g})),o||(h===v&&(b=g),h=v),l&&(m=m.concat(Am((0,s.A)((0,s.A)({},e),{},{currentSlide:b})))),p?(y={animating:!0,currentSlide:g,trackStyle:Dm((0,s.A)((0,s.A)({},e),{},{left:h})),lazyLoadedList:m,targetSlide:x},C={animating:!1,currentSlide:g,trackStyle:Tm((0,s.A)((0,s.A)({},e),{},{left:v})),swipeLeft:null,targetSlide:x}):y={currentSlide:g,trackStyle:Tm((0,s.A)((0,s.A)({},e),{},{left:v})),lazyLoadedList:m,targetSlide:x};return{state:y,nextState:C}}((0,s.A)((0,s.A)((0,s.A)({index:e},n.props),n.state),{},{trackRef:n.track,useCSS:n.props.useCSS&&!t})),f=d.state,p=d.nextState;if(f){i&&i(u,f.currentSlide);var m=f.lazyLoadedList.filter((function(e){return n.state.lazyLoadedList.indexOf(e)<0}));a&&m.length>0&&a(m),!n.props.waitForAnimate&&n.animationEndCallback&&(clearTimeout(n.animationEndCallback),c&&c(u),delete n.animationEndCallback),n.setState(f,(function(){o&&n.asNavForIndex!==e&&(n.asNavForIndex=e,o.innerSlider.slideHandler(e)),p&&(n.animationEndCallback=setTimeout((function(){var e=p.animating,t=(0,bt.A)(p,tg);n.setState(t,(function(){n.callbackTimers.push(setTimeout((function(){return n.setState({animating:e})}),10)),c&&c(f.currentSlide),delete n.animationEndCallback}))}),l))}))}})),(0,ht.A)(n,"changeSlide",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=function(e,t){var n,r,o,i,a=e.slidesToScroll,l=e.slidesToShow,c=e.slideCount,u=e.currentSlide,d=e.targetSlide,f=e.lazyLoad,p=e.infinite;if(n=c%a!=0?0:(c-u)%a,"previous"===t.message)i=u-(o=0===n?a:l-n),f&&!p&&(i=-1==(r=u-o)?c-1:r),p||(i=d-a);else if("next"===t.message)i=u+(o=0===n?a:n),f&&!p&&(i=(u+a)%c+n),p||(i=d+a);else if("dots"===t.message)i=t.index*t.slidesToScroll;else if("children"===t.message){if(i=t.index,p){var m=_m((0,s.A)((0,s.A)({},e),{},{targetSlide:i}));i>t.currentSlide&&"left"===m?i-=c:i10)return{scrolling:!0};a&&(b.swipeLength=$);var k=(l?-1:1)*(b.curX>b.startX?1:-1);a&&(k=b.curY>b.startY?1:-1);var E=Math.ceil(g/h),O=Mm(t.touchObject,a),I=b.swipeLength;return v||(0===c&&("right"===O||"down"===O)||c+1>=E&&("left"===O||"up"===O)||!Nm(t)&&("left"===O||"up"===O))&&(I=b.swipeLength*u,!1===d&&f&&(f(O),A.edgeDragged=!0)),!p&&y&&(y(O),A.swiped=!0),w=o?S+I*(C/x)*k:l?S-I*k:S+I*k,a&&(w=S+I*k),A=(0,s.A)((0,s.A)({},A),{},{touchObject:b,swipeLeft:w,trackStyle:Tm((0,s.A)((0,s.A)({},t),{},{left:w}))}),Math.abs(b.curX-b.startX)<.8*Math.abs(b.curY-b.startY)||b.swipeLength>10&&(A.swiping=!0,wm(e)),A}}(e,(0,s.A)((0,s.A)((0,s.A)({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));t&&(t.swiping&&(n.clickable=!1),n.setState(t))})),(0,ht.A)(n,"swipeEnd",(function(e){var t=function(e,t){var n=t.dragging,r=t.swipe,o=t.touchObject,i=t.listWidth,a=t.touchThreshold,l=t.verticalSwiping,c=t.listHeight,u=t.swipeToSlide,d=t.scrolling,f=t.onSwipe,p=t.targetSlide,m=t.currentSlide,g=t.infinite;if(!n)return r&&wm(e),{};var h=l?c/a:i/a,v=Mm(o,l),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d)return b;if(!o.swipeLength)return b;if(o.swipeLength>h){var y,C;wm(e),f&&f(v);var x=g?m:p;switch(v){case"left":case"up":C=x+jm(t),y=u?Pm(t,C):C,b.currentDirection=0;break;case"right":case"down":C=x-jm(t),y=u?Pm(t,C):C,b.currentDirection=1;break;default:y=x}b.triggerSlideHandler=y}else{var w=Bm(t);b.trackStyle=Dm((0,s.A)((0,s.A)({},t),{},{left:w}))}return b}(e,(0,s.A)((0,s.A)((0,s.A)({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));if(t){var r=t.triggerSlideHandler;delete t.triggerSlideHandler,n.setState(t),void 0!==r&&(n.slideHandler(r),n.props.verticalSwiping&&n.enableBodyScroll())}})),(0,ht.A)(n,"touchEnd",(function(e){n.swipeEnd(e),n.clickable=!0})),(0,ht.A)(n,"slickPrev",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"previous"})}),0))})),(0,ht.A)(n,"slickNext",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"next"})}),0))})),(0,ht.A)(n,"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"index",index:e,currentSlide:n.state.currentSlide},t)}),0))})),(0,ht.A)(n,"play",(function(){var e;if(n.props.rtl)e=n.state.currentSlide-n.props.slidesToScroll;else{if(!Nm((0,s.A)((0,s.A)({},n.props),n.state)))return!1;e=n.state.currentSlide+n.props.slidesToScroll}n.slideHandler(e)})),(0,ht.A)(n,"autoPlay",(function(e){n.autoplayTimer&&clearInterval(n.autoplayTimer);var t=n.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;n.autoplayTimer=setInterval(n.play,n.props.autoplaySpeed+50),n.setState({autoplaying:"playing"})})),(0,ht.A)(n,"pause",(function(e){n.autoplayTimer&&(clearInterval(n.autoplayTimer),n.autoplayTimer=null);var t=n.state.autoplaying;"paused"===e?n.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||n.setState({autoplaying:"focused"}):"playing"===t&&n.setState({autoplaying:"hovered"})})),(0,ht.A)(n,"onDotsOver",(function(){return n.props.autoplay&&n.pause("hovered")})),(0,ht.A)(n,"onDotsLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),(0,ht.A)(n,"onTrackOver",(function(){return n.props.autoplay&&n.pause("hovered")})),(0,ht.A)(n,"onTrackLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),(0,ht.A)(n,"onSlideFocus",(function(){return n.props.autoplay&&n.pause("focused")})),(0,ht.A)(n,"onSlideBlur",(function(){return n.props.autoplay&&"focused"===n.state.autoplaying&&n.autoPlay("blur")})),(0,ht.A)(n,"render",(function(){var e,t,o,l=i()("slick-slider",n.props.className,{"slick-vertical":n.props.vertical,"slick-initialized":!0}),c=(0,s.A)((0,s.A)({},n.props),n.state),u=zm(c,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),d=n.props.pauseOnHover;if(u=(0,s.A)((0,s.A)({},u),{},{onMouseEnter:d?n.onTrackOver:null,onMouseLeave:d?n.onTrackLeave:null,onMouseOver:d?n.onTrackOver:null,focusOnSelect:n.props.focusOnSelect&&n.clickable?n.selectHandler:null}),!0===n.props.dots&&n.state.slideCount>=n.props.slidesToShow){var f=zm(c,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),p=n.props.pauseOnDotsHover;f=(0,s.A)((0,s.A)({},f),{},{clickHandler:n.changeSlide,onMouseEnter:p?n.onDotsLeave:null,onMouseOver:p?n.onDotsOver:null,onMouseLeave:p?n.onDotsLeave:null}),e=r.createElement(Qm,f)}var m=zm(c,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);m.clickHandler=n.changeSlide,n.props.arrows&&(t=r.createElement(Jm,m),o=r.createElement(eg,m));var g=null;n.props.vertical&&(g={height:n.state.listHeight});var h=null;!1===n.props.vertical?!0===n.props.centerMode&&(h={padding:"0px "+n.props.centerPadding}):!0===n.props.centerMode&&(h={padding:n.props.centerPadding+" 0px"});var v=(0,s.A)((0,s.A)({},g),h),b=n.props.touchMove,y={className:"slick-list",style:v,onClick:n.clickHandler,onMouseDown:b?n.swipeStart:null,onMouseMove:n.state.dragging&&b?n.swipeMove:null,onMouseUp:b?n.swipeEnd:null,onMouseLeave:n.state.dragging&&b?n.swipeEnd:null,onTouchStart:b?n.swipeStart:null,onTouchMove:n.state.dragging&&b?n.swipeMove:null,onTouchEnd:b?n.touchEnd:null,onTouchCancel:n.state.dragging&&b?n.swipeEnd:null,onKeyDown:n.props.accessibility?n.keyHandler:null},C={className:l,dir:"ltr",style:n.props.style};return n.props.unslick&&(y={className:"slick-list"},C={className:l,style:n.props.style}),r.createElement("div",C,n.props.unslick?"":t,r.createElement("div",(0,a.A)({ref:n.listRefHandler},y),r.createElement(Um,(0,a.A)({ref:n.trackRefHandler},u),n.props.children)),n.props.unslick?"":o,n.props.unslick?"":e)})),n.list=null,n.track=null,n.state=(0,s.A)((0,s.A)({},bm),{},{currentSlide:n.props.initialSlide,targetSlide:n.props.initialSlide?n.props.initialSlide:0,slideCount:r.Children.count(n.props.children)}),n.callbackTimers=[],n.clickable=!0,n.debouncedResize=null;var o=n.ssrInit();return n.state=(0,s.A)((0,s.A)({},n.state),o),n}return(0,H.A)(t,e),(0,L.A)(t,[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,o=Object.keys(this.props);n1&&void 0!==arguments[1]&&arguments[1];return n.innerSlider.slickGoTo(e,t)})),(0,ht.A)(n,"slickPause",(function(){return n.innerSlider.pause("paused")})),(0,ht.A)(n,"slickPlay",(function(){return n.innerSlider.autoPlay("play")})),n.state={breakpoint:null},n._responsiveMediaHandlers=[],n}return(0,H.A)(t,e),(0,L.A)(t,[{key:"media",value:function(e,t){var n=window.matchMedia(e),r=function(e){e.matches&&t()};n.addListener(r),r(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,r){var o;o=0===r?og()({minWidth:0,maxWidth:n}):og()({minWidth:t[r-1]+1,maxWidth:n}),qm()&&e.media(o,(function(){e.setState({breakpoint:n})}))}));var n=og()({minWidth:t.slice(-1)[0]});qm()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===n.state.breakpoint})))[0].settings?"unslick":(0,s.A)((0,s.A)((0,s.A)({},Cm),this.props),t[0].settings):(0,s.A)((0,s.A)({},Cm),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var o=r.Children.toArray(this.props.children);o=o.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var i=[],l=null,c=0;c=o.length));p+=1)f.push(r.cloneElement(o[p],{key:100*c+10*d+p,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));u.push(r.createElement("div",{key:10*c+d},f))}e.variableWidth?i.push(r.createElement("div",{key:c,style:{width:l}},u)):i.push(r.createElement("div",{key:c},u))}if("unslick"===e){var m="regular slider "+(this.props.className||"");return r.createElement("div",{className:m},o)}return i.length<=e.slidesToShow&&!e.infinite&&(e.unslick=!0),r.createElement(ng,(0,a.A)({style:this.props.style,ref:this.innerSliderRefHandler},function(e){return Km.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}(e)),i)}}])}(r.Component);const ag=ig,lg=e=>{const{componentCls:t,antCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,ve.dF)(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}})}},cg=e=>{const{componentCls:t,motionDurationSlow:n,arrowSize:r,arrowOffset:o}=e,i=e.calc(r).div(Math.SQRT2).equal();return[{[t]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:r,height:r,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${n}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:e.calc(r).sub(i).div(2).equal(),insetInlineStart:e.calc(r).sub(i).div(2).equal(),display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderInlineWidth:"2px 0",borderBlockWidth:"2px 0",borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:o,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:o,"&::after":{transform:"rotate(135deg)"}}}}]},sg=e=>{const{componentCls:t,dotOffset:n,dotWidth:r,dotHeight:o,dotGap:i,colorBgContainer:a,motionDurationSlow:l}=e;return[{[t]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:n},"&-top":{top:n,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:r,height:o,marginInline:i,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${l}`,button:{position:"relative",display:"block",width:"100%",height:o,padding:0,color:"transparent",fontSize:0,background:a,border:0,borderRadius:o,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${l}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(i).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,"& button":{background:a,opacity:1},"&: hover, &:focus":{opacity:1}}}}}}]},ug=e=>{const{componentCls:t,dotOffset:n,arrowOffset:r,marginXXS:o}=e,i={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:r,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:r,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:Object.assign(Object.assign({},i),{margin:`${(0,he.zA)(o)} 0`,verticalAlign:"baseline",button:i,"&.slick-active":Object.assign(Object.assign({},i),{button:i})})}}}},dg=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},fg=(0,J.OF)("Carousel",(e=>[lg(e),cg(e),sg(e),ug(e),dg(e)]),(e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24})),{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]});var pg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{currentSlide:t,slideCount:n}=e,o=pg(e,["currentSlide","slideCount"]);return r.createElement("button",Object.assign({type:"button"},o))},hg=r.forwardRef(((e,t)=>{const{dots:n=!0,arrows:o=!1,prevArrow:a=r.createElement(gg,{"aria-label":"prev"}),nextArrow:l=r.createElement(gg,{"aria-label":"next"}),draggable:c=!1,waitForAnimate:s=!1,dotPosition:u="bottom",vertical:d="left"===u||"right"===u,rootClassName:f,className:p,style:m,id:g}=e,h=pg(e,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id"]),{getPrefixCls:v,direction:b,carousel:y}=r.useContext(Z.ConfigContext),C=r.useRef(),x=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];C.current.slickGoTo(e,t)};r.useImperativeHandle(t,(()=>({goTo:x,autoPlay:C.current.innerSlider.autoPlay,innerSlider:C.current.innerSlider,prev:C.current.slickPrev,next:C.current.slickNext})),[C.current]);const w=r.useRef(r.Children.count(e.children));r.useEffect((()=>{w.current!==r.Children.count(e.children)&&(x(e.initialSlide||0,!1),w.current=r.Children.count(e.children))}),[e.children]);const A=Object.assign({vertical:d,className:i()(p,null==y?void 0:y.className),style:Object.assign(Object.assign({},null==y?void 0:y.style),m)},h);"fade"===A.effect&&(A.fade=!0);const S=v("carousel",A.prefixCls),$=!!n,k=i()(mg,`${mg}-${u}`,"boolean"!=typeof n&&(null==n?void 0:n.className)),[E,O,I]=fg(S),M=i()(S,{[`${S}-rtl`]:"rtl"===b,[`${S}-vertical`]:A.vertical},O,I,f);return E(r.createElement("div",{className:M,id:g},r.createElement(ag,Object.assign({ref:C},A,{dots:$,dotsClass:k,arrows:o,prevArrow:a,nextArrow:l,draggable:c,verticalSwiping:d,waitForAnimate:s}))))}));const vg=hg;const bg=r.createContext({});var yg="__rc_cascader_search_mark__",Cg=function(e,t,n){var r=n.label,o=void 0===r?"":r;return t.some((function(t){return String(t[o]).toLowerCase().includes(e.toLowerCase())}))},xg=function(e,t,n,r){return t.map((function(e){return e[r.label]})).join(" / ")};const wg=function(e,t,n,o,i,a){var l=i.filter,c=void 0===l?Cg:l,u=i.render,d=void 0===u?xg:u,f=i.limit,p=void 0===f?50:f,m=i.sort;return r.useMemo((function(){var r=[];if(!e)return[];return function t(i,l){var u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.forEach((function(i){if(!(!m&&!1!==p&&p>0&&r.length>=p)){var f,g=[].concat((0,Y.A)(l),[i]),h=i[n.children],v=u||i.disabled;if(!h||0===h.length||a)if(c(e,g,{label:n.label}))r.push((0,s.A)((0,s.A)({},i),{},(f={disabled:v},(0,ht.A)(f,n.label,d(e,g,o,n)),(0,ht.A)(f,yg,g),(0,ht.A)(f,n.children,void 0),f)));h&&t(i[n.children],g,v)}}))}(t,[]),m&&r.sort((function(t,r){return m(t[yg],r[yg],e,n)})),!1!==p&&p>0?r.slice(0,p):r}),[e,t,n,o,d,a,c,m,p])};var Ag="__RC_CASCADER_SPLIT__",Sg="SHOW_PARENT",$g="SHOW_CHILD";function kg(e){return e.join(Ag)}function Eg(e){return e.map(kg)}function Og(e){var t=e||{},n=t.label,r=t.value||"value";return{label:n||"label",value:r,key:r,children:t.children||"children"}}function Ig(e,t){var n,r;return null!==(n=e.isLeaf)&&void 0!==n?n:!(null!==(r=e[t.children])&&void 0!==r&&r.length)}function Mg(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function Ng(e,t){return e.map((function(e){var n;return null===(n=e[yg])||void 0===n?void 0:n.map((function(e){return e[t.value]}))}))}function zg(e){return e?function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?e:(0===e.length?[]:[e]).map((function(e){return Array.isArray(e)?e:[e]})):[]}function Pg(e,t,n){var r=new Set(e),o=t();return e.filter((function(e){var t=o[e],i=t?t.parent:null,a=t?t.children:null;return!(!t||!t.node.disabled)||(n===$g?!(a&&a.some((function(e){return e.key&&r.has(e.key)}))):!(i&&!i.node.disabled&&r.has(i.key)))}))}function jg(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=t,i=[],a=function(){var t,a,c,s=e[l],u=null===(t=o)||void 0===t?void 0:t.findIndex((function(e){var t=e[n.value];return r?String(t)===String(s):t===s})),d=-1!==u?null===(a=o)||void 0===a?void 0:a[u]:null;i.push({value:null!==(c=null==d?void 0:d[n.value])&&void 0!==c?c:s,index:u,option:d}),o=null==d?void 0:d[n.children]},l=0;l1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(s,u){for(var d,f=Bg(r?r.pos:"0",u),p=Lg(s[i],f),m=0;m1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=i||(arguments.length>2?arguments[2]:void 0),s={},d={},f={posEntities:s,keyEntities:d};return n&&(f=n(f)||f),function(e,t,n){var r,o=("object"===(0,u.A)(n)?n:{externalGetKey:n})||{},i=o.childrenPropName,a=o.externalGetKey,l=Hg(o.fieldNames),c=l.key,s=l.children,d=i||s;a?"string"==typeof a?r=function(e){return e[a]}:"function"==typeof a&&(r=function(e){return a(e)}):r=function(e,t){return Lg(e[c],t)},function n(o,i,a,l){var c=o?o[d]:e,s=o?Bg(a.pos,i):"0",u=o?[].concat((0,Y.A)(l),[o]):[];if(o){var f=r(o,s),p={node:o,index:i,pos:s,key:f,parentPos:a.node?a.pos:null,level:a.level+1,nodes:u};t(p)}c&&c.forEach((function(e,t){n(e,t,{node:o,pos:s,level:a?a.level+1:-1},u)}))}(null)}(e,(function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,a=e.parentPos,l=e.level,c={node:t,nodes:e.nodes,index:n,key:i,pos:o,level:l},u=Lg(i,o);s[o]=c,d[u]=c,c.parent=s[a],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),r&&r(c,f)}),{externalGetKey:c,childrenPropName:a,fieldNames:l}),o&&o(f),f}function Vg(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,s=t.dropPosition,u=Tg(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:c===e&&0===s,dragOverGapTop:c===e&&-1===s,dragOverGapBottom:c===e&&1===s}}function qg(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,u=e.dragOver,d=e.dragOverGapTop,f=e.dragOverGapBottom,p=e.pos,m=e.active,g=e.eventKey,h=(0,s.A)((0,s.A)({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:u,dragOverGapTop:d,dragOverGapBottom:f,pos:p,active:m,key:g});return"props"in h||Object.defineProperty(h,"props",{get:function(){return(0,c.Ay)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function Kg(e,t){var n=r.useMemo((function(){return t||[]}),[t]),o=function(e,t){var n=r.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),o=r.useCallback((function(){return n.current.options!==e&&(n.current.options=e,n.current.info=Wg(e,{fieldNames:t,initWrapper:function(e){return(0,s.A)((0,s.A)({},e),{},{pathKeyEntities:{}})},processEntity:function(e,n){var r=e.nodes.map((function(e){return e[t.value]})).join(Ag);n.pathKeyEntities[r]=e,e.key=r}})),n.current.info.pathKeyEntities}),[t,e]);return o}(n,e),i=r.useCallback((function(t){var n=o();return t.map((function(t){return n[t].nodes.map((function(t){return t[e.value]}))}))}),[o,e]);return[n,o,i]}function Xg(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function Gg(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function Yg(e,t,n,r){var o,i=[];o=r||Gg;var a,l=new Set(e.filter((function(e){var t=!!Tg(n,e);return t||i.push(e),t}))),s=new Map,u=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=s.get(r);o||(o=new Set,s.set(r,o)),o.add(t),u=Math.max(u,r)})),(0,c.Ay)(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;o.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var l=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var a=!0,c=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);a&&!n&&(a=!1),c||!n&&!i.has(t)||(c=!0)})),a&&o.add(t.key),c&&i.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(Xg(i,o))}}(l,s,u,o):function(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),l=0;l<=r;l+=1)(n.get(l)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,l=void 0===r?[]:r;i.has(t)||a.has(t)||o(n)||l.filter((function(e){return!o(e.node)})).forEach((function(e){i.delete(e.key)}))}));a=new Set;for(var c=new Set,s=r;s>=0;s-=1)(n.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!c.has(e.parent.key))if(o(e.parent.node))c.add(t.key);else{var r=!0,l=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);r&&!n&&(r=!1),l||!n&&!a.has(t)||(l=!0)})),r||i.delete(t.key),l&&a.add(t.key),c.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Xg(a,i))}}(l,t.halfCheckedKeys,s,u,o),a}function Ug(e,t,n,r,o,i,a,l){return function(c){if(e){var s=kg(c),u=Eg(n),d=Eg(r),f=u.includes(s),p=o.some((function(e){return kg(e)===s})),m=n,g=o;if(p&&!f)g=o.filter((function(e){return kg(e)!==s}));else{var h,v=f?u.filter((function(e){return e!==s})):[].concat((0,Y.A)(u),[s]),b=i();if(f)h=Yg(v,{checked:!1,halfCheckedKeys:d},b).checkedKeys;else h=Yg(v,!0,b).checkedKeys;var y=Pg(h,i,l);m=a(y)}t([].concat((0,Y.A)(g),(0,Y.A)(m)))}else t(c)}}function Qg(e,t,n,o,i){return r.useMemo((function(){var r=i(t),a=(0,vt.A)(r,2),l=a[0],c=a[1];if(!e||!t.length)return[l,[],c];var s=Yg(Eg(l),!0,n()),u=s.checkedKeys,d=s.halfCheckedKeys;return[o(u),o(d),c]}),[e,t,n,o,i])}const Zg=r.memo((function(e){return e.children}),(function(e,t){return!t.open}));function Jg(e){var t,n=e.prefixCls,o=e.checked,a=e.halfChecked,l=e.disabled,c=e.onClick,s=e.disableCheckbox,u=r.useContext(bg).checkable,d="boolean"!=typeof u?u:null;return r.createElement("span",{className:i()("".concat(n),(t={},(0,ht.A)(t,"".concat(n,"-checked"),o),(0,ht.A)(t,"".concat(n,"-indeterminate"),!o&&a),(0,ht.A)(t,"".concat(n,"-disabled"),l||s),t)),onClick:c},d)}var eh="__cascader_fix_label__";function th(e){var t=e.prefixCls,n=e.multiple,o=e.options,a=e.activeValue,l=e.prevValuePath,c=e.onToggleOpen,s=e.onSelect,u=e.onActive,d=e.checkedSet,f=e.halfCheckedSet,p=e.loadingKeys,m=e.isSelectable,g=e.disabled,h="".concat(t,"-menu"),v="".concat(t,"-menu-item"),b=r.useContext(bg),y=b.fieldNames,C=b.changeOnSelect,x=b.expandTrigger,w=b.expandIcon,A=b.loadingIcon,S=b.dropdownMenuColumnStyle,$=b.optionRender,k="hover"===x,E=function(e){return g||e},O=r.useMemo((function(){return o.map((function(e){var t,n=e.disabled,r=e.disableCheckbox,o=e[yg],i=null!==(t=e[eh])&&void 0!==t?t:e[y.label],a=e[y.value],c=Ig(e,y),s=o?o.map((function(e){return e[y.value]})):[].concat((0,Y.A)(l),[a]),u=kg(s);return{disabled:n,label:i,value:a,isLeaf:c,isLoading:p.includes(u),checked:d.has(u),halfChecked:f.has(u),option:e,disableCheckbox:r,fullPath:s,fullPathKey:u}}))}),[o,d,y,f,p,l]);return r.createElement("ul",{className:h,role:"menu"},O.map((function(e){var o,l,d=e.disabled,f=e.label,p=e.value,g=e.isLeaf,h=e.isLoading,b=e.checked,y=e.halfChecked,x=e.option,O=e.fullPath,I=e.fullPathKey,M=e.disableCheckbox,N=function(){if(!E(d)){var e=(0,Y.A)(O);k&&g&&e.pop(),u(e)}},z=function(){m(x)&&!E(d)&&s(O,g)};return"string"==typeof x.title?l=x.title:"string"==typeof f&&(l=f),r.createElement("li",{key:I,className:i()(v,(o={},(0,ht.A)(o,"".concat(v,"-expand"),!g),(0,ht.A)(o,"".concat(v,"-active"),a===p||a===I),(0,ht.A)(o,"".concat(v,"-disabled"),E(d)),(0,ht.A)(o,"".concat(v,"-loading"),h),o)),style:S,role:"menuitemcheckbox",title:l,"aria-checked":b,"data-path-key":I,onClick:function(){N(),M||n&&!g||z()},onDoubleClick:function(){C&&c(!1)},onMouseEnter:function(){k&&N()},onMouseDown:function(e){e.preventDefault()}},n&&r.createElement(Jg,{prefixCls:"".concat(t,"-checkbox"),checked:b,halfChecked:y,disabled:E(d)||M,disableCheckbox:M,onClick:function(e){M||(e.stopPropagation(),z())}}),r.createElement("div",{className:"".concat(v,"-content")},$?$(x):f),!h&&w&&!g&&r.createElement("div",{className:"".concat(v,"-expand-icon")},w),h&&A&&r.createElement("div",{className:"".concat(v,"-loading-icon")},A))})))}const nh=function(e,t){var n=r.useContext(bg).values[0],o=r.useState([]),i=(0,vt.A)(o,2),a=i[0],l=i[1];return r.useEffect((function(){e||l(n||[])}),[t,n]),[a,l]},rh=function(e,t,n,o,i,a,l){var c=l.direction,s=l.searchValue,u=l.toggleOpen,d=l.open,f="rtl"===c,p=r.useMemo((function(){for(var e=-1,r=t,i=[],a=[],l=o.length,c=Ng(t,n),s=function(t){var l=r.findIndex((function(e,r){return(c[r]?kg(c[r]):e[n.value])===o[t]}));if(-1===l)return 1;e=l,i.push(e),a.push(o[t]),r=r[e][n.children]},u=0;u1){var e=g.slice(0,-1);y(e)}else u(!1)},x=function(){var e,t=((null===(e=v[h])||void 0===e?void 0:e[n.children])||[]).find((function(e){return!e.disabled}));if(t){var r=[].concat((0,Y.A)(g),[t[n.value]]);y(r)}};r.useImperativeHandle(e,(function(){return{onKeyDown:function(e){var t=e.which;switch(t){case kt.A.UP:case kt.A.DOWN:var r=0;t===kt.A.UP?r=-1:t===kt.A.DOWN&&(r=1),0!==r&&function(e){var t=v.length,r=h;-1===r&&e<0&&(r=t);for(var o=0;o2&&void 0!==arguments[2]&&arguments[2];$(e),!u&&(t||S&&("hover"===I||n))&&f(!1)},V=r.useMemo((function(){return d?k:C}),[d,k,C]),q=r.useMemo((function(){for(var e=[{options:V}],t=V,n=Ng(t,A),r=function(){var r=L[o],i=t.find((function(e,t){return(n[t]?kg(n[t]):e[A.value])===r})),a=null==i?void 0:i[A.children];if(null==a||!a.length)return 1;t=a,e.push({options:a})},o=0;o":y,x=n.loadingIcon,w=n.direction,A=n.notFoundContent,S=void 0===A?"Not Found":A,$=n.disabled,k=!!u,E=(0,er.vz)(d,{value:f,postState:zg}),O=(0,vt.A)(E,2),I=O[0],M=O[1],N=r.useMemo((function(){return Og(p)}),[JSON.stringify(p)]),z=Kg(N,s),P=(0,vt.A)(z,3),j=P[0],R=P[1],T=P[2],D=Rg(j,N),B=Qg(k,I,R,T,D),L=(0,vt.A)(B,3),H=L[0],F=L[1],_=L[2],W=(0,er._q)((function(e){if(M(e),g){var t=zg(e),n=t.map((function(e){return jg(e,j,N).map((function(e){return e.option}))})),r=k?t:t[0],o=k?n:n[0];g(r,o)}})),V=Ug(k,W,H,F,_,R,T,h),q=(0,er._q)((function(e){V(e)})),K=r.useMemo((function(){return{options:j,fieldNames:N,values:H,halfValues:F,changeOnSelect:m,onSelect:q,checkable:u,searchOptions:[],dropdownPrefixCls:void 0,loadData:v,expandTrigger:b,expandIcon:C,loadingIcon:x,dropdownMenuColumnStyle:void 0}}),[j,N,H,F,m,q,u,v,b,C,x]),X="".concat(a,"-panel"),G=!j.length;return r.createElement(bg.Provider,{value:K},r.createElement("div",{className:i()(X,(t={},(0,ht.A)(t,"".concat(X,"-rtl"),"rtl"===w),(0,ht.A)(t,"".concat(X,"-empty"),G),t),c),style:l},G?S:r.createElement(ih,{prefixCls:a,searchValue:"",multiple:k,toggleOpen:lh,open:!0,direction:w,disabled:$})))}var sh=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],uh=r.forwardRef((function(e,t){var n=e.id,o=e.prefixCls,i=void 0===o?"rc-cascader":o,l=e.fieldNames,c=e.defaultValue,d=e.value,f=e.changeOnSelect,p=e.onChange,m=e.displayRender,g=e.checkable,h=e.autoClearSearchValue,v=void 0===h||h,b=e.searchValue,y=e.onSearch,C=e.showSearch,x=e.expandTrigger,w=e.options,A=e.dropdownPrefixCls,S=e.loadData,$=e.popupVisible,k=e.open,E=e.popupClassName,O=e.dropdownClassName,I=e.dropdownMenuColumnStyle,M=e.dropdownStyle,N=e.popupPlacement,z=e.placement,P=e.onDropdownVisibleChange,j=e.onPopupVisibleChange,R=e.expandIcon,T=void 0===R?">":R,D=e.loadingIcon,B=e.children,L=e.dropdownMatchSelectWidth,H=void 0!==L&&L,F=e.showCheckedStrategy,_=void 0===F?Sg:F,W=e.optionRender,V=(0,bt.A)(e,sh),q=Ir(n),K=!!g,X=(0,yt.A)(c,{value:d,postState:zg}),G=(0,vt.A)(X,2),U=G[0],Q=G[1],Z=r.useMemo((function(){return Og(l)}),[JSON.stringify(l)]),J=Kg(Z,w),ee=(0,vt.A)(J,3),te=ee[0],ne=ee[1],re=ee[2],oe=(0,yt.A)("",{value:b,postState:function(e){return e||""}}),ie=(0,vt.A)(oe,2),ae=ie[0],le=ie[1],ce=function(e){return r.useMemo((function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&"object"===(0,u.A)(e)&&(t=(0,s.A)((0,s.A)({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]}),[e])}(C),se=(0,vt.A)(ce,2),ue=se[0],de=se[1],fe=wg(ae,te,Z,A||i,de,f||K),pe=Rg(te,Z),me=Qg(K,U,ne,re,pe),ge=(0,vt.A)(me,3),he=ge[0],ve=ge[1],be=ge[2],ye=function(e,t,n,o,i){return r.useMemo((function(){var a=i||function(e){var t=o?e.slice(-1):e;return t.every((function(e){return["string","number"].includes((0,u.A)(e))}))?t.join(" / "):t.reduce((function(e,t,n){var o=r.isValidElement(t)?r.cloneElement(t,{key:n}):t;return 0===n?[o]:[].concat((0,Y.A)(e),[" / ",o])}),[])};return e.map((function(e){var r,o=jg(e,t,n),i=a(o.map((function(e){var t,r=e.option,o=e.value;return null!==(t=null==r?void 0:r[n.label])&&void 0!==t?t:o})),o.map((function(e){return e.option}))),l=kg(e);return{label:i,value:l,key:l,valueCells:e,disabled:null===(r=o[o.length-1])||void 0===r||null===(r=r.option)||void 0===r?void 0:r.disabled}}))}),[e,t,n,i,o])}(r.useMemo((function(){var e=Pg(Eg(he),ne,_);return[].concat((0,Y.A)(be),(0,Y.A)(re(e)))}),[he,ne,re,be,_]),te,Z,K,m),Ce=(0,Te.A)((function(e){if(Q(e),p){var t=zg(e),n=t.map((function(e){return jg(e,te,Z).map((function(e){return e.option}))})),r=K?t:t[0],o=K?n:n[0];p(r,o)}})),xe=Ug(K,Ce,he,ve,be,ne,re,_),we=(0,Te.A)((function(e){K&&!v||le(""),xe(e)})),Ae=void 0!==k?k:$,Se=O||E,$e=z||N;var ke=r.useMemo((function(){return{options:te,fieldNames:Z,values:he,halfValues:ve,changeOnSelect:f,onSelect:we,checkable:g,searchOptions:fe,dropdownPrefixCls:A,loadData:S,expandTrigger:x,expandIcon:T,loadingIcon:D,dropdownMenuColumnStyle:I,optionRender:W}}),[te,Z,he,ve,f,we,g,fe,A,S,x,T,D,I,W]),Ee=!(ae?fe:te).length,Oe=ae&&de.matchInputWidth||Ee?{}:{minWidth:"auto"};return r.createElement(bg.Provider,{value:ke},r.createElement(Gn,(0,a.A)({},V,{ref:t,id:q,prefixCls:i,autoClearSearchValue:v,dropdownMatchSelectWidth:H,dropdownStyle:(0,s.A)((0,s.A)({},Oe),M),displayValues:ye,onDisplayValuesChange:function(e,t){if("clear"!==t.type){var n=t.values[0].valueCells;we(n)}else Ce([])},mode:K?"multiple":void 0,searchValue:ae,onSearch:function(e,t){le(e),"blur"!==t.source&&y&&y(e)},showSearch:ue,OptionList:ah,emptyOptions:Ee,open:Ae,dropdownClassName:Se,placement:$e,onDropdownVisibleChange:function(e){null==P||P(e),null==j||j(e)},getRawInputElement:function(){return B}})))}));uh.SHOW_PARENT=Sg,uh.SHOW_CHILD=$g,uh.Panel=ch;const dh=uh;const fh=function(e,t){const{getPrefixCls:n,direction:o,renderEmpty:i}=r.useContext(Z.ConfigContext),a=t||o;return[n("select",e),n("cascader",e),a,i]};function ph(e,t){return r.useMemo((()=>!!t&&r.createElement("span",{className:`${e}-checkbox-inner`})),[t])}const mh=(e,t,n)=>{let o=n;n||(o=t?r.createElement(Bc,null):r.createElement(tl.A,null));const i=r.createElement("span",{className:`${e}-menu-item-loading-icon`},r.createElement(oi.A,{spin:!0}));return r.useMemo((()=>[o,i]),[o])},gh=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,ve.dF)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},(0,ve.dF)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},(0,ve.jk)(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${(0,he.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}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{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}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&: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:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function hh(e,t){const n=(0,Ue.oX)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[gh(n)]}const vh=(0,J.OF)("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[hh(n,e)]})),bh=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,o=`\n &${r}-expand ${r}-expand-icon,\n ${r}-loading-icon\n`;return[hh(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},ve.L9),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[o]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[o]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},yh=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},bh(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},(0,co.G)(e)]},Ch=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS}},xh=(0,J.OF)("Cascader",(e=>[yh(e)]),Ch),wh=(0,J.Or)(["Cascader","Panel"],(e=>(e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[bh(e),{display:"inline-flex",border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}})(e)),Ch);const Ah=function(e){const{prefixCls:t,className:n,multiple:o,rootClassName:a,notFoundContent:l,direction:c,expandIcon:s,disabled:u}=e,d=r.useContext(no.A),f=null!=u?u:d,[p,m,g,h]=fh(t,c),v=(0,Xe.A)(m),[b,y,C]=xh(m,v);wh(m);const x="rtl"===g,[w,A]=mh(p,x,s),S=l||(null==h?void 0:h("Cascader"))||r.createElement(to,{componentName:"Cascader"}),$=ph(m,o);return b(r.createElement(ch,Object.assign({},e,{checkable:$,prefixCls:m,className:i()(n,y,a,C,v),notFoundContent:S,direction:g,expandIcon:w,loadingIcon:A,disabled:f})))};var Sh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const i=[],a=e.toLowerCase();return t.forEach(((e,t)=>{0!==t&&i.push(" / ");let l=e[o.label];const c=typeof l;"string"!==c&&"number"!==c||(l=function(e,t,n){const o=e.toLowerCase().split(t).reduce(((e,n,r)=>0===r?[n]:[].concat((0,Y.A)(e),[t,n])),[]),i=[];let a=0;return o.forEach(((t,o)=>{const l=a+t.length;let c=e.slice(a,l);a=l,o%2==1&&(c=r.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${o}`},c)),i.push(c)})),i}(String(l),a,n)),i.push(l)})),i},Oh=r.forwardRef(((e,t)=>{var n;const{prefixCls:o,size:a,disabled:l,className:c,rootClassName:s,multiple:u,bordered:d=!0,transitionName:f,choiceTransitionName:p="",popupClassName:m,dropdownClassName:g,expandIcon:h,placement:v,showSearch:b,allowClear:y=!0,notFoundContent:C,direction:x,getPopupContainer:w,status:A,showArrow:S,builtinPlacements:$,style:k,variant:E}=e,O=Sh(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),I=(0,G.A)(O,["suffixIcon"]),{getPopupContainer:M,getPrefixCls:N,popupOverflow:z,cascader:P}=r.useContext(Z.ConfigContext),{status:j,hasFeedback:R,isFormItemInput:T,feedbackIcon:D}=r.useContext(oo.$W),B=_r(j,A);const[L,H,F,_]=fh(o,x),W="rtl"===F,V=N(),q=(0,Xe.A)(L),[K,X,Y]=Uo(L,q),U=(0,Xe.A)(H),[Q]=xh(H,U),{compactSize:J,compactItemClassnames:ee}=(0,ao.RQ)(L,x),[te,ne]=io("cascader",E,d),re=C||(null==_?void 0:_("Cascader"))||r.createElement(to,{componentName:"Cascader"}),oe=i()(m||g,`${H}-dropdown`,{[`${H}-dropdown-rtl`]:"rtl"===F},s,q,U,X,Y),ie=r.useMemo((()=>{if(!b)return b;let e={render:Eh};return"object"==typeof b&&(e=Object.assign(Object.assign({},e),b)),e}),[b]),ae=(0,ro.A)((e=>{var t;return null!==(t=null!=a?a:J)&&void 0!==t?t:e})),le=r.useContext(no.A),ce=null!=l?l:le,[se,ue]=mh(L,W,h),de=ph(H,u),fe=si(e.suffixIcon,S),{suffixIcon:pe,removeIcon:me,clearIcon:ge}=ci(Object.assign(Object.assign({},e),{hasFeedback:R,feedbackIcon:D,showSuffixIcon:fe,multiple:u,prefixCls:L,componentName:"Cascader"})),he=r.useMemo((()=>void 0!==v?v:W?"bottomRight":"bottomLeft"),[v,W]),ve=!0===y?{clearIcon:ge}:y,[be]=(0,mt.YK)("SelectLike",null===(n=I.dropdownStyle)||void 0===n?void 0:n.zIndex);return Q(K(r.createElement(dh,Object.assign({prefixCls:L,className:i()(!o&&H,{[`${L}-lg`]:"large"===ae,[`${L}-sm`]:"small"===ae,[`${L}-rtl`]:W,[`${L}-${te}`]:ne,[`${L}-in-form-item`]:T},Fr(L,B,R),ee,null==P?void 0:P.className,c,s,q,U,X,Y),disabled:ce,style:Object.assign(Object.assign({},null==P?void 0:P.style),k)},I,{builtinPlacements:lo($,z),direction:F,placement:he,notFoundContent:re,allowClear:ve,showSearch:ie,expandIcon:se,suffixIcon:pe,removeIcon:me,loadingIcon:ue,checkable:de,dropdownClassName:oe,dropdownPrefixCls:o||H,dropdownStyle:Object.assign(Object.assign({},I.dropdownStyle),{zIndex:be}),choiceTransitionName:(0,Hr.b)(V,"",p),transitionName:(0,Hr.b)(V,"slide-up",f),getPopupContainer:w||M,ref:t}))))}));const Ih=(0,gt.A)(Oh);Oh.SHOW_PARENT=kh,Oh.SHOW_CHILD=$h,Oh.Panel=Ah,Oh._InternalPanelDoNotUseOrYouWillBeFired=Ih;const Mh=Oh,Nh=r.createContext(null);var zh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:o,className:a,rootClassName:l,children:c,indeterminate:s=!1,style:u,onMouseEnter:d,onMouseLeave:p,skipGroup:m=!1,disabled:g}=e,h=zh(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:v,direction:b,checkbox:y}=r.useContext(Z.ConfigContext),C=r.useContext(Nh),{isFormItemInput:x}=r.useContext(oo.$W),w=r.useContext(no.A),A=null!==(n=(null==C?void 0:C.disabled)||g)&&void 0!==n?n:w,S=r.useRef(h.value),$=r.useRef(null),k=(0,f.K4)(t,$);r.useEffect((()=>{null==C||C.registerValue(h.value)}),[]),r.useEffect((()=>{if(!m)return h.value!==S.current&&(null==C||C.cancelValue(S.current),null==C||C.registerValue(h.value),S.current=h.value),()=>null==C?void 0:C.cancelValue(h.value)}),[h.value]),r.useEffect((()=>{var e;(null===(e=$.current)||void 0===e?void 0:e.input)&&($.current.input.indeterminate=s)}),[s]);const E=v("checkbox",o),O=(0,Xe.A)(E),[I,M,N]=vh(E,O),z=Object.assign({},h);C&&!m&&(z.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),C.toggleOption&&C.toggleOption({label:c,value:h.value})},z.name=C.name,z.checked=C.value.includes(h.value));const P=i()(`${E}-wrapper`,{[`${E}-rtl`]:"rtl"===b,[`${E}-wrapper-checked`]:z.checked,[`${E}-wrapper-disabled`]:A,[`${E}-wrapper-in-form-item`]:x},null==y?void 0:y.className,a,l,N,O,M),j=i()({[`${E}-indeterminate`]:s},kf.D,M);return I(r.createElement($f.A,{component:"Checkbox",disabled:A},r.createElement("label",{className:P,style:Object.assign(Object.assign({},null==y?void 0:y.style),u),onMouseEnter:d,onMouseLeave:p},r.createElement(Sf,Object.assign({},z,{prefixCls:E,className:j,disabled:A,ref:k})),void 0!==c&&r.createElement("span",null,c))))};const jh=r.forwardRef(Ph);var Rh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{defaultValue:n,children:o,options:a=[],prefixCls:l,className:c,rootClassName:s,style:u,onChange:d}=e,f=Rh(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:p,direction:m}=r.useContext(Z.ConfigContext),[g,h]=r.useState(f.value||n||[]),[v,b]=r.useState([]);r.useEffect((()=>{"value"in f&&h(f.value||[])}),[f.value]);const y=r.useMemo((()=>a.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[a]),C=p("checkbox",l),x=`${C}-group`,w=(0,Xe.A)(C),[A,S,$]=vh(C,w),k=(0,G.A)(f,["value","disabled"]),E=a.length?y.map((e=>r.createElement(jh,{prefixCls:C,key:e.value.toString(),disabled:"disabled"in e?e.disabled:f.disabled,value:e.value,checked:g.includes(e.value),onChange:e.onChange,className:`${x}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):o,O={toggleOption:e=>{const t=g.indexOf(e.value),n=(0,Y.A)(g);-1===t?n.push(e.value):n.splice(t,1),"value"in f||h(n),null==d||d(n.filter((e=>v.includes(e))).sort(((e,t)=>y.findIndex((t=>t.value===e))-y.findIndex((e=>e.value===t)))))},value:g,disabled:f.disabled,name:f.name,registerValue:e=>{b((t=>[].concat((0,Y.A)(t),[e])))},cancelValue:e=>{b((t=>t.filter((t=>t!==e))))}},I=i()(x,{[`${x}-rtl`]:"rtl"===m},c,s,$,w,S);return A(r.createElement("div",Object.assign({className:I,style:u},k,{ref:t}),r.createElement(Nh.Provider,{value:O},E)))})),Dh=Th,Bh=jh;Bh.Group=Dh,Bh.__ANT_CHECKBOX=!0;const Lh=Bh,Hh=(0,r.createContext)({}),Fh=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},_h=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let e=o;e>=0;e--)0===e?(i[`${r}${t}-${e}`]={display:"none"},i[`${r}-push-${e}`]={insetInlineStart:"auto"},i[`${r}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${e}`]={marginInlineStart:0},i[`${r}${t}-order-${e}`]={order:0}):(i[`${r}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/o*100}%`,maxWidth:e/o*100+"%"}],i[`${r}${t}-push-${e}`]={insetInlineStart:e/o*100+"%"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:e/o*100+"%"},i[`${r}${t}-offset-${e}`]={marginInlineStart:e/o*100+"%"},i[`${r}${t}-order-${e}`]={order:e});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),Wh=(0,J.OF)("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),Vh=(0,J.OF)("Grid",(e=>{const t=(0,Ue.oX)(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Fh(t),_h(t,""),_h(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${(0,he.zA)(t)})`]:Object.assign({},_h(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));var qh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:o}=r.useContext(Z.ConfigContext),{gutter:a,wrap:l}=r.useContext(Hh),{prefixCls:c,span:s,order:u,offset:d,push:f,pull:p,className:m,children:g,flex:h,style:v}=e,b=qh(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",c),[C,x,w]=Vh(y),A={};let S={};Xh.forEach((t=>{let n={};const r=e[t];"number"==typeof r?n.span=r:"object"==typeof r&&(n=r||{}),delete b[t],S=Object.assign(Object.assign({},S),{[`${y}-${t}-${n.span}`]:void 0!==n.span,[`${y}-${t}-order-${n.order}`]:n.order||0===n.order,[`${y}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${y}-${t}-push-${n.push}`]:n.push||0===n.push,[`${y}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${y}-rtl`]:"rtl"===o}),n.flex&&(S[`${y}-${t}-flex`]=!0,A[`--${y}-${t}-flex`]=Kh(n.flex))}));const $=i()(y,{[`${y}-${s}`]:void 0!==s,[`${y}-order-${u}`]:u,[`${y}-offset-${d}`]:d,[`${y}-push-${f}`]:f,[`${y}-pull-${p}`]:p},m,S,x,w),k={};if(a&&a[0]>0){const e=a[0]/2;k.paddingLeft=e,k.paddingRight=e}return h&&(k.flex=Kh(h),!1!==l||k.minWidth||(k.minWidth=0)),C(r.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},k),v),A),className:$,ref:t}),g))}));const Yh=Gh,Uh=Yh;var Qh=n(696),Zh=n(9911);const Jh=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},(0,ve.dF)(e)),{borderBlockStart:`${(0,he.zA)(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,he.zA)(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,he.zA)(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,he.zA)(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,he.zA)(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${(0,he.zA)(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${(0,he.zA)(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},ev=(0,J.OF)("Divider",(e=>{const t=(0,Ue.oX)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[Jh(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}});var tv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,divider:o}=r.useContext(Z.ConfigContext),{prefixCls:a,type:l="horizontal",orientation:c="center",orientationMargin:s,className:u,rootClassName:d,children:f,dashed:p,variant:m="solid",plain:g,style:h}=e,v=tv(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),b=t("divider",a),[y,C,x]=ev(b),w=!!f,A="left"===c&&null!=s,S="right"===c&&null!=s,$=i()(b,null==o?void 0:o.className,C,x,`${b}-${l}`,{[`${b}-with-text`]:w,[`${b}-with-text-${c}`]:w,[`${b}-dashed`]:!!p,[`${b}-${m}`]:"solid"!==m,[`${b}-plain`]:!!g,[`${b}-rtl`]:"rtl"===n,[`${b}-no-default-orientation-margin-left`]:A,[`${b}-no-default-orientation-margin-right`]:S},u,d),k=r.useMemo((()=>"number"==typeof s?s:/^\d+$/.test(s)?Number(s):s),[s]),E=Object.assign(Object.assign({},A&&{marginLeft:k}),S&&{marginRight:k});return y(r.createElement("div",Object.assign({className:$,style:Object.assign(Object.assign({},null==o?void 0:o.style),h)},v,{role:"separator"}),f&&"vertical"!==l&&r.createElement("span",{className:`${b}-inner-text`,style:E},f)))};var rv=n(2153),ov=function(e,t){if(!e)return null;var n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},iv=function(e){return void 0!==e?"".concat(e,"px"):void 0};function av(e){var t=e.prefixCls,n=e.containerRef,o=e.value,a=e.getValueIndex,l=e.motionName,c=e.onMotionStart,u=e.onMotionEnd,d=e.direction,p=e.vertical,m=void 0!==p&&p,g=r.useRef(null),h=r.useState(o),v=(0,vt.A)(h,2),b=v[0],y=v[1],C=function(e){var r,o=a(e),i=null===(r=n.current)||void 0===r?void 0:r.querySelectorAll(".".concat(t,"-item"))[o];return(null==i?void 0:i.offsetParent)&&i},x=r.useState(null),w=(0,vt.A)(x,2),A=w[0],S=w[1],$=r.useState(null),k=(0,vt.A)($,2),E=k[0],O=k[1];(0,Ct.A)((function(){if(b!==o){var e=C(b),t=C(o),n=ov(e,m),r=ov(t,m);y(o),S(n),O(r),e&&t?c():u()}}),[o]);var I=r.useMemo((function(){var e;return iv(m?null!==(e=null==A?void 0:A.top)&&void 0!==e?e:0:"rtl"===d?-(null==A?void 0:A.right):null==A?void 0:A.left)}),[m,d,A]),M=r.useMemo((function(){var e;return iv(m?null!==(e=null==E?void 0:E.top)&&void 0!==e?e:0:"rtl"===d?-(null==E?void 0:E.right):null==E?void 0:E.left)}),[m,d,E]);return A&&E?r.createElement(pe.Ay,{visible:!0,motionName:l,motionAppear:!0,onAppearStart:function(){return m?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return m?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){S(null),O(null),u()}},(function(e,n){var o=e.className,a=e.style,l=(0,s.A)((0,s.A)({},a),{},{"--thumb-start-left":I,"--thumb-start-width":iv(null==A?void 0:A.width),"--thumb-active-left":M,"--thumb-active-width":iv(null==E?void 0:E.width),"--thumb-start-top":I,"--thumb-start-height":iv(null==A?void 0:A.height),"--thumb-active-top":M,"--thumb-active-height":iv(null==E?void 0:E.height)}),c={ref:(0,f.K4)(g,n),style:l,className:i()("".concat(t,"-thumb"),o)};return r.createElement("div",c)})):null}var lv=["prefixCls","direction","vertical","options","disabled","defaultValue","value","onChange","className","motionName"];function cv(e){return e.map((function(e){if("object"===(0,u.A)(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==(0,u.A)(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return(0,s.A)((0,s.A)({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}var sv=function(e){var t=e.prefixCls,n=e.className,o=e.disabled,a=e.checked,l=e.label,c=e.title,s=e.value,u=e.onChange;return r.createElement("label",{className:i()(n,(0,ht.A)({},"".concat(t,"-item-disabled"),o))},r.createElement("input",{className:"".concat(t,"-item-input"),type:"radio",disabled:o,checked:a,onChange:function(e){o||u(e,s)}}),r.createElement("div",{className:"".concat(t,"-item-label"),title:c,role:"option","aria-selected":a},l))},uv=r.forwardRef((function(e,t){var n,o,l=e.prefixCls,c=void 0===l?"rc-segmented":l,s=e.direction,u=e.vertical,d=e.options,p=void 0===d?[]:d,m=e.disabled,g=e.defaultValue,h=e.value,v=e.onChange,b=e.className,y=void 0===b?"":b,C=e.motionName,x=void 0===C?"thumb-motion":C,w=(0,bt.A)(e,lv),A=r.useRef(null),S=r.useMemo((function(){return(0,f.K4)(A,t)}),[A,t]),$=r.useMemo((function(){return cv(p)}),[p]),k=(0,yt.A)(null===(n=$[0])||void 0===n?void 0:n.value,{value:h,defaultValue:g}),E=(0,vt.A)(k,2),O=E[0],I=E[1],M=r.useState(!1),N=(0,vt.A)(M,2),z=N[0],P=N[1],j=function(e,t){m||(I(t),null==v||v(t))},R=(0,G.A)(w,["children"]);return r.createElement("div",(0,a.A)({role:"listbox","aria-label":"segmented control"},R,{className:i()(c,(o={},(0,ht.A)(o,"".concat(c,"-rtl"),"rtl"===s),(0,ht.A)(o,"".concat(c,"-disabled"),m),(0,ht.A)(o,"".concat(c,"-vertical"),u),o),y),ref:S}),r.createElement("div",{className:"".concat(c,"-group")},r.createElement(av,{vertical:u,prefixCls:c,value:O,containerRef:A,motionName:"".concat(c,"-").concat(x),direction:s,getValueIndex:function(e){return $.findIndex((function(t){return t.value===e}))},onMotionStart:function(){P(!0)},onMotionEnd:function(){P(!1)}}),$.map((function(e){return r.createElement(sv,(0,a.A)({},e,{key:e.value,prefixCls:c,className:i()(e.className,"".concat(c,"-item"),(0,ht.A)({},"".concat(c,"-item-selected"),e.value===O&&!z)),checked:e.value===O,onChange:j,disabled:!!m||!!e.disabled}))}))))}));const dv=uv;function fv(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function pv(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const mv=Object.assign({overflow:"hidden"},ve.L9),gv=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ve.dF)(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${(0,he.zA)(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},pv(e)),{color:e.itemSelectedColor}),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:(0,he.zA)(n),padding:`0 ${(0,he.zA)(e.segmentedPaddingHorizontal)}`},mv),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},pv(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${(0,he.zA)(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:(0,he.zA)(r),padding:`0 ${(0,he.zA)(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:(0,he.zA)(o),padding:`0 ${(0,he.zA)(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),fv(`&-disabled ${t}-item`,e)),fv(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},hv=(0,J.OF)("Segmented",(e=>{const{lineWidth:t,calc:n}=e,r=(0,Ue.oX)(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[gv(r)]}),(e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i,lineWidthBold:a,colorBgLayout:l}=e;return{trackPadding:a,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}}));var vv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:o,rootClassName:a,block:l,options:c=[],size:s="middle",style:u,vertical:d}=e,f=vv(e,["prefixCls","className","rootClassName","block","options","size","style","vertical"]),{getPrefixCls:p,direction:m,segmented:g}=r.useContext(Z.ConfigContext),h=p("segmented",n),[v,b,y]=hv(h),C=(0,ro.A)(s),x=r.useMemo((()=>c.map((e=>{if(function(e){return"object"==typeof e&&!!(null==e?void 0:e.icon)}(e)){const{icon:t,label:n}=e,o=vv(e,["icon","label"]);return Object.assign(Object.assign({},o),{label:r.createElement(r.Fragment,null,r.createElement("span",{className:`${h}-item-icon`},t),n&&r.createElement("span",null,n))})}return e}))),[c,h]),w=i()(o,a,null==g?void 0:g.className,{[`${h}-block`]:l,[`${h}-sm`]:"small"===C,[`${h}-lg`]:"large"===C,[`${h}-vertical`]:d},b,y),A=Object.assign(Object.assign({},null==g?void 0:g.style),u);return v(r.createElement(dv,Object.assign({},f,{className:w,style:A,options:x,ref:t,prefixCls:h,direction:m,vertical:d})))}));const yv=bv,Cv=r.createContext({}),xv=r.createContext({});var wv=n(6058);const Av=e=>{let{prefixCls:t,value:n,onChange:o}=e;return r.createElement("div",{className:`${t}-clear`,onClick:()=>{if(o&&n&&!n.cleared){const e=n.toHsb();e.a=0;const t=(0,wv.Z6)(e);t.cleared=!0,o(t)}}})};var Sv;!function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"}(Sv||(Sv={}));const $v={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"};var kv=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:$v}))};const Ev=r.forwardRef(kv);function Ov(){return"function"==typeof BigInt}function Iv(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function Mv(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(r)}}function Nv(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function zv(e){var t=String(e);if(Nv(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&jv(t)?t.length-t.indexOf(".")-1:0}function Pv(e){var t=String(e);if(Nv(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Ov()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":Mv("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Tv=function(){function e(t){(0,B.A)(this,e),(0,ht.A)(this,"origin",""),(0,ht.A)(this,"number",void 0),(0,ht.A)(this,"empty",void 0),Iv(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return(0,L.A)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":Pv(this.number):this.origin}}]),e}();function Dv(e){return Ov()?new Rv(e):new Tv(e)}function Bv(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=Mv(e),i=o.negativeStr,a=o.integerStr,l=o.decimalStr,c="".concat(t).concat(l),s="".concat(i).concat(a);if(n>=0){var u=Number(l[n]);return u>=5&&!r?Bv(Dv(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?s:"".concat(s).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===c?s:"".concat(s).concat(c)}const Lv=Dv;function Hv(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Fv(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=Hv(t,e,r)):n(o=Hv(t,e,""))}}function _v(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var Wv=r.forwardRef((function(e,t){var n,o,l=e.inputElement,c=e.children,d=e.prefixCls,f=e.prefix,p=e.suffix,m=e.addonBefore,g=e.addonAfter,h=e.className,v=e.style,b=e.disabled,y=e.readOnly,C=e.focused,x=e.triggerFocus,w=e.allowClear,A=e.value,S=e.handleReset,$=e.hidden,k=e.classes,E=e.classNames,O=e.dataAttrs,I=e.styles,M=e.components,N=e.onClear,z=null!=c?c:l,P=(null==M?void 0:M.affixWrapper)||"span",j=(null==M?void 0:M.groupWrapper)||"span",R=(null==M?void 0:M.wrapper)||"span",T=(null==M?void 0:M.groupAddon)||"span",D=(0,r.useRef)(null),B=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),L=(0,r.cloneElement)(z,{value:A,className:i()(z.props.className,!B&&(null==E?void 0:E.variant))||null}),H=(0,r.useRef)(null);if(r.useImperativeHandle(t,(function(){return{nativeElement:H.current||D.current}})),B){var F=null;if(w){var _=!b&&!y&&A,W="".concat(d,"-clear-icon"),V="object"===(0,u.A)(w)&&null!=w&&w.clearIcon?w.clearIcon:"✖";F=r.createElement("span",{onClick:function(e){null==S||S(e),null==N||N()},onMouseDown:function(e){return e.preventDefault()},className:i()(W,(0,ht.A)((0,ht.A)({},"".concat(W,"-hidden"),!_),"".concat(W,"-has-suffix"),!!p)),role:"button",tabIndex:-1},V)}var q="".concat(d,"-affix-wrapper"),K=i()(q,(0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)({},"".concat(d,"-disabled"),b),"".concat(q,"-disabled"),b),"".concat(q,"-focused"),C),"".concat(q,"-readonly"),y),"".concat(q,"-input-with-clear-btn"),p&&w&&A),null==k?void 0:k.affixWrapper,null==E?void 0:E.affixWrapper,null==E?void 0:E.variant),X=(p||w)&&r.createElement("span",{className:i()("".concat(d,"-suffix"),null==E?void 0:E.suffix),style:null==I?void 0:I.suffix},F,p);L=r.createElement(P,(0,a.A)({className:K,style:null==I?void 0:I.affixWrapper,onClick:function(e){var t;null!==(t=D.current)&&void 0!==t&&t.contains(e.target)&&(null==x||x())}},null==O?void 0:O.affixWrapper,{ref:D}),f&&r.createElement("span",{className:i()("".concat(d,"-prefix"),null==E?void 0:E.prefix),style:null==I?void 0:I.prefix},f),L,X)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var G="".concat(d,"-group"),Y="".concat(G,"-addon"),U="".concat(G,"-wrapper"),Q=i()("".concat(d,"-wrapper"),G,null==k?void 0:k.wrapper,null==E?void 0:E.wrapper),Z=i()(U,(0,ht.A)({},"".concat(U,"-disabled"),b),null==k?void 0:k.group,null==E?void 0:E.groupWrapper);L=r.createElement(j,{className:Z,ref:H},r.createElement(R,{className:Q},m&&r.createElement(T,{className:Y},m),L,g&&r.createElement(T,{className:Y},g)))}return r.cloneElement(L,{className:i()(null===(n=L.props)||void 0===n?void 0:n.className,h)||null,style:(0,s.A)((0,s.A)({},null===(o=L.props)||void 0===o?void 0:o.style),v),hidden:$})}));const Vv=Wv;var qv=["show"];function Kv(e,t){return r.useMemo((function(){var n={};t&&(n.show="object"===(0,u.A)(t)&&t.formatter?t.formatter:!!t);var r=n=(0,s.A)((0,s.A)({},n),e),o=r.show,i=(0,bt.A)(r,qv);return(0,s.A)((0,s.A)({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var Xv=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Gv=(0,r.forwardRef)((function(e,t){var n=e.autoComplete,o=e.onChange,l=e.onFocus,c=e.onBlur,u=e.onPressEnter,d=e.onKeyDown,f=e.onKeyUp,p=e.prefixCls,m=void 0===p?"rc-input":p,g=e.disabled,h=e.htmlSize,v=e.className,b=e.maxLength,y=e.suffix,C=e.showCount,x=e.count,w=e.type,A=void 0===w?"text":w,S=e.classes,$=e.classNames,k=e.styles,E=e.onCompositionStart,O=e.onCompositionEnd,I=(0,bt.A)(e,Xv),M=(0,r.useState)(!1),N=(0,vt.A)(M,2),z=N[0],P=N[1],j=(0,r.useRef)(!1),R=(0,r.useRef)(!1),T=(0,r.useRef)(null),D=(0,r.useRef)(null),B=function(e){T.current&&_v(T.current,e)},L=(0,yt.A)(e.defaultValue,{value:e.value}),H=(0,vt.A)(L,2),F=H[0],_=H[1],W=null==F?"":String(F),V=(0,r.useState)(null),q=(0,vt.A)(V,2),K=q[0],X=q[1],U=Kv(x,C),Q=U.max||b,Z=U.strategy(W),J=!!Q&&Z>Q;(0,r.useImperativeHandle)(t,(function(){var e;return{focus:B,blur:function(){var e;null===(e=T.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=T.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=T.current)||void 0===e||e.select()},input:T.current,nativeElement:(null===(e=D.current)||void 0===e?void 0:e.nativeElement)||T.current}})),(0,r.useEffect)((function(){P((function(e){return(!e||!g)&&e}))}),[g]);var ee=function(e,t,n){var r,i,a=t;if(!j.current&&U.exceedFormatter&&U.max&&U.strategy(t)>U.max)t!==(a=U.exceedFormatter(t,{max:U.max}))&&X([(null===(r=T.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=T.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;_(a),T.current&&Fv(T.current,e,o,a)};(0,r.useEffect)((function(){var e;K&&(null===(e=T.current)||void 0===e||e.setSelectionRange.apply(e,(0,Y.A)(K)))}),[K]);var te,ne=function(e){ee(e,e.target.value,{source:"change"})},re=function(e){j.current=!1,ee(e,e.currentTarget.value,{source:"compositionEnd"}),null==O||O(e)},oe=function(e){u&&"Enter"===e.key&&!R.current&&(R.current=!0,u(e)),null==d||d(e)},ie=function(e){"Enter"===e.key&&(R.current=!1),null==f||f(e)},ae=function(e){P(!0),null==l||l(e)},le=function(e){P(!1),null==c||c(e)},ce=J&&"".concat(m,"-out-of-range");return r.createElement(Vv,(0,a.A)({},I,{prefixCls:m,className:i()(v,ce),handleReset:function(e){_(""),B(),T.current&&Fv(T.current,e,o)},value:W,focused:z,triggerFocus:B,suffix:function(){var e=Number(Q)>0;if(y||U.show){var t=U.showFormatter?U.showFormatter({value:W,count:Z,maxLength:Q}):"".concat(Z).concat(e?" / ".concat(Q):"");return r.createElement(r.Fragment,null,U.show&&r.createElement("span",{className:i()("".concat(m,"-show-count-suffix"),(0,ht.A)({},"".concat(m,"-show-count-has-suffix"),!!y),null==$?void 0:$.count),style:(0,s.A)({},null==k?void 0:k.count)},t),y)}return null}(),disabled:g,classes:S,classNames:$,styles:k}),(te=(0,G.A)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),r.createElement("input",(0,a.A)({autoComplete:n},te,{onChange:ne,onFocus:ae,onBlur:le,onKeyDown:oe,onKeyUp:ie,className:i()(m,(0,ht.A)({},"".concat(m,"-disabled"),g),null==$?void 0:$.input),style:null==k?void 0:k.input,ref:T,size:h,type:A,onCompositionStart:function(e){j.current=!0,null==E||E(e)},onCompositionEnd:re}))))}));const Yv=Gv;const Uv=function(){var e=(0,r.useState)(!1),t=(0,vt.A)(e,2),n=t[0],o=t[1];return(0,Ct.A)((function(){o(xt())}),[]),n};function Qv(e){var t=e.prefixCls,n=e.upNode,o=e.downNode,l=e.upDisabled,c=e.downDisabled,s=e.onStep,u=r.useRef(),d=r.useRef([]),f=r.useRef();f.current=s;var p=function(){clearTimeout(u.current)},m=function(e,t){e.preventDefault(),p(),f.current(t),u.current=setTimeout((function e(){f.current(t),u.current=setTimeout(e,200)}),600)};if(r.useEffect((function(){return function(){p(),d.current.forEach((function(e){return U.A.cancel(e)}))}}),[]),Uv())return null;var g="".concat(t,"-handler"),h=i()(g,"".concat(g,"-up"),(0,ht.A)({},"".concat(g,"-up-disabled"),l)),v=i()(g,"".concat(g,"-down"),(0,ht.A)({},"".concat(g,"-down-disabled"),c)),b=function(){return d.current.push((0,U.A)(p))},y={unselectable:"on",role:"button",onMouseUp:b,onMouseLeave:b};return r.createElement("div",{className:"".concat(g,"-wrap")},r.createElement("span",(0,a.A)({},y,{onMouseDown:function(e){m(e,!0)},"aria-label":"Increase Value","aria-disabled":l,className:h}),n||r.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),r.createElement("span",(0,a.A)({},y,{onMouseDown:function(e){m(e,!1)},"aria-label":"Decrease Value","aria-disabled":c,className:v}),o||r.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Zv(e){var t="number"==typeof e?Pv(e):Mv(e).fullStr;return t.includes(".")?Mv(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var Jv=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],eb=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],tb=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},nb=function(e){var t=Lv(e);return t.isInvalidate()?null:t},rb=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,l=e.style,s=e.min,d=e.max,p=e.step,m=void 0===p?1:p,g=e.defaultValue,h=e.value,v=e.disabled,b=e.readOnly,y=e.upHandler,C=e.downHandler,x=e.keyboard,w=e.changeOnWheel,A=void 0!==w&&w,S=e.controls,$=void 0===S||S,k=(e.classNames,e.stringMode),E=e.parser,O=e.formatter,I=e.precision,M=e.decimalSeparator,N=e.onChange,z=e.onInput,P=e.onPressEnter,j=e.onStep,R=e.changeOnBlur,T=void 0===R||R,D=e.domRef,B=(0,bt.A)(e,Jv),L="".concat(n,"-input"),H=r.useRef(null),F=r.useState(!1),_=(0,vt.A)(F,2),W=_[0],V=_[1],q=r.useRef(!1),K=r.useRef(!1),X=r.useRef(!1),G=r.useState((function(){return Lv(null!=h?h:g)})),Y=(0,vt.A)(G,2),Q=Y[0],Z=Y[1];var J=r.useCallback((function(e,t){if(!t)return I>=0?I:Math.max(zv(e),zv(m))}),[I,m]),ee=r.useCallback((function(e){var t=String(e);if(E)return E(t);var n=t;return M&&(n=n.replace(M,".")),n.replace(/[^\w.-]+/g,"")}),[E,M]),te=r.useRef(""),ne=r.useCallback((function(e,t){if(O)return O(e,{userTyping:t,input:String(te.current)});var n="number"==typeof e?Pv(e):e;if(!t){var r=J(n,t);if(jv(n)&&(M||r>=0))n=Bv(n,M||".",r)}return n}),[O,J,M]),re=r.useState((function(){var e=null!=g?g:h;return Q.isInvalidate()&&["string","number"].includes((0,u.A)(e))?Number.isNaN(e)?"":e:ne(Q.toString(),!1)})),oe=(0,vt.A)(re,2),ie=oe[0],ae=oe[1];function le(e,t){ae(ne(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}te.current=ie;var ce,se,ue=r.useMemo((function(){return nb(d)}),[d,I]),de=r.useMemo((function(){return nb(s)}),[s,I]),fe=r.useMemo((function(){return!(!ue||!Q||Q.isInvalidate())&&ue.lessEquals(Q)}),[ue,Q]),pe=r.useMemo((function(){return!(!de||!Q||Q.isInvalidate())&&Q.lessEquals(de)}),[de,Q]),me=function(e,t){var n=(0,r.useRef)(null);return[function(){try{var t=e.selectionStart,r=e.selectionEnd,o=e.value,i=o.substring(0,t),a=o.substring(r);n.current={start:t,end:r,value:o,beforeTxt:i,afterTxt:a}}catch(e){}},function(){if(e&&n.current&&t)try{var r=e.value,o=n.current,i=o.beforeTxt,a=o.afterTxt,l=o.start,s=r.length;if(r.startsWith(i))s=i.length;else if(r.endsWith(a))s=r.length-n.current.afterTxt.length;else{var u=i[l-1],d=r.indexOf(u,l-1);-1!==d&&(s=d+1)}e.setSelectionRange(s,s)}catch(e){(0,c.Ay)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]}(H.current,W),ge=(0,vt.A)(me,2),he=ge[0],ve=ge[1],be=function(e){return ue&&!e.lessEquals(ue)?ue:de&&!de.lessEquals(e)?de:null},ye=function(e){return!be(e)},Ce=function(e,t){var n,r=e,o=ye(r)||r.isEmpty();if(r.isEmpty()||t||(r=be(r)||r,o=!0),!b&&!v&&o){var i=r.toString(),a=J(i,t);return a>=0&&(r=Lv(Bv(i,".",a)),ye(r)||(r=Lv(Bv(i,".",a,!0)))),r.equals(Q)||(n=r,void 0===h&&Z(n),null==N||N(r.isEmpty()?null:tb(k,r)),void 0===h&&le(r,t)),r}return Q},xe=(ce=(0,r.useRef)(0),se=function(){U.A.cancel(ce.current)},(0,r.useEffect)((function(){return se}),[]),function(e){se(),ce.current=(0,U.A)((function(){e()}))}),we=function e(t){if(he(),te.current=t,ae(t),!K.current){var n=ee(t),r=Lv(n);r.isNaN()||Ce(r,!0)}null==z||z(t),xe((function(){var n=t;E||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},Ae=function(e){var t;if(!(e&&fe||!e&&pe)){q.current=!1;var n=Lv(X.current?Zv(m):m);e||(n=n.negate());var r=(Q||Lv(0)).add(n.toString()),o=Ce(r,!1);null==j||j(tb(k,o),{offset:X.current?Zv(m):m,type:e?"up":"down"}),null===(t=H.current)||void 0===t||t.focus()}},Se=function(e){var t,n=Lv(ee(ie));t=n.isNaN()?Ce(Q,e):Ce(n,e),void 0!==h?le(Q,!1):t.isNaN()||le(t,!1)};r.useEffect((function(){if(A&&W){var e=function(e){Ae(e.deltaY<0),e.preventDefault()},t=H.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}}));return(0,Ct.o)((function(){Q.isInvalidate()||le(Q,!1)}),[I,O]),(0,Ct.o)((function(){var e=Lv(h);Z(e);var t=Lv(ee(ie));e.equals(t)&&q.current&&!O||le(e,q.current)}),[h]),(0,Ct.o)((function(){O&&ve()}),[ie]),r.createElement("div",{ref:D,className:i()(n,o,(0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)({},"".concat(n,"-focused"),W),"".concat(n,"-disabled"),v),"".concat(n,"-readonly"),b),"".concat(n,"-not-a-number"),Q.isNaN()),"".concat(n,"-out-of-range"),!Q.isInvalidate()&&!ye(Q))),style:l,onFocus:function(){V(!0)},onBlur:function(){T&&Se(!1),V(!1),q.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;q.current=!0,X.current=n,"Enter"===t&&(K.current||(q.current=!1),Se(!1),null==P||P(e)),!1!==x&&!K.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(Ae("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){q.current=!1,X.current=!1},onCompositionStart:function(){K.current=!0},onCompositionEnd:function(){K.current=!1,we(H.current.value)},onBeforeInput:function(){q.current=!0}},$&&r.createElement(Qv,{prefixCls:n,upNode:y,downNode:C,upDisabled:fe,downDisabled:pe,onStep:Ae}),r.createElement("div",{className:"".concat(L,"-wrap")},r.createElement("input",(0,a.A)({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":d,"aria-valuenow":Q.isInvalidate()?null:Q.toString(),step:m},B,{ref:(0,f.K4)(H,t),className:L,value:ie,onChange:function(e){we(e.target.value)},disabled:v,readOnly:b}))))})),ob=r.forwardRef((function(e,t){var n=e.disabled,o=e.style,i=e.prefixCls,l=void 0===i?"rc-input-number":i,c=e.value,s=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,p=e.className,m=e.classNames,g=(0,bt.A)(e,eb),h=r.useRef(null),v=r.useRef(null),b=r.useRef(null),y=function(e){b.current&&_v(b.current,e)};return r.useImperativeHandle(t,(function(){return e=b.current,t={focus:y,nativeElement:h.current.nativeElement||v.current},"undefined"!=typeof Proxy&&e?new Proxy(e,{get:function(e,n){if(t[n])return t[n];var r=e[n];return"function"==typeof r?r.bind(e):r}}):e;var e,t})),r.createElement(Vv,{className:p,triggerFocus:y,prefixCls:l,value:c,disabled:n,style:o,prefix:s,suffix:u,addonAfter:f,addonBefore:d,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},r.createElement(rb,(0,a.A)({prefixCls:l,disabled:n,ref:b,domRef:v,className:null==m?void 0:m.input},g)))}));const ib=ob;var ab=n(1587),lb=n(1594),cb=n(9222);const sb=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i="lg"===t?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},ub=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:l,controlHeightSM:c,colorError:s,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:f,paddingInlineLG:p,colorTextDescription:m,motionDurationMid:g,handleHoverColor:h,handleOpacity:v,paddingInline:b,paddingBlock:y,handleBg:C,handleActiveBg:x,colorTextDisabled:w,borderRadiusSM:A,borderRadiusLG:S,controlWidth:$,handleBorderColor:k,filledHandleBg:E,lineHeightLG:O,calc:I}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ve.dF)(e)),(0,lb.wj)(e)),{display:"inline-block",width:$,margin:0,padding:0,borderRadius:o}),(0,cb.Eb)(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${(0,he.zA)(n)} ${r} ${k}`}}})),(0,cb.sA)(e,{[`${t}-handler-wrap`]:{background:E,[`${t}-handler-down`]:{borderBlockStart:`${(0,he.zA)(n)} ${r} ${k}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:C}}})),(0,cb.lB)(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:O,borderRadius:S,[`input${t}-input`]:{height:I(l).sub(I(n).mul(2)).equal(),padding:`${(0,he.zA)(f)} ${(0,he.zA)(p)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:A,[`input${t}-input`]:{height:I(c).sub(I(n).mul(2)).equal(),padding:`${(0,he.zA)(d)} ${(0,he.zA)(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,ve.dF)(e)),(0,lb.XM)(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:S,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:A}}},(0,cb.nm)(e)),(0,cb.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}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,ve.dF)(e)),{width:"100%",padding:`${(0,he.zA)(y)} ${(0,he.zA)(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),(0,lb.j_)(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:0,opacity:v,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:m,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,he.zA)(n)} ${r} ${k}`,transition:`all ${g} linear`,"&:active":{background:x},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,ve.Nk)()),{color:m,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},sb(e,"lg")),sb(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:w}})}]},db=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l,paddingInlineLG:c,paddingInlineSM:s,paddingBlockLG:u,paddingBlockSM:d,motionDurationMid:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${(0,he.zA)(n)} 0`}},(0,lb.wj)(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:c,[`input${t}-input`]:{padding:`${(0,he.zA)(u)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:s,[`input${t}-input`]:{padding:`${(0,he.zA)(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,transition:`margin ${f}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},fb=(0,J.OF)("InputNumber",(e=>{const t=(0,Ue.oX)(e,(0,Xf.C)(e));return[ub(t),db(t),(0,co.G)(t)]}),(e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto";return Object.assign(Object.assign({},(0,Xf.b)(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Vr.q(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0})}),{unitless:{handleOpacity:!0}});var pb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:o}=r.useContext(Z.ConfigContext),a=r.useRef(null);r.useImperativeHandle(t,(()=>a.current));const{className:l,rootClassName:c,size:s,disabled:u,prefixCls:d,addonBefore:f,addonAfter:p,prefix:m,suffix:g,bordered:h,readOnly:v,status:b,controls:y,variant:C}=e,x=pb(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),w=n("input-number",d),A=(0,Xe.A)(w),[S,$,k]=fb(w,A),{compactSize:E,compactItemClassnames:O}=(0,ao.RQ)(w,o);let I=r.createElement(Ev,{className:`${w}-handler-up-inner`}),M=r.createElement(ri,{className:`${w}-handler-down-inner`});const N="boolean"==typeof y?y:void 0;"object"==typeof y&&(I=void 0===y.upIcon?I:r.createElement("span",{className:`${w}-handler-up-inner`},y.upIcon),M=void 0===y.downIcon?M:r.createElement("span",{className:`${w}-handler-down-inner`},y.downIcon));const{hasFeedback:z,status:P,isFormItemInput:j,feedbackIcon:R}=r.useContext(oo.$W),T=_r(P,b),D=(0,ro.A)((e=>{var t;return null!==(t=null!=s?s:E)&&void 0!==t?t:e})),B=r.useContext(no.A),L=null!=u?u:B,[H,F]=io("inputNumber",C,h),_=z&&r.createElement(r.Fragment,null,R),W=i()({[`${w}-lg`]:"large"===D,[`${w}-sm`]:"small"===D,[`${w}-rtl`]:"rtl"===o,[`${w}-in-form-item`]:j},$),V=`${w}-group`;return S(r.createElement(ib,Object.assign({ref:a,disabled:L,className:i()(k,A,l,c,O),upHandler:I,downHandler:M,prefixCls:w,readOnly:v,controls:N,prefix:m,suffix:_||g,addonBefore:f&&r.createElement(Hi.A,{form:!0,space:!0},f),addonAfter:p&&r.createElement(Hi.A,{form:!0,space:!0},p),classNames:{input:W,variant:i()({[`${w}-${H}`]:F},Fr(w,T,z)),affixWrapper:i()({[`${w}-affix-wrapper-sm`]:"small"===D,[`${w}-affix-wrapper-lg`]:"large"===D,[`${w}-affix-wrapper-rtl`]:"rtl"===o,[`${w}-affix-wrapper-without-controls`]:!1===y},$),wrapper:i()({[`${V}-rtl`]:"rtl"===o},$),groupWrapper:i()({[`${w}-group-wrapper-sm`]:"small"===D,[`${w}-group-wrapper-lg`]:"large"===D,[`${w}-group-wrapper-rtl`]:"rtl"===o,[`${w}-group-wrapper-${H}`]:F},Fr(`${w}-group-wrapper`,T,z),$)}},x)))})),gb=mb;gb._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(ab.Ay,{theme:{components:{InputNumber:{handleVisible:!0}}}},r.createElement(mb,Object.assign({},e)));const hb=gb,vb=e=>{let{prefixCls:t,min:n=0,max:o=100,value:a,onChange:l,className:c,formatter:s}=e;const u=`${t}-steppers`,[d,f]=(0,r.useState)(a);return(0,r.useEffect)((()=>{Number.isNaN(a)||f(a)}),[a]),r.createElement(hb,{className:i()(u,c),min:n,max:o,value:d,formatter:s,size:"small",onChange:e=>{a||f(e||0),null==l||l(e)}})},bb=e=>{let{prefixCls:t,value:n,onChange:o}=e;const i=`${t}-alpha-input`,[a,l]=(0,r.useState)((0,wv.Z6)(n||"#000"));(0,r.useEffect)((()=>{n&&l(n)}),[n]);return r.createElement(vb,{value:(0,wv.Gp)(a),prefixCls:t,formatter:e=>`${e}%`,className:i,onChange:e=>{const t=a.toHsb();t.a=(e||0)/100;const r=(0,wv.Z6)(t);n||l(r),null==o||o(r)}})},yb=e=>{const{getPrefixCls:t,direction:n}=(0,r.useContext)(Z.ConfigContext),{prefixCls:o,className:a}=e,l=t("input-group",o),c=t("input"),[s,u]=(0,lb.Ay)(c),d=i()(l,{[`${l}-lg`]:"large"===e.size,[`${l}-sm`]:"small"===e.size,[`${l}-compact`]:e.compact,[`${l}-rtl`]:"rtl"===n},u,a),f=(0,r.useContext)(oo.$W),p=(0,r.useMemo)((()=>Object.assign(Object.assign({},f),{isFormItemInput:!1})),[f]);return s(r.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},r.createElement(oo.$W.Provider,{value:p},e.children)))},Cb=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:r.createElement(se.A,null)}),t};function xb(e,t){const n=(0,r.useRef)([]),o=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return(0,r.useEffect)((()=>(t&&o(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}var wb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:o,bordered:a=!0,status:l,size:c,disabled:s,onBlur:u,onFocus:d,suffix:p,allowClear:m,addonAfter:g,addonBefore:h,className:v,style:b,styles:y,rootClassName:C,onChange:x,classNames:w,variant:A}=e,S=wb(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);const{getPrefixCls:$,direction:k,input:E}=r.useContext(Z.ConfigContext),O=$("input",o),I=(0,r.useRef)(null),M=(0,Xe.A)(O),[N,z,P]=(0,lb.Ay)(O,M),{compactSize:j,compactItemClassnames:R}=(0,ao.RQ)(O,k),T=(0,ro.A)((e=>{var t;return null!==(t=null!=c?c:j)&&void 0!==t?t:e})),D=r.useContext(no.A),B=null!=s?s:D,{status:L,hasFeedback:H,feedbackIcon:F}=(0,r.useContext)(oo.$W),_=_r(L,l),W=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!H;(0,r.useRef)(W);const V=xb(I,!0),q=(H||p)&&r.createElement(r.Fragment,null,p,H&&F),K=Cb(null!=m?m:null==E?void 0:E.allowClear),[X,G]=io("input",A,a);return N(r.createElement(Yv,Object.assign({ref:(0,f.K4)(t,I),prefixCls:O,autoComplete:null==E?void 0:E.autoComplete},S,{disabled:B,onBlur:e=>{V(),null==u||u(e)},onFocus:e=>{V(),null==d||d(e)},style:Object.assign(Object.assign({},null==E?void 0:E.style),b),styles:Object.assign(Object.assign({},null==E?void 0:E.styles),y),suffix:q,allowClear:K,className:i()(v,C,P,M,R,null==E?void 0:E.className),onChange:e=>{V(),null==x||x(e)},addonBefore:h&&r.createElement(Hi.A,{form:!0,space:!0},h),addonAfter:g&&r.createElement(Hi.A,{form:!0,space:!0},g),classNames:Object.assign(Object.assign(Object.assign({},w),null==E?void 0:E.classNames),{input:i()({[`${O}-sm`]:"small"===T,[`${O}-lg`]:"large"===T,[`${O}-rtl`]:"rtl"===k},null==w?void 0:w.input,null===(n=null==E?void 0:E.classNames)||void 0===n?void 0:n.input,z),variant:i()({[`${O}-${X}`]:G},Fr(O,_)),affixWrapper:i()({[`${O}-affix-wrapper-sm`]:"small"===T,[`${O}-affix-wrapper-lg`]:"large"===T,[`${O}-affix-wrapper-rtl`]:"rtl"===k},z),wrapper:i()({[`${O}-group-rtl`]:"rtl"===k},z),groupWrapper:i()({[`${O}-group-wrapper-sm`]:"small"===T,[`${O}-group-wrapper-lg`]:"large"===T,[`${O}-group-wrapper-rtl`]:"rtl"===k,[`${O}-group-wrapper-${X}`]:G},Fr(`${O}-group-wrapper`,_,H),z)})})))}));const Sb=Ab,$b=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-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}}}},kb=(0,J.OF)(["Input","OTP"],(e=>{const t=(0,Ue.oX)(e,(0,Xf.C)(e));return[$b(t)]}),Xf.b);var Eb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{value:n,onChange:o,onActiveChange:i,index:a,mask:l}=e,c=Eb(e,["value","onChange","onActiveChange","index","mask"]),s=n&&"string"==typeof l?l:n,u=r.useRef(null);r.useImperativeHandle(t,(()=>u.current));const d=()=>{(0,U.A)((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return r.createElement(Sb,Object.assign({type:!0===l?"password":"text"},c,{ref:u,value:s,onInput:e=>{o(a,e.target.value)},onFocus:d,onKeyDown:e=>{const{key:t,ctrlKey:n,metaKey:r}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t?i(a+1):"z"===t&&(n||r)&&e.preventDefault(),d()},onKeyUp:e=>{"Backspace"!==e.key||n||i(a-1),d()},onMouseDown:d,onMouseUp:d}))})),Ib=Ob;var Mb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,length:o=6,size:a,defaultValue:l,value:c,onChange:s,formatter:u,variant:d,disabled:f,status:p,autoFocus:m,mask:g,type:h,onInput:v,inputMode:b}=e,y=Mb(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]);const{getPrefixCls:C,direction:x}=r.useContext(Z.ConfigContext),w=C("otp",n),A=(0,me.A)(y,{aria:!0,data:!0,attr:!0}),S=(0,Xe.A)(w),[$,k,E]=kb(w,S),O=(0,ro.A)((e=>null!=a?a:e)),I=r.useContext(oo.$W),M=_r(I.status,p),N=r.useMemo((()=>Object.assign(Object.assign({},I),{status:M,hasFeedback:!1,feedbackIcon:null})),[I,M]),z=r.useRef(null),P=r.useRef({});r.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=P.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;tu?u(e):e,[R,T]=r.useState(Nb(j(l||"")));r.useEffect((()=>{void 0!==c&&T(Nb(c))}),[c]);const D=(0,Te.A)((e=>{T(e),v&&v(e),s&&e.length===o&&e.every((e=>e))&&e.some(((e,t)=>R[t]!==e))&&s(e.join(""))})),B=(0,Te.A)(((e,t)=>{let n=(0,Y.A)(R);for(let t=0;t=0&&!n[e];e-=1)n.pop();const r=j(n.map((e=>e||" ")).join(""));return n=Nb(r).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),L=(e,t)=>{var n;const r=B(e,t),i=Math.min(e+t.length,o-1);i!==e&&(null===(n=P.current[i])||void 0===n||n.focus()),D(r)},H=e=>{var t;null===(t=P.current[e])||void 0===t||t.focus()},F={variant:d,disabled:f,status:M,mask:g,type:h,inputMode:b};return $(r.createElement("div",Object.assign({},A,{ref:z,className:i()(w,{[`${w}-sm`]:"small"===O,[`${w}-lg`]:"large"===O,[`${w}-rtl`]:"rtl"===x},E,k)}),r.createElement(oo.$W.Provider,{value:N},Array.from({length:o}).map(((e,t)=>{const n=`otp-${t}`,o=R[t]||"";return r.createElement(Ib,Object.assign({ref:e=>{P.current[t]=e},key:n,index:t,size:O,htmlSize:1,className:`${w}-input`,onChange:L,value:o,onActiveChange:H,autoFocus:0===t&&m},F))})))))})),Pb=zb;const jb={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"};var Rb=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:jb}))};const Tb=r.forwardRef(Rb);const Db={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"};var Bb=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:Db}))};const Lb=r.forwardRef(Bb);var Hb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe?r.createElement(Lb,null):r.createElement(Tb,null),_b={click:"onClick",hover:"onMouseOver"},Wb=r.forwardRef(((e,t)=>{const{disabled:n,action:o="click",visibilityToggle:a=!0,iconRender:l=Fb}=e,c=r.useContext(no.A),s=null!=n?n:c,u="object"==typeof a&&void 0!==a.visible,[d,p]=(0,r.useState)((()=>!!u&&a.visible)),m=(0,r.useRef)(null);r.useEffect((()=>{u&&p(a.visible)}),[u,a]);const g=xb(m),h=()=>{s||(d&&g(),p((e=>{var t;const n=!e;return"object"==typeof a&&(null===(t=a.onVisibleChange)||void 0===t||t.call(a,n)),n})))},{className:v,prefixCls:b,inputPrefixCls:y,size:C}=e,x=Hb(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=r.useContext(Z.ConfigContext),A=w("input",y),S=w("input-password",b),$=a&&(e=>{const t=_b[o]||"",n=l(d),i={[t]:h,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return r.cloneElement(r.isValidElement(n)?n:r.createElement("span",null,n),i)})(S),k=i()(S,v,{[`${S}-${C}`]:!!C}),E=Object.assign(Object.assign({},(0,G.A)(x,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:k,prefixCls:A,suffix:$});return C&&(E.size=C),r.createElement(Sb,Object.assign({ref:(0,f.K4)(t,m)},E))}));const Vb=Wb;var qb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:o,className:a,size:l,suffix:c,enterButton:s=!1,addonAfter:u,loading:d,disabled:p,onSearch:m,onChange:g,onCompositionStart:h,onCompositionEnd:v}=e,b=qb(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:y,direction:C}=r.useContext(Z.ConfigContext),x=r.useRef(!1),w=y("input-search",n),A=y("input",o),{compactSize:S}=(0,ao.RQ)(w,C),$=(0,ro.A)((e=>{var t;return null!==(t=null!=l?l:S)&&void 0!==t?t:e})),k=r.useRef(null),E=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=e=>{var t,n;m&&m(null===(n=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},I="boolean"==typeof s?r.createElement(li,null):null,M=`${w}-button`;let N;const z=s||{},P=z.type&&!0===z.type.__ANT_BUTTON;N=P||"button"===z.type?(0,ge.Ob)(z,Object.assign({onMouseDown:E,onClick:e=>{var t,n;null===(n=null===(t=null==z?void 0:z.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),O(e)},key:"enterButton"},P?{className:M,size:$}:{})):r.createElement(Qs.Ay,{className:M,type:s?"primary":void 0,size:$,disabled:p,key:"enterButton",onMouseDown:E,onClick:O,loading:d,icon:I},s),u&&(N=[N,(0,ge.Ob)(u,{key:"addonAfter"})]);const j=i()(w,{[`${w}-rtl`]:"rtl"===C,[`${w}-${$}`]:!!$,[`${w}-with-button`]:!!s},a);return r.createElement(Sb,Object.assign({ref:(0,f.K4)(k,t),onPressEnter:e=>{x.current||d||O(e)}},b,{size:$,onCompositionStart:e=>{x.current=!0,null==h||h(e)},onCompositionEnd:e=>{x.current=!1,null==v||v(e)},prefixCls:A,addonAfter:N,suffix:c,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&m&&m(e.target.value,e,{source:"clear"}),null==g||g(e)},className:j,disabled:p}))}));const Xb=Kb;var Gb,Yb=["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"],Ub={};function Qb(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Gb||((Gb=document.createElement("textarea")).setAttribute("tab-index","-1"),Gb.setAttribute("aria-hidden","true"),Gb.setAttribute("name","hiddenTextarea"),document.body.appendChild(Gb)),e.getAttribute("wrap")?Gb.setAttribute("wrap",e.getAttribute("wrap")):Gb.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Ub[n])return Ub[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:Yb.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Ub[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;Gb.setAttribute("style","".concat(c,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),Gb.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=Gb.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){Gb.value=" ";var p=Gb.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),s=f>d?"":"hidden",f=Math.min(d,f))}var m={height:f,overflowY:s,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}var Zb=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Jb=r.forwardRef((function(e,t){var n=e,o=n.prefixCls,l=n.defaultValue,c=n.value,d=n.autoSize,f=n.onResize,p=n.className,m=n.style,g=n.disabled,h=n.onChange,v=(n.onInternalAutoSize,(0,bt.A)(n,Zb)),b=(0,yt.A)(l,{value:c,postState:function(e){return null!=e?e:""}}),y=(0,vt.A)(b,2),C=y[0],x=y[1],w=r.useRef();r.useImperativeHandle(t,(function(){return{textArea:w.current}}));var A=r.useMemo((function(){return d&&"object"===(0,u.A)(d)?[d.minRows,d.maxRows]:[]}),[d]),S=(0,vt.A)(A,2),$=S[0],k=S[1],E=!!d,O=r.useState(2),I=(0,vt.A)(O,2),M=I[0],N=I[1],z=r.useState(),P=(0,vt.A)(z,2),j=P[0],R=P[1],T=function(){N(0)};(0,Ct.A)((function(){E&&T()}),[c,$,k,E]),(0,Ct.A)((function(){if(0===M)N(1);else if(1===M){var e=Qb(w.current,!1,$,k);N(2),R(e)}else!function(){try{if(document.activeElement===w.current){var e=w.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;w.current.setSelectionRange(t,n),w.current.scrollTop=r}}catch(e){}}()}),[M]);var D=r.useRef(),B=function(){U.A.cancel(D.current)};r.useEffect((function(){return B}),[]);var L=E?j:null,H=(0,s.A)((0,s.A)({},m),L);return 0!==M&&1!==M||(H.overflowY="hidden",H.overflowX="hidden"),r.createElement(X,{onResize:function(e){2===M&&(null==f||f(e),d&&(B(),D.current=(0,U.A)((function(){T()}))))},disabled:!(d||f)},r.createElement("textarea",(0,a.A)({},v,{ref:w,style:H,className:i()(o,p,(0,ht.A)({},"".concat(o,"-disabled"),g)),disabled:g,value:C,onChange:function(e){x(e.target.value),null==h||h(e)}})))}));const ey=Jb;var ty=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],ny=r.forwardRef((function(e,t){var n,o=e.defaultValue,l=e.value,c=e.onFocus,u=e.onBlur,d=e.onChange,f=e.allowClear,p=e.maxLength,m=e.onCompositionStart,g=e.onCompositionEnd,h=e.suffix,v=e.prefixCls,b=void 0===v?"rc-textarea":v,y=e.showCount,C=e.count,x=e.className,w=e.style,A=e.disabled,S=e.hidden,$=e.classNames,k=e.styles,E=e.onResize,O=e.onClear,I=e.onPressEnter,M=e.readOnly,N=e.autoSize,z=e.onKeyDown,P=(0,bt.A)(e,ty),j=(0,yt.A)(o,{value:l,defaultValue:o}),R=(0,vt.A)(j,2),T=R[0],D=R[1],B=null==T?"":String(T),L=r.useState(!1),H=(0,vt.A)(L,2),F=H[0],_=H[1],W=r.useRef(!1),V=r.useState(null),q=(0,vt.A)(V,2),K=q[0],X=q[1],G=(0,r.useRef)(null),U=(0,r.useRef)(null),Q=function(){var e;return null===(e=U.current)||void 0===e?void 0:e.textArea},Z=function(){Q().focus()};(0,r.useImperativeHandle)(t,(function(){var e;return{resizableTextArea:U.current,focus:Z,blur:function(){Q().blur()},nativeElement:(null===(e=G.current)||void 0===e?void 0:e.nativeElement)||Q()}})),(0,r.useEffect)((function(){_((function(e){return!A&&e}))}),[A]);var J=r.useState(null),ee=(0,vt.A)(J,2),te=ee[0],ne=ee[1];r.useEffect((function(){var e;te&&(e=Q()).setSelectionRange.apply(e,(0,Y.A)(te))}),[te]);var re,oe=Kv(C,y),ie=null!==(n=oe.max)&&void 0!==n?n:p,ae=Number(ie)>0,le=oe.strategy(B),ce=!!ie&&le>ie,se=function(e,t){var n=t;!W.current&&oe.exceedFormatter&&oe.max&&oe.strategy(t)>oe.max&&t!==(n=oe.exceedFormatter(t,{max:oe.max}))&&ne([Q().selectionStart||0,Q().selectionEnd||0]),D(n),Fv(e.currentTarget,e,d,n)},ue=h;oe.show&&(re=oe.showFormatter?oe.showFormatter({value:B,count:le,maxLength:ie}):"".concat(le).concat(ae?" / ".concat(ie):""),ue=r.createElement(r.Fragment,null,ue,r.createElement("span",{className:i()("".concat(b,"-data-count"),null==$?void 0:$.count),style:null==k?void 0:k.count},re)));var de=!N&&!y&&!f;return r.createElement(Vv,{ref:G,value:B,allowClear:f,handleReset:function(e){D(""),Z(),Fv(Q(),e,d)},suffix:ue,prefixCls:b,classNames:(0,s.A)((0,s.A)({},$),{},{affixWrapper:i()(null==$?void 0:$.affixWrapper,(0,ht.A)((0,ht.A)({},"".concat(b,"-show-count"),y),"".concat(b,"-textarea-allow-clear"),f))}),disabled:A,focused:F,className:i()(x,ce&&"".concat(b,"-out-of-range")),style:(0,s.A)((0,s.A)({},w),K&&!de?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof re?re:void 0}},hidden:S,readOnly:M,onClear:O},r.createElement(ey,(0,a.A)({},P,{autoSize:N,maxLength:p,onKeyDown:function(e){"Enter"===e.key&&I&&I(e),null==z||z(e)},onChange:function(e){se(e,e.target.value)},onFocus:function(e){_(!0),null==c||c(e)},onBlur:function(e){_(!1),null==u||u(e)},onCompositionStart:function(e){W.current=!0,null==m||m(e)},onCompositionEnd:function(e){W.current=!1,se(e,e.currentTarget.value),null==g||g(e)},className:i()(null==$?void 0:$.textarea),style:(0,s.A)((0,s.A)({},null==k?void 0:k.textarea),{},{resize:null==w?void 0:w.resize}),disabled:A,prefixCls:b,onResize:function(e){var t;null==E||E(e),null!==(t=Q())&&void 0!==t&&t.style.height&&X(!0)},ref:U,readOnly:M})))}));const ry=ny;var oy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,o;const{prefixCls:a,bordered:l=!0,size:c,disabled:s,status:u,allowClear:d,classNames:f,rootClassName:p,className:m,style:g,styles:h,variant:v}=e,b=oy(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);const{getPrefixCls:y,direction:C,textArea:x}=r.useContext(Z.ConfigContext),w=(0,ro.A)(c),A=r.useContext(no.A),S=null!=s?s:A,{status:$,hasFeedback:k,feedbackIcon:E}=r.useContext(oo.$W),O=_r($,u),I=r.useRef(null);r.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=I.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;_v(null===(n=null===(t=I.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=I.current)||void 0===e?void 0:e.blur()}}}));const M=y("input",a),N=(0,Xe.A)(M),[z,P,j]=(0,lb.Ay)(M,N),[R,T]=io("textArea",v,l),D=Cb(null!=d?d:null==x?void 0:x.allowClear);return z(r.createElement(ry,Object.assign({autoComplete:null==x?void 0:x.autoComplete},b,{style:Object.assign(Object.assign({},null==x?void 0:x.style),g),styles:Object.assign(Object.assign({},null==x?void 0:x.styles),h),disabled:S,allowClear:D,className:i()(j,N,m,p,null==x?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},f),null==x?void 0:x.classNames),{textarea:i()({[`${M}-sm`]:"small"===w,[`${M}-lg`]:"large"===w},P,null==f?void 0:f.textarea,null===(n=null==x?void 0:x.classNames)||void 0===n?void 0:n.textarea),variant:i()({[`${M}-${R}`]:T},Fr(M,O)),affixWrapper:i()(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:"rtl"===C,[`${M}-affix-wrapper-sm`]:"small"===w,[`${M}-affix-wrapper-lg`]:"large"===w,[`${M}-textarea-show-count`]:e.showCount||(null===(o=e.count)||void 0===o?void 0:o.show)},P)}),prefixCls:M,suffix:k&&r.createElement("span",{className:`${M}-textarea-suffix`},E),ref:I})))})),ay=iy,ly=Sb;ly.Group=yb,ly.Search=Xb,ly.TextArea=ay,ly.Password=Vb,ly.OTP=Pb;const cy=ly,sy=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,uy=e=>{let{prefixCls:t,value:n,onChange:o}=e;const i=`${t}-hex-input`,[a,l]=(0,r.useState)((()=>n?(0,Zh.Ol)(n.toHexString()):void 0));(0,r.useEffect)((()=>{n&&l((0,Zh.Ol)(n.toHexString()))}),[n]);return r.createElement(cy,{className:i,value:a,prefix:"#",onChange:e=>{const t=e.target.value;var n;l((0,Zh.Ol)(t)),n=(0,Zh.Ol)(t,!0),sy.test(`#${n}`)&&(null==o||o((0,wv.Z6)(t)))},size:"small"})},dy=e=>{let{prefixCls:t,value:n,onChange:o}=e;const i=`${t}-hsb-input`,[a,l]=(0,r.useState)((0,wv.Z6)(n||"#000"));(0,r.useEffect)((()=>{n&&l(n)}),[n]);const c=(e,t)=>{const r=a.toHsb();r[t]="h"===t?e:(e||0)/100;const i=(0,wv.Z6)(r);n||l(i),null==o||o(i)};return r.createElement("div",{className:i},r.createElement(vb,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:t,className:i,formatter:e=>(0,wv.W)(e||0).toString(),onChange:e=>c(Number(e),"h")}),r.createElement(vb,{max:100,min:0,value:100*Number(a.toHsb().s),prefixCls:t,className:i,formatter:e=>`${(0,wv.W)(e||0)}%`,onChange:e=>c(Number(e),"s")}),r.createElement(vb,{max:100,min:0,value:100*Number(a.toHsb().b),prefixCls:t,className:i,formatter:e=>`${(0,wv.W)(e||0)}%`,onChange:e=>c(Number(e),"b")}))},fy=e=>{let{prefixCls:t,value:n,onChange:o}=e;const i=`${t}-rgb-input`,[a,l]=(0,r.useState)((0,wv.Z6)(n||"#000"));(0,r.useEffect)((()=>{n&&l(n)}),[n]);const c=(e,t)=>{const r=a.toRgb();r[t]=e||0;const i=(0,wv.Z6)(r);n||l(i),null==o||o(i)};return r.createElement("div",{className:i},r.createElement(vb,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:t,className:i,onChange:e=>c(Number(e),"r")}),r.createElement(vb,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:t,className:i,onChange:e=>c(Number(e),"g")}),r.createElement(vb,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:t,className:i,onChange:e=>c(Number(e),"b")}))},py=[Sv.hex,Sv.hsb,Sv.rgb].map((e=>({value:e,label:e.toLocaleUpperCase()}))),my=e=>{const{prefixCls:t,format:n,value:o,disabledAlpha:i,onFormatChange:a,onChange:l,disabledFormat:c}=e,[s,u]=(0,yt.A)(Sv.hex,{value:n,onChange:a}),d=`${t}-input`,f=(0,r.useMemo)((()=>{const e={value:o,prefixCls:t,onChange:l};switch(s){case Sv.hsb:return r.createElement(dy,Object.assign({},e));case Sv.rgb:return r.createElement(fy,Object.assign({},e));default:return r.createElement(uy,Object.assign({},e))}}),[s,t,o,l]);return r.createElement("div",{className:`${d}-container`},!c&&r.createElement(gi,{value:s,variant:"borderless",getPopupContainer:e=>e,popupMatchSelectWidth:68,placement:"bottomRight",onChange:e=>{u(e)},className:`${t}-format-select`,size:"small",options:py}),r.createElement("div",{className:d},f),!i&&r.createElement(bb,{prefixCls:t,value:o,onChange:l}))};function gy(e,t,n){return(e-t)/(n-t)}function hy(e,t,n,r){var o=gy(t,n,r),i={};switch(e){case"rtl":i.right="".concat(100*o,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(100*o,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(100*o,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(100*o,"%"),i.transform="translateX(-50%)"}return i}function vy(e,t){return Array.isArray(e)?e[t]:e}const by=r.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});var yy=r.createContext({}),Cy=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],xy=r.forwardRef((function(e,t){var n,o=e.prefixCls,l=e.value,c=e.valueIndex,u=e.onStartMove,d=e.onDelete,f=e.style,p=e.render,m=e.dragging,g=e.draggingDelete,h=e.onOffsetChange,v=e.onChangeComplete,b=e.onFocus,y=e.onMouseEnter,C=(0,bt.A)(e,Cy),x=r.useContext(by),w=x.min,A=x.max,S=x.direction,$=x.disabled,k=x.keyboard,E=x.range,O=x.tabIndex,I=x.ariaLabelForHandle,M=x.ariaLabelledByForHandle,N=x.ariaValueTextFormatterForHandle,z=x.styles,P=x.classNames,j="".concat(o,"-handle"),R=function(e){$||u(e,c)},T=hy(S,l,w,A),D={};null!==c&&(D={tabIndex:$?null:vy(O,c),role:"slider","aria-valuemin":w,"aria-valuemax":A,"aria-valuenow":l,"aria-disabled":$,"aria-label":vy(I,c),"aria-labelledby":vy(M,c),"aria-valuetext":null===(n=vy(N,c))||void 0===n?void 0:n(l),"aria-orientation":"ltr"===S||"rtl"===S?"horizontal":"vertical",onMouseDown:R,onTouchStart:R,onFocus:function(e){null==b||b(e,c)},onMouseEnter:function(e){y(e,c)},onKeyDown:function(e){if(!$&&k){var t=null;switch(e.which||e.keyCode){case kt.A.LEFT:t="ltr"===S||"btt"===S?-1:1;break;case kt.A.RIGHT:t="ltr"===S||"btt"===S?1:-1;break;case kt.A.UP:t="ttb"!==S?1:-1;break;case kt.A.DOWN:t="ttb"!==S?-1:1;break;case kt.A.HOME:t="min";break;case kt.A.END:t="max";break;case kt.A.PAGE_UP:t=2;break;case kt.A.PAGE_DOWN:t=-2;break;case kt.A.BACKSPACE:case kt.A.DELETE:d(c)}null!==t&&(e.preventDefault(),h(t,c))}},onKeyUp:function(e){switch(e.which||e.keyCode){case kt.A.LEFT:case kt.A.RIGHT:case kt.A.UP:case kt.A.DOWN:case kt.A.HOME:case kt.A.END:case kt.A.PAGE_UP:case kt.A.PAGE_DOWN:null==v||v()}}});var B=r.createElement("div",(0,a.A)({ref:t,className:i()(j,(0,ht.A)((0,ht.A)((0,ht.A)({},"".concat(j,"-").concat(c+1),null!==c&&E),"".concat(j,"-dragging"),m),"".concat(j,"-dragging-delete"),g),P.handle),style:(0,s.A)((0,s.A)((0,s.A)({},T),f),z.handle)},D,C));return p&&(B=p(B,{index:c,prefixCls:o,value:l,dragging:m,draggingDelete:g})),B}));const wy=xy;var Ay=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],Sy=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.style,i=e.onStartMove,l=e.onOffsetChange,c=e.values,u=e.handleRender,d=e.activeHandleRender,f=e.draggingIndex,p=e.draggingDelete,m=e.onFocus,g=(0,bt.A)(e,Ay),h=r.useRef({}),v=r.useState(!1),b=(0,vt.A)(v,2),y=b[0],C=b[1],x=r.useState(-1),w=(0,vt.A)(x,2),A=w[0],S=w[1],$=function(e){S(e),C(!0)};r.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=h.current[e])||void 0===t||t.focus()},hideHelp:function(){(0,zt.flushSync)((function(){C(!1)}))}}}));var k=(0,s.A)({prefixCls:n,onStartMove:i,onOffsetChange:l,render:u,onFocus:function(e,t){$(t),null==m||m(e)},onMouseEnter:function(e,t){$(t)}},g);return r.createElement(r.Fragment,null,c.map((function(e,t){var n=f===t;return r.createElement(wy,(0,a.A)({ref:function(e){e?h.current[t]=e:delete h.current[t]},dragging:n,draggingDelete:n&&p,style:vy(o,t),key:t,value:e,valueIndex:t},k))})),d&&y&&r.createElement(wy,(0,a.A)({key:"a11y"},k,{value:c[A],valueIndex:null,dragging:-1!==f,draggingDelete:p,render:d,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}));const $y=Sy;const ky=function(e){var t=e.prefixCls,n=e.style,o=e.children,a=e.value,l=e.onClick,c=r.useContext(by),u=c.min,d=c.max,f=c.direction,p=c.includedStart,m=c.includedEnd,g=c.included,h="".concat(t,"-text"),v=hy(f,a,u,d);return r.createElement("span",{className:i()(h,(0,ht.A)({},"".concat(h,"-active"),g&&p<=a&&a<=m)),style:(0,s.A)((0,s.A)({},v),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){l(a)}},o)};const Ey=function(e){var t=e.prefixCls,n=e.marks,o=e.onClick,i="".concat(t,"-mark");return n.length?r.createElement("div",{className:i},n.map((function(e){var t=e.value,n=e.style,a=e.label;return r.createElement(ky,{key:t,prefixCls:i,style:n,value:t,onClick:o},a)}))):null};const Oy=function(e){var t=e.prefixCls,n=e.value,o=e.style,a=e.activeStyle,l=r.useContext(by),c=l.min,u=l.max,d=l.direction,f=l.included,p=l.includedStart,m=l.includedEnd,g="".concat(t,"-dot"),h=f&&p<=n&&n<=m,v=(0,s.A)((0,s.A)({},hy(d,n,c,u)),"function"==typeof o?o(n):o);return h&&(v=(0,s.A)((0,s.A)({},v),"function"==typeof a?a(n):a)),r.createElement("span",{className:i()(g,(0,ht.A)({},"".concat(g,"-active"),h)),style:v})};const Iy=function(e){var t=e.prefixCls,n=e.marks,o=e.dots,i=e.style,a=e.activeStyle,l=r.useContext(by),c=l.min,s=l.max,u=l.step,d=r.useMemo((function(){var e=new Set;if(n.forEach((function(t){e.add(t.value)})),o&&null!==u)for(var t=c;t<=s;)e.add(t),t+=u;return Array.from(e)}),[c,s,u,o,n]);return r.createElement("div",{className:"".concat(t,"-step")},d.map((function(e){return r.createElement(Oy,{prefixCls:t,key:e,value:e,style:i,activeStyle:a})})))};const My=function(e){var t=e.prefixCls,n=e.style,o=e.start,a=e.end,l=e.index,c=e.onStartMove,u=e.replaceCls,d=r.useContext(by),f=d.direction,p=d.min,m=d.max,g=d.disabled,h=d.range,v=d.classNames,b="".concat(t,"-track"),y=gy(o,p,m),C=gy(a,p,m),x=function(e){!g&&c&&c(e,-1)},w={};switch(f){case"rtl":w.right="".concat(100*y,"%"),w.width="".concat(100*C-100*y,"%");break;case"btt":w.bottom="".concat(100*y,"%"),w.height="".concat(100*C-100*y,"%");break;case"ttb":w.top="".concat(100*y,"%"),w.height="".concat(100*C-100*y,"%");break;default:w.left="".concat(100*y,"%"),w.width="".concat(100*C-100*y,"%")}var A=u||i()(b,(0,ht.A)((0,ht.A)({},"".concat(b,"-").concat(l+1),null!==l&&h),"".concat(t,"-track-draggable"),c),v.track);return r.createElement("div",{className:A,style:(0,s.A)((0,s.A)({},w),n),onMouseDown:x,onTouchStart:x})};const Ny=function(e){var t=e.prefixCls,n=e.style,o=e.values,a=e.startPoint,l=e.onStartMove,c=r.useContext(by),u=c.included,d=c.range,f=c.min,p=c.styles,m=c.classNames,g=r.useMemo((function(){if(!d){if(0===o.length)return[];var e=null!=a?a:f,t=o[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],r=0;r130&&d=0&&B}),[B,be]),Ce=r.useMemo((function(){return Object.keys(U||{}).map((function(e){var t=U[e],n={value:Number(e)};return t&&"object"===(0,u.A)(t)&&!r.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((function(e){var t=e.label;return t||"number"==typeof t})).sort((function(e,t){return e.value-t.value}))}),[U]),xe=function(e,t,n,o,i,a){var l=r.useCallback((function(n){return Math.max(e,Math.min(t,n))}),[e,t]),c=r.useCallback((function(r){if(null!==n){var o=e+Math.round((l(r)-e)/n)*n,i=function(e){return(String(e).split(".")[1]||"").length},a=Math.max(i(n),i(t),i(e)),c=Number(o.toFixed(a));return e<=c&&c<=t?c:null}return null}),[n,e,t,l]),s=r.useCallback((function(r){var i=l(r),a=o.map((function(e){return e.value}));null!==n&&a.push(c(r)),a.push(e,t);var s=a[0],u=t-e;return a.forEach((function(e){var t=Math.abs(i-e);t<=u&&(s=e,u=t)})),s}),[e,t,o,n,l,c]),u=function r(i,a,l){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof a){var u,d=i[l],f=d+a,p=[];o.forEach((function(e){p.push(e.value)})),p.push(e,t),p.push(c(d));var m=a>0?1:-1;"unit"===s?p.push(c(d+m*n)):p.push(c(f)),p=p.filter((function(e){return null!==e})).filter((function(e){return a<0?e<=d:e>=d})),"unit"===s&&(p=p.filter((function(e){return e!==d})));var g="unit"===s?d:f;u=p[0];var h=Math.abs(u-g);if(p.forEach((function(e){var t=Math.abs(e-g);t1){var v=(0,Y.A)(i);return v[l]=u,r(v,a-m,l,s)}return u}return"min"===a?e:"max"===a?t:void 0},d=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=e[n],i=u(e,t,n,r);return{value:i,changed:i!==o}},f=function(e){return null===a&&0===e||"number"==typeof a&&e3&&void 0!==arguments[3]?arguments[3]:"unit",o=e.map(s),l=o[n],c=u(o,t,n,r);if(o[n]=c,!1===i){var p=a||0;n>0&&o[n-1]!==l&&(o[n]=Math.max(o[n],o[n-1]+p)),n0;v-=1)for(var b=!0;f(o[v]-o[v-1])&&b;){var y=d(o,-1,v-1);o[v-1]=y.value,b=y.changed}for(var C=o.length-1;C>0;C-=1)for(var x=!0;f(o[C]-o[C-1])&&x;){var w=d(o,-1,C-1);o[C-1]=w.value,x=w.changed}for(var A=0;A=0?M+1:2;for(n=n.slice(0,r);n.length=0&&ae.current.focus(e)}qe(null)}),[Ve]);var Ke=r.useMemo((function(){return(!pe||null!==be)&&pe}),[pe,be]),Xe=(0,Te.A)((function(e,t){He(e,t),null==z||z(Me(Ie))})),Ge=-1!==Re;r.useEffect((function(){if(!Ge){var e=Ie.lastIndexOf(De);ae.current.focus(e)}}),[Ge]);var Ye=r.useMemo((function(){return(0,Y.A)(Le).sort((function(e,t){return e-t}))}),[Le]),Ue=r.useMemo((function(){return de?[Ye[0],Ye[Ye.length-1]]:[he,Ye[0]]}),[Ye,de,he]),Qe=(0,vt.A)(Ue,2),Ze=Qe[0],Je=Qe[1];r.useImperativeHandle(t,(function(){return{focus:function(){ae.current.focus(0)},blur:function(){var e,t=document.activeElement;null!==(e=le.current)&&void 0!==e&&e.contains(t)&&(null==t||t.blur())}}})),r.useEffect((function(){b&&ae.current.focus(0)}),[]);var et=r.useMemo((function(){return{min:he,max:ve,direction:ce,disabled:g,keyboard:v,step:be,included:_,includedStart:Ze,includedEnd:Je,range:de,tabIndex:ne,ariaLabelForHandle:re,ariaLabelledByForHandle:oe,ariaValueTextFormatterForHandle:ie,styles:f||{},classNames:d||{}}}),[he,ve,ce,g,v,be,_,Ze,Je,de,ne,re,oe,ie,f,d]);return r.createElement(by.Provider,{value:et},r.createElement("div",{ref:le,className:i()(o,a,(0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)({},"".concat(o,"-disabled"),g),"".concat(o,"-vertical"),H),"".concat(o,"-horizontal"),!H),"".concat(o,"-with-marks"),Ce.length)),style:l,onMouseDown:function(e){e.preventDefault();var t,n=le.current.getBoundingClientRect(),r=n.width,o=n.height,i=n.left,a=n.top,l=n.bottom,c=n.right,s=e.clientX,u=e.clientY;switch(ce){case"btt":t=(l-u)/o;break;case"ttb":t=(u-a)/o;break;case"rtl":t=(c-s)/r;break;default:t=(s-i)/r}Fe(Ae(he+t*(ve-he)),e)},id:p},r.createElement("div",{className:i()("".concat(o,"-rail"),null==d?void 0:d.rail),style:(0,s.A)((0,s.A)({},K),null==f?void 0:f.rail)}),!1!==ee&&r.createElement(Ny,{prefixCls:o,style:V,values:Ie,startPoint:W,onStartMove:Ke?Xe:void 0}),r.createElement(Iy,{prefixCls:o,marks:Ce,dots:Q,style:X,activeStyle:G}),r.createElement($y,{ref:ae,prefixCls:o,style:q,values:Le,draggingIndex:Re,draggingDelete:Be,onStartMove:Xe,onOffsetChange:function(e,t){if(!g){var n=Se(Ie,e,t);null==z||z(Me(Ie)),Ne(n.values),qe(n.value)}},onFocus:y,onBlur:C,handleRender:Z,activeHandleRender:J,onChangeComplete:ze,onDelete:fe?function(e){if(!(g||!fe||Ie.length<=me)){var t=(0,Y.A)(Ie);t.splice(e,1),null==z||z(Me(t)),Ne(t);var n=Math.max(0,e-1);ae.current.hideHelp(),ae.current.focus(n)}}:void 0}),r.createElement(Ey,{prefixCls:o,marks:Ce,onClick:Fe})))}));const Ry=jy;const Ty=r.forwardRef(((e,t)=>{const{open:n,draggingDelete:o}=e,i=(0,r.useRef)(null),a=n&&!o,l=(0,r.useRef)(null);function c(){U.A.cancel(l.current),l.current=null}return r.useEffect((()=>(a?l.current=(0,U.A)((()=>{var e;null===(e=i.current)||void 0===e||e.forceAlign(),l.current=null})):c(),c)),[a,e.title]),r.createElement(da,Object.assign({ref:(0,f.K4)(i,t)},e,{open:a}))})),Dy=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:l,handleColorDisabled:c,calc:s,handleSize:u,handleSizeHover:d,handleActiveColor:f,handleActiveOutlineColor:p,handleLineWidth:m,handleLineWidthHover:g,motionDurationMid:h}=e;return{[t]:Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"relative",height:r,margin:`${(0,he.zA)(a)} ${(0,he.zA)(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${(0,he.zA)(i)} ${(0,he.zA)(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${h}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${h}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${(0,he.zA)(m)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:s(m).mul(-1).equal(),insetBlockStart:s(m).mul(-1).equal(),width:s(u).add(s(m).mul(2)).equal(),height:s(u).add(s(m).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${(0,he.zA)(m)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${h},\n inset-block-start ${h},\n width ${h},\n height ${h},\n box-shadow ${h},\n outline ${h}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:s(d).sub(u).div(2).add(g).mul(-1).equal(),insetBlockStart:s(d).sub(u).div(2).add(g).mul(-1).equal(),width:s(d).add(s(g).mul(2)).equal(),height:s(d).add(s(g).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${(0,he.zA)(g)} ${f}`,outline:`6px solid ${p}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${(0,he.zA)(m)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${(0,he.zA)(m)} ${c}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},By=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i,marginFull:a,calc:l}=e,c=t?"paddingBlock":"paddingInline",s=t?"width":"height",u=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",f=t?"top":"insetInlineStart",p=l(r).mul(3).sub(o).div(2).equal(),m=l(o).sub(r).div(2).equal(),g=t?{borderWidth:`${(0,he.zA)(m)} 0`,transform:`translateY(${(0,he.zA)(l(m).mul(-1).equal())})`}:{borderWidth:`0 ${(0,he.zA)(m)}`,transform:`translateX(${(0,he.zA)(e.calc(m).mul(-1).equal())})`};return{[c]:r,[u]:l(r).mul(3).equal(),[`${n}-rail`]:{[s]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},g),[`${n}-handle`]:{[d]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[f]:l(r).mul(3).add(t?0:a).equal(),[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[f]:r,[s]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[d]:l(r).sub(i).div(2).equal()}}},Ly=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},By(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Hy=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},By(e,!1)),{height:"100%"})}},Fy=(0,J.OF)("Slider",(e=>{const t=(0,Ue.oX)(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[Dy(t),Ly(t),Hy(t)]}),(e=>{const t=e.controlHeightLG/4,n=e.controlHeightSM/2,r=e.lineWidth+1,o=e.lineWidth+1.5,i=e.colorPrimary,a=new Vr.q(i).setAlpha(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:r,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:a,handleColorDisabled:new Vr.q(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}})),_y=(0,r.createContext)({});function Wy(){const[e,t]=r.useState(!1),n=r.useRef(),o=()=>{U.A.cancel(n.current)};return r.useEffect((()=>o),[]),[e,e=>{o(),e?t(e):n.current=(0,U.A)((()=>{t(e)}))}]}var Vy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,range:o,className:a,rootClassName:l,style:c,disabled:s,tooltipPrefixCls:u,tipFormatter:d,tooltipVisible:f,getTooltipPopupContainer:p,tooltipPlacement:m,tooltip:g={},onChangeComplete:h}=e,v=Vy(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:b}=e,{direction:y,slider:C,getPrefixCls:x,getPopupContainer:w}=r.useContext(Z.ConfigContext),A=r.useContext(no.A),S=null!=s?s:A,{handleRender:$,direction:k}=r.useContext(_y),E="rtl"===(k||y),[O,I]=Wy(),[M,N]=Wy(),z=Object.assign({},g),{open:P,placement:j,getPopupContainer:R,prefixCls:T,formatter:D}=z,B=null!=P?P:f,L=(O||M)&&!1!==B,H=function(e,t){return e||null===e?e:t||null===t?t:e=>"number"==typeof e?e.toString():""}(D,d),[F,_]=Wy(),W=(e,t)=>e||(t?E?"left":"right":"top"),V=x("slider",n),[q,K,X]=Fy(V),G=i()(a,null==C?void 0:C.className,l,{[`${V}-rtl`]:E,[`${V}-lock`]:F},K,X);E&&!v.vertical&&(v.reverse=!v.reverse),r.useEffect((()=>{const e=()=>{(0,U.A)((()=>{N(!1)}),1)};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}}),[]);const Y=o&&!B,Q=$||((e,t)=>{const{index:n}=t,o=e.props;function i(e,t,n){var r,i,a,l;n&&(null===(i=(r=v)[e])||void 0===i||i.call(r,t)),null===(l=(a=o)[e])||void 0===l||l.call(a,t)}const a=Object.assign(Object.assign({},o),{onMouseEnter:e=>{I(!0),i("onMouseEnter",e)},onMouseLeave:e=>{I(!1),i("onMouseLeave",e)},onMouseDown:e=>{N(!0),_(!0),i("onMouseDown",e)},onFocus:e=>{var t;N(!0),null===(t=v.onFocus)||void 0===t||t.call(v,e),i("onFocus",e,!0)},onBlur:e=>{var t;N(!1),null===(t=v.onBlur)||void 0===t||t.call(v,e),i("onBlur",e,!0)}}),l=r.cloneElement(e,a),c=(!!B||L)&&null!==H;return Y?l:r.createElement(Ty,Object.assign({},z,{prefixCls:x("tooltip",null!=T?T:u),title:H?H(t.value):"",open:c,placement:W(null!=j?j:m,b),key:n,overlayClassName:`${V}-tooltip`,getPopupContainer:R||p||w}),l)}),J=Y?(e,t)=>{const n=r.cloneElement(e,{style:Object.assign(Object.assign({},e.props.style),{visibility:"hidden"})});return r.createElement(Ty,Object.assign({},z,{prefixCls:x("tooltip",null!=T?T:u),title:H?H(t.value):"",open:null!==H&&L,placement:W(null!=j?j:m,b),key:"tooltip",overlayClassName:`${V}-tooltip`,getPopupContainer:R||p||w,draggingDelete:t.draggingDelete}),n)}:void 0,ee=Object.assign(Object.assign({},null==C?void 0:C.style),c);return q(r.createElement(Ry,Object.assign({},v,{step:v.step,range:o,className:G,style:ee,disabled:S,ref:t,prefixCls:V,handleRender:Q,activeHandleRender:J,onChangeComplete:e=>{null==h||h(e),_(!1)}})))}));const Ky=qy;var Xy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,colors:n,type:o,color:a,range:l=!1,className:c,activeIndex:s,onActive:u,onDragStart:d,onDragChange:f,onKeyDelete:p}=e,m=Xy(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),g=Object.assign(Object.assign({},m),{track:!1}),h=r.useMemo((()=>`linear-gradient(90deg, ${n.map((e=>`${e.color} ${e.percent}%`)).join(", ")})`),[n]),v=r.useMemo((()=>a&&o?"alpha"===o?a.toRgbString():`hsl(${a.toHsb().h}, 100%, 50%)`:null),[a,o]),b=(0,Te.A)(d),y=(0,Te.A)(f),C=r.useMemo((()=>({onDragStart:b,onDragChange:y})),[]),x=(0,Te.A)(((e,a)=>{const{onFocus:l,style:c,className:d,onKeyDown:f}=e.props,m=Object.assign({},c);return"gradient"===o&&(m.background=(0,wv.PU)(n,a.value)),r.cloneElement(e,{onFocus:e=>{null==u||u(a.index),null==l||l(e)},style:m,className:i()(d,{[`${t}-slider-handle-active`]:s===a.index}),onKeyDown:e=>{"Delete"!==e.key&&"Backspace"!==e.key||!p||p(a.index),null==f||f(e)}})})),w=r.useMemo((()=>({direction:"ltr",handleRender:x})),[]);return r.createElement(_y.Provider,{value:w},r.createElement(yy.Provider,{value:C},r.createElement(Ky,Object.assign({},g,{className:i()(c,`${t}-slider`),tooltip:{open:!1},range:{editable:l,minCount:2},styles:{rail:{background:h},handle:v?{background:v}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},Yy=e=>{const{value:t,onChange:n,onChangeComplete:o}=e;return r.createElement(Gy,Object.assign({},e,{value:[t],onChange:e=>n(e[0]),onChangeComplete:e=>o(e[0])}))};function Uy(e){return(0,Y.A)(e).sort(((e,t)=>e.percent-t.percent))}const Qy=e=>{const{prefixCls:t,mode:n,onChange:o,onChangeComplete:i,onActive:a,activeIndex:l,onGradientDragging:c,colors:s}=e,u="gradient"===n,d=r.useMemo((()=>s.map((e=>({percent:e.percent,color:e.color.toRgbString()})))),[s]),f=r.useMemo((()=>d.map((e=>e.percent))),[d]),p=r.useRef(d);return u?r.createElement(Gy,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:d,color:null,value:f,range:!0,onChangeComplete:e=>{i(new Zh.kf(d)),l>=e.length&&a(e.length-1),c(!1)},disabled:!1,type:"gradient",activeIndex:l,onActive:a,onDragStart:e=>{let{rawValues:t,draggingIndex:n,draggingValue:r}=e;if(t.length>d.length){const e=(0,wv.PU)(d,r),t=(0,Y.A)(d);t.splice(n,0,{percent:r,color:e}),p.current=t}else p.current=d;c(!0),o(new Zh.kf(Uy(p.current)),!0)},onDragChange:e=>{let{deleteIndex:t,draggingIndex:n,draggingValue:r}=e,i=(0,Y.A)(p.current);-1!==t?i.splice(t,1):(i[n]=Object.assign(Object.assign({},i[n]),{percent:r}),i=Uy(i)),o(new Zh.kf(i),!0)},onKeyDelete:e=>{const t=(0,Y.A)(d);t.splice(e,1);const n=new Zh.kf(t);o(n),i(n)}}):null},Zy=r.memo(Qy);var Jy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const e=(0,r.useContext)(Cv),{mode:t,onModeChange:n,modeOptions:o,prefixCls:i,allowClear:a,value:l,disabledAlpha:c,onChange:s,onClear:u,onChangeComplete:d,activeIndex:f,gradientDragging:p}=e,m=Jy(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),g=r.useMemo((()=>l.cleared?[{percent:0,color:new Zh.kf("")},{percent:100,color:new Zh.kf("")}]:l.getColors()),[l]),h=!l.isGradient(),[v,b]=r.useState(l);(0,Ct.A)((()=>{var e;h||b(null===(e=g[f])||void 0===e?void 0:e.color)}),[p,f]);const y=r.useMemo((()=>{var e;return h?l:p?v:null===(e=g[f])||void 0===e?void 0:e.color}),[l,f,h,v,p]),[C,x]=r.useState(y),[w,A]=r.useState(0),S=(null==C?void 0:C.equals(y))?y:C;(0,Ct.A)((()=>{x(y)}),[w,null==y?void 0:y.toHexString()]);const $=(e,n)=>{let r=(0,wv.Z6)(e);if(l.cleared){const e=r.toRgb();if(e.r||e.g||e.b||!n)r=(0,wv.E)(r);else{const{type:e,value:t=0}=n;r=new Zh.kf({h:"hue"===e?t:0,s:1,b:1,a:"alpha"===e?t/100:1})}}if("single"===t)return r;const o=(0,Y.A)(g);return o[f]=Object.assign(Object.assign({},o[f]),{color:r}),new Zh.kf(o)};let k=null;const E=o.length>1;return(a||E)&&(k=r.createElement("div",{className:`${i}-operation`},E&&r.createElement(yv,{size:"small",options:o,value:t,onChange:n}),r.createElement(Av,Object.assign({prefixCls:i,value:l,onChange:e=>{s(e),null==u||u()}},m)))),r.createElement(r.Fragment,null,k,r.createElement(Zy,Object.assign({},e,{colors:g})),r.createElement(rv.Ay,{prefixCls:i,value:null==S?void 0:S.toHsb(),disabledAlpha:c,onChange:(e,t)=>{((e,t,n)=>{const r=$(e,n);x(r.isGradient()?r.getColors()[f].color:r),s(r,t)})(e,!0,t)},onChangeComplete:(e,t)=>{((e,t)=>{d($(e,t)),A((e=>e+1))})(e,t)},components:eC}),r.createElement(my,Object.assign({value:y,onChange:e=>{s($(e))},prefixCls:i,disabledAlpha:c},m)))};var nC=n(3596);const rC=()=>{const{prefixCls:e,value:t,presets:n,onChange:o}=(0,r.useContext)(xv);return Array.isArray(n)?r.createElement(nC.A,{value:t,presets:n,prefixCls:e,onChange:o}):null};const oC=e=>{const{prefixCls:t,presets:n,panelRender:o,value:i,onChange:a,onClear:l,allowClear:c,disabledAlpha:s,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:p,activeIndex:m,onActive:g,format:h,onFormatChange:v,gradientDragging:b,onGradientDragging:y,disabledFormat:C}=e,x=`${t}-inner`,w=r.useMemo((()=>({prefixCls:t,value:i,onChange:a,onClear:l,allowClear:c,disabledAlpha:s,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:p,activeIndex:m,onActive:g,format:h,onFormatChange:v,gradientDragging:b,onGradientDragging:y,disabledFormat:C})),[t,i,a,l,c,s,u,d,f,p,m,g,h,v,b,y,C]),A=r.useMemo((()=>({prefixCls:t,value:i,presets:n,onChange:a})),[t,i,n,a]),S=r.createElement("div",{className:`${x}-content`},r.createElement(tC,null),Array.isArray(n)&&r.createElement(nv,null),r.createElement(rC,null));return r.createElement(Cv.Provider,{value:w},r.createElement(xv.Provider,{value:A},r.createElement("div",{className:x},"function"==typeof o?o(S,{components:{Picker:tC,Presets:rC}}):S)))};var iC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{color:n,prefixCls:o,open:a,disabled:l,format:c,className:s,showText:u,activeIndex:d}=e,f=iC(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),p=`${o}-trigger`,m=`${p}-text`,g=`${m}-cell`,[h]=(0,Wr.A)("ColorPicker"),v=r.useMemo((()=>{if(!u)return"";if("function"==typeof u)return u(n);if(n.cleared)return h.transparent;if(n.isGradient())return n.getColors().map(((e,t)=>{const n=-1!==d&&d!==t;return r.createElement("span",{key:t,className:i()(g,n&&`${g}-inactive`)},e.color.toRgbString()," ",e.percent,"%")}));const e=n.toHexString().toUpperCase(),t=(0,wv.Gp)(n);switch(c){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return t<100?`${e.slice(0,7)},${t}%`:e}}),[n,c,u,d]),b=(0,r.useMemo)((()=>n.cleared?r.createElement(Av,{prefixCls:o}):r.createElement(rv.ZC,{prefixCls:o,color:n.toCssString()})),[n,o]);return r.createElement("div",Object.assign({ref:t,className:i()(p,s,{[`${p}-active`]:a,[`${p}-disabled`]:l})},(0,me.A)(f)),b,u&&r.createElement("div",{className:m},v))})),lC=aC;const cC=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),sC=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:a}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o,flex:"none"},cC("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${(0,he.zA)(i)} ${a}`,borderRadius:"inherit"}})}},uC=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:l,controlHeightSM:c,marginXS:s,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:f,colorPickerInputNumberHandleWidth:p,lineWidth:m}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${(0,he.zA)(i)}`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:s,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(a).equal(),fontSize:r,lineHeight:(0,he.zA)(c)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${(0,he.zA)(d)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:(0,he.zA)(e.calc(c).sub(e.calc(m).mul(2)).equal())},[`${n}-input-prefix`]:{color:f}}}}}},dC=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:l,lineWidthBold:c,colorPickerHandlerSize:s}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:s,height:s,border:`${(0,he.zA)(c)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${l}`}}},fC=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:l,lineHeightSM:c,lineWidth:s,borderRadius:u,colorFill:d,colorWhite:f,marginXXS:p,paddingXS:m,fontHeightSM:g}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:g,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${(0,he.zA)(m)} 0`},"&-label":{fontSize:a,color:l,lineHeight:c},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(p).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(s).mul(4)).equal(),height:e.calc(i).add(e.calc(s).mul(4)).equal(),position:"absolute",top:e.calc(s).mul(-2).equal(),insetInlineStart:e.calc(s).mul(-2).equal(),borderRadius:u,border:`${(0,he.zA)(s)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${(0,he.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}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:f,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}},pC=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:o,lineWidthBold:i,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:l,marginSM:c,marginXS:s}=e,u=e.calc(a).sub(e.calc(i).mul(2).equal()).equal(),d=e.calc(a).add(e.calc(i).mul(2).equal()).equal(),f={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[cC((0,he.zA)(l),e.colorFillSecondary),{margin:0,padding:0,height:l,borderRadius:e.calc(l).div(2).equal(),"&-rail":{height:l,borderRadius:e.calc(l).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:d,height:d,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${(0,he.zA)(i)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${o}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":f}}],[`${t}-slider-container`]:{display:"flex",gap:c,marginBottom:c,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:s,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":f}}}},mC=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${(0,he.zA)(e.controlOutlineWidth)} ${n}`,outline:0}),gC=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},hC=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:i,colorSplit:a,colorBorder:l,red6:c}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${(0,he.zA)(i)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:c},"&:hover":{borderColor:l}})}},vC=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:i,colorErrorOutline:a,colorWarningOutline:l}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},mC(e,n,a))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},mC(e,r,l))}}},bC=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:i,borderRadius:a,borderRadiusSM:l,borderRadiusXS:c,borderRadiusLG:s,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:a},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:c},[`${t}-trigger-text`]:{lineHeight:(0,he.zA)(i)}}}},yC=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:o,motionDurationMid:i,colorBgElevated:a,colorTextDisabled:l,colorText:c,colorBgContainerDisabled:s,borderRadius:u,marginXS:d,marginSM:f,controlHeight:p,controlHeightSM:m,colorBgTextActive:g,colorPickerPresetColorSize:h,colorPickerPreviewSize:v,lineWidth:b,colorBorder:y,paddingXXS:C,fontSize:x,colorPrimaryHover:w,controlOutline:A}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${(0,he.zA)(f)} 0 ${(0,he.zA)(d)}`}},[`${n}-panel`]:Object.assign({},dC(e))},pC(e)),sC(e,v)),uC(e)),fC(e)),hC(e,h,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:d}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:p,minHeight:p,borderRadius:u,border:`${(0,he.zA)(b)} solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:a,padding:e.calc(C).sub(b).equal(),[`${n}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(C).sub(b)).equal(),fontSize:x,color:c,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:w},[`&${n}-trigger-active`]:Object.assign({},mC(e,o,A)),"&-disabled":{color:l,background:s,cursor:"not-allowed","&:hover":{borderColor:g},[`${n}-trigger-text`]:{color:l}}},hC(e,m)),sC(e,m)),vC(e)),bC(e))},gC(e))},(0,co.G)(e,{focusElCls:`${n}-trigger-active`})]},CC=(0,J.OF)("ColorPicker",(e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=(0,Ue.oX)(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:8,colorPickerPreviewSize:e.calc(8).mul(2).add(n).equal()});return[yC(r)]}));var xC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{mode:t,value:n,defaultValue:o,format:a,defaultFormat:l,allowClear:c=!1,presets:s,children:u,trigger:d="click",open:f,disabled:p,placement:m="bottomLeft",arrow:g=!0,panelRender:h,showText:v,style:b,className:y,size:C,rootClassName:x,prefixCls:w,styles:A,disabledAlpha:S=!1,onFormatChange:$,onChange:k,onClear:E,onOpenChange:O,onChangeComplete:I,getPopupContainer:M,autoAdjustOverflow:N=!0,destroyTooltipOnHide:z,disabledFormat:P}=e,j=xC(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","disabledFormat"]),{getPrefixCls:R,direction:T,colorPicker:D}=(0,r.useContext)(Z.ConfigContext),B=(0,r.useContext)(no.A),L=null!=p?p:B,[H,F]=(0,yt.A)(!1,{value:f,postState:e=>!L&&e,onChange:O}),[_,W]=(0,yt.A)(a,{value:a,defaultValue:l,onChange:$}),V=R("color-picker",w),[q,K,X,G,Y]=function(e,t,n){const[o]=(0,Wr.A)("ColorPicker"),[i,a]=(0,yt.A)(e,{value:t}),[l,c]=r.useState("single"),[s,u]=r.useMemo((()=>{const e=(Array.isArray(n)?n:[n]).filter((e=>e));e.length||e.push("single");const t=new Set(e),r=[],i=(e,n)=>{t.has(e)&&r.push({label:n,value:e})};return i("single",o.singleColor),i("gradient",o.gradientColor),[r,t]}),[n]),[d,f]=r.useState(null),p=(0,Te.A)((e=>{f(e),a(e)})),m=r.useMemo((()=>{const e=(0,wv.Z6)(i||"");return e.equals(d)?d:e}),[i,d]),g=r.useMemo((()=>{var e;return u.has(l)?l:null===(e=s[0])||void 0===e?void 0:e.value}),[u,l,s]);return r.useEffect((()=>{c(m.isGradient()?"gradient":"single")}),[m]),[m,p,g,c,s]}(o,n,t),U=(0,r.useMemo)((()=>(0,wv.Gp)(q)<100),[q]),[Q,J]=r.useState(null),ee=e=>{if(I){let t=(0,wv.Z6)(e);S&&U&&(t=(0,wv.E)(e)),I(t)}},te=(e,t)=>{let n=(0,wv.Z6)(e);S&&U&&(n=(0,wv.E)(n)),K(n),J(null),k&&k(n,n.toCssString()),t||ee(n)},[ne,re]=r.useState(0),[oe,ie]=r.useState(!1),{status:ae}=r.useContext(oo.$W),{compactSize:le,compactItemClassnames:ce}=(0,ao.RQ)(V,T),se=(0,ro.A)((e=>{var t;return null!==(t=null!=C?C:le)&&void 0!==t?t:e})),ue=(0,Xe.A)(V),[de,fe,pe]=CC(V,ue),me={[`${V}-rtl`]:T},ge=i()(x,pe,ue,me),he=i()(Fr(V,ae),{[`${V}-sm`]:"small"===se,[`${V}-lg`]:"large"===se},ce,null==D?void 0:D.className,ge,y,fe),ve=i()(V,ge);const be={open:H,trigger:d,placement:m,arrow:g,rootClassName:x,getPopupContainer:M,autoAdjustOverflow:N,destroyTooltipOnHide:z},ye=Object.assign(Object.assign({},null==D?void 0:D.style),b);return de(r.createElement(wa,Object.assign({style:null==A?void 0:A.popup,overlayInnerStyle:null==A?void 0:A.popupOverlayInner,onOpenChange:e=>{e&&L||F(e)},content:r.createElement(Hi.A,{form:!0},r.createElement(oC,{mode:X,onModeChange:e=>{if(G(e),"single"===e&&q.isGradient())re(0),te(new Zh.kf(q.getColors()[0].color)),J(q);else if("gradient"===e&&!q.isGradient()){const e=U?(0,wv.E)(q):q;te(new Zh.kf(Q||[{percent:0,color:e},{percent:100,color:e}]))}},modeOptions:Y,prefixCls:V,value:q,allowClear:c,disabled:L,disabledAlpha:S,presets:s,panelRender:h,format:_,onFormatChange:W,onChange:te,onChangeComplete:ee,onClear:E,activeIndex:ne,onActive:re,gradientDragging:oe,onGradientDragging:ie,disabledFormat:P})),overlayClassName:ve},be),u||r.createElement(lC,Object.assign({activeIndex:H?ne:-1,open:H,className:he,style:ye,prefixCls:V,disabled:L,showText:v,format:_},j,{color:q}))))};const AC=(0,gt.A)(wC,"color-picker",(e=>e),(e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1})));wC._InternalPanelDoNotUseOrYouWillBeFired=AC;const SC=wC;const $C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};var kC=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:$C}))};const EC=r.forwardRef(kC);const OC={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};var IC=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:OC}))};const MC=r.forwardRef(IC);const NC={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};var zC=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:NC}))};const PC=r.forwardRef(zC);var jC=n(8826);const RC=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",i=No(e);return[{[`${n}-multiple${o}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:(0,he.zA)(i.itemLineHeight)}}}]},TC=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=(0,Ue.oX)(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=(0,Ue.oX)(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[RC(o,"small"),RC(e),RC(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},zo(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},DC=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},(0,cb.Eb)(e)),(0,cb.sA)(e)),(0,cb.lB)(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},BC=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),i=e.max(e.calc(t).sub(o).div(2).equal(),0),a=e.max(e.calc(t).sub(o).sub(i).equal(),0);return{padding:`${(0,he.zA)(i)} ${(0,he.zA)(r)} ${(0,he.zA)(a)}`}},LC=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},HC=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:i,lineType:a,colorBorder:l,borderRadius:c,motionDurationMid:s,colorTextDisabled:u,colorTextPlaceholder:d,controlHeightLG:f,fontSizeLG:p,controlHeightSM:m,paddingInlineSM:g,paddingXS:h,marginXS:v,colorTextDescription:b,lineWidthBold:y,colorPrimary:C,motionDurationSlow:x,zIndexPopup:w,paddingXXS:A,sizePopupArrow:S,colorBgElevated:$,borderRadiusLG:k,boxShadowSecondary:E,borderRadiusSM:O,colorSplit:I,cellHoverBg:M,presetsWidth:N,presetsMaxWidth:z,boxShadowPopoverArrow:P,fontHeight:j,fontHeightLG:R,lineHeightLG:T}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},(0,ve.dF)(e)),BC(e,r,j,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${s}, box-shadow ${s}, background ${s}`,[`${t}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${s}`},(0,lb.j_)(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},BC(e,f,R,o)),{[`${t}-input > input`]:{fontSize:p,lineHeight:T}}),"&-small":Object.assign({},BC(e,m,j,g)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(h).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:v}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:y,background:C,opacity:0,transition:`all ${x} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${(0,he.zA)(h)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,ve.dF)(e)),qf(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:w,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,\n &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,\n &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:po},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:uo},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:mo},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:fo},[`${t}-panel > ${t}-time-panel`]:{paddingTop:A},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${x} ease-out`},_i(e,$,P)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:$,borderRadius:k,boxShadow:E,transition:`margin ${x}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:N,maxWidth:z,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:h,borderInlineEnd:`${(0,he.zA)(i)} ${a} ${I}`,li:Object.assign(Object.assign({},ve.L9),{borderRadius:O,paddingInline:h,paddingBlock:e.calc(m).sub(j).div(2).equal(),cursor:"pointer",transition:`all ${x}`,"+ li":{marginTop:v},"&:hover":{background:M}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${(0,he.zA)(e.calc(S).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Co(e,"slide-up"),Co(e,"slide-down"),Oo(e,"move-up"),Oo(e,"move-down")]},FC=(0,J.OF)("DatePicker",(e=>{const t=(0,Ue.oX)((0,Xf.C)(e),Gf(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Kf(t),HC(t),DC(t),LC(t),TC(t),(0,co.G)(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>Object.assign(Object.assign(Object.assign(Object.assign({},(0,Xf.b)(e)),Yf(e)),Fi(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})));function _C(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function WC(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function VC(e,t){const{allowClear:n=!0}=e,{clearIcon:o,removeIcon:i}=ci(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[r.useMemo((()=>{if(!1===n)return!1;const e=!0===n?{}:n;return Object.assign({clearIcon:o},e)}),[n,o]),i]}const[qC,KC]=["week","WeekPicker"],[XC,GC]=["month","MonthPicker"],[YC,UC]=["year","YearPicker"],[QC,ZC]=["quarter","QuarterPicker"],[JC,ex]=["time","TimePicker"],tx=e=>r.createElement(Qs.Ay,Object.assign({size:"small",type:"primary"},e));function nx(e){return(0,r.useMemo)((()=>Object.assign({button:tx},e)),[e])}var rx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const t=(0,r.forwardRef)(((t,n)=>{var o;const{prefixCls:a,getPopupContainer:l,components:c,className:s,style:u,placement:d,size:f,disabled:p,bordered:m=!0,placeholder:g,popupClassName:h,dropdownClassName:v,status:b,rootClassName:y,variant:C,picker:x}=t,w=rx(t,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),A=r.useRef(null),{getPrefixCls:S,direction:$,getPopupContainer:k,rangePicker:E}=(0,r.useContext)(Z.ConfigContext),O=S("picker",a),{compactSize:I,compactItemClassnames:M}=(0,ao.RQ)(O,$),N=S(),[z,P]=io("rangePicker",C,m),j=(0,Xe.A)(O),[R,T,D]=FC(O,j);const[B]=VC(t,O),L=nx(c),H=(0,ro.A)((e=>{var t;return null!==(t=null!=f?f:I)&&void 0!==t?t:e})),F=r.useContext(no.A),_=null!=p?p:F,W=(0,r.useContext)(oo.$W),{hasFeedback:V,status:q,feedbackIcon:K}=W,X=r.createElement(r.Fragment,null,x===JC?r.createElement(MC,null):r.createElement(EC,null),V&&K);(0,r.useImperativeHandle)(n,(()=>A.current));const[G]=(0,Wr.A)("Calendar",jC.A),Y=Object.assign(Object.assign({},G),t.locale),[U]=(0,mt.YK)("DatePicker",null===(o=t.popupStyle)||void 0===o?void 0:o.zIndex);return R(r.createElement(Hi.A,{space:!0},r.createElement(uf,Object.assign({separator:r.createElement("span",{"aria-label":"to",className:`${O}-separator`},r.createElement(PC,null)),disabled:_,ref:A,placement:d,placeholder:WC(Y,x,g),suffixIcon:X,prevIcon:r.createElement("span",{className:`${O}-prev-icon`}),nextIcon:r.createElement("span",{className:`${O}-next-icon`}),superPrevIcon:r.createElement("span",{className:`${O}-super-prev-icon`}),superNextIcon:r.createElement("span",{className:`${O}-super-next-icon`}),transitionName:`${N}-slide-up`,picker:x},w,{className:i()({[`${O}-${H}`]:H,[`${O}-${z}`]:P},Fr(O,_r(q,b),V),T,M,s,null==E?void 0:E.className,D,j,y),style:Object.assign(Object.assign({},null==E?void 0:E.style),u),locale:Y.lang,prefixCls:O,getPopupContainer:l||k,generateConfig:e,components:L,direction:$,classNames:{popup:i()(T,h||v,D,j,y)},styles:{popup:Object.assign(Object.assign({},t.popupStyle),{zIndex:U})},allowClear:B}))))}));return t};var ix=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const t=(t,n)=>{const o=n===ex?"timePicker":"datePicker",a=(0,r.forwardRef)(((n,a)=>{var l;const{prefixCls:c,getPopupContainer:s,components:u,style:d,className:f,rootClassName:p,size:m,bordered:g,placement:h,placeholder:v,popupClassName:b,dropdownClassName:y,disabled:C,status:x,variant:w,onCalendarChange:A}=n,S=ix(n,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:$,direction:k,getPopupContainer:E,[o]:O}=(0,r.useContext)(Z.ConfigContext),I=$("picker",c),{compactSize:M,compactItemClassnames:N}=(0,ao.RQ)(I,k),z=r.useRef(null),[P,j]=io("datePicker",w,g),R=(0,Xe.A)(I),[T,D,B]=FC(I,R);(0,r.useImperativeHandle)(a,(()=>z.current));const L=t||n.picker,H=$(),{onSelect:F,multiple:_}=S,W=F&&"time"===t&&!_;const[V,q]=VC(n,I),K=nx(u),X=(0,ro.A)((e=>{var t;return null!==(t=null!=m?m:M)&&void 0!==t?t:e})),G=r.useContext(no.A),Y=null!=C?C:G,U=(0,r.useContext)(oo.$W),{hasFeedback:Q,status:J,feedbackIcon:ee}=U,te=r.createElement(r.Fragment,null,"time"===L?r.createElement(MC,null):r.createElement(EC,null),Q&&ee),[ne]=(0,Wr.A)("DatePicker",jC.A),re=Object.assign(Object.assign({},ne),n.locale),[oe]=(0,mt.YK)("DatePicker",null===(l=n.popupStyle)||void 0===l?void 0:l.zIndex);return T(r.createElement(Hi.A,{space:!0},r.createElement(hf,Object.assign({ref:z,placeholder:_C(re,L,v),suffixIcon:te,placement:h,prevIcon:r.createElement("span",{className:`${I}-prev-icon`}),nextIcon:r.createElement("span",{className:`${I}-next-icon`}),superPrevIcon:r.createElement("span",{className:`${I}-super-prev-icon`}),superNextIcon:r.createElement("span",{className:`${I}-super-next-icon`}),transitionName:`${H}-slide-up`,picker:t,onCalendarChange:(e,t,n)=>{null==A||A(e,t,n),W&&F(e)}},{showToday:!0},S,{locale:re.lang,className:i()({[`${I}-${X}`]:X,[`${I}-${P}`]:j},Fr(I,_r(J,x),Q),D,N,null==O?void 0:O.className,f,B,R,p),style:Object.assign(Object.assign({},null==O?void 0:O.style),d),prefixCls:I,getPopupContainer:s||E,generateConfig:e,components:K,direction:k,disabled:Y,classNames:{popup:i()(D,B,R,p,b||y)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:oe})},allowClear:V,removeIcon:q}))))}));return a},n=t(),o=t(qC,KC),a=t(XC,GC),l=t(YC,UC),c=t(QC,ZC);return{DatePicker:n,WeekPicker:o,MonthPicker:a,YearPicker:l,TimePicker:t(JC,ex),QuarterPicker:c}},lx=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:i,QuarterPicker:a}=ax(e),l=ox(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=o,c.RangePicker=l,c.TimePicker=i,c.QuarterPicker=a,c},cx=lx(hu),sx=(0,gt.A)(cx,"picker",null);cx._InternalPanelDoNotUseOrYouWillBeFired=sx;const ux=(0,gt.A)(cx.RangePicker,"picker",null);cx._InternalRangePanelDoNotUseOrYouWillBeFired=ux,cx.generatePicker=lx;const dx=cx,fx={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},px=r.createContext({});var mx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{return t||(e=n,(0,l.A)(e).map((e=>Object.assign(Object.assign({},null==e?void 0:e.props),{key:e.key}))));var e}),[t,n]);return r.useMemo((()=>o.map((t=>{var{span:n}=t,r=mx(t,["span"]);return"filled"===n?Object.assign(Object.assign({},r),{filled:!0}):Object.assign(Object.assign({},r),{span:"number"==typeof n?n:(0,wi.ko)(e,n)})}))),[o,e])}var hx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const[n,o]=(0,r.useMemo)((()=>function(e,t){let n=[],r=[],o=!1,i=0;return e.filter((e=>e)).forEach((e=>{const{filled:a}=e,l=hx(e,["filled"]);if(a)return r.push(l),n.push(r),r=[],void(i=0);const c=t-i;i+=e.span||1,i>=t?(i>t?(o=!0,r.push(Object.assign(Object.assign({},l),{span:c}))):r.push(l),n.push(r),r=[],i=0):r.push(l)})),r.length>0&&n.push(r),n=n.map((e=>{const n=e.reduce(((e,t)=>e+(t.span||1)),0);return n{let{children:t}=e;return t};function yx(e){return null!=e}const Cx=e=>{const{itemPrefixCls:t,component:n,span:o,className:a,style:l,labelStyle:c,contentStyle:s,bordered:u,label:d,content:f,colon:p,type:m}=e,g=n;return u?r.createElement(g,{className:i()({[`${t}-item-label`]:"label"===m,[`${t}-item-content`]:"content"===m},a),style:l,colSpan:o},yx(d)&&r.createElement("span",{style:c},d),yx(f)&&r.createElement("span",{style:s},f)):r.createElement(g,{className:i()(`${t}-item`,a),style:l,colSpan:o},r.createElement("div",{className:`${t}-item-container`},(d||0===d)&&r.createElement("span",{className:i()(`${t}-item-label`,{[`${t}-item-no-colon`]:!p}),style:c},d),(f||0===f)&&r.createElement("span",{className:i()(`${t}-item-content`),style:s},f)))};function xx(e,t,n){let{colon:o,prefixCls:i,bordered:a}=t,{component:l,type:c,showLabel:s,showContent:u,labelStyle:d,contentStyle:f}=n;return e.map(((e,t)=>{let{label:n,children:p,prefixCls:m=i,className:g,style:h,labelStyle:v,contentStyle:b,span:y=1,key:C}=e;return"string"==typeof l?r.createElement(Cx,{key:`${c}-${C||t}`,className:g,style:h,labelStyle:Object.assign(Object.assign({},d),v),contentStyle:Object.assign(Object.assign({},f),b),span:y,colon:o,component:l,itemPrefixCls:m,bordered:a,label:s?n:null,content:u?p:null,type:c}):[r.createElement(Cx,{key:`label-${C||t}`,className:g,style:Object.assign(Object.assign(Object.assign({},d),h),v),span:1,colon:o,component:l[0],itemPrefixCls:m,bordered:a,label:n,type:"label"}),r.createElement(Cx,{key:`content-${C||t}`,className:g,style:Object.assign(Object.assign(Object.assign({},f),h),b),span:2*y-1,component:l[1],itemPrefixCls:m,bordered:a,content:p,type:"content"})]}))}const wx=e=>{const t=r.useContext(px),{prefixCls:n,vertical:o,row:i,index:a,bordered:l}=e;return o?r.createElement(r.Fragment,null,r.createElement("tr",{key:`label-${a}`,className:`${n}-row`},xx(i,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),r.createElement("tr",{key:`content-${a}`,className:`${n}-row`},xx(i,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):r.createElement("tr",{key:a,className:`${n}-row`},xx(i,e,Object.assign({component:l?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},Ax=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,he.zA)(e.padding)} ${(0,he.zA)(e.paddingLG)}`,borderInlineEnd:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,he.zA)(e.paddingSM)} ${(0,he.zA)(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,he.zA)(e.paddingXS)} ${(0,he.zA)(e.padding)}`}}}}}},Sx=(0,J.OF)("Descriptions",(e=>(e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:o,colonMarginRight:i,colonMarginLeft:a,titleMarginBottom:l}=e;return{[t]:Object.assign(Object.assign(Object.assign({},(0,ve.dF)(e)),Ax(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:Object.assign(Object.assign({},ve.L9),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:o},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,he.zA)(a)} ${(0,he.zA)(i)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}})((0,Ue.oX)(e,{}))),(e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText})));var $x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,title:n,extra:o,column:a,colon:l=!0,bordered:c,layout:s,children:u,className:d,rootClassName:f,style:p,size:m,labelStyle:g,contentStyle:h,items:v}=e,b=$x(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:y,direction:C,descriptions:x}=r.useContext(Z.ConfigContext),w=y("descriptions",t),A=(0,Ai.A)(),S=r.useMemo((()=>{var e;return"number"==typeof a?a:null!==(e=(0,wi.ko)(A,Object.assign(Object.assign({},fx),a)))&&void 0!==e?e:3}),[A,a]),$=gx(A,v,u),k=(0,ro.A)(m),E=vx(S,$),[O,I,M]=Sx(w),N=r.useMemo((()=>({labelStyle:g,contentStyle:h})),[g,h]);return O(r.createElement(px.Provider,{value:N},r.createElement("div",Object.assign({className:i()(w,null==x?void 0:x.className,{[`${w}-${k}`]:k&&"default"!==k,[`${w}-bordered`]:!!c,[`${w}-rtl`]:"rtl"===C},d,f,I,M),style:Object.assign(Object.assign({},null==x?void 0:x.style),p)},b),(n||o)&&r.createElement("div",{className:`${w}-header`},n&&r.createElement("div",{className:`${w}-title`},n),o&&r.createElement("div",{className:`${w}-extra`},o)),r.createElement("div",{className:`${w}-view`},r.createElement("table",null,r.createElement("tbody",null,E.map(((e,t)=>r.createElement(wx,{key:t,index:t,colon:l,prefixCls:w,vertical:"vertical"===s,bordered:c,row:e})))))))))};kx.Item=bx;const Ex=kx;var Ox=r.createContext(null),Ix=r.createContext({});const Mx=Ox;var Nx=["prefixCls","className","containerRef"];const zx=function(e){var t=e.prefixCls,n=e.className,o=e.containerRef,l=(0,bt.A)(e,Nx),c=r.useContext(Ix).panel,s=(0,f.xK)(c,o);return r.createElement("div",(0,a.A)({className:i()("".concat(t,"-content"),n),role:"dialog",ref:s},(0,me.A)(e,{aria:!0}),{"aria-modal":"true"},l))};function Px(e){return"string"==typeof e&&String(Number(e))===e?((0,c.Ay)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var jx={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Rx(e,t){var n,o,l,c=e.prefixCls,u=e.open,d=e.placement,f=e.inline,p=e.push,m=e.forceRender,g=e.autoFocus,h=e.keyboard,v=e.classNames,b=e.rootClassName,y=e.rootStyle,C=e.zIndex,x=e.className,w=e.id,A=e.style,S=e.motion,$=e.width,k=e.height,E=e.children,O=e.mask,I=e.maskClosable,M=e.maskMotion,N=e.maskClassName,z=e.maskStyle,P=e.afterOpenChange,j=e.onClose,R=e.onMouseEnter,T=e.onMouseOver,D=e.onMouseLeave,B=e.onClick,L=e.onKeyDown,H=e.onKeyUp,F=e.styles,_=e.drawerRender,W=r.useRef(),V=r.useRef(),q=r.useRef();r.useImperativeHandle(t,(function(){return W.current}));r.useEffect((function(){var e;u&&g&&(null===(e=W.current)||void 0===e||e.focus({preventScroll:!0}))}),[u]);var K=r.useState(!1),X=(0,vt.A)(K,2),G=X[0],Y=X[1],U=r.useContext(Mx),Q=null!==(n=null!==(o=null===(l="boolean"==typeof p?p?{}:{distance:0}:p||{})||void 0===l?void 0:l.distance)&&void 0!==o?o:null==U?void 0:U.pushDistance)&&void 0!==n?n:180,Z=r.useMemo((function(){return{pushDistance:Q,push:function(){Y(!0)},pull:function(){Y(!1)}}}),[Q]);r.useEffect((function(){var e,t;u?null==U||null===(e=U.push)||void 0===e||e.call(U):null==U||null===(t=U.pull)||void 0===t||t.call(U)}),[u]),r.useEffect((function(){return function(){var e;null==U||null===(e=U.pull)||void 0===e||e.call(U)}}),[]);var J=O&&r.createElement(pe.Ay,(0,a.A)({key:"mask"},M,{visible:u}),(function(e,t){var n=e.className,o=e.style;return r.createElement("div",{className:i()("".concat(c,"-mask"),n,null==v?void 0:v.mask,N),style:(0,s.A)((0,s.A)((0,s.A)({},o),z),null==F?void 0:F.mask),onClick:I&&u?j:void 0,ref:t})})),ee="function"==typeof S?S(d):S,te={};if(G&&Q)switch(d){case"top":te.transform="translateY(".concat(Q,"px)");break;case"bottom":te.transform="translateY(".concat(-Q,"px)");break;case"left":te.transform="translateX(".concat(Q,"px)");break;default:te.transform="translateX(".concat(-Q,"px)")}"left"===d||"right"===d?te.width=Px($):te.height=Px(k);var ne={onMouseEnter:R,onMouseOver:T,onMouseLeave:D,onClick:B,onKeyDown:L,onKeyUp:H},re=r.createElement(pe.Ay,(0,a.A)({key:"panel"},ee,{visible:u,forceRender:m,onVisibleChanged:function(e){null==P||P(e)},removeOnLeave:!1,leavedClassName:"".concat(c,"-content-wrapper-hidden")}),(function(t,n){var o=t.className,l=t.style,u=r.createElement(zx,(0,a.A)({id:w,containerRef:n,prefixCls:c,className:i()(x,null==v?void 0:v.content),style:(0,s.A)((0,s.A)({},A),null==F?void 0:F.content)},(0,me.A)(e,{aria:!0}),ne),E);return r.createElement("div",(0,a.A)({className:i()("".concat(c,"-content-wrapper"),null==v?void 0:v.wrapper,o),style:(0,s.A)((0,s.A)((0,s.A)({},te),l),null==F?void 0:F.wrapper)},(0,me.A)(e,{data:!0})),_?_(u):u)})),oe=(0,s.A)({},y);return C&&(oe.zIndex=C),r.createElement(Mx.Provider,{value:Z},r.createElement("div",{className:i()(c,"".concat(c,"-").concat(d),b,(0,ht.A)((0,ht.A)({},"".concat(c,"-open"),u),"".concat(c,"-inline"),f)),style:oe,tabIndex:-1,ref:W,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case kt.A.TAB:var r;if(t===kt.A.TAB)if(n||document.activeElement!==q.current){if(n&&document.activeElement===V.current){var o;null===(o=q.current)||void 0===o||o.focus({preventScroll:!0})}}else null===(r=V.current)||void 0===r||r.focus({preventScroll:!0});break;case kt.A.ESC:j&&h&&(e.stopPropagation(),j(e))}}},J,r.createElement("div",{tabIndex:0,ref:V,style:jx,"aria-hidden":"true","data-sentinel":"start"}),re,r.createElement("div",{tabIndex:0,ref:q,style:jx,"aria-hidden":"true","data-sentinel":"end"})))}const Tx=r.forwardRef(Rx);const Dx=function(e){var t=e.open,n=void 0!==t&&t,o=e.prefixCls,i=void 0===o?"rc-drawer":o,a=e.placement,l=void 0===a?"right":a,c=e.autoFocus,u=void 0===c||c,d=e.keyboard,f=void 0===d||d,p=e.width,m=void 0===p?378:p,g=e.mask,h=void 0===g||g,v=e.maskClosable,b=void 0===v||v,y=e.getContainer,C=e.forceRender,x=e.afterOpenChange,w=e.destroyOnClose,A=e.onMouseEnter,S=e.onMouseOver,$=e.onMouseLeave,k=e.onClick,E=e.onKeyDown,O=e.onKeyUp,I=e.panelRef,M=r.useState(!1),N=(0,vt.A)(M,2),z=N[0],P=N[1];var j=r.useState(!1),R=(0,vt.A)(j,2),T=R[0],D=R[1];(0,Ct.A)((function(){D(!0)}),[]);var B=!!T&&n,L=r.useRef(),H=r.useRef();(0,Ct.A)((function(){B&&(H.current=document.activeElement)}),[B]);var F=r.useMemo((function(){return{panel:I}}),[I]);if(!C&&!z&&!B&&w)return null;var _={onMouseEnter:A,onMouseOver:S,onMouseLeave:$,onClick:k,onKeyDown:E,onKeyUp:O},W=(0,s.A)((0,s.A)({},e),{},{open:B,prefixCls:i,placement:l,autoFocus:u,keyboard:f,width:m,mask:h,maskClosable:b,inline:!1===y,afterOpenChange:function(e){var t,n;(P(e),null==x||x(e),e||!H.current||null!==(t=L.current)&&void 0!==t&&t.contains(H.current))||(null===(n=H.current)||void 0===n||n.focus({preventScroll:!0}))},ref:L},_);return r.createElement(Ix.Provider,{value:F},r.createElement(cn.A,{open:B||C||z,autoDestroy:!1,getContainer:y,autoLock:h&&(B||z)},r.createElement(Tx,W)))},Bx=Dx;var Lx=n(8557),Hx=n(64);const Fx=e=>{var t,n;const{prefixCls:o,title:a,footer:l,extra:c,loading:s,onClose:u,headerStyle:d,bodyStyle:f,footerStyle:p,children:m,classNames:g,styles:h}=e,{drawer:v}=r.useContext(Z.ConfigContext),b=r.useCallback((e=>r.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:`${o}-close`},e)),[u]),[y,C]=(0,Hx.A)((0,Hx.d)(e),(0,Hx.d)(v),{closable:!0,closeIconRender:b}),x=r.useMemo((()=>{var e,t;return a||y?r.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(e=null==v?void 0:v.styles)||void 0===e?void 0:e.header),d),null==h?void 0:h.header),className:i()(`${o}-header`,{[`${o}-header-close-only`]:y&&!a&&!c},null===(t=null==v?void 0:v.classNames)||void 0===t?void 0:t.header,null==g?void 0:g.header)},r.createElement("div",{className:`${o}-header-title`},C,a&&r.createElement("div",{className:`${o}-title`},a)),c&&r.createElement("div",{className:`${o}-extra`},c)):null}),[y,C,c,d,o,a]),w=r.useMemo((()=>{var e,t;if(!l)return null;const n=`${o}-footer`;return r.createElement("div",{className:i()(n,null===(e=null==v?void 0:v.classNames)||void 0===e?void 0:e.footer,null==g?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},null===(t=null==v?void 0:v.styles)||void 0===t?void 0:t.footer),p),null==h?void 0:h.footer)},l)}),[l,p,o]);return r.createElement(r.Fragment,null,x,r.createElement("div",{className:i()(`${o}-body`,null==g?void 0:g.body,null===(t=null==v?void 0:v.classNames)||void 0===t?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},null===(n=null==v?void 0:v.styles)||void 0===n?void 0:n.body),f),null==h?void 0:h.body)},s?r.createElement(op.A,{active:!0,title:!1,paragraph:{rows:5},className:`${o}-body-skeleton`}):m),w)},_x=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},Wx=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),Vx=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},Wx({opacity:e},{opacity:1})),qx=(e,t)=>[Vx(.7,t),Wx({transform:_x(e)},{transform:"none"})],Kx=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:Vx(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce(((e,t)=>Object.assign(Object.assign({},e),{[`&-${t}`]:qx(t,n)})),{})}}},Xx=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:o,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:l,paddingXS:c,padding:s,paddingLG:u,fontSizeLG:d,lineHeightLG:f,lineWidth:p,lineType:m,colorSplit:g,marginXS:h,colorIcon:v,colorIconHover:b,colorBgTextHover:y,colorBgTextActive:C,colorText:x,fontWeightStrong:w,footerPaddingBlock:A,footerPaddingInline:S,calc:$}=e,k=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:x,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:o,pointerEvents:"auto"},[k]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${k}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${k}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${k}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${k}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,he.zA)(s)} ${(0,he.zA)(u)}`,fontSize:d,lineHeight:f,borderBottom:`${(0,he.zA)(p)} ${m} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:$(d).add(c).equal(),height:$(d).add(c).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:h,color:v,fontWeight:w,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto","&:hover":{color:b,backgroundColor:y,textDecoration:"none"},"&:active":{backgroundColor:C}},(0,ve.K8)(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:f},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${(0,he.zA)(A)} ${(0,he.zA)(S)}`,borderTop:`${(0,he.zA)(p)} ${m} ${g}`},"&-rtl":{direction:"rtl"}}}},Gx=(0,J.OF)("Drawer",(e=>{const t=(0,Ue.oX)(e,{});return[Xx(t),Kx(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));var Yx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{rootClassName:t,width:n,height:o,size:a="default",mask:l=!0,push:c=Ux,open:s,afterOpenChange:u,onClose:d,prefixCls:f,getContainer:p,style:m,className:g,visible:h,afterVisibleChange:v,maskStyle:b,drawerStyle:y,contentWrapperStyle:C}=e,x=Yx(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:w,getPrefixCls:A,direction:S,drawer:$}=r.useContext(Z.ConfigContext),k=A("drawer",f),[E,O,I]=Gx(k),M=void 0===p&&w?()=>w(document.body):p,N=i()({"no-mask":!l,[`${k}-rtl`]:"rtl"===S},t,O,I);const z=r.useMemo((()=>null!=n?n:"large"===a?736:378),[n,a]),P=r.useMemo((()=>null!=o?o:"large"===a?736:378),[o,a]),j={motionName:(0,Hr.b)(k,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},R=(0,Lx.f)(),[T,D]=(0,mt.YK)("Drawer",x.zIndex),{classNames:B={},styles:L={}}=x,{classNames:H={},styles:F={}}=$||{};return E(r.createElement(Hi.A,{form:!0,space:!0},r.createElement(Ui.A.Provider,{value:D},r.createElement(Bx,Object.assign({prefixCls:k,onClose:d,maskMotion:j,motion:e=>({motionName:(0,Hr.b)(k,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},x,{classNames:{mask:i()(B.mask,H.mask),content:i()(B.content,H.content),wrapper:i()(B.wrapper,H.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},L.mask),b),F.mask),content:Object.assign(Object.assign(Object.assign({},L.content),y),F.content),wrapper:Object.assign(Object.assign(Object.assign({},L.wrapper),C),F.wrapper)},open:null!=s?s:h,mask:l,push:c,width:z,height:P,style:Object.assign(Object.assign({},null==$?void 0:$.style),m),className:i()(null==$?void 0:$.className,g),rootClassName:N,getContainer:M,afterOpenChange:null!=u?u:v,panelRef:R,zIndex:T}),r.createElement(Fx,Object.assign({prefixCls:k},x,{onClose:d}))))))};Qx._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:o,placement:a="right"}=e,l=Yx(e,["prefixCls","style","className","placement"]),{getPrefixCls:c}=r.useContext(Z.ConfigContext),s=c("drawer",t),[u,d,f]=Gx(s),p=i()(s,`${s}-pure`,`${s}-${a}`,d,f,o);return u(r.createElement("div",{className:p,style:n},r.createElement(Fx,Object.assign({prefixCls:s},l))))};const Zx=Qx;function Jx(e){return["small","middle","large"].includes(e)}function ew(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}const tw=r.createContext({latestIndex:0}),nw=tw.Provider,rw=e=>{let{className:t,index:n,children:o,split:i,style:a}=e;const{latestIndex:l}=r.useContext(tw);return null==o?null:r.createElement(r.Fragment,null,r.createElement("div",{className:t,style:a},o),n{var n,o,a;const{getPrefixCls:c,space:s,direction:u}=r.useContext(Z.ConfigContext),{size:d=(null!==(n=null==s?void 0:s.size)&&void 0!==n?n:"small"),align:f,className:p,rootClassName:m,children:g,direction:h="horizontal",prefixCls:v,split:b,style:y,wrap:C=!1,classNames:x,styles:w}=e,A=iw(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[S,$]=Array.isArray(d)?d:[d,d],k=Jx($),E=Jx(S),O=ew($),I=ew(S),M=(0,l.A)(g,{keepEmpty:!0}),N=void 0===f&&"horizontal"===h?"center":f,z=c("space",v),[P,j,R]=(0,ow.A)(z),T=i()(z,null==s?void 0:s.className,j,`${z}-${h}`,{[`${z}-rtl`]:"rtl"===u,[`${z}-align-${N}`]:N,[`${z}-gap-row-${$}`]:k,[`${z}-gap-col-${S}`]:E},p,m,R),D=i()(`${z}-item`,null!==(o=null==x?void 0:x.item)&&void 0!==o?o:null===(a=null==s?void 0:s.classNames)||void 0===a?void 0:a.item);let B=0;const L=M.map(((e,t)=>{var n,o;null!=e&&(B=t);const i=(null==e?void 0:e.key)||`${D}-${t}`;return r.createElement(rw,{className:D,key:i,index:t,split:b,style:null!==(n=null==w?void 0:w.item)&&void 0!==n?n:null===(o=null==s?void 0:s.styles)||void 0===o?void 0:o.item},e)})),H=r.useMemo((()=>({latestIndex:B})),[B]);if(0===M.length)return null;const F={};return C&&(F.flexWrap="wrap"),!E&&I&&(F.columnGap=S),!k&&O&&(F.rowGap=$),P(r.createElement("div",Object.assign({ref:t,className:T,style:Object.assign(Object.assign(Object.assign({},F),null==s?void 0:s.style),y)},A),r.createElement(nw,{value:H},L)))})),lw=aw;lw.Compact=ao.Ay;const cw=lw;var sw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:n,direction:o}=r.useContext(Z.ConfigContext),{prefixCls:a,type:l="default",danger:c,disabled:s,loading:u,onClick:d,htmlType:f,children:p,className:m,menu:g,arrow:h,autoFocus:v,overlay:b,trigger:y,align:C,open:x,onOpenChange:w,placement:A,getPopupContainer:S,href:$,icon:k=r.createElement(ts,null),title:E,buttonsRender:O=e=>e,mouseEnterDelay:I,mouseLeaveDelay:M,overlayClassName:N,overlayStyle:z,destroyPopupOnHide:P,dropdownRender:j}=e,R=sw(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),T=n("dropdown",a),D=`${T}-button`,B={menu:g,arrow:h,autoFocus:v,align:C,disabled:s,trigger:s?[]:y,onOpenChange:w,getPopupContainer:S||t,mouseEnterDelay:I,mouseLeaveDelay:M,overlayClassName:N,overlayStyle:z,destroyPopupOnHide:P,dropdownRender:j},{compactSize:L,compactItemClassnames:H}=(0,ao.RQ)(T,o),F=i()(D,H,m);"overlay"in e&&(B.overlay=b),"open"in e&&(B.open=x),B.placement="placement"in e?A:"rtl"===o?"bottomLeft":"bottomRight";const _=r.createElement(Qs.Ay,{type:l,danger:c,disabled:s,loading:u,onClick:d,htmlType:f,href:$,title:E},p),W=r.createElement(Qs.Ay,{type:l,danger:c,icon:k}),[V,q]=O([_,W]);return r.createElement(cw.Compact,Object.assign({className:F,size:L,block:!0},R),V,r.createElement(Rs,Object.assign({},B),q))};uw.__ANT_BUTTON=!0;const dw=uw,fw=Rs;fw.Button=dw;const pw=fw,mw=["wrap","nowrap","wrap-reverse"],gw=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],hw=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];const vw=function(e,t){return i()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&mw.includes(n)}})(e,t)),((e,t)=>{const n={};return hw.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return gw.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))},bw=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},yw=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},Cw=e=>{const{componentCls:t}=e,n={};return mw.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},xw=e=>{const{componentCls:t}=e,n={};return hw.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},ww=e=>{const{componentCls:t}=e,n={};return gw.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n},Aw=(0,J.OF)("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=(0,Ue.oX)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[bw(o),yw(o),Cw(o),xw(o),ww(o)]}),(()=>({})),{resetStyle:!1});var Sw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,rootClassName:o,className:a,style:l,flex:c,gap:s,children:u,vertical:d=!1,component:f="div"}=e,p=Sw(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:m,direction:g,getPrefixCls:h}=r.useContext(Z.ConfigContext),v=h("flex",n),[b,y,C]=Aw(v),x=null!=d?d:null==m?void 0:m.vertical,w=i()(a,o,null==m?void 0:m.className,v,y,C,vw(v,e),{[`${v}-rtl`]:"rtl"===g,[`${v}-gap-${s}`]:Jx(s),[`${v}-vertical`]:x}),A=Object.assign(Object.assign({},null==m?void 0:m.style),l);return c&&(A.flex=c),s&&!Jx(s)&&(A.gap=s),b(r.createElement(f,Object.assign({ref:t,className:w,style:A},(0,G.A)(p,["justify","wrap","align"])),u))}));const kw=$w,Ew=r.createContext(void 0),{Provider:Ow}=Ew,Iw=Ew;const Mw={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 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};var Nw=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:Mw}))};const zw=r.forwardRef(Nw),Pw=e=>{const{icon:t,description:n,prefixCls:o,className:a}=e,l=r.createElement("div",{className:`${o}-icon`},r.createElement(zw,null));return r.createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:i()(a,`${o}-content`)},t||n?r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${o}-icon`},t),n&&r.createElement("div",{className:`${o}-description`},n)):l)},jw=(0,r.memo)(Pw);var Rw=n(8680);const Tw=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2),Dw=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:r,motionEaseInOutCirc:o,calc:i}=e,a=new he.Mo("antFloatButtonMoveTopIn",{"0%":{transform:`translate3d(0, ${(0,he.zA)(n)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new he.Mo("antFloatButtonMoveTopOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${(0,he.zA)(n)}, 0)`,transformOrigin:"0 0",opacity:0}}),c=new he.Mo("antFloatButtonMoveRightIn",{"0%":{transform:`translate3d(${i(n).mul(-1).equal()}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new he.Mo("antFloatButtonMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${i(n).mul(-1).equal()}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),u=new he.Mo("antFloatButtonMoveBottomIn",{"0%":{transform:`translate3d(0, ${i(n).mul(-1).equal()}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),d=new he.Mo("antFloatButtonMoveBottomOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${i(n).mul(-1).equal()}, 0)`,transformOrigin:"0 0",opacity:0}}),f=new he.Mo("antFloatButtonMoveLeftIn",{"0%":{transform:`translate3d(${(0,he.zA)(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),p=new he.Mo("antFloatButtonMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${(0,he.zA)(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),m=`${t}-group`;return[{[m]:{[`&${m}-top ${m}-wrap`]:(0,so.b)(`${m}-wrap`,a,l,r,!0),[`&${m}-bottom ${m}-wrap`]:(0,so.b)(`${m}-wrap`,u,d,r,!0),[`&${m}-left ${m}-wrap`]:(0,so.b)(`${m}-wrap`,f,p,r,!0),[`&${m}-right ${m}-wrap`]:(0,so.b)(`${m}-wrap`,c,s,r,!0)}},{[`${m}-wrap`]:{[`&${m}-wrap-enter, &${m}-wrap-appear`]:{opacity:0,animationTimingFunction:o},[`&${m}-wrap-leave`]:{opacity:1,animationTimingFunction:o}}}]},Bw=e=>{const{antCls:t,componentCls:n,floatButtonSize:r,margin:o,borderRadiusLG:i,borderRadiusSM:a,badgeOffset:l,floatButtonBodyPadding:c,zIndexPopupBase:s,calc:u}=e,d=`${n}-group`;return{[d]:Object.assign(Object.assign({},(0,ve.dF)(e)),{zIndex:s,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"none",position:"fixed",height:"auto",boxShadow:"none",minWidth:r,minHeight:r,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,borderRadius:i,[`${d}-wrap`]:{zIndex:-1,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute"},[`&${d}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${d}-top > ${d}-wrap`]:{flexDirection:"column",top:"auto",bottom:u(r).add(o).equal(),"&::after":{content:'""',position:"absolute",width:"100%",height:o,bottom:u(o).mul(-1).equal()}},[`${d}-bottom > ${d}-wrap`]:{flexDirection:"column",top:u(r).add(o).equal(),bottom:"auto","&::after":{content:'""',position:"absolute",width:"100%",height:o,top:u(o).mul(-1).equal()}},[`${d}-right > ${d}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:u(r).add(o).equal()},right:{_skip_check_:!0,value:"auto"},"&::after":{content:'""',position:"absolute",width:o,height:"100%",left:{_skip_check_:!0,value:u(o).mul(-1).equal()}}},[`${d}-left > ${d}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:u(r).add(o).equal()},"&::after":{content:'""',position:"absolute",width:o,height:"100%",right:{_skip_check_:!0,value:u(o).mul(-1).equal()}}},[`${d}-circle`]:{gap:o,[`${d}-wrap`]:{gap:o}},[`${d}-square`]:{[`${n}-square`]:{padding:0,borderRadius:0,[`&${d}-trigger`]:{borderRadius:i},"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:u(u(c).add(l)).mul(-1).equal(),insetInlineEnd:u(u(c).add(l)).mul(-1).equal()}}},[`${d}-wrap`]:{borderRadius:i,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",borderRadius:0,padding:c,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}},[`${d}-top > ${d}-wrap, ${d}-bottom > ${d}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${d}-left > ${d}-wrap, ${d}-right > ${d}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:i,borderEndStartRadius:i},"&:last-child":{borderStartEndRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderInlineEnd:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${d}-circle-shadow`]:{boxShadow:"none"},[`${d}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:c,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}}},Lw=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:r,floatButtonIconSize:o,floatButtonSize:i,borderRadiusLG:a,badgeOffset:l,dotOffsetInSquare:c,dotOffsetInCircle:s,zIndexPopupBase:u,calc:d}=e;return{[n]:Object.assign(Object.assign({},(0,ve.dF)(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:u,display:"block",width:i,height:i,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:d(l).mul(-1).equal(),insetInlineEnd:d(l).mul(-1).equal()}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:i,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${(0,he.zA)(d(r).div(2).equal())} ${(0,he.zA)(r)}`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:o,fontSize:o,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:i,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:s,insetInlineEnd:s}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:i,borderRadius:a,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{height:"auto",borderRadius:a}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:(0,he.zA)(e.fontSizeLG),color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:(0,he.zA)(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},Hw=(0,J.OF)("FloatButton",(e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:r,marginXXL:o,marginLG:i,fontSize:a,fontSizeIcon:l,controlItemBgHover:c,paddingXXS:s,calc:u}=e,d=(0,Ue.oX)(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:c,floatButtonFontSize:a,floatButtonIconSize:u(l).mul(1.5).equal(),floatButtonSize:r,floatButtonInsetBlockEnd:o,floatButtonInsetInlineEnd:i,floatButtonBodySize:u(r).sub(u(s).mul(2)).equal(),floatButtonBodyPadding:s,badgeOffset:u(s).mul(1.5).equal()});return[Bw(d),Lw(d),(0,Rw.p9)(e),Dw(d)]}),(e=>({dotOffsetInCircle:Tw(e.controlHeightLG/2),dotOffsetInSquare:Tw(e.borderRadiusLG)})));var Fw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:o,rootClassName:a,style:l,type:c="default",shape:s="circle",icon:u,description:d,tooltip:f,htmlType:p="button",badge:m={}}=e,g=Fw(e,["prefixCls","className","rootClassName","style","type","shape","icon","description","tooltip","htmlType","badge"]),{getPrefixCls:h,direction:v}=(0,r.useContext)(Z.ConfigContext),b=(0,r.useContext)(Iw),y=h(_w,n),C=(0,Xe.A)(y),[x,w,A]=Hw(y,C),S=b||s,$=i()(w,A,C,y,o,a,`${y}-${c}`,`${y}-${S}`,{[`${y}-rtl`]:"rtl"===v}),[k]=(0,mt.YK)("FloatButton",null==l?void 0:l.zIndex),E=Object.assign(Object.assign({},l),{zIndex:k}),O=(0,G.A)(m,["title","children","status","text"]),I=(0,r.useMemo)((()=>({prefixCls:y,description:d,icon:u,type:c})),[y,d,u,c]);let M=r.createElement("div",{className:`${y}-body`},r.createElement(jw,Object.assign({},I)));return"badge"in e&&(M=r.createElement(el,Object.assign({},O),M)),"tooltip"in e&&(M=r.createElement(da,{title:f,placement:"rtl"===v?"right":"left"},M)),x(e.href?r.createElement("a",Object.assign({ref:t},g,{className:$,style:E}),M):r.createElement("button",Object.assign({ref:t},g,{className:$,style:E,type:p}),M))}));const Vw=Ww;var qw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:o,type:a="default",shape:l="circle",visibilityHeight:c=400,icon:s=r.createElement(Ia,null),target:u,onClick:d,duration:p=450}=e,m=qw(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[g,h]=(0,r.useState)(0===c),v=r.useRef(null);r.useImperativeHandle(t,(()=>({nativeElement:v.current})));const b=()=>{var e;return(null===(e=v.current)||void 0===e?void 0:e.ownerDocument)||window},y=Q((e=>{const t=qe(e.target);h(t>=c)}));(0,r.useEffect)((()=>{const e=(u||b)();return y({target:e}),null==e||e.addEventListener("scroll",y),()=>{y.cancel(),null==e||e.removeEventListener("scroll",y)}}),[u]);const C=e=>{Ke(0,{getContainer:u||b,duration:p}),null==d||d(e)},{getPrefixCls:x}=(0,r.useContext)(Z.ConfigContext),w=x(_w,n),A=x(),S=(0,r.useContext)(Iw)||l,$=Object.assign({prefixCls:w,icon:s,type:a,shape:S},m);return r.createElement(pe.Ay,{visible:g,motionName:`${A}-fade`},((e,t)=>{let{className:n}=e;return r.createElement(Vw,Object.assign({ref:(0,f.K4)(v,t)},$,{onClick:C,className:i()(o,n)}))}))}));const Xw=Kw;var Gw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;const{prefixCls:n,className:o,style:a,shape:l="circle",type:c="default",placement:s="top",icon:u=r.createElement(zw,null),closeIcon:d,description:f,trigger:p,children:m,onOpenChange:g,open:h,onClick:v}=e,b=Gw(e,["prefixCls","className","style","shape","type","placement","icon","closeIcon","description","trigger","children","onOpenChange","open","onClick"]),{direction:y,getPrefixCls:C,floatButtonGroup:x}=r.useContext(Z.ConfigContext),w=null!==(t=null!=d?d:null==x?void 0:x.closeIcon)&&void 0!==t?t:r.createElement(ue.A,null),A=C(_w,n),S=(0,Xe.A)(A),[$,k,E]=Hw(A,S),O=`${A}-group`,I=p&&["click","hover"].includes(p),M=s&&["top","left","right","bottom"].includes(s),N=i()(O,k,E,S,o,{[`${O}-rtl`]:"rtl"===y,[`${O}-${l}`]:l,[`${O}-${l}-shadow`]:!I,[`${O}-${s}`]:I&&M}),[z]=(0,mt.YK)("FloatButton",null==a?void 0:a.zIndex),P=Object.assign(Object.assign({},a),{zIndex:z}),j=i()(k,`${O}-wrap`),[R,T]=(0,yt.A)(!1,{value:h}),D=r.useRef(null),B="hover"===p,L="click"===p,H=(0,Te.A)((e=>{R!==e&&(T(e),null==g||g(e))}));return r.useEffect((()=>{if(L){const e=e=>{var t;(null===(t=D.current)||void 0===t?void 0:t.contains(e.target))||H(!1)};return document.addEventListener("click",e,{capture:!0}),()=>document.removeEventListener("click",e,{capture:!0})}}),[L]),$(r.createElement(Ow,{value:l},r.createElement("div",{ref:D,className:N,style:P,onMouseEnter:()=>{B&&H(!0)},onMouseLeave:()=>{B&&H(!1)}},I?r.createElement(r.Fragment,null,r.createElement(pe.Ay,{visible:R,motionName:`${O}-wrap`},(e=>{let{className:t}=e;return r.createElement("div",{className:i()(t,j)},m)})),r.createElement(Vw,Object.assign({type:c,icon:R?w:u,description:f,"aria-label":e["aria-label"],className:`${O}-trigger`,onClick:e=>{L&&H(!R),null==v||v(e)}},b))):m)))};var Uw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{backTop:t}=e,n=Uw(e,["backTop"]);return t?r.createElement(Xw,Object.assign({},n,{visibilityHeight:0})):r.createElement(Vw,Object.assign({},n))},Zw=e=>{var{className:t,items:n}=e,o=Uw(e,["className","items"]);const{prefixCls:a}=o,{getPrefixCls:l}=r.useContext(Z.ConfigContext),c=`${l(_w,a)}-pure`;return n?r.createElement(Yw,Object.assign({className:i()(t,c)},o),n.map(((e,t)=>r.createElement(Qw,Object.assign({key:t},e))))):r.createElement(Qw,Object.assign({className:i()(t,c)},o))};Vw.BackTop=Xw,Vw.Group=Yw,Vw._InternalPanelDoNotUseOrYouWillBeFired=Zw;const Jw=Vw;function eA(e){const[t,n]=r.useState(e);return r.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}const tA=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},\n opacity ${e.motionDurationFast} ${e.motionEaseInOut},\n transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},nA=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,he.zA)(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),rA=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},oA=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,ve.dF)(e)),nA(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},rA(e,e.controlHeightSM)),"&-large":Object.assign({},rA(e,e.controlHeightLG))})}},iA=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,antCls:i,labelRequiredMarkColor:a,labelColor:l,labelFontSize:c,labelHeight:s,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},(0,ve.dF)(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:l,fontSize:c,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Qi.nF,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},aA=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},lA=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},cA=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),sA=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:cA(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},uA=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,\n ${r}-col-24${n}-label,\n ${r}-col-xl-24${n}-label`]:cA(e)}},[`@media (max-width: ${(0,he.zA)(e.screenXSMax)})`]:[sA(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:cA(e)}}}],[`@media (max-width: ${(0,he.zA)(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:cA(e)}}},[`@media (max-width: ${(0,he.zA)(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:cA(e)}}},[`@media (max-width: ${(0,he.zA)(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:cA(e)}}}}},dA=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,\n ${n}-col-24${t}-label,\n ${n}-col-xl-24${t}-label`]:cA(e),[`@media (max-width: ${(0,he.zA)(e.screenXSMax)})`]:[sA(e),{[t]:{[`${n}-col-xs-24${t}-label`]:cA(e)}}],[`@media (max-width: ${(0,he.zA)(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:cA(e)}},[`@media (max-width: ${(0,he.zA)(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:cA(e)}},[`@media (max-width: ${(0,he.zA)(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:cA(e)}}}},fA=(e,t)=>(0,Ue.oX)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),pA=(0,J.OF)("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=fA(e,n);return[oA(r),iA(r),tA(r),aA(r,r.componentCls),aA(r,r.formItemCls),lA(r),uA(r),dA(r),(0,us.A)(r),Qi.nF]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0})),{order:-1e3}),mA=[];function gA(e,t,n){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:e,errorStatus:n}}const hA=e=>{let{help:t,helpStatus:n,errors:o=mA,warnings:a=mA,className:l,fieldId:c,onVisibleChanged:s}=e;const{prefixCls:u}=r.useContext(oo.hb),d=`${u}-item-explain`,f=(0,Xe.A)(u),[p,m,g]=pA(u,f),h=(0,r.useMemo)((()=>(0,Hr.A)(u)),[u]),v=eA(o),b=eA(a),y=r.useMemo((()=>null!=t?[gA(t,"help",n)]:[].concat((0,Y.A)(v.map(((e,t)=>gA(e,"error","error",t)))),(0,Y.A)(b.map(((e,t)=>gA(e,"warning","warning",t)))))),[t,n,v,b]),C={};return c&&(C.id=`${c}_help`),p(r.createElement(pe.Ay,{motionDeadline:h.motionDeadline,motionName:`${u}-show-help`,visible:!!y.length,onVisibleChanged:s},(e=>{const{className:t,style:n}=e;return r.createElement("div",Object.assign({},C,{className:i()(d,t,g,f,l,m),style:n,role:"alert"}),r.createElement(pe.aF,Object.assign({keys:y},(0,Hr.A)(u),{motionName:`${u}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:o,className:a,style:l}=e;return r.createElement("div",{key:t,className:i()(a,{[`${d}-${o}`]:o}),style:l},n)})))})))};var vA=n(7537),bA=n(8224);const yA=["parentNode"];function CA(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function xA(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return yA.includes(n)?`form_item_${n}`:n}function wA(e,t,n,r,o,i){let a=r;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function AA(e){return CA(e).join("_")}function SA(e,t){const n=t.getFieldInstance(e),r=(0,d.rb)(n);if(r)return r;const o=xA(CA(e),t.__INTERNAL__.name);return o?document.getElementById(o):void 0}function $A(e){const[t]=(0,vA.mN)(),n=r.useRef({}),o=r.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=AA(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=SA(e,o);n&&We(n,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},focusField:e=>{var t;const n=SA(e,o);n&&(null===(t=n.focus)||void 0===t||t.call(n))},getFieldInstance:e=>{const t=AA(e);return n.current[t]}})),[e,t]);return[o]}var kA=n(9407),EA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const n=r.useContext(no.A),{getPrefixCls:o,direction:a,form:l}=r.useContext(Z.ConfigContext),{prefixCls:c,className:s,rootClassName:u,size:d,disabled:f=n,form:p,colon:m,labelAlign:g,labelWrap:h,labelCol:v,wrapperCol:b,hideRequiredMark:y,layout:C="horizontal",scrollToFirstError:x,requiredMark:w,onFinishFailed:A,name:S,style:$,feedbackIcons:k,variant:E}=e,O=EA(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),I=(0,ro.A)(d),M=r.useContext(kA.A);const N=(0,r.useMemo)((()=>void 0!==w?w:!y&&(!l||void 0===l.requiredMark||l.requiredMark)),[y,w,l]),z=null!=m?m:null==l?void 0:l.colon,P=o("form",c),j=(0,Xe.A)(P),[R,T,D]=pA(P,j),B=i()(P,`${P}-${C}`,{[`${P}-hide-required-mark`]:!1===N,[`${P}-rtl`]:"rtl"===a,[`${P}-${I}`]:I},D,j,T,null==l?void 0:l.className,s,u),[L]=$A(p),{__INTERNAL__:H}=L;H.name=S;const F=(0,r.useMemo)((()=>({name:S,labelAlign:g,labelCol:v,labelWrap:h,wrapperCol:b,vertical:"vertical"===C,colon:z,requiredMark:N,itemRef:H.itemRef,form:L,feedbackIcons:k})),[S,g,v,b,C,z,N,L,k]),_=r.useRef(null);r.useImperativeHandle(t,(()=>{var e;return Object.assign(Object.assign({},L),{nativeElement:null===(e=_.current)||void 0===e?void 0:e.nativeElement})}));const W=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=Object.assign(Object.assign({},n),e)),L.scrollToField(t,n),n.focus&&L.focusField(t)}};return R(r.createElement(oo.Pp.Provider,{value:E},r.createElement(no.X,{disabled:f},r.createElement(bA.A.Provider,{value:I},r.createElement(oo.Op,{validateMessages:M},r.createElement(oo.cK.Provider,{value:F},r.createElement(vA.Ay,Object.assign({id:S},O,{name:S,onFinishFailed:e=>{if(null==A||A(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==x)return void W(x,t);l&&void 0!==l.scrollToFirstError&&W(l.scrollToFirstError,t)}},form:L,ref:_,style:Object.assign(Object.assign({},null==l?void 0:l.style),$),className:B}))))))))};const IA=r.forwardRef(OA);var MA=n(1233);const NA=()=>{const{status:e,errors:t=[],warnings:n=[]}=(0,r.useContext)(oo.$W);return{status:e,errors:t,warnings:n}};NA.Context=oo.$W;const zA=NA;var PA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{(()=>{if("string"==typeof e&&o(e),"object"==typeof e)for(let n=0;n{const{prefixCls:n,justify:o,align:a,className:l,style:c,children:s,gutter:u=0,wrap:d}=e,f=PA(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:m}=r.useContext(Z.ConfigContext),[g,h]=r.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,b]=r.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=jA(a,v),C=jA(o,v),x=r.useRef(u),w=(0,wi.Ay)();r.useEffect((()=>{const e=w.subscribe((e=>{b(e);const t=x.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&h(e)}));return()=>w.unsubscribe(e)}),[]);const A=p("row",n),[S,$,k]=Wh(A),E=(()=>{const e=[void 0,void 0];return(Array.isArray(u)?u:[u,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r0?E[0]/-2:void 0;M&&(I.marginLeft=M,I.marginRight=M);const[N,z]=E;I.rowGap=z;const P=r.useMemo((()=>({gutter:[N,z],wrap:d})),[N,z,d]);return S(r.createElement(Hh.Provider,{value:P},r.createElement("div",Object.assign({},f,{className:O,style:Object.assign(Object.assign({},I),c),ref:t}),s)))}));const TA=RA,DA=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},BA=(0,J.bf)(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=fA(e,n);return[DA(r)]}));var LA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,status:n,labelCol:o,wrapperCol:a,children:l,errors:c,warnings:s,_internalItemRender:u,extra:d,help:f,fieldId:p,marginBottom:m,onErrorVisibleChanged:g,label:h}=e,v=`${t}-item`,b=r.useContext(oo.cK),y=r.useMemo((()=>{let e=Object.assign({},a||b.wrapperCol||{});if(null===h&&!o&&!a&&b.labelCol){[void 0,"xs","sm","md","lg","xl","xxl"].forEach((t=>{const n=t?[t]:[],r=(0,er.Jt)(b.labelCol,n),o="object"==typeof r?r:{},i=(0,er.Jt)(e,n);"span"in o&&!("offset"in("object"==typeof i?i:{}))&&o.span<24&&(e=(0,er.hZ)(e,[].concat(n,["offset"]),o.span))}))}return e}),[a,b]),C=i()(`${v}-control`,y.className),x=r.useMemo((()=>{const{labelCol:e,wrapperCol:t}=b;return LA(b,["labelCol","wrapperCol"])}),[b]),w=r.useRef(null),[A,S]=r.useState(0);(0,Ct.A)((()=>{d&&w.current?S(w.current.clientHeight):S(0)}),[d]);const $=r.createElement("div",{className:`${v}-control-input`},r.createElement("div",{className:`${v}-control-input-content`},l)),k=r.useMemo((()=>({prefixCls:t,status:n})),[t,n]),E=null!==m||c.length||s.length?r.createElement(oo.hb.Provider,{value:k},r.createElement(hA,{fieldId:p,errors:c,warnings:s,help:f,helpStatus:n,className:`${v}-explain-connected`,onVisibleChanged:g})):null,O={};p&&(O.id=`${p}_extra`);const I=d?r.createElement("div",Object.assign({},O,{className:`${v}-extra`,ref:w}),d):null,M=E||I?r.createElement("div",{className:`${v}-additional`,style:m?{minHeight:m+A}:{}},E,I):null,N=u&&"pro_table_render"===u.mark&&u.render?u.render(e,{input:$,errorList:E,extra:I}):r.createElement(r.Fragment,null,$,M);return r.createElement(oo.cK.Provider,{value:x},r.createElement(Yh,Object.assign({},y,{className:C}),N),r.createElement(BA,{prefixCls:t}))};const FA={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var _A=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:FA}))};const WA=r.forwardRef(_A);var VA=n(8182),qA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,label:n,htmlFor:o,labelCol:a,labelAlign:l,colon:c,required:s,requiredMark:u,tooltip:d,vertical:f}=e;var p;const[m]=(0,Wr.A)("Form"),{labelAlign:g,labelCol:h,labelWrap:v,colon:b}=r.useContext(oo.cK);if(!n)return null;const y=a||h||{},C=l||g,x=`${t}-item-label`,w=i()(x,"left"===C&&`${x}-left`,y.className,{[`${x}-wrap`]:!!v});let A=n;const S=!0===c||!1!==b&&!1!==c;S&&!f&&"string"==typeof n&&n.trim()&&(A=n.replace(/[:|:]\s*$/,""));const $=function(e){return e?"object"!=typeof e||r.isValidElement(e)?{title:e}:e:null}(d);if($){const{icon:e=r.createElement(WA,null)}=$,n=qA($,["icon"]),o=r.createElement(da,Object.assign({},n),r.cloneElement(e,{className:`${t}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));A=r.createElement(r.Fragment,null,A,o)}const k="optional"===u,E="function"==typeof u;E?A=u(A,{required:!!s}):k&&!s&&(A=r.createElement(r.Fragment,null,A,r.createElement("span",{className:`${t}-item-optional`,title:""},(null==m?void 0:m.optional)||(null===(p=VA.A.Form)||void 0===p?void 0:p.optional))));const O=i()({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:k||E,[`${t}-item-no-colon`]:!S});return r.createElement(Yh,Object.assign({},y,{className:w}),r.createElement("label",{htmlFor:o,className:O,title:"string"==typeof n?n:""},A))},XA={success:ce.A,warning:de.A,error:se.A,validating:oi.A};function GA(e){let{children:t,errors:n,warnings:o,hasFeedback:a,validateStatus:l,prefixCls:c,meta:s,noStyle:u}=e;const d=`${c}-item`,{feedbackIcons:f}=r.useContext(oo.cK),p=wA(n,o,s,null,!!a,l),{isFormItemInput:m,status:g,hasFeedback:h,feedbackIcon:v}=r.useContext(oo.$W),b=r.useMemo((()=>{var e;let t;if(a){const l=!0!==a&&a.icons||f,c=p&&(null===(e=null==l?void 0:l({status:p,errors:n,warnings:o}))||void 0===e?void 0:e[p]),s=p&&XA[p];t=!1!==c&&s?r.createElement("span",{className:i()(`${d}-feedback-icon`,`${d}-feedback-icon-${p}`)},c||r.createElement(s,null)):null}const l={status:p||"",errors:n,warnings:o,hasFeedback:!!a,feedbackIcon:t,isFormItemInput:!0};return u&&(l.status=(null!=p?p:g)||"",l.isFormItemInput=m,l.hasFeedback=!!(null!=a?a:h),l.feedbackIcon=void 0!==a?l.feedbackIcon:v),l}),[p,a,u,m,g]);return r.createElement(oo.$W.Provider,{value:b},t)}var YA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(I&&$.current){const e=getComputedStyle($.current);z(parseInt(e.marginBottom,10))}}),[I,M]);const P=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return wA(e?k:d.errors,e?E:d.warnings,d,"",!!f,u)}(),j=i()(x,n,o,{[`${x}-with-help`]:O||k.length||E.length,[`${x}-has-feedback`]:P&&f,[`${x}-has-success`]:"success"===P,[`${x}-has-warning`]:"warning"===P,[`${x}-has-error`]:"error"===P,[`${x}-is-validating`]:"validating"===P,[`${x}-hidden`]:p,[`${x}-${y}`]:y});return r.createElement("div",{className:j,style:a,ref:$},r.createElement(TA,Object.assign({className:`${x}-row`},(0,G.A)(C,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),r.createElement(KA,Object.assign({htmlFor:g},e,{requiredMark:w,required:null!=h?h:v,prefixCls:t,vertical:S})),r.createElement(HA,Object.assign({},e,d,{errors:k,warnings:E,prefixCls:t,status:P,help:l,marginBottom:N,onErrorVisibleChanged:e=>{e||z(null)}}),r.createElement(oo.jC.Provider,{value:b},r.createElement(GA,{prefixCls:t,meta:d,errors:d.errors,warnings:d.warnings,hasFeedback:f,validateStatus:P},m)))),!!N&&r.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-N}}))}const QA=r.memo((e=>{let{children:t}=e;return t}),((e,t)=>function(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>{const r=e[n],o=t[n];return r===o||"function"==typeof r||"function"==typeof o}))}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n]))));const ZA=function(e){const{name:t,noStyle:n,className:o,dependencies:a,prefixCls:c,shouldUpdate:s,rules:u,children:d,required:p,label:m,messageVariables:g,trigger:h="onChange",validateTrigger:v,hidden:b,help:y,layout:C}=e,{getPrefixCls:x}=r.useContext(Z.ConfigContext),{name:w}=r.useContext(oo.cK),A=function(e){if("function"==typeof e)return e;const t=(0,l.A)(e);return t.length<=1?t[0]:t}(d),S="function"==typeof A,$=r.useContext(oo.jC),{validateTrigger:k}=r.useContext(vA._z),E=void 0!==v?v:k,O=!(null==t),I=x("form",c),M=(0,Xe.A)(I),[N,z,P]=pA(I,M);(0,at.rJ)("Form.Item");const j=r.useContext(vA.EF),R=r.useRef(),[T,D]=function(e){const[t,n]=r.useState(e),o=(0,r.useRef)(null),i=(0,r.useRef)([]),a=(0,r.useRef)(!1);return r.useEffect((()=>(a.current=!1,()=>{a.current=!0,U.A.cancel(o.current),o.current=null})),[]),[t,function(e){a.current||(null===o.current&&(i.current=[],o.current=(0,U.A)((()=>{o.current=null,n((e=>{let t=e;return i.current.forEach((e=>{t=e(t)})),t}))}))),i.current.push(e))}]}({}),[B,L]=(0,MA.A)((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),H=(e,t)=>{D((n=>{const r=Object.assign({},n),o=[].concat((0,Y.A)(e.name.slice(0,-1)),(0,Y.A)(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[F,_]=r.useMemo((()=>{const e=(0,Y.A)(B.errors),t=(0,Y.A)(B.warnings);return Object.values(T).forEach((n=>{e.push.apply(e,(0,Y.A)(n.errors||[])),t.push.apply(t,(0,Y.A)(n.warnings||[]))})),[e,t]}),[T,B.errors,B.warnings]),W=function(){const{itemRef:e}=r.useContext(oo.cK),t=r.useRef({});return function(n,r){const o=r&&"object"==typeof r&&r.ref,i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=(0,f.K4)(e(n),o)),t.current.ref}}();function V(t,a,l){return n&&!b?r.createElement(GA,{prefixCls:I,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:B,errors:F,warnings:_,noStyle:!0},t):r.createElement(UA,Object.assign({key:"row"},e,{className:i()(o,P,M,z),prefixCls:I,fieldId:a,isRequired:l,errors:F,warnings:_,meta:B,onSubItemMetaChange:H,layout:C}),t)}if(!O&&!S&&!a)return N(V(A));let q={};return"string"==typeof m?q.label=m:t&&(q.label=String(t)),g&&(q=Object.assign(Object.assign({},q),g)),N(r.createElement(vA.D0,Object.assign({},e,{messageVariables:q,trigger:h,validateTrigger:E,onMetaChange:e=>{const t=null==j?void 0:j.getKey(e.name);if(L(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==y&&$){let n=e.name;if(e.destroy)n=R.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat((0,Y.A)(r)),R.current=n}$(e,n)}}}),((n,o,i)=>{const l=CA(t).length&&o?o.name:[],c=xA(l,w),d=void 0!==p?p:!!(null==u?void 0:u.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(i);return(null==t?void 0:t.required)&&!(null==t?void 0:t.warningOnly)}return!1}))),m=Object.assign({},n);let g=null;if(Array.isArray(A)&&O)g=A;else if(S&&(!s&&!a||O));else if(!a||S||O)if(r.isValidElement(A)){const t=Object.assign(Object.assign({},A.props),m);if(t.id||(t.id=c),y||F.length>0||_.length>0||e.extra){const n=[];(y||F.length>0)&&n.push(`${c}_help`),e.extra&&n.push(`${c}_extra`),t["aria-describedby"]=n.join(" ")}F.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),(0,f.f3)(A)&&(t.ref=W(l,A));new Set([].concat((0,Y.A)(CA(h)),(0,Y.A)(CA(E)))).forEach((e=>{t[e]=function(){for(var t,n,r,o,i,a=arguments.length,l=new Array(a),c=0;c{var{prefixCls:t,children:n}=e,o=eS(e,["prefixCls","children"]);const{getPrefixCls:i}=r.useContext(Z.ConfigContext),a=i("form",t),l=r.useMemo((()=>({prefixCls:a,status:"error"})),[a]);return r.createElement(vA.B8,Object.assign({},o),((e,t,o)=>r.createElement(oo.hb.Provider,{value:l},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:o.errors,warnings:o.warnings}))))};const nS=IA;nS.Item=JA,nS.List=tS,nS.ErrorList=hA,nS.useForm=$A,nS.useFormInstance=function(){const{form:e}=(0,r.useContext)(oo.cK);return e},nS.useWatch=vA.FH,nS.Provider=oo.Op,nS.create=()=>{};const rS=nS;var oS=n(372);function iS(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function aS(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var lS=n(3766);function cS(e,t,n,r){var o=zt.unstable_batchedUpdates?function(e){zt.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var sS=r.createContext(null);const uS=function(e){var t=e.visible,n=e.maskTransitionName,o=e.getContainer,a=e.prefixCls,l=e.rootClassName,c=e.icons,u=e.countRender,d=e.showSwitch,f=e.showProgress,p=e.current,m=e.transform,g=e.count,h=e.scale,v=e.minScale,b=e.maxScale,y=e.closeIcon,C=e.onActive,x=e.onClose,w=e.onZoomIn,A=e.onZoomOut,S=e.onRotateRight,$=e.onRotateLeft,k=e.onFlipX,E=e.onFlipY,O=e.onReset,I=e.toolbarRender,M=e.zIndex,N=e.image,z=(0,r.useContext)(sS),P=c.rotateLeft,j=c.rotateRight,R=c.zoomIn,T=c.zoomOut,D=c.close,B=c.left,L=c.right,H=c.flipX,F=c.flipY,_="".concat(a,"-operations-operation");r.useEffect((function(){var e=function(e){e.keyCode===kt.A.ESC&&x()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[t]);var W=function(e,t){e.preventDefault(),e.stopPropagation(),C(t)},V=r.useCallback((function(e){var t=e.type,n=e.disabled,o=e.onClick,l=e.icon;return r.createElement("div",{key:t,className:i()(_,"".concat(a,"-operations-operation-").concat(t),(0,ht.A)({},"".concat(a,"-operations-operation-disabled"),!!n)),onClick:o},l)}),[_,a]),q=d?V({icon:B,onClick:function(e){return W(e,-1)},type:"prev",disabled:0===p}):void 0,K=d?V({icon:L,onClick:function(e){return W(e,1)},type:"next",disabled:p===g-1}):void 0,X=V({icon:F,onClick:E,type:"flipY"}),G=V({icon:H,onClick:k,type:"flipX"}),Y=V({icon:P,onClick:$,type:"rotateLeft"}),U=V({icon:j,onClick:S,type:"rotateRight"}),Q=V({icon:T,onClick:A,type:"zoomOut",disabled:h<=v}),Z=V({icon:R,onClick:w,type:"zoomIn",disabled:h===b}),J=r.createElement("div",{className:"".concat(a,"-operations")},X,G,Y,U,Q,Z);return r.createElement(pe.Ay,{visible:t,motionName:n},(function(e){var t=e.className,n=e.style;return r.createElement(cn.A,{open:!0,getContainer:null!=o?o:document.body},r.createElement("div",{className:i()("".concat(a,"-operations-wrapper"),t,l),style:(0,s.A)((0,s.A)({},n),{},{zIndex:M})},null===y?null:r.createElement("button",{className:"".concat(a,"-close"),onClick:x},y||D),d&&r.createElement(r.Fragment,null,r.createElement("div",{className:i()("".concat(a,"-switch-left"),(0,ht.A)({},"".concat(a,"-switch-left-disabled"),0===p)),onClick:function(e){return W(e,-1)}},B),r.createElement("div",{className:i()("".concat(a,"-switch-right"),(0,ht.A)({},"".concat(a,"-switch-right-disabled"),p===g-1)),onClick:function(e){return W(e,1)}},L)),r.createElement("div",{className:"".concat(a,"-footer")},f&&r.createElement("div",{className:"".concat(a,"-progress")},u?u(p+1,g):"".concat(p+1," / ").concat(g)),I?I(J,(0,s.A)((0,s.A)({icons:{prevIcon:q,nextIcon:K,flipYIcon:X,flipXIcon:G,rotateLeftIcon:Y,rotateRightIcon:U,zoomOutIcon:Q,zoomInIcon:Z},actions:{onActive:C,onFlipY:E,onFlipX:k,onRotateLeft:$,onRotateRight:S,onZoomOut:A,onZoomIn:w,onReset:O,onClose:x},transform:m},z?{current:p,total:g}:{}),{},{image:N})):J)))}))};var dS={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function fS(e,t,n,r){var o=t+n,i=(n-r)/2;if(n>r){if(t>0)return(0,ht.A)({},e,i);if(t<0&&or)return(0,ht.A)({},e,t<0?i:-i);return{}}function pS(e,t,n,r){var o=iS(),i=o.width,a=o.height,l=null;return e<=i&&t<=a?l={x:0,y:0}:(e>i||t>a)&&(l=(0,s.A)((0,s.A)({},fS("x",n,e,i)),fS("y",r,t,a))),l}function mS(e){var t=e.src,n=e.isCustomPlaceholder,o=e.fallback,i=(0,r.useState)(n?"loading":"normal"),a=(0,vt.A)(i,2),l=a[0],c=a[1],s=(0,r.useRef)(!1),u="error"===l;(0,r.useEffect)((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(t).then((function(t){!t&&e&&c("error")})),function(){e=!1}}),[t]),(0,r.useEffect)((function(){n&&!s.current?c("loading"):u&&c("normal")}),[t]);var d=function(){c("normal")};return[function(e){s.current=!1,"loading"===l&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(s.current=!0,d())},u&&o?{src:o}:{onLoad:d,src:t},l]}function gS(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function hS(e,t,n,o,i,a,l){var c=i.rotate,u=i.scale,d=i.x,f=i.y,p=(0,r.useState)(!1),m=(0,vt.A)(p,2),g=m[0],h=m[1],v=(0,r.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),b=function(e){v.current=(0,s.A)((0,s.A)({},v.current),e)};return(0,r.useEffect)((function(){var e;return n&&t&&(e=cS(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[n,t]),{isTouching:g,onTouchStart:function(e){if(t){e.stopPropagation(),h(!0);var n=e.touches,r=void 0===n?[]:n;r.length>1?b({point1:{x:r[0].clientX,y:r[0].clientY},point2:{x:r[1].clientX,y:r[1].clientY},eventType:"touchZoom"}):b({point1:{x:r[0].clientX-d,y:r[0].clientY-f},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=v.current,o=r.point1,i=r.point2,c=r.eventType;if(n.length>1&&"touchZoom"===c){var s={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,r){var o=gS(e,n),i=gS(t,r);if(0===o&&0===i)return[e.x,e.y];var a=o/(o+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(o,i,s,u),f=(0,vt.A)(d,2),p=f[0],m=f[1],g=gS(s,u)/gS(o,i);l(g,"touchZoom",p,m,!0),b({point1:s,point2:u,eventType:"touchZoom"})}else"move"===c&&(a({x:n[0].clientX-o.x,y:n[0].clientY-o.y},"move"),b({eventType:"move"}))},onTouchEnd:function(){if(n){if(g&&h(!1),b({eventType:"none"}),o>u)return a({x:0,y:0,scale:o},"touchZoom");var t=e.current.offsetWidth*u,r=e.current.offsetHeight*u,i=e.current.getBoundingClientRect(),l=i.left,d=i.top,f=c%180!=0,p=pS(f?r:t,f?t:r,l,d);p&&a((0,s.A)({},p),"dragRebound")}}}}var vS=["fallback","src","imgRef"],bS=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],yS=function(e){var t=e.fallback,n=e.src,o=e.imgRef,i=(0,bt.A)(e,vS),l=mS({src:n,fallback:t}),c=(0,vt.A)(l,2),s=c[0],u=c[1];return r.createElement("img",(0,a.A)({ref:function(e){o.current=e,s(e)}},i,u))};const CS=function(e){var t=e.prefixCls,n=e.src,o=e.alt,l=e.imageInfo,u=e.fallback,d=e.movable,f=void 0===d||d,p=e.onClose,m=e.visible,g=e.icons,h=void 0===g?{}:g,v=e.rootClassName,b=e.closeIcon,y=e.getContainer,C=e.current,x=void 0===C?0:C,w=e.count,A=void 0===w?1:w,S=e.countRender,$=e.scaleStep,k=void 0===$?.5:$,E=e.minScale,O=void 0===E?1:E,I=e.maxScale,M=void 0===I?50:I,N=e.transitionName,z=void 0===N?"zoom":N,P=e.maskTransitionName,j=void 0===P?"fade":P,R=e.imageRender,T=e.imgCommonProps,D=e.toolbarRender,B=e.onTransform,L=e.onChange,H=(0,bt.A)(e,bS),F=(0,r.useRef)(),_=(0,r.useContext)(sS),W=_&&A>1,V=_&&A>=1,q=(0,r.useState)(!0),K=(0,vt.A)(q,2),X=K[0],G=K[1],Y=function(e,t,n,o){var i=(0,r.useRef)(null),a=(0,r.useRef)([]),l=(0,r.useState)(dS),c=(0,vt.A)(l,2),u=c[0],d=c[1],f=function(e,t){null===i.current&&(a.current=[],i.current=(0,U.A)((function(){d((function(e){var n=e;return a.current.forEach((function(e){n=(0,s.A)((0,s.A)({},n),e)})),i.current=null,null==o||o({transform:n,action:t}),n}))}))),a.current.push((0,s.A)((0,s.A)({},u),e))};return{transform:u,resetTransform:function(e){d(dS),(0,dl.A)(dS,u)||null==o||o({transform:dS,action:e})},updateTransform:f,dispatchZoomChange:function(r,o,i,a,l){var c=e.current,s=c.width,d=c.height,p=c.offsetWidth,m=c.offsetHeight,g=c.offsetLeft,h=c.offsetTop,v=r,b=u.scale*r;b>n?(b=n,v=n/u.scale):b0&&(r=1/r),l(r,"wheel",e.clientX,e.clientY)}}}}(F,f,m,k,Q,J,ee),ne=te.isMoving,re=te.onMouseDown,oe=te.onWheel,ie=hS(F,f,m,O,Q,J,ee),ae=ie.isTouching,le=ie.onTouchStart,ce=ie.onTouchMove,se=ie.onTouchEnd,ue=Q.rotate,de=Q.scale,fe=i()((0,ht.A)({},"".concat(t,"-moving"),ne));(0,r.useEffect)((function(){X||G(!0)}),[X]);var pe=function(e){var t=x+e;!Number.isInteger(t)||t<0||t>A-1||(G(!1),Z(e<0?"prev":"next"),null==L||L(t,x))},me=function(e){m&&W&&(e.keyCode===kt.A.LEFT?pe(-1):e.keyCode===kt.A.RIGHT&&pe(1))};(0,r.useEffect)((function(){var e=cS(window,"keydown",me,!1);return function(){e.remove()}}),[m,W,x]);var ge=r.createElement(yS,(0,a.A)({},T,{width:e.width,height:e.height,imgRef:F,className:"".concat(t,"-img"),alt:o,style:{transform:"translate3d(".concat(Q.x,"px, ").concat(Q.y,"px, 0) scale3d(").concat(Q.flipX?"-":"").concat(de,", ").concat(Q.flipY?"-":"").concat(de,", 1) rotate(").concat(ue,"deg)"),transitionDuration:(!X||ae)&&"0s"},fallback:u,src:n,onWheel:oe,onMouseDown:re,onDoubleClick:function(e){m&&(1!==de?J({x:0,y:0,scale:1},"doubleClick"):ee(1+k,"doubleClick",e.clientX,e.clientY))},onTouchStart:le,onTouchMove:ce,onTouchEnd:se,onTouchCancel:se})),he=(0,s.A)({url:n,alt:o},l);return r.createElement(r.Fragment,null,r.createElement(lS.A,(0,a.A)({transitionName:z,maskTransitionName:j,closable:!1,keyboard:!0,prefixCls:t,onClose:p,visible:m,classNames:{wrapper:fe},rootClassName:v,getContainer:y},H,{afterClose:function(){Z("close")}}),r.createElement("div",{className:"".concat(t,"-img-wrapper")},R?R(ge,(0,s.A)({transform:Q,image:he},_?{current:x}:{})):ge)),r.createElement(uS,{visible:m,transform:Q,maskTransitionName:j,closeIcon:b,getContainer:y,prefixCls:t,rootClassName:v,icons:h,countRender:S,showSwitch:W,showProgress:V,current:x,count:A,scale:de,minScale:O,maxScale:M,toolbarRender:D,onActive:pe,onZoomIn:function(){ee(1+k,"zoomIn")},onZoomOut:function(){ee(1/(1+k),"zoomOut")},onRotateRight:function(){J({rotate:ue+90},"rotateRight")},onRotateLeft:function(){J({rotate:ue-90},"rotateLeft")},onFlipX:function(){J({flipX:!Q.flipX},"flipX")},onFlipY:function(){J({flipY:!Q.flipY},"flipY")},onClose:p,onReset:function(){Z("reset")},zIndex:void 0!==H.zIndex?H.zIndex+1:void 0,image:he}))};var xS=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];var wS=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],AS=["src"];const SS=function(e){var t,n=e.previewPrefixCls,o=void 0===n?"rc-image-preview":n,i=e.children,l=e.icons,c=void 0===l?{}:l,d=e.items,f=e.preview,p=e.fallback,m="object"===(0,u.A)(f)?f:{},g=m.visible,h=m.onVisibleChange,v=m.getContainer,b=m.current,y=m.movable,C=m.minScale,x=m.maxScale,w=m.countRender,A=m.closeIcon,S=m.onChange,$=m.onTransform,k=m.toolbarRender,E=m.imageRender,O=(0,bt.A)(m,wS),I=function(e){var t=r.useState({}),n=(0,vt.A)(t,2),o=n[0],i=n[1],a=r.useCallback((function(e,t){return i((function(n){return(0,s.A)((0,s.A)({},n),{},(0,ht.A)({},e,t))})),function(){i((function(t){var n=(0,s.A)({},t);return delete n[e],n}))}}),[]);return[r.useMemo((function(){return e?e.map((function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach((function(n){["src"].concat((0,Y.A)(xS)).includes(n)&&(t[n]=e[n])})),{data:t}})):Object.keys(o).reduce((function(e,t){var n=o[t],r=n.canPreview,i=n.data;return r&&e.push({data:i,id:t}),e}),[])}),[e,o]),a,!!e]}(d),M=(0,vt.A)(I,3),N=M[0],z=M[1],P=M[2],j=(0,yt.A)(0,{value:b}),R=(0,vt.A)(j,2),T=R[0],D=R[1],B=(0,r.useState)(!1),L=(0,vt.A)(B,2),H=L[0],F=L[1],_=(null===(t=N[T])||void 0===t?void 0:t.data)||{},W=_.src,V=(0,bt.A)(_,AS),q=(0,yt.A)(!!g,{value:g,onChange:function(e,t){null==h||h(e,t,T)}}),K=(0,vt.A)(q,2),X=K[0],G=K[1],U=(0,r.useState)(null),Q=(0,vt.A)(U,2),Z=Q[0],J=Q[1],ee=r.useCallback((function(e,t,n,r){var o=P?N.findIndex((function(e){return e.data.src===t})):N.findIndex((function(t){return t.id===e}));D(o<0?0:o),G(!0),J({x:n,y:r}),F(!0)}),[N,P]);r.useEffect((function(){X?H||D(0):F(!1)}),[X]);var te=r.useMemo((function(){return{register:z,onPreview:ee}}),[z,ee]);return r.createElement(sS.Provider,{value:te},i,r.createElement(CS,(0,a.A)({"aria-hidden":!X,movable:y,visible:X,prefixCls:o,closeIcon:A,onClose:function(){G(!1),J(null)},mousePosition:Z,imgCommonProps:V,src:W,fallback:p,icons:c,minScale:C,maxScale:x,getContainer:v,current:T,count:N.length,countRender:w,onTransform:$,toolbarRender:k,imageRender:E,onChange:function(e,t){D(e),null==S||S(e,t)}},O)))};var $S=0;var kS=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],ES=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],OS=function(e){var t=e.src,n=e.alt,o=e.onPreviewClose,l=e.prefixCls,c=void 0===l?"rc-image":l,d=e.previewPrefixCls,f=void 0===d?"".concat(c,"-preview"):d,p=e.placeholder,m=e.fallback,g=e.width,h=e.height,v=e.style,b=e.preview,y=void 0===b||b,C=e.className,x=e.onClick,w=e.onError,A=e.wrapperClassName,S=e.wrapperStyle,$=e.rootClassName,k=(0,bt.A)(e,kS),E=p&&!0!==p,O="object"===(0,u.A)(y)?y:{},I=O.src,M=O.visible,N=void 0===M?void 0:M,z=O.onVisibleChange,P=void 0===z?o:z,j=O.getContainer,R=void 0===j?void 0:j,T=O.mask,D=O.maskClassName,B=O.movable,L=O.icons,H=O.scaleStep,F=O.minScale,_=O.maxScale,W=O.imageRender,V=O.toolbarRender,q=(0,bt.A)(O,ES),K=null!=I?I:t,X=(0,yt.A)(!!N,{value:N,onChange:P}),G=(0,vt.A)(X,2),Y=G[0],U=G[1],Q=mS({src:t,isCustomPlaceholder:E,fallback:m}),Z=(0,vt.A)(Q,3),J=Z[0],ee=Z[1],te=Z[2],ne=(0,r.useState)(null),re=(0,vt.A)(ne,2),oe=re[0],ie=re[1],ae=(0,r.useContext)(sS),le=!!y,ce=i()(c,A,$,(0,ht.A)({},"".concat(c,"-error"),"error"===te)),se=(0,r.useMemo)((function(){var t={};return xS.forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t}),xS.map((function(t){return e[t]}))),ue=function(e,t){var n=r.useState((function(){return String($S+=1)})),o=(0,vt.A)(n,1)[0],i=r.useContext(sS),a={data:t,canPreview:e};return r.useEffect((function(){if(i)return i.register(o,a)}),[]),r.useEffect((function(){i&&i.register(o,a)}),[e,t]),o}(le,(0,r.useMemo)((function(){return(0,s.A)((0,s.A)({},se),{},{src:K})}),[K,se]));return r.createElement(r.Fragment,null,r.createElement("div",(0,a.A)({},k,{className:ce,onClick:le?function(e){var t=aS(e.target),n=t.left,r=t.top;ae?ae.onPreview(ue,K,n,r):(ie({x:n,y:r}),U(!0)),null==x||x(e)}:x,style:(0,s.A)({width:g,height:h},S)}),r.createElement("img",(0,a.A)({},se,{className:i()("".concat(c,"-img"),(0,ht.A)({},"".concat(c,"-img-placeholder"),!0===p),C),style:(0,s.A)({height:h},v),ref:J},ee,{width:g,height:h,onError:w})),"loading"===te&&r.createElement("div",{"aria-hidden":"true",className:"".concat(c,"-placeholder")},p),T&&le&&r.createElement("div",{className:i()("".concat(c,"-mask"),D),style:{display:"none"===(null==v?void 0:v.display)?"none":void 0}},T)),!ae&&le&&r.createElement(CS,(0,a.A)({"aria-hidden":!Y,visible:Y,prefixCls:f,onClose:function(){U(!1),ie(null)},mousePosition:oe,src:K,alt:n,imageInfo:{width:g,height:h},fallback:m,getContainer:R,icons:L,movable:B,scaleStep:H,minScale:F,maxScale:_,rootClassName:$,imageRender:W,imgCommonProps:se,toolbarRender:V},q)))};OS.PreviewGroup=SS;const IS=OS;const MS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};var NS=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:MS}))};const zS=r.forwardRef(NS);const PS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};var jS=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:PS}))};const RS=r.forwardRef(jS);const TS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};var DS=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:TS}))};const BS=r.forwardRef(DS);const LS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};var HS=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:LS}))};const FS=r.forwardRef(HS);const _S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};var WS=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:_S}))};const VS=r.forwardRef(WS);var qS=n(8071);const KS=e=>({position:e||"absolute",inset:0}),XS=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new Vr.q("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},ve.L9),{padding:`0 ${(0,he.zA)(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},GS=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:s,iconCls:u,colorTextLightSolid:d}=e,f=new Vr.q(n).setAlpha(.1),p=f.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${s}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,he.zA)(a)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${s}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},YS=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,l=new Vr.q(t).setAlpha(.1),c=l.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},US=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},KS()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},KS()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[GS(e),YS(e)]}]},QS=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},XS(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},KS())}}},ZS=e=>{const{previewCls:t}=e;return{[`${t}-root`]:(0,Qi.aB)(e,"zoom"),"&":(0,Rw.p9)(e,!0)}},JS=(0,J.OF)("Image",(e=>{const t=`${e.componentCls}-preview`,n=(0,Ue.oX)(e,{previewCls:t,modalMaskBg:new Vr.q("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[QS(n),US(n),(0,qS.Dk)((0,Ue.oX)(n,{componentCls:t})),ZS(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Vr.q(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Vr.q(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Vr.q(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon})));var e$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;const{prefixCls:n,preview:o,className:a,rootClassName:l,style:c}=e,s=n$(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:u,locale:d=VA.A,getPopupContainer:f,image:p}=r.useContext(Z.ConfigContext),m=u("image",n),g=u(),h=d.Image||VA.A.Image,v=(0,Xe.A)(m),[b,y,C]=JS(m,v),x=i()(l,y,C,v),w=i()(a,y,null==p?void 0:p.className),[A]=(0,mt.YK)("ImagePreview","object"==typeof o?o.zIndex:void 0),S=r.useMemo((()=>{var e;if(!1===o)return o;const t="object"==typeof o?o:{},{getContainer:n,closeIcon:a,rootClassName:l}=t,c=n$(t,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:r.createElement("div",{className:`${m}-mask-info`},r.createElement(Lb,null),null==h?void 0:h.preview),icons:t$},c),{rootClassName:i()(x,l),getContainer:null!=n?n:f,transitionName:(0,Hr.b)(g,"zoom",t.transitionName),maskTransitionName:(0,Hr.b)(g,"fade",t.maskTransitionName),zIndex:A,closeIcon:null!=a?a:null===(e=null==p?void 0:p.preview)||void 0===e?void 0:e.closeIcon})}),[o,h,null===(t=null==p?void 0:p.preview)||void 0===t?void 0:t.closeIcon]),$=Object.assign(Object.assign({},null==p?void 0:p.style),c);return b(r.createElement(IS,Object.assign({prefixCls:m,preview:S,rootClassName:x,className:w,style:$},s)))};r$.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,o=e$(e,["previewPrefixCls","preview"]);const{getPrefixCls:a}=r.useContext(Z.ConfigContext),l=a("image",t),c=`${l}-preview`,s=a(),u=(0,Xe.A)(l),[d,f,p]=JS(l,u),[m]=(0,mt.YK)("ImagePreview","object"==typeof n?n.zIndex:void 0),g=r.useMemo((()=>{var e;if(!1===n)return n;const t="object"==typeof n?n:{},r=i()(f,p,u,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:(0,Hr.b)(s,"zoom",t.transitionName),maskTransitionName:(0,Hr.b)(s,"fade",t.maskTransitionName),rootClassName:r,zIndex:m})}),[n]);return d(r.createElement(IS.PreviewGroup,Object.assign({preview:g,previewPrefixCls:c,icons:t$},o)))};const o$=r$;var i$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);or.forwardRef(((o,i)=>r.createElement(e,Object.assign({ref:i,suffixCls:t,tagName:n},o))))}const l$=r.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:o,className:a,tagName:l}=e,c=i$(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=r.useContext(Z.ConfigContext),u=s("layout",n),[d,f,p]=Vc(u),m=o?`${u}-${o}`:u;return d(r.createElement(l,Object.assign({className:i()(n||m,a,f,p),ref:t},c)))})),c$=r.forwardRef(((e,t)=>{const{direction:n}=r.useContext(Z.ConfigContext),[o,a]=r.useState([]),{prefixCls:c,className:s,rootClassName:u,children:d,hasSider:f,tagName:p,style:m}=e,g=i$(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=(0,G.A)(g,["suffixCls"]),{getPrefixCls:v,layout:b}=r.useContext(Z.ConfigContext),y=v("layout",c),C=function(e,t,n){return"boolean"==typeof n?n:!!e.length||(0,l.A)(t).some((e=>e.type===Zc))}(o,d,f),[x,w,A]=Vc(y),S=i()(y,{[`${y}-has-sider`]:C,[`${y}-rtl`]:"rtl"===n},null==b?void 0:b.className,s,u,w,A),$=r.useMemo((()=>({siderHook:{addSider:e=>{a((t=>[].concat((0,Y.A)(t),[e])))},removeSider:e=>{a((t=>t.filter((t=>t!==e))))}}})),[]);return x(r.createElement(Hc.Provider,{value:$},r.createElement(p,Object.assign({ref:t,className:S,style:Object.assign(Object.assign({},null==b?void 0:b.style),m)},h),d)))})),s$=a$({tagName:"div",displayName:"Layout"})(c$),u$=a$({suffixCls:"header",tagName:"header",displayName:"Header"})(l$),d$=a$({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(l$),f$=a$({suffixCls:"content",tagName:"main",displayName:"Content"})(l$),p$=s$;p$.Header=u$,p$.Footer=d$,p$.Content=f$,p$.Sider=Zc,p$._InternalSiderContext=Yc;const m$=p$,g$=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const r=n[t];void 0!==r&&(e[t]=r)}))}return e};const h$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var v$=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:h$}))};const b$=r.forwardRef(v$);const y$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};var C$=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:y$}))};const x$=r.forwardRef(C$);const w$={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};var A$=["10","20","50","100"];const S$=function(e){var t=e.pageSizeOptions,n=void 0===t?A$:t,o=e.locale,l=e.changeSize,c=e.pageSize,s=e.goButton,d=e.quickGo,f=e.rootPrefixCls,p=e.selectComponentClass,m=e.selectPrefixCls,g=e.disabled,h=e.buildOptionText,v=e.showSizeChanger,b=r.useState(""),y=(0,vt.A)(b,2),C=y[0],x=y[1],w=function(){return!C||Number.isNaN(C)?void 0:Number(C)},A="function"==typeof h?h:function(e){return"".concat(e," ").concat(o.items_per_page)},S=function(e){""!==C&&(e.keyCode!==kt.A.ENTER&&"click"!==e.type||(x(""),null==d||d(w())))},$="".concat(f,"-options");if(!v&&!d)return null;var k=null,E=null,O=null;if(v&&p){var I="object"===(0,u.A)(v)?v:{},M=I.options,N=I.className,z=M?void 0:(n.some((function(e){return e.toString()===c.toString()}))?n:n.concat([c.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e,t){return r.createElement(p.Option,{key:t,value:e.toString()},A(e))}));k=r.createElement(p,(0,a.A)({disabled:g,prefixCls:m,showSearch:!1,optionLabelProp:M?"label":"children",popupMatchSelectWidth:!1,value:(c||n[0]).toString(),getPopupContainer:function(e){return e.parentNode},"aria-label":o.page_size,defaultOpen:!1},"object"===(0,u.A)(v)?v:null,{className:i()("".concat($,"-size-changer"),N),options:M,onChange:function(e,t){var n;null==l||l(Number(e)),"object"===(0,u.A)(v)&&(null===(n=v.onChange)||void 0===n||n.call(v,e,t))}}),z)}return d&&(s&&(O="boolean"==typeof s?r.createElement("button",{type:"button",onClick:S,onKeyUp:S,disabled:g,className:"".concat($,"-quick-jumper-button")},o.jump_to_confirm):r.createElement("span",{onClick:S,onKeyUp:S},s)),E=r.createElement("div",{className:"".concat($,"-quick-jumper")},o.jump_to,r.createElement("input",{disabled:g,type:"text",value:C,onChange:function(e){x(e.target.value)},onKeyUp:S,onBlur:function(e){s||""===C||(x(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(f,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(f,"-item"))>=0)||null==d||d(w()))},"aria-label":o.page}),o.page,O)),r.createElement("li",{className:$},k,E)};const $$=function(e){var t=e.rootPrefixCls,n=e.page,o=e.active,a=e.className,l=e.showTitle,c=e.onClick,s=e.onKeyPress,u=e.itemRender,d="".concat(t,"-item"),f=i()(d,"".concat(d,"-").concat(n),(0,ht.A)((0,ht.A)({},"".concat(d,"-active"),o),"".concat(d,"-disabled"),!n),a),p=u(n,"page",r.createElement("a",{rel:"nofollow"},n));return p?r.createElement("li",{title:l?String(n):null,className:f,onClick:function(){c(n)},onKeyDown:function(e){s(e,c,n)},tabIndex:0},p):null};var k$=function(e,t,n){return n};function E$(){}function O$(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function I$(e,t,n){var r=void 0===e?t:e;return Math.floor((n-1)/r)+1}const M$=function(e){var t=e.prefixCls,n=void 0===t?"rc-pagination":t,o=e.selectPrefixCls,l=void 0===o?"rc-select":o,c=e.className,d=e.selectComponentClass,f=e.current,p=e.defaultCurrent,m=void 0===p?1:p,g=e.total,h=void 0===g?0:g,v=e.pageSize,b=e.defaultPageSize,y=void 0===b?10:b,C=e.onChange,x=void 0===C?E$:C,w=e.hideOnSinglePage,A=e.align,S=e.showPrevNextJumpers,$=void 0===S||S,k=e.showQuickJumper,E=e.showLessItems,O=e.showTitle,I=void 0===O||O,M=e.onShowSizeChange,N=void 0===M?E$:M,z=e.locale,P=void 0===z?w$:z,j=e.style,R=e.totalBoundaryShowSizeChanger,T=void 0===R?50:R,D=e.disabled,B=e.simple,L=e.showTotal,H=e.showSizeChanger,F=void 0===H?h>T:H,_=e.pageSizeOptions,W=e.itemRender,V=void 0===W?k$:W,q=e.jumpPrevIcon,K=e.jumpNextIcon,X=e.prevIcon,G=e.nextIcon,Y=r.useRef(null),U=(0,yt.A)(10,{value:v,defaultValue:y}),Q=(0,vt.A)(U,2),Z=Q[0],J=Q[1],ee=(0,yt.A)(1,{value:f,defaultValue:m,postState:function(e){return Math.max(1,Math.min(e,I$(void 0,Z,h)))}}),te=(0,vt.A)(ee,2),ne=te[0],re=te[1],oe=r.useState(ne),ie=(0,vt.A)(oe,2),ae=ie[0],le=ie[1];(0,r.useEffect)((function(){le(ne)}),[ne]);var ce=Math.max(1,ne-(E?3:5)),se=Math.min(I$(void 0,Z,h),ne+(E?3:5));function ue(t,o){var i=t||r.createElement("button",{type:"button","aria-label":o,className:"".concat(n,"-item-link")});return"function"==typeof t&&(i=r.createElement(t,(0,s.A)({},e))),i}function de(e){var t=e.target.value,n=I$(void 0,Z,h);return""===t?t:Number.isNaN(Number(t))?ae:t>=n?n:Number(t)}var fe=h>Z&&k;function pe(e){var t=de(e);switch(t!==ae&&le(t),e.keyCode){case kt.A.ENTER:ge(t);break;case kt.A.UP:ge(t-1);break;case kt.A.DOWN:ge(t+1)}}function ge(e){if(function(e){return O$(e)&&e!==ne&&O$(h)&&h>0}(e)&&!D){var t=I$(void 0,Z,h),n=e;return e>t?n=t:e<1&&(n=1),n!==ae&&le(n),re(n),null==x||x(n,Z),n}return ne}var he=ne>1,ve=ne2?n-2:0),o=2;oh?h:ne*Z])),Ee=null,Oe=I$(void 0,Z,h);if(w&&h<=Z)return null;var Ie=[],Me={rootPrefixCls:n,onClick:ge,onKeyPress:we,showTitle:I,itemRender:V,page:-1},Ne=ne-1>0?ne-1:0,ze=ne+1=2*De&&3!==ne&&(Ie[0]=r.cloneElement(Ie[0],{className:i()("".concat(n,"-item-after-jump-prev"),Ie[0].props.className)}),Ie.unshift(Se)),Oe-ne>=2*De&&ne!==Oe-2){var Ke=Ie[Ie.length-1];Ie[Ie.length-1]=r.cloneElement(Ke,{className:i()("".concat(n,"-item-before-jump-next"),Ke.props.className)}),Ie.push(Ee)}1!==We&&Ie.unshift(r.createElement($$,(0,a.A)({},Me,{key:1,page:1}))),Ve!==Oe&&Ie.push(r.createElement($$,(0,a.A)({},Me,{key:Oe,page:Oe})))}var Xe=function(e){var t=V(e,"prev",ue(X,"prev page"));return r.isValidElement(t)?r.cloneElement(t,{disabled:!he}):t}(Ne);if(Xe){var Ge=!he||!Oe;Xe=r.createElement("li",{title:I?P.prev_page:null,onClick:be,tabIndex:Ge?null:0,onKeyDown:function(e){we(e,be)},className:i()("".concat(n,"-prev"),(0,ht.A)({},"".concat(n,"-disabled"),Ge)),"aria-disabled":Ge},Xe)}var Ye,Ue,Qe=function(e){var t=V(e,"next",ue(G,"next page"));return r.isValidElement(t)?r.cloneElement(t,{disabled:!ve}):t}(ze);Qe&&(B?(Ye=!ve,Ue=he?0:null):Ue=(Ye=!ve||!Oe)?null:0,Qe=r.createElement("li",{title:I?P.next_page:null,onClick:ye,tabIndex:Ue,onKeyDown:function(e){we(e,ye)},className:i()("".concat(n,"-next"),(0,ht.A)({},"".concat(n,"-disabled"),Ye)),"aria-disabled":Ye},Qe));var Ze=i()(n,c,(0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)({},"".concat(n,"-start"),"start"===A),"".concat(n,"-center"),"center"===A),"".concat(n,"-end"),"end"===A),"".concat(n,"-simple"),B),"".concat(n,"-disabled"),D));return r.createElement("ul",(0,a.A)({className:Ze,style:j,ref:Y},$e),ke,Xe,B?Te:Ie,Qe,r.createElement(S$,{locale:P,rootPrefixCls:n,disabled:D,selectComponentClass:d,selectPrefixCls:l,changeSize:function(e){var t=I$(e,Z,h),n=ne>t&&0!==t?t:ne;J(e),le(n),null==N||N(ne,e),re(n),null==x||x(n,e)},pageSize:Z,pageSizeOptions:_,quickGo:fe?ge:null,goButton:Re,showSizeChanger:F}))};var N$=n(6069);const z$=e=>r.createElement(gi,Object.assign({},e,{showSearch:!0,size:"small"})),P$=e=>r.createElement(gi,Object.assign({},e,{showSearch:!0,size:"middle"}));z$.Option=gi.Option,P$.Option=gi.Option;var j$=n(7414);const R$=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},T$=(0,J.bf)(["Pagination","bordered"],(e=>{const t=(0,j$.prepareToken)(e);return[R$(t)]}),j$.prepareComponentToken);var D$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{align:t,prefixCls:n,selectPrefixCls:o,className:a,rootClassName:l,style:c,size:s,locale:u,selectComponentClass:d,responsive:f,showSizeChanger:p}=e,m=D$(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:g}=(0,Ai.A)(f),[,h]=(0,qr.Ay)(),{getPrefixCls:v,direction:b,pagination:y={}}=r.useContext(Z.ConfigContext),C=v("pagination",n),[x,w,A]=(0,j$.default)(C),S=null!=p?p:y.showSizeChanger,$=r.useMemo((()=>{const e=r.createElement("span",{className:`${C}-item-ellipsis`},"•••");return{prevIcon:r.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},"rtl"===b?r.createElement(tl.A,null):r.createElement(Bc,null)),nextIcon:r.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},"rtl"===b?r.createElement(Bc,null):r.createElement(tl.A,null)),jumpPrevIcon:r.createElement("a",{className:`${C}-item-link`},r.createElement("div",{className:`${C}-item-container`},"rtl"===b?r.createElement(x$,{className:`${C}-item-link-icon`}):r.createElement(b$,{className:`${C}-item-link-icon`}),e)),jumpNextIcon:r.createElement("a",{className:`${C}-item-link`},r.createElement("div",{className:`${C}-item-container`},"rtl"===b?r.createElement(b$,{className:`${C}-item-link-icon`}):r.createElement(x$,{className:`${C}-item-link-icon`}),e))}}),[b,C]),[k]=(0,Wr.A)("Pagination",N$.A),E=Object.assign(Object.assign({},k),u),O=(0,ro.A)(s),I="small"===O||!(!g||O||!f),M=v("select",o),N=i()({[`${C}-${t}`]:!!t,[`${C}-mini`]:I,[`${C}-rtl`]:"rtl"===b,[`${C}-bordered`]:h.wireframe},null==y?void 0:y.className,a,l,w,A),z=Object.assign(Object.assign({},null==y?void 0:y.style),c);return x(r.createElement(r.Fragment,null,h.wireframe&&r.createElement(T$,{prefixCls:C}),r.createElement(M$,Object.assign({},$,m,{style:z,prefixCls:C,selectPrefixCls:M,className:N,selectComponentClass:d||(I?z$:P$),locale:E,showSizeChanger:S}))))},L$=B$,H$=80*Math.PI,F$=e=>{const{dotClassName:t,style:n,hasCircleCls:o}=e;return r.createElement("circle",{className:i()(`${t}-circle`,{[`${t}-circle-bg`]:o}),r:40,cx:50,cy:50,strokeWidth:20,style:n})},_$=e=>{let{percent:t,prefixCls:n}=e;const o=`${n}-dot`,a=`${o}-holder`,l=`${a}-hidden`,[c,s]=r.useState(!1);(0,Ct.A)((()=>{0!==t&&s(!0)}),[0!==t]);const u=Math.max(Math.min(t,100),0);if(!c)return null;const d={strokeDashoffset:""+H$/4,strokeDasharray:`${H$*u/100} ${H$*(100-u)/100}`};return r.createElement("span",{className:i()(a,`${o}-progress`,u<=0&&l)},r.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u},r.createElement(F$,{dotClassName:o,hasCircleCls:!0}),r.createElement(F$,{dotClassName:o,style:d})))};function W$(e){const{prefixCls:t,percent:n=0}=e,o=`${t}-dot`,a=`${o}-holder`,l=`${a}-hidden`;return r.createElement(r.Fragment,null,r.createElement("span",{className:i()(a,n>0&&l)},r.createElement("span",{className:i()(o,`${t}-dot-spin`)},[1,2,3,4].map((e=>r.createElement("i",{className:`${t}-dot-item`,key:e}))))),r.createElement(_$,{prefixCls:t,percent:n}))}function V$(e){const{prefixCls:t,indicator:n,percent:o}=e,a=`${t}-dot`;return n&&r.isValidElement(n)?(0,ge.Ob)(n,{className:i()(n.props.className,a),percent:o}):r.createElement(W$,{prefixCls:t,percent:o})}const q$=new he.Mo("antSpinMove",{to:{opacity:1}}),K$=new he.Mo("antRotate",{to:{transform:"rotate(405deg)"}}),X$=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:q$,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:K$,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map((t=>`${t} ${e.motionDurationSlow} ease`)).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},G$=(0,J.OF)("Spin",(e=>{const t=(0,Ue.oX)(e,{spinDotDefault:e.colorTextDescription});return[X$(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}})),Y$=[[30,.05],[70,.03],[96,.01]];var U$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;const{prefixCls:n,spinning:o=!0,delay:a=0,className:l,rootClassName:c,size:s="default",tip:u,wrapperClassName:d,style:f,children:p,fullscreen:m=!1,indicator:g,percent:h}=e,v=U$(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:b,direction:y,spin:C}=r.useContext(Z.ConfigContext),x=b("spin",n),[w,A,S]=G$(x),[$,k]=r.useState((()=>o&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(o,a))),E=function(e,t){const[n,o]=r.useState(0),i=r.useRef(),a="auto"===t;return r.useEffect((()=>(a&&e&&(o(0),i.current=setInterval((()=>{o((e=>{const t=100-e;for(let n=0;n{clearInterval(i.current)})),[a,e]),a?n:t}($,h);r.useEffect((()=>{if(o){const e=ym(a,(()=>{k(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}k(!1)}),[a,o]);const O=r.useMemo((()=>void 0!==p&&!m),[p,m]);const I=i()(x,null==C?void 0:C.className,{[`${x}-sm`]:"small"===s,[`${x}-lg`]:"large"===s,[`${x}-spinning`]:$,[`${x}-show-text`]:!!u,[`${x}-rtl`]:"rtl"===y},l,!m&&c,A,S),M=i()(`${x}-container`,{[`${x}-blur`]:$}),N=null!==(t=null!=g?g:null==C?void 0:C.indicator)&&void 0!==t?t:Q$,z=Object.assign(Object.assign({},null==C?void 0:C.style),f),P=r.createElement("div",Object.assign({},v,{style:z,className:I,"aria-live":"polite","aria-busy":$}),r.createElement(V$,{prefixCls:x,indicator:N,percent:E}),u&&(O||m)?r.createElement("div",{className:`${x}-text`},u):null);return w(O?r.createElement("div",Object.assign({},v,{className:i()(`${x}-nested-loading`,d,A,S)}),$&&r.createElement("div",{key:"loading"},P),r.createElement("div",{className:M,key:"container"},p)):m?r.createElement("div",{className:i()(`${x}-fullscreen`,{[`${x}-fullscreen-show`]:$},c,A,S)},P):P)};Z$.setDefaultIndicator=e=>{Q$=e};const J$=Z$,ek=r.createContext({});ek.Consumer;var tk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,children:o,actions:a,extra:l,styles:c,className:s,classNames:u,colStyle:d}=e,f=tk(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:p,itemLayout:m}=(0,r.useContext)(ek),{getPrefixCls:g,list:h}=(0,r.useContext)(Z.ConfigContext),v=e=>{var t,n;return i()(null===(n=null===(t=null==h?void 0:h.item)||void 0===t?void 0:t.classNames)||void 0===n?void 0:n[e],null==u?void 0:u[e])},b=e=>{var t,n;return Object.assign(Object.assign({},null===(n=null===(t=null==h?void 0:h.item)||void 0===t?void 0:t.styles)||void 0===n?void 0:n[e]),null==c?void 0:c[e])},y=g("list",n),C=a&&a.length>0&&r.createElement("ul",{className:i()(`${y}-item-action`,v("actions")),key:"actions",style:b("actions")},a.map(((e,t)=>r.createElement("li",{key:`${y}-item-action-${t}`},e,t!==a.length-1&&r.createElement("em",{className:`${y}-item-action-split`}))))),x=p?"div":"li",w=r.createElement(x,Object.assign({},f,p?{}:{ref:t},{className:i()(`${y}-item`,{[`${y}-item-no-flex`]:!("vertical"===m?l:!(()=>{let e=!1;return r.Children.forEach(o,(t=>{"string"==typeof t&&(e=!0)})),e&&r.Children.count(o)>1})())},s)}),"vertical"===m&&l?[r.createElement("div",{className:`${y}-item-main`,key:"content"},o,C),r.createElement("div",{className:i()(`${y}-item-extra`,v("extra")),key:"extra",style:b("extra")},l)]:[o,C,(0,ge.Ob)(l,{key:"extra"})]);return p?r.createElement(Yh,{ref:t,flex:1,style:d},w):w})),rk=nk;rk.Meta=e=>{var{prefixCls:t,className:n,avatar:o,title:a,description:l}=e,c=tk(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=(0,r.useContext)(Z.ConfigContext),u=s("list",t),d=i()(`${u}-item-meta`,n),f=r.createElement("div",{className:`${u}-item-meta-content`},a&&r.createElement("h4",{className:`${u}-item-meta-title`},a),l&&r.createElement("div",{className:`${u}-item-meta-description`},l));return r.createElement("div",Object.assign({},c,{className:d}),o&&r.createElement("div",{className:`${u}-item-meta-avatar`},o),(a||l)&&f)};const ok=rk,ik=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:i,itemPaddingLG:a,marginLG:l,borderRadiusLG:c}=e;return{[t]:{border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${(0,he.zA)(o)} ${(0,he.zA)(l)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}}}},ak=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:i,margin:a}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${(0,he.zA)(a)}`}}}}}},lk=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:i,marginLG:a,padding:l,itemPadding:c,colorPrimary:s,itemPaddingSM:u,itemPaddingLG:d,paddingXS:f,margin:p,colorText:m,colorTextDescription:g,motionDurationSlow:h,lineWidth:v,headerBg:b,footerBg:y,emptyTextPadding:C,metaMarginBottom:x,avatarMarginRight:w,titleMarginBottom:A,descriptionFontSize:S}=e;return{[t]:Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:a,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:m,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:w},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${(0,he.zA)(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${h}`,"&:hover":{color:s}}},[`${t}-item-meta-description`]:{color:g,fontSize:S,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${(0,he.zA)(f)}`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:v,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${(0,he.zA)(l)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:C,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:x,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:A,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${(0,he.zA)(l)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},ck=(0,J.OF)("List",(e=>{const t=(0,Ue.oX)(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[lk(t),ik(t),ak(t)]}),(e=>({contentWidth:220,itemPadding:`${(0,he.zA)(e.paddingContentVertical)} 0`,itemPaddingSM:`${(0,he.zA)(e.paddingContentVerticalSM)} ${(0,he.zA)(e.paddingContentHorizontal)}`,itemPaddingLG:`${(0,he.zA)(e.paddingContentVerticalLG)} ${(0,he.zA)(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize})));var sk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o(t,r)=>{var o;k(t),O(r),n&&(null===(o=null==n?void 0:n[e])||void 0===o||o.call(n,t,r))},j=P("onChange"),R=P("onShowSizeChange"),T=I("list",o),[D,B,L]=ck(T);let H=y;"boolean"==typeof H&&(H={spinning:H});const F=!!(null==H?void 0:H.spinning);let _="";switch((0,ro.A)(h)){case"large":_="lg";break;case"small":_="sm"}const W=i()(T,{[`${T}-vertical`]:"vertical"===f,[`${T}-${_}`]:_,[`${T}-split`]:l,[`${T}-bordered`]:a,[`${T}-loading`]:F,[`${T}-grid`]:!!m,[`${T}-something-after-last-item`]:!!(p||n||b),[`${T}-rtl`]:"rtl"===N},null==z?void 0:z.className,c,s,B,L),V=g$({current:1,total:0},{total:g.length,current:$,pageSize:E},n||{}),q=Math.ceil(V.total/V.pageSize);V.current>q&&(V.current=q);const K=n&&r.createElement("div",{className:i()(`${T}-pagination`)},r.createElement(L$,Object.assign({align:"end"},V,{onChange:j,onShowSizeChange:R})));let X=(0,Y.A)(g);n&&g.length>(V.current-1)*V.pageSize&&(X=(0,Y.A)(g).splice((V.current-1)*V.pageSize,V.pageSize));const G=Object.keys(m||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e))),U=(0,Ai.A)(G),Q=r.useMemo((()=>{for(let e=0;e{if(!m)return;const e=Q&&m[Q]?m[Q]:m.column;return e?{width:100/e+"%",maxWidth:100/e+"%"}:void 0}),[JSON.stringify(m),Q]);let ee=F&&r.createElement("div",{style:{minHeight:53}});if(X.length>0){const e=X.map(((e,t)=>((e,t)=>{if(!x)return null;let n;return n="function"==typeof C?C(e):C?e[C]:e.key,n||(n=`list-item-${t}`),r.createElement(r.Fragment,{key:n},x(e,t))})(e,t)));ee=m?r.createElement(TA,{gutter:m.gutter},r.Children.map(e,(e=>r.createElement("div",{key:null==e?void 0:e.key,style:J},e)))):r.createElement("ul",{className:`${T}-items`},e)}else d||F||(ee=r.createElement("div",{className:`${T}-empty-text`},(null==w?void 0:w.emptyText)||(null==M?void 0:M("List"))||r.createElement(to,{componentName:"List"})));const te=V.position||"bottom",ne=r.useMemo((()=>({grid:m,itemLayout:f})),[JSON.stringify(m),f]);return D(r.createElement(ek.Provider,{value:ne},r.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==z?void 0:z.style),u),className:W},A),("top"===te||"both"===te)&&K,v&&r.createElement("div",{className:`${T}-header`},v),r.createElement(J$,Object.assign({},H),ee,d),b&&r.createElement("div",{className:`${T}-footer`},b),p||("bottom"===te||"both"===te)&&K)))}const dk=r.forwardRef(uk);dk.Item=ok;const fk=dk;const pk=r.createContext(null);const mk=function(e){var t=r.useContext(pk),n=t.notFoundContent,o=t.activeIndex,i=t.setActiveIndex,a=t.selectOption,l=t.onFocus,c=t.onBlur,s=e.prefixCls,u=e.options,d=u[o]||{};return r.createElement(zc,{prefixCls:"".concat(s,"-menu"),activeKey:d.key,onSelect:function(e){var t=e.key,n=u.find((function(e){return e.key===t}));a(n)},onFocus:l,onBlur:c},u.map((function(e,t){var n=e.key,o=e.disabled,a=e.className,l=e.style,c=e.label;return r.createElement(oc,{key:n,disabled:o,className:a,style:l,onMouseEnter:function(){i(t)}},c)})),!u.length&&r.createElement(oc,{disabled:!0},n))};var gk={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}};const hk=function(e){var t=e.prefixCls,n=e.options,o=e.children,i=e.visible,a=e.transitionName,l=e.getPopupContainer,c=e.dropdownClassName,s=e.direction,u=e.placement,d="".concat(t,"-dropdown"),f=r.createElement(mk,{prefixCls:d,options:n}),p=(0,r.useMemo)((function(){return"rtl"===s?"top"===u?"topLeft":"bottomLeft":"top"===u?"topRight":"bottomRight"}),[s,u]);return r.createElement(Pn,{prefixCls:d,popupVisible:i,popup:f,popupPlacement:p,popupTransitionName:a,builtinPlacements:gk,getPopupContainer:l,popupClassName:c},o)};const vk=function(){return null};function bk(e){return(e||"").toLowerCase()}function yk(e,t){var n=t.measureLocation,r=t.prefix,o=t.targetText,i=t.selectionStart,a=t.split,l=e.slice(0,n);l[l.length-a.length]===a&&(l=l.slice(0,l.length-a.length)),l&&(l="".concat(l).concat(a));var c=function(e,t,n){var r=e[0];if(!r||r===n)return e;for(var o=e,i=t.length,a=0;a=0)return[!0,"",t,n]}}return[Y,J,re,le]}),[C,Y,_,ye,J,re,le]),we=(0,vt.A)(xe,4),Ae=we[0],Se=we[1],$e=we[2],ke=we[3],Ee=r.useCallback((function(e){return(y&&y.length>0?y.map((function(e){var t;return(0,s.A)((0,s.A)({},e),{},{key:null!==(t=null==e?void 0:e.key)&&void 0!==t?t:e.value})})):(0,l.A)(b).map((function(e){var t=e.props,n=e.key;return(0,s.A)((0,s.A)({},t),{},{label:t.children,key:n||t.value})}))).filter((function(t){return!1===$||$(e,t)}))}),[b,y,$]),Oe=r.useMemo((function(){return Ee(Se)}),[Ee,Se]),Ie=function(){var e=(0,r.useState)({id:0,callback:null}),t=(0,vt.A)(e,2),n=t[0],o=t[1],i=(0,r.useCallback)((function(e){o((function(t){return{id:t.id+1,callback:e}}))}),[]);return(0,r.useEffect)((function(){var e;null===(e=n.callback)||void 0===e||e.call(n)}),[n]),i}(),Me=function(e){U(!1),ce(0),ee(""),Ie(e)},Ne=function(e){Ce(e),null==k||k(e)},ze=function(e){var t,n=e.value,r=yk(ye,{measureLocation:ke,targetText:void 0===n?"":n,prefix:$e,selectionStart:null===(t=K())||void 0===t?void 0:t.selectionStart,split:p}),o=r.text,i=r.selectionLocation;Ne(o),Me((function(){!function(e,t){e.setSelectionRange(t,t),e.blur(),e.focus()}(K(),i)})),null==N||N(e,$e)},Pe=(0,r.useRef)(),je=function(e){window.clearTimeout(Pe.current),!ge&&e&&z&&z(e),he(!0)},Re=function(e){Pe.current=window.setTimeout((function(){he(!1),Me(),null==P||P(e)}),0)};return r.createElement("div",{className:i()(n,o),style:c,ref:W},r.createElement(ry,(0,a.A)({ref:V,value:ye},F,{rows:H,onChange:function(e){var t=e.target.value;Ne(t)},onKeyDown:function(e){var t=e.which;if(null==E||E(e),Ae)if(t===kt.A.UP||t===kt.A.DOWN){var n=Oe.length,r=t===kt.A.UP?-1:1;fe((de+r+n)%n),e.preventDefault()}else if(t===kt.A.ESC)Me();else if(t===kt.A.ENTER){if(e.preventDefault(),x)return;if(!Oe.length)return void Me();var o=Oe[de];ze(o)}},onKeyUp:function(e){var t=e.key,n=e.which,r=function(e){var t=e.selectionStart;return e.value.slice(0,t)}(e.target),o=function(e,t){return t.reduce((function(t,n){var r=e.lastIndexOf(n);return r>t.location?{location:r,prefix:n}:t}),{location:-1,prefix:""})}(r,_),i=o.location,a=o.prefix;if(null==O||O(e),-1===[kt.A.ESC,kt.A.UP,kt.A.DOWN,kt.A.ENTER].indexOf(n))if(-1!==i){var l=r.slice(i+a.length),c=A(l,p),s=!!Ee(l).length;c?(t===a||"Shift"===t||n===kt.A.ALT||"AltGraph"===t||Ae||l!==Se&&s)&&function(e,t,n){U(!0),ee(e),oe(t),ce(n),fe(0)}(l,a,i):Ae&&Me(),M&&c&&M(l,a)}else Ae&&Me()},onPressEnter:function(e){!Ae&&I&&I(e)},onFocus:je,onBlur:Re})),Ae&&r.createElement("div",{ref:q,className:"".concat(n,"-measure")},ye.slice(0,ke),r.createElement(pk.Provider,{value:{notFoundContent:g,activeIndex:de,setActiveIndex:fe,selectOption:ze,onFocus:function(){je()},onBlur:function(){Re()}}},r.createElement(hk,{prefixCls:n,transitionName:j,placement:R,direction:T,options:Oe,visible:!0,getPopupContainer:D,dropdownClassName:B},r.createElement("span",null,$e))),ye.slice(ke+$e.length)))})),$k=(0,r.forwardRef)((function(e,t){var n=e.suffix,o=e.prefixCls,i=void 0===o?"rc-mentions":o,l=e.defaultValue,c=e.value,u=e.allowClear,d=e.onChange,f=e.classNames,p=e.className,m=e.disabled,g=e.onClear,h=(0,bt.A)(e,Ak),v=(0,r.useRef)(null),b=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(function(){var e,t;return(0,s.A)((0,s.A)({},b.current),{},{nativeElement:(null===(e=v.current)||void 0===e?void 0:e.nativeElement)||(null===(t=b.current)||void 0===t?void 0:t.nativeElement)})}));var y=(0,yt.A)("",{defaultValue:l,value:c}),C=(0,vt.A)(y,2),x=C[0],w=C[1],A=function(e){w(e),null==d||d(e)};return r.createElement(Vv,{suffix:n,prefixCls:i,value:x,allowClear:u,handleReset:function(){A("")},className:p,classNames:f,disabled:m,ref:v,onClear:g},r.createElement(Sk,(0,a.A)({className:null==f?void 0:f.mentions,prefixCls:i,ref:b,onChange:A,disabled:m},h)))}));$k.Option=vk;const kk=$k;function Ek(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&null==e?[]:Array.isArray(e)?e:[e]}const Ok=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:r,controlPaddingHorizontal:o,colorText:i,motionDurationSlow:a,lineHeight:l,controlHeight:c,paddingInline:s,paddingBlock:u,fontSize:d,fontSizeIcon:f,colorTextTertiary:p,colorTextQuaternary:m,colorBgElevated:g,paddingXXS:h,paddingLG:v,borderRadius:b,borderRadiusLG:y,boxShadowSecondary:C,itemPaddingVertical:x,calc:w}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ve.dF)(e)),(0,lb.wj)(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:l,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),(0,cb.Eb)(e)),(0,cb.sA)(e)),(0,cb.lB)(e)),{"&-affix-wrapper":Object.assign(Object.assign({},(0,lb.wj)(e)),{display:"inline-flex",padding:0,"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:s,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`&:has(${t}-suffix) > ${t} > textarea`]:{paddingInlineEnd:v},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:0,insetBlockStart:w(d).mul(l).mul(.5).add(u).equal(),transform:"translateY(-50%)",margin:0,color:m,fontSize:f,verticalAlign:-1,cursor:"pointer",transition:`color ${a}`,"&:hover":{color:p},"&:active":{color:i},"&-hidden":{visibility:"hidden"}}}),"&-disabled":{"> textarea":Object.assign({},(0,cb.eT)(e))},[`&, &-affix-wrapper > ${t}`]:{[`> textarea, ${t}-measure`]:{color:i,boxSizing:"border-box",minHeight:e.calc(c).sub(2),margin:0,padding:`${(0,he.zA)(u)} ${(0,he.zA)(s)}`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":Object.assign({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"transparent"},(0,lb.j_)(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}}},"&-dropdown":Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:d,fontVariant:"initial",padding:h,backgroundColor:g,borderRadius:y,outline:"none",boxShadow:C,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,margin:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":Object.assign(Object.assign({},ve.L9),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${(0,he.zA)(x)} ${(0,he.zA)(o)}`,color:i,borderRadius:b,fontWeight:"normal",lineHeight:l,cursor:"pointer",transition:`background ${a} ease`,"&:hover":{backgroundColor:r},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:r,cursor:"not-allowed"}},"&-selected":{color:i,fontWeight:e.fontWeightStrong,backgroundColor:r},"&-active":{backgroundColor:r}})}})})}},Ik=(0,J.OF)("Mentions",(e=>{const t=(0,Ue.oX)(e,(0,Xf.C)(e));return[Ok(t)]}),(e=>Object.assign(Object.assign({},(0,Xf.b)(e)),{dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50,itemPaddingVertical:(e.controlHeight-e.fontHeight)/2})));var Mk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:o,rootClassName:a,disabled:l,loading:c,filterOption:s,children:u,notFoundContent:d,options:p,status:m,allowClear:g=!1,popupClassName:h,style:v,variant:b}=e,y=Mk(e,["prefixCls","className","rootClassName","disabled","loading","filterOption","children","notFoundContent","options","status","allowClear","popupClassName","style","variant"]),[C,x]=r.useState(!1),w=r.useRef(null),A=(0,f.K4)(t,w);const{getPrefixCls:S,renderEmpty:$,direction:k,mentions:E}=r.useContext(Z.ConfigContext),{status:O,hasFeedback:I,feedbackIcon:M}=r.useContext(oo.$W),N=_r(O,m),z=r.useMemo((()=>void 0!==d?d:(null==$?void 0:$("Select"))||r.createElement(to,{componentName:"Select"})),[d,$]),P=r.useMemo((()=>c?r.createElement(Nk,{value:"ANTD_SEARCHING",disabled:!0},r.createElement(J$,{size:"small"})):u),[c,u]),j=c?[{value:"ANTD_SEARCHING",disabled:!0,label:r.createElement(J$,{size:"small"})}]:p,R=c?zk:s,T=S("mentions",n),D=Cb(g),B=(0,Xe.A)(T),[L,H,F]=Ik(T,B),[_,W]=io("mentions",b),V=I&&r.createElement(r.Fragment,null,M),q=i()(null==E?void 0:E.className,o,a,F,B);return L(r.createElement(kk,Object.assign({silent:c,prefixCls:T,notFoundContent:z,className:q,disabled:l,allowClear:D,direction:k,style:Object.assign(Object.assign({},null==E?void 0:E.style),v)},y,{filterOption:R,onFocus:function(){y.onFocus&&y.onFocus.apply(y,arguments),x(!0)},onBlur:function(){y.onBlur&&y.onBlur.apply(y,arguments),x(!1)},dropdownClassName:i()(h,a,H,F,B),ref:A,options:j,suffix:V,classNames:{mentions:i()({[`${T}-disabled`]:l,[`${T}-focused`]:C,[`${T}-rtl`]:"rtl"===k},H),variant:i()({[`${T}-${_}`]:W},Fr(T,N)),affixWrapper:H}}),P))})),jk=Pk;jk.Option=Nk;const Rk=(0,gt.A)(jk,"mentions");jk._InternalPanelDoNotUseOrYouWillBeFired=Rk,jk.getMentions=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{prefix:n="@",split:r=" "}=t,o=Ek(n);return e.split(r).map((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=null;return o.some((n=>e.slice(0,n.length)===n&&(t=n,!0))),null!==t?{prefix:t,value:e.slice(t.length)}:null})).filter((e=>!!e&&!!e.value))};const Tk=jk;var Dk=n(7959),Bk=n(6841),Lk=n(6511),Hk=n(8431),Fk=n(9449);const _k=(0,J.OF)("Popconfirm",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:l,marginXS:c,fontSize:s,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:s},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:s,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}})(e)),(e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}}),{resetStyle:!1});var Wk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,okButtonProps:n,cancelButtonProps:o,title:i,description:a,cancelText:l,okText:c,okType:s="primary",icon:u=r.createElement(de.A,null),showCancel:d=!0,close:f,onConfirm:p,onCancel:m,onPopupClick:g}=e,{getPrefixCls:h}=r.useContext(Z.ConfigContext),[v]=(0,Wr.A)("Popconfirm",VA.A.Popconfirm),b=Ni(i),y=Ni(a);return r.createElement("div",{className:`${t}-inner-content`,onClick:g},r.createElement("div",{className:`${t}-message`},u&&r.createElement("span",{className:`${t}-message-icon`},u),r.createElement("div",{className:`${t}-message-text`},b&&r.createElement("div",{className:`${t}-title`},b),y&&r.createElement("div",{className:`${t}-description`},y))),r.createElement("div",{className:`${t}-buttons`},d&&r.createElement(Qs.Ay,Object.assign({onClick:m,size:"small"},o),l||(null==v?void 0:v.cancelText)),r.createElement(Hk.A,{buttonProps:Object.assign(Object.assign({size:"small"},(0,Fk.DU)(s)),n),actionFn:p,close:f,prefixCls:h("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},c||(null==v?void 0:v.okText))))},qk=e=>{const{prefixCls:t,placement:n,className:o,style:a}=e,l=Wk(e,["prefixCls","placement","className","style"]),{getPrefixCls:c}=r.useContext(Z.ConfigContext),s=c("popconfirm",t),[u]=_k(s);return u(r.createElement(ba,{placement:n,className:i()(s,o),style:a,content:r.createElement(Vk,Object.assign({prefixCls:s},l))}))};var Kk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,o;const{prefixCls:a,placement:l="top",trigger:c="click",okType:s="primary",icon:u=r.createElement(de.A,null),children:d,overlayClassName:f,onOpenChange:p,onVisibleChange:m}=e,g=Kk(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:h}=r.useContext(Z.ConfigContext),[v,b]=(0,yt.A)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),y=(e,t)=>{b(e,!0),null==m||m(e),null==p||p(e,t)},C=h("popconfirm",a),x=i()(C,f),[w]=_k(C);return w(r.createElement(wa,Object.assign({},(0,G.A)(g,["title"]),{trigger:c,placement:l,onOpenChange:(t,n)=>{const{disabled:r=!1}=e;r||y(t,n)},open:v,ref:t,overlayClassName:x,content:r.createElement(Vk,Object.assign({okType:s,icon:u},e,{prefixCls:C,close:e=>{y(!1,e)},onConfirm:t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(void 0,t)},onCancel:t=>{var n;y(!1,t),null===(n=e.onCancel)||void 0===n||n.call(void 0,t)}})),"data-popover-inject":!0}),d))})),Gk=Xk;Gk._InternalPanelDoNotUseOrYouWillBeFired=qk;const Yk=Gk;var Uk={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Qk=function(){var e=(0,r.useRef)([]),t=(0,r.useRef)(null);return(0,r.useEffect)((function(){var n=Date.now(),r=!1;e.current.forEach((function(e){if(e){r=!0;var o=e.style;o.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(o.transitionDuration="0s, 0s")}})),r&&(t.current=Date.now())})),e.current};var Zk=0,Jk=(0,kr.A)();const eE=function(e){var t=r.useState(),n=(0,vt.A)(t,2),o=n[0],i=n[1];return r.useEffect((function(){var e;i("rc_progress_".concat((Jk?(e=Zk,Zk+=1):e="TEST_OR_SSR",e)))}),[]),e||o};var tE=function(e){var t=e.bg,n=e.children;return r.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function nE(e,t){return Object.keys(e).map((function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)}))}var rE=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.color,i=e.gradientId,a=e.radius,l=e.style,c=e.ptg,s=e.strokeLinecap,d=e.strokeWidth,f=e.size,p=e.gapDegree,m=o&&"object"===(0,u.A)(o),g=m?"#FFF":void 0,h=f/2,v=r.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:h,cy:h,stroke:g,strokeLinecap:s,strokeWidth:d,opacity:0===c?0:1,style:l,ref:t});if(!m)return v;var b="".concat(i,"-conic"),y=p?"".concat(180+p/2,"deg"):"0deg",C=nE(o,(360-p)/360),x=nE(o,1),w="conic-gradient(from ".concat(y,", ").concat(C.join(", "),")"),A="linear-gradient(to ".concat(p?"bottom":"top",", ").concat(x.join(", "),")");return r.createElement(r.Fragment,null,r.createElement("mask",{id:b},v),r.createElement("foreignObject",{x:0,y:0,width:f,height:f,mask:"url(#".concat(b,")")},r.createElement(tE,{bg:A},r.createElement(tE,{bg:w}))))}));const oE=rE;var iE=100,aE=function(e,t,n,r,o,i,a,l,c,s){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-i)/360),f=0===i?0:{bottom:0,top:180,left:90,right:-90}[a],p=(100-r)/100*t;"round"===c&&100!==r&&(p+=s/2)>=t&&(p=t-.01);return{stroke:"string"==typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:p+u,transform:"rotate(".concat(o+d+f,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},lE=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function cE(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}const sE=function(e){var t,n,o,l=(0,s.A)((0,s.A)({},Uk),e),c=l.id,d=l.prefixCls,f=l.steps,p=l.strokeWidth,m=l.trailWidth,g=l.gapDegree,h=void 0===g?0:g,v=l.gapPosition,b=l.trailColor,y=l.strokeLinecap,C=l.style,x=l.className,w=l.strokeColor,A=l.percent,S=(0,bt.A)(l,lE),$=eE(c),k="".concat($,"-gradient"),E=50-p/2,O=2*Math.PI*E,I=h>0?90+h/2:-90,M=O*((360-h)/360),N="object"===(0,u.A)(f)?f:{count:f,gap:2},z=N.count,P=N.gap,j=cE(A),R=cE(w),T=R.find((function(e){return e&&"object"===(0,u.A)(e)})),D=T&&"object"===(0,u.A)(T)?"butt":y,B=aE(O,M,0,100,I,h,v,b,D,p),L=Qk();return r.createElement("svg",(0,a.A)({className:i()("".concat(d,"-circle"),x),viewBox:"0 0 ".concat(iE," ").concat(iE),style:C,id:c,role:"presentation"},S),!z&&r.createElement("circle",{className:"".concat(d,"-circle-trail"),r:E,cx:50,cy:50,stroke:b,strokeLinecap:D,strokeWidth:m||p,style:B}),z?(t=Math.round(z*(j[0]/100)),n=100/z,o=0,new Array(z).fill(null).map((function(e,i){var a=i<=t-1?R[0]:b,l=a&&"object"===(0,u.A)(a)?"url(#".concat(k,")"):void 0,c=aE(O,M,o,n,I,h,v,a,"butt",p,P);return o+=100*(M-c.strokeDashoffset+P)/M,r.createElement("circle",{key:i,className:"".concat(d,"-circle-path"),r:E,cx:50,cy:50,stroke:l,strokeWidth:p,opacity:1,style:c,ref:function(e){L[i]=e}})}))):function(){var e=0;return j.map((function(t,n){var o=R[n]||R[R.length-1],i=aE(O,M,e,t,I,h,v,o,D,p);return e+=t,r.createElement(oE,{key:n,color:o,ptg:t,radius:E,prefixCls:d,gradientId:k,style:i,strokeLinecap:D,strokeWidth:p,gapDegree:h,ref:function(e){L[n]=e},size:iE})})).reverse()}())};var uE=n(5748);function dE(e){return!e||e<0?0:e>100?100:e}function fE(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const pE=(e,t,n)=>{var r,o,i,a;let l=-1,c=-1;if("step"===t){const t=n.steps,r=n.strokeWidth;"string"==typeof e||void 0===e?(l="small"===e?2:14,c=null!=r?r:8):"number"==typeof e?[l,c]=[e,e]:[l=14,c=8]=Array.isArray(e)?e:[e.width,e.height],l*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?c=t||("small"===e?6:8):"number"==typeof e?[l,c]=[e,e]:[l=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[l,c]="small"===e?[60,60]:[120,120]:"number"==typeof e?[l,c]=[e,e]:Array.isArray(e)&&(l=null!==(o=null!==(r=e[0])&&void 0!==r?r:e[1])&&void 0!==o?o:120,c=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[l,c]},mE=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:o="round",gapPosition:a,gapDegree:l,width:c=120,type:s,children:u,success:d,size:f=c,steps:p}=e,[m,g]=pE(f,"circle");let{strokeWidth:h}=e;void 0===h&&(h=Math.max((e=>3/e*100)(m),6));const v={width:m,height:g,fontSize:.15*m+6},b=r.useMemo((()=>l||0===l?l:"dashboard"===s?75:void 0),[l,s]),y=(e=>{let{percent:t,success:n,successPercent:r}=e;const o=dE(fE({success:n,successPercent:r}));return[o,dE(dE(t)-o)]})(e),C=a||"dashboard"===s&&"bottom"||void 0,x="[object Object]"===Object.prototype.toString.call(e.strokeColor),w=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||uE.uy.green,n||null]})({success:d,strokeColor:e.strokeColor}),A=i()(`${t}-inner`,{[`${t}-circle-gradient`]:x}),S=r.createElement(sE,{steps:p,percent:p?y[1]:y,strokeWidth:h,trailWidth:h,strokeColor:p?w[1]:w,strokeLinecap:o,trailColor:n,prefixCls:t,gapDegree:b,gapPosition:C}),$=m<=20,k=r.createElement("div",{className:A,style:v},S,!$&&u);return $?r.createElement(da,{title:u},k):k},gE="--progress-line-stroke-color",hE="--progress-percent",vE=e=>{const t=e?"100%":"-100%";return new he.Mo(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},bE=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,ve.dF)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${gE})`]},height:"100%",width:`calc(1 / var(${hE}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,he.zA)(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:vE(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:vE(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},yE=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},CE=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},xE=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},wE=(0,J.OF)("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=(0,Ue.oX)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[bE(n),yE(n),CE(n),xE(n)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"})));var AE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{from:n=uE.uy.blue,to:r=uE.uy.blue,direction:o=("rtl"===t?"to left":"to right")}=e,i=AE(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=`linear-gradient(${o}, ${(e=>{let t=[];return Object.keys(e).forEach((n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(i)})`;return{background:e,[gE]:e}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[gE]:a}},$E=e=>{const{prefixCls:t,direction:n,percent:o,size:a,strokeWidth:l,strokeColor:c,strokeLinecap:s="round",children:u,trailColor:d=null,percentPosition:f,success:p}=e,{align:m,type:g}=f,h=c&&"string"!=typeof c?SE(c,n):{[gE]:c,background:c},v="square"===s||"butt"===s?0:void 0,b=null!=a?a:[-1,l||("small"===a?6:8)],[y,C]=pE(b,"line",{strokeWidth:l});const x={backgroundColor:d||void 0,borderRadius:v},w=Object.assign(Object.assign({width:`${dE(o)}%`,height:C,borderRadius:v},h),{[hE]:dE(o)/100}),A=fE(e),S={width:`${dE(A)}%`,height:C,borderRadius:v,backgroundColor:null==p?void 0:p.strokeColor},$={width:y<0?"100%":y},k=r.createElement("div",{className:`${t}-inner`,style:x},r.createElement("div",{className:i()(`${t}-bg`,`${t}-bg-${g}`),style:w},"inner"===g&&u),void 0!==A&&r.createElement("div",{className:`${t}-success-bg`,style:S})),E="outer"===g&&"start"===m,O="outer"===g&&"end"===m;return"outer"===g&&"center"===m?r.createElement("div",{className:`${t}-layout-bottom`},k,u):r.createElement("div",{className:`${t}-outer`,style:$},E&&u,k,O&&u)},kE=e=>{const{size:t,steps:n,percent:o=0,strokeWidth:a=8,strokeColor:l,trailColor:c=null,prefixCls:s,children:u}=e,d=Math.round(n*(o/100)),f=null!=t?t:["small"===t?2:14,a],[p,m]=pE(f,"step",{steps:n,strokeWidth:a}),g=p/n,h=new Array(n);for(let e=0;e{const{prefixCls:n,className:o,rootClassName:a,steps:l,strokeColor:c,percent:s=0,size:u="default",showInfo:d=!0,type:f="line",status:p,format:m,style:g,percentPosition:h={}}=e,v=EE(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:b="end",type:y="outer"}=h,C=Array.isArray(c)?c[0]:c,x="string"==typeof c||Array.isArray(c)?c:void 0,w=r.useMemo((()=>{if(C){const e="string"==typeof C?C:Object.values(C)[0];return new Vr.q(e).isLight()}return!1}),[c]),A=r.useMemo((()=>{var t,n;const r=fE(e);return parseInt(void 0!==r?null===(t=null!=r?r:0)||void 0===t?void 0:t.toString():null===(n=null!=s?s:0)||void 0===n?void 0:n.toString(),10)}),[s,e.success,e.successPercent]),S=r.useMemo((()=>!OE.includes(p)&&A>=100?"success":p||"normal"),[p,A]),{getPrefixCls:$,direction:k,progress:E}=r.useContext(Z.ConfigContext),O=$("progress",n),[I,M,N]=wE(O),z="line"===f,P=z&&!l,j=r.useMemo((()=>{if(!d)return null;const t=fE(e);let n;const o=z&&w&&"inner"===y;return"inner"===y||m||"exception"!==S&&"success"!==S?n=(m||(e=>`${e}%`))(dE(s),dE(t)):"exception"===S?n=z?r.createElement(se.A,null):r.createElement(ue.A,null):"success"===S&&(n=z?r.createElement(ce.A,null):r.createElement(ei,null)),r.createElement("span",{className:i()(`${O}-text`,{[`${O}-text-bright`]:o,[`${O}-text-${b}`]:P,[`${O}-text-${y}`]:P}),title:"string"==typeof n?n:void 0},n)}),[d,s,A,S,f,O,m]);let R;"line"===f?R=l?r.createElement(kE,Object.assign({},e,{strokeColor:x,prefixCls:O,steps:"object"==typeof l?l.count:l}),j):r.createElement($E,Object.assign({},e,{strokeColor:C,prefixCls:O,direction:k,percentPosition:{align:b,type:y}}),j):"circle"!==f&&"dashboard"!==f||(R=r.createElement(mE,Object.assign({},e,{strokeColor:C,prefixCls:O,progressStatus:S}),j));const T=i()(O,`${O}-status-${S}`,{[`${O}-${"dashboard"===f?"circle":f}`]:"line"!==f,[`${O}-inline-circle`]:"circle"===f&&pE(u,"circle")[0]<=20,[`${O}-line`]:P,[`${O}-line-align-${b}`]:P,[`${O}-line-position-${y}`]:P,[`${O}-steps`]:l,[`${O}-show-info`]:d,[`${O}-${u}`]:"string"==typeof u,[`${O}-rtl`]:"rtl"===k},null==E?void 0:E.className,o,a,M,N);return I(r.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==E?void 0:E.style),g),className:T,role:"progressbar","aria-valuenow":A,"aria-valuemin":0,"aria-valuemax":100},(0,G.A)(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),R))}));const ME=IE;var NE,zE,PE=n(7800);function jE(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,PE.A)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function RE(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function TE(e,t){return!!(e>>>t&1)}function DE(e){if(!e)throw new Error("Assertion error")}var BE=function(){function e(t,n){(0,B.A)(this,e),(0,ht.A)(this,"modeBits",void 0),(0,ht.A)(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return(0,L.A)(e,[{key:"numCharCountBits",value:function(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}]),e}();NE=BE,(0,ht.A)(BE,"NUMERIC",new NE(1,[10,12,14])),(0,ht.A)(BE,"ALPHANUMERIC",new NE(2,[9,11,13])),(0,ht.A)(BE,"BYTE",new NE(4,[8,16,16])),(0,ht.A)(BE,"KANJI",new NE(8,[8,10,12])),(0,ht.A)(BE,"ECI",new NE(7,[0,0,0]));var LE=(0,L.A)((function e(t,n){(0,B.A)(this,e),(0,ht.A)(this,"ordinal",void 0),(0,ht.A)(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n}));zE=LE,(0,ht.A)(LE,"LOW",new zE(0,1)),(0,ht.A)(LE,"MEDIUM",new zE(1,0)),(0,ht.A)(LE,"QUARTILE",new zE(2,3)),(0,ht.A)(LE,"HIGH",new zE(3,2));var HE=function(){function e(t,n,r){if((0,B.A)(this,e),(0,ht.A)(this,"mode",void 0),(0,ht.A)(this,"numChars",void 0),(0,ht.A)(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return(0,L.A)(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(t){var n,r=[],o=jE(t);try{for(o.s();!(n=o.n()).done;){RE(n.value,8,r)}}catch(e){o.e(e)}finally{o.f()}return new e(BE.BYTE,t.length,r)}},{key:"makeNumeric",value:function(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");for(var n=[],r=0;r=1<e.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*t+17;for(var a=[],l=0;l>>9);var o=21522^(t<<10|n);DE(o>>>15==0);for(var i=0;i<=5;i++)this.setFunctionModule(8,i,TE(o,i));this.setFunctionModule(8,7,TE(o,6)),this.setFunctionModule(8,8,TE(o,7)),this.setFunctionModule(7,8,TE(o,8));for(var a=9;a<15;a++)this.setFunctionModule(14-a,8,TE(o,a));for(var l=0;l<8;l++)this.setFunctionModule(this.size-1-l,8,TE(o,l));for(var c=8;c<15;c++)this.setFunctionModule(8,this.size-15+c,TE(o,c));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^7973*(e>>>11);var n=this.version<<12|e;DE(n>>>18==0);for(var r=0;r<18;r++){var o=TE(n,r),i=this.size-11+r%3,a=Math.floor(r/3);this.setFunctionModule(i,a,o),this.setFunctionModule(a,i,o)}}}},{key:"drawFinderPattern",value:function(e,t){for(var n=-4;n<=4;n++)for(var r=-4;r<=4;r++){var o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,a=t+n;0<=i&&i=l)&&g.push(t[e])}))},v=0;v=1;r-=2){6==r&&(r=5);for(var o=0;o>>3],7-(7&n)),n++)}}DE(n==8*t.length)}},{key:"applyMask",value:function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t5&&t++:(this.finderPenaltyAddHistory(o,i),r||(t+=this.finderPenaltyCountPatterns(i)*e.PENALTY_N3),r=this.modules[n][a],o=1);t+=this.finderPenaltyTerminateAndCount(r,o,i)*e.PENALTY_N3}for(var l=0;l5&&t++:(this.finderPenaltyAddHistory(s,u),c||(t+=this.finderPenaltyCountPatterns(u)*e.PENALTY_N3),c=this.modules[d][l],s=1);t+=this.finderPenaltyTerminateAndCount(c,s,u)*e.PENALTY_N3}for(var f=0;f0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(e,t,n){var r=t;return e&&(this.finderPenaltyAddHistory(r,n),r=0),r+=this.size,this.finderPenaltyAddHistory(r,n),this.finderPenaltyCountPatterns(n)}},{key:"finderPenaltyAddHistory",value:function(e,t){var n=e;0==t[0]&&(n+=this.size),t.pop(),t.unshift(n)}}],[{key:"encodeText",value:function(t,n){var r=HE.makeSegments(t);return e.encodeSegments(r,n)}},{key:"encodeBinary",value:function(t,n){var r=HE.makeBytes(t);return e.encodeSegments([r],n)}},{key:"encodeSegments",value:function(t,n){var r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,c=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(e.MIN_VERSION<=i&&i<=a&&a<=e.MAX_VERSION)||l<-1||l>7)throw new RangeError("Invalid value");for(r=i;;r++){var s=8*e.getNumDataCodewords(r,n),u=HE.getTotalBits(t,r);if(u<=s){o=u;break}if(r>=a)throw new RangeError("Data too long")}for(var d=n,f=0,p=[LE.MEDIUM,LE.QUARTILE,LE.HIGH];f>>3]|=e<<7-(7&t)})),new e(r,d,S,l)}},{key:"getNumRawDataModules",value:function(t){if(te.MAX_VERSION)throw new RangeError("Version number out of range");var n=(16*t+128)*t+64;if(t>=2){var r=Math.floor(t/7)+2;n-=(25*r-10)*r-55,t>=7&&(n-=36)}return DE(208<=n&&n<=29648),n}},{key:"getNumDataCodewords",value:function(t,n){return Math.floor(e.getNumRawDataModules(t)/8)-e.ECC_CODEWORDS_PER_BLOCK[n.ordinal][t]*e.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][t]}},{key:"reedSolomonComputeDivisor",value:function(t){if(t<1||t>255)throw new RangeError("Degree out of range");for(var n=[],r=0;r>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");for(var n=0,r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return DE(n>>>8==0),n}}]),e}();(0,ht.A)(FE,"MIN_VERSION",1),(0,ht.A)(FE,"MAX_VERSION",40),(0,ht.A)(FE,"PENALTY_N1",3),(0,ht.A)(FE,"PENALTY_N2",3),(0,ht.A)(FE,"PENALTY_N3",40),(0,ht.A)(FE,"PENALTY_N4",10),(0,ht.A)(FE,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]),(0,ht.A)(FE,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var _E={L:LE.LOW,M:LE.MEDIUM,Q:LE.QUARTILE,H:LE.HIGH},WE="#FFFFFF",VE="#000000",qE=!1;function KE(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach((function(e,r){var o=null;e.forEach((function(i,a){if(!i&&null!==o)return n.push("M".concat(o+t," ").concat(r+t,"h").concat(a-o,"v1H").concat(o+t,"z")),void(o=null);if(a!==e.length-1)i&&null===o&&(o=a);else{if(!i)return;null===o?n.push("M".concat(a+t,",").concat(r+t," h1v1H").concat(a+t,"z")):n.push("M".concat(o+t,",").concat(r+t," h").concat(a+1-o,"v1H").concat(o+t,"z"))}}))})),n.join("")}function XE(e,t){return e.slice().map((function(e,n){return n=t.y+t.h?e:e.map((function(e,n){return(n=t.x+t.w)&&e}))}))}var GE=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function YE(e){var t=e.value,n=e.level,o=e.minVersion,i=e.includeMargin,a=e.marginSize,l=e.imageSettings,c=e.size,s=(0,r.useMemo)((function(){var e=HE.makeSegments(t);return FE.encodeSegments(e,_E[n],o)}),[t,n,o]),u=(0,r.useMemo)((function(){var e=s.getModules(),t=function(e,t){return null!=t?Math.floor(t):e?4:0}(i,a),n=e.length+2*t,r=function(e,t,n,r){if(null==r)return null;var o=e.length+2*n,i=Math.floor(.1*t),a=o/t,l=(r.width||i)*a,c=(r.height||i)*a,s=null==r.x?e.length/2-l/2:r.x*a,u=null==r.y?e.length/2-c/2:r.y*a,d=null==r.opacity?1:r.opacity,f=null;if(r.excavate){var p=Math.floor(s),m=Math.floor(u);f={x:p,y:m,w:Math.ceil(l+s-p),h:Math.ceil(c+u-m)}}return{x:s,y:u,h:c,w:l,excavation:f,opacity:d,crossOrigin:r.crossOrigin}}(e,c,t,l);return{cells:e,margin:t,numCells:n,calculatedImageSettings:r}}),[s,c,l,i,a]),d=u.cells,f=u.margin,p=u.numCells,m=u.calculatedImageSettings;return{qrcode:s,margin:f,cells:d,numCells:p,calculatedImageSettings:m}}var UE=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],QE=r.forwardRef((function(e,t){var n=e.value,o=e.size,i=void 0===o?128:o,l=e.level,c=void 0===l?"L":l,u=e.bgColor,d=void 0===u?WE:u,f=e.fgColor,p=void 0===f?VE:f,m=e.includeMargin,g=void 0===m?qE:m,h=e.minVersion,v=void 0===h?1:h,b=e.marginSize,y=e.style,C=e.imageSettings,x=(0,bt.A)(e,UE),w=null==C?void 0:C.src,A=(0,r.useRef)(null),S=(0,r.useRef)(null),$=(0,r.useCallback)((function(e){A.current=e,"function"==typeof t?t(e):t&&(t.current=e)}),[t]),k=(0,r.useState)(!1),E=(0,vt.A)(k,2)[1],O=YE({value:n,level:c,minVersion:v,includeMargin:g,marginSize:b,imageSettings:C,size:i}),I=O.margin,M=O.cells,N=O.numCells,z=O.calculatedImageSettings;(0,r.useEffect)((function(){if(null!=A.current){var e=A.current,t=e.getContext("2d");if(!t)return;var n=M,r=S.current,o=null!=z&&null!==r&&r.complete&&0!==r.naturalHeight&&0!==r.naturalWidth;o&&null!=z.excavation&&(n=XE(M,z.excavation));var a=window.devicePixelRatio||1;e.height=e.width=i*a;var l=i/N*a;t.scale(l,l),t.fillStyle=d,t.fillRect(0,0,N,N),t.fillStyle=p,GE?t.fill(new Path2D(KE(n,I))):M.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+I,n+I,1,1)}))})),z&&(t.globalAlpha=z.opacity),o&&t.drawImage(r,z.x+I,z.y+I,z.w,z.h)}})),(0,r.useEffect)((function(){E(!1)}),[w]);var P=(0,s.A)({height:i,width:i},y),j=null;return null!=w&&(j=r.createElement("img",{src:w,key:w,style:{display:"none"},onLoad:function(){E(!0)},ref:S,crossOrigin:null==z?void 0:z.crossOrigin})),r.createElement(r.Fragment,null,r.createElement("canvas",(0,a.A)({style:P,height:i,width:i,ref:$,role:"img"},x)),j)}));QE.displayName="QRCodeCanvas";var ZE=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],JE=r.forwardRef((function(e,t){var n=e.value,o=e.size,i=void 0===o?128:o,l=e.level,c=void 0===l?"L":l,s=e.bgColor,u=void 0===s?WE:s,d=e.fgColor,f=void 0===d?VE:d,p=e.includeMargin,m=void 0===p?qE:p,g=e.minVersion,h=void 0===g?1:g,v=e.title,b=e.marginSize,y=e.imageSettings,C=(0,bt.A)(e,ZE),x=YE({value:n,level:c,minVersion:h,includeMargin:m,marginSize:b,imageSettings:y,size:i}),w=x.margin,A=x.cells,S=x.numCells,$=x.calculatedImageSettings,k=A,E=null;null!=y&&null!=$&&(null!=$.excavation&&(k=XE(A,$.excavation)),E=r.createElement("image",{href:y.src,height:$.h,width:$.w,x:$.x+w,y:$.y+w,preserveAspectRatio:"none",opacity:$.opacity,crossOrigin:$.crossOrigin}));var O=KE(k,w);return r.createElement("svg",(0,a.A)({height:i,width:i,viewBox:"0 0 ".concat(S," ").concat(S),ref:t,role:"img"},C),!!v&&r.createElement("title",null,v),r.createElement("path",{fill:u,d:"M0,0 h".concat(S,"v").concat(S,"H0z"),shapeRendering:"crispEdges"}),r.createElement("path",{fill:f,d:O,shapeRendering:"crispEdges"}),E)}));JE.displayName="QRCodeSVG";const eO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};var tO=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:eO}))};const nO=r.forwardRef(tO),rO=r.createElement(J$,null);function oO(e){let{prefixCls:t,locale:n,onRefresh:o,statusRender:i,status:a}=e;const l=r.createElement(r.Fragment,null,r.createElement("p",{className:`${t}-expired`},null==n?void 0:n.expired),o&&r.createElement(Qs.Ay,{type:"link",icon:r.createElement(nO,null),onClick:o},null==n?void 0:n.refresh)),c=r.createElement("p",{className:`${t}-scanned`},null==n?void 0:n.scanned),s={expired:l,loading:rO,scanned:c};return(null!=i?i:e=>s[e.status])({status:a,locale:n,onRefresh:o})}const iO=(0,J.OF)("QRCode",(e=>(e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o}=e;return{[t]:Object.assign(Object.assign({},(0,ve.dF)(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${(0,he.zA)(n)} ${r} ${o}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}})((0,Ue.oX)(e,{QRCodeTextColor:e.colorText}))),(e=>({QRCodeMaskBackgroundColor:new Vr.q(e.colorBgContainer).setAlpha(.96).toRgbString()})));var aO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t,n,o,a;const[,l]=(0,qr.Ay)(),{value:c,type:s="canvas",icon:u="",size:d=160,iconSize:f,color:p=l.colorText,errorLevel:m="M",status:g="active",bordered:h=!0,onRefresh:v,style:b,className:y,rootClassName:C,prefixCls:x,bgColor:w="transparent",statusRender:A}=e,S=aO(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:$}=(0,r.useContext)(Z.ConfigContext),k=$("qrcode",x),[E,O,I]=iO(k),M={src:u,x:void 0,y:void 0,height:"number"==typeof f?f:null!==(t=null==f?void 0:f.height)&&void 0!==t?t:40,width:"number"==typeof f?f:null!==(n=null==f?void 0:f.width)&&void 0!==n?n:40,excavate:!0,crossOrigin:"anonymous"},N=(0,me.A)(S,!0),z=(0,G.A)(S,Object.keys(N)),P=Object.assign({value:c,size:d,level:m,bgColor:w,fgColor:p,style:{width:null==b?void 0:b.width,height:null==b?void 0:b.height},imageSettings:u?M:void 0},N),[j]=(0,Wr.A)("QRCode");if(!c)return null;const R=i()(k,y,C,O,I,{[`${k}-borderless`]:!h}),T=Object.assign(Object.assign({backgroundColor:w},b),{width:null!==(o=null==b?void 0:b.width)&&void 0!==o?o:d,height:null!==(a=null==b?void 0:b.height)&&void 0!==a?a:d});return E(r.createElement("div",Object.assign({},z,{className:R,style:T}),"active"!==g&&r.createElement("div",{className:`${k}-mask`},r.createElement(oO,{prefixCls:k,locale:j,status:g,onRefresh:v,statusRender:A})),"canvas"===s?r.createElement(QE,Object.assign({},P)):r.createElement(JE,Object.assign({},P))))},cO=Pf;cO.Button=Bf,cO.Group=Rf,cO.__ANT_RADIO=!0;const sO=cO;const uO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};var dO=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:uO}))};const fO=r.forwardRef(dO);function pO(e,t){var n=e.disabled,o=e.prefixCls,a=e.character,l=e.characterRender,c=e.index,s=e.count,u=e.value,d=e.allowHalf,f=e.focused,p=e.onHover,m=e.onClick,g=c+1,h=new Set([o]);0===u&&0===c&&f?h.add("".concat(o,"-focused")):d&&u+.5>=g&&uc?"true":"false","aria-posinset":c+1,"aria-setsize":s,tabIndex:n?-1:0},r.createElement("div",{className:"".concat(o,"-first")},v),r.createElement("div",{className:"".concat(o,"-second")},v)));return l&&(b=l(b,e)),b}const mO=r.forwardRef(pO);var gO=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function hO(e,t){var n,o=e.prefixCls,l=void 0===o?"rc-rate":o,c=e.className,s=e.defaultValue,u=e.value,d=e.count,f=void 0===d?5:d,p=e.allowHalf,m=void 0!==p&&p,g=e.allowClear,h=void 0===g||g,v=e.keyboard,b=void 0===v||v,y=e.character,C=void 0===y?"★":y,x=e.characterRender,w=e.disabled,A=e.direction,S=void 0===A?"ltr":A,$=e.tabIndex,k=void 0===$?0:$,E=e.autoFocus,O=e.onHoverChange,I=e.onChange,M=e.onFocus,N=e.onBlur,z=e.onKeyDown,P=e.onMouseLeave,j=(0,bt.A)(e,gO),R=(n=r.useRef({}),[function(e){return n.current[e]},function(e){return function(t){n.current[e]=t}}]),T=(0,vt.A)(R,2),D=T[0],B=T[1],L=r.useRef(null),H=function(){var e;w||(null===(e=L.current)||void 0===e||e.focus())};r.useImperativeHandle(t,(function(){return{focus:H,blur:function(){var e;w||(null===(e=L.current)||void 0===e||e.blur())}}}));var F=(0,yt.A)(s||0,{value:u}),_=(0,vt.A)(F,2),W=_[0],V=_[1],q=(0,yt.A)(null),K=(0,vt.A)(q,2),X=K[0],G=K[1],Y=function(e,t){var n,r,o,i,a="rtl"===S,l=e+1;if(m){var c=D(e),s=(r=function(e){var t,n,r=e.ownerDocument,o=r.body,i=r&&r.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,{left:t-=i.clientLeft||o.clientLeft||0,top:n-=i.clientTop||o.clientTop||0}}(n=c),o=n.ownerDocument,i=o.defaultView||o.parentWindow,r.left+=function(e){var t=e.pageXOffset,n="scrollLeft";if("number"!=typeof t){var r=e.document;"number"!=typeof(t=r.documentElement[n])&&(t=r.body[n])}return t}(i),r.left),u=c.clientWidth;(a&&t-s>u/2||!a&&t-s0&&!n||t===kt.A.RIGHT&&W>0&&n?(U(W-r),e.preventDefault()):t===kt.A.LEFT&&W{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,he.zA)(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},yO=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),CO=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ve.dF)(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),bO(e)),yO(e))}},xO=(0,J.OF)("Rate",(e=>{const t=(0,Ue.oX)(e,{});return[CO(t)]}),(e=>({starColor:e.yellow6,starSize:.5*e.controlHeightLG,starHoverScale:"scale(1.1)",starBg:e.colorFillContent})));var wO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:o,rootClassName:a,style:l,tooltips:c,character:s=r.createElement(fO,null),disabled:u}=e,d=wO(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),{getPrefixCls:f,direction:p,rate:m}=r.useContext(Z.ConfigContext),g=f("rate",n),[h,v,b]=xO(g),y=Object.assign(Object.assign({},null==m?void 0:m.style),l),C=r.useContext(no.A),x=null!=u?u:C;return h(r.createElement(vO,Object.assign({ref:t,character:s,characterRender:(e,t)=>{let{index:n}=t;return c?r.createElement(da,{title:c[n]},e):e},disabled:x},d,{className:i()(o,a,v,b,null==m?void 0:m.className),style:y,prefixCls:g,direction:p})))}));const SO=AO;const $O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};var kO=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:$O}))};const EO=r.forwardRef(kO),OO=()=>r.createElement("svg",{width:"252",height:"294"},r.createElement("title",null,"No Found"),r.createElement("defs",null,r.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(0 .012)"},r.createElement("mask",{fill:"#fff"}),r.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),r.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),r.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),r.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),r.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),r.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),r.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),r.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),r.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),r.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),r.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),r.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),r.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),r.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),r.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),r.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),r.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),r.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),r.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),r.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),r.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),r.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),r.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),r.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),r.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),r.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),r.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),r.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),r.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),r.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),r.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),r.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),r.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),r.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),r.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),r.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),r.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),r.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),r.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),IO=()=>r.createElement("svg",{width:"254",height:"294"},r.createElement("title",null,"Server Error"),r.createElement("defs",null,r.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),r.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(0 .067)"},r.createElement("mask",{fill:"#fff"}),r.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),r.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),r.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),r.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),r.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),r.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),r.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),r.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),r.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),r.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),r.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),r.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),r.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),r.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),r.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),r.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),r.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),r.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),r.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),r.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),r.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),r.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),r.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),r.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),r.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),r.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),r.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),r.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),r.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),r.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),r.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),r.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),r.createElement("mask",{fill:"#fff"}),r.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),r.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),r.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),r.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),r.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),r.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),r.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),r.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),r.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),r.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),r.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),MO=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:o,paddingXL:i,paddingXS:a,paddingLG:l,marginXS:c,lineHeight:s}=e;return{[t]:{padding:`${(0,he.zA)(e.calc(l).mul(2).equal())} ${(0,he.zA)(i)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:c,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:s,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:l,padding:`${(0,he.zA)(l)} ${(0,he.zA)(e.calc(o).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},NO=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},zO=e=>(e=>[MO(e),NO(e)])(e),PO=(0,J.OF)("Result",(e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,o=e.colorWarning,i=(0,Ue.oX)(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:o,imageWidth:250,imageHeight:295});return[zO(i)]}),(e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:3*e.fontSizeHeading3,extraMargin:`${e.paddingLG}px 0 0 0`}))),jO=()=>r.createElement("svg",{width:"251",height:"294"},r.createElement("title",null,"Unauthorized"),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),r.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),r.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),r.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),r.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),r.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),r.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),r.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),r.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),r.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),r.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),r.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),r.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),r.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),r.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),r.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),r.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),r.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),r.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),r.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),r.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),r.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),r.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),r.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),r.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),r.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),r.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),r.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),r.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),r.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),r.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),r.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),r.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),r.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),r.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),r.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),RO={success:ce.A,error:se.A,info:de.A,warning:EO},TO={404:OO,500:IO,403:jO},DO=Object.keys(TO),BO=e=>{let{prefixCls:t,icon:n,status:o}=e;const a=i()(`${t}-icon`);if(DO.includes(`${o}`)){const e=TO[o];return r.createElement("div",{className:`${a} ${t}-image`},r.createElement(e,null))}const l=r.createElement(RO[o]);return null===n||!1===n?null:r.createElement("div",{className:a},n||l)},LO=e=>{let{prefixCls:t,extra:n}=e;return n?r.createElement("div",{className:`${t}-extra`},n):null},HO=e=>{let{prefixCls:t,className:n,rootClassName:o,subTitle:a,title:l,style:c,children:s,status:u="info",icon:d,extra:f}=e;const{getPrefixCls:p,direction:m,result:g}=r.useContext(Z.ConfigContext),h=p("result",t),[v,b,y]=PO(h),C=i()(h,`${h}-${u}`,n,null==g?void 0:g.className,o,{[`${h}-rtl`]:"rtl"===m},b,y),x=Object.assign(Object.assign({},null==g?void 0:g.style),c);return v(r.createElement("div",{className:C,style:x},r.createElement(BO,{prefixCls:h,status:u,icon:d}),r.createElement("div",{className:`${h}-title`},l),a&&r.createElement("div",{className:`${h}-subtitle`},a),r.createElement(LO,{prefixCls:h,extra:f}),s&&r.createElement("div",{className:`${h}-content`},s)))};HO.PRESENTED_IMAGE_403=TO[403],HO.PRESENTED_IMAGE_404=TO[404],HO.PRESENTED_IMAGE_500=TO[500];const FO=HO,_O=TA;var WO=n(7447);const VO=e=>{const{value:t,formatter:n,precision:o,decimalSeparator:i,groupSeparator:a="",prefixCls:l}=e;let c;if("function"==typeof n)c=n(t);else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){const e=n[1];let t=n[2]||"0",s=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,a),"number"==typeof o&&(s=s.padEnd(o,"0").slice(0,o>0?o:0)),s&&(s=`${i}${s}`),c=[r.createElement("span",{key:"int",className:`${l}-content-value-int`},e,t),s&&r.createElement("span",{key:"decimal",className:`${l}-content-value-decimal`},s)]}else c=e}return r.createElement("span",{className:`${l}-content-value`},c)},qO=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:o,titleFontSize:i,colorTextHeading:a,contentFontSize:l,fontFamily:c}=e;return{[t]:Object.assign(Object.assign({},(0,ve.dF)(e)),{[`${t}-title`]:{marginBottom:n,color:o,fontSize:i},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:a,fontSize:l,fontFamily:c,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},KO=(0,J.OF)("Statistic",(e=>{const t=(0,Ue.oX)(e,{});return[qO(t)]}),(e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}}));var XO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,rootClassName:o,style:a,valueStyle:l,value:c=0,title:s,valueRender:u,prefix:d,suffix:f,loading:p=!1,formatter:m,precision:g,decimalSeparator:h=".",groupSeparator:v=",",onMouseEnter:b,onMouseLeave:y}=e,C=XO(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:x,direction:w,statistic:A}=r.useContext(Z.ConfigContext),S=x("statistic",t),[$,k,E]=KO(S),O=r.createElement(VO,{decimalSeparator:h,groupSeparator:v,prefixCls:S,formatter:m,precision:g,value:c}),I=i()(S,{[`${S}-rtl`]:"rtl"===w},null==A?void 0:A.className,n,o,k,E),M=(0,me.A)(C,{aria:!0,data:!0});return $(r.createElement("div",Object.assign({},M,{className:I,style:Object.assign(Object.assign({},null==A?void 0:A.style),a),onMouseEnter:b,onMouseLeave:y}),s&&r.createElement("div",{className:`${S}-title`},s),r.createElement(op.A,{paragraph:!1,loading:p,className:`${S}-skeleton`},r.createElement("div",{style:l,className:`${S}-content`},d&&r.createElement("span",{className:`${S}-content-prefix`},d),u?u(O):O,f&&r.createElement("span",{className:`${S}-content-suffix`},f)))))},YO=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function UO(e,t){const{format:n=""}=t,r=new Date(e).getTime(),o=Date.now();return function(e,t){let n=e;const r=/\[[^\]]*]/g,o=(t.match(r)||[]).map((e=>e.slice(1,-1))),i=t.replace(r,"[]"),a=YO.reduce(((e,t)=>{let[r,o]=t;if(e.includes(r)){const t=Math.floor(n/o);return n-=t*o,e.replace(new RegExp(`${r}+`,"g"),(e=>{const n=e.length;return t.toString().padStart(n,"0")}))}return e}),i);let l=0;return a.replace(r,(()=>{const e=o[l];return l+=1,e}))}(Math.max(r-o,0),n)}var QO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{value:t,format:n="HH:mm:ss",onChange:o,onFinish:i}=e,a=QO(e,["value","format","onChange","onFinish"]),l=(0,WO.A)(),c=r.useRef(null),s=()=>{const e=function(e){return new Date(e).getTime()}(t);e>=Date.now()&&(c.current=setInterval((()=>{l(),null==o||o(e-Date.now()),e(s(),()=>{c.current&&(clearInterval(c.current),c.current=null)})),[t]);return r.createElement(GO,Object.assign({},a,{value:t,valueRender:e=>(0,ge.Ob)(e,{title:void 0}),formatter:(e,t)=>UO(e,Object.assign(Object.assign({},t),{format:n}))}))},eI=r.memo(JO);GO.Countdown=eI;const tI=GO;var nI=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function rI(e){return"string"==typeof e}const oI=function(e){var t,n=e.className,o=e.prefixCls,l=e.style,c=e.active,u=e.status,d=e.iconPrefix,f=e.icon,p=(e.wrapperStyle,e.stepNumber),m=e.disabled,g=e.description,h=e.title,v=e.subTitle,b=e.progressDot,y=e.stepIcon,C=e.tailContent,x=e.icons,w=e.stepIndex,A=e.onStepClick,S=e.onClick,$=e.render,k=(0,bt.A)(e,nI),E={};!!A&&!m&&(E.role="button",E.tabIndex=0,E.onClick=function(e){null==S||S(e),A(w)},E.onKeyDown=function(e){var t=e.which;t!==kt.A.ENTER&&t!==kt.A.SPACE||A(w)});var O,I,M,N,z=u||"wait",P=i()("".concat(o,"-item"),"".concat(o,"-item-").concat(z),n,(t={},(0,ht.A)(t,"".concat(o,"-item-custom"),f),(0,ht.A)(t,"".concat(o,"-item-active"),c),(0,ht.A)(t,"".concat(o,"-item-disabled"),!0===m),t)),j=(0,s.A)({},l),R=r.createElement("div",(0,a.A)({},k,{className:P,style:j}),r.createElement("div",(0,a.A)({onClick:S},E,{className:"".concat(o,"-item-container")}),r.createElement("div",{className:"".concat(o,"-item-tail")},C),r.createElement("div",{className:"".concat(o,"-item-icon")},(M=i()("".concat(o,"-icon"),"".concat(d,"icon"),(O={},(0,ht.A)(O,"".concat(d,"icon-").concat(f),f&&rI(f)),(0,ht.A)(O,"".concat(d,"icon-check"),!f&&"finish"===u&&(x&&!x.finish||!x)),(0,ht.A)(O,"".concat(d,"icon-cross"),!f&&"error"===u&&(x&&!x.error||!x)),O)),N=r.createElement("span",{className:"".concat(o,"-icon-dot")}),I=b?"function"==typeof b?r.createElement("span",{className:"".concat(o,"-icon")},b(N,{index:p-1,status:u,title:h,description:g})):r.createElement("span",{className:"".concat(o,"-icon")},N):f&&!rI(f)?r.createElement("span",{className:"".concat(o,"-icon")},f):x&&x.finish&&"finish"===u?r.createElement("span",{className:"".concat(o,"-icon")},x.finish):x&&x.error&&"error"===u?r.createElement("span",{className:"".concat(o,"-icon")},x.error):f||"finish"===u||"error"===u?r.createElement("span",{className:M}):r.createElement("span",{className:"".concat(o,"-icon")},p),y&&(I=y({index:p-1,status:u,title:h,description:g,node:I})),I)),r.createElement("div",{className:"".concat(o,"-item-content")},r.createElement("div",{className:"".concat(o,"-item-title")},h,v&&r.createElement("div",{title:"string"==typeof v?v:void 0,className:"".concat(o,"-item-subtitle")},v)),g&&r.createElement("div",{className:"".concat(o,"-item-description")},g))));return $&&(R=$(R)||null),R};var iI=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function aI(e){var t,n=e.prefixCls,o=void 0===n?"rc-steps":n,l=e.style,c=void 0===l?{}:l,u=e.className,d=(e.children,e.direction),f=void 0===d?"horizontal":d,p=e.type,m=void 0===p?"default":p,g=e.labelPlacement,h=void 0===g?"horizontal":g,v=e.iconPrefix,b=void 0===v?"rc":v,y=e.status,C=void 0===y?"process":y,x=e.size,w=e.current,A=void 0===w?0:w,S=e.progressDot,$=void 0!==S&&S,k=e.stepIcon,E=e.initial,O=void 0===E?0:E,I=e.icons,M=e.onChange,N=e.itemRender,z=e.items,P=void 0===z?[]:z,j=(0,bt.A)(e,iI),R="navigation"===m,T="inline"===m,D=T||$,B=T?"horizontal":f,L=T?void 0:x,H=D?"vertical":h,F=i()(o,"".concat(o,"-").concat(B),u,(t={},(0,ht.A)(t,"".concat(o,"-").concat(L),L),(0,ht.A)(t,"".concat(o,"-label-").concat(H),"horizontal"===B),(0,ht.A)(t,"".concat(o,"-dot"),!!D),(0,ht.A)(t,"".concat(o,"-navigation"),R),(0,ht.A)(t,"".concat(o,"-inline"),T),t)),_=function(e){M&&A!==e&&M(e)};return r.createElement("div",(0,a.A)({className:F,style:c},j),P.filter((function(e){return e})).map((function(e,t){var n=(0,s.A)({},e),i=O+t;return"error"===C&&t===A-1&&(n.className="".concat(o,"-next-error")),n.status||(n.status=i===A?C:i{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:o}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:o,lineHeight:(0,he.zA)(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},sI=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},uI=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:o}=e,i=e.calc(e.paddingXS).add(e.lineWidth).equal(),a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${(0,he.zA)(i)} ${(0,he.zA)(e.paddingXXS)} 0`,margin:`0 ${(0,he.zA)(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${(0,he.zA)(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(i).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${o}`}},a),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:o},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:o,border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${o}`}},a),"&-error":a,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${(0,he.zA)(e.calc(n).div(2).equal())})`,top:0}},a),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},dI=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:o}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${(0,he.zA)(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(o).div(2).add(e.controlHeightLG).equal()}}}}}},fI=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:o,motionDurationSlow:i}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},ve.L9),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${(0,he.zA)(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:o,transition:`width ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${(0,he.zA)(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},pI=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:o,processIconColor:i,marginXXS:a,lineWidthBold:l,lineWidth:c,paddingXXS:s}=e,u=e.calc(r).add(e.calc(l).mul(4).equal()).equal(),d=e.calc(o).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:s,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:i}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:s,[`> ${n}-item-container > ${n}-item-tail`]:{top:a,insetInlineStart:e.calc(r).div(2).sub(c).add(s).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:s,paddingInlineStart:s}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(o).div(2).sub(c).add(s).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(s).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${(0,he.zA)(u)} !important`,height:`${(0,he.zA)(u)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(o).div(2).add(s).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${(0,he.zA)(d)} !important`,height:`${(0,he.zA)(d)} !important`}}}}},mI=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:o,dotSize:i,motionDurationSlow:a}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${(0,he.zA)(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${(0,he.zA)(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal(),paddingInlineEnd:0,lineHeight:(0,he.zA)(i),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(i).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(i).sub(o).div(2).equal(),width:o,height:o,lineHeight:(0,he.zA)(o),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(o).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(i).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(o).div(2).equal(),top:0,insetInlineStart:e.calc(i).sub(o).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(i).div(2).equal(),insetInlineStart:0,margin:0,padding:`${(0,he.zA)(e.calc(i).add(e.paddingXS).equal())} 0 ${(0,he.zA)(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(i).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(o).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(i).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},gI=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},hI=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:o,colorTextDescription:i}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${(0,he.zA)(e.marginXS)}`,fontSize:r,lineHeight:(0,he.zA)(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:o,lineHeight:(0,he.zA)(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:i,fontSize:o},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:(0,he.zA)(n),transform:"none"}}}}},vI=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:(0,he.zA)(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${(0,he.zA)(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${(0,he.zA)(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${(0,he.zA)(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${(0,he.zA)(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:(0,he.zA)(n)}}}}},bI=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,o=`${e}TitleColor`,i=`${e}DescriptionColor`,a=`${e}TailColor`,l=`${e}IconBgColor`,c=`${e}IconBorderColor`,s=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[l],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[s]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[s]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[o],"&::after":{backgroundColor:t[a]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[i]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[a]}}},yI=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,o=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[o]:Object.assign({},(0,ve.jk)(e))}},[`${o}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[o]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:(0,he.zA)(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:(0,he.zA)(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},bI("wait",e)),bI("process",e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),bI("finish",e)),bI("error",e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},CI=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},xI=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ve.dF)(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),yI(e)),CI(e)),cI(e)),hI(e)),vI(e)),sI(e)),dI(e)),mI(e)),fI(e)),gI(e)),pI(e)),uI(e))}},wI=(0,J.OF)("Steps",(e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:o,colorPrimary:i,colorTextDescription:a,colorTextQuaternary:l,colorError:c,colorBorderSecondary:s,colorSplit:u}=e,d=(0,Ue.oX)(e,{processIconColor:r,processTitleColor:o,processDescriptionColor:o,processIconBgColor:i,processIconBorderColor:i,processDotColor:i,processTailColor:u,waitTitleColor:a,waitDescriptionColor:a,waitTailColor:u,waitDotColor:t,finishIconColor:i,finishTitleColor:o,finishDescriptionColor:a,finishTailColor:i,finishDotColor:i,errorIconColor:r,errorTitleColor:c,errorDescriptionColor:c,errorTailColor:u,errorIconBgColor:c,errorIconBorderColor:c,errorDotColor:c,stepsNavActiveColor:i,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:l,inlineTailColor:s});return[xI(d)]}),(e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive})));var AI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{percent:t,size:n,className:o,rootClassName:a,direction:c,items:s,responsive:u=!0,current:d=0,children:f,style:p}=e,m=AI(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:g}=(0,Ai.A)(u),{getPrefixCls:h,direction:v,steps:b}=r.useContext(Z.ConfigContext),y=r.useMemo((()=>u&&g?"vertical":c),[g,c]),C=(0,ro.A)(n),x=h("steps",e.prefixCls),[w,A,S]=wI(x),$="inline"===e.type,k=h("",e.iconPrefix),E=function(e,t){return e||function(e){return e.filter((e=>e))}((0,l.A)(t).map((e=>{if(r.isValidElement(e)){const{props:t}=e;return Object.assign({},t)}return null})))}(s,f),O=$?void 0:t,I=Object.assign(Object.assign({},null==b?void 0:b.style),p),M=i()(null==b?void 0:b.className,{[`${x}-rtl`]:"rtl"===v,[`${x}-with-progress`]:void 0!==O},o,a,A,S),N={finish:r.createElement(ei,{className:`${x}-finish-icon`}),error:r.createElement(ue.A,{className:`${x}-error-icon`})};return w(r.createElement(lI,Object.assign({icons:N},m,{style:I,current:d,size:C,items:E,itemRender:$?(e,t)=>e.description?r.createElement(da,{title:e.description},t):t:void 0,stepIcon:e=>{let{node:t,status:n}=e;if("process"===n&&void 0!==O){const e="small"===C?32:40;return r.createElement("div",{className:`${x}-progress-icon`},r.createElement(ME,{type:"circle",percent:O,size:e,strokeWidth:4,format:()=>null}),t)}return t},direction:y,prefixCls:x,iconPrefix:k,className:M})))};SI.Step=lI.Step;const $I=SI;var kI=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],EI=r.forwardRef((function(e,t){var n,o=e.prefixCls,l=void 0===o?"rc-switch":o,c=e.className,s=e.checked,u=e.defaultChecked,d=e.disabled,f=e.loadingIcon,p=e.checkedChildren,m=e.unCheckedChildren,g=e.onClick,h=e.onChange,v=e.onKeyDown,b=(0,bt.A)(e,kI),y=(0,yt.A)(!1,{value:s,defaultValue:u}),C=(0,vt.A)(y,2),x=C[0],w=C[1];function A(e,t){var n=x;return d||(w(n=e),null==h||h(n,t)),n}var S=i()(l,c,(n={},(0,ht.A)(n,"".concat(l,"-checked"),x),(0,ht.A)(n,"".concat(l,"-disabled"),d),n));return r.createElement("button",(0,a.A)({},b,{type:"button",role:"switch","aria-checked":x,disabled:d,className:S,ref:t,onKeyDown:function(e){e.which===kt.A.LEFT?A(!1,e):e.which===kt.A.RIGHT&&A(!0,e),null==v||v(e)},onClick:function(e){var t=A(!x,e);null==g||g(t,e)}}),f,r.createElement("span",{className:"".concat(l,"-inner")},r.createElement("span",{className:"".concat(l,"-inner-checked")},p),r.createElement("span",{className:"".concat(l,"-inner-unchecked")},m)))}));EI.displayName="Switch";const OI=EI,II=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:c}=e,s=`${t}-inner`,u=(0,he.zA)(c(l).add(c(r).mul(2)).equal()),d=(0,he.zA)(c(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:(0,he.zA)(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${s}-checked, ${s}-unchecked`]:{minHeight:n},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${s}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${(0,he.zA)(c(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},MI=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},NI=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${(0,he.zA)(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},zI=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:l}=e,c=`${t}-inner`,s=(0,he.zA)(l(a).add(l(r).mul(2)).equal()),u=(0,he.zA)(l(i).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${s} - ${u})`,marginInlineEnd:`calc(100% - ${s} + ${u})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${s} + ${u})`,marginInlineEnd:`calc(-100% + ${s} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},PI=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:(0,he.zA)(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),(0,ve.K8)(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},jI=(0,J.OF)("Switch",(e=>{const t=(0,Ue.oX)(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[PI(t),zI(t),NI(t),MI(t),II(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=i-4,c=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*c+4,trackPadding:2,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Vr.q("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}));var RI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,size:o,disabled:a,loading:l,className:c,rootClassName:s,style:u,checked:d,value:f,defaultChecked:p,defaultValue:m,onChange:g}=e,h=RI(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[v,b]=(0,yt.A)(!1,{value:null!=d?d:f,defaultValue:null!=p?p:m}),{getPrefixCls:y,direction:C,switch:x}=r.useContext(Z.ConfigContext),w=r.useContext(no.A),A=(null!=a?a:w)||l,S=y("switch",n),$=r.createElement("div",{className:`${S}-handle`},l&&r.createElement(oi.A,{className:`${S}-loading-icon`})),[k,E,O]=jI(S),I=(0,ro.A)(o),M=i()(null==x?void 0:x.className,{[`${S}-small`]:"small"===I,[`${S}-loading`]:l,[`${S}-rtl`]:"rtl"===C},c,s,E,O),N=Object.assign(Object.assign({},null==x?void 0:x.style),u);return k(r.createElement($f.A,{component:"Switch"},r.createElement(OI,Object.assign({},h,{checked:v,onChange:function(){b(arguments.length<=0?void 0:arguments[0]),null==g||g.apply(void 0,arguments)},prefixCls:S,className:M,style:N,disabled:A,ref:t,loadingIcon:$}))))})),DI=TI;DI.__ANT_SWITCH=!0;const BI=DI;var LI={},HI="rc-table-internal-hook";function FI(e){var t=r.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,o=e.children,i=r.useRef(n);i.current=n;var a=r.useState((function(){return{getValue:function(){return i.current},listeners:new Set}})),l=(0,vt.A)(a,1)[0];return(0,Ct.A)((function(){(0,zt.unstable_batchedUpdates)((function(){l.listeners.forEach((function(e){e(n)}))}))}),[n]),r.createElement(t.Provider,{value:l},o)},defaultValue:e}}function _I(e,t){var n=(0,Te.A)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach((function(t){n[t]=e[t]})),n}),o=r.useContext(null==e?void 0:e.Context),i=o||{},a=i.listeners,l=i.getValue,c=r.useRef();c.current=n(o?l():null==e?void 0:e.defaultValue);var s=r.useState({}),u=(0,vt.A)(s,2)[1];return(0,Ct.A)((function(){if(o)return a.add(e),function(){a.delete(e)};function e(e){var t=n(e);(0,dl.A)(c.current,t,!0)||u({})}}),[o]),c.current}function WI(){var e=r.createContext(null);function t(){return r.useContext(e)}return{makeImmutable:function(n,o){var i=(0,f.f3)(n),l=function(l,c){var s=i?{ref:c}:{},u=r.useRef(0),d=r.useRef(l);return null!==t()?r.createElement(n,(0,a.A)({},l,s)):(o&&!o(d.current,l)||(u.current+=1),d.current=l,r.createElement(e.Provider,{value:u.current},r.createElement(n,(0,a.A)({},l,s))))};return i?r.forwardRef(l):l},responseImmutable:function(e,n){var o=(0,f.f3)(e),i=function(n,i){var l=o?{ref:i}:{};return t(),r.createElement(e,(0,a.A)({},n,l))};return o?r.memo(r.forwardRef(i),n):r.memo(i,n)},useImmutableMark:t}}var VI=WI(),qI=(VI.makeImmutable,VI.responseImmutable,VI.useImmutableMark,WI()),KI=qI.makeImmutable,XI=qI.responseImmutable,GI=qI.useImmutableMark;const YI=FI();var UI=n(6300);const QI=r.createContext({renderWithProps:!1});function ZI(e){var t=[],n={};return e.forEach((function(e){for(var r,o=e||{},i=o.key,a=o.dataIndex,l=i||(r=a,null==r?[]:Array.isArray(r)?r:[r]).join("-")||"RC_TABLE_KEY";n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)})),t}function JI(e){return null!=e}function eM(e,t,n,o,i,a){var l=r.useContext(QI),c=GI();return(0,Jn.A)((function(){if(JI(o))return[o];var a,c=null==t||""===t?[]:Array.isArray(t)?t:[t],s=(0,UI.A)(e,c),d=s,f=void 0;if(i){var p=i(s,e,n);!(a=p)||"object"!==(0,u.A)(a)||Array.isArray(a)||r.isValidElement(a)?d=p:(d=p.children,f=p.props,l.renderWithProps=!0)}return[d,f]}),[c,e,o,t,i,n],(function(e,t){if(a){var n=(0,vt.A)(e,2)[1],r=(0,vt.A)(t,2)[1];return a(r,n)}return!!l.renderWithProps||!(0,dl.A)(e,t,!0)}))}function tM(e){var t,n,o,l,c,d,f,p;var m=e.component,g=e.children,h=e.ellipsis,v=e.scope,b=e.prefixCls,y=e.className,C=e.align,x=e.record,w=e.render,A=e.dataIndex,S=e.renderIndex,$=e.shouldCellUpdate,k=e.index,E=e.rowType,O=e.colSpan,I=e.rowSpan,M=e.fixLeft,N=e.fixRight,z=e.firstFixLeft,P=e.lastFixLeft,j=e.firstFixRight,R=e.lastFixRight,T=e.appendNode,D=e.additionalProps,B=void 0===D?{}:D,L=e.isSticky,H="".concat(b,"-cell"),F=_I(YI,["supportSticky","allColumnsFixedLeft","rowHoverable"]),_=F.supportSticky,W=F.allColumnsFixedLeft,V=F.rowHoverable,q=eM(x,A,S,g,w,$),K=(0,vt.A)(q,2),X=K[0],G=K[1],Y={},U="number"==typeof M&&_,Q="number"==typeof N&&_;U&&(Y.position="sticky",Y.left=M),Q&&(Y.position="sticky",Y.right=N);var Z=null!==(t=null!==(n=null!==(o=null==G?void 0:G.colSpan)&&void 0!==o?o:B.colSpan)&&void 0!==n?n:O)&&void 0!==t?t:1,J=null!==(l=null!==(c=null!==(d=null==G?void 0:G.rowSpan)&&void 0!==d?d:B.rowSpan)&&void 0!==c?c:I)&&void 0!==l?l:1,ee=function(e,t){return _I(YI,(function(n){var r,o,i,a;return[(r=e,o=t||1,i=n.hoverStartRow,a=n.hoverEndRow,r<=a&&r+o-1>=i),n.onHover]}))}(k,J),te=(0,vt.A)(ee,2),ne=te[0],re=te[1],oe=(0,er._q)((function(e){var t;x&&re(k,k+J-1),null==B||null===(t=B.onMouseEnter)||void 0===t||t.call(B,e)})),ie=(0,er._q)((function(e){var t;x&&re(-1,-1),null==B||null===(t=B.onMouseLeave)||void 0===t||t.call(B,e)}));if(0===Z||0===J)return null;var ae=null!==(f=B.title)&&void 0!==f?f:function(e){var t,n=e.ellipsis,o=e.rowType,i=e.children,a=!0===n?{showTitle:!0}:n;return a&&(a.showTitle||"header"===o)&&("string"==typeof i||"number"==typeof i?t=i.toString():r.isValidElement(i)&&"string"==typeof i.props.children&&(t=i.props.children)),t}({rowType:E,ellipsis:h,children:X}),le=i()(H,y,(p={},(0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)(p,"".concat(H,"-fix-left"),U&&_),"".concat(H,"-fix-left-first"),z&&_),"".concat(H,"-fix-left-last"),P&&_),"".concat(H,"-fix-left-all"),P&&W&&_),"".concat(H,"-fix-right"),Q&&_),"".concat(H,"-fix-right-first"),j&&_),"".concat(H,"-fix-right-last"),R&&_),"".concat(H,"-ellipsis"),h),"".concat(H,"-with-append"),T),"".concat(H,"-fix-sticky"),(U||Q)&&L&&_),(0,ht.A)(p,"".concat(H,"-row-hover"),!G&&ne)),B.className,null==G?void 0:G.className),ce={};C&&(ce.textAlign=C);var se=(0,s.A)((0,s.A)((0,s.A)((0,s.A)({},Y),B.style),ce),null==G?void 0:G.style),ue=X;return"object"!==(0,u.A)(ue)||Array.isArray(ue)||r.isValidElement(ue)||(ue=null),h&&(P||j)&&(ue=r.createElement("span",{className:"".concat(H,"-content")},ue)),r.createElement(m,(0,a.A)({},G,B,{className:le,style:se,title:ae,scope:v,onMouseEnter:V?oe:void 0,onMouseLeave:V?ie:void 0,colSpan:1!==Z?Z:null,rowSpan:1!==J?J:null}),T,ue)}const nM=r.memo(tM);function rM(e,t,n,r,o){var i,a,l=n[e]||{},c=n[t]||{};"left"===l.fixed?i=r.left["rtl"===o?t:e]:"right"===c.fixed&&(a=r.right["rtl"===o?e:t]);var s=!1,u=!1,d=!1,f=!1,p=n[t+1],m=n[e-1],g=p&&!p.fixed||m&&!m.fixed||n.every((function(e){return"left"===e.fixed}));if("rtl"===o){if(void 0!==i)f=!(m&&"left"===m.fixed)&&g;else if(void 0!==a){d=!(p&&"right"===p.fixed)&&g}}else if(void 0!==i){s=!(p&&"left"===p.fixed)&&g}else if(void 0!==a){u=!(m&&"right"===m.fixed)&&g}return{fixLeft:i,fixRight:a,lastFixLeft:s,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}const oM=r.createContext({});var iM=["children"];function aM(e){return e.children}aM.Row=function(e){var t=e.children,n=(0,bt.A)(e,iM);return r.createElement("tr",n,t)},aM.Cell=function(e){var t=e.className,n=e.index,o=e.children,i=e.colSpan,l=void 0===i?1:i,c=e.rowSpan,s=e.align,u=_I(YI,["prefixCls","direction"]),d=u.prefixCls,f=u.direction,p=r.useContext(oM),m=p.scrollColumnIndex,g=p.stickyOffsets,h=n+l-1+1===m?l+1:l,v=rM(n,n+h-1,p.flattenColumns,g,f);return r.createElement(nM,(0,a.A)({className:t,index:n,component:"td",prefixCls:d,record:null,dataIndex:null,align:s,colSpan:h,rowSpan:c,render:function(){return o}},v))};const lM=aM;const cM=XI((function(e){var t=e.children,n=e.stickyOffsets,o=e.flattenColumns,i=_I(YI,"prefixCls"),a=o.length-1,l=o[a],c=r.useMemo((function(){return{stickyOffsets:n,flattenColumns:o,scrollColumnIndex:null!=l&&l.scrollbar?a:null}}),[l,o,a,n]);return r.createElement(oM.Provider,{value:c},r.createElement("tfoot",{className:"".concat(i,"-summary")},t))}));var sM=lM,uM=function(e){if((0,kr.A)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function dM(e,t){return Array.isArray(e)||void 0===t?uM(e):function(e,t){if(!uM(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}var fM=n(2987);function pM(e,t,n,r,o,i,a){e.push({record:t,indent:n,index:a});var l=i(t),c=null==o?void 0:o.has(l);if(t&&Array.isArray(t[r])&&c)for(var s=0;s1?n-1:0),o=1;o=1)),style:(0,s.A)((0,s.A)({},n),null==x?void 0:x.style)}),b.map((function(e,t){var n=e.render,i=e.dataIndex,s=e.className,u=yM(h,e,t,f,l),d=u.key,p=u.fixedInfo,b=u.appendCellNode,y=u.additionalCellProps;return r.createElement(nM,(0,a.A)({className:s,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?g:m,prefixCls:v,key:d,record:o,index:l,renderIndex:c,dataIndex:i,render:n,shouldCellUpdate:e.shouldCellUpdate},p,{appendNode:b,additionalProps:y}))})));if(A&&(S.current||w)){var O=C(o,l,f+1,w);$=r.createElement(hM,{expanded:w,className:i()("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(f+1),k),prefixCls:v,component:p,cellComponent:m,colSpan:b.length,isEmpty:!1},O)}return r.createElement(r.Fragment,null,E,$)}));function xM(e){var t=e.columnKey,n=e.onColumnResize,o=r.useRef();return r.useEffect((function(){o.current&&n(t,o.current.offsetWidth)}),[]),r.createElement(X,{data:t},r.createElement("td",{ref:o,style:{padding:0,border:0,height:0}},r.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function wM(e){var t=e.prefixCls,n=e.columnsKey,o=e.onColumnResize;return r.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},r.createElement(X.Collection,{onBatchResize:function(e){e.forEach((function(e){var t=e.data,n=e.size;o(t,n.offsetWidth)}))}},n.map((function(e){return r.createElement(xM,{key:e,columnKey:e,onColumnResize:o})}))))}const AM=XI((function(e){var t,n=e.data,o=e.measureColumnWidth,i=_I(YI,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=i.prefixCls,l=i.getComponent,c=i.onColumnResize,s=i.flattenColumns,u=i.getRowKey,d=i.expandedKeys,f=i.childrenColumnName,p=i.emptyNode,m=mM(n,f,d,u),g=r.useRef({renderWithProps:!1}),h=l(["body","wrapper"],"tbody"),v=l(["body","row"],"tr"),b=l(["body","cell"],"td"),y=l(["body","cell"],"th");t=n.length?m.map((function(e,t){var n=e.record,o=e.indent,i=e.index,a=u(n,t);return r.createElement(CM,{key:a,rowKey:a,record:n,index:t,renderIndex:i,rowComponent:v,cellComponent:b,scopeCellComponent:y,getRowKey:u,indent:o})})):r.createElement(hM,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:v,cellComponent:b,colSpan:s.length,isEmpty:!0},p);var C=ZI(s);return r.createElement(QI.Provider,{value:g.current},r.createElement(h,{className:"".concat(a,"-tbody")},o&&r.createElement(wM,{prefixCls:a,columnsKey:C,onColumnResize:c}),t))}));var SM=["expandable"],$M="RC_TABLE_INTERNAL_COL_DEFINE";var kM=["columnType"];const EM=function(e){for(var t=e.colWidths,n=e.columns,o=e.columCount,i=_I(YI,["tableLayout"]).tableLayout,l=[],c=!1,s=(o||n.length)-1;s>=0;s-=1){var u=t[s],d=n&&n[s],f=void 0,p=void 0;if(d&&(f=d[$M],"auto"===i&&(p=d.minWidth)),u||p||f||c){var m=f||{},g=(m.columnType,(0,bt.A)(m,kM));l.unshift(r.createElement("col",(0,a.A)({key:s,style:{width:u,minWidth:p}},g))),c=!0}}return r.createElement("colgroup",null,l)};var OM=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var IM=r.forwardRef((function(e,t){var n=e.className,o=e.noData,a=e.columns,l=e.flattenColumns,c=e.colWidths,u=e.columCount,d=e.stickyOffsets,p=e.direction,m=e.fixHeader,g=e.stickyTopOffset,h=e.stickyBottomOffset,v=e.stickyClassName,b=e.onScroll,y=e.maxContentScroll,C=e.children,x=(0,bt.A)(e,OM),w=_I(YI,["prefixCls","scrollbarSize","isSticky","getComponent"]),A=w.prefixCls,S=w.scrollbarSize,$=w.isSticky,k=(0,w.getComponent)(["header","table"],"table"),E=$&&!m?0:S,O=r.useRef(null),I=r.useCallback((function(e){(0,f.Xf)(t,e),(0,f.Xf)(O,e)}),[]);r.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,r=t.deltaX;r&&(b({currentTarget:n,scrollLeft:n.scrollLeft+r}),e.preventDefault())}return null===(e=O.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),function(){var e;null===(e=O.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var M=r.useMemo((function(){return l.every((function(e){return e.width}))}),[l]),N=l[l.length-1],z={fixed:N?N.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(A,"-cell-scrollbar")}}},P=(0,r.useMemo)((function(){return E?[].concat((0,Y.A)(a),[z]):a}),[E,a]),j=(0,r.useMemo)((function(){return E?[].concat((0,Y.A)(l),[z]):l}),[E,l]),R=(0,r.useMemo)((function(){var e=d.right,t=d.left;return(0,s.A)((0,s.A)({},d),{},{left:"rtl"===p?[].concat((0,Y.A)(t.map((function(e){return e+E}))),[0]):t,right:"rtl"===p?e:[].concat((0,Y.A)(e.map((function(e){return e+E}))),[0]),isSticky:$})}),[E,d,$]),T=function(e,t){return(0,r.useMemo)((function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:l.ellipsis,align:l.align,component:c,prefixCls:f,key:m[t]},s,{additionalProps:n,rowType:"header"}))})))};const zM=XI((function(e){var t=e.stickyOffsets,n=e.columns,o=e.flattenColumns,i=e.onHeaderRow,a=_I(YI,["prefixCls","getComponent"]),l=a.prefixCls,c=a.getComponent,s=r.useMemo((function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var i=r;return n.filter(Boolean).map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,l=n.children;return l&&l.length>0&&(a=e(l,i,o+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[o].push(r),i+=a,a}))}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},o=0;o1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var jM=["children"],RM=["fixed"];function TM(e){return(0,l.A)(e).filter((function(e){return r.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,o=(0,bt.A)(n,jM),i=(0,s.A)({key:t},o);return r&&(i.children=TM(r)),i}))}function DM(e){return e.filter((function(e){return e&&"object"===(0,u.A)(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?(0,s.A)((0,s.A)({},e),{},{children:DM(t)}):e}))}function BM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===(0,u.A)(e)})).reduce((function(e,n,r){var o=n.fixed,i=!0===o?"left":o,a="".concat(t,"-").concat(r),l=n.children;return l&&l.length>0?[].concat((0,Y.A)(e),(0,Y.A)(BM(l,a).map((function(e){return(0,s.A)({fixed:i},e)})))):[].concat((0,Y.A)(e),[(0,s.A)((0,s.A)({key:a},n),{},{fixed:i})])}),[])}const LM=function(e,t){var n=e.prefixCls,o=e.columns,i=e.children,a=e.expandable,l=e.expandedKeys,c=e.columnTitle,u=e.getRowKey,d=e.onTriggerExpand,f=e.expandIcon,p=e.rowExpandable,m=e.expandIconColumnIndex,g=e.direction,h=e.expandRowByClick,v=e.columnWidth,b=e.fixed,y=e.scrollWidth,C=e.clientWidth,x=r.useMemo((function(){return DM((o||TM(i)||[]).slice())}),[o,i]),w=r.useMemo((function(){if(a){var e=x.slice();if(!e.includes(LI)){var t=m||0;t>=0&&e.splice(t,0,LI)}0;var o=e.indexOf(LI);e=e.filter((function(e,t){return e!==LI||t===o}));var i,s=x[o];i="left"!==b&&!b||m?"right"!==b&&!b||m!==x.length?s?s.fixed:null:"right":"left";var g=(0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)((0,ht.A)({},$M,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",c),"fixed",i),"className","".concat(n,"-row-expand-icon-cell")),"width",v),"render",(function(e,t,o){var i=u(t,o),a=l.has(i),c=!p||p(t),s=f({prefixCls:n,expanded:a,expandable:c,record:t,onExpand:d});return h?r.createElement("span",{onClick:function(e){return e.stopPropagation()}},s):s}));return e.map((function(e){return e===LI?g:e}))}return x.filter((function(e){return e!==LI}))}),[a,x,u,l,f,g]),A=r.useMemo((function(){var e=w;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,w,g]),S=r.useMemo((function(){return"rtl"===g?function(e){return e.map((function(e){var t=e.fixed,n=(0,bt.A)(e,RM),r=t;return"left"===t?r="right":"right"===t&&(r="left"),(0,s.A)({fixed:r},n)}))}(BM(A)):BM(A)}),[A,g,y]),$=r.useMemo((function(){for(var e=-1,t=S.length-1;t>=0;t-=1){var n=S[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var r=0;r<=e;r+=1){var o=S[r].fixed;if("left"!==o&&!0!==o)return!0}var i=S.findIndex((function(e){return"right"===e.fixed}));if(i>=0)for(var a=i;a0){var r=0,o=0;e.forEach((function(e){var n=PM(t,e.width);n?r+=n:o+=1}));var i=Math.max(t,n),a=Math.max(i-r,o),l=o,c=a/o,u=0,d=e.map((function(e){var n=(0,s.A)({},e),r=PM(t,n.width);if(r)n.width=r;else{var o=Math.floor(c);n.width=1===l?a:o,a-=o,l-=1}return u+=n.width,n}));if(u=p&&(r=p-m),l({scrollLeft:r/p*(f+2)}),C.current.x=e.pageX}else A&&S(!1)},O=function(){$.current=(0,U.A)((function(){if(a.current){var e=aS(a.current).top,t=e+a.current.offsetHeight,n=u===window?document.documentElement.scrollTop+window.innerHeight:aS(u).top+u.clientHeight;t-(0,fM.A)()<=n||e>=n-c?y((function(e){return(0,s.A)((0,s.A)({},e),{},{isHiddenScrollBar:!0})})):y((function(e){return(0,s.A)((0,s.A)({},e),{},{isHiddenScrollBar:!1})}))}}))},I=function(e){y((function(t){return(0,s.A)((0,s.A)({},t),{},{scrollLeft:e/f*p||0})}))};return r.useImperativeHandle(t,(function(){return{setScrollLeft:I,checkScrollBarVisible:O}})),r.useEffect((function(){var e=cS(document.body,"mouseup",k,!1),t=cS(document.body,"mousemove",E,!1);return O(),function(){e.remove(),t.remove()}}),[m,A]),r.useEffect((function(){var e=cS(u,"scroll",O,!1),t=cS(window,"resize",O,!1);return function(){e.remove(),t.remove()}}),[u]),r.useEffect((function(){b.isHiddenScrollBar||y((function(e){var t=a.current;return t?(0,s.A)((0,s.A)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[b.isHiddenScrollBar]),f<=p||!m||b.isHiddenScrollBar?null:r.createElement("div",{style:{height:(0,fM.A)(),width:p,bottom:c},className:"".concat(d,"-sticky-scroll")},r.createElement("div",{onMouseDown:function(e){e.persist(),C.current.delta=e.pageX-b.scrollLeft,C.current.x=0,S(!0),e.preventDefault()},ref:g,className:i()("".concat(d,"-sticky-scroll-bar"),(0,ht.A)({},"".concat(d,"-sticky-scroll-bar-active"),A)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))};const KM=r.forwardRef(qM);const XM=function(e){return null};const GM=function(e){return null};var YM="rc-table",UM=[],QM={};function ZM(){return"No Data"}function JM(e,t){var n=(0,s.A)({rowKey:"key",prefixCls:YM,emptyText:ZM},e),o=n.prefixCls,l=n.className,c=n.rowClassName,f=n.style,p=n.data,m=n.rowKey,g=n.scroll,h=n.tableLayout,v=n.direction,b=n.title,y=n.footer,C=n.summary,x=n.caption,w=n.id,A=n.showHeader,S=n.components,$=n.emptyText,k=n.onRow,E=n.onHeaderRow,O=n.onScroll,I=n.internalHooks,M=n.transformColumns,N=n.internalRefs,z=n.tailor,P=n.getContainerWidth,j=n.sticky,R=n.rowHoverable,T=void 0===R||R,D=p||UM,B=!!D.length,L=I===HI;var H=r.useCallback((function(e,t){return(0,UI.A)(S,e)||t}),[S]),F=r.useMemo((function(){return"function"==typeof m?m:function(e){return e&&e[m]}}),[m]),_=H(["body"]),W=function(){var e=r.useState(-1),t=(0,vt.A)(e,2),n=t[0],o=t[1],i=r.useState(-1),a=(0,vt.A)(i,2),l=a[0],c=a[1];return[n,l,r.useCallback((function(e,t){o(e),c(t)}),[])]}(),V=(0,vt.A)(W,3),q=V[0],K=V[1],G=V[2],Y=HM(n,D,F),U=(0,vt.A)(Y,6),Q=U[0],Z=U[1],J=U[2],ee=U[3],te=U[4],ne=U[5],re=null==g?void 0:g.x,oe=r.useState(0),ie=(0,vt.A)(oe,2),ae=ie[0],le=ie[1],ce=LM((0,s.A)((0,s.A)((0,s.A)({},n),Q),{},{expandable:!!Q.expandedRowRender,columnTitle:Q.columnTitle,expandedKeys:J,getRowKey:F,onTriggerExpand:ne,expandIcon:ee,expandIconColumnIndex:Q.expandIconColumnIndex,direction:v,scrollWidth:L&&z&&"number"==typeof re?re:null,clientWidth:ae}),L?M:null),se=(0,vt.A)(ce,4),ue=se[0],de=se[1],fe=se[2],pe=se[3],ge=null!=fe?fe:re,he=r.useMemo((function(){return{columns:ue,flattenColumns:de}}),[ue,de]),ve=r.useRef(),be=r.useRef(),ye=r.useRef(),Ce=r.useRef();r.useImperativeHandle(t,(function(){return{nativeElement:ve.current,scrollTo:function(e){var t,n;if(ye.current instanceof HTMLElement){var r=e.index,o=e.top,i=e.key;if("number"!=typeof(n=o)||Number.isNaN(n)){var a,l=null!=i?i:F(D[r]);null===(a=ye.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===a||a.scrollIntoView()}else{var c;null===(c=ye.current)||void 0===c||c.scrollTo({top:o})}}else null!==(t=ye.current)&&void 0!==t&&t.scrollTo&&ye.current.scrollTo(e)}}}));var xe,we,Ae,Se=r.useRef(),$e=r.useState(!1),ke=(0,vt.A)($e,2),Ee=ke[0],Oe=ke[1],Ie=r.useState(!1),Me=(0,vt.A)(Ie,2),Ne=Me[0],ze=Me[1],Pe=FM(new Map),je=(0,vt.A)(Pe,2),Re=je[0],De=je[1],Be=ZI(de).map((function(e){return Re.get(e)})),Le=r.useMemo((function(){return Be}),[Be.join("_")]),He=WM(Le,de,v),Fe=g&&JI(g.y),_e=g&&JI(ge)||Boolean(Q.fixed),We=_e&&de.some((function(e){return e.fixed})),Ve=r.useRef(),qe=function(e,t){var n="object"===(0,u.A)(e)?e:{},o=n.offsetHeader,i=void 0===o?0:o,a=n.offsetSummary,l=void 0===a?0:a,c=n.offsetScroll,s=void 0===c?0:c,d=n.getContainer,f=(void 0===d?function(){return _M}:d)()||_M,p=!!e;return r.useMemo((function(){return{isSticky:p,stickyClassName:p?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:l,offsetScroll:s,container:f}}),[p,s,i,l,t,f])}(j,o),Ke=qe.isSticky,Xe=qe.offsetHeader,Ge=qe.offsetSummary,Ye=qe.offsetScroll,Ue=qe.stickyClassName,Qe=qe.container,Ze=r.useMemo((function(){return null==C?void 0:C(D)}),[C,D]),Je=(Fe||Ke)&&r.isValidElement(Ze)&&Ze.type===lM&&Ze.props.fixed;Fe&&(we={overflowY:B?"scroll":"auto",maxHeight:g.y}),_e&&(xe={overflowX:"auto"},Fe||(we={overflowY:"hidden"}),Ae={width:!0===ge?"auto":ge,minWidth:"100%"});var et=r.useCallback((function(e,t){(0,yn.A)(ve.current)&&De((function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n}))}),[]),tt=function(e){var t=(0,r.useRef)(e||null),n=(0,r.useRef)();function o(){window.clearTimeout(n.current)}return(0,r.useEffect)((function(){return o}),[]),[function(e){t.current=e,o(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(null),nt=(0,vt.A)(tt,2),rt=nt[0],ot=nt[1];function it(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var at=(0,Te.A)((function(e){var t,n=e.currentTarget,r=e.scrollLeft,o="rtl"===v,i="number"==typeof r?r:n.scrollLeft,a=n||QM;ot()&&ot()!==a||(rt(a),it(i,be.current),it(i,ye.current),it(i,Se.current),it(i,null===(t=Ve.current)||void 0===t?void 0:t.setScrollLeft));var l=n||be.current;if(l){var c=L&&z&&"number"==typeof ge?ge:l.scrollWidth,s=l.clientWidth;if(c===s)return Oe(!1),void ze(!1);o?(Oe(-i0)):(Oe(i>0),ze(i1?C-z:0,j=(0,s.A)((0,s.A)((0,s.A)({},E),p),{},{flex:"0 0 ".concat(z,"px"),width:"".concat(z,"px"),marginRight:P,pointerEvents:"auto"}),R=r.useMemo((function(){return g?N<=1:0===I||0===N||N>1}),[N,I,g]);R?j.visibility="hidden":g&&(j.height=null==h?void 0:h(N));var T=R?function(){return null}:v,D={};return 0!==N&&0!==I||(D.rowSpan=1,D.colSpan=1),r.createElement(nM,(0,a.A)({className:i()(y,m),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:u,prefixCls:t.prefixCls,key:A,record:f,index:c,renderIndex:d,dataIndex:b,render:T,shouldCellUpdate:n.shouldCellUpdate},S,{appendNode:$,additionalProps:(0,s.A)((0,s.A)({},k),{},{style:j},D)}))};var lN=["data","index","className","rowKey","style","extra","getHeight"],cN=r.forwardRef((function(e,t){var n,o=e.data,l=e.index,c=e.className,u=e.rowKey,d=e.style,f=e.extra,p=e.getHeight,m=(0,bt.A)(e,lN),g=o.record,h=o.indent,v=o.index,b=_I(YI,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),y=b.scrollX,C=b.flattenColumns,x=b.prefixCls,w=b.fixColumn,A=b.componentWidth,S=_I(oN,["getComponent"]).getComponent,$=gM(g,u,l,h),k=S(["body","row"],"div"),E=S(["body","cell"],"div"),O=$.rowSupportExpand,I=$.expanded,M=$.rowProps,N=$.expandedRowRender,z=$.expandedRowClassName;if(O&&I){var P=N(g,l,h+1,I),j=bM(z,g,l,h),R={};w&&(R={style:(0,ht.A)({},"--virtual-width","".concat(A,"px"))});var T="".concat(x,"-expanded-row-cell");n=r.createElement(k,{className:i()("".concat(x,"-expanded-row"),"".concat(x,"-expanded-row-level-").concat(h+1),j)},r.createElement(nM,{component:E,prefixCls:x,className:i()(T,(0,ht.A)({},"".concat(T,"-fixed"),w)),additionalProps:R},P))}var D=(0,s.A)((0,s.A)({},d),{},{width:y});f&&(D.position="absolute",D.pointerEvents="none");var B=r.createElement(k,(0,a.A)({},M,m,{"data-row-key":u,ref:O?null:t,className:i()(c,"".concat(x,"-row"),null==M?void 0:M.className,(0,ht.A)({},"".concat(x,"-row-extra"),f)),style:(0,s.A)((0,s.A)({},D),null==M?void 0:M.style)}),C.map((function(e,t){return r.createElement(aN,{key:t,component:E,rowInfo:$,column:e,colIndex:t,indent:h,index:l,renderIndex:v,record:g,inverse:f,getHeight:p})})));return O?r.createElement("div",{ref:t},B,n):B}));const sN=XI(cN);var uN=r.forwardRef((function(e,t){var n=e.data,o=e.onScroll,i=_I(YI,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),a=i.flattenColumns,l=i.onColumnResize,c=i.getRowKey,s=i.expandedKeys,d=i.prefixCls,f=i.childrenColumnName,p=i.scrollX,m=i.direction,g=_I(oN),h=g.sticky,v=g.scrollY,b=g.listItemHeight,y=g.getComponent,C=g.onScroll,x=r.useRef(),w=mM(n,f,s,c),A=r.useMemo((function(){var e=0;return a.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[a]),S=r.useMemo((function(){return A.map((function(e){return e[2]}))}),[A]);r.useEffect((function(){A.forEach((function(e){var t=(0,vt.A)(e,2),n=t[0],r=t[1];l(n,r)}))}),[A]),r.useImperativeHandle(t,(function(){var e,t={scrollTo:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=x.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=x.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo({left:e})}}),t}));var $=function(e,t){var n,r=null===(n=w[t])||void 0===n?void 0:n.record,o=e.onCell;if(o){var i,a=o(r,t);return null!==(i=null==a?void 0:a.rowSpan)&&void 0!==i?i:1}return 1},k=r.useMemo((function(){return{columnsOffset:S}}),[S]),E="".concat(d,"-tbody"),O=y(["body","wrapper"]),I={};return h&&(I.position="sticky",I.bottom=0,"object"===(0,u.A)(h)&&h.offsetScroll&&(I.bottom=h.offsetScroll)),r.createElement(iN.Provider,{value:k},r.createElement(Cr,{fullHeight:!1,ref:x,prefixCls:"".concat(E,"-virtual"),styles:{horizontalScrollBar:I},className:E,height:v,itemHeight:b||24,data:w,itemKey:function(e){return c(e.record)},component:O,scrollWidth:p,direction:m,onVirtualScroll:function(e){var t,n=e.x;o({currentTarget:null===(t=x.current)||void 0===t?void 0:t.nativeElement,scrollLeft:n})},onScroll:C,extraRender:function(e){var t=e.start,n=e.end,o=e.getSize,i=e.offsetY;if(n<0)return null;for(var l=a.filter((function(e){return 0===$(e,t)})),s=t,u=function(e){if(!(l=l.filter((function(t){return 0===$(t,e)}))).length)return s=e,1},d=t;d>=0&&!u(d);d-=1);for(var f=a.filter((function(e){return 1!==$(e,n)})),p=n,m=function(e){if(!(f=f.filter((function(t){return 1!==$(t,e)}))).length)return p=Math.max(e-1,n),1},g=n;g1}))&&h.push(e)},b=s;b<=p;b+=1)v(b);var y=h.map((function(e){var t=w[e],n=c(t.record,e),a=o(n);return r.createElement(sN,{key:e,data:t,rowKey:n,index:e,style:{top:-i+a.top},extra:!0,getHeight:function(t){var r=e+t-1,i=c(w[r].record,r),a=o(n,i);return a.bottom-a.top}})}));return y}},(function(e,t,n){var o=c(e.record,t);return r.createElement(sN,{data:e,rowKey:o,index:t,style:n.style})})))}));const dN=XI(uN);var fN=function(e,t){var n=t.ref,o=t.onScroll;return r.createElement(dN,{ref:n,data:e,onScroll:o})};function pN(e,t){var n=e.data,o=e.columns,l=e.scroll,c=e.sticky,u=e.prefixCls,d=void 0===u?YM:u,f=e.className,p=e.listItemHeight,m=e.components,g=e.onScroll,h=l||{},v=h.x,b=h.y;"number"!=typeof v&&(v=1),"number"!=typeof b&&(b=500);var y=(0,er._q)((function(e,t){return(0,UI.A)(m,e)||t})),C=(0,er._q)(g),x=r.useMemo((function(){return{sticky:c,scrollY:b,listItemHeight:p,getComponent:y,onScroll:C}}),[c,b,p,y,C]);return r.createElement(oN.Provider,{value:x},r.createElement(rN,(0,a.A)({},e,{className:i()(f,"".concat(d,"-virtual")),scroll:(0,s.A)((0,s.A)({},l),{},{x:v}),components:(0,s.A)((0,s.A)({},m),{},{body:null!=n&&n.length?fN:void 0}),columns:o,internalHooks:HI,tailor:!0,ref:t})))}var mN=r.forwardRef(pN);function gN(e){return KI(mN,e)}gN();const hN=e=>null,vN=e=>null;var bN=n(9417),yN=r.createContext(null),CN=function(e){for(var t=e.prefixCls,n=e.level,o=e.isStart,a=e.isEnd,l="".concat(t,"-indent-unit"),c=[],s=0;s=0&&n.splice(r,1),n}function IN(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function MN(e){return e.split("-")}function NN(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}(Tg(t,e).children),n}function zN(e){if(e.parent){var t=MN(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function PN(e,t,n,r,o,i,a,l,c,s){var u,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),m=p.top,g=p.height,h=(("rtl"===s?-1:1)*(((null==o?void 0:o.x)||0)-d)-12)/r,v=c.filter((function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),b=Tg(l,n.props.eventKey);if(f-1.5?i({dragNode:O,dropNode:I,dropPosition:1})?S=1:M=!1:i({dragNode:O,dropNode:I,dropPosition:0})?S=0:i({dragNode:O,dropNode:I,dropPosition:1})?S=1:M=!1:i({dragNode:O,dropNode:I,dropPosition:1})?S=1:M=!1,{dropPosition:S,dropLevelOffset:$,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:A,dropContainerKey:0===S?null:(null===(u=b.parent)||void 0===u?void 0:u.key)||null,dropAllowed:M}}function jN(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function RN(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,u.A)(e))return(0,c.Ay)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function TN(e,t){var n=new Set;function r(e){if(!n.has(e)){var o=Tg(t,e);if(o){n.add(e);var i=o.parent;o.node.disabled||i&&r(i.key)}}}return(e||[]).forEach((function(e){r(e)})),(0,Y.A)(n)}function DN(e){const[t,n]=(0,r.useState)(null);return[(0,r.useCallback)(((r,o,i)=>{const a=null!=t?t:r,l=Math.min(a||0,r),c=Math.max(a||0,r),s=o.slice(l,c+1).map((t=>e(t))),u=s.some((e=>!i.has(e))),d=[];return s.forEach((e=>{u?(i.has(e)||d.push(e),i.add(e)):(i.delete(e),d.push(e))})),n(u?c:null),d}),[t]),e=>{n(e)}]}const BN={},LN="SELECT_ALL",HN="SELECT_INVERT",FN="SELECT_NONE",_N=[],WN=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat((0,Y.A)(n),(0,Y.A)(WN(e,t[e]))))})),n},VN=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:o,defaultSelectedRowKeys:a,getCheckboxProps:l,onChange:c,onSelect:s,onSelectAll:u,onSelectInvert:d,onSelectNone:f,onSelectMultiple:p,columnWidth:m,type:g,selections:h,fixed:v,renderCell:b,hideSelectAll:y,checkStrictly:C=!0}=t||{},{prefixCls:x,data:w,pageData:A,getRecordByKey:S,getRowKey:$,expandType:k,childrenColumnName:E,locale:O,getPopupContainer:I}=e,M=(0,at.rJ)("Table"),[N,z]=DN((e=>e)),[P,j]=(0,yt.A)(o||a||_N,{value:o}),R=r.useRef(new Map),T=(0,r.useCallback)((e=>{if(n){const t=new Map;e.forEach((e=>{let n=S(e);!n&&R.current.has(e)&&(n=R.current.get(e)),t.set(e,n)})),R.current=t}}),[S,n]);r.useEffect((()=>{T(P)}),[P]);const D=(0,r.useMemo)((()=>WN(E,A)),[E,A]),{keyEntities:B}=(0,r.useMemo)((()=>{if(C)return{keyEntities:null};let e=w;if(n){const t=new Set(D.map(((e,t)=>$(e,t)))),n=Array.from(R.current).reduce(((e,n)=>{let[r,o]=n;return t.has(r)?e:e.concat(o)}),[]);e=[].concat((0,Y.A)(e),(0,Y.A)(n))}return Wg(e,{externalGetKey:$,childrenPropName:E})}),[w,$,C,E,n,D]),L=(0,r.useMemo)((()=>{const e=new Map;return D.forEach(((t,n)=>{const r=$(t,n),o=(l?l(t):null)||{};e.set(r,o)})),e}),[D,$,l]),H=(0,r.useCallback)((e=>{var t;return!!(null===(t=L.get($(e)))||void 0===t?void 0:t.disabled)}),[L,$]),[F,_]=(0,r.useMemo)((()=>{if(C)return[P||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=Yg(P,!0,B,H);return[e||[],t]}),[P,C,B,H]),W=(0,r.useMemo)((()=>{const e="radio"===g?F.slice(0,1):F;return new Set(e)}),[F,g]),V=(0,r.useMemo)((()=>"radio"===g?new Set:new Set(_)),[_,g]);r.useEffect((()=>{t||j(_N)}),[!!t]);const q=(0,r.useCallback)(((e,t)=>{let r,o;T(e),n?(r=e,o=e.map((e=>R.current.get(e)))):(r=[],o=[],e.forEach((e=>{const t=S(e);void 0!==t&&(r.push(e),o.push(t))}))),j(r),null==c||c(r,o,{type:t})}),[j,S,c,n]),K=(0,r.useCallback)(((e,t,n,r)=>{if(s){const o=n.map((e=>S(e)));s(S(e),t,o,r)}q(n,"single")}),[s,S,q]),X=(0,r.useMemo)((()=>{if(!h||y)return null;return(!0===h?[LN,HN,FN]:h).map((e=>e===LN?{key:"all",text:O.selectionAll,onSelect(){q(w.map(((e,t)=>$(e,t))).filter((e=>{const t=L.get(e);return!(null==t?void 0:t.disabled)||W.has(e)})),"all")}}:e===HN?{key:"invert",text:O.selectInvert,onSelect(){const e=new Set(W);A.forEach(((t,n)=>{const r=$(t,n),o=L.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))}));const t=Array.from(e);d&&(M.deprecated(!1,"onSelectInvert","onChange"),d(t)),q(t,"invert")}}:e===FN?{key:"none",text:O.selectNone,onSelect(){null==f||f(),q(Array.from(W).filter((e=>{const t=L.get(e);return null==t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i{var n;if(!t)return e.filter((e=>e!==BN));let o=(0,Y.A)(e);const a=new Set(W),l=D.map($).filter((e=>!L.get(e).disabled)),c=l.every((e=>a.has(e))),s=l.some((e=>a.has(e))),d=()=>{const e=[];c?l.forEach((t=>{a.delete(t),e.push(t)})):l.forEach((t=>{a.has(t)||(a.add(t),e.push(t))}));const t=Array.from(a);null==u||u(!c,t.map((e=>S(e))),e.map((e=>S(e)))),q(t,"all"),z(null)};let f,w,A;if("radio"!==g){let e;if(X){const t={getPopupContainer:I,items:X.map(((e,t)=>{const{key:n,text:r,onSelect:o}=e;return{key:null!=n?n:t,onClick:()=>{null==o||o(l)},label:r}}))};e=r.createElement("div",{className:`${x}-selection-extra`},r.createElement(pw,{menu:t,getPopupContainer:I},r.createElement("span",null,r.createElement(ri,null))))}const t=D.map(((e,t)=>{const n=$(e,t),r=L.get(n)||{};return Object.assign({checked:a.has(n)},r)})).filter((e=>{let{disabled:t}=e;return t})),n=!!t.length&&t.length===D.length,o=n&&t.every((e=>{let{checked:t}=e;return t})),i=n&&t.some((e=>{let{checked:t}=e;return t}));w=r.createElement(Lh,{checked:n?o:!!D.length&&c,indeterminate:n?!o&&i:!c&&s,onChange:d,disabled:0===D.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),f=!y&&r.createElement("div",{className:`${x}-selection`},w,e)}A="radio"===g?(e,t,n)=>{const o=$(t,n),i=a.has(o);return{node:r.createElement(sO,Object.assign({},L.get(o),{checked:i,onClick:e=>e.stopPropagation(),onChange:e=>{a.has(o)||K(o,!0,[o],e.nativeEvent)}})),checked:i}}:(e,t,n)=>{var o;const i=$(t,n),c=a.has(i),s=V.has(i),u=L.get(i);let d;return d="nest"===k?s:null!==(o=null==u?void 0:u.indeterminate)&&void 0!==o?o:s,{node:r.createElement(Lh,Object.assign({},u,{indeterminate:d,checked:c,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t,r=l.findIndex((e=>e===i)),o=F.some((e=>l.includes(e)));if(n&&C&&o){const e=N(r,l,a),t=Array.from(a);null==p||p(!c,t.map((e=>S(e))),e.map((e=>S(e)))),q(t,"multiple")}else{const e=F;if(C){const n=c?ON(e,i):IN(e,i);K(i,!c,n,t)}else{const n=Yg([].concat((0,Y.A)(e),[i]),!0,B,H),{checkedKeys:r,halfCheckedKeys:o}=n;let a=r;if(c){const e=new Set(r);e.delete(i),a=Yg(Array.from(e),{checked:!1,halfCheckedKeys:o},B,H).checkedKeys}K(i,!c,a,t)}}z(c?null:r)}})),checked:c}};if(!o.includes(BN))if(0===o.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[$M])||void 0===t?void 0:t.columnType)}))){const[e,...t]=o;o=[e,BN].concat((0,Y.A)(t))}else o=[BN].concat((0,Y.A)(o));const E=o.indexOf(BN);o=o.filter(((e,t)=>e!==BN||t===E));const O=o[E-1],M=o[E+1];let P=v;void 0===P&&(void 0!==(null==M?void 0:M.fixed)?P=M.fixed:void 0!==(null==O?void 0:O.fixed)&&(P=O.fixed)),P&&O&&"EXPAND_COLUMN"===(null===(n=O[$M])||void 0===n?void 0:n.columnType)&&void 0===O.fixed&&(O.fixed=P);const j=i()(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:h&&"checkbox"===g}),R={fixed:P,width:m,className:`${x}-selection-column`,title:(null==t?void 0:t.columnTitle)?"function"==typeof t.columnTitle?t.columnTitle(w):t.columnTitle:f,render:(e,t,n)=>{const{node:r,checked:o}=A(e,t,n);return b?b(o,t,n,r):r},onCell:t.onCell,[$M]:{className:j}};return o.map((e=>e===BN?R:e))}),[$,D,t,F,W,V,m,X,k,L,p,K,H]);return[G,W]};function qN(e,t){return(0,r.useImperativeHandle)(e,(()=>{const e=t(),{nativeElement:n}=e;return"undefined"!=typeof Proxy?new Proxy(n,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(o=e,(r=n)._antProxy=r._antProxy||{},Object.keys(o).forEach((e=>{if(!(e in r._antProxy)){const t=r[e];r._antProxy[e]=t,r[e]=o[e]}})),r);var r,o}))}const KN=function(e){return t=>{const{prefixCls:n,onExpand:o,record:a,expanded:l,expandable:c}=t,s=`${n}-row-expand-icon`;return r.createElement("button",{type:"button",onClick:e=>{o(a,e),e.stopPropagation()},className:i()(s,{[`${s}-spaced`]:!c,[`${s}-expanded`]:c&&l,[`${s}-collapsed`]:c&&!l}),"aria-label":l?e.collapse:e.expand,"aria-expanded":l})}};const XN=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function GN(e,t){return t?`${t}-${e}`:`${e}`}const YN=(e,t)=>"function"==typeof e?e(t):e;const UN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};var QN=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:UN}))};const ZN=r.forwardRef(QN);function JN(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var ez=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],tz=function(e,t){var n=e.className,o=e.style,l=e.motion,c=e.motionNodes,s=e.motionType,u=e.onMotionStart,d=e.onMotionEnd,f=e.active,p=e.treeNodeRequiredProps,m=(0,bt.A)(e,ez),g=r.useState(!0),h=(0,vt.A)(g,2),v=h[0],b=h[1],y=r.useContext(yN).prefixCls,C=c&&"hide"!==s;(0,Ct.A)((function(){c&&C!==v&&b(C)}),[c]);var x=r.useRef(!1),w=function(){c&&!x.current&&(x.current=!0,d())};!function(e,t){var n=r.useState(!1),o=(0,vt.A)(n,2),i=o[0],a=o[1];(0,Ct.A)((function(){if(i)return e(),function(){t()}}),[i]),(0,Ct.A)((function(){return a(!0),function(){a(!1)}}),[])}((function(){c&&u()}),w);return c?r.createElement(pe.Ay,(0,a.A)({ref:t,visible:v},l,{motionAppear:"show"===s,onVisibleChanged:function(e){C===e&&w()}}),(function(e,t){var n=e.className,o=e.style;return r.createElement("div",{ref:t,className:i()("".concat(y,"-treenode-motion"),n),style:o},c.map((function(e){var t=Object.assign({},(JN(e.data),e.data)),n=e.title,o=e.key,i=e.isStart,l=e.isEnd;delete t.children;var c=Vg(o,p);return r.createElement(EN,(0,a.A)({},t,c,{title:n,active:f,data:e.data,key:o,isStart:i,isEnd:l}))})))})):r.createElement(EN,(0,a.A)({domRef:t,className:n,style:o},m,{active:f}))};tz.displayName="MotionTreeNode";const nz=r.forwardRef(tz);function rz(e,t,n){var r=e.findIndex((function(e){return e.key===n})),o=e[r+1],i=t.findIndex((function(e){return e.key===n}));if(o){var a=t.findIndex((function(e){return e.key===o.key}));return t.slice(i+1,a)}return t.slice(i+1)}var oz=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],iz={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},az=function(){},lz="RC_TREE_MOTION_".concat(Math.random()),cz={key:lz},sz={key:lz,level:0,index:0,pos:"0",node:cz,nodes:[cz]},uz={parent:null,children:[],pos:sz.pos,data:cz,title:null,key:lz,isStart:[],isEnd:[]};function dz(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function fz(e){return Lg(e.key,e.pos)}var pz=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.data,i=(e.selectable,e.checkable,e.expandedKeys),l=e.selectedKeys,c=e.checkedKeys,s=e.loadedKeys,u=e.loadingKeys,d=e.halfCheckedKeys,f=e.keyEntities,p=e.disabled,m=e.dragging,g=e.dragOverNodeKey,h=e.dropPosition,v=e.motion,b=e.height,y=e.itemHeight,C=e.virtual,x=e.focusable,w=e.activeItem,A=e.focused,S=e.tabIndex,$=e.onKeyDown,k=e.onFocus,E=e.onBlur,O=e.onActiveChange,I=e.onListChangeStart,M=e.onListChangeEnd,N=(0,bt.A)(e,oz),z=r.useRef(null),P=r.useRef(null);r.useImperativeHandle(t,(function(){return{scrollTo:function(e){z.current.scrollTo(e)},getIndentWidth:function(){return P.current.offsetWidth}}}));var j=r.useState(i),R=(0,vt.A)(j,2),T=R[0],D=R[1],B=r.useState(o),L=(0,vt.A)(B,2),H=L[0],F=L[1],_=r.useState(o),W=(0,vt.A)(_,2),V=W[0],q=W[1],K=r.useState([]),X=(0,vt.A)(K,2),G=X[0],Y=X[1],U=r.useState(null),Q=(0,vt.A)(U,2),Z=Q[0],J=Q[1],ee=r.useRef(o);function te(){var e=ee.current;F(e),q(e),Y([]),J(null),M()}ee.current=o,(0,Ct.A)((function(){D(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n ").concat(t);return t}(w)),r.createElement("div",null,r.createElement("input",{style:iz,disabled:!1===x||p,tabIndex:!1!==x?S:null,onKeyDown:$,onFocus:k,onBlur:E,value:"",onChange:az,"aria-label":"for screen reader"})),r.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},r.createElement("div",{className:"".concat(n,"-indent")},r.createElement("div",{ref:P,className:"".concat(n,"-indent-unit")}))),r.createElement(Cr,(0,a.A)({},N,{data:ne,itemKey:fz,height:b,fullHeight:!1,virtual:C,itemHeight:y,prefixCls:"".concat(n,"-list"),ref:z,onVisibleChange:function(e){e.every((function(e){return fz(e)!==lz}))&&te()}}),(function(e){var t=e.pos,n=Object.assign({},(JN(e.data),e.data)),o=e.title,i=e.key,l=e.isStart,c=e.isEnd,s=Lg(i,t);delete n.key,delete n.children;var u=Vg(s,re);return r.createElement(nz,(0,a.A)({},n,u,{title:o,active:!!w&&i===w.key,pos:t,data:e.data,isStart:l,isEnd:c,motion:v,motionNodes:i===lz?G:null,motionType:Z,onMotionStart:I,onMotionEnd:te,treeNodeRequiredProps:re,onMouseMove:function(){O(null)}}))})))}));pz.displayName="NodeList";const mz=pz;var gz=function(e){(0,H.A)(n,e);var t=(0,F.A)(n);function n(){var e;(0,B.A)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a2&&void 0!==arguments[2]&&arguments[2],i=e.state,a=i.dragChildrenKeys,l=i.dropPosition,u=i.dropTargetKey,d=i.dropTargetPos;if(i.dropAllowed){var f=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==u){var p=(0,s.A)((0,s.A)({},Vg(u,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===u,data:Tg(e.state.keyEntities,u).node}),m=-1!==a.indexOf(u);(0,c.Ay)(!m,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var g=MN(d),h={event:t,node:qg(p),dragNode:e.dragNode?qg(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(g[g.length-1])};o||null==f||f(h),e.dragNode=null}}})),(0,ht.A)((0,bN.A)(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),(0,ht.A)((0,bN.A)(e),"triggerExpandActionExpand",(function(t,n){var r=e.state,o=r.expandedKeys,i=r.flattenNodes,a=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var c=i.filter((function(e){return e.key===l}))[0],u=qg((0,s.A)((0,s.A)({},Vg(l,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(a?ON(o,l):IN(o,l)),e.onNodeExpand(t,u)}})),(0,ht.A)((0,bN.A)(e),"onNodeClick",(function(t,n){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)})),(0,ht.A)((0,bN.A)(e),"onNodeDoubleClick",(function(t,n){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)})),(0,ht.A)((0,bN.A)(e),"onNodeSelect",(function(t,n){var r=e.state.selectedKeys,o=e.state,i=o.keyEntities,a=o.fieldNames,l=e.props,c=l.onSelect,s=l.multiple,u=n.selected,d=n[a.key],f=!u,p=(r=f?s?IN(r,d):[d]:ON(r,d)).map((function(e){var t=Tg(i,e);return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),null==c||c(r,{event:"select",selected:f,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})})),(0,ht.A)((0,bN.A)(e),"onNodeCheck",(function(t,n,r){var o,i=e.state,a=i.keyEntities,l=i.checkedKeys,c=i.halfCheckedKeys,s=e.props,u=s.checkStrictly,d=s.onCheck,f=n.key,p={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(u){var m=r?IN(l,f):ON(l,f);o={checked:m,halfChecked:ON(c,f)},p.checkedNodes=m.map((function(e){return Tg(a,e)})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:m})}else{var g=Yg([].concat((0,Y.A)(l),[f]),!0,a),h=g.checkedKeys,v=g.halfCheckedKeys;if(!r){var b=new Set(h);b.delete(f);var y=Yg(Array.from(b),{checked:!1,halfCheckedKeys:v},a);h=y.checkedKeys,v=y.halfCheckedKeys}o=h,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=v,h.forEach((function(e){var t=Tg(a,e);if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:h},!1,{halfCheckedKeys:v})}null==d||d(o,p)})),(0,ht.A)((0,bN.A)(e),"onNodeLoad",(function(t){var n,r=t.key,o=Tg(e.state.keyEntities,r);if(null==o||null===(n=o.children)||void 0===n||!n.length){var i=new Promise((function(n,o){e.setState((function(i){var a=i.loadedKeys,l=void 0===a?[]:a,s=i.loadingKeys,u=void 0===s?[]:s,d=e.props,f=d.loadData,p=d.onLoad;return f&&-1===l.indexOf(r)&&-1===u.indexOf(r)?(f(t).then((function(){var o=IN(e.state.loadedKeys,r);null==p||p(o,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:o}),e.setState((function(e){return{loadingKeys:ON(e.loadingKeys,r)}})),n()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:ON(e.loadingKeys,r)}})),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=10){var i=e.state.loadedKeys;(0,c.Ay)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:IN(i,r)}),n()}o(t)})),{loadingKeys:IN(u,r)}):null}))}));return i.catch((function(){})),i}})),(0,ht.A)((0,bN.A)(e),"onNodeMouseEnter",(function(t,n){var r=e.props.onMouseEnter;null==r||r({event:t,node:n})})),(0,ht.A)((0,bN.A)(e),"onNodeMouseLeave",(function(t,n){var r=e.props.onMouseLeave;null==r||r({event:t,node:n})})),(0,ht.A)((0,bN.A)(e),"onNodeContextMenu",(function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))})),(0,ht.A)((0,bN.A)(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,i=!0,a={};Object.keys(t).forEach((function(n){e.props.hasOwnProperty(n)?i=!1:(o=!0,a[n]=t[n])})),!o||n&&!i||e.setState((0,s.A)((0,s.A)({},a),r))}})),(0,ht.A)((0,bN.A)(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return(0,L.A)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,r=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:r}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t=this.state,n=t.focused,o=t.flattenNodes,l=t.keyEntities,c=t.draggingNodeKey,s=t.activeKey,d=t.dropLevelOffset,f=t.dropContainerKey,p=t.dropTargetKey,m=t.dropPosition,g=t.dragOverNodeKey,h=t.indent,v=this.props,b=v.prefixCls,y=v.className,C=v.style,x=v.showLine,w=v.focusable,A=v.tabIndex,S=void 0===A?0:A,$=v.selectable,k=v.showIcon,E=v.icon,O=v.switcherIcon,I=v.draggable,M=v.checkable,N=v.checkStrictly,z=v.disabled,P=v.motion,j=v.loadData,R=v.filterTreeNode,T=v.height,D=v.itemHeight,B=v.virtual,L=v.titleRender,H=v.dropIndicatorRender,F=v.onContextMenu,_=v.onScroll,W=v.direction,V=v.rootClassName,q=v.rootStyle,K=(0,me.A)(this.props,{aria:!0,data:!0});return I&&(e="object"===(0,u.A)(I)?I:"function"==typeof I?{nodeDraggable:I}:{}),r.createElement(yN.Provider,{value:{prefixCls:b,selectable:$,showIcon:k,icon:E,switcherIcon:O,draggable:e,draggingNodeKey:c,checkable:M,checkStrictly:N,disabled:z,keyEntities:l,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:p,dropPosition:m,dragOverNodeKey:g,indent:h,direction:W,dropIndicatorRender:H,loadData:j,filterTreeNode:R,titleRender:L,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}},r.createElement("div",{role:"tree",className:i()(b,y,V,(0,ht.A)((0,ht.A)((0,ht.A)({},"".concat(b,"-show-line"),x),"".concat(b,"-focused"),n),"".concat(b,"-active-focused"),null!==s)),style:q},r.createElement(mz,(0,a.A)({ref:this.listRef,prefixCls:b,style:C,data:o,disabled:z,selectable:$,checkable:!!M,motion:P,dragging:null!==c,height:T,itemHeight:D,virtual:B,focusable:w,focused:n,tabIndex:S,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:F,onScroll:_},this.getTreeNodeRequiredProps(),K))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o={prevProps:e};function i(t){return!r&&e.hasOwnProperty(t)||r&&r[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=Hg(e.fieldNames),o.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&((0,c.Ay)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=Fg(e.children)),n){o.treeData=n;var l=Wg(n,{fieldNames:a});o.keyEntities=(0,s.A)((0,ht.A)({},lz,sz),l.keyEntities)}var u,d=o.keyEntities||t.keyEntities;if(i("expandedKeys")||r&&i("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?TN(e.expandedKeys,d):e.expandedKeys;else if(!r&&e.defaultExpandAll){var f=(0,s.A)({},d);delete f[lz];var p=[];Object.keys(f).forEach((function(e){var t=f[e];t.children&&t.children.length&&p.push(t.key)})),o.expandedKeys=p}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?TN(e.defaultExpandedKeys,d):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var m=_g(n||t.treeData,o.expandedKeys||t.expandedKeys,a);o.flattenNodes=m}if((e.selectable&&(i("selectedKeys")?o.selectedKeys=jN(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=jN(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?u=RN(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?u=RN(e.defaultCheckedKeys)||{}:n&&(u=RN(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),u)){var g=u,h=g.checkedKeys,v=void 0===h?[]:h,b=g.halfCheckedKeys,y=void 0===b?[]:b;if(!e.checkStrictly){var C=Yg(v,!0,d);v=C.checkedKeys,y=C.halfCheckedKeys}o.checkedKeys=v,o.halfCheckedKeys=y}return i("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),n}(r.Component);(0,ht.A)(gz,"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:function(e){var t=e.dropPosition,n=e.dropLevelOffset,o=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*o;break;case 1:i.bottom=0,i.left=-n*o;break;case 0:i.bottom=0,i.left=o}return r.createElement("div",{style:i})},allowDrop:function(){return!0},expandAction:!1}),(0,ht.A)(gz,"TreeNode",EN);const hz=gz;const vz={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"};var bz=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:vz}))};const yz=r.forwardRef(bz);const Cz={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"};var xz=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:Cz}))};const wz=r.forwardRef(xz);const Az={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"};var Sz=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:Az}))};const $z=r.forwardRef(Sz);const kz={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"};var Ez=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:kz}))};const Oz=r.forwardRef(Ez),Iz=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:o,motionDurationMid:i,borderRadius:a,controlItemBgHover:l}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${i}`,content:'""',borderRadius:a},"&:hover:before":{background:l}},[`${t}-switcher`]:{marginInlineEnd:0},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:o,zIndex:1},[`${t}-node-content-wrapper`]:{color:o,background:"transparent","&:before, &:hover:before":{background:r}}}}}},Mz=new he.Mo("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Nz=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),zz=(e,t)=>({[`.${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,he.zA)(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Pz=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,indentSize:a,nodeSelectedBg:l,nodeHoverBg:c,colorTextQuaternary:s}=t,u=t.marginXXS;return{[n]:Object.assign(Object.assign({},(0,ve.dF)(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},(0,ve.jk)(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Mz,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:(0,he.zA)(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:s},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},Nz(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal(),"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-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(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:u,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},zz(e,t)),{"&:hover":{backgroundColor:c},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,he.zA)(t.calc(i).div(2).equal())} !important`}})}},jz=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),i=(0,Ue.oX)(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[Pz(e,i),Iz(i)]},Rz=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e;return{titleHeight:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Tz=(0,J.OF)("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:hh(`${n}-checkbox`,e)},jz(n,e),(0,us.A)(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},Rz(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}));const Dz=function(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:i,direction:a="ltr"}=e,l="ltr"===a?"left":"right",c="ltr"===a?"right":"left",s={[l]:-n*i+4,[c]:0};switch(t){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[l]=i+4}return r.createElement("div",{style:s,className:`${o}-drop-indicator`})};const Bz={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"};var Lz=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:Bz}))};const Hz=r.forwardRef(Lz);const Fz={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"};var _z=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:Fz}))};const Wz=r.forwardRef(_z);const Vz={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"};var qz=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:Vz}))};const Kz=r.forwardRef(qz),Xz=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:o,showLine:a,switcherLoadingIcon:l}=e,{isLeaf:c,expanded:s,loading:u}=o;if(u)return r.isValidElement(l)?l:r.createElement(oi.A,{className:`${t}-switcher-loading-icon`});let d;if(a&&"object"==typeof a&&(d=a.showLeafIcon),c){if(!a)return null;if("boolean"!=typeof d&&d){const e="function"==typeof d?d(o):d,n=`${t}-switcher-line-custom-icon`;return r.isValidElement(e)?(0,ge.Ob)(e,{className:i()(e.props.className||"",n)}):e}return d?r.createElement(yz,{className:`${t}-switcher-line-icon`}):r.createElement("span",{className:`${t}-switcher-leaf-line`})}const f=`${t}-switcher-icon`,p="function"==typeof n?n(o):n;return r.isValidElement(p)?(0,ge.Ob)(p,{className:i()(p.props.className||"",f)}):void 0!==p?p:a?s?r.createElement(Wz,{className:`${t}-switcher-line-icon`}):r.createElement(Kz,{className:`${t}-switcher-line-icon`}):r.createElement(Hz,{className:f})},Gz=r.forwardRef(((e,t)=>{var n;const{getPrefixCls:o,direction:a,virtual:l,tree:c}=r.useContext(Z.ConfigContext),{prefixCls:s,className:u,showIcon:d=!1,showLine:f,switcherIcon:p,switcherLoadingIcon:m,blockNode:g=!1,children:h,checkable:v=!1,selectable:b=!0,draggable:y,motion:C,style:x}=e,w=o("tree",s),A=o(),S=null!=C?C:Object.assign(Object.assign({},(0,Hr.A)(A)),{motionAppear:!1}),$=Object.assign(Object.assign({},e),{checkable:v,selectable:b,showIcon:d,motion:S,blockNode:g,showLine:Boolean(f),dropIndicatorRender:Dz}),[k,E,O]=Tz(w),[,I]=(0,qr.Ay)(),M=I.paddingXS/2+((null===(n=I.Tree)||void 0===n?void 0:n.titleHeight)||I.controlHeightSM),N=r.useMemo((()=>{if(!y)return!1;let e={};switch(typeof y){case"function":e.nodeDraggable=y;break;case"object":e=Object.assign({},y)}return!1!==e.icon&&(e.icon=e.icon||r.createElement(Oz,null)),e}),[y]);return k(r.createElement(hz,Object.assign({itemHeight:M,ref:t,virtual:l},$,{style:Object.assign(Object.assign({},null==c?void 0:c.style),x),prefixCls:w,className:i()({[`${w}-icon-hide`]:!d,[`${w}-block-node`]:g,[`${w}-unselectable`]:!b,[`${w}-rtl`]:"rtl"===a},null==c?void 0:c.className,u,E,O),direction:a,checkable:v?r.createElement("span",{className:`${w}-checkbox-inner`}):v,selectable:b,switcherIcon:e=>r.createElement(Xz,{prefixCls:w,switcherIcon:p,switcherLoadingIcon:m,treeNodeProps:e,showLine:f}),draggable:N}),h))}));const Yz=Gz;function Uz(e,t,n){const{key:r,children:o}=n;e.forEach((function(e){const i=e[r],a=e[o];!1!==t(i,e)&&Uz(a||[],t,n)}))}function Qz(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:i}=e;const a=[];let l=0;if(r&&r===o)return[r];if(!r||!o)return[];return Uz(t,(e=>{if(2===l)return!1;if(function(e){return e===r||e===o}(e)){if(a.push(e),0===l)l=1;else if(1===l)return l=2,!1}else 1===l&&a.push(e);return n.includes(e)}),Hg(i)),a}function Zz(e,t,n){const r=(0,Y.A)(t),o=[];return Uz(e,((e,t)=>{const n=r.indexOf(e);return-1!==n&&(o.push(t),r.splice(n,1)),!!r.length}),Hg(n)),o}var Jz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defaultExpandAll:n,defaultExpandParent:o,defaultExpandedKeys:a}=e,l=Jz(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const c=r.useRef(),s=r.useRef(),[u,d]=r.useState(l.selectedKeys||l.defaultSelectedKeys||[]),[f,p]=r.useState((()=>(()=>{const{keyEntities:e}=Wg(tP(l));let t;return t=n?Object.keys(e):o?TN(l.expandedKeys||a||[],e):l.expandedKeys||a||[],t})()));r.useEffect((()=>{"selectedKeys"in l&&d(l.selectedKeys)}),[l.selectedKeys]),r.useEffect((()=>{"expandedKeys"in l&&p(l.expandedKeys)}),[l.expandedKeys]);const{getPrefixCls:m,direction:g}=r.useContext(Z.ConfigContext),{prefixCls:h,className:v,showIcon:b=!0,expandAction:y="click"}=l,C=Jz(l,["prefixCls","className","showIcon","expandAction"]),x=m("tree",h),w=i()(`${x}-directory`,{[`${x}-directory-rtl`]:"rtl"===g},v);return r.createElement(Yz,Object.assign({icon:eP,ref:t,blockNode:!0},C,{showIcon:b,expandAction:y,prefixCls:x,className:w,expandedKeys:f,selectedKeys:u,onSelect:(e,t)=>{var n;const{multiple:r,fieldNames:o}=l,{node:i,nativeEvent:a}=t,{key:u=""}=i,p=tP(l),m=Object.assign(Object.assign({},t),{selected:!0}),g=(null==a?void 0:a.ctrlKey)||(null==a?void 0:a.metaKey),h=null==a?void 0:a.shiftKey;let v;r&&g?(v=e,c.current=u,s.current=v,m.selectedNodes=Zz(p,v,o)):r&&h?(v=Array.from(new Set([].concat((0,Y.A)(s.current||[]),(0,Y.A)(Qz({treeData:p,expandedKeys:f,startKey:u,endKey:c.current,fieldNames:o}))))),m.selectedNodes=Zz(p,v,o)):(v=[u],c.current=u,s.current=v,m.selectedNodes=Zz(p,v,o)),null===(n=l.onSelect)||void 0===n||n.call(l,v,m),"selectedKeys"in l||d(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in l||p(e),null===(n=l.onExpand)||void 0===n?void 0:n.call(l,e,t)}}))};const rP=r.forwardRef(nP),oP=Yz;oP.DirectoryTree=rP,oP.TreeNode=EN;const iP=oP,aP=e=>{const{value:t,filterSearch:n,tablePrefixCls:o,locale:i,onChange:a}=e;return n?r.createElement("div",{className:`${o}-filter-dropdown-search`},r.createElement(cy,{prefix:r.createElement(li,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null},lP=e=>{const{keyCode:t}=e;t===kt.A.ENTER&&e.stopPropagation()},cP=r.forwardRef(((e,t)=>r.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:lP,ref:t},e.children)));const sP=cP;function uP(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat((0,Y.A)(t),(0,Y.A)(uP(r))))})),t}function dP(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function fP(e){let{filters:t,prefixCls:n,filteredKeys:o,filterMultiple:i,searchValue:a,filterSearch:l}=e;return t.map(((e,t)=>{const c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:fP({filters:e.children,prefixCls:n,filteredKeys:o,filterMultiple:i,searchValue:a,filterSearch:l})};const s=i?Lh:sO,u={key:void 0!==e.value?c:t,label:r.createElement(r.Fragment,null,r.createElement(s,{checked:o.includes(c)}),r.createElement("span",null,e.text))};return a.trim()?"function"==typeof l?l(a,e)?u:null:dP(a,e.text)?u:null:u}))}function pP(e){return e||[]}const mP=e=>{var t,n,o,a;const{tablePrefixCls:l,prefixCls:c,column:s,dropdownPrefixCls:u,columnKey:d,filterOnClose:f,filterMultiple:p,filterMode:m="menu",filterSearch:g=!1,filterState:h,triggerFilter:v,locale:b,children:y,getPopupContainer:C,rootClassName:x}=e,{filterResetToDefaultFilteredValue:w,defaultFilteredValue:A,filterDropdownProps:S={},filterDropdownOpen:$,filterDropdownVisible:k,onFilterDropdownVisibleChange:E,onFilterDropdownOpenChange:O}=s,[I,M]=r.useState(!1),N=!(!h||!(null===(t=h.filteredKeys)||void 0===t?void 0:t.length)&&!h.forceFiltered),z=e=>{var t;M(e),null===(t=S.onOpenChange)||void 0===t||t.call(S,e),null==O||O(e),null==E||E(e)};const P=null!==(a=null!==(o=null!==(n=S.open)&&void 0!==n?n:$)&&void 0!==o?o:k)&&void 0!==a?a:I,j=null==h?void 0:h.filteredKeys,[R,T]=function(e){const t=r.useRef(e),n=(0,WO.A)();return[()=>t.current,e=>{t.current=e,n()}]}(pP(j)),D=e=>{let{selectedKeys:t}=e;T(t)},B=(e,t)=>{let{node:n,checked:r}=t;D(p?{selectedKeys:e}:{selectedKeys:r&&n.key?[n.key]:[]})};r.useEffect((()=>{I&&D({selectedKeys:pP(j)})}),[j]);const[L,H]=r.useState([]),F=e=>{H(e)},[_,W]=r.useState(""),V=e=>{const{value:t}=e.target;W(t)};r.useEffect((()=>{I||W("")}),[I]);const q=e=>{const t=(null==e?void 0:e.length)?e:null;return null!==t||h&&h.filteredKeys?(0,dl.A)(t,null==h?void 0:h.filteredKeys,!0)?null:void v({column:s,key:d,filteredKeys:t}):null},K=()=>{z(!1),q(R())},X=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&q([]),t&&z(!1),W(""),T(w?(A||[]).map((e=>String(e))):[])},G=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&z(!1),q(R())},Y=i()({[`${u}-menu-without-submenu`]:(U=s.filters||[],!U.some((e=>{let{children:t}=e;return t})))});var U;const Q=e=>{if(e.target.checked){const e=uP(null==s?void 0:s.filters).map((e=>String(e)));T(e)}else T([])},J=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),r={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(r.children=J({filters:e.children})),r}))},ee=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>ee(e))))||[]})};let te;const{direction:ne,renderEmpty:re}=r.useContext(Z.ConfigContext);if("function"==typeof s.filterDropdown)te=s.filterDropdown({prefixCls:`${u}-custom`,setSelectedKeys:e=>D({selectedKeys:e}),selectedKeys:R(),confirm:G,clearFilters:X,filters:s.filters,visible:P,close:()=>{z(!1)}});else if(s.filterDropdown)te=s.filterDropdown;else{const e=R()||[],t=()=>{var t;const n=null!==(t=null==re?void 0:re("Table.filter"))&&void 0!==t?t:r.createElement(eo,{image:eo.PRESENTED_IMAGE_SIMPLE,description:b.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if(0===(s.filters||[]).length)return n;if("tree"===m)return r.createElement(r.Fragment,null,r.createElement(aP,{filterSearch:g,value:_,onChange:V,tablePrefixCls:l,locale:b}),r.createElement("div",{className:`${l}-filter-dropdown-tree`},p?r.createElement(Lh,{checked:e.length===uP(s.filters).length,indeterminate:e.length>0&&e.length"function"==typeof g?g(_,ee(e)):dP(_,e.title):void 0})));const o=fP({filters:s.filters||[],filterSearch:g,prefixCls:c,filteredKeys:R(),filterMultiple:p,searchValue:_}),i=o.every((e=>null===e));return r.createElement(r.Fragment,null,r.createElement(aP,{filterSearch:g,value:_,onChange:V,tablePrefixCls:l,locale:b}),i?n:r.createElement(Is,{selectable:!0,multiple:p,prefixCls:`${u}-menu`,className:Y,onSelect:D,onDeselect:D,selectedKeys:e,getPopupContainer:C,openKeys:L,onOpenChange:F,items:o}))},n=()=>w?(0,dl.A)((A||[]).map((e=>String(e))),e,!0):0===e.length;te=r.createElement(r.Fragment,null,t(),r.createElement("div",{className:`${c}-dropdown-btns`},r.createElement(Qs.Ay,{type:"link",size:"small",disabled:n(),onClick:()=>X()},b.filterReset),r.createElement(Qs.Ay,{type:"primary",size:"small",onClick:K},b.filterConfirm)))}s.filterDropdown&&(te=r.createElement(cs,{selectable:void 0},te)),te=r.createElement(sP,{className:`${c}-dropdown`},te);const oe=g$({trigger:["click"],placement:"rtl"===ne?"bottomLeft":"bottomRight",children:(()=>{let e;return e="function"==typeof s.filterIcon?s.filterIcon(N):s.filterIcon?s.filterIcon:r.createElement(ZN,null),r.createElement("span",{role:"button",tabIndex:-1,className:i()(`${c}-trigger`,{active:N}),onClick:e=>{e.stopPropagation()}},e)})(),getPopupContainer:C},Object.assign(Object.assign({},S),{rootClassName:i()(x,S.rootClassName),open:P,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==j&&T(pP(j)),z(e),e||s.filterDropdown||!f||K())},dropdownRender:()=>"function"==typeof(null==S?void 0:S.dropdownRender)?S.dropdownRender(te):te}));return r.createElement("div",{className:`${c}-column`},r.createElement("span",{className:`${l}-column-title`},y),r.createElement(pw,Object.assign({},oe)))},gP=(e,t,n)=>{let r=[];return(e||[]).forEach(((e,o)=>{var i;const a=GN(o,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(i=null==t?void 0:t.map(String))&&void 0!==i?i:t),r.push({column:e,key:XN(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:XN(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat((0,Y.A)(r),(0,Y.A)(gP(e.children,t,a))))})),r};function hP(e,t,n,o,i,a,l,c,s){return n.map(((n,u)=>{const d=GN(u,c),{filterOnClose:f=!0,filterMultiple:p=!0,filterMode:m,filterSearch:g}=n;let h=n;if(h.filters||h.filterDropdown){const c=XN(h,d),u=o.find((e=>{let{key:t}=e;return c===t}));h=Object.assign(Object.assign({},h),{title:o=>r.createElement(mP,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:c,filterState:u,filterOnClose:f,filterMultiple:p,filterMode:m,filterSearch:g,triggerFilter:a,locale:i,getPopupContainer:l,rootClassName:s},YN(n.title,o))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:hP(e,t,h.children,o,i,a,l,d,s)})),h}))}const vP=e=>{const t={};return e.forEach((e=>{let{key:n,filteredKeys:r,column:o}=e;const i=n,{filters:a,filterDropdown:l}=o;if(l)t[i]=r||null;else if(Array.isArray(r)){const e=uP(a);t[i]=e.filter((e=>r.includes(String(e))))}else t[i]=null})),t},bP=(e,t,n)=>t.reduce(((e,r)=>{const{column:{onFilter:o,filters:i},filteredKeys:a}=r;return o&&a&&a.length?e.map((e=>Object.assign({},e))).filter((e=>a.some((r=>{const a=uP(i),l=a.findIndex((e=>String(e)===String(r))),c=-1!==l?a[l]:r;return e[n]&&(e[n]=bP(e[n],t,n)),o(c,e)})))):e}),e),yP=e=>e.flatMap((e=>"children"in e?[e].concat((0,Y.A)(yP(e.children||[]))):[e])),CP=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:o,onFilterChange:i,getPopupContainer:a,locale:l,rootClassName:c}=e,s=((0,at.rJ)("Table"),r.useMemo((()=>yP(o||[])),[o])),[u,d]=r.useState((()=>gP(s,!0))),f=r.useMemo((()=>{const e=gP(s,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:r}=e;void 0!==r?t=!1:n=!1})),t){const e=(s||[]).map(((e,t)=>XN(e,GN(t))));return u.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=s[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return e}),[s,u]),p=r.useMemo((()=>vP(f)),[f]),m=e=>{const t=f.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),d(t),i(vP(t),t)};return[e=>hP(t,n,e,f,l,m,a,void 0,c),f,p]},xP=(e,t,n)=>{const o=r.useRef({});return[function(r){var i;if(!o.current||o.current.data!==e||o.current.childrenColumnName!==t||o.current.getRowKey!==n){const a=new Map;function l(e){e.forEach(((e,r)=>{const o=n(e,r);a.set(o,e),e&&"object"==typeof e&&t in e&&l(e[t]||[])}))}l(e),o.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return null===(i=o.current.kvMap)||void 0===i?void 0:i.get(r)}]};var wP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:AP}))),s=g$(l,a,{total:i>0?i:e}),u=Math.ceil((i||e)/s.pageSize);s.current>u&&(s.current=u||1);const d=(e,t)=>{c({current:null!=e?e:1,pageSize:t||s.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:(e,r)=>{var o;n&&(null===(o=n.onChange)||void 0===o||o.call(n,e,r)),d(e,r),t(e,r||(null==s?void 0:s.pageSize))}}),d]};const $P={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:"outlined"};var kP=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:$P}))};const EP=r.forwardRef(kP);const OP={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};var IP=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:OP}))};const MP=r.forwardRef(IP),NP="ascend",zP="descend",PP=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,jP=e=>"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare,RP=(e,t,n)=>{let r=[];const o=(e,t)=>{r.push({column:e,key:XN(e,t),multiplePriority:PP(e),sortOrder:e.sortOrder})};return(e||[]).forEach(((e,i)=>{const a=GN(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat((0,Y.A)(r),(0,Y.A)(RP(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:XN(e,a),multiplePriority:PP(e),sortOrder:e.defaultSortOrder}))})),r},TP=(e,t,n,o,a,l,c,s)=>{const u=(t||[]).map(((t,u)=>{const d=GN(u,s);let f=t;if(f.sorter){const s=f.sortDirections||a,u=void 0===f.showSorterTooltip?c:f.showSorterTooltip,p=XN(f,d),m=n.find((e=>{let{key:t}=e;return t===p})),g=m?m.sortOrder:null,h=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(s,g);let v;if(t.sortIcon)v=t.sortIcon({sortOrder:g});else{const t=s.includes(NP)&&r.createElement(MP,{className:i()(`${e}-column-sorter-up`,{active:g===NP})}),n=s.includes(zP)&&r.createElement(EP,{className:i()(`${e}-column-sorter-down`,{active:g===zP})});v=r.createElement("span",{className:i()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},r.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:b,triggerAsc:y,triggerDesc:C}=l||{};let x=b;h===zP?x=C:h===NP&&(x=y);const w="object"==typeof u?Object.assign({title:x},u):{title:x};f=Object.assign(Object.assign({},f),{className:i()(f.className,{[`${e}-column-sort`]:g}),title:n=>{const o=`${e}-column-sorters`,i=r.createElement("span",{className:`${e}-column-title`},YN(t.title,n)),a=r.createElement("div",{className:o},i,v);return u?"boolean"!=typeof u&&"sorter-icon"===(null==u?void 0:u.target)?r.createElement("div",{className:`${o} ${e}-column-sorters-tooltip-target-sorter`},i,r.createElement(da,Object.assign({},w),v)):r.createElement(da,Object.assign({},w),a):a},onHeaderCell:n=>{var r;const a=(null===(r=t.onHeaderCell)||void 0===r?void 0:r.call(t,n))||{},l=a.onClick,c=a.onKeyDown;a.onClick=e=>{o({column:t,key:p,sortOrder:h,multiplePriority:PP(t)}),null==l||l(e)},a.onKeyDown=e=>{e.keyCode===kt.A.ENTER&&(o({column:t,key:p,sortOrder:h,multiplePriority:PP(t)}),null==c||c(e))};const s=((e,t)=>{const n=YN(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n})(t.title,{}),u=null==s?void 0:s.toString();return g?a["aria-sort"]="ascend"===g?"ascending":"descending":a["aria-label"]=u||"",a.className=i()(a.className,`${e}-column-has-sorters`),a.tabIndex=0,t.ellipsis&&(a.title=(null!=s?s:"").toString()),a}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:TP(e,f.children,n,o,a,l,c,d)})),f}));return u},DP=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},BP=e=>{const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(DP);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},DP(e[t])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},LP=(e,t,n)=>{const r=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),o=e.slice(),i=r.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return jP(t)&&n}));return i.length?o.sort(((e,t)=>{for(let n=0;n{const r=e[n];return r?Object.assign(Object.assign({},e),{[n]:LP(r,t,n)}):e})):o},HP=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:o,tableLocale:i,showSorterTooltip:a,onSorterChange:l}=e,[c,s]=r.useState(RP(n,!0)),u=(e,t)=>{const n=[];return e.forEach(((e,r)=>{const o=GN(r,t);if(n.push(XN(e,o)),Array.isArray(e.children)){const t=u(e.children,o);n.push.apply(n,(0,Y.A)(t))}})),n},d=r.useMemo((()=>{let e=!0;const t=RP(n,!1);if(!t.length){const e=u(n);return c.filter((t=>{let{key:n}=t;return e.includes(n)}))}const r=[];function o(t){e?r.push(t):r.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach((t=>{null===i?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),o(t))})),r}),[n,c]),f=r.useMemo((()=>{var e,t;const n=d.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:n,sortColumn:null===(e=n[0])||void 0===e?void 0:e.column,sortOrder:null===(t=n[0])||void 0===t?void 0:t.order}}),[d]),p=e=>{let t;t=!1!==e.multiplePriority&&d.length&&!1!==d[0].multiplePriority?[].concat((0,Y.A)(d.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],s(t),l(BP(t),t)};return[e=>TP(t,e,d,p,o,i,a),d,f,()=>BP(d)]},FP=(e,t)=>e.map((e=>{const n=Object.assign({},e);return n.title=YN(e.title,t),"children"in n&&(n.children=FP(n.children,t)),n})),_P=e=>{const t=r.useCallback((t=>FP(t,e)),[e]);return[t]},WP=tN(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),VP=gN(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}));var qP=n(4812);const KP=[],XP=(e,t)=>{var n,o;const{prefixCls:a,className:l,rootClassName:c,style:s,size:u,bordered:d,dropdownPrefixCls:f,dataSource:p,pagination:m,rowSelection:g,rowKey:h="key",rowClassName:v,columns:b,children:y,childrenColumnName:C,onChange:x,getPopupContainer:w,loading:A,expandIcon:S,expandable:$,expandedRowRender:k,expandIconColumnIndex:E,indentSize:O,scroll:I,sortDirections:M,locale:N,showSorterTooltip:z={target:"full-header"},virtual:P}=e;(0,at.rJ)("Table");const j=r.useMemo((()=>b||TM(y)),[b,y]),R=r.useMemo((()=>j.some((e=>e.responsive))),[j]),T=(0,Ai.A)(R),D=r.useMemo((()=>{const e=new Set(Object.keys(T).filter((e=>T[e])));return j.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[j,T]),B=(0,G.A)(e,["className","style","columns"]),{locale:L=VA.A,direction:H,table:F,renderEmpty:_,getPrefixCls:W,getPopupContainer:V}=r.useContext(Z.ConfigContext),q=(0,ro.A)(u),K=Object.assign(Object.assign({},L.Table),N),X=p||KP,Y=W("table",a),U=W("dropdown",f),[,Q]=(0,qr.Ay)(),J=(0,Xe.A)(Y),[ee,te,ne]=(0,qP.default)(Y,J),re=Object.assign(Object.assign({childrenColumnName:C,expandIconColumnIndex:E},$),{expandIcon:null!==(n=null==$?void 0:$.expandIcon)&&void 0!==n?n:null===(o=null==F?void 0:F.expandable)||void 0===o?void 0:o.expandIcon}),{childrenColumnName:oe="children"}=re,ie=r.useMemo((()=>X.some((e=>null==e?void 0:e[oe]))?"nest":k||(null==$?void 0:$.expandedRowRender)?"row":null),[X]),ae={body:r.useRef()},le=function(e){return(t,n)=>{const r=t.querySelector(`.${e}-container`);let o=n;if(r){const e=getComputedStyle(r);o=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return o}}(Y),ce=r.useRef(null),se=r.useRef(null);qN(t,(()=>Object.assign(Object.assign({},se.current),{nativeElement:ce.current})));const ue=r.useMemo((()=>"function"==typeof h?h:e=>null==e?void 0:e[h]),[h]),[de]=xP(X,oe,ue),fe={},pe=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var r,o,i,a;const l=Object.assign(Object.assign({},fe),e);n&&(null===(r=fe.resetPagination)||void 0===r||r.call(fe),(null===(o=l.pagination)||void 0===o?void 0:o.current)&&(l.pagination.current=1),m&&(null===(i=m.onChange)||void 0===i||i.call(m,1,null===(a=l.pagination)||void 0===a?void 0:a.pageSize))),I&&!1!==I.scrollToFirstRowOnChange&&ae.body.current&&Ke(0,{getContainer:()=>ae.body.current}),null==x||x(l.pagination,l.filters,l.sorter,{currentDataSource:bP(LP(X,l.sorterStates,oe),l.filterStates,oe),action:t})},[me,ge,he,ve]=HP({prefixCls:Y,mergedColumns:D,onSorterChange:(e,t)=>{pe({sorter:e,sorterStates:t},"sort",!1)},sortDirections:M||["ascend","descend"],tableLocale:K,showSorterTooltip:z}),be=r.useMemo((()=>LP(X,ge,oe)),[X,ge]);fe.sorter=ve(),fe.sorterStates=ge;const[ye,Ce,xe]=CP({prefixCls:Y,locale:K,dropdownPrefixCls:U,mergedColumns:D,onFilterChange:(e,t)=>{pe({filters:e,filterStates:t},"filter",!0)},getPopupContainer:w||V,rootClassName:i()(c,J)}),we=bP(be,Ce,oe);fe.filters=xe,fe.filterStates=Ce;const Ae=r.useMemo((()=>{const e={};return Object.keys(xe).forEach((t=>{null!==xe[t]&&(e[t]=xe[t])})),Object.assign(Object.assign({},he),{filters:e})}),[he,xe]),[Se]=_P(Ae),[$e,ke]=SP(we.length,((e,t)=>{pe({pagination:Object.assign(Object.assign({},fe.pagination),{current:e,pageSize:t})},"paginate")}),m);fe.pagination=!1===m?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},r=t&&"object"==typeof t?t:{};return Object.keys(r).forEach((t=>{const r=e[t];"function"!=typeof r&&(n[t]=r)})),n}($e,m),fe.resetPagination=ke;const Ee=r.useMemo((()=>{if(!1===m||!$e.pageSize)return we;const{current:e=1,total:t,pageSize:n=AP}=$e;return we.lengthn?we.slice((e-1)*n,e*n):we:we.slice((e-1)*n,e*n)}),[!!m,we,null==$e?void 0:$e.current,null==$e?void 0:$e.pageSize,null==$e?void 0:$e.total]),[Oe,Ie]=VN({prefixCls:Y,data:we,pageData:Ee,getRowKey:ue,getRecordByKey:de,expandType:ie,childrenColumnName:oe,locale:K,getPopupContainer:w||V},g);re.__PARENT_RENDER_ICON__=re.expandIcon,re.expandIcon=re.expandIcon||S||KN(K),"nest"===ie&&void 0===re.expandIconColumnIndex?re.expandIconColumnIndex=g?1:0:re.expandIconColumnIndex>0&&g&&(re.expandIconColumnIndex-=1),"number"!=typeof re.indentSize&&(re.indentSize="number"==typeof O?O:15);const Me=r.useCallback((e=>Se(Oe(ye(me(e))))),[me,ye,Oe]);let Ne,ze,Pe;if(!1!==m&&(null==$e?void 0:$e.total)){let e;e=$e.size?$e.size:"small"===q||"middle"===q?"small":void 0;const t=t=>r.createElement(L$,Object.assign({},$e,{className:i()(`${Y}-pagination ${Y}-pagination-${t}`,$e.className),size:e})),n="rtl"===H?"left":"right",{position:o}=$e;if(null!==o&&Array.isArray(o)){const e=o.find((e=>e.includes("top"))),r=o.find((e=>e.includes("bottom"))),i=o.every((e=>"none"==`${e}`));e||r||i||(ze=t(n)),e&&(Ne=t(e.toLowerCase().replace("top",""))),r&&(ze=t(r.toLowerCase().replace("bottom","")))}else ze=t(n)}"boolean"==typeof A?Pe={spinning:A}:"object"==typeof A&&(Pe=Object.assign({spinning:!0},A));const je=i()(ne,J,`${Y}-wrapper`,null==F?void 0:F.className,{[`${Y}-wrapper-rtl`]:"rtl"===H},l,c,te),Re=Object.assign(Object.assign({},null==F?void 0:F.style),s),Te=void 0!==(null==N?void 0:N.emptyText)?N.emptyText:(null==_?void 0:_("Table"))||r.createElement(to,{componentName:"Table"}),De=P?VP:WP,Be={},Le=r.useMemo((()=>{const{fontSize:e,lineHeight:t,padding:n,paddingXS:r,paddingSM:o}=Q,i=Math.floor(e*t);switch(q){case"large":return 2*n+i;case"small":return 2*r+i;default:return 2*o+i}}),[Q,q]);return P&&(Be.listItemHeight=Le),ee(r.createElement("div",{ref:ce,className:je,style:Re},r.createElement(J$,Object.assign({spinning:!1},Pe),Ne,r.createElement(De,Object.assign({},Be,B,{ref:se,columns:D,direction:H,expandable:re,prefixCls:Y,className:i()({[`${Y}-middle`]:"middle"===q,[`${Y}-small`]:"small"===q,[`${Y}-bordered`]:d,[`${Y}-empty`]:0===X.length},ne,J,te),data:Ee,rowKey:ue,rowClassName:(e,t,n)=>{let r;return r="function"==typeof v?i()(v(e,t,n)):i()(v),i()({[`${Y}-row-selected`]:Ie.has(ue(e,t))},r)},emptyText:Te,internalHooks:HI,internalRefs:ae,transformColumns:Me,getContainerWidth:le})),ze)))},GP=r.forwardRef(XP),YP=(e,t)=>{const n=r.useRef(0);return n.current+=1,r.createElement(GP,Object.assign({},e,{ref:t,_renderTimes:n.current}))},UP=r.forwardRef(YP);UP.SELECTION_COLUMN=BN,UP.EXPAND_COLUMN=LI,UP.SELECTION_ALL=LN,UP.SELECTION_INVERT=HN,UP.SELECTION_NONE=FN,UP.Column=hN,UP.ColumnGroup=vN,UP.Summary=sM;const QP=UP,ZP=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return(0,Ue.oX)(e,{tagFontSize:o,tagLineHeight:(0,he.zA)(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},JP=e=>({defaultBg:new Vr.q(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),ej=(0,J.OF)("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),l=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},(0,ve.dF)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,he.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.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-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}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(ZP(e))),JP);var tj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,style:o,className:a,checked:l,onChange:c,onClick:s}=e,u=tj(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:d,tag:f}=r.useContext(Z.ConfigContext),p=d("tag",n),[m,g,h]=ej(p),v=i()(p,`${p}-checkable`,{[`${p}-checkable-checked`]:l},null==f?void 0:f.className,a,g,h);return m(r.createElement("span",Object.assign({},u,{ref:t,style:Object.assign(Object.assign({},o),null==f?void 0:f.style),className:v,onClick:e=>{null==c||c(!l),null==s||s(e)}})))})),rj=nj,oj=(0,J.bf)(["Tag","preset"],(e=>(e=>Ji(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(ZP(e))),JP);const ij=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},aj=(0,J.bf)(["Tag","status"],(e=>{const t=ZP(e);return[ij(t,"success","Success"),ij(t,"processing","Info"),ij(t,"error","Error"),ij(t,"warning","Warning")]}),JP);var lj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:o,rootClassName:a,style:l,children:c,icon:s,color:u,onClose:d,bordered:f=!0,visible:p}=e,m=lj(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:g,direction:h,tag:v}=r.useContext(Z.ConfigContext),[b,y]=r.useState(!0),C=(0,G.A)(m,["closeIcon","closable"]);r.useEffect((()=>{void 0!==p&&y(p)}),[p]);const x=ia(u),w=function(e){return oa.includes(e)}(u),A=x||w,S=Object.assign(Object.assign({backgroundColor:u&&!A?u:void 0},null==v?void 0:v.style),l),$=g("tag",n),[k,E,O]=ej($),I=i()($,null==v?void 0:v.className,{[`${$}-${u}`]:A,[`${$}-has-color`]:u&&!A,[`${$}-hidden`]:!b,[`${$}-rtl`]:"rtl"===h,[`${$}-borderless`]:!f},o,a,E,O),M=e=>{e.stopPropagation(),null==d||d(e),e.defaultPrevented||y(!1)},[,N]=(0,Hx.A)((0,Hx.d)(e),(0,Hx.d)(v),{closable:!1,closeIconRender:e=>{const t=r.createElement("span",{className:`${$}-close-icon`,onClick:M},e);return(0,ge.fx)(e,t,(e=>({onClick:t=>{var n;null===(n=null==e?void 0:e.onClick)||void 0===n||n.call(e,t),M(t)},className:i()(null==e?void 0:e.className,`${$}-close-icon`)})))}}),z="function"==typeof m.onClick||c&&"a"===c.type,P=s||null,j=P?r.createElement(r.Fragment,null,P,c&&r.createElement("span",null,c)):c,R=r.createElement("span",Object.assign({},C,{ref:t,className:I,style:S}),j,N,x&&r.createElement(oj,{key:"preset",prefixCls:$}),w&&r.createElement(aj,{key:"status",prefixCls:$}));return k(z?r.createElement($f.A,{component:"Tag"},R):R)})),sj=cj;sj.CheckableTag=rj;const uj=sj;var dj=n(5131),fj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);or.createElement(mj,Object.assign({},e,{picker:"time",mode:void 0,ref:t})))),hj=r.forwardRef(((e,t)=>{var{addon:n,renderExtraFooter:o,variant:i,bordered:a}=e,l=fj(e,["addon","renderExtraFooter","variant","bordered"]);const[c]=io("timePicker",i,a),s=r.useMemo((()=>o||(n||void 0)),[n,o]);return r.createElement(pj,Object.assign({},l,{mode:void 0,ref:t,renderExtraFooter:s,variant:c}))}));const vj=(0,gt.A)(hj,"picker");hj._InternalPanelDoNotUseOrYouWillBeFired=vj,hj.RangePicker=gj,hj._InternalPanelDoNotUseOrYouWillBeFired=vj;const bj=hj,yj=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},(0,ve.dF)(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:n(n(e.itemHeadSize).sub(e.tailWidth)).div(2).equal(),height:`calc(100% - ${(0,he.zA)(e.itemHeadSize)})`,borderInlineStart:`${(0,he.zA)(e.tailWidth)} ${e.lineType} ${e.tailColor}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:`${(0,he.zA)(e.dotBorderWidth)} ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:n(e.itemHeadSize).div(2).equal(),insetInlineStart:n(e.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.lineWidth).equal(),marginInlineStart:n(e.margin).add(e.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}}},[`&${t}-alternate,\n &${t}-right,\n &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:n(e.marginXXS).mul(-1).equal(),"&-custom":{marginInlineStart:n(e.tailWidth).div(2).equal()}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${(0,he.zA)(e.marginXXS)})`,width:`calc(50% - ${(0,he.zA)(e.marginSM)})`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${(0,he.zA)(e.marginSM)})`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail,\n ${t}-item-head,\n ${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(0,he.zA)(n(n(e.itemHeadSize).add(e.tailWidth)).div(2).equal())})`},[`${t}-item-content`]:{width:`calc(100% - ${(0,he.zA)(n(e.itemHeadSize).add(e.marginXS).equal())})`}}},[`&${t}-pending\n ${t}-item-last\n ${t}-item-tail`]:{display:"block",height:`calc(100% - ${(0,he.zA)(e.margin)})`,borderInlineStart:`${(0,he.zA)(e.tailWidth)} dotted ${e.tailColor}`},[`&${t}-reverse\n ${t}-item-last\n ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${(0,he.zA)(e.margin)})`,borderInlineStart:`${(0,he.zA)(e.tailWidth)} dotted ${e.tailColor}`},[`${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.tailWidth).equal(),width:`calc(50% - ${(0,he.zA)(e.marginSM)})`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${(0,he.zA)(e.marginSM)})`,width:`calc(50% - ${(0,he.zA)(e.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},Cj=(0,J.OF)("Timeline",(e=>{const t=(0,Ue.oX)(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return[yj(t)]}),(e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:3*e.lineWidth,dotBg:e.colorBgContainer,itemPaddingBottom:1.25*e.padding})));var xj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,color:o="blue",dot:a,pending:l=!1,position:c,label:s,children:u}=e,d=xj(e,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:f}=r.useContext(Z.ConfigContext),p=f("timeline",t),m=i()(`${p}-item`,{[`${p}-item-pending`]:l},n),g=/blue|red|green|gray/.test(o||"")?void 0:o,h=i()(`${p}-item-head`,{[`${p}-item-head-custom`]:!!a,[`${p}-item-head-${o}`]:!g});return r.createElement("li",Object.assign({},d,{className:m}),s&&r.createElement("div",{className:`${p}-item-label`},s),r.createElement("div",{className:`${p}-item-tail`}),r.createElement("div",{className:h,style:{borderColor:g,color:g}},a),r.createElement("div",{className:`${p}-item-content`},u))};var Aj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,pending:o=!1,children:a,items:l,rootClassName:c,reverse:s=!1,direction:u,hashId:d,pendingDot:f,mode:p=""}=e,m=Aj(e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const g=(e,n)=>"alternate"===p?"right"===e?`${t}-item-right`:"left"===e||n%2==0?`${t}-item-left`:`${t}-item-right`:"left"===p?`${t}-item-left`:"right"===p||"right"===e?`${t}-item-right`:"",h=(0,Y.A)(l||[]),v="boolean"==typeof o?null:o;o&&h.push({pending:!!o,dot:f||r.createElement(oi.A,null),children:v}),s&&h.reverse();const b=h.length,y=`${t}-item-last`,C=h.filter((e=>!!e)).map(((e,t)=>{var n;const a=t===b-2?y:"",l=t===b-1?y:"",{className:c}=e,u=Aj(e,["className"]);return r.createElement(wj,Object.assign({},u,{className:i()([c,!s&&o?a:l,g(null!==(n=null==e?void 0:e.position)&&void 0!==n?n:"",t)]),key:(null==e?void 0:e.key)||t}))})),x=h.some((e=>!!(null==e?void 0:e.label))),w=i()(t,{[`${t}-pending`]:!!o,[`${t}-reverse`]:!!s,[`${t}-${p}`]:!!p&&!x,[`${t}-label`]:x,[`${t}-rtl`]:"rtl"===u},n,c,d);return r.createElement("ul",Object.assign({},m,{className:w}),C)};const $j=function(e,t){return e&&Array.isArray(e)?e:(0,l.A)(t).map((e=>{var t,n;return Object.assign({children:null!==(n=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.children)&&void 0!==n?n:""},e.props)}))};var kj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,timeline:o}=r.useContext(Z.ConfigContext),{prefixCls:a,children:l,items:c,className:s,style:u}=e,d=kj(e,["prefixCls","children","items","className","style"]),f=t("timeline",a);const p=(0,Xe.A)(f),[m,g,h]=Cj(f,p),v=$j(c,l);return m(r.createElement(Sj,Object.assign({},d,{className:i()(null==o?void 0:o.className,s,h,p),style:Object.assign(Object.assign({},null==o?void 0:o.style),u),prefixCls:f,direction:n,items:v,hashId:g})))};Ej.Item=wj;const Oj=Ej;function Ij(e){return null!==e&&"object"===(0,u.A)(e)}function Mj(e,t,n){if(!1===e||!1===t&&(!Ij(e)||!e.closeIcon))return null;var r,o="boolean"!=typeof t?t:void 0;return Ij(e)?(0,s.A)((0,s.A)({},e),{},{closeIcon:null!==(r=e.closeIcon)&&void 0!==r?r:o}):n||e||t?{closeIcon:o}:"empty"}function Nj(e,t,n,o){var i=(0,r.useState)(void 0),a=(0,vt.A)(i,2),l=a[0],c=a[1];(0,Ct.A)((function(){var t="function"==typeof e?e():e;c(t||null)}));var s=(0,r.useState)(null),u=(0,vt.A)(s,2),d=u[0],f=u[1],p=(0,Te.A)((function(){if(l){!function(e){var t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,r=e.getBoundingClientRect(),o=r.top,i=r.right,a=r.bottom,l=r.left;return o>=0&&l>=0&&i<=t&&a<=n}(l)&&t&&l.scrollIntoView(o);var e=l.getBoundingClientRect(),n={left:e.left,top:e.top,width:e.width,height:e.height,radius:0};f((function(e){return JSON.stringify(e)!==JSON.stringify(n)?n:e}))}else f(null)})),m=function(e){var t;return null!==(t=Array.isArray(null==n?void 0:n.offset)?null==n?void 0:n.offset[e]:null==n?void 0:n.offset)&&void 0!==t?t:6};return(0,Ct.A)((function(){return p(),window.addEventListener("resize",p),function(){window.removeEventListener("resize",p)}}),[l,t,p]),[(0,r.useMemo)((function(){if(!d)return d;var e,t=m(0),r=m(1),o="number"!=typeof(e=null==n?void 0:n.radius)||Number.isNaN(e)?2:null==n?void 0:n.radius;return{left:d.left-t,top:d.top-r,width:d.width+2*t,height:d.height+2*r,radius:o}}),[d,n]),l]}var zj={fill:"transparent",pointerEvents:"auto"};const Pj=function(e){var t=e.prefixCls,n=e.rootClassName,o=e.pos,l=e.showMask,c=e.style,d=void 0===c?{}:c,f=e.fill,p=void 0===f?"rgba(0,0,0,0.5)":f,m=e.open,g=e.animated,h=e.zIndex,v=e.disabledInteraction,b=(0,un.A)(),y="".concat(t,"-mask-").concat(b),C="object"===(0,u.A)(g)?null==g?void 0:g.placeholder:g,x="undefined"!=typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"};return r.createElement(cn.A,{open:m,autoLock:!0},r.createElement("div",{className:i()("".concat(t,"-mask"),n),style:(0,s.A)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:h,pointerEvents:o&&!v?"none":"auto"},d)},l?r.createElement("svg",{style:{width:"100%",height:"100%"}},r.createElement("defs",null,r.createElement("mask",{id:y},r.createElement("rect",(0,a.A)({x:"0",y:"0"},x,{fill:"white"})),o&&r.createElement("rect",{x:o.left,y:o.top,rx:o.radius,width:o.width,height:o.height,fill:"black",className:C?"".concat(t,"-placeholder-animated"):""}))),r.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:p,mask:"url(#".concat(y,")")}),o&&r.createElement(r.Fragment,null,r.createElement("rect",(0,a.A)({},zj,{x:"0",y:"0",width:"100%",height:o.top})),r.createElement("rect",(0,a.A)({},zj,{x:"0",y:"0",width:o.left,height:"100%"})),r.createElement("rect",(0,a.A)({},zj,{x:"0",y:o.top+o.height,width:"100%",height:"calc(100vh - ".concat(o.top+o.height,"px)")})),r.createElement("rect",(0,a.A)({},zj,{x:o.left+o.width,y:"0",width:"calc(100vw - ".concat(o.left+o.width,"px)"),height:"100%"})))):null))};var jj=[0,0],Rj={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function Tj(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={};return Object.keys(Rj).forEach((function(n){t[n]=(0,s.A)((0,s.A)({},Rj[n]),{},{autoArrow:e,targetOffset:jj})})),t}Tj();function Dj(e){var t,n=e.prefixCls,o=e.current,l=e.total,c=e.title,s=e.description,u=e.onClose,d=e.onPrev,f=e.onNext,p=e.onFinish,m=e.className,g=e.closable,h=(0,me.A)(g||{},!0),v=null!==(t=null==g?void 0:g.closeIcon)&&void 0!==t?t:r.createElement("span",{className:"".concat(n,"-close-x")},"×"),b=!!g;return r.createElement("div",{className:i()("".concat(n,"-content"),m)},r.createElement("div",{className:"".concat(n,"-inner")},b&&r.createElement("button",(0,a.A)({type:"button",onClick:u,"aria-label":"Close"},h,{className:"".concat(n,"-close")}),v),r.createElement("div",{className:"".concat(n,"-header")},r.createElement("div",{className:"".concat(n,"-title")},c)),r.createElement("div",{className:"".concat(n,"-description")},s),r.createElement("div",{className:"".concat(n,"-footer")},r.createElement("div",{className:"".concat(n,"-sliders")},l>1?(0,Y.A)(Array.from({length:l}).keys()).map((function(e,t){return r.createElement("span",{key:e,className:t===o?"active":""})})):null),r.createElement("div",{className:"".concat(n,"-buttons")},0!==o?r.createElement("button",{className:"".concat(n,"-prev-btn"),onClick:d},"Prev"):null,o===l-1?r.createElement("button",{className:"".concat(n,"-finish-btn"),onClick:p},"Finish"):r.createElement("button",{className:"".concat(n,"-next-btn"),onClick:f},"Next")))))}const Bj=function(e){var t=e.current,n=e.renderPanel;return r.createElement(r.Fragment,null,"function"==typeof n?n(e,t):r.createElement(Dj,e))};var Lj=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon","closable","builtinPlacements","disabledInteraction"],Hj={left:"50%",top:"50%",width:1,height:1},Fj={block:"center",inline:"center"};const _j=function(e){var t=e.prefixCls,n=void 0===t?"rc-tour":t,o=e.steps,l=void 0===o?[]:o,c=e.defaultCurrent,d=e.current,f=e.onChange,p=e.onClose,m=e.onFinish,g=e.open,h=e.mask,v=void 0===h||h,b=e.arrow,y=void 0===b||b,C=e.rootClassName,x=e.placement,w=e.renderPanel,A=e.gap,S=e.animated,$=e.scrollIntoViewOptions,k=void 0===$?Fj:$,E=e.zIndex,O=void 0===E?1001:E,I=e.closeIcon,M=e.closable,N=e.builtinPlacements,z=e.disabledInteraction,P=(0,bt.A)(e,Lj),j=r.useRef(),R=(0,yt.A)(0,{value:d,defaultValue:c}),T=(0,vt.A)(R,2),D=T[0],B=T[1],L=(0,yt.A)(void 0,{value:g,postState:function(e){return!(D<0||D>=l.length)&&(null==e||e)}}),H=(0,vt.A)(L,2),F=H[0],_=H[1],W=r.useState(F),V=(0,vt.A)(W,2),q=V[0],K=V[1],X=r.useRef(F);(0,Ct.A)((function(){F&&(X.current||B(0),K(!0)),X.current=F}),[F]);var G=l[D]||{},Y=G.target,U=G.placement,Q=G.style,Z=G.arrow,J=G.className,ee=G.mask,te=G.scrollIntoViewOptions,ne=void 0===te?Fj:te,re=G.closeIcon,oe=function(e,t,n,o){return r.useMemo((function(){var r=Mj(e,t,!1),i=Mj(n,o,!0);return"empty"!==r?r:i}),[n,o,e,t])}(G.closable,re,M,I),ie=F&&(null!=ee?ee:v),ae=Nj(Y,g,A,null!=ne?ne:k),le=(0,vt.A)(ae,2),ce=le[0],se=le[1],ue=function(e,t,n){var r;return null!==(r=null!=n?n:t)&&void 0!==r?r:null===e?"center":"bottom"}(se,x,U),de=!!se&&(void 0===Z?y:Z),fe="object"===(0,u.A)(de)&&de.pointAtCenter;(0,Ct.A)((function(){var e;null===(e=j.current)||void 0===e||e.forceAlign()}),[fe,D]);var pe=function(e){B(e),null==f||f(e)},me=(0,r.useMemo)((function(){return N?"function"==typeof N?N({arrowPointAtCenter:fe}):N:Tj(fe)}),[N,fe]);if(void 0===se||!q)return null;var ge=function(){_(!1),null==p||p(D)},he="boolean"==typeof ie?ie:!!ie,ve="boolean"==typeof ie?void 0:ie;return r.createElement(r.Fragment,null,r.createElement(Pj,{zIndex:O,prefixCls:n,pos:ce,showMask:he,style:null==ve?void 0:ve.style,fill:null==ve?void 0:ve.color,open:F,animated:S,rootClassName:C,disabledInteraction:z}),r.createElement(Pn,(0,a.A)({},P,{builtinPlacements:me,ref:j,popupStyle:Q,popupPlacement:ue,popupVisible:F,popupClassName:i()(C,J),prefixCls:n,popup:function(){return r.createElement(Bj,(0,a.A)({arrow:de,key:"content",prefixCls:n,total:l.length,renderPanel:w,onPrev:function(){pe(D-1)},onNext:function(){pe(D+1)},onClose:ge,current:D,onFinish:function(){ge(),null==m||m()}},l[D],{closable:oe}))},forceRender:!1,destroyPopupOnHide:!0,zIndex:O,getTriggerDOMNode:function(e){return e||se||document.body},arrow:!!de}),r.createElement(cn.A,{open:F,autoLock:!0},r.createElement("div",{className:i()(C,"".concat(n,"-target-placeholder")),style:(0,s.A)((0,s.A)({},ce||Hj),{},{position:"fixed",pointerEvents:"none"})}))))},Wj=_j;function Vj(e){return null!=e}const qj=e=>{var t,n;const{stepProps:o,current:a,type:l,indicatorsRender:c}=e,{prefixCls:s,total:u=1,title:d,onClose:f,onPrev:p,onNext:m,onFinish:g,cover:h,description:v,nextButtonProps:b,prevButtonProps:y,type:C,closable:x}=o,w=null!=C?C:l,A=r.createElement("button",{type:"button",onClick:f,className:`${s}-close`},(null==x?void 0:x.closeIcon)||r.createElement(ue.A,{className:`${s}-close-icon`})),S=a===u-1,$=Vj(d)?r.createElement("div",{className:`${s}-header`},r.createElement("div",{className:`${s}-title`},d)):null,k=Vj(v)?r.createElement("div",{className:`${s}-description`},v):null,E=Vj(h)?r.createElement("div",{className:`${s}-cover`},h):null;let O;O=c?c(a,u):(0,Y.A)(Array.from({length:u}).keys()).map(((e,t)=>r.createElement("span",{key:e,className:i()(t===a&&`${s}-indicator-active`,`${s}-indicator`)})));const I="primary"===w?"default":"primary",M={type:"default",ghost:"primary"===w},[N]=(0,Wr.A)("Tour",VA.A.Tour);return r.createElement("div",{className:`${s}-content`},r.createElement("div",{className:`${s}-inner`},x&&A,E,$,k,r.createElement("div",{className:`${s}-footer`},u>1&&r.createElement("div",{className:`${s}-indicators`},O),r.createElement("div",{className:`${s}-buttons`},0!==a?r.createElement(Qs.Ay,Object.assign({},M,y,{onClick:()=>{var e;null==p||p(),null===(e=null==y?void 0:y.onClick)||void 0===e||e.call(y)},size:"small",className:i()(`${s}-prev-btn`,null==y?void 0:y.className)}),null!==(t=null==y?void 0:y.children)&&void 0!==t?t:null==N?void 0:N.Previous):null,r.createElement(Qs.Ay,Object.assign({type:I},b,{onClick:()=>{var e;S?null==g||g():null==m||m(),null===(e=null==b?void 0:b.onClick)||void 0===e||e.call(b)},size:"small",className:i()(`${s}-next-btn`,null==b?void 0:b.className)}),null!==(n=null==b?void 0:b.children)&&void 0!==n?n:S?null==N?void 0:N.Finish:null==N?void 0:N.Next)))))},Kj=e=>{const{componentCls:t,padding:n,paddingXS:r,borderRadius:o,borderRadiusXS:i,colorPrimary:a,colorFill:l,indicatorHeight:c,indicatorWidth:s,boxShadowTertiary:u,zIndexPopup:d,colorBgElevated:f,fontWeightStrong:p,marginXS:m,colorTextLightSolid:g,tourBorderRadius:h,colorWhite:v,primaryNextBtnHoverBg:b,closeBtnSize:y,motionDurationSlow:C,antCls:x,primaryPrevBtnBg:w}=e;return[{[t]:Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"absolute",zIndex:d,maxWidth:"fit-content",visibility:"visible",width:520,"--antd-arrow-background-color":f,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:h,boxShadow:u,position:"relative",backgroundColor:f,border:"none",backgroundClip:"padding-box",[`${t}-close`]:Object.assign({position:"absolute",top:n,insetInlineEnd:n,color:e.colorIcon,background:"none",border:"none",width:y,height:y,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},(0,ve.K8)(e)),[`${t}-cover`]:{textAlign:"center",padding:`${(0,he.zA)(e.calc(n).add(y).add(r).equal())} ${(0,he.zA)(n)} 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${(0,he.zA)(n)} ${(0,he.zA)(n)} ${(0,he.zA)(r)}`,width:`calc(100% - ${(0,he.zA)(y)})`,wordBreak:"break-word",[`${t}-title`]:{fontWeight:p}},[`${t}-description`]:{padding:`0 ${(0,he.zA)(n)}`,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${(0,he.zA)(r)} ${(0,he.zA)(n)} ${(0,he.zA)(n)}`,textAlign:"end",borderRadius:`0 0 ${(0,he.zA)(i)} ${(0,he.zA)(i)}`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:s,height:c,display:"inline-block",borderRadius:"50%",background:l,"&:not(:last-child)":{marginInlineEnd:c},"&-active":{background:a}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${x}-btn`]:{marginInlineStart:m}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{color:g,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:o,boxShadow:u,[`${t}-close`]:{color:g},[`${t}-indicators`]:{[`${t}-indicator`]:{background:w,"&-active":{background:g}}},[`${t}-prev-btn`]:{color:g,borderColor:w,backgroundColor:a,"&:hover":{backgroundColor:w,borderColor:"transparent"}},[`${t}-next-btn`]:{color:a,borderColor:"transparent",background:v,"&:hover":{background:b}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${C}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(h,8)}}},qi(e,"var(--antd-arrow-background-color)")]},Xj=(0,J.OF)("Tour",(e=>{const{borderRadiusLG:t}=e,n=(0,Ue.oX)(e,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t});return[Kj(n)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70,closeBtnSize:e.fontSize*e.lineHeight,primaryPrevBtnBg:new Vr.q(e.colorTextLightSolid).setAlpha(.15).toRgbString(),primaryNextBtnHoverBg:new Vr.q(e.colorBgTextHover).onBackground(e.colorWhite).toRgbString()},Wi({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Fi(e))));var Gj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,current:n=0,total:o=6,className:a,style:l,type:c,closable:s,closeIcon:u}=e,d=Gj(e,["prefixCls","current","total","className","style","type","closable","closeIcon"]),{getPrefixCls:f}=r.useContext(Z.ConfigContext),p=f("tour",t),[m,g,h]=Xj(p),[v,b]=(0,Hx.A)({closable:s,closeIcon:u},null,{closable:!0,closeIconRender:e=>r.isValidElement(e)?(0,ge.Ob)(e,{className:i()(e.props.className,`${p}-close-icon`)}):e});return m(r.createElement(va,{prefixCls:p,hashId:g,className:i()(a,`${p}-pure`,c&&`${p}-${c}`,h),style:l},r.createElement(qj,{stepProps:Object.assign(Object.assign({},d),{prefixCls:p,total:o,closable:v?{closeIcon:b}:void 0}),current:n,type:c})))}));var Uj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,type:n,rootClassName:o,indicatorsRender:a,steps:l,closeIcon:c}=e,s=Uj(e,["prefixCls","type","rootClassName","indicatorsRender","steps","closeIcon"]),{getPrefixCls:u,direction:d,tour:f}=(0,r.useContext)(Z.ConfigContext),p=u("tour",t),[m,g,h]=Xj(p),[,v]=(0,qr.Ay)(),b=r.useMemo((()=>null==l?void 0:l.map((e=>{var t;return Object.assign(Object.assign({},e),{className:i()(e.className,{[`${p}-primary`]:"primary"===(null!==(t=e.type)&&void 0!==t?t:n)})})}))),[l,n]),y=i()({[`${p}-rtl`]:"rtl"===d},g,h,o),[C,x]=(0,mt.YK)("Tour",s.zIndex);return m(r.createElement(Ui.A.Provider,{value:x},r.createElement(Wj,Object.assign({},s,{closeIcon:null!=c?c:null==f?void 0:f.closeIcon,zIndex:C,rootClassName:y,prefixCls:p,animated:!0,renderPanel:(e,t)=>r.createElement(qj,{type:n,stepProps:e,current:t,indicatorsRender:a}),builtinPlacements:e=>{var t;return Yi({arrowPointAtCenter:null===(t=null==e?void 0:e.arrowPointAtCenter)||void 0===t||t,autoAdjustOverflow:!0,offset:v.marginXXS,arrowWidth:v.sizePopupArrow,borderRadius:v.borderRadius})},steps:b}))))};Qj._InternalPanelDoNotUseOrYouWillBeFired=Yj;const Zj=Qj,Jj=e=>{const t=new Map;return e.forEach(((e,n)=>{t.set(e,n)})),t},eR=(e,t,n)=>{const o=r.useMemo((()=>(e||[]).map((e=>t?Object.assign(Object.assign({},e),{key:t(e)}):e))),[e,t]),[i,a]=r.useMemo((()=>{const e=[],t=new Array((n||[]).length),r=Jj(n||[]);return o.forEach((n=>{r.has(n.key)?t[r.get(n.key)]=n:e.push(n)})),[e,t]}),[o,n,t]);return[o,i,a]},tR=[];function nR(e,t){const n=e.filter((e=>t.has(e)));return e.length===n.length?e:n}function rR(e){return Array.from(e).join(";")}const oR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var iR=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:oR}))};const aR=r.forwardRef(iR),lR=e=>{const{renderedText:t,renderedEl:n,item:o,checked:a,disabled:l,prefixCls:c,onClick:s,onRemove:u,showRemove:d}=e,f=i()(`${c}-content-item`,{[`${c}-content-item-disabled`]:l||o.disabled,[`${c}-content-item-checked`]:a});let p;"string"!=typeof t&&"number"!=typeof t||(p=String(t));const[m]=(0,Wr.A)("Transfer",VA.A.Transfer),g={className:f,title:p},h=r.createElement("span",{className:`${c}-content-item-text`},n);return d?r.createElement("li",Object.assign({},g),h,r.createElement("button",{type:"button",disabled:l||o.disabled,className:`${c}-content-item-remove`,"aria-label":null==m?void 0:m.remove,onClick:()=>null==u?void 0:u(o)},r.createElement(aR,null))):(g.onClick=l||o.disabled?void 0:e=>s(o,e),r.createElement("li",Object.assign({},g),r.createElement(Lh,{className:`${c}-checkbox`,checked:a,disabled:l||o.disabled}),h))},cR=r.memo(lR),sR=["handleFilter","handleClear","checkedKeys"],uR=(e,t)=>{const{prefixCls:n,filteredRenderItems:o,selectedKeys:a,disabled:l,showRemove:c,pagination:s,onScroll:u,onItemSelect:d,onItemRemove:f}=e,[p,m]=r.useState(1),g=r.useMemo((()=>{if(!s)return null;return(e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e))("object"==typeof s?s:{})}),[s]),[h,v]=(0,yt.A)(10,{value:null==g?void 0:g.pageSize});r.useEffect((()=>{if(g){const e=Math.ceil(o.length/h);m(Math.min(p,e))}}),[o,g,h]);const b=(e,t)=>{d(e.key,!a.includes(e.key),t)},y=e=>{null==f||f([e.key])},C=r.useMemo((()=>g?o.slice((p-1)*h,p*h):o),[p,o,g,h]);r.useImperativeHandle(t,(()=>({items:C})));const x=g?r.createElement(L$,{size:"small",disabled:l,simple:g.simple,pageSize:h,showLessItems:g.showLessItems,showSizeChanger:g.showSizeChanger,className:`${n}-pagination`,total:o.length,current:p,onChange:e=>{m(e)},onShowSizeChange:(e,t)=>{m(e),v(t)}}):null,w=i()(`${n}-content`,{[`${n}-content-show-remove`]:c});return r.createElement(r.Fragment,null,r.createElement("ul",{className:w,onScroll:u},(C||[]).map((e=>{let{renderedEl:t,renderedText:o,item:i}=e;return r.createElement(cR,{key:i.key,item:i,renderedText:o,renderedEl:t,prefixCls:n,showRemove:c,onClick:b,onRemove:y,checked:a.includes(i.key),disabled:l||i.disabled})}))),x)};const dR=r.forwardRef(uR);const fR=e=>{const{placeholder:t="",value:n,prefixCls:o,disabled:i,onChange:a,handleClear:l}=e,c=r.useCallback((e=>{null==a||a(e),""===e.target.value&&(null==l||l())}),[a]);return r.createElement(cy,{placeholder:t,className:o,value:n,onChange:c,disabled:i,allowClear:!0,prefix:r.createElement(li,null)})},pR=()=>null;function mR(e){return e.filter((e=>!e.disabled)).map((e=>e.key))}const gR=e=>{const{prefixCls:t,dataSource:n=[],titleText:o="",checkedKeys:a,disabled:l,showSearch:c=!1,style:s,searchPlaceholder:u,notFoundContent:d,selectAll:f,deselectAll:p,selectCurrent:m,selectInvert:g,removeAll:h,removeCurrent:v,showSelectAll:b=!0,showRemove:y,pagination:C,direction:x,itemsUnit:w,itemUnit:A,selectAllLabel:S,selectionsIcon:$,footer:k,renderList:E,onItemSelectAll:O,onItemRemove:I,handleFilter:M,handleClear:N,filterOption:z,render:P=pR}=e,[j,R]=(0,r.useState)(""),T=(0,r.useRef)({}),D=e=>{R(e.target.value),M(e)},B=()=>{R(""),N()},L=e=>{const t=P(e),n=function(e){return!(!e||r.isValidElement(e)||"[object Object]"!==Object.prototype.toString.call(e))}(t);return{item:e,renderedEl:n?t.label:t,renderedText:n?t.value:t}},H=(0,r.useMemo)((()=>Array.isArray(d)?d["left"===x?0:1]:d),[d,x]),[F,_]=(0,r.useMemo)((()=>{const e=[],t=[];return n.forEach((n=>{const r=L(n);j&&!((e,t)=>z?z(j,t,x):e.includes(j))(r.renderedText,n)||(e.push(n),t.push(r))})),[e,t]}),[n,j]),W=(0,r.useMemo)((()=>{if(0===a.length)return"none";const e=Jj(a);return F.every((t=>e.has(t.key)||!!t.disabled))?"all":"part"}),[a,F]),V=(0,r.useMemo)((()=>{const n=c?r.createElement("div",{className:`${t}-body-search-wrapper`},r.createElement(fR,{prefixCls:`${t}-search`,onChange:D,handleClear:B,placeholder:u,value:j,disabled:l})):null,{customize:o,bodyContent:s}=(e=>{let t=E?E(Object.assign(Object.assign({},e),{onItemSelect:(t,n)=>e.onItemSelect(t,n)})):null;const n=!!t;return n||(t=r.createElement(dR,Object.assign({ref:T},e))),{customize:n,bodyContent:t}})(Object.assign(Object.assign({},(0,G.A)(e,sR)),{filteredItems:F,filteredRenderItems:_,selectedKeys:a}));let d;return d=o?r.createElement("div",{className:`${t}-body-customize-wrapper`},s):F.length?s:r.createElement("div",{className:`${t}-body-not-found`},H),r.createElement("div",{className:i()(c?`${t}-body ${t}-body-with-search`:`${t}-body`)},n,d)}),[c,t,u,j,l,a,F,_,H]),q=r.createElement(Lh,{disabled:0===n.length||l,checked:"all"===W,indeterminate:"part"===W,className:`${t}-checkbox`,onChange:()=>{null==O||O(F.filter((e=>!e.disabled)).map((e=>{let{key:t}=e;return t})),"all"!==W)}}),K=k&&(k.length<2?k(e):k(e,{direction:x})),X=i()(t,{[`${t}-with-pagination`]:!!C,[`${t}-with-footer`]:!!K}),Y=K?r.createElement("div",{className:`${t}-footer`},K):null,U=!y&&!C&&q;let Q;Q=y?[C?{key:"removeCurrent",label:v,onClick(){var e;const t=mR(((null===(e=T.current)||void 0===e?void 0:e.items)||[]).map((e=>e.item)));null==I||I(t)}}:null,{key:"removeAll",label:h,onClick(){null==I||I(mR(F))}}].filter(Boolean):[{key:"selectAll",label:"all"===W?p:f,onClick(){const e=mR(F);null==O||O(e,e.length!==a.length)}},C?{key:"selectCurrent",label:m,onClick(){var e;const t=(null===(e=T.current)||void 0===e?void 0:e.items)||[];null==O||O(mR(t.map((e=>e.item))),!0)}}:null,{key:"selectInvert",label:g,onClick(){var e;const t=mR(((null===(e=T.current)||void 0===e?void 0:e.items)||[]).map((e=>e.item))),n=new Set(a),r=new Set(n);t.forEach((e=>{n.has(e)?r.delete(e):r.add(e)})),null==O||O(Array.from(r),"replace")}}];const Z=r.createElement(pw,{className:`${t}-header-dropdown`,menu:{items:Q},disabled:l},void 0!==$?$:r.createElement(ri,null));return r.createElement("div",{className:X,style:s},r.createElement("div",{className:`${t}-header`},b?r.createElement(r.Fragment,null,U,Z):null,r.createElement("span",{className:`${t}-header-selected`},((e,t)=>{if(S)return"function"==typeof S?S({selectedCount:e,totalCount:t}):S;const n=t>1?w:A;return r.createElement(r.Fragment,null,(e>0?`${e}/`:"")+t," ",n)})(a.length,F.length)),r.createElement("span",{className:`${t}-header-title`},o)),V,Y)};const hR=e=>{const{disabled:t,moveToLeft:n,moveToRight:o,leftArrowText:i="",rightArrowText:a="",leftActive:l,rightActive:c,className:s,style:u,direction:d,oneWay:f}=e;return r.createElement("div",{className:s,style:u},r.createElement(Qs.Ay,{type:"primary",size:"small",disabled:t||!c,onClick:o,icon:"rtl"!==d?r.createElement(tl.A,null):r.createElement(Bc,null)},a),!f&&r.createElement(Qs.Ay,{type:"primary",size:"small",disabled:t||!l,onClick:n,icon:"rtl"!==d?r.createElement(Bc,null):r.createElement(tl.A,null)},i))},vR=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o}=e,i=`${t}-table`,a=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${i}-wrapper`]:{[`${i}-small`]:{border:0,borderRadius:0,[`${i}-selection-column`]:{width:o,minWidth:o}},[`${i}-pagination${i}-pagination`]:{margin:0,padding:e.paddingXS}},[`${a}[disabled]`]:{backgroundColor:"transparent"}}}},bR=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},yR=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:Object.assign({},bR(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},bR(e,e.colorWarning))}},CR=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:i,headerHeight:a,transferHeaderVerticalPadding:l,itemPaddingBlock:c,controlItemBgActive:s,colorTextDisabled:u,colorTextSecondary:d,listHeight:f,listWidth:p,listWidthLG:m,fontSizeIcon:g,marginXS:h,paddingSM:v,lineType:b,antCls:y,iconCls:C,motionDurationSlow:x,controlItemBgHover:w,borderRadiusLG:A,colorBgContainer:S,colorText:$,controlItemBgActiveHover:k}=e;return{display:"flex",flexDirection:"column",width:p,height:f,border:`${(0,he.zA)(o)} ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:m,height:"auto"},"&-search":{[`${C}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:a,padding:`${(0,he.zA)(e.calc(l).sub(o).equal())} ${(0,he.zA)(v)} ${(0,he.zA)(l)}`,color:$,background:S,borderBottom:`${(0,he.zA)(o)} ${b} ${r}`,borderRadius:`${(0,he.zA)(A)} ${(0,he.zA)(A)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},ve.L9),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},(0,ve.Nk)()),{fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:v}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${(0,he.zA)(c)} ${(0,he.zA)(v)}`,transition:`all ${x}`,"> *:not(:last-child)":{marginInlineEnd:h},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},ve.L9),{flex:"auto"}),"&-remove":Object.assign(Object.assign({},(0,ve.Y1)(e)),{color:n,"&:hover, &:focus":{color:d}}),[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:w,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:k}},"&-checked":{backgroundColor:s},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${(0,he.zA)(o)} ${b} ${r}`,[`${y}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${(0,he.zA)(o)} ${b} ${r}`},"&-checkbox":{lineHeight:1}}},xR=e=>{const{antCls:t,iconCls:n,componentCls:r,marginXS:o,marginXXS:i,fontSizeIcon:a,colorBgContainerDisabled:l}=e;return{[r]:Object.assign(Object.assign({},(0,ve.dF)(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:l}},[`${r}-list`]:CR(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${(0,he.zA)(o)}`,verticalAlign:"middle",gap:i,[`${t}-btn ${n}`]:{fontSize:a}}})}},wR=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},AR=(0,J.OF)("Transfer",(e=>{const t=(0,Ue.oX)(e);return[xR(t),vR(t),yR(t),wR(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:o,lineWidth:i}=e,a=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:o,itemHeight:r,itemPaddingBlock:(r-a)/2,transferHeaderVerticalPadding:Math.ceil((o-i-a)/2)}})),SR=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:o,selectAllLabels:a=[],operations:l=[],style:c={},listStyle:s={},locale:u={},titles:d,disabled:f,showSearch:p=!1,operationStyle:m,showSelectAll:g,oneWay:h,pagination:v,status:b,prefixCls:y,className:C,rootClassName:x,selectionsIcon:w,filterOption:A,render:S,footer:$,children:k,rowKey:E,onScroll:O,onChange:I,onSearch:M,onSelectChange:N}=e,{getPrefixCls:z,renderEmpty:P,direction:j,transfer:R}=(0,r.useContext)(Z.ConfigContext),T=z("transfer",y),[D,B,L]=AR(T),[H,F,_]=eR(t,E,n),[W,V,q,K]=function(e,t,n){const[o,i]=r.useMemo((()=>[new Set(e.map((e=>e.key))),new Set(t.map((e=>e.key)))]),[e,t]),[a,l]=(0,er.vz)(tR,{value:n}),c=r.useMemo((()=>nR(a,o)),[a,o]),s=r.useMemo((()=>nR(a,i)),[a,i]);r.useEffect((()=>{l([].concat((0,Y.A)(nR(a,o)),(0,Y.A)(nR(a,i))))}),[rR(o),rR(i)]);const u=(0,er._q)((e=>{l([].concat((0,Y.A)(e),(0,Y.A)(s)))})),d=(0,er._q)((e=>{l([].concat((0,Y.A)(c),(0,Y.A)(e)))}));return[c,s,u,d]}(F,_,o),[X,G]=DN((e=>e.key)),[U,Q]=DN((e=>e.key));const J=(0,r.useCallback)(((e,t)=>{if("left"===e){const e="function"==typeof t?t(W||[]):t;q(e)}else{const e="function"==typeof t?t(V||[]):t;K(e)}}),[W,V]),ee=(e,t)=>{("left"===e?G:Q)(t)},te=(0,r.useCallback)(((e,t)=>{"left"===e?null==N||N(t,V):null==N||N(W,t)}),[W,V]),ne=e=>{const t="right"===e?W:V,r=(e=>{const t=new Map;return e.forEach(((e,n)=>{let{disabled:r,key:o}=e;r&&t.set(o,n)})),t})(H),o=t.filter((e=>!r.has(e))),i=Jj(o),a="right"===e?o.concat(n):n.filter((e=>!i.has(e))),l="right"===e?"left":"right";J(l,[]),te(l,[]),null==I||I(a,e,o)},re=(e,t,n)=>{J(e,(r=>{let o=[];if("replace"===n)o=t;else if(n)o=Array.from(new Set([].concat((0,Y.A)(r),(0,Y.A)(t))));else{const e=Jj(t);o=r.filter((t=>!e.has(t)))}return te(e,o),o})),ee(e,null)},oe=(t,n,r,o)=>{const i="left"===t,a=(0,Y.A)(i?W:V),l=new Set(a),c=(0,Y.A)(i?F:_).filter((e=>!(null==e?void 0:e.disabled))),s=c.findIndex((e=>e.key===n));o&&a.length>0?((e,t,n,r)=>{("left"===e?X:U)(r,t,n)})(t,c,l,s):((e,t,n,r,o)=>{t.has(n)&&(t.delete(n),ee(e,null)),r&&(t.add(n),ee(e,o))})(t,l,n,r,s);const u=Array.from(l);te(t,u),e.selectedKeys||J(t,u)},ie=e=>"function"==typeof s?s({direction:e}):s||{},ae=(0,r.useContext)(oo.$W),{hasFeedback:le,status:ce}=ae,se=_r(ce,b),ue=!k&&v,de=V.length>0,fe=W.length>0,pe=i()(T,{[`${T}-disabled`]:f,[`${T}-customize-list`]:!!k,[`${T}-rtl`]:"rtl"===j},Fr(T,se,le),null==R?void 0:R.className,C,x,B,L),[me]=(0,Wr.A)("Transfer",VA.A.Transfer),ge=(he=me,Object.assign(Object.assign(Object.assign({},he),{notFoundContent:(null==P?void 0:P("Transfer"))||r.createElement(to,{componentName:"Transfer"})}),u));var he;const[ve,be]=(e=>{var t;return null!==(t=null!=d?d:e.titles)&&void 0!==t?t:[]})(ge),ye=null!=w?w:null==R?void 0:R.selectionsIcon;return D(r.createElement("div",{className:pe,style:Object.assign(Object.assign({},null==R?void 0:R.style),c)},r.createElement(gR,Object.assign({prefixCls:`${T}-list`,titleText:ve,dataSource:F,filterOption:A,style:ie("left"),checkedKeys:W,handleFilter:e=>null==M?void 0:M("left",e.target.value),handleClear:()=>null==M?void 0:M("left",""),onItemSelect:(e,t,n)=>{oe("left",e,t,null==n?void 0:n.shiftKey)},onItemSelectAll:(e,t)=>{re("left",e,t)},render:S,showSearch:p,renderList:k,footer:$,onScroll:e=>{null==O||O("left",e)},disabled:f,direction:"rtl"===j?"right":"left",showSelectAll:g,selectAllLabel:a[0],pagination:ue,selectionsIcon:ye},ge)),r.createElement(hR,{className:`${T}-operation`,rightActive:fe,rightArrowText:l[0],moveToRight:()=>{ne("right"),ee("right",null)},leftActive:de,leftArrowText:l[1],moveToLeft:()=>{ne("left"),ee("left",null)},style:m,disabled:f,direction:j,oneWay:h}),r.createElement(gR,Object.assign({prefixCls:`${T}-list`,titleText:be,dataSource:_,filterOption:A,style:ie("right"),checkedKeys:V,handleFilter:e=>null==M?void 0:M("right",e.target.value),handleClear:()=>null==M?void 0:M("right",""),onItemSelect:(e,t,n)=>{oe("right",e,t,null==n?void 0:n.shiftKey)},onItemSelectAll:(e,t)=>{re("right",e,t)},onItemRemove:e=>{J("right",[]),null==I||I(n.filter((t=>!e.includes(t))),"left",(0,Y.A)(e))},render:S,showSearch:p,renderList:k,footer:$,onScroll:e=>{null==O||O("right",e)},disabled:f,direction:"rtl"===j?"left":"right",showSelectAll:g,selectAllLabel:a[1],showRemove:h,pagination:ue,selectionsIcon:ye},ge))))};SR.List=gR,SR.Search=fR,SR.Operation=hR;const $R=SR;const kR=function(e,t,n,o){return r.useMemo((function(){var r=function(e){return e.map((function(e){return e.value}))},i=r(e),a=r(t),l=i.filter((function(e){return!o[e]})),c=i,s=a;if(n){var u=Yg(i,!0,o);c=u.checkedKeys,s=u.halfCheckedKeys}return[Array.from(new Set([].concat((0,Y.A)(l),(0,Y.A)(c)))),s]}),[e,t,n,o])};const ER=function(){return null};var OR=["children","value"];function IR(e){return(0,l.A)(e).map((function(e){if(!r.isValidElement(e)||!e.type)return null;var t=e,n=t.key,o=t.props,i=o.children,a=o.value,l=(0,bt.A)(o,OR),c=(0,s.A)({key:n,value:a},l),u=IR(i);return u.length&&(c.children=u),c})).filter((function(e){return e}))}function MR(e){if(!e)return e;var t=(0,s.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,c.Ay)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}const NR=function(e,t,n){var o=n.fieldNames,i=n.treeNodeFilterProp,a=n.filterTreeNode,l=o.children;return r.useMemo((function(){if(!t||!1===a)return e;var n="function"==typeof a?a:function(e,n){return String(n[i]).toUpperCase().includes(t.toUpperCase())};return function e(r){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.reduce((function(r,i){var a=i[l],c=o||n(t,MR(i)),u=e(a||[],c);return(c||u.length)&&r.push((0,s.A)((0,s.A)({},i),{},(0,ht.A)({isLeaf:void 0},l,u))),r}),[])}(e)}),[e,t,l,i,a])};function zR(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}function PR(e,t,n){return r.useMemo((function(){if(e){if(n){var r=(0,s.A)({id:"id",pId:"pId",rootPId:null},"object"===(0,u.A)(n)?n:{});return function(e,t){var n=t.id,r=t.pId,o=t.rootPId,i=new Map,a=[];return e.forEach((function(e){var t=e[n],r=(0,s.A)((0,s.A)({},e),{},{key:e.key||t});i.set(t,r)})),i.forEach((function(e){var t=e[r],n=i.get(t);n?(n.children=n.children||[],n.children.push(e)):t!==o&&null!==o||a.push(e)})),a}(e,r)}return e}return IR(t)}),[t,n,e])}const jR=r.createContext(null);const RR=r.createContext(null);var TR=function(e){return!e||e.disabled||e.disableCheckbox||!1===e.checkable},DR=function(e){return null==e},BR={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},LR=function(e,t){var n=St(),o=n.prefixCls,i=n.multiple,l=n.searchValue,c=n.toggleOpen,s=n.open,u=n.notFoundContent,d=r.useContext(RR),f=d.virtual,p=d.listHeight,m=d.listItemHeight,g=d.listItemScrollOffset,h=d.treeData,v=d.fieldNames,b=d.onSelect,y=d.dropdownMatchSelectWidth,C=d.treeExpandAction,x=d.treeTitleRender,w=d.onPopupScroll,A=r.useContext(jR),S=A.checkable,$=A.checkedKeys,k=A.halfCheckedKeys,E=A.treeExpandedKeys,O=A.treeDefaultExpandAll,I=A.treeDefaultExpandedKeys,M=A.onTreeExpand,N=A.treeIcon,z=A.showTreeIcon,P=A.switcherIcon,j=A.treeLine,R=A.treeNodeFilterProp,T=A.loadData,D=A.treeLoadedKeys,B=A.treeMotion,L=A.onTreeLoad,H=A.keyEntities,F=r.useRef(),_=(0,Jn.A)((function(){return h}),[s,h],(function(e,t){return t[0]&&e[1]!==t[1]})),W=r.useMemo((function(){return S?{checked:$,halfChecked:k}:null}),[S,$,k]);r.useEffect((function(){var e;s&&!i&&$.length&&(null===(e=F.current)||void 0===e||e.scrollTo({key:$[0]}))}),[s]);var V=function(e){e.preventDefault()},q=function(e,t){var n=t.node;S&&TR(n)||(b(n.key,{selected:!$.includes(n.key)}),i||c(!1))},K=r.useState(I),X=(0,vt.A)(K,2),G=X[0],U=X[1],Q=r.useState(null),Z=(0,vt.A)(Q,2),J=Z[0],ee=Z[1],te=r.useMemo((function(){return E?(0,Y.A)(E):l?J:G}),[G,J,E,l]),ne=String(l).toLowerCase(),re=function(e){return!!ne&&String(e[R]).toLowerCase().includes(ne)};r.useEffect((function(){l&&ee(function(e,t){var n=[];return function e(r){r.forEach((function(r){var o=r[t.children];o&&(n.push(r[t.value]),e(o))}))}(e),n}(h,v))}),[l]);var oe=function e(t){var n,r=jE(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(!o.disabled&&!1!==o.selectable){if(!l)return o;if(re(o))return o;if(o[v.children]){var i=e(o[v.children]);if(i)return i}}}}catch(e){r.e(e)}finally{r.f()}return null},ie=r.useState(null),ae=(0,vt.A)(ie,2),le=ae[0],ce=ae[1],se=H[le];r.useEffect((function(){if(s){var e,t=null;t=i||!$.length||l?(e=oe(_))?e[v.value]:null:$[0],ce(t)}}),[s,l]),r.useImperativeHandle(t,(function(){var e;return{scrollTo:null===(e=F.current)||void 0===e?void 0:e.scrollTo,onKeyDown:function(e){var t;switch(e.which){case kt.A.UP:case kt.A.DOWN:case kt.A.LEFT:case kt.A.RIGHT:null===(t=F.current)||void 0===t||t.onKeyDown(e);break;case kt.A.ENTER:if(se){var n=(null==se?void 0:se.node)||{},r=n.selectable,o=n.value,i=n.disabled;!1===r||i||q(0,{node:{key:le},selected:!$.includes(o)})}break;case kt.A.ESC:c(!1)}},onKeyUp:function(){}}}));var ue=(0,Jn.A)((function(){return l?null:T}),[l,E||G],(function(e,t){var n=(0,vt.A)(e,1)[0],r=(0,vt.A)(t,2),o=r[0],i=r[1];return n!==o&&!(!o&&!i)}));if(0===_.length)return r.createElement("div",{role:"listbox",className:"".concat(o,"-empty"),onMouseDown:V},u);var de={fieldNames:v};return D&&(de.loadedKeys=D),te&&(de.expandedKeys=te),r.createElement("div",{onMouseDown:V},se&&s&&r.createElement("span",{style:BR,"aria-live":"assertive"},se.node.value),r.createElement(hz,(0,a.A)({ref:F,focusable:!1,prefixCls:"".concat(o,"-tree"),treeData:_,height:p,itemHeight:m,itemScrollOffset:g,virtual:!1!==f&&!1!==y,multiple:i,icon:N,showIcon:z,switcherIcon:P,showLine:j,loadData:ue,motion:B,activeKey:le,checkable:S,checkStrictly:!0,checkedKeys:W,selectedKeys:S?[]:$,defaultExpandAll:O,titleRender:x},de,{onActiveChange:ce,onSelect:q,onCheck:q,onExpand:function(e){U(e),ee(e),M&&M(e)},onLoad:L,filterTreeNode:re,expandAction:C,onScroll:w})))};const HR=r.forwardRef(LR);var FR="SHOW_ALL",_R="SHOW_PARENT",WR="SHOW_CHILD";function VR(e,t,n,r){var o=new Set(e);return t===WR?e.filter((function(e){var t=n[e];return!(t&&t.children&&t.children.some((function(e){var t=e.node;return o.has(t[r.value])}))&&t.children.every((function(e){var t=e.node;return TR(t)||o.has(t[r.value])})))})):t===_R?e.filter((function(e){var t=n[e],r=t?t.parent:null;return!r||TR(r.node)||!o.has(r.key)})):e}var qR=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];var KR=r.forwardRef((function(e,t){var n=e.id,o=e.prefixCls,i=void 0===o?"rc-tree-select":o,l=e.value,d=e.defaultValue,f=e.onChange,p=e.onSelect,m=e.onDeselect,g=e.searchValue,h=e.inputValue,v=e.onSearch,b=e.autoClearSearchValue,y=void 0===b||b,C=e.filterTreeNode,x=e.treeNodeFilterProp,w=void 0===x?"value":x,A=e.showCheckedStrategy,S=e.treeNodeLabelProp,$=e.multiple,k=e.treeCheckable,E=e.treeCheckStrictly,O=e.labelInValue,I=e.fieldNames,M=e.treeDataSimpleMode,N=e.treeData,z=e.children,P=e.loadData,j=e.treeLoadedKeys,R=e.onTreeLoad,T=e.treeDefaultExpandAll,D=e.treeExpandedKeys,B=e.treeDefaultExpandedKeys,L=e.onTreeExpand,H=e.treeExpandAction,F=e.virtual,_=e.listHeight,W=void 0===_?200:_,V=e.listItemHeight,q=void 0===V?20:V,K=e.listItemScrollOffset,X=void 0===K?0:K,G=e.onDropdownVisibleChange,U=e.dropdownMatchSelectWidth,Q=void 0===U||U,Z=e.treeLine,J=e.treeIcon,ee=e.showTreeIcon,te=e.switcherIcon,ne=e.treeMotion,re=e.treeTitleRender,oe=e.onPopupScroll,ie=(0,bt.A)(e,qR),ae=Ir(n),le=k&&!E,ce=k||E,se=E||O,ue=ce||$,de=(0,yt.A)(d,{value:l}),fe=(0,vt.A)(de,2),pe=fe[0],me=fe[1],ge=r.useMemo((function(){return k?A||WR:FR}),[A,k]);var he,ve,be=r.useMemo((function(){return function(e){var t=e||{},n=t.label,r=t.value;return{_title:n?[n]:["title","label"],value:r||"value",key:r||"value",children:t.children||"children"}}(I)}),[JSON.stringify(I)]),ye=(0,yt.A)("",{value:void 0!==g?g:h,postState:function(e){return e||""}}),Ce=(0,vt.A)(ye,2),xe=Ce[0],we=Ce[1],Ae=PR(N,z,M),Se=function(e,t){return r.useMemo((function(){var n=Wg(e,{fieldNames:t,initWrapper:function(e){return(0,s.A)((0,s.A)({},e),{},{valueEntities:new Map})},processEntity:function(e,n){var r=e.node[t.value];n.valueEntities.set(r,e)}});return n}),[e,t])}(Ae,be),$e=Se.keyEntities,ke=Se.valueEntities,Ee=r.useCallback((function(e){var t=[],n=[];return e.forEach((function(e){ke.has(e)?n.push(e):t.push(e)})),{missingRawValues:t,existRawValues:n}}),[ke]),Oe=NR(Ae,xe,{fieldNames:be,treeNodeFilterProp:w,filterTreeNode:C}),Ie=r.useCallback((function(e){if(e){if(S)return e[S];for(var t=be._title,n=0;n1&&void 0!==arguments[1]?arguments[1]:"0",c=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o.map((function(o,u){var d="".concat(i,"-").concat(u),f=o[a.value],p=n.includes(f),m=e(o[a.children]||[],d,p),g=r.createElement(ER,o,m.map((function(e){return e.node})));if(t===f&&(l=g),p){var h={pos:d,node:g,children:m};return c||s.push(h),h}return null})).filter((function(e){return e}))}(o),s.sort((function(e,t){var r=e.node.props.value,o=t.node.props.value;return n.indexOf(r)-n.indexOf(o)})))}Object.defineProperty(e,"triggerNode",{get:function(){return(0,c.Ay)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),u(),l}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return(0,c.Ay)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),u(),i?s:s.map((function(e){return e.node}))}})}(g,s,e,Ae,h,be),ce?g.checked=u:g.selected=u;var v=se?m:m.map((function(e){return e.value}));f(ue?v:v[0],se?null:m.map((function(e){return e.label})),g)}})),Ke=r.useCallback((function(e,t){var n,r=t.selected,o=t.source,i=$e[e],a=null==i?void 0:i.node,l=null!==(n=null==a?void 0:a[be.value])&&void 0!==n?n:e;if(ue){var c=r?[].concat((0,Y.A)(De),[l]):He.filter((function(e){return e!==l}));if(le){var s,u=Ee(c),d=u.missingRawValues,f=u.existRawValues.map((function(e){return ke.get(e).key}));if(r)s=Yg(f,!0,$e).checkedKeys;else s=Yg(f,{checked:!1,halfCheckedKeys:Fe},$e).checkedKeys;c=[].concat((0,Y.A)(d),(0,Y.A)(s.map((function(e){return $e[e].node[be.value]}))))}qe(c,{selected:r,triggerValue:l},o||"option")}else qe([l],{selected:!0,triggerValue:l},"option");r||!ue?null==p||p(l,MR(a)):null==m||m(l,MR(a))}),[Ee,ke,$e,be,ue,De,qe,le,p,m,He,Fe]),Xe=r.useCallback((function(e){if(G){var t={};Object.defineProperty(t,"documentClickClose",{get:function(){return(0,c.Ay)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),G(e,t)}}),[G]),Ge=zR((function(e,t){var n=e.map((function(e){return e.value}));"clear"!==t.type?t.values.length&&Ke(t.values[0].value,{selected:!1,source:"selection"}):qe(n,{},"selection")})),Ye=r.useMemo((function(){return{virtual:F,dropdownMatchSelectWidth:Q,listHeight:W,listItemHeight:q,listItemScrollOffset:X,treeData:Oe,fieldNames:be,onSelect:Ke,treeExpandAction:H,treeTitleRender:re,onPopupScroll:oe}}),[F,Q,W,q,X,Oe,be,Ke,H,re,oe]),Ue=r.useMemo((function(){return{checkable:ce,loadData:P,treeLoadedKeys:j,onTreeLoad:R,checkedKeys:He,halfCheckedKeys:Fe,treeDefaultExpandAll:T,treeExpandedKeys:D,treeDefaultExpandedKeys:B,onTreeExpand:L,treeIcon:J,treeMotion:ne,showTreeIcon:ee,switcherIcon:te,treeLine:Z,treeNodeFilterProp:w,keyEntities:$e}}),[ce,P,j,R,He,Fe,T,D,B,L,J,ne,ee,te,Z,w,$e]);return r.createElement(RR.Provider,{value:Ye},r.createElement(jR.Provider,{value:Ue},r.createElement(Gn,(0,a.A)({ref:t},ie,{id:ae,prefixCls:i,mode:ue?"multiple":void 0,displayValues:Ve,onDisplayValuesChange:Ge,searchValue:xe,onSearch:function(e){we(e),null==v||v(e)},OptionList:HR,emptyOptions:!Ae.length,onDropdownVisibleChange:Xe,dropdownMatchSelectWidth:Q}))))}));var XR=KR;XR.TreeNode=ER,XR.SHOW_ALL=FR,XR.SHOW_PARENT=_R,XR.SHOW_CHILD=WR;const GR=XR,YR=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,o=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${(0,he.zA)(e.paddingXS)} ${(0,he.zA)(e.calc(e.paddingXS).div(2).equal())}`},jz(n,(0,Ue.oX)(e,{colorBgContainer:r})),{[o]:{borderRadius:0,[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-treenode`]:{[`${o}-node-content-wrapper`]:{flex:"auto"}}}}},hh(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${o}-switcher${o}-switcher_close`]:{[`${o}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};var UR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:o,size:a,disabled:l,bordered:c=!0,className:s,rootClassName:u,treeCheckable:d,multiple:f,listHeight:p=256,listItemHeight:m,placement:g,notFoundContent:h,switcherIcon:v,treeLine:b,getPopupContainer:y,popupClassName:C,dropdownClassName:x,treeIcon:w=!1,transitionName:A,choiceTransitionName:S="",status:$,treeExpandAction:k,builtinPlacements:E,dropdownMatchSelectWidth:O,popupMatchSelectWidth:I,allowClear:M,variant:N,dropdownStyle:z,tagRender:P}=e,j=UR(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender"]),{getPopupContainer:R,getPrefixCls:T,renderEmpty:D,direction:B,virtual:L,popupMatchSelectWidth:H,popupOverflow:F}=r.useContext(Z.ConfigContext),[,_]=(0,qr.Ay)(),W=null!=m?m:(null==_?void 0:_.controlHeightSM)+(null==_?void 0:_.paddingXXS);const V=T(),q=T("select",o),K=T("select-tree",o),X=T("tree-select",o),{compactSize:Y,compactItemClassnames:U}=(0,ao.RQ)(q,B),Q=(0,Xe.A)(q),ee=(0,Xe.A)(X),[te,ne,re]=Uo(q,Q),[oe]=function(e,t,n){return(0,J.OF)("TreeSelect",(e=>{const n=(0,Ue.oX)(e,{treePrefixCls:t});return[YR(n)]}),Rz)(e,n)}(X,K,ee),[ie,ae]=io("treeSelect",N,c),le=i()(C||x,`${X}-dropdown`,{[`${X}-dropdown-rtl`]:"rtl"===B},u,re,Q,ee,ne),ce=!(!d&&!f),se=si(e.suffixIcon,e.showArrow),ue=null!==(n=null!=I?I:O)&&void 0!==n?n:H,{status:de,hasFeedback:fe,isFormItemInput:pe,feedbackIcon:me}=r.useContext(oo.$W),ge=_r(de,$),{suffixIcon:he,removeIcon:ve,clearIcon:be}=ci(Object.assign(Object.assign({},j),{multiple:ce,showSuffixIcon:se,hasFeedback:fe,feedbackIcon:me,prefixCls:q,componentName:"TreeSelect"})),ye=!0===M?{clearIcon:be}:M;let Ce;Ce=void 0!==h?h:(null==D?void 0:D("Select"))||r.createElement(to,{componentName:"Select"});const xe=(0,G.A)(j,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),we=r.useMemo((()=>void 0!==g?g:"rtl"===B?"bottomRight":"bottomLeft"),[g,B]),Ae=(0,ro.A)((e=>{var t;return null!==(t=null!=a?a:Y)&&void 0!==t?t:e})),Se=r.useContext(no.A),$e=null!=l?l:Se,ke=i()(!o&&X,{[`${q}-lg`]:"large"===Ae,[`${q}-sm`]:"small"===Ae,[`${q}-rtl`]:"rtl"===B,[`${q}-${ie}`]:ae,[`${q}-in-form-item`]:pe},Fr(q,ge,fe),U,s,u,re,Q,ee,ne),[Ee]=(0,mt.YK)("SelectLike",null==z?void 0:z.zIndex);return te(oe(r.createElement(GR,Object.assign({virtual:L,disabled:$e},xe,{dropdownMatchSelectWidth:ue,builtinPlacements:lo(E,F),ref:t,prefixCls:q,className:ke,listHeight:p,listItemHeight:W,treeCheckable:d?r.createElement("span",{className:`${q}-tree-checkbox-inner`}):d,treeLine:!!b,suffixIcon:he,multiple:ce,placement:we,removeIcon:ve,allowClear:ye,switcherIcon:e=>r.createElement(Xz,{prefixCls:K,switcherIcon:v,treeNodeProps:e,showLine:b}),showTreeIcon:w,notFoundContent:Ce,getPopupContainer:y||R,treeMotion:null,dropdownClassName:le,dropdownStyle:Object.assign(Object.assign({},z),{zIndex:Ee}),choiceTransitionName:(0,Hr.b)(V,"",S),transitionName:(0,Hr.b)(V,"slide-up",A),treeExpandAction:k,tagRender:ce?P:void 0}))))},ZR=r.forwardRef(QR),JR=(0,gt.A)(ZR);ZR.TreeNode=ER,ZR.SHOW_ALL=FR,ZR.SHOW_PARENT=_R,ZR.SHOW_CHILD=WR,ZR._InternalPanelDoNotUseOrYouWillBeFired=JR;const eT=ZR;const tT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};var nT=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:tT}))};const rT=r.forwardRef(nT);const oT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};var iT=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:oT}))};const aT=r.forwardRef(iT),lT=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},cT=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},(0,ve.Y1)(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},sT=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:uE.bK[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),uT=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${(0,he.zA)(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},dT=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),fT=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},lT(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),sT(e)),cT(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},(0,ve.Y1)(e)),{marginInlineStart:e.marginXXS})}),uT(e)),dT(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}},pT=(0,J.OF)("Typography",(e=>[fT(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}))),mT=e=>{const{prefixCls:t,"aria-label":n,className:o,style:a,direction:l,maxLength:c,autoSize:s=!0,value:u,onSave:d,onCancel:f,onEnd:p,component:m,enterIcon:g=r.createElement(aT,null)}=e,h=r.useRef(null),v=r.useRef(!1),b=r.useRef(),[y,C]=r.useState(u);r.useEffect((()=>{C(u)}),[u]),r.useEffect((()=>{var e;if(null===(e=h.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=h.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const x=()=>{d(y.trim())},[w,A,S]=pT(t),$=i()(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===l,[`${t}-${m}`]:!!m},o,A,S);return w(r.createElement("div",{className:$,style:a},r.createElement(ay,{ref:h,maxLength:c,value:y,onChange:e=>{let{target:t}=e;C(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;v.current||(b.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:r,metaKey:o,shiftKey:i}=e;b.current!==t||v.current||n||r||o||i||(t===kt.A.ENTER?(x(),null==p||p()):t===kt.A.ESC&&f())},onCompositionStart:()=>{v.current=!0},onCompositionEnd:()=>{v.current=!1},onBlur:()=>{x()},"aria-label":n,rows:1,autoSize:s}),null!==g?(0,ge.Ob)(g,{className:`${t}-edit-content-confirm`}):null))};var gT=n(7965),hT=n.n(gT),vT=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}c((r=r.apply(e,t||[])).next())}))};const bT=e=>{let{copyConfig:t,children:n}=e;const[o,i]=r.useState(!1),[a,l]=r.useState(!1),c=r.useRef(null),s=()=>{c.current&&clearTimeout(c.current)},u={};t.format&&(u.format=t.format),r.useEffect((()=>s),[]);const d=(0,Te.A)((e=>vT(void 0,void 0,void 0,(function*(){var r;null==e||e.preventDefault(),null==e||e.stopPropagation(),l(!0);try{const o="function"==typeof t.text?yield t.text():t.text;hT()(o||Ek(n,!0).join("")||"",u),l(!1),i(!0),s(),c.current=setTimeout((()=>{i(!1)}),3e3),null===(r=t.onCopy)||void 0===r||r.call(t,e)}catch(e){throw l(!1),e}}))));return{copied:o,copyLoading:a,onClick:d}};function yT(e,t){return r.useMemo((()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]}),[e])}const CT=e=>{const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e})),t.current},xT=(e,t,n)=>(0,r.useMemo)((()=>!0===e?{title:null!=t?t:n}:(0,r.isValidElement)(e)?{title:e}:"object"==typeof e?Object.assign({title:null!=t?t:n},e):{title:e}),[e,t,n]);var wT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,component:o="article",className:a,rootClassName:l,setContentRef:c,children:s,direction:u,style:d}=e,p=wT(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:m,direction:g,typography:h}=r.useContext(Z.ConfigContext),v=null!=u?u:g,b=c?(0,f.K4)(t,c):t,y=m("typography",n);const[C,x,w]=pT(y),A=i()(y,null==h?void 0:h.className,{[`${y}-rtl`]:"rtl"===v},a,l,x,w),S=Object.assign(Object.assign({},null==h?void 0:h.style),d);return C(r.createElement(o,Object.assign({className:A,style:S,ref:b},p),s))}));const ST=AT;const $T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};var kT=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:$T}))};const ET=r.forwardRef(kT);function OT(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function IT(e,t,n){return!0===e||void 0===e?t:e||n&&t}const MT=e=>["string","number"].includes(typeof e),NT=e=>{let{prefixCls:t,copied:n,locale:o,iconOnly:a,tooltips:l,icon:c,tabIndex:s,onCopy:u,loading:d}=e;const f=OT(l),p=OT(c),{copied:m,copy:g}=null!=o?o:{},h=n?m:g,v=IT(f[n?1:0],h),b="string"==typeof v?v:h;return r.createElement(da,{title:v},r.createElement("button",{type:"button",className:i()(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:a}),onClick:u,"aria-label":b,tabIndex:s},n?IT(p[1],r.createElement(ei,null),!0):IT(p[0],d?r.createElement(oi.A,null):r.createElement(ET,null),!0)))},zT=r.forwardRef(((e,t)=>{let{style:n,children:o}=e;const i=r.useRef(null);return r.useImperativeHandle(t,(()=>({isExceed:()=>{const e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight}))),r.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},o)}));function PT(e,t){let n=0;const r=[];for(let o=0;ot){const e=t-n;return r.push(String(i).slice(0,e)),r}r.push(i),n=a}return e}const jT=0,RT=4,TT={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function DT(e){const{enableMeasure:t,width:n,text:o,children:i,rows:a,expanded:c,miscDeps:s,onEllipsis:u}=e,d=r.useMemo((()=>(0,l.A)(o)),[o]),f=r.useMemo((()=>(e=>e.reduce(((e,t)=>e+(MT(t)?String(t).length:1)),0))(d)),[o]),p=r.useMemo((()=>i(d,!1)),[o]),[m,g]=r.useState(null),h=r.useRef(null),v=r.useRef(null),b=r.useRef(null),y=r.useRef(null),C=r.useRef(null),[x,w]=r.useState(!1),[A,S]=r.useState(jT),[$,k]=r.useState(0),[E,O]=r.useState(null);(0,Ct.A)((()=>{S(t&&n&&f?1:jT)}),[n,o,a,t,d]),(0,Ct.A)((()=>{var e,t,n,r;if(1===A){S(2);const e=v.current&&getComputedStyle(v.current).whiteSpace;O(e)}else if(2===A){const o=!!(null===(e=b.current)||void 0===e?void 0:e.isExceed());S(o?3:RT),g(o?[0,f]:null),w(o);const i=(null===(t=b.current)||void 0===t?void 0:t.getHeight())||0,l=1===a?0:(null===(n=y.current)||void 0===n?void 0:n.getHeight())||0,c=(null===(r=C.current)||void 0===r?void 0:r.getHeight())||0,s=Math.max(i,l+c);k(s+1),u(o)}}),[A]);const I=m?Math.ceil((m[0]+m[1])/2):0;(0,Ct.A)((()=>{var e;const[t,n]=m||[0,0];if(t!==n){const r=((null===(e=h.current)||void 0===e?void 0:e.getHeight())||0)>$;let o=I;n-t==1&&(o=r?t:n),g(r?[t,o]:[o,n])}}),[m,I]);const M=r.useMemo((()=>{if(!t)return i(d,!1);if(3!==A||!m||m[0]!==m[1]){const e=i(d,!1);return[RT,jT].includes(A)?e:r.createElement("span",{style:Object.assign(Object.assign({},TT),{WebkitLineClamp:a})},e)}return i(c?d:PT(d,m[0]),x)}),[c,A,m,d].concat((0,Y.A)(s))),N={width:n,margin:0,padding:0,whiteSpace:"nowrap"===E?"normal":"inherit"};return r.createElement(r.Fragment,null,M,2===A&&r.createElement(r.Fragment,null,r.createElement(zT,{style:Object.assign(Object.assign(Object.assign({},N),TT),{WebkitLineClamp:a}),ref:b},p),r.createElement(zT,{style:Object.assign(Object.assign(Object.assign({},N),TT),{WebkitLineClamp:a-1}),ref:y},p),r.createElement(zT,{style:Object.assign(Object.assign(Object.assign({},N),TT),{WebkitLineClamp:1}),ref:C},i([],!0))),3===A&&m&&m[0]!==m[1]&&r.createElement(zT,{style:Object.assign(Object.assign({},N),{top:400}),ref:h},i(PT(d,I),!0)),1===A&&r.createElement("span",{style:{whiteSpace:"inherit"},ref:v}))}const BT=e=>{let{enableEllipsis:t,isEllipsis:n,children:o,tooltipProps:i}=e;return(null==i?void 0:i.title)&&t?r.createElement(da,Object.assign({open:!!n&&void 0},i),o):o};var LT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:o,className:a,style:c,type:s,disabled:u,children:d,ellipsis:p,editable:m,copyable:g,component:h,title:v}=e,b=LT(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:y,direction:C}=r.useContext(Z.ConfigContext),[x]=(0,Wr.A)("Text"),w=r.useRef(null),A=r.useRef(null),S=y("typography",o),$=(0,G.A)(b,["mark","code","delete","underline","strong","keyboard","italic"]),[k,E]=yT(m),[O,I]=(0,yt.A)(!1,{value:E.editing}),{triggerType:M=["icon"]}=E,N=e=>{var t;e&&(null===(t=E.onStart)||void 0===t||t.call(E)),I(e)},z=CT(O);(0,Ct.A)((()=>{var e;!O&&z&&(null===(e=A.current)||void 0===e||e.focus())}),[O]);const P=e=>{null==e||e.preventDefault(),N(!0)},j=e=>{var t;null===(t=E.onChange)||void 0===t||t.call(E,e),N(!1)},R=()=>{var e;null===(e=E.onCancel)||void 0===e||e.call(E),N(!1)},[T,D]=yT(g),{copied:B,copyLoading:L,onClick:H}=bT({copyConfig:D,children:d}),[F,_]=r.useState(!1),[W,V]=r.useState(!1),[q,K]=r.useState(!1),[Y,U]=r.useState(!1),[Q,J]=r.useState(!0),[ee,te]=yT(p,{expandable:!1,symbol:e=>e?null==x?void 0:x.collapse:null==x?void 0:x.expand}),[ne,re]=(0,yt.A)(te.defaultExpanded||!1,{value:te.expanded}),oe=ee&&(!ne||"collapsible"===te.expandable),{rows:ie=1}=te,ae=r.useMemo((()=>oe&&(void 0!==te.suffix||te.onEllipsis||te.expandable||k||T)),[oe,te,k,T]);(0,Ct.A)((()=>{ee&&!ae&&(_(dM("webkitLineClamp")),V(dM("textOverflow")))}),[ae,ee]);const[le,ce]=r.useState(oe),se=r.useMemo((()=>!ae&&(1===ie?W:F)),[ae,W,F]);(0,Ct.A)((()=>{ce(se&&oe)}),[se,oe]);const ue=oe&&(le?Y:q),de=oe&&1===ie&&le,fe=oe&&ie>1&&le,[pe,me]=r.useState(0),ge=e=>{var t;K(e),q!==e&&(null===(t=te.onEllipsis)||void 0===t||t.call(te,e))};r.useEffect((()=>{const e=w.current;if(ee&&le&&e){const t=function(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}(e);Y!==t&&U(t)}}),[ee,le,d,fe,Q,pe]),r.useEffect((()=>{const e=w.current;if("undefined"==typeof IntersectionObserver||!e||!le||!oe)return;const t=new IntersectionObserver((()=>{J(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[le,oe]);const he=xT(te.tooltip,E.text,d),ve=r.useMemo((()=>{if(ee&&!le)return[E.text,d,v,he.title].find(MT)}),[ee,le,v,he.title,ue]);if(O)return r.createElement(mT,{value:null!==(n=E.text)&&void 0!==n?n:"string"==typeof d?d:"",onSave:j,onCancel:R,onEnd:E.onEnd,prefixCls:S,className:a,style:c,direction:C,component:h,maxLength:E.maxLength,autoSize:E.autoSize,enterIcon:E.enterIcon});const be=()=>{const{expandable:e,symbol:t}=te;return e?r.createElement("button",{type:"button",key:"expand",className:`${S}-${ne?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;re(t.expanded),null===(n=te.onExpand)||void 0===n||n.call(te,e,t)})(e,{expanded:!ne}),"aria-label":ne?x.collapse:null==x?void 0:x.expand},"function"==typeof t?t(ne):t):null},ye=()=>{if(!k)return;const{icon:e,tooltip:t,tabIndex:n}=E,o=(0,l.A)(t)[0]||(null==x?void 0:x.edit),i="string"==typeof o?o:"";return M.includes("icon")?r.createElement(da,{key:"edit",title:!1===t?"":o},r.createElement("button",{type:"button",ref:A,className:`${S}-edit`,onClick:P,"aria-label":i,tabIndex:n},e||r.createElement(rT,{role:"button"}))):null},Ce=e=>[e&&be(),ye(),T?r.createElement(NT,Object.assign({key:"copy"},D,{prefixCls:S,copied:B,locale:x,onCopy:H,loading:L,iconOnly:null==d})):null];return r.createElement(X,{onResize:e=>{let{offsetWidth:t}=e;me(t)},disabled:!oe},(n=>r.createElement(BT,{tooltipProps:he,enableEllipsis:oe,isEllipsis:ue},r.createElement(ST,Object.assign({className:i()({[`${S}-${s}`]:s,[`${S}-disabled`]:u,[`${S}-ellipsis`]:ee,[`${S}-ellipsis-single-line`]:de,[`${S}-ellipsis-multiple-line`]:fe},a),prefixCls:o,style:Object.assign(Object.assign({},c),{WebkitLineClamp:fe?ie:void 0}),component:h,ref:(0,f.K4)(n,w,t),direction:C,onClick:M.includes("text")?P:void 0,"aria-label":null==ve?void 0:ve.toString(),title:v},$),r.createElement(DT,{enableMeasure:oe&&!le,text:d,rows:ie,width:pe,onEllipsis:ge,expanded:ne,miscDeps:[B,ne,L,k,T,x]},((t,n)=>function(e,t){let{mark:n,code:o,underline:i,delete:a,strong:l,keyboard:c,italic:s}=e,u=t;function d(e,t){t&&(u=r.createElement(e,{},u))}return d("strong",l),d("u",i),d("del",a),d("code",o),d("mark",n),d("kbd",c),d("i",s),u}(e,r.createElement(r.Fragment,null,t.length>0&&n&&!ne&&ve?r.createElement("span",{key:"show-content","aria-hidden":!0},t):t,(e=>[e&&!ne&&r.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),te.suffix,Ce(e)])(n)))))))))})),FT=HT;var _T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{ellipsis:n,rel:o}=e,i=_T(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},i),{rel:void 0===o&&"_blank"===i.target?"noopener noreferrer":o});return delete a.navigate,r.createElement(FT,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))})),VT=r.forwardRef(((e,t)=>r.createElement(FT,Object.assign({ref:t},e,{component:"div"}))));var qT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{ellipsis:n}=e,o=qT(e,["ellipsis"]);const i=r.useMemo((()=>n&&"object"==typeof n?(0,G.A)(n,["expandable","rows"]):n),[n]);return r.createElement(FT,Object.assign({ref:t},o,{ellipsis:i,component:"span"}))},XT=r.forwardRef(KT);var GT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{level:n=1}=e,o=GT(e,["level"]);const i=YT.includes(n)?`h${n}`:"h1";return r.createElement(FT,Object.assign({ref:t},o,{component:i}))})),QT=ST;QT.Text=XT,QT.Link=WT,QT.Title=UT,QT.Paragraph=VT;const ZT=QT;var JT=n(675),eD=n(467);const tD=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),a=t.toLowerCase(),l=[a];return".jpg"!==a&&".jpeg"!==a||(l=[".jpg",".jpeg"]),l.some((function(e){return n.endsWith(e)}))}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&((0,c.Ay)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)}))}return!0};function nD(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function rD(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var r=e.data[t];Array.isArray(r)?r.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,r)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),nD(t)):e.onSuccess(nD(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(e){null!==r[e]&&t.setRequestHeader(e,r[e])})),t.send(n),{abort:function(){t.abort()}}}var oD=function(){var e=(0,eD.A)((0,JT.A)().mark((function e(t,n){var r,o,i,a,l,c,s,u;return(0,JT.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=function(){return(c=(0,eD.A)((0,JT.A)().mark((function e(t){return(0,JT.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){t.file((function(r){n(r)?(t.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=t.fullPath.replace(/^\//,""),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),e(r)):e(null)}))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)},l=function(e){return c.apply(this,arguments)},a=function(){return a=(0,eD.A)((0,JT.A)().mark((function e(t){var n,r,o,i,a;return(0,JT.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.createReader(),r=[];case 2:return e.next=5,new Promise((function(e){n.readEntries(e,(function(){return e([])}))}));case 5:if(o=e.sent,i=o.length){e.next=9;break}return e.abrupt("break",12);case 9:for(a=0;a{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${(0,he.zA)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${(0,he.zA)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`\n &:not(${t}-disabled):hover,\n &-hover:not(${t}-disabled)\n `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${(0,he.zA)(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}},hD=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:o,lineHeight:i,calc:a}=e,l=`${t}-list-item`,c=`${l}-actions`,s=`${l}-action`,u=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,ve.t6)()),{lineHeight:e.lineHeight,[l]:{position:"relative",height:a(e.lineHeight).mul(o).equal(),marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:Object.assign(Object.assign({},ve.L9),{padding:`0 ${(0,he.zA)(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[c]:{whiteSpace:"nowrap",[s]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`\n ${s}:focus-visible,\n &.picture ${s}\n `]:{opacity:1},[`${s}${n}-btn`]:{height:u,border:0,lineHeight:1}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:o},[`${l}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(o).add(e.paddingXS).equal(),fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${s}`]:{opacity:1},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${r}`]:{color:e.colorError},[c]:{[`${r}, ${r}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},vD=e=>{const{componentCls:t}=e,n=new he.Mo("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new he.Mo("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:(0,Rw.p9)(e)},n,r]},bD=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`\n ${a}${a}-picture,\n ${a}${a}-picture-card,\n ${a}${a}-picture-circle\n `]:{[l]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${(0,he.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},ve.L9),{width:r,height:r,lineHeight:(0,he.zA)(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:o,width:`calc(100% - ${(0,he.zA)(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{[`svg path[fill='${uE.z1[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${uE.z1.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},yD=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`,c=e.uploadPicCardSize;return{[`\n ${t}-wrapper${t}-picture-card-wrapper,\n ${t}-wrapper${t}-picture-circle-wrapper\n `]:Object.assign(Object.assign({},(0,ve.t6)()),{display:"block",[`${t}${t}-select`]:{width:c,height:c,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${(0,he.zA)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:c,height:c,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,he.zA)(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,he.zA)(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`\n ${n}-eye,\n ${n}-download,\n ${n}-delete\n `]:{zIndex:10,width:r,margin:`0 ${(0,he.zA)(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${(0,he.zA)(i(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${(0,he.zA)(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},CD=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},xD=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,ve.dF)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},wD=(0,J.OF)("Upload",(e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:i}=e,a=(0,Ue.oX)(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[xD(a),gD(a),bD(a),yD(a),hD(a),vD(a),CD(a),(0,us.A)(a)]}),(e=>({actionsColor:e.colorTextDescription})));const AD={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};var SD=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:AD}))};const $D=r.forwardRef(SD);const kD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};var ED=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:kD}))};const OD=r.forwardRef(ED);const ID={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};var MD=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:ID}))};const ND=r.forwardRef(MD);function zD(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function PD(e,t){const n=(0,Y.A)(t),r=n.findIndex((t=>{let{uid:n}=t;return n===e.uid}));return-1===r?n.push(e):n[r]=e,n}function jD(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter((t=>t[n]===e[n]))[0]}const RD=e=>0===e.indexOf("image/"),TD=e=>{if(e.type&&!e.thumbUrl)return RD(e.type);const t=e.thumbUrl||e.url||"",n=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},DD=200;function BD(e){return new Promise((t=>{if(!e.type||!RD(e.type))return void t("");const n=document.createElement("canvas");n.width=DD,n.height=DD,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:e,height:i}=o;let a=DD,l=DD,c=0,s=0;e>i?(l=i*(DD/e),s=-(l-a)/2):(a=e*(DD/i),c=-(a-l)/2),r.drawImage(o,c,s,a,l);const u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)}))}const LD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var HD=function(e,t){return r.createElement(Zo.A,(0,a.A)({},e,{ref:t,icon:LD}))};const FD=r.forwardRef(HD),_D=r.forwardRef(((e,t)=>{let{prefixCls:n,className:o,style:a,locale:l,listType:c,file:s,items:u,progress:d,iconRender:f,actionIconRender:p,itemRender:m,isImgUrl:g,showPreviewIcon:h,showRemoveIcon:v,showDownloadIcon:b,previewIcon:y,removeIcon:C,downloadIcon:x,extra:w,onPreview:A,onDownload:S,onClose:$}=e;var k,E;const{status:O}=s,[I,M]=r.useState(O);r.useEffect((()=>{"removed"!==O&&M(O)}),[O]);const[N,z]=r.useState(!1);r.useEffect((()=>{const e=setTimeout((()=>{z(!0)}),300);return()=>{clearTimeout(e)}}),[]);const P=f(s);let j=r.createElement("div",{className:`${n}-icon`},P);if("picture"===c||"picture-card"===c||"picture-circle"===c)if("uploading"===I||!s.thumbUrl&&!s.url){const e=i()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:"uploading"!==I});j=r.createElement("div",{className:e},P)}else{const e=(null==g?void 0:g(s))?r.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):P,t=i()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:g&&!g(s)});j=r.createElement("a",{className:t,onClick:e=>A(s,e),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}const R=i()(`${n}-list-item`,`${n}-list-item-${I}`),T="string"==typeof s.linkProps?JSON.parse(s.linkProps):s.linkProps,D=("function"==typeof v?v(s):v)?p(("function"==typeof C?C(s):C)||r.createElement(aR,null),(()=>$(s)),n,l.removeFile,!0):null,B=("function"==typeof b?b(s):b)&&"done"===I?p(("function"==typeof x?x(s):x)||r.createElement(FD,null),(()=>S(s)),n,l.downloadFile):null,L="picture-card"!==c&&"picture-circle"!==c&&r.createElement("span",{key:"download-delete",className:i()(`${n}-list-item-actions`,{picture:"picture"===c})},B,D),H="function"==typeof w?w(s):w,F=H&&r.createElement("span",{className:`${n}-list-item-extra`},H),_=i()(`${n}-list-item-name`),W=s.url?r.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:_,title:s.name},T,{href:s.url,onClick:e=>A(s,e)}),s.name,F):r.createElement("span",{key:"view",className:_,onClick:e=>A(s,e),title:s.name},s.name,F),V=("function"==typeof h?h(s):h)&&(s.url||s.thumbUrl)?r.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>A(s,e),title:l.previewFile},"function"==typeof y?y(s):y||r.createElement(Lb,null)):null,q=("picture-card"===c||"picture-circle"===c)&&"uploading"!==I&&r.createElement("span",{className:`${n}-list-item-actions`},V,"done"===I&&B,D),{getPrefixCls:K}=r.useContext(Z.ConfigContext),X=K(),G=r.createElement("div",{className:R},j,W,L,q,N&&r.createElement(pe.Ay,{motionName:`${X}-fade`,visible:"uploading"===I,motionDeadline:2e3},(e=>{let{className:t}=e;const o="percent"in s?r.createElement(ME,Object.assign({},d,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return r.createElement("div",{className:i()(`${n}-list-item-progress`,t)},o)}))),Y=s.response&&"string"==typeof s.response?s.response:(null===(k=s.error)||void 0===k?void 0:k.statusText)||(null===(E=s.error)||void 0===E?void 0:E.message)||l.uploadError,U="error"===I?r.createElement(da,{title:Y,getPopupContainer:e=>e.parentNode},G):G;return r.createElement("div",{className:i()(`${n}-list-item-container`,o),style:a,ref:t},m?m(U,s,u,{download:S.bind(null,s),preview:A.bind(null,s),remove:$.bind(null,s)}):U)})),WD=_D,VD=(e,t)=>{const{listType:n="text",previewFile:o=BD,onPreview:a,onDownload:l,onRemove:c,locale:s,iconRender:u,isImageUrl:d=TD,prefixCls:f,items:p=[],showPreviewIcon:m=!0,showRemoveIcon:g=!0,showDownloadIcon:h=!1,removeIcon:v,previewIcon:b,downloadIcon:y,extra:C,progress:x={size:[-1,2],showInfo:!1},appendAction:w,appendActionVisible:A=!0,itemRender:S,disabled:$}=e,k=(0,WO.A)(),[E,O]=r.useState(!1),I=["picture-card","picture-circle"].includes(n);r.useEffect((()=>{n.startsWith("picture")&&(p||[]).forEach((e=>{(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",null==o||o(e.originFileObj).then((t=>{e.thumbUrl=t||"",k()})))}))}),[n,p,o]),r.useEffect((()=>{O(!0)}),[]);const M=(e,t)=>{if(a)return null==t||t.preventDefault(),a(e)},N=e=>{"function"==typeof l?l(e):e.url&&window.open(e.url)},z=e=>{null==c||c(e)},P=e=>{if(u)return u(e,n);const t="uploading"===e.status;if(n.startsWith("picture")){const o="picture"===n?r.createElement(oi.A,null):s.uploading,i=(null==d?void 0:d(e))?r.createElement(ND,null):r.createElement($D,null);return t?o:i}return t?r.createElement(oi.A,null):r.createElement(OD,null)},j=(e,t,n,o,i)=>{const a={type:"text",size:"small",title:o,onClick:n=>{var o,i;t(),r.isValidElement(e)&&(null===(i=(o=e.props).onClick)||void 0===i||i.call(o,n))},className:`${n}-list-item-action`};return i&&(a.disabled=$),r.isValidElement(e)?r.createElement(Qs.Ay,Object.assign({},a,{icon:(0,ge.Ob)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}))})):r.createElement(Qs.Ay,Object.assign({},a),r.createElement("span",null,e))};r.useImperativeHandle(t,(()=>({handlePreview:M,handleDownload:N})));const{getPrefixCls:R}=r.useContext(Z.ConfigContext),T=R("upload",f),D=R(),B=i()(`${T}-list`,`${T}-list-${n}`),L=r.useMemo((()=>(0,G.A)((0,Hr.A)(D),["onAppearEnd","onEnterEnd","onLeaveEnd"])),[D]),H=Object.assign(Object.assign({},I?{}:L),{motionDeadline:2e3,motionName:`${T}-${I?"animate-inline":"animate"}`,keys:(0,Y.A)(p.map((e=>({key:e.uid,file:e})))),motionAppear:E});return r.createElement("div",{className:B},r.createElement(pe.aF,Object.assign({},H,{component:!1}),(e=>{let{key:t,file:o,className:i,style:a}=e;return r.createElement(WD,{key:t,locale:s,prefixCls:T,className:i,style:a,file:o,items:p,progress:x,listType:n,isImgUrl:d,showPreviewIcon:m,showRemoveIcon:g,showDownloadIcon:h,removeIcon:v,previewIcon:b,downloadIcon:y,extra:C,iconRender:P,actionIconRender:j,itemRender:S,onPreview:M,onDownload:N,onClose:z})})),w&&r.createElement(pe.Ay,Object.assign({},H,{visible:A,forceRender:!0}),(e=>{let{className:t,style:n}=e;return(0,ge.Ob)(w,(e=>({className:i()(e.className,t),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:t?"none":void 0}),e.style)})))})))};const qD=r.forwardRef(VD);var KD=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}c((r=r.apply(e,t||[])).next())}))};const XD=`__LIST_IGNORE_${Date.now()}__`,GD=(e,t)=>{const{fileList:n,defaultFileList:o,onRemove:a,showUploadList:l=!0,listType:c="text",onPreview:s,onDownload:u,onChange:d,onDrop:f,previewFile:p,disabled:m,locale:g,iconRender:h,isImageUrl:v,progress:b,prefixCls:y,className:C,type:x="select",children:w,style:A,itemRender:S,maxCount:$,data:k={},multiple:E=!1,hasControlInside:O=!0,action:I="",accept:M="",supportServerRender:N=!0,rootClassName:z}=e,P=r.useContext(no.A),j=null!=m?m:P,[R,T]=(0,yt.A)(o||[],{value:n,postState:e=>null!=e?e:[]}),[D,B]=r.useState("drop"),L=r.useRef(null),H=r.useRef(null);r.useMemo((()=>{const e=Date.now();(n||[]).forEach(((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)}))}),[n]);const F=(e,t,n)=>{let r=(0,Y.A)(t),o=!1;1===$?r=r.slice(-1):$&&(o=r.length>$,r=r.slice(0,$)),(0,zt.flushSync)((()=>{T(r)}));const i={file:e,fileList:r};n&&(i.event=n),o&&"removed"!==e.status&&!r.some((t=>t.uid===e.uid))||(0,zt.flushSync)((()=>{null==d||d(i)}))},_=e=>{const t=e.filter((e=>!e.file[XD]));if(!t.length)return;const n=t.map((e=>zD(e.file)));let r=(0,Y.A)(R);n.forEach((e=>{r=PD(e,r)})),n.forEach(((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(e){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,o=n}F(o,r)}))},W=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!jD(t,R))return;const r=zD(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;const o=PD(r,R);F(r,o)},V=(e,t)=>{if(!jD(t,R))return;const n=zD(t);n.status="uploading",n.percent=e.percent;const r=PD(n,R);F(n,r,e)},q=(e,t,n)=>{if(!jD(n,R))return;const r=zD(n);r.error=e,r.response=t,r.status="error";const o=PD(r,R);F(r,o)},K=e=>{let t;Promise.resolve("function"==typeof a?a(e):a).then((n=>{var r;if(!1===n)return;const o=function(e,t){const n=void 0!==e.uid?"uid":"name",r=t.filter((t=>t[n]!==e[n]));return r.length===t.length?null:r}(e,R);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==R||R.forEach((e=>{const n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")})),null===(r=L.current)||void 0===r||r.abort(t),F(t,o))}))},X=e=>{B(e.type),"drop"===e.type&&(null==f||f(e))};r.useImperativeHandle(t,(()=>({onBatchStart:_,onSuccess:W,onProgress:V,onError:q,fileList:R,upload:L.current,nativeElement:H.current})));const{getPrefixCls:G,direction:U,upload:Q}=r.useContext(Z.ConfigContext),J=G("upload",y),ee=Object.assign(Object.assign({onBatchStart:_,onError:q,onProgress:V,onSuccess:W},e),{data:k,multiple:E,action:I,accept:M,supportServerRender:N,prefixCls:J,disabled:j,beforeUpload:(t,n)=>KD(void 0,void 0,void 0,(function*(){const{beforeUpload:r,transformFile:o}=e;let i=t;if(r){const e=yield r(t,n);if(!1===e)return!1;if(delete t[XD],e===XD)return Object.defineProperty(t,XD,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(i=e)}return o&&(i=yield o(i)),i})),onChange:void 0,hasControlInside:O});delete ee.className,delete ee.style,w&&!j||delete ee.id;const te=`${J}-wrapper`,[ne,re,oe]=wD(J,te),[ie]=(0,Wr.A)("Upload",VA.A.Upload),{showRemoveIcon:ae,showPreviewIcon:le,showDownloadIcon:ce,removeIcon:se,previewIcon:ue,downloadIcon:de,extra:fe}="boolean"==typeof l?{}:l,pe=void 0===ae?!j:ae,me=(e,t)=>l?r.createElement(qD,{prefixCls:J,listType:c,items:R,previewFile:p,onPreview:s,onDownload:u,onRemove:K,showRemoveIcon:pe,showPreviewIcon:le,showDownloadIcon:ce,removeIcon:se,previewIcon:ue,downloadIcon:de,iconRender:h,extra:fe,locale:Object.assign(Object.assign({},ie),g),isImageUrl:v,progress:b,appendAction:e,appendActionVisible:t,itemRender:S,disabled:j}):e,ge=i()(te,C,z,re,oe,null==Q?void 0:Q.className,{[`${J}-rtl`]:"rtl"===U,[`${J}-picture-card-wrapper`]:"picture-card"===c,[`${J}-picture-circle-wrapper`]:"picture-circle"===c}),he=Object.assign(Object.assign({},null==Q?void 0:Q.style),A);if("drag"===x){const e=i()(re,J,`${J}-drag`,{[`${J}-drag-uploading`]:R.some((e=>"uploading"===e.status)),[`${J}-drag-hover`]:"dragover"===D,[`${J}-disabled`]:j,[`${J}-rtl`]:"rtl"===U});return ne(r.createElement("span",{className:ge,ref:H},r.createElement("div",{className:e,style:he,onDrop:X,onDragOver:X,onDragLeave:X},r.createElement(mD,Object.assign({},ee,{ref:L,className:`${J}-btn`}),r.createElement("div",{className:`${J}-drag-container`},w))),me()))}const ve=i()(J,`${J}-select`,{[`${J}-disabled`]:j}),be=r.createElement("div",{className:ve,style:w?void 0:{display:"none"}},r.createElement(mD,Object.assign({},ee,{ref:L})));return ne("picture-card"===c||"picture-circle"===c?r.createElement("span",{className:ge,ref:H},me(be,!!w)):r.createElement("span",{className:ge,ref:H},be,me()))};const YD=r.forwardRef(GD);var UD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{style:n,height:o,hasControlInside:i=!1}=e,a=UD(e,["style","height","hasControlInside"]);return r.createElement(YD,Object.assign({ref:t,hasControlInside:i},a,{type:"drag",style:Object.assign(Object.assign({},n),{height:o})}))}));const ZD=QD,JD=YD;JD.Dragger=ZD,JD.LIST_IGNORE=XD;const eB=JD;var tB=n(5640);r.Component;var nB={subtree:!0,childList:!0,attributeFilter:["style","class"]};function rB(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=document.createElement("canvas"),o=r.getContext("2d"),i=e*n,a=t*n;return r.setAttribute("width",`${i}px`),r.setAttribute("height",`${a}px`),o.save(),[o,r,i,a]}function oB(){return function(e,t,n,r,o,i,a,l){const[c,s,u,d]=rB(r,o,n);if(e instanceof HTMLImageElement)c.drawImage(e,0,0,u,d);else{const{color:t,fontSize:r,fontStyle:a,fontWeight:l,fontFamily:s,textAlign:d}=i,f=Number(r)*n;c.font=`${a} normal ${l} ${f}px/${o}px ${s}`,c.fillStyle=t,c.textAlign=d,c.textBaseline="top";const p=Ek(e);null==p||p.forEach(((e,t)=>{c.fillText(null!=e?e:"",u/2,t*(f+3*n))}))}const f=Math.PI/180*Number(t),p=Math.max(r,o),[m,g,h]=rB(p,p,n);m.translate(h/2,h/2),m.rotate(f),u>0&&d>0&&m.drawImage(s,-u/2,-d/2);let v=0,b=0,y=0,C=0;const x=u/2,w=d/2;[[0-x,0-w],[0+x,0-w],[0+x,0+w],[0-x,0+w]].forEach((e=>{let[t,n]=e;const[r,o]=function(e,t){return[e*Math.cos(f)-t*Math.sin(f),e*Math.sin(f)+t*Math.cos(f)]}(t,n);v=Math.min(v,r),b=Math.max(b,r),y=Math.min(y,o),C=Math.max(C,o)}));const A=v+h/2,S=y+h/2,$=b-v,k=C-y,E=a*n,O=l*n,I=2*($+E),M=k+O,[N,z]=rB(I,M);function P(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;N.drawImage(g,A,S,$,k,e,t,$,k)}return P(),P($+E,-k/2-O/2),P($+E,+k/2+O/2),[z.toDataURL(),I/n,M/n]}}const iB={visibility:"visible !important"};function aB(e){const[t]=r.useState((()=>new Map));return[(n,r,o)=>{if(o){if(!t.get(o)){const e=document.createElement("div");t.set(o,e)}const i=t.get(o);i.setAttribute("style",function(e){return Object.keys(e).map((t=>`${function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}(t)}: ${e[t]};`)).join(" ")}(Object.assign(Object.assign(Object.assign({},e),{backgroundImage:`url('${n}')`,backgroundSize:`${Math.floor(r)}px`}),iB))),i.removeAttribute("class"),i.parentElement!==o&&o.append(i)}return t.get(o)},e=>{const n=t.get(e);n&&e&&e.removeChild(n),t.delete(e)},e=>Array.from(t.values()).includes(e)]}function lB(e,t){return e.size===t.size?e:t}const cB=100,sB=100,uB={position:"relative",overflow:"hidden"};const dB=e=>{var t,n;const{zIndex:o=9,rotate:a=-22,width:l,height:c,image:s,content:u,font:d={},style:f,className:p,rootClassName:m,gap:g=[cB,sB],offset:h,children:v,inherit:b=!0}=e,y=Object.assign(Object.assign({},uB),f),[,C]=(0,qr.Ay)(),{color:x=C.colorFill,fontSize:w=C.fontSizeLG,fontWeight:A="normal",fontStyle:S="normal",fontFamily:$="sans-serif",textAlign:k="center"}=d,[E=cB,O=sB]=g,I=E/2,M=O/2,N=null!==(t=null==h?void 0:h[0])&&void 0!==t?t:I,z=null!==(n=null==h?void 0:h[1])&&void 0!==n?n:M,P=r.useMemo((()=>{const e={zIndex:o,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let t=N-I,n=z-M;return t>0&&(e.left=`${t}px`,e.width=`calc(100% - ${t}px)`,t=0),n>0&&(e.top=`${n}px`,e.height=`calc(100% - ${n}px)`,n=0),e.backgroundPosition=`${t}px ${n}px`,e}),[o,N,I,z,M]),[j,R]=r.useState(),[T,D]=r.useState(new Set),B=r.useMemo((()=>[].concat(j?[j]:[],(0,Y.A)(Array.from(T)))),[j,T]),L=oB(),[H,F]=r.useState(null),_=function(e){const t=r.useRef(!1),n=r.useRef(),o=(0,Te.A)(e);return()=>{t.current||(t.current=!0,o(),n.current=(0,U.A)((()=>{t.current=!1})))}}((()=>{const e=document.createElement("canvas").getContext("2d");if(e){const t=window.devicePixelRatio||1,[n,r]=(e=>{let t=120,n=64;if(!s&&e.measureText){e.font=`${Number(w)}px ${$}`;const r=Ek(u),o=r.map((t=>{const n=e.measureText(t);return[n.width,n.fontBoundingBoxAscent+n.fontBoundingBoxDescent]}));t=Math.ceil(Math.max.apply(Math,(0,Y.A)(o.map((e=>e[0]))))),n=Math.ceil(Math.max.apply(Math,(0,Y.A)(o.map((e=>e[1])))))*r.length+3*(r.length-1)}return[null!=l?l:t,null!=c?c:n]})(e),o=e=>{const[o,i]=L(e||"",a,t,n,r,{color:x,fontSize:w,fontStyle:S,fontWeight:A,fontFamily:$,textAlign:k},E,O);F([o,i])};if(s){const e=new Image;e.onload=()=>{o(e)},e.onerror=()=>{o(u)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=s}else o(u)}})),[W,V,q]=aB(P);(0,r.useEffect)((()=>{H&&B.forEach((e=>{W(H[0],H[1],e)}))}),[H,B]);const K=(0,Te.A)((e=>{e.forEach((e=>{if(((e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some((e=>t(e)))),"attributes"===e.type&&t(e.target)&&(n=!0),n})(e,q))_();else if(e.target===j&&"style"===e.attributeName){const e=Object.keys(uB);for(let t=0;t2&&void 0!==arguments[2]?arguments[2]:nB;r.useEffect((function(){if((0,kr.A)()&&e){var r,o=Array.isArray(e)?e:[e];return"MutationObserver"in window&&(r=new MutationObserver(t),o.forEach((function(e){r.observe(e,n)}))),function(){var e,t;null===(e=r)||void 0===e||e.takeRecords(),null===(t=r)||void 0===t||t.disconnect()}}}),[n,e])}(B,K),(0,r.useEffect)(_,[a,o,l,c,s,u,x,w,A,S,$,k,E,O,N,z]);const X=r.useMemo((()=>({add:e=>{D((t=>{const n=new Set(t);return n.add(e),lB(t,n)}))},remove:e=>{V(e),D((t=>{const n=new Set(t);return n.delete(e),lB(t,n)}))}})),[]),G=b?r.createElement(Lx.A.Provider,{value:X},v):v;return r.createElement("div",{ref:R,className:i()(p,m),style:y},G)},fB=(0,r.forwardRef)(((e,t)=>{const{prefixCls:n,className:o,children:a,size:l,style:c={}}=e,s=i()(`${n}-panel`,{[`${n}-panel-hidden`]:0===l},o),u=void 0!==l;return r.createElement("div",{ref:t,className:s,style:Object.assign(Object.assign({},c),{flexBasis:u?l:"auto",flexGrow:u?0:1})},a)}));const pB=()=>null;var mB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,vertical:n,index:o,active:a,ariaNow:l,ariaMin:c,ariaMax:s,resizable:u,startCollapsible:d,endCollapsible:f,onOffsetStart:p,onOffsetUpdate:m,onOffsetEnd:g,onCollapse:h}=e,v=`${t}-bar`,[b,y]=(0,r.useState)(null);r.useEffect((()=>{if(b){const e=e=>{const{pageX:t,pageY:n}=e,r=t-b[0],i=n-b[1];m(o,r,i)},t=()=>{y(null),g()},n=e=>{if(1===e.touches.length){const t=e.touches[0],n=t.pageX-b[0],r=t.pageY-b[1];m(o,n,r)}},r=()=>{y(null),g()};return window.addEventListener("touchmove",n),window.addEventListener("touchend",r),window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t),window.removeEventListener("touchmove",n),window.removeEventListener("touchend",r)}}}),[b]);const C=n?Ev:Bc,x=n?ri:tl.A;return r.createElement("div",{className:v,role:"separator","aria-valuenow":bB(l),"aria-valuemin":bB(c),"aria-valuemax":bB(s)},r.createElement("div",{className:i()(`${v}-dragger`,{[`${v}-dragger-disabled`]:!u,[`${v}-dragger-active`]:a}),onMouseDown:e=>{u&&e.currentTarget&&(y([e.pageX,e.pageY]),p(o))},onTouchStart:e=>{if(u&&1===e.touches.length){const t=e.touches[0];y([t.pageX,t.pageY]),p(o)}}}),d&&r.createElement("div",{className:i()(`${v}-collapse-bar`,`${v}-collapse-bar-start`),onClick:()=>h(o,"start")},r.createElement(C,{className:i()(`${v}-collapse-icon`,`${v}-collapse-start`)})),f&&r.createElement("div",{className:i()(`${v}-collapse-bar`,`${v}-collapse-bar-end`),onClick:()=>h(o,"end")},r.createElement(x,{className:i()(`${v}-collapse-icon`,`${v}-collapse-end`)})))},CB=e=>{const{componentCls:t}=e;return{[`&-rtl${t}-horizontal`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:0,insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"unset",insetInlineStart:0}}},[`&-rtl${t}-vertical`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:"50%",insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"50%",insetInlineStart:"unset"}}}}},xB={position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"},wB=e=>{const{componentCls:t,colorFill:n,splitBarDraggableSize:r,splitBarSize:o,splitTriggerSize:i,controlItemBgHover:a,controlItemBgActive:l,controlItemBgActiveHover:c}=e,s=`${t}-bar`,u=`${t}-mask`,d=`${t}-panel`,f=e.calc(i).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign({},(0,ve.dF)(e)),{display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${s}`]:{flex:"none",position:"relative",userSelect:"none",[`${s}-dragger`]:Object.assign(Object.assign({},xB),{zIndex:1,"&::before":Object.assign({content:'""',background:a},xB),"&::after":Object.assign({content:'""',background:n},xB),[`&:hover:not(${s}-dragger-active)`]:{"&::before":{background:l}},"&-active":{zIndex:2,"&::before":{background:c}},[`&-disabled${s}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&::before":{background:a}},"&::after":{display:"none"}}}),[`${s}-collapse-bar`]:Object.assign(Object.assign({},xB),{zIndex:1,background:a,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{background:l},"&:active":{background:c}}),"&:hover, &:active":{[`${s}-collapse-bar`]:{opacity:1}}},[u]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${s}`]:{width:0,[`${s}-dragger`]:{cursor:"col-resize",height:"100%",width:i,"&::before":{height:"100%",width:o},"&::after":{height:r,width:o}},[`${s}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:f},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:!0,value:f},right:{_skip_check_:!0,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${s}`]:{height:0,[`${s}-dragger`]:{cursor:"row-resize",width:"100%",height:i,"&::before":{width:"100%",height:o},"&::after":{width:r,height:o}},[`${s}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:f,transform:"translateX(-50%)"},"&-end":{top:f,bottom:"auto",transform:"translateX(-50%)"}}}},[d]:{overflow:"auto",padding:"0 1px",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{padding:0,overflow:"hidden"},[`&:has(${t}:only-child)`]:{overflow:"hidden"}}}),CB(e))}},AB=(0,J.OF)("Splitter",(e=>[wB(e)]),(e=>{var t;const n=e.splitBarSize||2,r=e.splitTriggerSize||6,o=e.resizeSpinnerSize||20;return{splitBarSize:n,splitTriggerSize:r,splitBarDraggableSize:null!==(t=e.splitBarDraggableSize)&&void 0!==t?t:o,resizeSpinnerSize:o}}));const SB=e=>{const{prefixCls:t,className:n,style:o,layout:a="horizontal",children:c,rootClassName:s,onResizeStart:u,onResize:d,onResizeEnd:f}=e,{getPrefixCls:p,direction:m,splitter:g}=r.useContext(Z.ConfigContext),h=p("splitter",t),v=(0,Xe.A)(h),[b,y,C]=AB(h,v),x="vertical"===a,w="rtl"===m,A=!x&&w,S=function(e){return r.useMemo((()=>(0,l.A)(e).filter(r.isValidElement).map((e=>{const{props:t}=e,{collapsible:n}=t,r=mB(t,["collapsible"]);return Object.assign(Object.assign({},r),{collapsible:gB(n)})}))),[e])}(c);const[$,k]=(0,r.useState)(),[E,O,I,M,N,z]=function(e,t){const n=e.map((e=>e.size)),o=e.length,i=t||0,a=e=>e*i,[l,c]=r.useState((()=>e.map((e=>e.defaultSize)))),s=r.useMemo((()=>{var e;const t=[];for(let r=0;r{let e=[],t=0;for(let n=0;ne+(t||0)),0);if(n>1||!t){const t=1/n;e=e.map((e=>void 0===e?0:e*t))}else{const r=(1-n)/t;e=e.map((e=>void 0===e?r:e))}return e}),[s,i]),d=r.useMemo((()=>u.map(a)),[u,i]),f=r.useMemo((()=>e.map((e=>vB(e.min)?hB(e.min):(e.min||0)/i))),[e,i]),p=r.useMemo((()=>e.map((e=>vB(e.max)?hB(e.max):(e.max||i)/i))),[e,i]);return[r.useMemo((()=>t?d:s),[d,t]),d,u,f,p,c]}(S,$),P=function(e,t){return r.useMemo((()=>{const n=[];for(let r=0;r