@emailmaker/emailmaker 1.1.27 → 1.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/{emailmaker-core.06547314.js → emailmaker-core.2378a16e.js} +1 -1
  2. package/emailmaker-esm.js +4 -4
  3. package/emailmaker.d.ts +9 -3
  4. package/emailmaker.js +12 -12
  5. package/iframe/js/amp.BLBsfH3J.js +1 -0
  6. package/iframe/js/iframe-eblock.js +1 -1
  7. package/iframe/js/iframe.js +1 -1
  8. package/iframe/js/rules.CNqvmp_P.js +1 -1
  9. package/package.json +1 -1
  10. package/runtime/@ant-design/cssinjs/index.js +1 -1
  11. package/runtime/@ant-design/icons/index.js +1 -1
  12. package/runtime/THIRD_PARTY_LICENSES.txt +536 -665
  13. package/runtime/antd/index.js +1 -1
  14. package/runtime/dayjs/index.js +1 -1
  15. package/runtime/react-router-dom/index.js +1 -1
  16. package/singlepage_headless_plugin.html +1 -1
  17. package/static/core/1a531120.js +1 -0
  18. package/static/core/1c4f1288.js +1 -0
  19. package/static/core/24359c2b2.js +1 -0
  20. package/static/core/25d26369.js +506 -0
  21. package/static/core/2a386d94.js +1 -0
  22. package/static/core/2c8c1708.js +1 -0
  23. package/static/core/{d5fdc4a4.js → 3509b8fe.js} +1 -1
  24. package/static/core/3c4d8253.js +3 -0
  25. package/static/core/4030e367.js +1 -0
  26. package/static/core/{4da0e58b.js → 4685dd44.js} +2 -2
  27. package/static/core/4a9d6b60.js +20 -0
  28. package/static/core/4d479101.js +1 -0
  29. package/static/core/4d7a8040.js +51 -0
  30. package/static/core/{ca5b168d.js → 50b3488f.js} +4 -4
  31. package/static/core/558afaa1.js +1 -0
  32. package/static/core/5ef557ea.js +895 -0
  33. package/static/core/{8bfabb4b.js → 6301b88d.js} +3 -3
  34. package/static/core/6684fd2f.js +1 -0
  35. package/static/core/69624945.js +1 -0
  36. package/static/core/69be5772.js +4 -0
  37. package/static/core/816e810f.js +1 -0
  38. package/static/core/81b54c02.js +1 -0
  39. package/static/core/872f2250.js +1 -0
  40. package/static/core/8d43cba9.js +1 -0
  41. package/static/core/{3ba2a2df.js → 91634ef3.js} +1 -1
  42. package/static/core/94c870c4.js +1 -0
  43. package/static/core/a7e4541a2.js +1 -0
  44. package/static/core/b15cf28a.js +1 -0
  45. package/static/core/b17207dd.js +1 -0
  46. package/static/core/b7559974.js +1 -0
  47. package/static/core/b8fdbfee.js +1 -0
  48. package/static/core/c229e862.js +1 -0
  49. package/static/core/{b949d092.js → ca58f6cf.js} +2 -2
  50. package/static/core/dd3de504.js +1 -0
  51. package/static/core/{2834aa992.js → e462ce36.js} +1 -1
  52. package/static/core/e4ba0190.js +1 -0
  53. package/static/core/e52ae9f3.js +1 -0
  54. package/static/core/ed6c0f8c.js +78 -0
  55. package/static/core/f7436c59.js +1 -0
  56. package/static/esm/{e2baef14.js → cce60606.js} +1 -1
  57. package/static/esm/{b9d66884.js → fd91741d.js} +1 -1
  58. package/static/runtime/DownloadOutlined-C-5Yi5xA.js +76 -0
  59. package/static/runtime/dayjs.min-7qDGpCH7.js +1 -0
  60. package/static/runtime/defineProperty-DxTQfsxO.js +1 -0
  61. package/static/runtime/dist-C0p5hVla.js +2 -0
  62. package/static/runtime/es-DhckSY88.js +315 -0
  63. package/static/runtime/es-jkBfKdP4.js +2 -0
  64. package/static/runtime/es-rvjSIqny.js +1 -0
  65. package/two_step_headless_plugin.html +1 -1
  66. package/ui-kit/index.js +2041 -1934
  67. package/iframe/js/amp.BbapYQ7c.js +0 -1
  68. package/static/core/17465e1c.js +0 -1
  69. package/static/core/18a6d849.js +0 -1
  70. package/static/core/22b69a93.js +0 -1
  71. package/static/core/265a0618.js +0 -51
  72. package/static/core/3534defe.js +0 -1
  73. package/static/core/3cb2fef0.js +0 -1
  74. package/static/core/3dfe5446.js +0 -1
  75. package/static/core/4cddd021.js +0 -1
  76. package/static/core/59092da8.js +0 -1
  77. package/static/core/5dd75b49.js +0 -1
  78. package/static/core/6722afef.js +0 -3
  79. package/static/core/6c2b8cb5.js +0 -471
  80. package/static/core/74011820.js +0 -1
  81. package/static/core/79109d5b.js +0 -78
  82. package/static/core/7aa95ea1.js +0 -1
  83. package/static/core/7eebfbce.js +0 -1
  84. package/static/core/837725bd.js +0 -1
  85. package/static/core/85496899.js +0 -1
  86. package/static/core/92ad1565.js +0 -596
  87. package/static/core/94e76300.js +0 -1
  88. package/static/core/986fd329.js +0 -1
  89. package/static/core/a3e9b2eb.js +0 -20
  90. package/static/core/b33fb533.js +0 -1
  91. package/static/core/bb856264.js +0 -1
  92. package/static/core/c00287f4.js +0 -1
  93. package/static/core/cab85799.js +0 -1
  94. package/static/core/cb2faa14.js +0 -1
  95. package/static/core/d80716fa.js +0 -1
  96. package/static/core/e46bb831.js +0 -1
  97. package/static/core/e7ac5f93.js +0 -1
  98. package/static/core/eba78550.js +0 -1
  99. package/static/core/ed4a83c82.js +0 -1
  100. package/static/core/f6e0d03e.js +0 -1
  101. package/static/core/f89f369f.js +0 -833
  102. package/static/runtime/DownloadOutlined-Czug__JA.js +0 -1
  103. package/static/runtime/dayjs.min-BktkwxcQ.js +0 -1
  104. package/static/runtime/dist-B1ZrbBVP.js +0 -2
  105. package/static/runtime/es-Dt0MDtMm.js +0 -5
  106. package/static/runtime/es-LbCQ86AJ.js +0 -444
  107. package/static/runtime/es-n8SS20ln.js +0 -55
  108. /package/iframe/{iframe-eblock.06547314.html → iframe-eblock.2378a16e.html} +0 -0
  109. /package/iframe/{iframe.06547314.html → iframe.2378a16e.html} +0 -0
@@ -0,0 +1,315 @@
1
+ import{n as e,r as t,t as n}from"./chunk-QTnfLwEv.js";import{t as r}from"./react-BWGRLa9R.js";import{t as i}from"./react-dom-BlsJ1peI.js";import{A as a,At as o,B as s,Bt as c,C as l,Ct as u,D as d,Dt as f,E as p,Et as m,F as h,Ft as g,G as _,Gt as v,H as y,Ht as b,I as x,It as S,J as C,Jt as w,K as T,Kt as E,L as D,Lt as O,M as k,Mt as A,N as j,Nt as M,O as N,Ot as P,P as F,Pt as I,Q as L,R,Rt as z,S as B,St as V,T as H,Tt as U,U as W,Ut as G,V as ee,Vt as K,W as q,Wt as te,X as ne,Y as re,Yt as J,Z as ie,_ as ae,_t as oe,a as se,at as ce,b as le,bt as Y,c as ue,ct as de,d as fe,dt as pe,f as me,ft as X,g as he,gt as ge,h as _e,ht as ve,i as ye,j as be,jt as xe,k as Se,kt as Ce,l as we,lt as Te,m as Ee,mt as De,n as Oe,o as ke,ot as Ae,p as je,pt as Me,q as Ne,qt as Pe,r as Fe,s as Ie,st as Le,t as Re,u as ze,ut as Be,v as Ve,vt as He,w as Ue,wt as We,x as Ge,xt as Ke,y as qe,yt as Je,z as Ye,zt as Xe}from"./DownloadOutlined-C-5Yi5xA.js";import{a as Ze,c as Qe,i as $e,l as et,n as tt,o as nt,s as rt,t as Z}from"./defineProperty-DxTQfsxO.js";import{_ as it,a as at,b as ot,c as st,g as Q,h as ct,m as lt,p as ut,s as dt}from"./es-jkBfKdP4.js";import{t as ft}from"./dayjs.min-7qDGpCH7.js";var $=t(r());function pt(){}var{resetWarned:mt}=$e,ht=$.createContext({}),gt=()=>{let e=()=>{};return e.deprecated=pt,e},_t=$.createContext(null);function vt({children:e,onBatchResize:t}){let n=$.useRef(0),r=$.useRef([]),i=$.useContext(_t),a=$.useCallback((e,a,o)=>{n.current+=1;let s=n.current;r.current.push({size:e,element:a,data:o}),Promise.resolve().then(()=>{s===n.current&&(t?.(r.current),r.current=[])}),i?.(e,a,o)},[t,i]);return $.createElement(_t.Provider,{value:a},e)}var yt=new Map;function bt(e){e.forEach(e=>{let{target:t}=e;yt.get(t)?.forEach(e=>e(t))})}var xt;function St(){return xt||(xt=new ResizeObserver(bt)),xt}function Ct(e,t){yt.has(e)||(yt.set(e,new Set),St().observe(e)),yt.get(e).add(t)}function wt(e,t){yt.has(e)&&(yt.get(e).delete(t),yt.get(e).size||(St().unobserve(e),yt.delete(e)))}function Tt(e,t,n,r){let i=$.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),a=J(e=>{let{width:t,height:a}=e.getBoundingClientRect(),{offsetWidth:o,offsetHeight:s}=e,c=Math.floor(t),l=Math.floor(a);if(i.current.width!==c||i.current.height!==l||i.current.offsetWidth!==o||i.current.offsetHeight!==s){let u={width:c,height:l,offsetWidth:o,offsetHeight:s};i.current=u;let d=o===Math.round(t)?t:o,f=s===Math.round(a)?a:s,p={...u,offsetWidth:d,offsetHeight:f};r?.(p,e),Promise.resolve().then(()=>{n?.(p,e)})}}),o=typeof t==`function`,s=$.useRef(0);$.useEffect(()=>{let n=o?t():t;return n&&e?Ct(n,a):e&&o&&(s.current+=1),()=>{n&&wt(n,a)}},[e,o?s.current:t])}function Et(e,t){let{children:n,disabled:r,onResize:i,data:a}=e,o=$.useRef(null),s=$.useContext(_t),l=typeof n==`function`,u=l?n(o):n,d=!l&&$.isValidElement(u)&&c(u),f=K(d?z(u):null,o),p=()=>I(o.current);return $.useImperativeHandle(t,()=>p()),Tt(!r,p,i,(e,t)=>{s?.(e,t,a)}),d?$.cloneElement(u,{ref:f}):u}var Dt=$.forwardRef(Et);function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ot.apply(this,arguments)}var kt=`rc-observer-key`;function At(e,t){let{children:n}=e;return(typeof n==`function`?[n]:Je(n)).map((n,r)=>{let i=n?.key||`${kt}-${r}`;return $.createElement(Dt,Ot({},e,{key:i,ref:r===0?t:void 0}),n)})}var jt=$.forwardRef(At);jt.Collection=vt;function Mt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nt(e){if(Array.isArray(e))return Mt(e)}function Pt(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ft(e,t){if(e){if(typeof e==`string`)return Mt(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mt(e,t):void 0}}function It(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lt(e){return Nt(e)||Pt(e)||Ft(e)||It()}function Rt(e){let t=null,n=n=>()=>{t=null,e.apply(void 0,Lt(n))},r=(...e)=>{t===null&&(t=Y(n(e)))};return r.cancel=()=>{Y.cancel(t),t=null},r}var zt=`anticon`,Bt=[`outlined`,`borderless`,`filled`,`underlined`],Vt=$.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:`ant`),iconPrefixCls:zt}),{Consumer:Ht}=Vt,Ut={};function Wt(e){let t=$.useContext(Vt),{getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a}=t;return{classNames:Ut,styles:Ut,...t[e],getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a}}function Gt(e){"@babel/helpers - typeof";return Gt=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Gt(e)}var Kt=t(i());function qt(e){if(Array.isArray(e))return e}function Jt(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Yt(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xt(e,t){return qt(e)||Jt(e,t)||Ft(e,t)||Yt()}function Zt(e,t){if(Gt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Gt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Qt(e){var t=Zt(e,`string`);return Gt(t)==`symbol`?t:t+``}function $t(e,t,n){return(t=Qt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?en(Object(n),!0).forEach(function(t){$t(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nn(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function rn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Qt(r.key),r)}}function an(e,t,n){return t&&rn(e.prototype,t),n&&rn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function on(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function sn(e,t){return sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sn(e,t)}function cn(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sn(e,t)}function ln(e){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ln(e)}function un(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(un=function(){return!!e})()}function dn(e,t){if(t&&(Gt(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return on(e)}function fn(e){var t=un();return function(){var n,r=ln(e);if(t){var i=ln(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return dn(this,n)}}var pn=an(function e(){nn(this,e)}),mn=`CALC_UNIT`,hn=new RegExp(mn,`g`);function gn(e){return typeof e==`number`?`${e}${mn}`:e}var _n=function(e){cn(n,e);var t=fn(n);function n(e,r){var i;nn(this,n),i=t.call(this),$t(on(i),`result`,``),$t(on(i),`unitlessCssVar`,void 0),$t(on(i),`lowPriority`,void 0);var a=Gt(e);return i.unitlessCssVar=r,e instanceof n?i.result=`(${e.result})`:a===`number`?i.result=gn(e):a===`string`&&(i.result=e),i}return an(n,[{key:`add`,value:function(e){return e instanceof n?this.result=`${this.result} + ${e.getResult()}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} + ${gn(e)}`),this.lowPriority=!0,this}},{key:`sub`,value:function(e){return e instanceof n?this.result=`${this.result} - ${e.getResult()}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} - ${gn(e)}`),this.lowPriority=!0,this}},{key:`mul`,value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} * ${e.getResult(!0)}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:`div`,value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} / ${e.getResult(!0)}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:`getResult`,value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:`equal`,value:function(e){var t=this,n=(e||{}).unit,r=!0;return typeof n==`boolean`?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(hn,r?`px`:``),this.lowPriority===void 0?this.result:`calc(${this.result})`}}]),n}(pn),vn=function(e){cn(n,e);var t=fn(n);function n(e){var r;return nn(this,n),r=t.call(this),$t(on(r),`result`,0),e instanceof n?r.result=e.result:typeof e==`number`&&(r.result=e),r}return an(n,[{key:`add`,value:function(e){return e instanceof n?this.result+=e.result:typeof e==`number`&&(this.result+=e),this}},{key:`sub`,value:function(e){return e instanceof n?this.result-=e.result:typeof e==`number`&&(this.result-=e),this}},{key:`mul`,value:function(e){return e instanceof n?this.result*=e.result:typeof e==`number`&&(this.result*=e),this}},{key:`div`,value:function(e){return e instanceof n?this.result/=e.result:typeof e==`number`&&(this.result/=e),this}},{key:`equal`,value:function(){return this.result}}]),n}(pn),yn=function(e,t){var n=e===`css`?_n:vn;return function(e){return new n(e,t)}},bn=function(e,t){return`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,`$1-$2`).replace(/([a-z])([A-Z])/g,`$1-$2`)].filter(Boolean).join(`-`)}`};function xn(e,t,n,r){var i=tn({},t[e]);r!=null&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t=Xt(e,2),n=t[0],r=t[1];(i!=null&&i[n]||i!=null&&i[r])&&(i[r]??(i[r]=i?.[n]))});var a=tn(tn({},n),i);return Object.keys(a).forEach(function(e){a[e]===t[e]&&delete a[e]}),a}var Sn=typeof CSSINJS_STATISTIC<`u`,Cn=!0;function wn(){var e=[...arguments];if(!Sn)return Object.assign.apply(Object,[{}].concat(e));Cn=!1;var t={};return e.forEach(function(e){Gt(e)===`object`&&Object.keys(e).forEach(function(n){Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:function(){return e[n]}})})}),Cn=!0,t}var Tn={};function En(){}var Dn=function(e){var t,n=e,r=En;return Sn&&typeof Proxy<`u`&&(t=new Set,n=new Proxy(e,{get:function(e,n){if(Cn){var r;(r=t)==null||r.add(n)}return e[n]}}),r=function(e,n){Tn[e]={global:Array.from(t),component:tn(tn({},Tn[e]?.component),n)}}),{token:n,keys:t,flush:r}};function On(e,t,n){return typeof n==`function`?n(wn(t,t[e]??{})):n??{}}function kn(e){return e===`js`?{max:Math.max,min:Math.min}:{max:function(){return`max(${[...arguments].map(function(e){return Q(e)}).join(`,`)})`},min:function(){return`min(${[...arguments].map(function(e){return Q(e)}).join(`,`)})`}}}var An=1e3*60*10,jn=new(function(){function e(){nn(this,e),$t(this,`map`,new Map),$t(this,`objectIDMap`,new WeakMap),$t(this,`nextID`,0),$t(this,`lastAccessBeat`,new Map),$t(this,`accessBeat`,0)}return an(e,[{key:`set`,value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:`get`,value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:`getCompositeKey`,value:function(e){var t=this;return e.map(function(e){return e&&Gt(e)===`object`?`obj_${t.getObjectID(e)}`:`${Gt(e)}_${e}`}).join(`|`)}},{key:`getObjectID`,value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:`clear`,value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>An&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());function Mn(e,t){return $.useMemo(function(){var n=jn.get(t);if(n)return n;var r=e();return jn.set(t,r),r},t)}var Nn=function(){return{}};function Pn(e){var t=e.useCSP,n=t===void 0?Nn:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function c(e,t,n,r){var i=Array.isArray(e)?e[0]:e;function a(e){return`${String(i)}${e.slice(0,1).toUpperCase()}${e.slice(1)}`}var o=r?.unitless||{},c=tn(tn({},typeof s==`function`?s(e):{}),{},$t({},a(`zIndexPopup`),!0));Object.keys(o).forEach(function(e){c[a(e)]=o[e]});var d=tn(tn({},r),{},{unitless:c,prefixToken:a}),f=u(e,t,n,d),p=l(i,n,d);return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=f(e,t),i=r?.extraCssVarPrefixCls,a=typeof i==`function`?i({prefixCls:e,rootCls:t}):i;return[n,p(a!=null&&a.length?[t].concat(Lt(a)):t)]}}function l(e,t,i){var a=i.unitless,o=i.prefixToken,s=i.ignore;return function(c){var l=r(),u=l.cssVar,d=l.realToken,f=n();return dt({path:[e],prefix:u.prefix,key:u.key,unitless:a,ignore:s,token:d,scope:c,nonce:function(){return f.nonce}},function(){var n=On(e,d,t),r=xn(e,d,n,{deprecatedTokens:i?.deprecatedTokens});return n&&Object.keys(n).forEach(function(e){r[o(e)]=r[e],delete r[e]}),r}),u?.key}}function u(t,s,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=Xt(u,1)[0],f=u.join(`-`),p=e.layer||{name:`antd`};return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,u=r(),m=u.theme,h=u.realToken,g=u.hashId,_=u.token,v=u.cssVar,y=u.zeroRuntime;if((0,$.useMemo)(function(){return y},[]))return g;var b=i(),x=b.rootPrefixCls,S=b.iconPrefixCls,C=n(),w=`css`,T=Mn(function(){var e=new Set;return Object.keys(l.unitless||{}).forEach(function(t){e.add(ct(t,v.prefix)),e.add(ct(t,bn(d,v.prefix)))}),yn(w,e)},[w,d,v?.prefix]),E=kn(w),D=E.max,O=E.min,k={theme:m,token:_,hashId:g,nonce:function(){return C.nonce},clientOnly:l.clientOnly,layer:p,order:l.order||-999};return typeof a==`function`&&st(tn(tn({},k),{},{clientOnly:!1,path:[`Shared`,x]}),function(){return a(_,{prefix:{rootPrefixCls:x,iconPrefixCls:S},csp:C})}),st(tn(tn({},k),{},{path:[f,e,S]}),function(){if(l.injectStyle===!1)return[];var n=Dn(_),r=n.token,i=n.flush,a=On(d,h,c),u=`.${e}`,f=xn(d,h,a,{deprecatedTokens:l.deprecatedTokens});a&&Gt(a)===`object`&&Object.keys(a).forEach(function(e){a[e]=`var(${ct(e,bn(d,v.prefix))})`});var p=wn(r,{componentCls:u,prefixCls:e,iconCls:`.${S}`,antCls:`.${x}`,calc:T,max:D,min:O},a),m=s(p,{hashId:g,prefixCls:e,rootPrefixCls:x,iconPrefixCls:S});i(d,f);var y=typeof o==`function`?o(p,e,t,l.resetFont):null;return[l.resetStyle===!1?null:y,m]}),g}}function d(e,t,n){var r=u(e,t,n,tn({resetStyle:!1,order:-998},arguments.length>3&&arguments[3]!==void 0?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,n===void 0?t:n),null}}return{genStyleHooks:c,genSubStyleComponent:d,genComponentStyleHook:u}}var Fn=[`blue`,`purple`,`cyan`,`green`,`magenta`,`pink`,`red`,`orange`,`yellow`,`volcano`,`geekblue`,`lime`,`gold`];function In(e){return(e+8)/e}function Ln(e){let t=Array.from({length:10}).map((t,n)=>{let r=n-1,i=e*Math.E**(r/5);return Math.floor((n>1?Math.floor(i):Math.ceil(i))/2)*2});return t[1]=e,t.map(e=>({size:e,lineHeight:In(e)}))}var Rn=`6.4.3`,zn={blue:`#1677FF`,purple:`#722ED1`,cyan:`#13C2C2`,green:`#52C41A`,magenta:`#EB2F96`,pink:`#EB2F96`,red:`#F5222D`,orange:`#FA8C16`,yellow:`#FADB14`,volcano:`#FA541C`,geekblue:`#2F54EB`,gold:`#FAAD14`,lime:`#A0D911`},Bn={...zn,colorPrimary:`#1677ff`,colorSuccess:`#52c41a`,colorWarning:`#faad14`,colorError:`#ff4d4f`,colorInfo:`#1677ff`,colorLink:``,colorTextBase:``,colorBgBase:``,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
4
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
5
+ 'Noto Color Emoji'`,fontFamilyCode:`'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace`,fontSize:14,lineWidth:1,lineType:`solid`,motionUnit:.1,motionBase:0,motionEaseOutCirc:`cubic-bezier(0.08, 0.82, 0.17, 1)`,motionEaseInOutCirc:`cubic-bezier(0.78, 0.14, 0.15, 0.86)`,motionEaseOut:`cubic-bezier(0.215, 0.61, 0.355, 1)`,motionEaseInOut:`cubic-bezier(0.645, 0.045, 0.355, 1)`,motionEaseOutBack:`cubic-bezier(0.12, 0.4, 0.29, 1.46)`,motionEaseInBack:`cubic-bezier(0.71, -0.46, 0.88, 0.6)`,motionEaseInQuint:`cubic-bezier(0.755, 0.05, 0.855, 0.06)`,motionEaseOutQuint:`cubic-bezier(0.23, 1, 0.32, 1)`,borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0};function Vn(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){let{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:o,colorPrimary:s,colorBgBase:c,colorTextBase:l}=e,u=t(s),d=t(r),f=t(i),p=t(a),m=t(o),h=n(c,l),g=t(e.colorLink||e.colorInfo),_=new pe(p[1]).mix(new pe(p[3]),50).toHexString(),v={};return Fn.forEach(n=>{let r=e[n];if(r){let e=t(r);v[`${n}Hover`]=e[5],v[`${n}Active`]=e[7]}}),{...h,colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:_,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],...v,colorBgMask:new pe(`#000`).setA(.45).toRgbString(),colorWhite:`#fff`}}var Hn=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function Un(e){let{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1,...Hn(r)}}var Wn=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Gn=e=>{let t=Ln(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],c=r[0],l=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(s*i),fontHeightLG:Math.round(l*o),fontHeightSM:Math.round(c*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Kn(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}var qn=(e,t)=>new pe(e).setA(t).toRgbString(),Jn=(e,t)=>new pe(e).darken(t).toHexString(),Yn=e=>{let t=Be(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Xn=(e,t,n)=>{let r=e||`#fff`,i=t||`#000`;return{colorBgBase:r,colorTextBase:i,colorShadow:n||`#000`,colorText:qn(i,.88),colorTextSecondary:qn(i,.65),colorTextTertiary:qn(i,.45),colorTextQuaternary:qn(i,.25),colorFill:qn(i,.15),colorFillSecondary:qn(i,.06),colorFillTertiary:qn(i,.04),colorFillQuaternary:qn(i,.02),colorBgSolid:qn(i,1),colorBgSolidHover:qn(i,.75),colorBgSolidActive:qn(i,.95),colorBgLayout:Jn(r,4),colorBgContainer:Jn(r,0),colorBgElevated:Jn(r,0),colorBgSpotlight:qn(i,.85),colorBgBlur:`transparent`,colorBorder:Jn(r,15),colorBorderDisabled:Jn(r,15),colorBorderSecondary:Jn(r,6)}};function Zn(e){Te.pink=Te.magenta,de.pink=de.magenta;let t=Object.keys(zn).map(t=>{let n=e[t]===Te[t]?de[t]:Be(e[t]);return Array.from({length:10},()=>1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e),{})}).reduce((e,t)=>(e={...e,...t},e),{});return{...e,...t,...Vn(e,{generateColorPalettes:Yn,generateNeutralColorPalettes:Xn}),...Gn(e.fontSize),...Kn(e),...Wn(e),...Un(e)}}var Qn=it(Zn),$n={token:Bn,override:{override:Bn},hashed:!0},er=$.createContext($n);function tr(e){return e>=0&&e<=255}function nr(e,t){let{r:n,g:r,b:i,a}=new pe(e).toRgb();if(a<1)return e;let{r:o,g:s,b:c}=new pe(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-o*(1-e))/e),a=Math.round((r-s*(1-e))/e),l=Math.round((i-c*(1-e))/e);if(tr(t)&&tr(a)&&tr(l))return new pe({r:t,g:a,b:l,a:Math.round(e*100)/100}).toRgbString()}return new pe({r:n,g:r,b:i,a:1}).toRgbString()}function rr(e){let{override:t,...n}=e,r={...t};Object.keys(Bn).forEach(e=>{delete r[e]});let i={...n,...r},a=new pe(i.colorShadow),o=a.a,s=e=>a.clone().setA(o*e).toRgbString(),c=1200,l=1600,u=1920;return i.motion===!1&&(i.motionDurationFast=`0s`,i.motionDurationMid=`0s`,i.motionDurationSlow=`0s`),{...i,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:nr(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:nr(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:nr(i.colorWarningBg,i.colorBgContainer),colorErrorAffix:i.colorError,colorWarningAffix:i.colorWarning,fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:nr(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:`none`,linkHoverDecoration:`none`,linkFocusDecoration:`none`,controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
6
+ 0 6px 16px 0 ${s(.08)},
7
+ 0 3px 6px -4px ${s(.12)},
8
+ 0 9px 28px 8px ${s(.05)}
9
+ `,boxShadowSecondary:`
10
+ 0 6px 16px 0 ${s(.08)},
11
+ 0 3px 6px -4px ${s(.12)},
12
+ 0 9px 28px 8px ${s(.05)}
13
+ `,boxShadowTertiary:`
14
+ 0 1px 2px 0 ${s(.03)},
15
+ 0 1px 6px -1px ${s(.02)},
16
+ 0 2px 4px 0 ${s(.02)}
17
+ `,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:l-1,screenXXL:l,screenXXLMin:l,screenXXLMax:u-1,screenXXXL:u,screenXXXLMin:u,boxShadowPopoverArrow:`2px 2px 5px ${s(.05)}`,boxShadowCard:`
18
+ 0 1px 2px -2px ${s(.16)},
19
+ 0 3px 6px 0 ${s(.12)},
20
+ 0 5px 12px 4px ${s(.09)}
21
+ `,boxShadowDrawerRight:`
22
+ -6px 0 16px 0 ${s(.08)},
23
+ -3px 0 6px -4px ${s(.12)},
24
+ -9px 0 28px 8px ${s(.05)}
25
+ `,boxShadowDrawerLeft:`
26
+ 6px 0 16px 0 ${s(.08)},
27
+ 3px 0 6px -4px ${s(.12)},
28
+ 9px 0 28px 8px ${s(.05)}
29
+ `,boxShadowDrawerUp:`
30
+ 0 6px 16px 0 ${s(.08)},
31
+ 0 3px 6px -4px ${s(.12)},
32
+ 0 9px 28px 8px ${s(.05)}
33
+ `,boxShadowDrawerDown:`
34
+ 0 -6px 16px 0 ${s(.08)},
35
+ 0 -3px 6px -4px ${s(.12)},
36
+ 0 -9px 28px 8px ${s(.05)}
37
+ `,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${s(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${s(.08)}`,...r}}var ir={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},ar={motionBase:!0,motionUnit:!0},or={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},sr=(e,t,n)=>{let r=n.getDerivativeToken(e),{override:i,...a}=t,o={...r,override:i};return o=rr(o),a&&Object.entries(a).forEach(([e,t])=>{let{theme:n,...r}=t,i=r;n&&(i=sr({...o,...r},{override:r},n)),o[e]=i}),o};function cr(){let{token:e,hashed:t,theme:n,override:r,cssVar:i,zeroRuntime:a}=$.useContext(er),{csp:o,getPrefixCls:s}=$.useContext(Vt),c={prefix:i?.prefix??s(),key:i?.key??`css-var-root`},l=`${Rn}-${t||``}`,u=n||Qn,[d,f,p]=lt(u,[Bn,e],{salt:l,override:r,getComputedToken:sr,cssVar:{...c,unitless:ir,ignore:ar,preserve:or},nonce:o?.nonce});return[u,p,t?f:``,d,c,!!a]}var lr={overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`},ur=(e,t=!1)=>({boxSizing:`border-box`,margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:`none`,fontFamily:t?`inherit`:e.fontFamily}),dr=()=>({display:`inline-flex`,alignItems:`center`,color:`inherit`,fontStyle:`normal`,lineHeight:0,textAlign:`center`,textTransform:`none`,verticalAlign:`-0.125em`,textRendering:`optimizeLegibility`,"-webkit-font-smoothing":`antialiased`,"-moz-osx-font-smoothing":`grayscale`,"> *":{lineHeight:1},svg:{display:`inline-block`}}),fr=()=>({"&::before":{display:`table`,content:`""`},"&::after":{display:`table`,clear:`both`,content:`""`}}),pr=(e,t)=>({outline:`${Q(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),mr=(e,t)=>({"&:focus-visible":pr(e,t)}),hr=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:`transparent`,outline:`none`,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":`objects`,"&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},...mr(e),"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}}),gr=(e,t,n,r)=>{let i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:`border-box`,"&::before, &::after":{boxSizing:`border-box`}},s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...s,...o,[i]:o}}},_r=e=>({[`.${e}`]:{...dr(),[`.${e} .${e}-icon`]:{display:`block`}}}),vr=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:`none`,userSelect:`none`,...mr(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:yr,genComponentStyleHook:br,genSubStyleComponent:xr}=Pn({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,$.useContext)(Vt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,n,r,i,a]=cr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i,zeroRuntime:a}},useCSP:()=>{let{csp:e}=(0,$.useContext)(Vt);return e??{}},getResetStyles:(e,t)=>{let n=hr(e);return[n,{"&":n},_r(t?.prefix.iconPrefixCls??`anticon`)]},getCommonStyle:gr,getCompUnitless:()=>ir}),Sr=(e,t)=>{let n=`--${e.replace(/\./g,``)}-${t}-`;return[e=>`${n}${e}`,(e,t)=>t?`var(${n}${e}, ${t})`:`var(${n}${e})`]};function Cr(e,t){return Fn.reduce((n,r)=>{let i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return{...n,...t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s})}},{})}var wr=(e,t)=>{let[n,r]=cr();return st({theme:n,token:r,hashId:``,path:[`ant-design-icons`,e],nonce:()=>t?.nonce,layer:{name:`antd`}},()=>_r(e))},Tr=yr(`Affix`,e=>{let{componentCls:t}=e;return{[t]:{position:`fixed`,zIndex:e.zIndexPopup}}},e=>({zIndexPopup:e.zIndexBase+10}));function Er(e){return e===window?{top:0,bottom:window.innerHeight}:e.getBoundingClientRect()}function Dr(e,t,n){if(n!==void 0&&Math.round(t.top)>Math.round(e.top)-n)return n+t.top}function Or(e,t,n){if(n!==void 0&&Math.round(t.bottom)<Math.round(e.bottom)+n)return n+(window.innerHeight-t.bottom)}var kr=[`resize`,`scroll`,`touchstart`,`touchmove`,`touchend`,`pageshow`,`load`],Ar=()=>typeof window<`u`?window:null,jr=0,Mr=1,Nr=$.forwardRef((e,t)=>{let{style:n,offsetTop:r,offsetBottom:i,prefixCls:a,className:o,rootClassName:s,children:c,target:l,onChange:u,onTestUpdatePosition:d,...f}=e,{getPrefixCls:p,className:m,style:h}=Wt(`affix`),{getTargetContainer:g}=$.useContext(Vt),_=p(`affix`,a),[v,y]=$.useState(!1),[b,x]=$.useState(),[S,C]=$.useState(),w=$.useRef(jr),T=$.useRef(null),E=$.useRef(null),D=$.useRef(null),O=$.useRef(null),k=$.useRef(null),A=l??g??Ar,j=i===void 0&&r===void 0?0:r,M=()=>{if(w.current!==Mr||!O.current||!D.current||!A)return;let e=A();if(e){let t={status:jr},n=Er(D.current);if(n.top===0&&n.left===0&&n.width===0&&n.height===0)return;let r=Er(e),a=Dr(n,r,j),o=Or(n,r,i);a===void 0?o!==void 0&&(t.affixStyle={position:`fixed`,bottom:o,width:n.width,height:n.height},t.placeholderStyle={width:n.width,height:n.height}):(t.affixStyle={position:`fixed`,top:a,width:n.width,height:n.height},t.placeholderStyle={width:n.width,height:n.height}),t.lastAffix=!!t.affixStyle,v!==t.lastAffix&&u?.(t.lastAffix),w.current=t.status,x(t.affixStyle),C(t.placeholderStyle),y(t.lastAffix)}},N=()=>{w.current=Mr,M()},P=Rt(()=>{N()}),F=Rt(()=>{if(A&&b){let e=A();if(e&&D.current){let t=Er(e),n=Er(D.current),r=Dr(n,t,j),a=Or(n,t,i);if(r!==void 0&&b.top===r||a!==void 0&&b.bottom===a)return}}N()}),I=()=>{let e=A?.();e&&(kr.forEach(t=>{E.current&&T.current?.removeEventListener(t,E.current),e?.addEventListener(t,F)}),T.current=e,E.current=F)},L=()=>{let e=A?.();kr.forEach(t=>{e?.removeEventListener(t,F),E.current&&T.current?.removeEventListener(t,E.current)}),P.cancel(),F.cancel()};$.useImperativeHandle(t,()=>({updatePosition:P})),$.useEffect(()=>(k.current=setTimeout(I),()=>{k.current&&(clearTimeout(k.current),k.current=null),L()}),[]),$.useEffect(()=>(I(),()=>L()),[l,b,v,r,i]),$.useEffect(()=>{P()},[l,r,i]);let[R,z]=Tr(_),B=X({[X(s,R,_,z)]:b});return $.createElement(jt,{onResize:P},$.createElement(`div`,{style:{...h,...n},className:X(o,m),ref:D,...f},b&&$.createElement(`div`,{style:S,"aria-hidden":`true`}),$.createElement(`div`,{className:B,ref:O,style:b},$.createElement(jt,{onResize:P},c))))}),Pr=$.createContext({}),Fr=e=>{let{children:t,...n}=e,r=$.useMemo(()=>({motion:n.motion}),[n.motion]);return $.createElement(Pr.Provider,{value:r},t)},Ir=`none`,Lr=`appear`,Rr=`enter`,zr=`leave`,Br=`none`,Vr=`prepare`,Hr=`start`,Ur=`active`,Wr=`prepared`;function Gr(e,t){let n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function Kr(e,t){let n={animationend:Gr(`Animation`,`AnimationEnd`),transitionend:Gr(`Transition`,`TransitionEnd`)};return e&&(`AnimationEvent`in t||delete n.animationend.animation,`TransitionEvent`in t||delete n.transitionend.transition),n}var qr=Kr(et(),typeof window<`u`?window:{}),Jr={};et()&&({style:Jr}=document.createElement(`div`));var Yr={};function Xr(e){if(Yr[e])return Yr[e];let t=qr[e];if(t){let n=Object.keys(t),r=n.length;for(let i=0;i<r;i+=1){let r=n[i];if(Object.prototype.hasOwnProperty.call(t,r)&&r in Jr)return Yr[e]=t[r],Yr[e]}}return``}var Zr=Xr(`animationend`),Qr=Xr(`transitionend`),$r=!!(Zr&&Qr),ei=Zr||`animationend`,ti=Qr||`transitionend`;function ni(e,t){return e?typeof e==`object`?e[t.replace(/-\w/g,e=>e[1].toUpperCase())]:`${e}-${t}`:null}var ri=(e=>{let t=(0,$.useRef)();function n(t){t&&(t.removeEventListener(ti,e),t.removeEventListener(ei,e))}function r(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(ti,e),r.addEventListener(ei,e),t.current=r)}return $.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),ii=et()?$.useLayoutEffect:$.useEffect,ai=(()=>{let e=$.useRef(null);function t(){Y.cancel(e.current)}function n(r,i=2){t();let a=Y(()=>{i<=1?r({isCanceled:()=>a!==e.current}):n(r,i-1)});e.current=a}return $.useEffect(()=>()=>{t()},[]),[n,t]}),oi=[Vr,Hr,Ur,`end`],si=[Vr,Wr];function ci(e){return e===`active`||e===`end`}var li=((e,t,n)=>{let[r,i]=E(Br),[a,o]=ai();function s(){i(Vr,!0)}let c=t?si:oi;return ii(()=>{if(r!==`none`&&r!==`end`){let e=c[c.indexOf(r)+1],t=n(r);t===!1?i(e,!0):e&&a(n=>{function r(){n.isCanceled()||i(e,!0)}t===!0?r():Promise.resolve(t).then(r)})}},[e,r]),$.useEffect(()=>()=>{o()},[]),[s,r]});function ui(e,t,n,{motionEnter:r=!0,motionAppear:i=!0,motionLeave:a=!0,motionDeadline:o,motionLeaveImmediately:s,onAppearPrepare:c,onEnterPrepare:l,onLeavePrepare:u,onAppearStart:d,onEnterStart:f,onLeaveStart:p,onAppearActive:m,onEnterActive:h,onLeaveActive:g,onAppearEnd:_,onEnterEnd:v,onLeaveEnd:y,onVisibleChanged:x}){let[S,C]=$.useState(),[w,T]=b(Ir),[E,D]=$.useState([null,null]),O=w(),k=(0,$.useRef)(!1),A=(0,$.useRef)(null);function j(){return n()}let M=(0,$.useRef)(!1);function N(){T(Ir),D([null,null])}let P=J(e=>{let t=w();if(t===`none`)return;let n=j();if(e&&!e.deadline&&e.target!==n)return;let r=M.current,i;t===`appear`&&r?i=_?.(n,e):t===`enter`&&r?i=v?.(n,e):t===`leave`&&r&&(i=y?.(n,e)),r&&i!==!1&&N()}),[F]=ri(P),I=e=>{switch(e){case Lr:return{[Vr]:c,[Hr]:d,[Ur]:m};case Rr:return{[Vr]:l,[Hr]:f,[Ur]:h};case zr:return{[Vr]:u,[Hr]:p,[Ur]:g};default:return{}}},L=$.useMemo(()=>I(O),[O]),[R,z]=li(O,!e,e=>{if(e===`prepare`){let e=L[Vr];return e?e(j()):!1}return e in L&&D([L[e]?.(j(),null)||null,e]),e===`active`&&O!==`none`&&(F(j()),o>0&&(clearTimeout(A.current),A.current=setTimeout(()=>{P({deadline:!0})},o))),e===`prepared`&&N(),!0});M.current=ci(z);let B=(0,$.useRef)(null);ii(()=>{if(k.current&&B.current===t)return;C(t);let n=k.current;k.current=!0;let o;!n&&t&&i&&(o=Lr),n&&t&&r&&(o=Rr),(n&&!t&&a||!n&&s&&!t&&a)&&(o=zr);let c=I(o);o&&(e||c.prepare)?(T(o),R()):T(Ir),B.current=t},[t]),(0,$.useEffect)(()=>{(O===`appear`&&!i||O===`enter`&&!r||O===`leave`&&!a)&&T(Ir)},[i,r,a]),(0,$.useEffect)(()=>()=>{k.current=!1,clearTimeout(A.current)},[]);let V=$.useRef(!1);(0,$.useEffect)(()=>{S&&(V.current=!0),S!==void 0&&O===`none`&&((V.current||S)&&x?.(S),V.current=!0)},[S,O]);let H=E[0];L.prepare&&z===`start`&&(H={transition:`none`,...H});let U=E[1];return[w,z,H,S??t,!k.current&&O===`none`&&e&&i?`NONE`:z===`start`||z===`active`?U===z:!0]}function di(e){return e?.length<2}function fi(e){let t=e;typeof e==`object`&&({transitionSupport:t}=e);function n(e,n){return!!(e.motionName&&t&&n!==!1)}let r=$.forwardRef((e,t)=>{let{visible:r=!0,removeOnLeave:i=!0,forceRender:a,children:o,motionName:s,leavedClassName:c,eventProps:l}=e,{motion:u}=$.useContext(Pr),d=n(e,u),f=(0,$.useRef)();function p(){return I(f.current)}let[m,h,g,_,v]=ui(d,r,p,e),y=m(),b=$.useRef(_);_&&(b.current=!0);let x=$.useMemo(()=>{let e={};return Object.defineProperties(e,{nativeElement:{enumerable:!0,get:p},inMotion:{enumerable:!0,get:()=>()=>m()!==Ir},enableMotion:{enumerable:!0,get:()=>()=>d}}),e},[]);$.useImperativeHandle(t,()=>x,[]);let C=$.useRef(0);v&&(C.current+=1);let w=$.useMemo(()=>{if(v===`NONE`)return null;let e,t={...l,visible:r};if(!o)e=null;else if(y===`none`)e=_?o({...t},f):!i&&b.current&&c?o({...t,className:c},f):a||!i&&!c?o({...t,style:{display:`none`}},f):null;else{let n;h===`prepare`?n=`prepare`:ci(h)?n=`active`:h===`start`&&(n=`start`);let r=ni(s,`${y}-${n}`);e=o({...t,className:X(ni(s,y),{[r]:r&&n,[s]:typeof s==`string`}),style:g},f)}return e},[C.current]);if(di(o)&&Xe(w)){let e=z(w);if(e!==f)return $.cloneElement(w,{ref:S(e,f)})}return w});return r.displayName=`CSSMotion`,r}var pi=fi($r),mi=`keep`,hi=`remove`,gi=`removed`;function _i(e){let t;return t=e&&typeof e==`object`&&`key`in e?e:{key:e},{...t,key:String(t.key)}}function vi(e=[]){return e.map(_i)}function yi(e=[],t=[]){let n=[],r=0,i=t.length,a=vi(e),o=vi(t);a.forEach(e=>{let t=!1;for(let a=r;a<i;a+=1){let i=o[a];if(i.key===e.key){r<a&&(n=n.concat(o.slice(r,a).map(e=>({...e,status:`add`}))),r=a),n.push({...i,status:mi}),r+=1,t=!0;break}}t||n.push({...e,status:hi})}),r<i&&(n=n.concat(o.slice(r).map(e=>({...e,status:`add`}))));let s={};return n.forEach(({key:e})=>{s[e]=(s[e]||0)+1}),Object.keys(s).filter(e=>s[e]>1).forEach(e=>{n=n.filter(({key:t,status:n})=>t!==e||n!==`remove`),n.forEach(t=>{t.key===e&&(t.status=mi)})}),n}function bi(){return bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bi.apply(this,arguments)}var xi=[`eventProps`,`visible`,`children`,`motionName`,`motionAppear`,`motionEnter`,`motionLeave`,`motionLeaveImmediately`,`motionDeadline`,`removeOnLeave`,`leavedClassName`,`onAppearPrepare`,`onAppearStart`,`onAppearActive`,`onAppearEnd`,`onEnterStart`,`onEnterActive`,`onEnterEnd`,`onLeaveStart`,`onLeaveActive`,`onLeaveEnd`];function Si(e,t=pi){class n extends $.Component{constructor(...e){super(...e),Z(this,`state`,{keyEntities:[]}),Z(this,`removeKey`,e=>{this.setState(t=>({keyEntities:t.keyEntities.map(t=>t.key===e?{...t,status:gi}:t)}),()=>{let{keyEntities:e}=this.state;e.filter(({status:e})=>e!==`removed`).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})})}static getDerivedStateFromProps({keys:e},{keyEntities:t}){return{keyEntities:yi(t,vi(e)).filter(e=>{let n=t.find(({key:t})=>e.key===t);return!(n&&n.status===`removed`&&e.status===`remove`)})}}render(){let{keyEntities:e}=this.state,{component:n,children:r,onVisibleChanged:i,onAllRemoved:a,...o}=this.props,s=n||$.Fragment,c={};return xi.forEach(e=>{c[e]=o[e],delete o[e]}),delete o.keys,$.createElement(s,o,e.map(({status:e,...n},a)=>{let o=e===`add`||e===`keep`;return $.createElement(t,bi({},c,{key:n.key,visible:o,eventProps:n,onVisibleChanged:e=>{i?.(e,{key:n.key}),e||this.removeKey(n.key)}}),di(r)?e=>r({...e,index:a}):(e,t)=>r({...e,index:a},t))}))}}return Z(n,`defaultProps`,{component:`div`}),n}var Ci=Si($r),wi=pi,Ti=e=>e!=null,Ei=e=>typeof e==`number`&&!Number.isNaN(e),Di=e=>typeof e==`string`,Oi=e=>typeof e==`object`&&!!e,ki=e=>typeof e==`function`,Ai=e=>Ti(e)&&ki(e.then),ji=e=>typeof e!=`object`&&!ki(e)||e===null,Mi=e=>Oi(e)&&`propertyName`in e&&Di(e.propertyName),Ni=(e,t)=>{let n={...e};return Object.keys(t).forEach(e=>{t[e]._default?n[e]||(n[e]={}):n[e]=Ni(n[e],t[e])}),n},Pi=(e={},...t)=>t.filter(e=>!!e).reduce((t,n)=>(Object.keys(n).forEach(r=>{let i=e[r],a=n[r];if(i)if(Oi(a))t[r]=Pi(i,t[r],a);else{let{_default:e}=i;e&&(t[r]=t[r]||{},t[r][e]=X(t[r][e],a))}else t[r]=X(t[r],a)}),t),{}),Fi=(e,...t)=>$.useMemo(()=>Pi.apply(void 0,[e].concat(t)),[e].concat(t)),Ii=(...e)=>e.filter(e=>!!e).reduce((e,t={})=>(Object.keys(t).forEach(n=>{e[n]={...e[n],...t[n]}}),e),{}),Li=(...e)=>$.useMemo(()=>Ii.apply(void 0,e),[].concat(e)),Ri=(e,t)=>ki(e)?e(t):e,zi=(e,t,n,r)=>{let i=e.map(e=>e?Ri(e,n):void 0),a=t.map(e=>e?Ri(e,n):void 0),o=Fi.apply(void 0,[r].concat(Lt(i))),s=Li.apply(void 0,Lt(a));return $.useMemo(()=>r?[Ni(o,r),Ni(s,r)]:[o,s],[o,s,r])},Bi=(e,t,n)=>({background:e,[`${n}-icon`]:{color:t}}),Vi=e=>{let{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:a,fontSizeLG:o,lineHeight:s,borderRadiusLG:c,motionEaseInOutCirc:l,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:m,lineWidth:h,lineType:g,colorSuccessBorder:_,colorWarningBorder:v,colorErrorBorder:y,colorInfoBorder:b}=e;return{[t]:{...ur(e),position:`relative`,display:`flex`,alignItems:`center`,padding:m,wordWrap:`break-word`,borderRadius:c,borderWidth:Q(h),borderStyle:g,[`&${t}-success`]:{borderColor:_},[`&${t}-info`]:{borderColor:b},[`&${t}-warning`]:{borderColor:v},[`&${t}-error`]:{borderColor:y},[`&${t}-filled`]:{borderColor:`transparent`},[`&${t}-rtl`]:{direction:`rtl`},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:`none`,fontSize:a,lineHeight:s},"&-title":{color:f},[`&${t}-motion-leave`]:{overflow:`hidden`,opacity:1,transition:[`max-height`,`opacity`,`padding-top`,`padding-bottom`,`margin-bottom`].map(e=>`${e} ${n} ${l}`).join(`, `)},[`&${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:i,fontSize:u,lineHeight:0},[`${t}-title`]:{display:`block`,marginBottom:r,color:f,fontSize:o},[`${t}-description`]:{display:`block`,color:d}},[`${t}-banner`]:{marginBottom:0,border:`0 !important`,borderRadius:0}}},Hi=e=>{let{componentCls:t,colorSuccess:n,colorSuccessBg:r,colorWarning:i,colorWarningBg:a,colorError:o,colorErrorBg:s,colorInfo:c,colorInfoBg:l}=e;return{[t]:{"&-success":Bi(r,n,t),"&-info":Bi(l,c,t),"&-warning":Bi(a,i,t),"&-error":{...Bi(s,o,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},Ui=e=>{let{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:a,colorIcon:o,colorIconHover:s}=e;return{[t]:{"&-actions":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:`hidden`,fontSize:a,lineHeight:Q(a),backgroundColor:`transparent`,border:`none`,cursor:`pointer`,...mr(e),[`${n}-close`]:{color:o,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:o,transition:`color ${r}`,"&:hover":{color:s}}}}},Wi=yr(`Alert`,e=>[Vi(e),Hi(e),Ui(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})),Gi=e=>{let{icon:t,type:n,className:r,style:i,successIcon:a,infoIcon:o,warningIcon:s,errorIcon:c}=e,l={success:a??$.createElement(L,null),info:o??$.createElement(C,null),error:c??$.createElement(ie,null),warning:s??$.createElement(re,null)};return $.createElement(`span`,{className:r,style:i},t??l[n])},Ki=e=>{let{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:a,className:o,style:s}=e,c=r===!0||r===void 0?$.createElement(ne,null):r;return t?$.createElement(`button`,{type:`button`,onClick:i,className:X(`${n}-close-icon`,o),tabIndex:0,style:s,...a},c):null},qi=$.forwardRef((e,t)=>{let{description:n,prefixCls:r,message:i,title:a,banner:o,className:s,rootClassName:c,style:l,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:p,showIcon:m,closable:h,closeText:g,closeIcon:_,action:v,id:y,styles:b,classNames:x,...C}=e,w=a??i,[T,E]=$.useState(!1),D=$.useRef(null);$.useImperativeHandle(t,()=>({nativeElement:D.current}));let{getPrefixCls:O,direction:k,variant:A,closable:j,closeIcon:M,className:N,style:P,classNames:F,styles:I,successIcon:L,infoIcon:R,warningIcon:z,errorIcon:B}=Wt(`alert`),H=O(`alert`,r),[U,W]=Wi(H),{onClose:G,afterClose:ee}=Oi(h)?h:{},K=t=>{E(!0),(G??e.onClose)?.(t)},q=$.useMemo(()=>e.type===void 0?o?`warning`:`info`:e.type,[e.type,o]),te=e.variant??A??`outlined`,ne=$.useMemo(()=>Oi(h)&&h.closeIcon||g?!0:typeof h==`boolean`?h:_!==!1&&Ti(_)?!0:!!j,[g,_,h,j]),re=o&&m===void 0?!0:m,J={...e,prefixCls:H,variant:te,type:q,showIcon:re,closable:ne},[ie,ae]=zi([F,x],[I,b],{props:J}),oe=X(H,`${H}-${q}`,`${H}-${te}`,{[`${H}-with-description`]:!!n,[`${H}-no-icon`]:!re,[`${H}-banner`]:!!o,[`${H}-rtl`]:k===`rtl`},N,s,c,ie.root,W,U),se=V(C,{aria:!0,data:!0}),ce=$.useMemo(()=>Oi(h)&&h.closeIcon?h.closeIcon:g||(_===void 0?Oi(j)&&j.closeIcon?j.closeIcon:M:_),[_,h,j,g,M]),le=$.useMemo(()=>{let e=h??j;return Oi(e)?V(e,{data:!0,aria:!0}):{}},[h,j]);return $.createElement(wi,{visible:!T,motionName:`${H}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:ee??p},({className:t,style:r},i)=>$.createElement(`div`,{id:y,ref:S(D,i),"data-show":!T,className:X(oe,t),style:{...ae.root,...P,...l,...r},onMouseEnter:u,onMouseLeave:d,onClick:f,role:`alert`,...se},re?$.createElement(Gi,{className:X(`${H}-icon`,ie.icon),style:ae.icon,description:n,icon:e.icon,prefixCls:H,type:q,successIcon:L,infoIcon:R,warningIcon:z,errorIcon:B}):null,$.createElement(`div`,{className:X(`${H}-section`,ie.section),style:ae.section},w?$.createElement(`div`,{className:X(`${H}-title`,ie.title),style:ae.title},w):null,n?$.createElement(`div`,{className:X(`${H}-description`,ie.description),style:ae.description},n):null),v?$.createElement(`div`,{className:X(`${H}-actions`,ie.actions),style:ae.actions},v):null,$.createElement(Ki,{className:ie.close,style:ae.close,isClosable:ne,prefixCls:H,closeIcon:ce,handleClose:K,ariaProps:le})))});function Ji(e,t,n){return t=ln(t),dn(e,un()?Reflect.construct(t,n||[],ln(e).constructor):t.apply(e,n))}var Yi=function(e){function t(){var e;return nn(this,t),e=Ji(this,t,arguments),e.state={error:void 0,info:{}},e}return cn(t,e),an(t,[{key:`componentDidCatch`,value:function(e,t){this.setState({error:e,info:t})}},{key:`render`,value:function(){let{message:e,title:t,description:n,id:r,children:i}=this.props,{error:a,info:o}=this.state,s=t??e,c=o?.componentStack||null,l=Ti(s)?s:a?.toString(),u=Ti(n)?n:c;return a?$.createElement(qi,{id:r,type:`error`,title:l,description:$.createElement(`pre`,{style:{fontSize:`0.9em`,overflowX:`auto`}},u)}):i}}])}($.PureComponent),Xi=qi;Xi.ErrorBoundary=Yi;var Zi=e=>typeof e==`object`&&!!e&&e.nodeType===1,Qi=(e,t)=>(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`,$i=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return Qi(n.overflowY,t)||Qi(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},ea=(e,t,n,r,i,a,o,s)=>a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0,ta=e=>e.parentElement??(e.getRootNode().host||null),na=(e,t)=>{if(typeof document>`u`)return[];let{scrollMode:n,block:r,inline:i,boundary:a,skipOverflowHiddenElements:o}=t,s=typeof a==`function`?a:e=>e!==a;if(!Zi(e))throw TypeError(`Invalid target`);let c=document.scrollingElement||document.documentElement,l=[],u=e;for(;Zi(u)&&s(u);){if(u=ta(u),u===c){l.push(u);break}u!=null&&u===document.body&&$i(u)&&!$i(document.documentElement)||u!=null&&$i(u,o)&&l.push(u)}let d=window.visualViewport?.width??innerWidth,f=window.visualViewport?.height??innerHeight,{scrollX:p,scrollY:m}=window,{height:h,width:g,top:_,right:v,bottom:y,left:b}=e.getBoundingClientRect(),{top:x,right:S,bottom:C,left:w}=(e=>{let 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),T=r===`start`||r===`nearest`?_-x:r===`end`?y+C:_+h/2-x+C,E=i===`center`?b+g/2-w+S:i===`end`?v+S:b-w,D=[];for(let e=0;e<l.length;e++){let t=l[e],{height:a,width:o,top:s,right:u,bottom:x,left:S}=t.getBoundingClientRect();if(n===`if-needed`&&_>=0&&b>=0&&y<=f&&v<=d&&(t===c&&!$i(t)||_>=s&&y<=x&&b>=S&&v<=u))return D;let C=getComputedStyle(t),w=parseInt(C.borderLeftWidth,10),O=parseInt(C.borderTopWidth,10),k=parseInt(C.borderRightWidth,10),A=parseInt(C.borderBottomWidth,10),j=0,M=0,N=`offsetWidth`in t?t.offsetWidth-t.clientWidth-w-k:0,P=`offsetHeight`in t?t.offsetHeight-t.clientHeight-O-A:0,F=`offsetWidth`in t?t.offsetWidth===0?0:o/t.offsetWidth:0,I=`offsetHeight`in t?t.offsetHeight===0?0:a/t.offsetHeight:0;if(c===t)j=r===`start`?T:r===`end`?T-f:r===`nearest`?ea(m,m+f,f,O,A,m+T,m+T+h,h):T-f/2,M=i===`start`?E:i===`center`?E-d/2:i===`end`?E-d:ea(p,p+d,d,w,k,p+E,p+E+g,g),j=Math.max(0,j+m),M=Math.max(0,M+p);else{j=r===`start`?T-s-O:r===`end`?T-x+A+P:r===`nearest`?ea(s,x,a,O,A+P,T,T+h,h):T-(s+a/2)+P/2,M=i===`start`?E-S-w:i===`center`?E-(S+o/2)+N/2:i===`end`?E-u+k+N:ea(S,u,o,w,k+N,E,E+g,g);let{scrollLeft:e,scrollTop:n}=t;j=I===0?0:Math.max(0,Math.min(n+j/I,t.scrollHeight-a/I+P)),M=F===0?0:Math.max(0,Math.min(e+M/F,t.scrollWidth-o/F+N)),T+=n-j,E+=e-M}D.push({el:t,top:j,left:M})}return D},ra=e=>!1===e?{block:`end`,inline:`nearest`}:(e=>e===Object(e)&&Object.keys(e).length!==0)(e)?e:{block:`start`,inline:`nearest`};function ia(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;let n=(e=>{let 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=>typeof e==`object`&&typeof e.behavior==`function`)(t))return t.behavior(na(e,t));let r=typeof t==`boolean`||t==null?void 0:t.behavior;for(let{el:i,top:a,left:o}of na(e,ra(t))){let e=a-n.top+n.bottom,t=o-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}var aa=e=>Ti(e)&&e===e.window,oa=e=>{if(typeof window>`u`)return 0;let t=0;return aa(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!aa(e)&&!Ei(t)&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};function sa(e,t,n,r){let i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function ca(e,t={}){let{getContainer:n=()=>window,callback:r,duration:i=450}=t,a=n(),o=oa(a),s=Date.now(),c,l=()=>{let t=Date.now()-s,n=sa(t>i?i:t,o,e,i);aa(a)?a.scrollTo(window.pageXOffset,n):a instanceof Document||a.constructor.name===`HTMLDocument`?a.documentElement.scrollTop=n:a.scrollTop=n,t<i?c=Y(l):ki(r)&&r()};return c=Y(l),()=>{Y.cancel(c)}}var la=e=>`${e}-css-var`,ua=(0,$.createContext)(void 0),da={items_per_page:`/ page`,jump_to:`Go to`,jump_to_confirm:`confirm`,page:`Page`,prev_page:`Previous Page`,next_page:`Next Page`,prev_5:`Previous 5 Pages`,next_5:`Next 5 Pages`,prev_3:`Previous 3 Pages`,next_3:`Next 3 Pages`,page_size:`Page Size`},fa={yearFormat:`YYYY`,dayFormat:`D`,cellMeridiemFormat:`A`,monthBeforeYear:!0};function pa(e){"@babel/helpers - typeof";return pa=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},pa(e)}function ma(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ha(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ma(Object(n),!0).forEach(function(t){ga(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ma(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ga(e,t,n){return t=_a(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _a(e){var t=va(e,`string`);return pa(t)==`symbol`?t:String(t)}function va(e,t){if(pa(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(pa(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var ya=ha(ha({},fa),{},{locale:`en_US`,today:`Today`,now:`Now`,backToToday:`Back to today`,ok:`OK`,clear:`Clear`,week:`Week`,month:`Month`,year:`Year`,timeSelect:`select time`,dateSelect:`select date`,weekSelect:`Choose a week`,monthSelect:`Choose a month`,yearSelect:`Choose a year`,decadeSelect:`Choose a decade`,previousMonth:`Previous month (PageUp)`,nextMonth:`Next month (PageDown)`,previousYear:`Last year (Control + left)`,nextYear:`Next year (Control + right)`,previousDecade:`Last decade`,nextDecade:`Next decade`,previousCentury:`Last century`,nextCentury:`Next century`}),ba={placeholder:`Select time`,rangePlaceholder:[`Start time`,`End time`]},xa={lang:{placeholder:`Select date`,yearPlaceholder:`Select year`,quarterPlaceholder:`Select quarter`,monthPlaceholder:`Select month`,weekPlaceholder:`Select week`,rangePlaceholder:[`Start date`,`End date`],rangeYearPlaceholder:[`Start year`,`End year`],rangeQuarterPlaceholder:[`Start quarter`,`End quarter`],rangeMonthPlaceholder:[`Start month`,`End month`],rangeWeekPlaceholder:[`Start week`,`End week`],...ya},timePickerLocale:{...ba}},Sa=xa,Ca="${label} is not a valid ${type}",wa={locale:`en`,Pagination:da,DatePicker:xa,TimePicker:ba,Calendar:Sa,global:{placeholder:`Please select`,close:`Close`,sortable:`sortable`,show:`Show`,hide:`Hide`},Table:{filterTitle:`Filter menu`,filterConfirm:`OK`,filterReset:`Reset`,filterEmptyText:`No filters`,filterCheckAll:`Select all items`,filterSearchPlaceholder:`Search in filters`,emptyText:`No data`,selectAll:`Select current page`,selectInvert:`Invert current page`,selectNone:`Clear all data`,selectionAll:`Select all data`,sortTitle:`Sort`,expand:`Expand row`,collapse:`Collapse row`,triggerDesc:`Click to sort descending`,triggerAsc:`Click to sort ascending`,cancelSort:`Click to cancel sorting`},Tour:{Next:`Next`,Previous:`Previous`,Finish:`Finish`},Modal:{okText:`OK`,cancelText:`Cancel`,justOkText:`OK`},Popconfirm:{okText:`OK`,cancelText:`Cancel`},Transfer:{titles:[``,``],searchPlaceholder:`Search here`,itemUnit:`item`,itemsUnit:`items`,remove:`Remove`,selectCurrent:`Select current page`,removeCurrent:`Remove current page`,selectAll:`Select all data`,deselectAll:`Deselect all data`,removeAll:`Remove all data`,selectInvert:`Invert current page`},Upload:{uploading:`Uploading...`,removeFile:`Remove file`,uploadError:`Upload error`,previewFile:`Preview file`,downloadFile:`Download file`},Empty:{description:`No data`},Icon:{icon:`icon`},Text:{edit:`Edit`,copy:`Copy`,copied:`Copied`,expand:`Expand`,collapse:`Collapse`},Form:{optional:`(optional)`,defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ca,method:Ca,array:Ca,object:Ca,number:Ca,date:Ca,boolean:Ca,integer:Ca,float:Ca,regexp:Ca,email:Ca,url:Ca,hex:Ca},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:`QR code expired`,refresh:`Refresh`,scanned:`Scanned`},ColorPicker:{presetEmpty:`Empty`,transparent:`Transparent`,singleColor:`Single`,gradientColor:`Gradient`}},Ta={...wa.Modal},Ea=[],Da=()=>Ea.reduce((e,t)=>({...e,...t}),wa.Modal);function Oa(e){if(e){let t={...e};return Ea.push(t),Ta=Da(),()=>{Ea=Ea.filter(e=>e!==t),Ta=Da()}}Ta={...wa.Modal}}function ka(){return Ta}var Aa=(0,$.createContext)(void 0),ja=(e,t)=>{let n=$.useContext(Aa);return[$.useMemo(()=>{let r=t||wa[e],i=n?.[e]??{};return{...ki(r)?r():r,...i||{}}},[e,t,n]),$.useMemo(()=>{let e=n?.locale;return n?.exist&&!e?wa.locale:e},[n])]},Ma=`internalMark`,Na=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;$.useEffect(()=>Oa(t?.Modal),[t]);let i=$.useMemo(()=>({...t,exist:!0}),[t]);return $.createElement(Aa.Provider,{value:i},n)},Pa=$.createContext(null),Fa=!1;function Ia(e){return typeof e==`boolean`&&(Fa=e),Fa}var La=[];function Ra(e,t){let[n]=$.useState(()=>et()?document.createElement(`div`):null),r=$.useRef(!1),i=$.useContext(Pa),[a,o]=$.useState(La),s=i||(r.current?void 0:e=>{o(t=>[e,...t])});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function l(){n.parentElement?.removeChild(n),r.current=!1}return Pe(()=>(e?i?i(c):c():l(),l),[e]),Pe(()=>{a.length&&(a.forEach(e=>e()),o(La))},[a]),[n,s]}function za(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Ba=`rc-util-locker-${Date.now()}`,Va=0;function Ha(e){let t=!!e,[n]=$.useState(()=>(Va+=1,`${Ba}_${Va}`));Pe(()=>{if(t){let e=m(document.body).width;nt(`
38
+ html body {
39
+ overflow-y: hidden;
40
+ ${za()?`width: calc(100% - ${e}px);`:``}
41
+ }`,n)}else Ze(n);return()=>{Ze(n)}},[t,n])}var Ua=[],Wa=200,Ga=0,Ka=e=>{if(e.key===`Escape`&&!e.isComposing){if(Date.now()-Ga<Wa)return;let t=Ua.length;for(let n=t-1;n>=0;--n)Ua[n].onEsc({top:n===t-1,event:e})}},qa=()=>{Ga=Date.now()};function Ja(){window.addEventListener(`keydown`,Ka),window.addEventListener(`compositionend`,qa)}function Ya(){Ua.length===0&&(window.removeEventListener(`keydown`,Ka),window.removeEventListener(`compositionend`,qa))}function Xa(e,t){let n=te(),r=J(t),i=()=>{Ua.find(e=>e.id===n)||Ua.push({id:n,onEsc:r})},a=()=>{Ua=Ua.filter(e=>e.id!==n)};(0,$.useMemo)(()=>{e?i():e||a()},[e]),(0,$.useEffect)(()=>{if(e)return i(),Ja(),()=>{a(),Ya()}},[e])}var Za=e=>e===!1?!1:!et()||!e?null:typeof e==`string`?document.querySelector(e):typeof e==`function`?e():e,Qa=$.forwardRef((e,t)=>{let{open:n,autoLock:r,getContainer:i,debug:a,autoDestroy:o=!0,children:s,onEsc:l}=e,[u,d]=$.useState(n),f=u||n;$.useEffect(()=>{(o||n)&&d(n)},[n,o]);let[p,m]=$.useState(()=>Za(i));$.useEffect(()=>{let e=Za(i);m(()=>e??null)});let[h,g]=Ra(f&&!p,a),_=p??h;Ha(r&&n&&et()&&(_===h||_===document.body)),Xa(n,l);let v=null;s&&c(s)&&t&&(v=z(s));let y=K(v,t);if(!f||!et()||p===void 0)return null;let b=_===!1||Ia(),x=s;return t&&(x=$.cloneElement(s,{ref:y})),$.createElement(Pa.Provider,{value:g},b?x:(0,Kt.createPortal)(x,_))});function $a(e){let{prefixCls:t,align:n,arrow:r,arrowPos:i}=e,{className:a,content:o,style:s}=r||{},{x:c=0,y:l=0}=i,u=$.useRef(null);if(!n||!n.points)return null;let d={position:`absolute`};if(n.autoArrow!==!1){let e=n.points[0],t=n.points[1],r=e[0],i=e[1],a=t[0],o=t[1];r===a||![`t`,`b`].includes(r)?d.top=l:r===`t`?d.top=0:d.bottom=0,i===o||![`l`,`r`].includes(i)?d.left=c:i===`l`?d.left=0:d.right=0}return $.createElement(`div`,{ref:u,className:X(`${t}-arrow`,a),style:{...d,...s}},o)}function eo(){return eo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eo.apply(this,arguments)}function to(e){let{prefixCls:t,open:n,zIndex:r,mask:i,motion:a,mobile:o}=e;return i?$.createElement(wi,eo({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:e})=>$.createElement(`div`,{style:{zIndex:r},className:X(`${t}-mask`,o&&`${t}-mobile-mask`,e)})):null}var no=$.memo(({children:e})=>e,(e,t)=>t.cache);function ro(e,t,n,r,i,a,o,s){let c=`auto`,l=e?{}:{left:`-1000vw`,top:`-1000vh`,right:c,bottom:c};if(!e&&(t||!n)){let{points:e}=r,t=r.dynamicInset||r._experimental?.dynamicInset,n=t&&e[0][1]===`r`,u=t&&e[0][0]===`b`;n?(l.right=i,l.left=c):(l.left=o,l.right=c),u?(l.bottom=a,l.top=c):(l.top=s,l.bottom=c)}return l}function io(){return io=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},io.apply(this,arguments)}var ao=$.forwardRef((e,t)=>{let{onEsc:n,popup:r,className:i,prefixCls:a,style:o,target:s,onVisibleChanged:c,open:l,keepDom:u,fresh:d,onClick:f,mask:p,arrow:m,arrowPos:h,align:g,motion:_,maskMotion:v,mobile:y,forceRender:b,getPopupContainer:x,autoDestroy:C,portal:w,children:T,zIndex:E,onMouseEnter:D,onMouseLeave:O,onPointerEnter:k,onPointerDownCapture:A,ready:j,offsetX:M,offsetY:N,offsetR:P,offsetB:F,onAlign:I,onPrepare:L,onResize:R,stretch:z,targetWidth:B,targetHeight:V}=e,H=typeof r==`function`?r():r,U=l||u,W=!!y,[G,ee,K]=$.useMemo(()=>y?[y.mask,y.maskMotion,y.motion]:[p,v,_],[y,p,v,_]),q=x?.length>0,[te,ne]=$.useState(!x||!q);Pe(()=>{!te&&q&&s&&ne(!0)},[te,q,s]);let re=J((e,t)=>{R?.(e,t),I()}),ie=ro(W,j,l,g,P,F,M,N);if(!te)return null;let ae={};return z&&(z.includes(`height`)&&V?ae.height=V:z.includes(`minHeight`)&&V&&(ae.minHeight=V),z.includes(`width`)&&B?ae.width=B:z.includes(`minWidth`)&&B&&(ae.minWidth=B)),l||(ae.pointerEvents=`none`),$.createElement(w,{open:b||U,getContainer:x&&(()=>x(s)),autoDestroy:C,onEsc:n},$.createElement(to,{prefixCls:a,open:l,zIndex:E,mask:G,motion:ee,mobile:W}),$.createElement(jt,{onResize:re,disabled:!l},e=>$.createElement(wi,io({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:`${a}-hidden`},K,{onAppearPrepare:L,onEnterPrepare:L,visible:l,onVisibleChanged:e=>{_?.onVisibleChanged?.(e),c(e)}}),({className:n,style:r},s)=>{let c=X(a,n,i,{[`${a}-mobile`]:W});return $.createElement(`div`,{ref:S(e,t,s),className:c,style:{"--arrow-x":`${h.x||0}px`,"--arrow-y":`${h.y||0}px`,...ie,...ae,...r,boxSizing:`border-box`,zIndex:E,...o},onMouseEnter:D,onMouseLeave:O,onPointerEnter:k,onClick:f,onPointerDownCapture:A},m&&$.createElement($a,{prefixCls:a,arrow:m,arrowPos:h,align:g}),$.createElement(no,{cache:!l&&!d},H))})),T)}),oo=$.createContext(null),so=$.createContext(null);function co(e){return e?Array.isArray(e)?e:[e]:[]}function lo(e,t,n){return $.useMemo(()=>{let r=co(t??e),i=co(n??e),a=new Set(r),o=new Set(i);return a.has(`hover`)&&!a.has(`click`)&&a.add(`touch`),o.has(`hover`)&&!o.has(`click`)&&o.add(`touch`),[a,o]},[e,t,n])}function uo(e=[],t=[],n){let r=(e,t)=>e[t]||``;return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function fo(e,t,n,r){let{points:i}=n,a=Object.keys(e);for(let n=0;n<a.length;n+=1){let o=a[n];if(uo(e[o]?.points,i,r))return`${t}-placement-${o}`}return``}function po(e){return e.ownerDocument.defaultView}function mo(e){let t=[],n=e?.parentElement,r=[`hidden`,`scroll`,`clip`,`auto`];for(;n;){let{overflowX:e,overflowY:i,overflow:a}=po(n).getComputedStyle(n);[e,i,a].some(e=>r.includes(e))&&t.push(n),n=n.parentElement}return t}function ho(e,t=1){return Number.isNaN(e)?t:e}function go(e){return ho(parseFloat(e),0)}function _o(e,t){let n={...e};return(t||[]).forEach(e=>{if(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)return;let{overflow:t,overflowClipMargin:r,borderTopWidth:i,borderBottomWidth:a,borderLeftWidth:o,borderRightWidth:s}=po(e).getComputedStyle(e),c=e.getBoundingClientRect(),{offsetHeight:l,clientHeight:u,offsetWidth:d,clientWidth:f}=e,p=go(i),m=go(a),h=go(o),g=go(s),_=ho(Math.round(c.width/d*1e3)/1e3),v=ho(Math.round(c.height/l*1e3)/1e3),y=(d-f-h-g)*_,b=(l-u-p-m)*v,x=p*v,S=m*v,C=h*_,w=g*_,T=0,E=0;if(t===`clip`){let e=go(r);T=e*_,E=e*v}let D=c.x+C-T,O=c.y+x-E,k=D+c.width+2*T-C-w-y,A=O+c.height+2*E-x-S-b;n.left=Math.max(n.left,D),n.top=Math.max(n.top,O),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,A)}),n}function vo(e,t=0){let n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function yo(e,t){let[n,r]=t||[];return[vo(e.width,n),vo(e.height,r)]}function bo(e=``){return[e[0],e[1]]}function xo(e,t){let n=t[0],r=t[1],i,a;return a=n===`t`?e.y:n===`b`?e.y+e.height:e.y+e.height/2,i=r===`l`?e.x:r===`r`?e.x+e.width:e.x+e.width/2,{x:i,y:a}}function So(e,t){let n={t:`b`,b:`t`,l:`r`,r:`l`},r=[...e];return r[t]=n[e[t]]||`c`,r}function Co(e){return e.join(``)}function wo(e,t,n,r,i,a,o,s){let[c,l]=$.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),u=$.useRef(0),d=$.useMemo(()=>!t||s?[]:mo(t),[t]),f=$.useRef({});e||(f.current={});let p=J(()=>{if(t&&n&&e&&!s){let e=t,s=e.ownerDocument,c=po(e),{position:u}=c.getComputedStyle(e),p=e.style.left,m=e.style.top,h=e.style.right,_=e.style.bottom,v=e.style.overflow,y=e.style.overflowX,b=e.style.overflowY,x={...i[r],...a},S=s.createElement(`div`);e.parentElement?.appendChild(S),S.style.left=`${e.offsetLeft}px`,S.style.top=`${e.offsetTop}px`,S.style.position=u,S.style.height=`${e.offsetHeight}px`,S.style.width=`${e.offsetWidth}px`,e.style.left=`0`,e.style.top=`0`,e.style.right=`auto`,e.style.bottom=`auto`,e.style.overflow=`hidden`;let C;if(Array.isArray(n))C={x:n[0],y:n[1],width:0,height:0};else{let e=n.getBoundingClientRect();e.x=e.x??e.left,e.y=e.y??e.top,C={x:e.x,y:e.y,width:e.width,height:e.height}}let w=e.getBoundingClientRect(),{height:T,width:E}=c.getComputedStyle(e);w.x=w.x??w.left,w.y=w.y??w.top;let{clientWidth:D,clientHeight:O,scrollWidth:k,scrollHeight:A,scrollTop:j,scrollLeft:N}=s.documentElement,P=w.height,F=w.width,I=C.height,L=C.width,R={left:0,top:0,right:D,bottom:O},z={left:-N,top:-j,right:k-N,bottom:A-j},{htmlRegion:B}=x,V=`visible`,H=`visibleFirst`;B!==`scroll`&&B!==H&&(B=V);let U=B===H,W=_o(z,d),G=_o(R,d),ee=B===V?G:W,K=U?G:ee;e.style.left=`auto`,e.style.top=`auto`,e.style.right=`0`,e.style.bottom=`0`;let q=e.getBoundingClientRect();e.style.left=p,e.style.top=m,e.style.right=h,e.style.bottom=_,e.style.overflow=v,e.style.overflowX=y,e.style.overflowY=b,e.parentElement?.removeChild(S);let te=ho(Math.round(F/parseFloat(E)*1e3)/1e3),ne=ho(Math.round(P/parseFloat(T)*1e3)/1e3);if(te===0||ne===0||g(n)&&!M(n))return;let{offset:re,targetOffset:J}=x,[ie,ae]=yo(w,re),[oe,se]=yo(C,J);C.x-=oe,C.y-=se;let[ce,le]=x.points||[],Y=bo(le),ue=bo(ce),de=xo(C,Y),fe=xo(w,ue),pe={...x},me=[ue,Y],X=de.x-fe.x+ie,he=de.y-fe.y+ae;function ge(e,t,n=ee){let r=w.x+e,i=w.y+t,a=r+F,o=i+P,s=Math.max(r,n.left),c=Math.max(i,n.top),l=Math.min(a,n.right),u=Math.min(o,n.bottom);return Math.max(0,(l-s)*(u-c))}let _e=ge(X,he),ve=ge(X,he,G),ye=xo(C,[`t`,`l`]),be=xo(w,[`t`,`l`]),xe=xo(C,[`b`,`r`]),Se=xo(w,[`b`,`r`]),{adjustX:Ce,adjustY:we,shiftX:Te,shiftY:Ee}=x.overflow||{},De=e=>typeof e==`boolean`?e:e>=0,Oe,ke,Ae,je;function Me(){Oe=w.y+he,ke=Oe+P,Ae=w.x+X,je=Ae+F}Me();let Ne=De(we),Pe=ue[0]===Y[0];if(Ne&&ue[0]===`t`&&(ke>K.bottom||f.current.bt)){let e=he;Pe?e-=P-I:e=ye.y-Se.y-ae;let t=ge(X,e),n=ge(X,e,G);t>_e||t===_e&&(!U||n>=ve)?(f.current.bt=!0,he=e,ae=-ae,me=[So(me[0],0),So(me[1],0)]):f.current.bt=!1}if(Ne&&ue[0]===`b`&&(Oe<K.top||f.current.tb)){let e=he;Pe?e+=P-I:e=xe.y-be.y-ae;let t=ge(X,e),n=ge(X,e,G);t>_e||t===_e&&(!U||n>=ve)?(f.current.tb=!0,he=e,ae=-ae,me=[So(me[0],0),So(me[1],0)]):f.current.tb=!1}let Fe=De(Ce),Ie=ue[1]===Y[1];if(Fe&&ue[1]===`l`&&(je>K.right||f.current.rl)){let e=X;Ie?e-=F-L:e=ye.x-Se.x-ie;let t=ge(e,he),n=ge(e,he,G);t>_e||t===_e&&(!U||n>=ve)?(f.current.rl=!0,X=e,ie=-ie,me=[So(me[0],1),So(me[1],1)]):f.current.rl=!1}if(Fe&&ue[1]===`r`&&(Ae<K.left||f.current.lr)){let e=X;Ie?e+=F-L:e=xe.x-be.x-ie;let t=ge(e,he),n=ge(e,he,G);t>_e||t===_e&&(!U||n>=ve)?(f.current.lr=!0,X=e,ie=-ie,me=[So(me[0],1),So(me[1],1)]):f.current.lr=!1}pe.points=[Co(me[0]),Co(me[1])],Me();let Le=Te===!0?0:Te;typeof Le==`number`&&(Ae<G.left&&(X-=Ae-G.left-ie,C.x+L<G.left+Le&&(X+=C.x-G.left+L-Le)),je>G.right&&(X-=je-G.right-ie,C.x>G.right-Le&&(X+=C.x-G.right+Le)));let Re=Ee===!0?0:Ee;typeof Re==`number`&&(Oe<G.top&&(he-=Oe-G.top-ae,C.y+I<G.top+Re&&(he+=C.y-G.top+I-Re)),ke>G.bottom&&(he-=ke-G.bottom-ae,C.y>G.bottom-Re&&(he+=C.y-G.bottom+Re)));let ze=w.x+X,Be=ze+F,Ve=w.y+he,He=Ve+P,Ue=C.x,We=Ue+L,Ge=C.y,Ke=Ge+I,qe=(Math.max(ze,Ue)+Math.min(Be,We))/2-ze,Je=(Math.max(Ve,Ge)+Math.min(He,Ke))/2-Ve;o?.(t,pe);let Ye=q.right-w.x-(X+w.width),Xe=q.bottom-w.y-(he+w.height);te===1&&(X=Math.floor(X),Ye=Math.floor(Ye)),ne===1&&(he=Math.floor(he),Xe=Math.floor(Xe)),l({ready:!0,offsetX:X/te,offsetY:he/ne,offsetR:Ye/te,offsetB:Xe/ne,arrowX:qe/te,arrowY:Je/ne,scaleX:te,scaleY:ne,align:pe})}}),m=()=>{u.current+=1;let e=u.current;Promise.resolve().then(()=>{u.current===e&&p()})},h=()=>{l(e=>({...e,ready:!1}))};return Pe(h,[r]),Pe(()=>{e||h()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,m]}function To(){let e=$.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)};return $.useEffect(()=>()=>{t()},[]),(n,r)=>{t(),r===0?n():e.current=setTimeout(()=>{n()},r*1e3)}}function Eo(e,t,n,r,i){Pe(()=>{if(e&&t&&n){let e=t,a=n,o=mo(e),s=mo(a),c=po(a),l=new Set([c,...o,...s]);function u(){r(),i()}return l.forEach(e=>{e.addEventListener(`scroll`,u,{passive:!0})}),c.addEventListener(`resize`,u,{passive:!0}),r(),()=>{l.forEach(e=>{e.removeEventListener(`scroll`,u),c.removeEventListener(`resize`,u)})}}},[e,t,n])}function Do(e,t,n,r,i,a,o,s){let c=$.useRef(e);c.current=e;let l=$.useRef(!1);$.useEffect(()=>{if(t&&r&&(!i||a)){let e=()=>{l.current=!1},t=e=>{c.current&&!o(e.composedPath?.()?.[0]||e.target)&&!l.current&&s(!1)},i=po(r);i.addEventListener(`pointerdown`,e,!0),i.addEventListener(`mousedown`,t,!0),i.addEventListener(`contextmenu`,t,!0);let a=Ce(n);return a&&(a.addEventListener(`mousedown`,t,!0),a.addEventListener(`contextmenu`,t,!0)),()=>{i.removeEventListener(`pointerdown`,e,!0),i.removeEventListener(`mousedown`,t,!0),i.removeEventListener(`contextmenu`,t,!0),a&&(a.removeEventListener(`mousedown`,t,!0),a.removeEventListener(`contextmenu`,t,!0))}}},[t,n,r,i,a]);function u(){l.current=!0}return u}function Oo(){let[e,t]=$.useState(null),[n,r]=$.useState(!1),[i,a]=$.useState(!1),o=$.useRef(null);return[J(e=>{e===!1?(o.current=null,r(!1)):i&&n?o.current=e:(r(!0),t(e),o.current=null,n||a(!0))}),n,e,J(e=>{e?(a(!1),o.current&&(t(o.current),o.current=null)):(a(!1),o.current=null)})]}function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ko.apply(this,arguments)}var Ao=e=>{let{prefixCls:t,isMobile:n,ready:r,open:i,align:a,offsetR:o,offsetB:s,offsetX:c,offsetY:l,arrowPos:u,popupSize:d,motion:f,uniqueContainerClassName:p,uniqueContainerStyle:m}=e,h=`${t}-unique-container`,[g,_]=$.useState(!1),v=ro(n,r,i,a,o,s,c,l),y=$.useRef(v);r&&(y.current=v);let b={};return d&&(b.width=d.width,b.height=d.height),$.createElement(wi,ko({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${h}-hidden`},f,{visible:i,onVisibleChanged:e=>{_(e)}}),({className:e,style:t})=>{let n=X(h,e,p,{[`${h}-visible`]:g});return $.createElement(`div`,{className:n,style:{"--arrow-x":`${u?.x||0}px`,"--arrow-y":`${u?.y||0}px`,...y.current,...b,...t,...m}})})},jo=({children:e,postTriggerProps:t})=>{let[n,r,i,a]=Oo(),o=$.useMemo(()=>!i||!t?i:t(i),[i,t]),[s,c]=$.useState(null),[l,u]=$.useState(null),d=$.useRef(null),f=J(e=>{d.current=e,g(e)&&s!==e&&c(e)}),p=$.useRef(null),m=To(),h=J((e,t)=>{p.current=t,m(()=>{n(e)},e.delay)}),_=e=>{m(()=>{p.current?.()||n(!1)},e)},v=J(e=>{a(e)}),[y,b,x,S,C,w,T,,,E,D]=wo(r,s,o?.target,o?.popupPlacement,o?.builtinPlacements||{},o?.popupAlign,void 0,!1),O=$.useMemo(()=>o?X(fo(o.builtinPlacements||{},o.prefixCls||``,E,!1),o.getPopupClassNameFromAlign?.(E)):``,[E,o?.getPopupClassNameFromAlign,o?.builtinPlacements,o?.prefixCls]),k=$.useMemo(()=>({show:h,hide:_}),[]);$.useEffect(()=>{D()},[o?.target]);let A=J(()=>(D(),Promise.resolve())),j=$.useRef({}),M=$.useContext(oo),N=$.useMemo(()=>({registerSubPopup:(e,t)=>{j.current[e]=t,M?.registerSubPopup(e,t)}}),[M]),P=o?.prefixCls;return $.createElement(so.Provider,{value:k},e,o&&$.createElement(oo.Provider,{value:N},$.createElement(ao,{ref:f,portal:Qa,onEsc:o.onEsc,prefixCls:P,popup:o.popup,className:X(o.popupClassName,O,`${P}-unique-controlled`),style:o.popupStyle,target:o.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:v,ready:y,offsetX:b,offsetY:x,offsetR:S,offsetB:C,onAlign:D,onPrepare:A,onResize:e=>u({width:e.offsetWidth,height:e.offsetHeight}),arrowPos:{x:w,y:T},align:E,zIndex:o.zIndex,mask:o.mask,arrow:o.arrow,motion:o.popupMotion,maskMotion:o.maskMotion,getPopupContainer:o.getPopupContainer},$.createElement(Ao,{prefixCls:P,isMobile:!1,ready:y,open:r,align:E,offsetR:S,offsetB:C,offsetX:b,offsetY:x,arrowPos:{x:w,y:T},popupSize:l,motion:o.popupMotion,uniqueContainerClassName:X(o.uniqueContainerClassName,O),uniqueContainerStyle:o.uniqueContainerStyle}))))};function Mo(e=Qa){return $.forwardRef((t,n)=>{let{prefixCls:r=`rc-trigger-popup`,children:i,action:a=`hover`,showAction:o,hideAction:s,popupVisible:c,defaultPopupVisible:l,onOpenChange:u,afterOpenChange:d,onPopupVisibleChange:f,afterPopupVisibleChange:p,mouseEnterDelay:m,mouseLeaveDelay:h=.1,focusDelay:_,blurDelay:y,mask:b,maskClosable:x=!0,getPopupContainer:S,forceRender:C,autoDestroy:w,popup:T,popupClassName:E,uniqueContainerClassName:D,uniqueContainerStyle:O,popupStyle:k,popupPlacement:A,builtinPlacements:j={},popupAlign:M,zIndex:N,stretch:P,getPopupClassNameFromAlign:F,fresh:L,unique:R,alignPoint:B,onPopupClick:V,onPopupAlign:H,arrow:U,popupMotion:W,maskMotion:G,mobile:ee,...q}=t,ne=w||!1,re=c===void 0,ie=!!ee,ae=$.useRef({}),oe=$.useContext(oo),se=$.useMemo(()=>({registerSubPopup:(e,t)=>{ae.current[e]=t,oe?.registerSubPopup(e,t)}}),[oe]),ce=$.useContext(so),le=te(),[Y,ue]=$.useState(null),de=$.useRef(null),fe=J(e=>{de.current=e,g(e)&&Y!==e&&ue(e),oe?.registerSubPopup(le,e)}),[pe,me]=$.useState(null),he=$.useRef(null),ge=J(e=>{let t=I(e);g(t)&&pe!==t&&(me(t),he.current=t)}),_e={},ve=J(e=>{let t=pe;return t?.contains(e)||Ce(t)?.host===e||e===t||Y?.contains(e)||Ce(Y)?.host===e||e===Y||Object.values(ae.current).some(t=>t?.contains(e)||e===t)}),ye=U?{...U===!0?{}:U}:null,[be,xe]=v(l||!1,c),Se=be||!1,we=$.useMemo(()=>{let e=typeof i==`function`?i({open:Se}):i;return $.Children.only(e)},[i,Se]),Te=we?.props||{},Ee=J(()=>Se),De=J((e=0)=>({popup:T,target:pe,delay:e,prefixCls:r,popupClassName:E,uniqueContainerClassName:D,uniqueContainerStyle:O,popupStyle:k,popupPlacement:A,builtinPlacements:j,popupAlign:M,zIndex:N,mask:b,maskClosable:x,popupMotion:W,maskMotion:G,arrow:ye,getPopupContainer:S,getPopupClassNameFromAlign:F,id:le,onEsc:Me}));Pe(()=>{ce&&R&&pe&&!re&&!oe&&(Se?ce.show(De(m),Ee):ce.hide(h))},[Se,pe]);let Oe=$.useRef(Se);Oe.current=Se;let ke=J(e=>{(0,Kt.flushSync)(()=>{Se!==e&&(xe(e),u?.(e),f?.(e))})}),Ae=To(),je=(e,t=0)=>{if(c!==void 0){Ae(()=>{ke(e)},t);return}if(ce&&R&&re&&!oe){e?ce.show(De(t),Ee):ce.hide(t);return}Ae(()=>{ke(e)},t)};function Me({top:e}){e&&je(!1)}let[Ne,Fe]=$.useState(!1);Pe(e=>{(!e||Se)&&Fe(!0)},[Se]);let[Ie,Le]=$.useState(null),[Re,ze]=$.useState(null),Be=e=>{ze([e.clientX,e.clientY])},[Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze]=wo(Se,Y,B&&Re!==null?Re:pe,A,j,M,H,ie),[Qe,$e]=lo(a,o,s),et=Qe.has(`click`),tt=$e.has(`click`)||$e.has(`contextMenu`),nt=J(()=>{Ne||Ze()});Eo(Se,pe,Y,nt,()=>{Oe.current&&B&&tt&&je(!1)}),Pe(()=>{nt()},[Re,A]),Pe(()=>{Se&&!j?.[A]&&nt()},[JSON.stringify(M)]);let rt=$.useMemo(()=>X(fo(j,r,Xe,B),F?.(Xe)),[Xe,F,j,r,B]);$.useImperativeHandle(n,()=>({nativeElement:he.current,popupElement:de.current,forceAlign:nt}));let[Z,it]=$.useState(0),[at,ot]=$.useState(0),st=()=>{if(P&&pe){let e=pe.getBoundingClientRect();it(e.width),ot(e.height)}},Q=()=>{st(),nt()},ct=e=>{Fe(!1),Ze(),d?.(e),p?.(e)},lt=()=>new Promise(e=>{st(),Le(()=>e)});Pe(()=>{Ie&&(Ze(),Ie(),Le(null))},[Ie]);function ut(e,t,n,r,i){_e[e]=(a,...o)=>{(!i||!i())&&(r?.(a),je(t,n)),Te[e]?.(a,...o)}}let dt=Qe.has(`touch`),ft=$e.has(`touch`),pt=$.useRef(!1);(dt||ft)&&(_e.onTouchStart=(...e)=>{pt.current=!0,Oe.current&&ft?je(!1):!Oe.current&&dt&&je(!0),Te.onTouchStart?.(...e)}),(et||tt)&&(_e.onClick=(e,...t)=>{Oe.current&&tt?je(!1):!Oe.current&&et&&(Be(e),je(!0)),Te.onClick?.(e,...t),pt.current=!1});let mt=Do(Se,tt||ft,pe,Y,b,x,ve,je),ht=Qe.has(`hover`),gt=$e.has(`hover`),_t,vt,yt=()=>pt.current;if(ht){let e=e=>{Be(e)};ut(`onMouseEnter`,!0,m,e,yt),ut(`onPointerEnter`,!0,m,e,yt),_t=e=>{(Se||Ne)&&Y?.contains(e.target)&&je(!0,m)},B&&(_e.onMouseMove=e=>{Te.onMouseMove?.(e)})}gt&&(ut(`onMouseLeave`,!1,h,void 0,yt),ut(`onPointerLeave`,!1,h,void 0,yt),vt=()=>{je(!1,h)}),Qe.has(`focus`)&&ut(`onFocus`,!0,_),$e.has(`focus`)&&ut(`onBlur`,!1,y),Qe.has(`contextMenu`)&&(_e.onContextMenu=(e,...t)=>{Oe.current&&$e.has(`contextMenu`)?je(!1):(Be(e),je(!0)),e.preventDefault(),Te.onContextMenu?.(e,...t)});let bt=$.useRef(!1);bt.current||(bt.current=C||Se||Ne);let xt={...Te,..._e},St={};[`onContextMenu`,`onClick`,`onMouseDown`,`onTouchStart`,`onMouseEnter`,`onMouseLeave`,`onFocus`,`onBlur`].forEach(e=>{q[e]&&(St[e]=(...t)=>{xt[e]?.(...t),q[e](...t)})});let Ct={x:Ke,y:qe};Tt(Se,pe,Q);let wt=K(ge,z(we)),Et=$.cloneElement(we,{...xt,...St,ref:wt});return $.createElement($.Fragment,null,Et,bt.current&&(!ce||!R)&&$.createElement(oo.Provider,{value:se},$.createElement(ao,{portal:e,ref:fe,prefixCls:r,popup:T,className:X(E,!ie&&rt),style:k,target:pe,onMouseEnter:_t,onMouseLeave:vt,onPointerEnter:_t,zIndex:N,open:Se,keepDom:Ne,fresh:L,onClick:V,onPointerDownCapture:mt,mask:b,motion:W,maskMotion:G,onVisibleChanged:ct,onPrepare:lt,forceRender:C,autoDestroy:ne,getPopupContainer:S,onEsc:Me,align:Xe,arrow:ye,arrowPos:Ct,ready:Ve,offsetX:He,offsetY:Ue,offsetR:We,offsetB:Ge,onAlign:nt,stretch:P,targetWidth:Z/Je,targetHeight:at/Ye,mobile:ee})))})}var No=Mo(Qa);function Po(e){return e&&$.isValidElement(e)&&e.type===$.Fragment}var Fo=(e,t,n)=>$.isValidElement(e)?$.cloneElement(e,ki(n)?n(e.props||{}):n):t;function Io(e,t){return Fo(e,e,t)}var Lo=({children:e})=>{let{getPrefixCls:t}=$.useContext(Vt),n=t();return $.isValidElement(e)?$.createElement(wi,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:t,className:n})=>Io(e,e=>({className:X(e.className,n),style:{...e.style,...t}}))):e},Ro=[null,null];function zo(e){if(Ro[0]!==e){let t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),Ro[0]=e,Ro[1]=t}return Ro[1]}var Bo=({children:e})=>$.createElement(jo,{postTriggerProps:e=>{let{id:t,builtinPlacements:n,popup:r}=e,i=ki(r)?r():r,a=zo(n);return{...e,getPopupContainer:null,arrow:!1,popup:$.createElement(Lo,{key:t},i),builtinPlacements:a}}},e),Vo=$.createContext(!1),Ho=({children:e,disabled:t})=>{let n=$.useContext(Vo);return $.createElement(Vo.Provider,{value:t??n},e)},Uo=$.createContext(void 0),Wo=({children:e,size:t})=>{let n=$.useContext(Uo);return $.createElement(Uo.Provider,{value:t||n},e)};function Go(){return{componentDisabled:(0,$.useContext)(Vo),componentSize:(0,$.useContext)(Uo)}}function Ko(e,t,n){gt(`ConfigProvider`);let r=e||{},i=r.inherit===!1||!t?{...$n,hashed:t?.hashed??$n.hashed,cssVar:t?.cssVar}:t,a=(0,$.useId)();return Qe(()=>{if(!e)return t;let o={...i.components};Object.keys(e.components||{}).forEach(t=>{o[t]={...o[t],...e.components[t]}});let s=`css-var-${a.replace(/:/g,``)}`,c={prefix:n?.prefixCls,...i.cssVar,...r.cssVar,key:r.cssVar?.key||s};return{...i,...r,token:{...i.token,...r.token},components:o,cssVar:c}},[r,i],(e,t)=>e.some((e,n)=>{let r=t[n];return!tt(e,r,!0)}))}var qo=$.createContext(!0);function Jo(e){let t=$.useContext(qo),{children:n}=e,[,r]=cr(),{motion:i}=r,a=$.useRef(!1);return a.current||(a.current=t!==i),a.current?$.createElement(qo.Provider,{value:i},$.createElement(Fr,{motion:i},n)):n}var Yo=()=>null,Xo=({iconPrefixCls:e,csp:t})=>(wr(e,t),null),Zo=[`getTargetContainer`,`getPopupContainer`,`renderEmpty`,`input`,`pagination`,`form`,`select`,`button`],Qo,$o,es,ts;function ns(){return Qo||`ant`}function rs(){return $o||`anticon`}var is=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(Qo=t),n!==void 0&&($o=n),`holderRender`in e&&(ts=i),r&&(es=r)},as=()=>({getPrefixCls:(e,t)=>t||(e?`${ns()}-${e}`:ns()),getIconPrefixCls:rs,getRootPrefixCls:()=>Qo||ns(),getTheme:()=>es,holderRender:ts}),os=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,affix:a,anchor:o,app:s,form:c,locale:l,componentSize:u,direction:d,space:f,splitter:p,virtual:m,dropdownMatchSelectWidth:h,popupMatchSelectWidth:g,popupOverflow:_,legacyLocale:v,parentContext:y,iconPrefixCls:b,theme:x,componentDisabled:S,segmented:C,statistic:w,spin:T,calendar:E,carousel:D,cascader:O,collapse:k,typography:A,checkbox:j,descriptions:M,divider:N,drawer:P,skeleton:F,steps:I,image:L,layout:R,list:z,mentions:B,modal:V,progress:H,result:U,slider:W,breadcrumb:G,masonry:ee,menu:K,pagination:q,input:te,inputPassword:ne,inputSearch:re,textArea:J,otp:ie,empty:ae,badge:oe,borderBeam:se,radio:le,rate:Y,ribbon:ue,switch:de,transfer:fe,avatar:pe,message:me,tag:X,table:he,card:ge,cardMeta:_e,tabs:ye,timeline:be,timePicker:xe,upload:Se,notification:Ce,tree:we,colorPicker:Te,datePicker:Ee,rangePicker:De,flex:Oe,wave:ke,dropdown:Ae,warning:je,tour:Me,tooltip:Ne,popover:Pe,popconfirm:Fe,qrcode:Ie,floatButton:Le,floatButtonGroup:Re,variant:ze,inputNumber:Be,treeSelect:Ve,watermark:He}=e,Ue=$.useMemo(()=>Oi(l)&&Object.prototype.hasOwnProperty.call(l,`default`)&&l.default?.locale?l.default:l,[l]),We=$.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let i=r||y.getPrefixCls(``);return t?`${i}-${t}`:i},[y.getPrefixCls,e.prefixCls]),Ge=b||y.iconPrefixCls||`anticon`,Ke=n||y.csp,qe=Ko(x,y.theme,{prefixCls:We(``)}),Je={csp:Ke,autoInsertSpaceInButton:r,alert:i,affix:a,anchor:o,app:s,locale:Ue||v,direction:d,space:f,splitter:p,virtual:m,popupMatchSelectWidth:g??h,popupOverflow:_,getPrefixCls:We,iconPrefixCls:Ge,theme:qe,segmented:C,statistic:w,spin:T,calendar:E,carousel:D,cascader:O,collapse:k,typography:A,checkbox:j,descriptions:M,divider:N,drawer:P,skeleton:F,steps:I,image:L,input:te,inputPassword:ne,inputSearch:re,textArea:J,otp:ie,layout:R,list:z,mentions:B,modal:V,progress:H,result:U,slider:W,breadcrumb:G,masonry:ee,menu:K,pagination:q,empty:ae,badge:oe,borderBeam:se,radio:le,rate:Y,ribbon:ue,switch:de,transfer:fe,avatar:pe,message:me,tag:X,table:he,card:ge,cardMeta:_e,tabs:ye,timeline:be,timePicker:xe,upload:Se,notification:Ce,tree:we,colorPicker:Te,datePicker:Ee,rangePicker:De,flex:Oe,wave:ke,dropdown:Ae,warning:je,tour:Me,tooltip:Ne,popover:Pe,popconfirm:Fe,qrcode:Ie,floatButton:Le,floatButtonGroup:Re,variant:ze,inputNumber:Be,treeSelect:Ve,watermark:He},Ye={...y};Object.keys(Je).forEach(e=>{Je[e]!==void 0&&(Ye[e]=Je[e])}),Zo.forEach(t=>{let n=e[t];n&&(Ye[t]=n)}),r!==void 0&&(Ye.button={autoInsertSpace:r,...Ye.button});let Xe=Qe(()=>Ye,Ye,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:Ze}=$.useContext(ot),$e=$.useMemo(()=>({prefixCls:Ge,csp:Ke,layer:Ze?`antd`:void 0}),[Ge,Ke,Ze]),et=$.createElement($.Fragment,null,$.createElement(Xo,{iconPrefixCls:Ge,csp:Ke}),$.createElement(Yo,{dropdownMatchSelectWidth:h}),t),tt=$.useMemo(()=>ve(wa.Form?.defaultValidateMessages||{},Xe.locale?.Form?.defaultValidateMessages||{},Xe.form?.validateMessages||{},c?.validateMessages||{}),[Xe,c?.validateMessages]);Object.keys(tt).length>0&&(et=$.createElement(ua.Provider,{value:tt},et)),Ue&&(et=$.createElement(Na,{locale:Ue,_ANT_MARK__:Ma},et)),(Ge||Ke)&&(et=$.createElement(ce.Provider,{value:$e},et)),u&&(et=$.createElement(Wo,{size:u},et)),et=$.createElement(Jo,null,et),Ne?.unique&&(et=$.createElement(Bo,null,et));let nt=$.useMemo(()=>{let{algorithm:e,token:t,components:n,cssVar:r,...i}=qe||{},a=e&&(!Array.isArray(e)||e.length>0)?it(e):Qn,o={};Object.entries(n||{}).forEach(([e,t])=>{let n={...t};`algorithm`in n&&(n.algorithm===!0?n.theme=a:(Array.isArray(n.algorithm)||ki(n.algorithm))&&(n.theme=it(n.algorithm)),delete n.algorithm),o[e]=n});let s={...Bn,...t};return{...i,theme:a,token:s,components:o,override:{override:s,...o},cssVar:r}},[qe]);return x&&(et=$.createElement(er.Provider,{value:nt},et)),Xe.warning&&(et=$.createElement(ht.Provider,{value:Xe.warning},et)),S!==void 0&&(et=$.createElement(Ho,{disabled:S},et)),$.createElement(Vt.Provider,{value:Xe},et)},ss=e=>{let t=$.useContext(Vt),n=$.useContext(Aa);return $.createElement(os,{parentContext:t,legacyLocale:n,...e})};ss.ConfigContext=Vt,ss.SizeContext=Uo,ss.config=is,ss.useConfig=Go,Object.defineProperty(ss,"SizeContext",{get:()=>Uo});var cs=$.createContext(void 0),ls=e=>{let{href:t,title:n,prefixCls:r,children:i,className:a,target:o,replace:s,targetOffset:c}=e,{registerLink:l,unregisterLink:u,scrollTo:d,onClick:f,activeLink:p,direction:m,classNames:h,styles:g}=$.useContext(cs)||{};$.useEffect(()=>(l?.(t,c),()=>{u?.(t)}),[t,c]);let _=e=>{if(f?.(e,{title:n,href:t}),d?.(t,c),e.defaultPrevented)return;if(t.startsWith(`http://`)||t.startsWith(`https://`)){s&&(e.preventDefault(),window.location.replace(t));return}e.preventDefault();let r=s?`replaceState`:`pushState`;window.history[r](null,``,t)},{getPrefixCls:v}=$.useContext(Vt),y=v(`anchor`,r),b=p===t,x=X(`${y}-link`,a,h?.item,{[`${y}-link-active`]:b}),S=X(`${y}-link-title`,h?.itemTitle,{[`${y}-link-title-active`]:b});return $.createElement(`div`,{className:x,style:g?.item},$.createElement(`a`,{className:S,style:g?.itemTitle,href:t,title:typeof n==`string`?n:``,target:o,onClick:_},n),m===`horizontal`?null:i)},us=e=>{let{componentCls:t,holderOffsetBlock:n,motionDurationSlow:r,lineWidthBold:i,colorPrimary:a,lineType:o,colorSplit:s,calc:c}=e;return{[`${t}-wrapper`]:{marginBlockStart:c(n).mul(-1).equal(),paddingBlockStart:n,[t]:{...ur(e),position:`relative`,paddingInlineStart:i,[`${t}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${Q(e.linkPaddingInlineStart)} 0`,"&-title":{...lr,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:`${Q(i)} ${o} ${s}`,content:`" "`},[`${t}-ink`]:{position:`absolute`,insetInlineStart:0,display:`none`,transform:`translateY(-50%)`,transition:`top ${r} ease-in-out`,width:i,backgroundColor:a,[`&${t}-ink-visible`]:{display:`inline-block`}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:`none`}}}},ds=e=>{let{componentCls:t,motionDurationSlow:n,lineWidthBold:r,colorPrimary:i}=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:`${Q(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`,`width`].map(e=>`${e} ${n} ease-in-out`).join(`, `),height:r,backgroundColor:i}}}}},fs=yr(`Anchor`,e=>{let{fontSize:t,fontSizeLG:n,paddingXXS:r,calc:i}=e,a=wn(e,{holderOffsetBlock:r,anchorPaddingBlockSecondary:i(r).div(2).equal(),anchorTitleBlock:i(t).div(14).mul(3).equal(),anchorBallSize:i(n).div(2).equal()});return[us(a),ds(a)]},e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding}));function ps(){return window}function ms(e,t){if(!e.getClientRects().length)return 0;let n=e.getBoundingClientRect();return n.width||n.height?t===window?n.top-e.ownerDocument.documentElement.clientTop:n.top-t.getBoundingClientRect().top:n.top}var hs=/#([\S ]+)$/,gs=e=>{let{rootClassName:t,prefixCls:n,className:r,style:i,offsetTop:a,affix:o=!0,showInkInFixed:s=!1,children:c,items:l,direction:u=`vertical`,bounds:d,targetOffset:f,onClick:p,onChange:m,getContainer:h,getCurrentAnchor:g,replace:_,classNames:v,styles:y}=e,[b,x]=$.useState([]),[S,C]=$.useState(null),w=$.useRef(S),T=$.useRef(null),E=$.useRef(null),D=$.useRef(!1),O=$.useRef(null),k=$.useRef({}),{direction:A,getPrefixCls:j,className:M,style:N,classNames:P,styles:F}=Wt(`anchor`),{getTargetContainer:I}=$.useContext(Vt),L=j(`anchor`,n),R=la(L),[z,B]=fs(L,R),V=h??I??ps,H=JSON.stringify(b),U=(e,t)=>{x(t=>t.includes(e)?t:[].concat(Lt(t),[e])),t!==void 0&&(k.current[e]=t)},W=e=>{x(t=>t.filter(t=>t!==e)),delete k.current[e]},G=()=>{let e=T.current?.querySelector(`.${L}-link-title-active`);if(e&&E.current){let{style:t}=E.current,n=u===`horizontal`;t.top=n?``:`${e.offsetTop+e.clientHeight/2}px`,t.height=n?``:`${e.clientHeight}px`,t.left=n?`${e.offsetLeft}px`:``,t.width=n?`${e.clientWidth}px`:``,n&&ia(e,{scrollMode:`if-needed`,block:`nearest`})}},ee=(e,t,n=5,r)=>{let i=[],a=V();return e.forEach(e=>{let o=hs.exec(e?.toString());if(!o)return;let s=document.getElementById(o[1]);if(s){let o=r?.[e]??t,c=ms(s,a);c<=o+n&&i.push({link:e,top:c})}}),i.length?i.reduce((e,t)=>t.top>e.top?t:e).link:``},K=J(e=>{if(w.current===e)return;let t=ki(g)?g(e):e;C(t),w.current=t,m?.(e)}),q=$.useCallback(()=>{D.current||K(ee(b,Ei(f)?f:a||0,d,k.current))},[b,f,a,d]),te=$.useCallback((e,t)=>{let n=w.current;K(e);let r=hs.exec(e);if(!r)return;let i=document.getElementById(r[1]);if(!i)return;if(D.current){if(n===e)return;O.current?.()}let o=V(),s=oa(o)+ms(i,o);s-=t??f??a??0,D.current=!0,O.current=ca(s,{getContainer:V,callback(){D.current=!1}})},[f,a]),ne={...e,direction:u},[re,ie]=zi([P,v],[F,y],{props:ne}),ae=X(z,B,R,t,`${L}-wrapper`,{[`${L}-wrapper-horizontal`]:u===`horizontal`,[`${L}-rtl`]:A===`rtl`},r,M,re.root),oe=X(L,{[`${L}-fixed`]:!o&&!s}),se=X(`${L}-ink`,re.indicator,{[`${L}-ink-visible`]:S}),ce={maxHeight:a?`calc(100vh - ${a}px)`:`100vh`,...ie.root,...N,...i},le=e=>Array.isArray(e)?e.map(e=>$.createElement(ls,{replace:_,...e,key:e.key},u===`vertical`&&le(e.children))):null,Y=$.createElement(`div`,{ref:T,className:ae,style:ce},$.createElement(`div`,{className:oe},$.createElement(`span`,{className:se,ref:E,style:ie.indicator}),`items`in e?le(l):c));$.useEffect(()=>{let e=V();return q(),e?.addEventListener(`scroll`,q),()=>{e?.removeEventListener(`scroll`,q)}},[H]),$.useEffect(()=>{ki(g)&&K(g(w.current||``))},[g]),$.useEffect(()=>{G()},[u,g,H,S]);let ue=$.useMemo(()=>({registerLink:U,unregisterLink:W,scrollTo:te,activeLink:S,onClick:p,direction:u,classNames:re,styles:ie}),[S,p,te,u,ie,re]),de=Oi(o)?o:void 0;return $.createElement(cs.Provider,{value:ue},o?$.createElement(Nr,{offsetTop:a,target:V,...de},Y):Y)};gs.Link=ls;function _s(){let[e,t]=$.useState({});return[e,$.useCallback((e,n)=>{if(!n){t(t=>{if(!(e in t))return t;let n={...t};return delete n[e],n});return}let r={width:n.offsetWidth,height:n.offsetHeight};t(t=>{let n=t[e];return n&&n.width===r.width&&n.height===r.height?t:{...t,[e]:r}})},[])]}function vs(e,t,n=0){let[r,i]=_s(),[a,o,s,c]=$.useMemo(()=>{let i=0,a=0,o=t?.threshold??0,s=new Map,c,l;return e.slice().reverse().forEach((e,u)=>{let d=String(e.key),f=r[d]?.height??0,p=t&&u>0?i+(t.offset??0)-f:i;s.set(d,p),u===0&&(c=f,l=r[d]?.width??0),(!t||u<o)&&(a=Math.max(a,p+f)),t?i=p+f:i+=f+n}),[s,a,c,l]},[e,n,r,t]);return[a,i,o,s,c]}var ys=8,bs=3,xs=e=>{let t={offset:ys,threshold:bs};return e&&typeof e==`object`&&(t.offset=e.offset??ys,t.threshold=e.threshold??bs),[!!e,t]};function Ss(e,t,n){let r=Math.max(typeof e==`number`?e:0,0)*1e3,i=J(t),a=J(n),[o,s]=$.useState(r>0),c=$.useRef(0),l=$.useRef(null);function u(){let e=Date.now(),t=l.current;t!==null&&(c.current+=e-t),l.current=e}let d=$.useCallback(()=>{u(),s(!1)},[]),f=$.useCallback(()=>{r>0?(l.current=Date.now(),s(!0)):a(0)},[r]);return $.useEffect(()=>{c.current=0,s(r>0)},[r]),$.useEffect(()=>{if(!o)return;let e=null;function t(){u(),c.current>=r?(a(1),i()):(a(Math.min(c.current/r,1)),e=Y(t))}return t(),()=>{Y.cancel(e)}},[r,o]),[f,d]}function Cs(e){let t=$.useMemo(()=>e===!1?{closeIcon:null,disabled:!0}:typeof e==`object`&&e?e:{},[e]),n=$.useMemo(()=>({...t,closeIcon:`closeIcon`in t?t.closeIcon:`×`,disabled:t.disabled??!1}),[t]),r=$.useMemo(()=>V(n,!0),[n]);return[!!e,n,r]}var ws=({className:e,style:t,percent:n})=>$.createElement(`progress`,{className:e,max:`100`,value:n,style:t});function Ts(){return Ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ts.apply(this,arguments)}var Es=$.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,classNames:a,styles:o,components:s,title:c,description:l,icon:u,actions:d,role:f,closable:p,offset:m,notificationIndex:h,stackInThreshold:g,props:_,duration:v=4.5,showProgress:y,hovering:b,pauseOnHover:x=!0,onClick:S,onMouseEnter:C,onMouseLeave:w,onClose:T}=e,[E,D]=$.useState(0),O=`${n}-notice`,[k,A,j]=Cs(p),M=J(()=>{A.onClose?.(),T?.()}),[N,P]=$.useState(!1),[F,I]=Ss(v,M,D),L=100-Math.min(Math.max(E*100,0),100),R=s?.progress||ws;$.useEffect(()=>{x&&(b?I():N||F())},[b,N,I,F,x]);function z(e){P(!0),x&&I(),C?.(e)}function B(e){P(!1),x&&!b&&F(),w?.(e)}function V(e){e.preventDefault(),e.stopPropagation(),M()}let H=$.useRef(m);m!==void 0&&(H.current=m);let U=$.useRef(h);h!==void 0&&(U.current=h);let W=m??H.current,G=h??U.current??0,ee=c==null?null:$.createElement(`div`,{className:X(`${O}-title`,a?.title),style:o?.title},c),K=l==null?null:$.createElement(`div`,{className:X(`${O}-description`,a?.description),style:o?.description},l),q=ee!==null,te=K!==null,ne=null;ne=q&&te?$.createElement(`div`,{className:X(`${O}-section`,a?.section),style:o?.section},ee,K):ee||K,u!=null&&(ne=$.createElement(`div`,{className:X(`${O}-wrapper`,a?.wrapper),style:o?.wrapper},$.createElement(`div`,{className:X(`${O}-icon`,a?.icon),style:o?.icon},u),ne));let re=d?$.createElement(`div`,{className:X(`${O}-actions`,a?.actions),style:o?.actions},d):null,ie={"--notification-index":G,...o?.root,...i};W!==void 0&&(ie[`--notification-y`]=`${W}px`);let ae=f??_?.role??`alert`;return $.createElement(`div`,Ts({},_,{ref:t,role:ae,"data-notification-index":G,className:X(O,r,a?.root,{[`${O}-closable`]:k,[`${O}-stack-in-threshold`]:g}),style:ie,onClick:S,onMouseEnter:z,onMouseLeave:B}),ne,re,k&&$.createElement(`button`,Ts({className:X(`${O}-close`,a?.close),"aria-label":`Close`},j,{style:o?.close,onClick:V}),A.closeIcon),y&&typeof v==`number`&&v>0&&$.createElement(R,{className:X(`${O}-progress`,a?.progress),percent:L,style:o?.progress}))}),Ds=$.createContext({}),Os=({children:e,classNames:t})=>{let n=$.useMemo(()=>({classNames:t}),[t]);return $.createElement(Ds.Provider,{value:n},e)};function ks(){return ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ks.apply(this,arguments)}var As=$.forwardRef((e,t)=>{let{listPrefixCls:n,height:r,topNoticeHeight:i=0,topNoticeWidth:a=0,className:o,style:s,...c}=e,l=`${n}-content`,u=$.useRef(r),d=r<u.current?`decrease`:`increase`;u.current=r;let f={...s,height:r,"--top-notificiation-height":`${i}px`,"--top-notificiation-width":`${a}px`};return $.createElement(`div`,ks({},c,{className:X(l,`${l}-${d}`,o),style:f,ref:t}))});function js(){return js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},js.apply(this,arguments)}var Ms=[`wrapper`,`root`,`icon`,`section`,`title`,`description`,`actions`,`close`,`progress`];function Ns(e){return Ms.reduce((t,n)=>(t[n]=X(...e.map(e=>e?.[n])),t),{})}function Ps(e){return Ms.reduce((t,n)=>(t[n]=Object.assign({},...e.map(e=>e?.[n])),t),{})}function Fs(e,t){let n=String(t),r=e.findIndex(e=>e.key===n);if(r!==-1)return e.length-r-1}var Is=e=>{let{config:t,components:n,contextClassNames:r,classNames:i,styles:a,className:o,style:s,nodeRef:c,listHovering:l,stackEnabled:u,pauseOnHover:d,setNodeSize:f,onNoticeClose:p,...m}=e,{key:h,placement:g,..._}=t,v=String(h),y=K(c,$.useCallback(e=>{f(v,e)},[f,v]));return $.createElement(Es,js({},_,m,{ref:y,className:X(r?.notice,t.className,o),style:{...s,...t.style},classNames:Ns([i,t.classNames]),styles:Ps([a,t.styles]),components:{...n,...t.components},hovering:u&&l,pauseOnHover:t.pauseOnHover??d,onClose:()=>{t.onClose?.(),p?.(h)}}))},Ls=e=>{let{configList:t=[],prefixCls:n=`rc-notification`,pauseOnHover:r,classNames:i,styles:a,components:o,stack:s,motion:c,placement:l,className:u,style:d,onNoticeClose:f,onAllRemoved:p}=e,{classNames:m}=$.useContext(Ds),h=$.useMemo(()=>t.map(e=>({config:e,key:String(e.key)})),[t]),g=typeof c==`function`?c(l):c,[_,{offset:v,threshold:y}]=xs(s),[b,x]=$.useState(!1),S=_&&(b||h.length<=y),C=$.useMemo(()=>{if(!(!_||S))return{offset:v,threshold:y}},[S,v,_,y]),[w,T]=$.useState(0),E=$.useRef(null),[D,O,k,A,j]=vs(t,C,w),M=!!t.length;$.useEffect(()=>{let e=E.current;if(!e)return;let{gap:t,rowGap:n}=window.getComputedStyle(e),r=parseFloat(n||t)||0;T(e=>e===r?e:r)},[M]);let N=`${n}-list`;return $.createElement(`div`,{className:X(n,N,`${n}-${l}`,m?.list,u,i?.list,{[`${n}-stack`]:_,[`${n}-stack-expanded`]:S,[`${N}-hovered`]:b}),onMouseEnter:()=>{x(!0)},onMouseLeave:()=>{x(!1)},style:{...a?.list,...d}},$.createElement(As,{listPrefixCls:N,height:k,topNoticeHeight:A,topNoticeWidth:j,className:i?.listContent,style:a?.listContent,ref:E},$.createElement(Ci,js({component:!1,keys:h,motionAppear:!0},g,{onAllRemoved:()=>{l&&p?.(l)}}),({config:e,className:t,style:s},c)=>{let{key:l}=e,u=String(l),d=Fs(h,l),p=_&&d!==void 0&&d<y;return $.createElement(Is,{key:l,config:e,components:o,contextClassNames:m,classNames:i,styles:a,className:t,style:s,nodeRef:c,prefixCls:n,offset:D.get(u),notificationIndex:d,stackInThreshold:p,listHovering:b,stackEnabled:_,pauseOnHover:r,setNodeSize:O,onNoticeClose:f})})))},Rs=$.forwardRef((e,t)=>{let{prefixCls:n=`rc-notification`,container:r,motion:i,maxCount:a,pauseOnHover:o,classNames:s,styles:c,components:l,className:u,style:d,onAllRemoved:f,stack:p,renderNotifications:m}=e,[h,g]=$.useState([]),[_,v]=$.useState({}),y=$.useRef(!1);$.useImperativeHandle(t,()=>({open:e=>{g(t=>{let n=[...t],r=n.findIndex(t=>t.key===e.key),i={...e};return r>=0?(i.times=(t[r]?.times??0)+1,n[r]=i):(i.times=0,n.push(i)),a&&a>0&&n.length>a&&(n=n.slice(-a)),n})},close:e=>{g(t=>t.filter(t=>t.key!==e))},destroy:()=>{g([])}})),$.useEffect(()=>{let e={};h.forEach(t=>{let n=t.placement??`topRight`;e[n]=e[n]||[],e[n].push(t)}),Object.keys(_).forEach(t=>{e[t]=e[t]||[]}),v(e)},[h]);let b=J(e=>{v(t=>{let n={...t};return(n[e]||[]).length||delete n[e],n})});if($.useEffect(()=>{Object.keys(_).length>0?y.current=!0:y.current&&(f?.(),y.current=!1)},[_,f]),!r)return null;let x=Object.keys(_);return(0,Kt.createPortal)($.createElement($.Fragment,null,x.map(e=>{let t=$.createElement(Ls,{key:e,configList:_[e],placement:e,prefixCls:n,pauseOnHover:o,classNames:s,styles:c,components:l,className:u?.(e),style:d?.(e),motion:i,stack:p,onNoticeClose:e=>{g(t=>t.filter(t=>t.key!==e))},onAllRemoved:b});return m?$.cloneElement(m(t,{prefixCls:n,key:e}),{key:e}):t})),r)}),zs=()=>document.body,Bs=0;function Vs(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{let r=e[n];r!==void 0&&(t[n]=r)})}),t}function Hs(e={}){let{getContainer:t=zs,motion:n,prefixCls:r,placement:i,closable:a,duration:o,showProgress:s,pauseOnHover:c,classNames:l,styles:u,components:d,maxCount:f,className:p,style:m,onAllRemoved:h,stack:g,renderNotifications:_}=e,v={placement:i,closable:a,duration:o,showProgress:s},[y,b]=$.useState(),x=$.useRef(null),[S,C]=$.useState([]),w=$.createElement(Rs,{container:y,ref:x,prefixCls:r,motion:n,maxCount:f,pauseOnHover:c,classNames:l,styles:u,components:d,className:p,style:m,onAllRemoved:h,stack:g,renderNotifications:_}),T=J(e=>{let t=Vs(v,e);(t.key===null||t.key===void 0)&&(t.key=`rc-notification-${Bs}`,Bs+=1),C(e=>[...e,{type:`open`,config:t}])}),E=$.useMemo(()=>({open:T,close:e=>{C(t=>[...t,{type:`close`,key:e}])},destroy:()=>{C(e=>[...e,{type:`destroy`}])}}),[]);return $.useEffect(()=>{b(t())}),$.useEffect(()=>{x.current&&S.length&&(S.forEach(e=>{switch(e.type){case`open`:x.current?.open(e.config);break;case`close`:x.current?.close(e.key);break;case`destroy`:x.current?.destroy();break}}),C(e=>{let t=e.filter(e=>!S.includes(e));return t.length===e.length?e:t}))},[S]),[E,w]}var Us=(e,t)=>$.useMemo(()=>{let n=e??t;return n?{...Oi(t)?t:{},...Oi(n)?n:{}}:!1},[e,t]);function Ws(e,t){return{...Ti(e)&&{"--notification-top":Q(e)},...Ti(t)&&{"--notification-bottom":Q(t)}}}function Gs(e){return{motionName:`${e}-fade`}}function Ks(e,t,n){return e===void 0?t?.closeIcon===void 0?n?.closeIcon:t.closeIcon:e}function qs(...e){return e.find(e=>e!==void 0)}var Js=e=>{let{allowClear:t,clearIcon:n,contextAllowClear:r,contextClearIcon:i,defaultAllowClear:a,componentName:o}=e;return(0,$.useMemo)(()=>t??r??a?{clearIcon:qs(Oi(t)?t?.clearIcon:n,Oi(r)?r?.clearIcon:i,$.createElement(ie,null)),disabled:(Oi(t)?t?.disabled:void 0)??(Oi(r)?r?.disabled:void 0)}:!1,[t,n,r,i,a])},Ys=e=>{if(!e)return;let{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},Xs={},Zs=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!Ti(e)&&!Ti(t))return null;let n={closeIcon:typeof t!=`boolean`&&Ti(t)?t:void 0};return Oi(e)&&(n={...n,...e}),n},Qs=(e,t,n)=>e===!1?!1:e?He(n,t,e):t===!1?!1:t?He(n,t):n.closable?n:!1,$s=(e,t,n)=>{let{closeIconRender:r}=t,{closeIcon:i,...a}=e,o=i,s=V(a,!0);return Ti(o)&&(r&&(o=r(o)),o=$.isValidElement(o)?$.cloneElement(o,{"aria-label":n,...o.props,...s}):$.createElement(`span`,{"aria-label":n,...s},o)),[o,s]},ec=(e,t,n=Xs,r=`Close`)=>{let i=Zs(e?.closable,e?.closeIcon),a=Zs(t?.closable,t?.closeIcon),o={closeIcon:$.createElement(ne,null),...n},s=Qs(i,a,o),c=typeof s==`boolean`?!1:!!s?.disabled;if(s===!1)return[!1,null,c,{}];let[l,u]=$s(s,o,r);return[!0,l,c,u]},tc=(e,t,n=Xs)=>{let[r]=ja(`global`,wa.global);return $.useMemo(()=>ec(e,t,{closeIcon:$.createElement(ne,null),...n},r.close),[e,t,n,r.close])},nc=()=>$.useReducer(e=>e+1,0),rc=(e,t)=>{let n={};return Oi(e)&&(n=e),typeof e==`boolean`&&(n={enabled:e}),n.closable===void 0&&t!==void 0&&(n.closable=t),n},ic=(e,t,n,r)=>(0,$.useMemo)(()=>{let i=rc(e,r),a=rc(t),o={blur:!1,...a,...i,closable:i.closable??r??a.closable??!0},s=o.blur?`${n}-mask-blur`:void 0;return[o.enabled!==!1,{mask:s},!!o.closable]},[e,t,n,r]),ac=e=>{let[t,n]=(0,$.useState)(null);return[(0,$.useCallback)((r,i,a)=>{let o=t??r,s=Math.min(o||0,r),c=Math.max(o||0,r),l=i.slice(s,c+1).map(e),u=l.some(e=>!a.has(e)),d=[];return l.forEach(e=>{u?(a.has(e)||d.push(e),a.add(e)):(a.delete(e),d.push(e))}),n(u?c:null),d},[t]),n]},oc=e=>e===`horizontal`||e===`vertical`,sc=(e,t,n)=>(0,$.useMemo)(()=>{let r=oc(e),i;return i=r?e:typeof t==`boolean`?t?`vertical`:`horizontal`:oc(n)?n:`horizontal`,[i,i===`vertical`]},[n,e,t]),cc=()=>{let[e,t]=$.useState([]);return[e,$.useCallback(e=>(t(t=>[].concat(Lt(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]},lc=(e,t)=>(e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){let r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e),uc=(e,t)=>(0,$.useImperativeHandle)(e,()=>{let e=t(),{nativeElement:n}=e;return typeof Proxy<`u`?new Proxy(n,{get(t,n){return e[n]?e[n]:Reflect.get(t,n)}}):lc(n,e)}),dc=e=>{let t=$.useRef(e),[,n]=nc();return[()=>t.current,e=>{t.current=e,n()}]},fc=$.createContext(void 0),pc=100,mc=pc*10,hc={Modal:pc,Drawer:pc,Popover:pc,Popconfirm:pc,Tooltip:pc,Tour:pc,FloatButton:pc},gc={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},_c=e=>e in hc,vc=(e,t)=>{let[,n]=cr(),r=$.useContext(fc),i=_c(e),a;if(t!==void 0)a=[t,t];else{let o=r??0;i?o+=(r?0:n.zIndexPopupBase)+hc[e]:o+=gc[e],a=[r===void 0?t:o,o]}return a},yc=e=>{let{motionDurationMid:t,motionEaseInOut:n}=e,r=`${t} ${n}`;return{transform:`scale(var(--notification-scale, 1))`,transition:[`transform`,`inset`,`clip-path`,`opacity`].map(e=>`${e} ${r}`).join(`, `)}},bc=(e,t)=>{let{componentCls:n,antCls:r,colorSuccess:i,colorInfo:a,colorWarning:o,colorError:s,colorTextHeading:c,colorText:l,boxShadow:u,borderRadiusLG:d,fontSize:f,lineHeight:p,notificationBg:m,notificationPadding:h,notificationMarginEdge:g,margin:_,calc:v}=e,y=`${n}-notice`,[b,x]=Sr(r,`notification`);return{[y]:{position:`absolute`,width:t.width,maxWidth:`calc(100vw - ${Q(v(g).mul(2).equal())})`,padding:h,pointerEvents:`auto`,[b(`icon-font-size`)]:t.iconFontSize,[b(`title-font-size`)]:t.titleFontSize,[b(`title-line-height`)]:t.titleLineHeight,boxSizing:`border-box`,color:l,background:m,borderRadius:d,boxShadow:u,fontSize:f,lineHeight:p,wordWrap:`break-word`,overflow:`visible`,...yc(e),...t.noticeStyle,"&::after":{position:`absolute`,insetInline:0,top:v(_).mul(-1).equal(),height:_,content:`""`},...t.typeStyle&&{"&-success":{background:x(`color-success-bg`,m)},"&-error":{background:x(`color-error-bg`,m)},"&-info":{background:x(`color-info-bg`,m)},"&-warning":{background:x(`color-warning-bg`,m)}}},[`${y}-wrapper`]:{display:`flex`,...t.contentStyle},[`${y}-title`]:{color:c,fontSize:x(`title-font-size`),lineHeight:x(`title-line-height`)},[`${y}-icon`]:{flex:`none`,fontSize:x(`icon-font-size`),lineHeight:1,[`&${y}-icon-success`]:{color:i},[`&${y}-icon-info, &${y}-icon-loading`]:{color:a},[`&${y}-icon-warning`]:{color:o},[`&${y}-icon-error`]:{color:s}}}},xc=e=>{let{componentCls:t,progressBg:n,notificationProgressHeight:r,fontSize:i,borderRadiusLG:a,width:o,notificationIconSize:s,colorText:c,motionDurationMid:l,fontSizeLG:u,lineHeightLG:d,marginSM:f,marginXS:p,paddingLG:m,notificationPaddingVertical:h,notificationPaddingHorizontal:g,notificationCloseButtonSize:_,colorIcon:v,borderRadiusSM:y,colorIconHover:b,colorBgTextHover:x,colorBgTextActive:S}=e,C=`${t}-notice`;return{...bc(e,{width:o,iconFontSize:s,titleFontSize:u,titleLineHeight:d,contentStyle:{alignItems:`flex-start`,gap:f},typeStyle:!0}),[`${C}-section`]:{display:`flex`,flexDirection:`column`,flex:`auto`,gap:p,minWidth:0},[`${C}-description`]:{color:c,fontSize:i},[`${C}-closable ${C}-title`]:{paddingInlineEnd:m},[`${C}-close`]:{position:`absolute`,top:h,insetInlineEnd:g,display:`flex`,alignItems:`center`,justifyContent:`center`,width:_,height:_,color:v,background:`none`,border:`none`,borderRadius:y,outline:`none`,transition:[`color`,`background-color`].map(e=>`${e} ${l}`).join(`, `),"&:hover":{color:b,backgroundColor:x},"&:active":{backgroundColor:S},...mr(e)},[`${C}-progress`]:{position:`absolute`,bottom:0,display:`block`,appearance:`none`,inlineSize:`calc(100% - ${Q(a)} * 2)`,blockSize:r,border:0,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:`rgba(0, 0, 0, 0.04)`},"&::-moz-progress-bar":{background:n},"&::-webkit-progress-value":{borderRadius:a,background:n}},[`${C}-actions`]:{float:`right`,marginTop:f}}},Sc=e=>{let{componentCls:t,width:n}=e,r=`${t}-notice`,i=`${r}-actions`,a=xc(e);return{[`${r}-pure-panel`]:{width:n,maxWidth:`100%`,...a,[r]:{...a[r],position:`relative`,width:`100%`,maxWidth:`100%`},[i]:{...a[i],float:`none`,textAlign:`end`}}}},Cc=e=>{let{componentCls:t}=e;return{[t]:xc(e)}},wc=[`top`,`topLeft`,`topRight`,`bottom`,`bottomLeft`,`bottomRight`],Tc=`--notification-margin-edge`,Ec=(e,t)=>({blockEnd:e===`top`?`bottom`:`top`,inlineEnd:t===`left`?`right`:`left`}),Dc=e=>`translate3d(${e?.x??`0`}, ${e?.y??`0`}, 0) scale(var(--notification-scale, 1))`,Oc=(e,t)=>{let n=e.startsWith(`bottom`)?`bottom`:`top`,r=e.endsWith(`Right`)?`right`:`left`,{blockEnd:i,inlineEnd:a}=Ec(n,r),o=e===`top`||e===`bottom`,s=e===`top`||e.endsWith(`Left`)?`-${t}`:t;return{placement:e,vertical:n,blockEnd:i,horizontal:r,inlineEnd:a,motionOffset:o?{x:`-50%`,y:s}:{x:s},baseMotionOffset:o?{x:`-50%`}:void 0,isCenterPlacement:o}},kc=e=>e===`bottom`?`column-reverse`:`column`,Ac=e=>{let t=`var(${Tc}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},jc=e=>e===`bottom`?`center top`:`center bottom`,Mc=e=>Q(e.calc(e.marginXXL).mul(-1).equal()),Nc=e=>{let t=Mc(e);return`inset(${t} ${t} ${t} ${t})`},Pc=(e,t)=>{let n=Mc(e);return t===`bottom`?`inset(${n} ${n} 50% ${n})`:`inset(50% ${n} ${n} ${n})`},Fc=(e,t)=>{let{componentCls:n}=e,{placement:r,vertical:i,blockEnd:a,horizontal:o,inlineEnd:s,isCenterPlacement:c}=t,l=`${n}-notice`,u=`${l}${n}-fade`,d=Dc(t.motionOffset),f=Dc(t.baseMotionOffset),p=jc(i);return{[`&${n}-${r}`]:{[i]:Ac(i),[a]:`auto`,display:`flex`,flexDirection:kc(i),...c?{marginInline:0,left:`50%`,right:`auto`,transform:`translateX(-50%)`}:{[o]:0,[s]:`auto`},[l]:{[i]:`var(--notification-y, 0)`,...c?{left:`50%`,transform:f}:{[o]:`var(--notification-x, 0)`},transformOrigin:p},[`${u}-appear-prepare, ${u}-enter-prepare`]:{opacity:0,transform:d,transition:`none`},[`${u}-appear-start, ${u}-enter-start`]:{opacity:0,transform:d},[`${u}-appear-active, ${u}-enter-active`]:{opacity:1,transform:f},[`${u}-leave-start`]:{opacity:1,transform:f},[`${u}-leave-active`]:{opacity:0,transform:d},[`&${n}-stack:not(${n}-stack-expanded)`]:{[l]:{clipPath:Pc(e,i)},[`${l}[data-notification-index='0']`]:{clipPath:Nc(e)}}}}},Ic=(e,t=wc)=>{let{notificationMotionOffset:n}=e,r=Q(n);return{...t.reduce((t,n)=>({...t,...Fc(e,Oc(n,r))}),{})}},Lc=e=>{let{componentCls:t}=e;return{[t]:Ic(e)}},Rc=3,zc=e=>({zIndexPopup:e.zIndexPopupBase+mc+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),Bc=e=>{let t=e.paddingMD,n=e.paddingLG;return wn(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Q(e.paddingMD)} ${Q(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},Vc=e=>`inset(${e} ${e} ${e} ${e})`,Hc=e=>{let{componentCls:t,motionDurationMid:n,motionDurationSlow:r,motionEaseInOut:i}=e,a=`${`${t}-list`}-content`;return{[a]:{position:`relative`,display:`flex`,flexShrink:0,flexDirection:`column`,gap:e.notificationMarginBottom,width:`100%`,willChange:`height, transform`,transition:`none`,[`&${a}-decrease`]:{transition:`height calc(${r} * 2) ${i} ${n}`}},[`${t}-fade`]:{backfaceVisibility:`hidden`,willChange:`transform, opacity`}}},Uc=(e,t)=>{let{componentCls:n,notificationMarginEdge:r}=e,i=`--notification-margin-edge`,a=`${n}-notice`,o=`${n}-list`,s=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(r).mul(2)).equal():`100%`,c=`${a}:nth-last-child(n + ${(t.stackVisibleCount??Rc)+1})`,l=Vc(Q(e.calc(e.marginXXL).mul(-1).equal()));return{[n]:{...ur(e),[i]:Q(r),position:`fixed`,zIndex:e.zIndexPopup,width:s,maxWidth:`100vw`,height:`100vh`,overflow:`hidden`,overscrollBehavior:`contain`,[`${n}-hook-holder`]:{position:`relative`},[`&${o}`]:{maxHeight:`100vh`,padding:`var(${i})`,overflowX:`hidden`,overflowY:`auto`,overscrollBehavior:`contain`,scrollbarWidth:`none`,msOverflowStyle:`none`,pointerEvents:`none`,"&::-webkit-scrollbar":{display:`none`,width:0,height:0}},...Hc(e),[`&${n}-stack`]:{[a]:{clipPath:l},[`&:not(${n}-stack-expanded)`]:{[a]:{"--notification-scale":`calc(1 - min(var(--notification-index, 0), 2) * 0.06)`},[`${a}:not(${a}-stack-in-threshold)`]:{opacity:0,pointerEvents:`none`},[c]:{opacity:0,pointerEvents:`none`}}},"&-rtl":{direction:`rtl`,[`${a}-actions`]:{float:`left`}}}}},Wc=xr([`Notification`,`PurePanel`],e=>Sc(Bc(e)),zc),Gc=(e,t)=>{let n=t.itemStyle??Cc;return[Uc(e,t),n(e),Lc(e)]},Kc=yr(`Notification`,e=>Gc(Bc(e),{listWidthKey:`width`}),zc),qc=e=>{let t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),n=e.paddingSM;return wn(Bc(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:n})},Jc=e=>({zIndexPopup:e.zIndexPopupBase+mc+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Yc=e=>{let{fontSize:t,fontSizeLG:n,lineHeight:r}=e;return bc(e,{width:`max-content`,iconFontSize:n,titleFontSize:t,titleLineHeight:r,contentStyle:{alignItems:`center`,gap:e.marginXS},noticeStyle:{zIndex:1}})},Xc=e=>{let{componentCls:t}=e,n=`${t}-notice`,r=`${t}-list-content`,{"&::after":i,...a}=Yc(e)[n],o={...a,position:`absolute`,zIndex:-1,left:`50%`,height:e.calc(e.marginXS).mul(2).equal(),padding:0,boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:`none`,transform:`translateX(-50%) translateY(100%)`,transition:[`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,`transform ${e.motionDurationFast} ${e.motionEaseInOut}`,`width ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(`, `),content:`""`};return{[t]:{[`&${t}-stack`]:{[r]:{isolation:`isolate`,"&::before":{...o,top:`calc(var(--top-notificiation-height) - ${Q(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${Q(e.margin)})`},"&::after":{...o,zIndex:-2,top:`var(--top-notificiation-height)`,width:`calc(var(--top-notificiation-width) - ${Q(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[r]:{"&::before, &::after":{opacity:1,transform:`translateX(-50%) translateY(0)`}}}}}}},Zc=e=>{let{componentCls:t}=e,n=`${t}-notice`,r=Yc(e);return{[`${n}-pure-panel`]:{width:`max-content`,maxWidth:`100%`,...r,[n]:{...r[n],position:`relative`,width:`max-content`,maxWidth:`100%`}}}},Qc=xr([`Message`,`PurePanel`],e=>Zc(qc(e)),Jc),$c=e=>({[e.componentCls]:Yc(e)}),el=yr(`Message`,e=>{let t=qc(e);return[Gc(t,{stackVisibleCount:1,itemStyle:$c}),Xc(t)]},Jc),tl={info:$.createElement(C,null),success:$.createElement(L,null),error:$.createElement(ie,null),warning:$.createElement(re,null),loading:$.createElement(Ne,null)},nl=(e,t)=>t||e&&tl[e]||null,rl=e=>{let{prefixCls:t,className:n,style:r,type:i,icon:a,content:o,classNames:s,styles:c,...l}=e,{getPrefixCls:u,className:d,style:f,classNames:p,styles:m}=Wt(`message`),h=t||u(`message`),g=`${h}-notice`,_=la(h),[v,y]=el(h,_),[b,x]=zi([p,s],[m,c],{props:e}),S=nl(i,a),C=i?`${g}-icon-${i}`:void 0,w={wrapper:X(i&&`${h}-${i}`,b.wrapper),icon:X(C,b.icon),title:b.title},T={wrapper:x.wrapper,icon:x.icon,title:x.title};return $.createElement(`div`,{className:X(`${g}-pure-panel`,v,n,y,_,b.root),style:x.root},$.createElement(Qc,{prefixCls:h}),$.createElement(Es,{...l,prefixCls:h,className:d,style:{...f,...r},duration:null,icon:S,title:o,classNames:w,styles:T}))};function il(e,t){return{motionName:t??`${e}-fade`}}function al(e){let t,n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{t?.()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var ol=8,sl=3,cl=!1,ll=({children:e,prefixCls:t})=>{let n=la(t),[r,i]=el(t,n);return $.createElement(Os,{classNames:{list:X(r,i,n)}},e)},ul=(e,{prefixCls:t,key:n})=>$.createElement(ll,{prefixCls:t,key:n},e),dl=$.forwardRef((e,t)=>{let{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=sl,rtl:s,classNames:c,styles:l,transitionName:u,pauseOnHover:d=!0,stack:f,onAllRemoved:p}=e,{getPrefixCls:m,direction:h,getPopupContainer:g}=Wt(`message`),{message:_}=$.useContext(Vt),v=r||m(`message`),[y,b]=zi([_?.classNames,c],[_?.styles,l],{props:e}),[x,S]=Hs({prefixCls:v,style:()=>Ws(n??ol),className:()=>X({[`${v}-rtl`]:s??h===`rtl`}),motion:()=>il(v,u),closable:!1,duration:o,getContainer:()=>i?.()||g?.()||document.body,maxCount:a,onAllRemoved:p,classNames:y,styles:b,renderNotifications:ul,pauseOnHover:d,stack:Us(f,cl)});return $.useImperativeHandle(t,()=>({...x,prefixCls:v,message:_})),S}),fl=0;function pl(e){let t=$.useRef(null);return gt(`Message`),[$.useMemo(()=>{let n=e=>{t.current?.close(e)},r=r=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:i,prefixCls:a,message:o}=t.current,s=o?.className||{},c=o?.style||{},l=`${a}-notice`,{content:u,icon:d,type:f,key:p,className:m,style:h,onClose:g,classNames:_={},styles:v={},...y}=r,b=p;Ti(b)||(fl+=1,b=`antd-message-${fl}`);let x={...e,...r},S=Ri(_,{props:x}),C=Ri(v,{props:x}),w=nl(f,d),T=f?`${l}-icon-${f}`:void 0;return al(e=>(i({...y,key:b,icon:w,title:u,classNames:{...S,wrapper:X(f&&`${a}-${f}`,S.wrapper),icon:X(T,S.icon)},styles:C,placement:`top`,className:X({[`${l}-${f}`]:f},m,s),style:{...c,...h},onClose:()=>{g?.(),e()}}),()=>{n(b)}))},i={open:r,destroy:e=>{e===void 0?t.current?.destroy():n(e)}};return[`info`,`success`,`warning`,`error`,`loading`].forEach(e=>{i[e]=(t,n,i)=>{let a;a=Oi(t)&&`content`in t?t:{content:t};let o,s;return ki(n)?s=n:(o=n,s=i),r({onClose:s,duration:o,...a,type:e})}}),i},[]),$.createElement(dl,{key:`message-holder`,...e,ref:t})]}function ml(e){return pl(e)}var hl=()=>({height:0,opacity:0}),gl=e=>({height:e?.scrollHeight??0,opacity:+!!e}),_l=e=>({height:e?.offsetHeight??0}),vl=(e,t)=>t?.deadline===!0||Mi(t)&&t.propertyName===`height`,yl=(e=`ant`)=>({motionName:`${e}-motion-collapse`,onAppearStart:hl,onEnterStart:hl,onAppearActive:gl,onEnterActive:gl,onLeaveStart:_l,onLeaveActive:hl,onAppearEnd:vl,onEnterEnd:vl,onLeaveEnd:vl,motionDeadline:500}),bl=(e,t,n)=>n===void 0?`${e}-${t}`:n,xl=br(`Wave`,e=>{let{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:i,motionEaseOutCirc:a,antCls:o}=e,[,s]=Sr(o,`wave`);return{[t]:{position:`absolute`,background:`transparent`,pointerEvents:`none`,boxSizing:`border-box`,color:s(`color`,n),boxShadow:`0 0 0 0 currentcolor`,opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s`,`opacity 2s`].map(e=>`${e} ${a}`).join(`,`),"&-active":{boxShadow:`0 0 0 6px currentcolor`,opacity:0},"&.wave-quick":{transition:[`box-shadow`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`,`)}}}}}),Sl=`ant-wave-target`,Cl=e=>e?Di(e)&&e!==`#fff`&&e!==`#ffffff`&&e!==`rgb(255, 255, 255)`&&e!==`rgba(255, 255, 255, 1)`&&!/rgba\((?:\d*, ){3}0\)/i.test(e)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(e)&&e!==`transparent`&&e!==`canvastext`:!1;function wl(e,t=null){let n=getComputedStyle(e),{borderTopColor:r,borderColor:i,backgroundColor:a}=n;return t&&Cl(n[t])?n[t]:[r,i,a].find(Cl)??null}function Tl(e){return Number.isNaN(e)?0:e}var El=e=>{let{className:t,target:n,component:r,colorSource:i}=e,a=$.useRef(null),{getPrefixCls:o}=$.useContext(Vt),[s]=Sr(o(),`wave`),[c,l]=$.useState(null),[u,d]=$.useState([]),[f,p]=$.useState(0),[m,h]=$.useState(0),[g,_]=$.useState(0),[v,y]=$.useState(0),[b,x]=$.useState(!1),C={left:f,top:m,width:g,height:v,borderRadius:u.map(e=>`${e}px`).join(` `)};c&&(C[s(`color`)]=c);function w(){let e=getComputedStyle(n);l(wl(n,i));let t=e.position===`static`,{borderLeftWidth:r,borderTopWidth:a}=e;p(t?n.offsetLeft:Tl(-Number.parseFloat(r))),h(t?n.offsetTop:Tl(-Number.parseFloat(a))),_(n.offsetWidth),y(n.offsetHeight);let{borderTopLeftRadius:o,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;d([o,s,u,c].map(e=>Tl(Number.parseFloat(e))))}if($.useEffect(()=>{if(n){let e=Y(()=>{w(),x(!0)}),t;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(w),t.observe(n)),()=>{Y.cancel(e),t?.disconnect()}}},[n]),!b)return null;let T=(r===`Checkbox`||r===`Radio`)&&n?.classList.contains(Sl);return $.createElement(wi,{visible:!0,motionAppear:!0,motionName:`wave-motion`,motionDeadline:5e3,onAppearEnd:(e,t)=>{if(t.deadline||Mi(t)&&t.propertyName===`opacity`){let e=a.current?.parentElement;De(e).then(()=>{e?.remove()})}return!1}},({className:e},n)=>$.createElement(`div`,{ref:S(a,n),className:X(t,e,{"wave-quick":T}),style:C}))},Dl=(e,t)=>{let{component:n}=t;if(n===`Checkbox`&&!e.querySelector(`input`)?.checked)return;let r=document.createElement(`div`);r.style.position=`absolute`,r.style.left=`0px`,r.style.top=`0px`,e?.insertBefore(r,e?.firstChild),Me($.createElement(El,{...t,target:e}),r)},Ol=(e,t,n,r)=>{let{wave:i}=$.useContext(Vt),[,a,o]=cr(),s=J(s=>{let c=e.current;if(i?.disabled||!c)return;let l=c.querySelector(`.${Sl}`)||c,{showEffect:u}=i||{};(u||Dl)(l,{className:t,token:a,component:n,event:s,hashId:o,colorSource:r})}),c=$.useRef(null);return $.useEffect(()=>()=>{Y.cancel(c.current)},[]),e=>{Y.cancel(c.current),c.current=Y(()=>{s(e)})}},kl={click:`click`,mousedown:`mousedown`,mouseup:`mouseup`,pointerdown:`pointerdown`,pointerup:`pointerup`},Al=e=>{let{children:t,disabled:n,component:r,colorSource:i}=e,{getPrefixCls:a,wave:o}=(0,$.useContext)(Vt),s=(0,$.useRef)(null),l=a(`wave`),u=Ol(s,X(l,xl(l)),r,i);return $.useEffect(()=>{let e=s.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;let t=t=>{!M(t.target)||!e.getAttribute||e.getAttribute(`disabled`)||e.disabled||e.className.includes(`disabled`)&&!e.className.includes(`disabled:`)||e.getAttribute(`aria-disabled`)===`true`||e.className.includes(`-leave`)||u(t)},r=o?.triggerType,i=r&&r in kl?kl[r]:`click`;return e.addEventListener(i,t,!0),()=>{e.removeEventListener(i,t,!0)}},[n,o?.triggerType]),$.isValidElement(t)?Io(t,{ref:c(t)?S(z(t),s):s}):t??null},jl=e=>{let t=$.useContext(Uo);return $.useMemo(()=>e?Di(e)?e??t:ki(e)?e(t):t:t,[e,t])},Ml=yr([`Space`,`Compact`],e=>{let{componentCls:t}=e;return{[t]:{display:`inline-flex`,"&-block":{display:`flex`,width:`100%`},"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`}}}},()=>({}),{resetStyle:!1}),Nl=$.createContext(null),Pl=(e,t)=>{let n=$.useContext(Nl),r=$.useMemo(()=>{if(!n)return``;let{compactDirection:r,isFirstItem:i,isLastItem:a}=n,o=r===`vertical`?`-vertical-`:`-`;return X(`${e}-compact${o}item`,{[`${e}-compact${o}first-item`]:i,[`${e}-compact${o}last-item`]:a,[`${e}-compact${o}item-rtl`]:t===`rtl`})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},Fl=e=>{let{children:t}=e;return $.createElement(Nl.Provider,{value:null},t)},Il=e=>{let{children:t,...n}=e;return $.createElement(Nl.Provider,{value:$.useMemo(()=>n,[n])},t)},Ll=e=>{let{getPrefixCls:t,direction:n}=$.useContext(Vt),{size:r,direction:i,orientation:a,block:o,prefixCls:s,className:c,rootClassName:l,children:u,vertical:d,...f}=e,[p,m]=sc(a,d,i),h=jl(e=>r??e),g=t(`space-compact`,s),[_]=Ml(g),v=X(g,_,{[`${g}-rtl`]:n===`rtl`,[`${g}-block`]:o,[`${g}-vertical`]:m},c,l),y=$.useContext(Nl),b=Je(u),x=$.useMemo(()=>b.map((e,t)=>{let n=e?.key||`${g}-item-${t}`;return $.createElement(Il,{key:n,compactSize:h,compactDirection:p,isFirstItem:t===0&&(!y||y?.isFirstItem),isLastItem:t===b.length-1&&(!y||y?.isLastItem)},e)}),[b,y,p,h,g]);return b.length===0?null:$.createElement(`div`,{className:v,...f},x)},Rl=$.createContext(void 0),zl=e=>{let{getPrefixCls:t,direction:n}=$.useContext(Vt),{prefixCls:r,size:i,className:a,...o}=e,s=t(`btn-group`,r),[,,c]=cr(),l=$.useMemo(()=>{switch(i){case`large`:return`lg`;case`small`:return`sm`;default:return``}},[i]),u=X(s,{[`${s}-${l}`]:l,[`${s}-rtl`]:n===`rtl`},a,c);return $.createElement(Rl.Provider,{value:i},$.createElement(`div`,{...o,className:u}))},Bl=/^[\u4E00-\u9FA5]{2}$/,Vl=Bl.test.bind(Bl);function Hl(e){return e===`danger`?{danger:!0}:{type:e}}function Ul(e){return e===`text`||e===`link`}function Wl(e,t,n,r){if(!Ti(e)||e===``)return;let i=t?` `:``;return!Di(e)&&!Ei(e)&&Di(e.type)&&Vl(e.props.children)?Io(e,e=>{let t=X(e.className,r)||void 0,a={...n,...e.style};return{...e,children:e.children.split(``).join(i),className:t,style:a}}):Di(e)?$.createElement(`span`,{className:r,style:n},Vl(e)?e.split(``).join(i):e):Po(e)?$.createElement(`span`,{className:r,style:n},e):Io(e,e=>({...e,className:X(e.className,r)||void 0,style:{...e.style,...n}}))}function Gl(e,t,n,r){let i=!1,a=[];return $.Children.forEach(e,e=>{let t=Di(e)||Ei(e);if(i&&t){let t=a.length-1;a[t]=`${a[t]}${e}`}else a.push(e);i=t}),$.Children.map(a,e=>Wl(e,t,n,r))}[`default`,`primary`,`danger`].concat(Lt(Fn));var Kl=(0,$.forwardRef)((e,t)=>{let{className:n,style:r,children:i,prefixCls:a}=e,o=X(`${a}-icon`,n);return $.createElement(`span`,{ref:t,className:o,style:r},i)}),ql=(0,$.forwardRef)((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=X(`${n}-loading-icon`,r);return $.createElement(Kl,{prefixCls:n,className:o,style:i,ref:t},$.createElement(Ne,{className:a}))}),Jl=()=>({width:0,opacity:0,transform:`scale(0)`}),Yl=e=>({width:e.scrollWidth,opacity:1,transform:`scale(1)`}),Xl=e=>{let{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:o}=e,s=!!n;return r?$.createElement(ql,{prefixCls:t,className:i,style:a}):$.createElement(wi,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:Jl,onAppearActive:Yl,onEnterStart:Jl,onEnterActive:Yl,onLeaveStart:Yl,onLeaveActive:Jl},({className:e,style:n},r)=>{let o={...a,...n};return $.createElement(ql,{prefixCls:t,className:X(i,e),style:o,ref:r})})},Zl=e=>{let{componentCls:t,antCls:n,motionDurationMid:r,motionEaseInOut:i}=e;return{[t]:{[`${n}-motion-collapse-legacy`]:{overflow:`hidden`,"&-active":{transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}},[`${n}-motion-collapse`]:{overflow:`hidden`,transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}}}},Ql=e=>({animationDuration:e,animationFillMode:`both`}),$l=(e,t,n,r,i=!1)=>{let a=i?`&`:``;return{[`
42
+ ${a}${e}-enter,
43
+ ${a}${e}-appear
44
+ `]:{...Ql(r),animationPlayState:`paused`},[`${a}${e}-leave`]:{...Ql(r),animationPlayState:`paused`},[`
45
+ ${a}${e}-enter${e}-enter-active,
46
+ ${a}${e}-appear${e}-appear-active
47
+ `]:{animationName:t,animationPlayState:`running`},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:`running`,pointerEvents:`none`}}},eu=new at(`antFadeIn`,{"0%":{opacity:0},"100%":{opacity:1}}),tu=new at(`antFadeOut`,{"0%":{opacity:1},"100%":{opacity:0}}),nu=(e,t=!1)=>{let{antCls:n}=e,r=`${n}-fade`,i=t?`&`:``;return[$l(r,eu,tu,e.motionDurationMid,t),{[`
48
+ ${i}${r}-enter,
49
+ ${i}${r}-appear
50
+ `]:{opacity:0,animationTimingFunction:`linear`},[`${i}${r}-leave`]:{animationTimingFunction:`linear`}}]},ru=new at(`antMoveDownIn`,{"0%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),iu=new at(`antMoveDownOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0}}),au=new at(`antMoveLeftIn`,{"0%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),ou=new at(`antMoveLeftOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),su=new at(`antMoveRightIn`,{"0%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),cu=new at(`antMoveRightOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),lu={"move-up":{inKeyframes:new at(`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 at(`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:ru,outKeyframes:iu},"move-left":{inKeyframes:au,outKeyframes:ou},"move-right":{inKeyframes:su,outKeyframes:cu}},uu=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=lu[t];return[$l(r,i,a,e.motionDurationMid),{[`
51
+ ${r}-enter,
52
+ ${r}-appear
53
+ `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},du=new at(`antSlideUpIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1}}),fu=new at(`antSlideUpOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),pu=new at(`antSlideDownIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1}}),mu=new at(`antSlideDownOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0}}),hu=new at(`antSlideLeftIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1}}),gu=new at(`antSlideLeftOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),_u=new at(`antSlideRightIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1}}),vu=new at(`antSlideRightOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0}}),yu={"slide-up":{inKeyframes:du,outKeyframes:fu},"slide-down":{inKeyframes:pu,outKeyframes:mu},"slide-left":{inKeyframes:hu,outKeyframes:gu},"slide-right":{inKeyframes:_u,outKeyframes:vu}},bu=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=yu[t];return[$l(r,i,a,e.motionDurationMid),{[`
54
+ ${r}-enter,
55
+ ${r}-appear
56
+ `]:{transform:`scale(0)`,transformOrigin:`0% 0%`,opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:`scale(1)`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},xu=()=>({"@media (prefers-reduced-motion: reduce)":{transition:`none`,animation:`none`}}),Su=new at(`antZoomIn`,{"0%":{transform:`scale(0.2)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),Cu=new at(`antZoomOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.2)`,opacity:0}}),wu=new at(`antZoomBigIn`,{"0%":{transform:`scale(0.8)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),Tu=new at(`antZoomBigOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.8)`,opacity:0}}),Eu=new at(`antZoomUpIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 0%`}}),Du=new at(`antZoomUpOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 0%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0}}),Ou=new at(`antZoomLeftIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`0% 50%`}}),ku=new at(`antZoomLeftOut`,{"0%":{transform:`scale(1)`,transformOrigin:`0% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0}}),Au=new at(`antZoomRightIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`100% 50%`}}),ju=new at(`antZoomRightOut`,{"0%":{transform:`scale(1)`,transformOrigin:`100% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0}}),Mu=new at(`antZoomDownIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 100%`}}),Nu=new at(`antZoomDownOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 100%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0}}),Pu={zoom:{inKeyframes:Su,outKeyframes:Cu},"zoom-big":{inKeyframes:wu,outKeyframes:Tu},"zoom-big-fast":{inKeyframes:wu,outKeyframes:Tu},"zoom-left":{inKeyframes:Ou,outKeyframes:ku},"zoom-right":{inKeyframes:Au,outKeyframes:ju},"zoom-up":{inKeyframes:Eu,outKeyframes:Du},"zoom-down":{inKeyframes:Mu,outKeyframes:Nu}},Fu=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Pu[t];return[$l(r,i,a,t===`zoom-big-fast`?e.motionDurationFast:e.motionDurationMid),{[`
57
+ ${r}-enter,
58
+ ${r}-appear
59
+ `]:{transform:`scale(0)`,opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:`none`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Iu=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Lu=e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:`relative`,display:`inline-flex`,[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(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}},Iu(`${t}-primary`,i),Iu(`${t}-danger`,a)]}},Ru=e=>Math.round(Number(e||0)),zu=e=>{if(e instanceof pe)return e;if(e&&typeof e==`object`&&`h`in e&&`b`in e){let{b:t,...n}=e;return{...n,v:t}}return typeof e==`string`&&/hsb/.test(e)?e.replace(/hsb/,`hsv`):e},Bu=class extends pe{constructor(e){super(zu(e))}toHsbString(){let e=this.toHsb(),t=Ru(e.s*100),n=Ru(e.b*100),r=Ru(e.h),i=e.a,a=`hsb(${r}, ${t}%, ${n}%)`,o=`hsba(${r}, ${t}%, ${n}%, ${i.toFixed(i===0?0:2)})`;return i===1?a:o}toHsb(){let{v:e,...t}=this.toHsv();return{...t,b:e,a:this.a}}},Vu=`rc-color-picker`,Hu=e=>e instanceof Bu?e:new Bu(e),Uu=Hu(`#1677ff`),Wu=e=>{let{offset:t,targetRef:n,containerRef:r,color:i,type:a}=e,{width:o,height:s}=r.current.getBoundingClientRect(),{width:c,height:l}=n.current.getBoundingClientRect(),u=c/2,d=l/2,f=(t.x+u)/o,p=1-(t.y+d)/s,m=i.toHsb(),h=f,g=(t.x+u)/o*360;if(a)switch(a){case`hue`:return Hu({...m,h:g<=0?0:g});case`alpha`:return Hu({...m,a:h<=0?0:h})}return Hu({h:m.h,s:f<=0?0:f,b:p>=1?1:p,a:m.a})},Gu=(e,t)=>{let n=e.toHsb();switch(t){case`hue`:return{x:n.h/360*100,y:50};case`alpha`:return{x:e.a*100,y:50};default:return{x:n.s*100,y:(1-n.b)*100}}},Ku=({color:e,prefixCls:t,className:n,style:r,innerClassName:i,innerStyle:a,onClick:o})=>{let s=`${t}-color-block`;return $.createElement(`div`,{className:X(s,n),style:r,onClick:o},$.createElement(`div`,{className:X(`${s}-inner`,i),style:{background:e,...a}}))};function qu(e){let 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}}function Ju(e){let{targetRef:t,containerRef:n,direction:r,onDragChange:i,onDragChangeComplete:a,calculate:o,color:s,disabledDrag:c}=e,[l,u]=(0,$.useState)({x:0,y:0}),d=(0,$.useRef)(null),f=(0,$.useRef)(null);(0,$.useEffect)(()=>{u(o())},[s]),(0,$.useEffect)(()=>()=>{document.removeEventListener(`mousemove`,d.current),document.removeEventListener(`mouseup`,f.current),document.removeEventListener(`touchmove`,d.current),document.removeEventListener(`touchend`,f.current),d.current=null,f.current=null},[]);let p=e=>{let{pageX:a,pageY:o}=qu(e),{x:s,y:c,width:u,height:d}=n.current.getBoundingClientRect(),{width:f,height:p}=t.current.getBoundingClientRect(),m=f/2,h=p/2,g=Math.max(0,Math.min(a-s,u))-m,_=Math.max(0,Math.min(o-c,d))-h,v={x:g,y:r===`x`?l.y:_};if(f===0&&p===0||f!==p)return!1;i?.(v)},m=e=>{e.preventDefault(),p(e)},h=e=>{e.preventDefault(),document.removeEventListener(`mousemove`,d.current),document.removeEventListener(`mouseup`,f.current),document.removeEventListener(`touchmove`,d.current),document.removeEventListener(`touchend`,f.current),d.current=null,f.current=null,a?.()};return[l,e=>{document.removeEventListener(`mousemove`,d.current),document.removeEventListener(`mouseup`,f.current),!c&&(p(e),document.addEventListener(`mousemove`,m),document.addEventListener(`mouseup`,h),document.addEventListener(`touchmove`,m),document.addEventListener(`touchend`,h),d.current=m,f.current=h)}]}var Yu=({size:e=`default`,color:t,prefixCls:n})=>$.createElement(`div`,{className:X(`${n}-handler`,{[`${n}-handler-sm`]:e===`small`}),style:{backgroundColor:t}}),Xu=({children:e,style:t,prefixCls:n})=>$.createElement(`div`,{className:`${n}-palette`,style:{position:`relative`,...t}},e),Zu=(0,$.forwardRef)((e,t)=>{let{children:n,x:r,y:i}=e;return $.createElement(`div`,{ref:t,style:{position:`absolute`,left:`${r}%`,top:`${i}%`,zIndex:1,transform:`translate(-50%, -50%)`}},n)}),Qu=({color:e,onChange:t,prefixCls:n,onChangeComplete:r,disabled:i})=>{let a=(0,$.useRef)(),o=(0,$.useRef)(),s=(0,$.useRef)(e),[c,l]=Ju({color:e,containerRef:a,targetRef:o,calculate:()=>Gu(e),onDragChange:J(n=>{let r=Wu({offset:n,targetRef:o,containerRef:a,color:e});s.current=r,t(r)}),onDragChangeComplete:()=>r?.(s.current),disabledDrag:i});return $.createElement(`div`,{ref:a,className:`${n}-select`,onMouseDown:l,onTouchStart:l},$.createElement(Xu,{prefixCls:n},$.createElement(Zu,{x:c.x,y:c.y,ref:o},$.createElement(Yu,{color:e.toRgbString(),prefixCls:n})),$.createElement(`div`,{className:`${n}-saturation`,style:{backgroundColor:`hsl(${e.toHsb().h},100%, 50%)`,backgroundImage:`linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))`}})))},$u=(e,t)=>{let[n,r]=v(e,t);return[(0,$.useMemo)(()=>Hu(n),[n]),r]},ed=({colors:e,children:t,direction:n=`to right`,type:r,prefixCls:i})=>{let a=(0,$.useMemo)(()=>e.map((t,n)=>{let i=Hu(t);return r===`alpha`&&n===e.length-1&&(i=new Bu(i.setA(1))),i.toRgbString()}).join(`,`),[e,r]);return $.createElement(`div`,{className:`${i}-gradient`,style:{position:`absolute`,inset:0,background:`linear-gradient(${n}, ${a})`}},t)},td=e=>{let{prefixCls:t,colors:n,disabled:r,onChange:i,onChangeComplete:a,color:o,type:s}=e,c=(0,$.useRef)(null),l=(0,$.useRef)(null),u=(0,$.useRef)(o),d=e=>s===`hue`?e.getHue():e.a*100,[f,p]=Ju({color:o,targetRef:l,containerRef:c,calculate:()=>Gu(o,s),onDragChange:J(e=>{let t=Wu({offset:e,targetRef:l,containerRef:c,color:o,type:s});u.current=t,i(d(t))}),onDragChangeComplete(){a(d(u.current))},direction:`x`,disabledDrag:r}),m=$.useMemo(()=>{if(s===`hue`){let e=o.toHsb();return e.s=1,e.b=1,e.a=1,new Bu(e)}return o},[o,s]),h=$.useMemo(()=>n.map(e=>`${e.color} ${e.percent}%`),[n]);return $.createElement(`div`,{ref:c,className:X(`${t}-slider`,`${t}-slider-${s}`),onMouseDown:p,onTouchStart:p},$.createElement(Xu,{prefixCls:t},$.createElement(Zu,{x:f.x,y:f.y,ref:l},$.createElement(Yu,{size:`small`,color:m.toHexString(),prefixCls:t})),$.createElement(ed,{colors:h,type:s,prefixCls:t})))};function nd(e){return $.useMemo(()=>{let{slider:t}=e||{};return[t||td]},[e])}function rd(){return rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rd.apply(this,arguments)}var id=[{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}],ad=(0,$.forwardRef)((e,t)=>{let{value:n,defaultValue:r,prefixCls:i=Vu,onChange:a,onChangeComplete:o,className:s,style:c,panelRender:l,disabledAlpha:u=!1,disabled:d=!1,components:f}=e,[p]=nd(f),[m,h]=$u(r||Uu,n),g=(0,$.useMemo)(()=>m.setA(1).toRgbString(),[m]),_=(e,t)=>{n||h(e),a?.(e,t)},v=e=>new Bu(m.setHue(e)),y=e=>new Bu(m.setA(e/100)),b=e=>{_(v(e),{type:`hue`,value:e})},x=e=>{_(y(e),{type:`alpha`,value:e})},S=e=>{o&&o(v(e))},C=e=>{o&&o(y(e))},w=X(`${i}-panel`,s,{[`${i}-panel-disabled`]:d}),T={prefixCls:i,disabled:d,color:m},E=$.createElement($.Fragment,null,$.createElement(Qu,rd({onChange:_},T,{onChangeComplete:o})),$.createElement(`div`,{className:`${i}-slider-container`},$.createElement(`div`,{className:X(`${i}-slider-group`,{[`${i}-slider-group-disabled-alpha`]:u})},$.createElement(p,rd({},T,{type:`hue`,colors:id,min:0,max:359,value:m.getHue(),onChange:b,onChangeComplete:S})),!u&&$.createElement(p,rd({},T,{type:`alpha`,colors:[{percent:0,color:`rgba(255, 0, 4, 0)`},{percent:100,color:g}],min:0,max:100,value:m.a*100,onChange:x,onChangeComplete:C}))),$.createElement(Ku,{color:m.toRgbString(),prefixCls:i})));return $.createElement(`div`,{className:w,style:c,ref:t},typeof l==`function`?l(E):E)}),od=(e,t)=>e?.replace(/[^0-9a-f]/gi,``).slice(0,t?8:6)||``,sd=(e,t)=>e?od(e,t):``,cd=function(){function e(t){if(nn(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(t=>({color:new e(t.color),percent:t.percent})),this.cleared=t.cleared;return}let n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new Bu(this.colors[0].color.metaColor)):this.metaColor=new Bu(n?``:t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return an(e,[{key:`toHsb`,value:function(){return this.metaColor.toHsb()}},{key:`toHsbString`,value:function(){return this.metaColor.toHsbString()}},{key:`toHex`,value:function(){return sd(this.toHexString(),this.metaColor.a<1)}},{key:`toHexString`,value:function(){return this.metaColor.toHexString()}},{key:`toRgb`,value:function(){return this.metaColor.toRgb()}},{key:`toRgbString`,value:function(){return this.metaColor.toRgbString()}},{key:`isGradient`,value:function(){return!!this.colors&&!this.cleared}},{key:`getColors`,value:function(){return this.colors||[{color:this,percent:0}]}},{key:`toCssString`,value:function(){let{colors:e}=this;return e?`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(`, `)})`:this.metaColor.toRgbString()}},{key:`equals`,value:function(e){return!e||this.isGradient()!==e.isGradient()?!1:this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{let r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString()}}])}();function ld(){return ld=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ld.apply(null,arguments)}var ud=$.forwardRef((e,t)=>{let{prefixCls:n,forceRender:r,className:i,style:a,children:o,isActive:s,role:c,classNames:l,styles:u}=e,[d,f]=$.useState(s||r);return $.useEffect(()=>{(r||s)&&f(!0)},[r,s]),d?$.createElement(`div`,{ref:t,className:X(`${n}-panel`,{[`${n}-panel-active`]:s,[`${n}-panel-inactive`]:!s},i),style:a,role:c},$.createElement(`div`,{className:X(`${n}-body`,l?.body),style:u?.body},o)):null}),dd=$.forwardRef((e,t)=>{let{showArrow:n=!0,headerClass:r,isActive:i,onItemClick:a,forceRender:o,className:s,classNames:c={},styles:l={},prefixCls:u,collapsible:d,accordion:p,panelKey:m,extra:h,header:g,expandIcon:_,openMotion:v,destroyOnHidden:y,children:b,...x}=e,S=d===`disabled`,C=h!=null&&typeof h!=`boolean`,w={onClick:()=>{a?.(m)},onKeyDown:e=>{(e.key===`Enter`||e.keyCode===f.ENTER||e.which===f.ENTER)&&a?.(m)},role:p?`tab`:`button`,"aria-expanded":i,"aria-disabled":S,tabIndex:S?-1:0},T=typeof _==`function`?_(e):$.createElement(`i`,{className:`arrow`}),E=T&&$.createElement(`div`,ld({className:X(`${u}-expand-icon`,c?.icon),style:l?.icon},[`header`,`icon`].includes(d)?w:{}),T),D=X(`${u}-item`,{[`${u}-item-active`]:i,[`${u}-item-disabled`]:S},s),O={className:X(r,`${u}-header`,{[`${u}-collapsible-${d}`]:!!d},c?.header),style:l?.header,...[`header`,`icon`].includes(d)?{}:w};return $.createElement(`div`,ld({},x,{ref:t,className:D}),$.createElement(`div`,O,n&&E,$.createElement(`span`,ld({className:X(`${u}-title`,c?.title),style:l?.title},d===`header`?w:{}),g),C&&$.createElement(`div`,{className:`${u}-extra`},h)),$.createElement(wi,ld({visible:i,leavedClassName:`${u}-panel-hidden`},v,{forceRender:o,removeOnLeave:y}),({className:e,style:t},n)=>$.createElement(ud,{ref:n,prefixCls:u,className:e,classNames:c,style:t,styles:l,isActive:i,forceRender:o,role:p?`tabpanel`:void 0},b)))});function fd(e,t,n){if(!e||!t)return e||t;let r=Array.from(new Set([...Object.keys(e),...Object.keys(t)])),i={};return r.forEach(r=>{i[r]=n(e[r],t[r])}),i}function pd(e,t){return fd(e,t,(e,t)=>X(e,t))}function md(e,t){return fd(e,t,(e,t)=>({...e,...t}))}var hd=(e,t)=>{let{prefixCls:n,accordion:r,collapsible:i,destroyOnHidden:a,onItemClick:o,activeKey:s,openMotion:c,expandIcon:l,classNames:u,styles:d}=t;return e.map((e,t)=>{let{children:f,label:p,key:m,collapsible:h,onItemClick:g,destroyOnHidden:_,classNames:v,styles:y,...b}=e,x=String(m??t),S=h??i,C=_??a,w=e=>{S!==`disabled`&&(o(e),g?.(e))},T=!1;return T=r?s[0]===x:s.indexOf(x)>-1,$.createElement(dd,ld({},b,{classNames:pd(u,v),styles:md(d,y),prefixCls:n,key:x,panelKey:x,isActive:T,accordion:r,openMotion:c,expandIcon:l,header:p,collapsible:S,onItemClick:w,destroyOnHidden:C}),f)})},gd=(e,t,n)=>{if(!e)return null;let{prefixCls:r,accordion:i,collapsible:a,destroyOnHidden:o,onItemClick:s,activeKey:c,openMotion:l,expandIcon:u,classNames:d,styles:f}=n,p=e.key||String(t),{header:m,headerClass:h,destroyOnHidden:g,collapsible:_,onItemClick:v}=e.props,y=!1;y=i?c[0]===p:c.indexOf(p)>-1;let b=_??a,x={key:p,panelKey:p,header:m,headerClass:h,classNames:d,styles:f,isActive:y,prefixCls:r,destroyOnHidden:g??o,openMotion:l,accordion:i,children:e.props.children,onItemClick:e=>{b!==`disabled`&&(s(e),v?.(e))},expandIcon:u,collapsible:b};return typeof e.type==`string`?e:(Object.keys(x).forEach(e=>{x[e]===void 0&&delete x[e]}),$.cloneElement(e,x))};function _d(e,t,n){return Array.isArray(e)?hd(e,n):Je(t).map((e,t)=>gd(e,t,n))}function vd(e){let t=e;if(!Array.isArray(t)){let e=typeof t;t=e===`number`||e===`string`?[t]:[]}return t.map(e=>String(e))}var yd=Object.assign($.forwardRef((e,t)=>{let{prefixCls:n=`rc-collapse`,destroyOnHidden:r=!1,style:i,accordion:a,className:o,children:s,collapsible:c,openMotion:l,expandIcon:u,activeKey:d,defaultActiveKey:f,onChange:p,items:m,classNames:h,styles:g}=e,_=X(n,o),[y,b]=v(f,d),x=vd(y),S=J(e=>{let t=vd(e);b(t),p?.(t)}),C=e=>{S(a?x[0]===e?[]:[e]:x.includes(e)?x.filter(t=>t!==e):[...x,e])};$e(!s,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");let w=_d(m,s,{prefixCls:n,accordion:a,openMotion:l,expandIcon:u,collapsible:c,destroyOnHidden:r,onItemClick:C,activeKey:x,classNames:h,styles:g});return $.createElement(`div`,ld({ref:t,className:_,style:i,role:a?`tablist`:void 0},V(e,{aria:!0,data:!0})),w)}),{Panel:dd}),bd=yd,{Panel:xd}=yd,Sd=$.forwardRef((e,t)=>{let{getPrefixCls:n}=$.useContext(Vt),{prefixCls:r,className:i,showArrow:a=!0}=e,o=n(`collapse`,r),s=X({[`${o}-no-arrow`]:!a},i);return $.createElement(bd.Panel,{ref:t,...e,prefixCls:o,className:s})}),Cd=e=>{let{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:a,collapseHeaderPaddingSM:o,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:l,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:m,fontSizeLG:h,lineHeight:g,lineHeightLG:_,marginSM:v,paddingSM:y,paddingLG:b,paddingXS:x,motionDurationSlow:S,fontSizeIcon:C,contentPadding:w,fontHeight:T,fontHeightLG:E}=e,D=`${Q(l)} ${u} ${d}`;return{[t]:{...ur(e),backgroundColor:i,border:D,borderRadius:c,"&-rtl":{direction:`rtl`},[`& > ${t}-item`]:{borderBottom:D,"&:first-child":{[`
60
+ &,
61
+ & > ${t}-header`]:{borderRadius:`${Q(c)} ${Q(c)} 0 0`}},"&:last-child":{[`
62
+ &,
63
+ & > ${t}-header`]:{borderRadius:`0 0 ${Q(c)} ${Q(c)}`}},[`> ${t}-header`]:{position:`relative`,display:`flex`,flexWrap:`nowrap`,alignItems:`flex-start`,padding:a,color:p,lineHeight:g,cursor:`pointer`,transition:`all ${S}, visibility 0s`,...mr(e),[`> ${t}-title`]:{flex:`auto`},[`${t}-expand-icon`]:{height:T,display:`flex`,alignItems:`center`,marginInlineEnd:v},[`${t}-arrow`]:{...dr(),fontSize:C,transition:`transform ${S}`,svg:{transition:`transform ${S}`}},[`${t}-title`]:{marginInlineEnd:`auto`}},[`${t}-collapsible-header`]:{cursor:`default`,[`${t}-title`]:{flex:`none`,cursor:`pointer`},[`${t}-expand-icon`]:{cursor:`pointer`}},[`${t}-collapsible-icon`]:{cursor:`unset`,[`${t}-expand-icon`]:{cursor:`pointer`}}},[`${t}-panel`]:{color:f,backgroundColor:n,borderTop:D,[`& > ${t}-body`]:{padding:w},"&-hidden":{display:`none`}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:o,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(x).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:h,lineHeight:_,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:E,marginInlineStart:e.calc(b).sub(r).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:b}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-panel`]:{borderRadius:`0 0 ${Q(c)} ${Q(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"&, & > .arrow":{color:m,cursor:`not-allowed`}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,marginInlineEnd:0,marginInlineStart:v}}}}}}},wd=e=>{let{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:`rotate(180deg)`}}}},Td=e=>{let{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:i,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[`
64
+ > ${t}-item:last-child,
65
+ > ${t}-item:last-child ${t}-header
66
+ `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-panel`]:{backgroundColor:i,borderTop:0},[`> ${t}-item > ${t}-panel > ${t}-body`]:{padding:r}}}},Ed=e=>{let{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:`transparent`,border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-panel`]:{backgroundColor:`transparent`,border:0,[`> ${t}-body`]:{paddingBlock:n}}}}}},Dd=yr(`Collapse`,e=>{let t=wn(e,{collapseHeaderPaddingSM:`${Q(e.paddingXS)} ${Q(e.paddingSM)}`,collapseHeaderPaddingLG:`${Q(e.padding)} ${Q(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Cd(t),Td(t),Ed(t),wd(t),Zl(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:`transparent`})),Od=Object.assign($.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,expandIcon:i,className:a,style:o,classNames:s,styles:c}=Wt(`collapse`),{prefixCls:l,className:d,rootClassName:f,style:p,bordered:m=!0,ghost:h,size:g,expandIconPlacement:_,expandIconPosition:v,children:y,destroyInactivePanel:b,destroyOnHidden:x,expandIcon:S,classNames:C,styles:w}=e,E=jl(e=>g??e??`middle`),D=n(`collapse`,l),O=n(),[k,A]=Dd(D),j=_??v??`start`,M={...e,size:E,bordered:m,expandIconPlacement:j},[N,P]=zi([s,C],[c,w],{props:M}),F=S??i,I=$.useCallback((e={})=>Io(ki(F)?F(e):$.createElement(T,{rotate:e.isActive?r===`rtl`?-90:90:void 0,"aria-label":e.isActive?`expanded`:`collapsed`}),e=>({className:X(e.className,`${D}-arrow`)})),[F,D,r]),L=X(`${D}-icon-placement-${j}`,{[`${D}-borderless`]:!m,[`${D}-rtl`]:r===`rtl`,[`${D}-ghost`]:!!h,[`${D}-large`]:E===`large`,[`${D}-small`]:E===`small`},a,d,f,k,A,N.root),R=$.useMemo(()=>({...yl(O),motionAppear:!1,leavedClassName:`${D}-panel-hidden`}),[O,D]),z=$.useMemo(()=>y?Je(y).map(e=>e):null,[y]);return $.createElement(bd,{ref:t,openMotion:R,...u(e,[`rootClassName`]),expandIcon:I,prefixCls:D,className:L,style:{...P.root,...o,...p},classNames:N,styles:P,destroyOnHidden:x??b},z)}),{Panel:Sd}),kd=e=>e instanceof cd?e:new cd(e),Ad=e=>Math.round(Number(e||0)),jd=e=>Ad(e.toHsb().a*100),Md=(e,t)=>{let n=e.toRgb();if(!n.r&&!n.g&&!n.b){let n=e.toHsb();return n.a=t||1,kd(n)}return n.a=t||1,kd(n)},Nd=(e,t)=>{let n=[{percent:0,color:e[0].color}].concat(Lt(e),[{percent:100,color:e[e.length-1].color}]);for(let e=0;e<n.length-1;e+=1){let r=n[e].percent,i=n[e+1].percent,a=n[e].color,o=n[e+1].color;if(r<=t&&t<=i){let e=i-r;if(e===0)return a;let n=(t-r)/e*100,s=new Bu(a),c=new Bu(o);return s.mix(c,n).toRgbString()}}return``},Pd=e=>e.map(e=>(e.colors=e.colors.map(kd),e)),Fd=(e,t)=>{let{r:n,g:r,b:i,a}=e.toRgb(),o=new Bu(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},Id=(e,t)=>`panel-${e.key??t}`,Ld=({prefixCls:e,presets:t,value:n,onChange:r})=>{let[i]=ja(`ColorPicker`),[,a]=cr(),o=(0,$.useMemo)(()=>Pd(t),[t]),s=`${e}-presets`,c=(0,$.useMemo)(()=>o.reduce((e,t,n)=>{let{defaultOpen:r=!0}=t;return r&&e.push(Id(t,n)),e},[]),[o]),l=e=>{r?.(e)},u=o.map((t,r)=>({key:Id(t,r),label:$.createElement(`div`,{className:`${s}-label`},t?.label),children:$.createElement(`div`,{className:`${s}-items`},Array.isArray(t?.colors)&&t.colors?.length>0?t.colors.map((t,r)=>{let i=kd(t);return $.createElement(Ku,{key:`preset-${r}-${t.toHexString()}`,color:i.toCssString(),prefixCls:e,className:X(`${s}-color`,{[`${s}-color-checked`]:t.toCssString()===n?.toCssString(),[`${s}-color-bright`]:Fd(t,a.colorBgElevated)}),onClick:()=>l(t)})}):$.createElement(`span`,{className:`${s}-empty`},i.presetEmpty))}));return $.createElement(`div`,{className:s},$.createElement(Od,{defaultActiveKey:c,ghost:!0,items:u}))},Rd=e=>{let{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return wn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},zd=e=>{let t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,i=e.contentLineHeight??In(t),a=e.contentLineHeightSM??In(n),o=e.contentLineHeightLG??In(r),s=Fd(new cd(e.colorBgSolid),`#fff`)?`#000`:`#fff`,c=Fn.reduce((t,n)=>({...t,[`${n}ShadowColor`]:`0 ${Q(e.controlOutlineWidth)} 0 ${nr(e[`${n}1`],e.colorBgContainer)}`}),{}),l=e.colorBgContainerDisabled,u=e.colorBgContainerDisabled;return{...c,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:`transparent`,defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:`inherit`,onlyIconSizeSM:`inherit`,onlyIconSizeLG:`inherit`,groupBorderColor:e.colorPrimaryHover,linkHoverBg:`transparent`,textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:s,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:i,contentLineHeightSM:a,contentLineHeightLG:o,paddingBlock:Math.max((e.controlHeight-t*i)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*a)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*o)/2-e.lineWidth,0),defaultBgDisabled:l,dashedBgDisabled:u}},Bd=e=>{let{componentCls:t,antCls:n,lineWidth:r}=e,[i,a]=Sr(n,`btn`);return{[t]:[{[i(`border-width`)]:r,[i(`border-color`)]:`#000`,[i(`border-color-hover`)]:a(`border-color`),[i(`border-color-active`)]:a(`border-color`),[i(`border-color-disabled`)]:a(`border-color`),[i(`border-style`)]:`solid`,[i(`text-color`)]:`#000`,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`),[i(`text-color-disabled`)]:a(`text-color`),[i(`bg-color`)]:`#ddd`,[i(`bg-color-hover`)]:a(`bg-color`),[i(`bg-color-active`)]:a(`bg-color`),[i(`bg-color-disabled`)]:e.colorBgContainerDisabled,[i(`bg-color-container`)]:e.colorBgContainer,[i(`shadow`)]:`none`},{border:[a(`border-width`),a(`border-style`),a(`border-color`)].join(` `),color:a(`text-color`),backgroundColor:a(`bg-color`),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[a(`border-width`),a(`border-style`),a(`border-color-hover`)].join(` `),color:a(`text-color-hover`),backgroundColor:a(`bg-color-hover`)},"&:active":{border:[a(`border-width`),a(`border-style`),a(`border-color-active`)].join(` `),color:a(`text-color-active`),backgroundColor:a(`bg-color-active`)}}},{[`&${t}-variant-solid`]:{[i(`solid-bg-color`)]:a(`color-base`),[i(`solid-bg-color-hover`)]:a(`color-hover`),[i(`solid-bg-color-active`)]:a(`color-active`),[i(`border-color`)]:`transparent`,[i(`text-color`)]:e.colorTextLightSolid,[i(`bg-color`)]:a(`solid-bg-color`),[i(`bg-color-hover`)]:a(`solid-bg-color-hover`),[i(`bg-color-active`)]:a(`solid-bg-color-active`),boxShadow:a(`shadow`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`border-color`)]:a(`color-base`),[i(`border-color-hover`)]:a(`color-hover`),[i(`border-color-active`)]:a(`color-active`),[i(`bg-color`)]:a(`bg-color-container`),[i(`text-color`)]:a(`color-base`),[i(`text-color-hover`)]:a(`color-hover`),[i(`text-color-active`)]:a(`color-active`),boxShadow:a(`shadow`)},[`&${t}-variant-dashed`]:{[i(`border-style`)]:`dashed`,[i(`bg-color-disabled`)]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[i(`border-color`)]:`transparent`,[i(`text-color`)]:a(`color-base`),[i(`bg-color`)]:a(`color-light`),[i(`bg-color-hover`)]:a(`color-light-hover`),[i(`bg-color-active`)]:a(`color-light-active`)},[`&${t}-variant-text, &${t}-variant-link`]:{[i(`border-color`)]:`transparent`,[i(`text-color`)]:a(`color-base`),[i(`text-color-hover`)]:a(`color-hover`),[i(`text-color-active`)]:a(`color-active`),[i(`bg-color`)]:`transparent`,[i(`bg-color-hover`)]:`transparent`,[i(`bg-color-active`)]:`transparent`,[`&:disabled, &${e.componentCls}-disabled`]:{background:`transparent`,borderColor:`transparent`}},[`&${t}-variant-text`]:{[i(`bg-color-hover`)]:a(`color-light`),[i(`bg-color-active`)]:a(`color-light-active`)}},{[`&${t}-variant-link`]:{[i(`color-base`)]:e.colorLink,[i(`color-hover`)]:e.colorLinkHover,[i(`color-active`)]:e.colorLinkActive,[i(`bg-color-hover`)]:e.linkHoverBg},[`&${t}-color-primary`]:{[i(`color-base`)]:e.colorPrimary,[i(`color-hover`)]:e.colorPrimaryHover,[i(`color-active`)]:e.colorPrimaryActive,[i(`color-light`)]:e.colorPrimaryBg,[i(`color-light-hover`)]:e.colorPrimaryBgHover,[i(`color-light-active`)]:e.colorPrimaryBorder,[i(`shadow`)]:e.primaryShadow,[`&${t}-variant-solid`]:{[i(`text-color`)]:e.primaryColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)}},[`&${t}-color-dangerous`]:{[i(`color-base`)]:e.colorError,[i(`color-hover`)]:e.colorErrorHover,[i(`color-active`)]:e.colorErrorActive,[i(`color-light`)]:e.colorErrorBg,[i(`color-light-hover`)]:e.colorErrorBgFilledHover,[i(`color-light-active`)]:e.colorErrorBgActive,[i(`shadow`)]:e.dangerShadow,[`&${t}-variant-solid`]:{[i(`text-color`)]:e.dangerColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)}},[`&${t}-color-default`]:{[i(`solid-bg-color`)]:e.colorBgSolid,[i(`solid-bg-color-hover`)]:e.colorBgSolidHover,[i(`solid-bg-color-active`)]:e.colorBgSolidActive,[i(`color-base`)]:e.defaultBorderColor,[i(`color-hover`)]:e.defaultHoverBorderColor,[i(`color-active`)]:e.defaultActiveBorderColor,[i(`color-light`)]:e.colorFillTertiary,[i(`color-light-hover`)]:e.colorFillSecondary,[i(`color-light-active`)]:e.colorFill,[i(`text-color`)]:e.defaultColor,[i(`text-color-hover`)]:e.defaultHoverColor,[i(`text-color-active`)]:e.defaultActiveColor,[i(`shadow`)]:e.defaultShadow,[`&${t}-variant-outlined`]:{[i(`bg-color-disabled`)]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[i(`text-color`)]:e.solidTextColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)},[`&${t}-variant-filled, &${t}-variant-text`]:{[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`text-color`)]:e.defaultColor,[i(`text-color-hover`)]:e.defaultHoverColor,[i(`text-color-active`)]:e.defaultActiveColor,[i(`bg-color-container`)]:e.defaultBg,[i(`bg-color-hover`)]:e.defaultHoverBg,[i(`bg-color-active`)]:e.defaultActiveBg},[`&${t}-variant-text`]:{[i(`text-color`)]:e.textTextColor,[i(`text-color-hover`)]:e.textTextHoverColor,[i(`text-color-active`)]:e.textTextActiveColor,[i(`bg-color-hover`)]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`text-color`)]:e.defaultGhostColor,[i(`border-color`)]:e.defaultGhostBorderColor}}}},Fn.map(n=>{let r=e[`${n}6`],a=e[`${n}1`],o=e[`${n}Hover`],s=e[`${n}2`],c=e[`${n}3`],l=e[`${n}Active`],u=e[`${n}ShadowColor`];return{[`&${t}-color-${n}`]:{[i(`color-base`)]:r,[i(`color-hover`)]:o,[i(`color-active`)]:l,[i(`color-light`)]:a,[i(`color-light-hover`)]:s,[i(`color-light-active`)]:c,[i(`shadow`)]:u}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:`not-allowed`,borderColor:e.colorBorderDisabled,background:a(`bg-color-disabled`),color:e.colorTextDisabled,boxShadow:`none`}},{[`&${t}-background-ghost`]:{[i(`bg-color`)]:e.ghostBg,[i(`bg-color-hover`)]:e.ghostBg,[i(`bg-color-active`)]:e.ghostBg,[i(`shadow`)]:`none`,[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`bg-color-hover`)]:e.ghostBg,[i(`bg-color-active`)]:e.ghostBg}}}]}},Vd=e=>{let{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:a,motionEaseInOut:o,iconGap:s,calc:c}=e;return{[t]:{outline:`none`,position:`relative`,display:`inline-flex`,gap:s,alignItems:`center`,justifyContent:`center`,fontWeight:r,whiteSpace:`nowrap`,textAlign:`center`,backgroundImage:`none`,cursor:`pointer`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:`none`,touchAction:`manipulation`,...xu(),"&:disabled > *":{pointerEvents:`none`},[`${t}-icon > svg`]:dr(),[`${t}-icon`]:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`},"> a":{color:`currentColor`},"&:not(:disabled)":mr(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:`0.34em`},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:`-0.34em`,letterSpacing:`0.34em`},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:`none`}},[`&${t}-loading`]:{opacity:i,cursor:`default`},[`${t}-loading-icon`]:{transition:[`width`,`opacity`,`margin`].map(e=>`${e} ${a} ${o}`).join(`,`)},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:`row-reverse`,[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(s).mul(-1).equal()}}}}}},Hd=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:`50%`}),Ud=(e,t=``)=>{let{componentCls:n,controlHeight:r,fontSize:i,borderRadius:a,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:c,buttonIconOnlyFontSize:l}=e;return[{[t]:{fontSize:i,height:r,padding:`${Q(c)} ${Q(o)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:l}}}},{[`${n}${n}-circle${t}`]:Hd(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Wd=e=>Ud(wn(e,{fontSize:e.contentFontSize}),e.componentCls),Gd=e=>Ud(wn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),`${e.componentCls}-sm`),Kd=e=>Ud(wn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),`${e.componentCls}-lg`),qd=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:`100%`}}}},Jd=yr(`Button`,e=>{let t=Rd(e);return[Vd(t),Wd(t),Gd(t),Kd(t),qd(t),Bd(t),Lu(t)]},zd,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Yd(e,t,n,r){let{focusElCls:i,focus:a,borderElCls:o}=n,s=o?`> *`:``,c=s?` ${s}`:``,l=e=>e.filter(Boolean).map(e=>`&:${e}${c}`).join(`,`),u=l([`hover`,i?`hover${i}`:null]),d=l([a?`focus`:null,`active`]);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[d]:{zIndex:3},[u]:{zIndex:4},...i?{[`&${i}`]:{zIndex:3}}:{},[`&[disabled] ${s}`]:{zIndex:0}}}}function Xd(e,t,n){let{borderElCls:r}=n,i=r?`> ${r}`:``;return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Zd(e,t={focus:!0}){let{componentCls:n}=e,{componentCls:r}=t,i=r||n,a=`${i}-compact`;return{[a]:{...Yd(e,a,t,i),...Xd(i,a,t)}}}function Qd(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}function $d(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function ef(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:{...Qd(e,t,e.componentCls),...$d(e.componentCls,t)}}}var tf=e=>{let{antCls:t,componentCls:n,lineWidth:r,calc:i,colorBgContainer:a}=e,o=`${n}-variant-solid:not([disabled])`,s=i(r).mul(-1).equal(),[c,l]=Sr(t,`btn`),u=e=>({[`${n}-compact${e?`-vertical`:``}-item`]:{[c(`compact-connect-border-color`)]:l(`bg-color-hover`),[`&${o}`]:{transition:`none`,[`& + ${o}:before`]:[{position:`absolute`,backgroundColor:l(`compact-connect-border-color`),content:`""`},e?{top:s,insetInline:s,height:r}:{insetBlock:s,insetInlineStart:s,width:r}],"&:hover:before":{display:`none`}}}});return[u(),u(!0),{[`${o}${n}-color-default`]:{[c(`compact-connect-border-color`)]:`color-mix(in srgb, ${l(`bg-color-hover`)} 75%, ${a})`}}]},nf=xr([`Button`,`compact`],e=>{let t=Rd(e);return[Zd(t),ef(t),tf(t)]},zd);function rf(e){if(Oi(e)){let t=e?.delay;return t=Ei(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}var af={default:[`default`,`outlined`],primary:[`primary`,`solid`],dashed:[`default`,`dashed`],link:[`link`,`link`],text:[`default`,`text`]},of=$.forwardRef((e,t)=>{let{_skipSemantic:n,loading:r=!1,prefixCls:i,color:a,variant:o,type:s,danger:c=!1,shape:l,size:d,disabled:f,className:p,rootClassName:m,children:h,icon:g,iconPosition:_,iconPlacement:v,ghost:y=!1,block:b=!1,htmlType:x=`button`,classNames:S,styles:C,style:w,autoInsertSpace:T,autoFocus:E,...D}=e,O=Je(h),k=s||`default`,{getPrefixCls:A,direction:j,autoInsertSpace:M,className:N,style:P,classNames:F,styles:I,loadingIcon:L,shape:R,color:z,variant:B}=Wt(`button`),V=l||R||`default`,[H,U]=(0,$.useMemo)(()=>{if(a&&o)return[a,o];if(s||c){let e=af[k]||[];return c?[`danger`,e[1]]:e}return o===`solid`?[`primary`,o]:z&&B?[z,B]:B===`solid`?[`primary`,B]:[`default`,`outlined`]},[a,o,s,c,z,B,k]),[W,G]=(0,$.useMemo)(()=>y&&U===`solid`?[H,`outlined`]:[H,U],[H,U,y]),ee=W===`danger`,q=ee?`dangerous`:W,te=T??M??!0,ne=A(`btn`,i),[re,J]=Jd(ne),ie=(0,$.useContext)(Vo),ae=f??ie,oe=(0,$.useContext)(Rl),se=(0,$.useMemo)(()=>rf(r),[r]),[ce,le]=(0,$.useState)(se.loading),[Y,ue]=(0,$.useState)(!1),de=(0,$.useRef)(null),fe=K(t,de),pe=O.length===1&&!g&&!Ul(G),me=(0,$.useRef)(!0);$.useEffect(()=>(me.current=!1,()=>{me.current=!0}),[]),Pe(()=>{let e=null;se.delay>0?e=setTimeout(()=>{e=null,le(!0)},se.delay):le(se.loading);function t(){e&&(clearTimeout(e),e=null)}return t},[se.delay,se.loading]),(0,$.useEffect)(()=>{if(!de.current||!te)return;let e=de.current.textContent||``;pe&&Vl(e)?Y||ue(!0):Y&&ue(!1)}),(0,$.useEffect)(()=>{E&&de.current&&de.current.focus()},[]);let he=$.useCallback(t=>{if(ce||ae){t.preventDefault();return}e.onClick?.((`href`in e,t))},[e.onClick,ce,ae]),{compactSize:ge,compactItemClassnames:_e}=Pl(ne,j),ve=jl(e=>d??ge??oe??e),ye=ce?`loading`:g,be=v??_??`start`,xe=u(D,[`navigate`]),Se={...e,type:k,color:W,variant:G,danger:ee,shape:V,size:ve,disabled:ae,loading:ce,iconPlacement:be},[Ce,we]=zi([n?void 0:F,S],[n?void 0:I,C],{props:Se}),Te=X(ne,re,J,{[`${ne}-${V}`]:V!=="default"&&V!==`square`&&V,[`${ne}-${k}`]:k,[`${ne}-dangerous`]:c,[`${ne}-color-${q}`]:q,[`${ne}-variant-${G}`]:G,[`${ne}-lg`]:ve===`large`,[`${ne}-sm`]:ve===`small`,[`${ne}-icon-only`]:!h&&h!==0&&!!ye,[`${ne}-background-ghost`]:y&&!Ul(G),[`${ne}-loading`]:ce,[`${ne}-two-chinese-chars`]:Y&&te&&!ce,[`${ne}-block`]:b,[`${ne}-rtl`]:j===`rtl`,[`${ne}-icon-end`]:be===`end`},_e,p,m,N,Ce.root),Ee={...we.root,...P,...w},De={className:Ce.icon,style:we.icon},Oe=e=>$.createElement(Kl,{prefixCls:ne,...De},e),ke=$.createElement(Xl,{existIcon:!!g,prefixCls:ne,loading:ce,mount:me.current,...De}),Ae=Oi(r)&&r.icon||L,je;je=g&&!ce?Oe(g):r&&Ae?Oe(Ae):ke;let Me=Ti(h)?Gl(h,pe&&te,we.content,Ce.content):null;if(xe.href!==void 0)return $.createElement(`a`,{...xe,className:X(Te,{[`${ne}-disabled`]:ae}),href:ae?void 0:xe.href,style:Ee,onClick:he,ref:fe,tabIndex:ae?-1:0,"aria-disabled":ae},je,Me);let Ne=$.createElement(`button`,{...D,type:x,className:Te,style:Ee,onClick:he,disabled:ae,ref:fe},je,Me,_e&&$.createElement(nf,{prefixCls:ne}));return Ul(G)||(Ne=$.createElement(Al,{component:`Button`,disabled:ce},Ne)),Ne});of.Group=zl,of.__ANT_BUTTON=!0;var sf=e=>{let{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:o,emitEvent:s,isSilent:c,quitOnNullishReturnValue:l,actionFn:u}=e,d=$.useRef(!1),f=$.useRef(null),[p,m]=E(!1),h=(...e)=>{a?.(...e)};$.useEffect(()=>{let e=null;return o&&(e=setTimeout(()=>{f.current?.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[o]);let g=e=>{Ai(e)&&(m(!0),e.then((...e)=>{m(!1,!0),h.apply(void 0,e),d.current=!1},e=>{if(m(!1,!0),d.current=!1,!c?.())return Promise.reject(e)}))},_=e=>{if(d.current)return;if(d.current=!0,!u){h();return}let t;if(s){if(t=u(e),l&&!Ai(t)){d.current=!1,h(e);return}}else if(u.length)t=u(a),d.current=!1;else if(t=u(),!Ai(t)){h();return}g(t)};return $.createElement(of,{...Hl(t),onClick:_,loading:p,prefixCls:r,...i,ref:f},n)},cf=$.createContext({}),{Provider:lf}=cf,uf=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:c,onClose:l}=(0,$.useContext)(cf);return i?$.createElement(sf,{isSilent:r,actionFn:s,close:(...e)=>{o?.(...e),c?.(!1),l?.()},autoFocus:e===`cancel`,buttonProps:t,prefixCls:`${a}-btn`},n):null},df=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:c,onClose:l}=(0,$.useContext)(cf);return $.createElement(sf,{isSilent:n,type:o||`primary`,actionFn:c,close:(...e)=>{t?.(...e),s?.(!0),l?.()},autoFocus:e===`ok`,buttonProps:r,prefixCls:`${i}-btn`},a)},ff=$.createContext({});function pf(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function mf(e,t){let n=e[`page${t?`Y`:`X`}Offset`],r=`scroll${t?`Top`:`Left`}`;if(typeof n!=`number`){let t=e.document;n=t.documentElement[r],typeof n!=`number`&&(n=t.body[r])}return n}function hf(e){let t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=mf(i),n.top+=mf(i,!0),n}var gf=$.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function _f(){return _f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_f.apply(this,arguments)}var vf=$.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,title:a,ariaId:o,footer:s,closable:c,closeIcon:l,onClose:u,children:d,bodyStyle:f,bodyProps:p,modalRender:m,onMouseDown:h,onMouseUp:g,holderRef:_,visible:v,forceRender:y,width:b,height:x,classNames:S,styles:C,isFixedPos:w,focusTrap:T}=e,{panel:E}=$.useContext(ff),D=(0,$.useRef)(null),O=K(_,E,D),[k]=A(v&&w&&T!==!1,()=>D.current);$.useImperativeHandle(t,()=>({focus:()=>{D.current?.focus({preventScroll:!0})}}));let j={};b!==void 0&&(j.width=b),x!==void 0&&(j.height=x);let M=s?$.createElement(`div`,{className:X(`${n}-footer`,S?.footer),style:{...C?.footer}},s):null,N=a?$.createElement(`div`,{className:X(`${n}-header`,S?.header),style:{...C?.header}},$.createElement(`div`,{className:X(`${n}-title`,S?.title),id:o,style:{...C?.title}},a)):null,P=(0,$.useMemo)(()=>typeof c==`object`&&c?c:c?{closeIcon:l??$.createElement(`span`,{className:`${n}-close-x`})}:{},[c,l,n]),F=V(P,!0),I=typeof c==`object`&&c.disabled,L=c?$.createElement(`button`,_f({type:`button`,onClick:u,"aria-label":`Close`},F,{className:X(`${n}-close`,S?.close),disabled:I,style:C?.close}),P.closeIcon):null,R=$.createElement(`div`,{className:X(`${n}-container`,S?.container),style:C?.container},L,N,$.createElement(`div`,_f({className:X(`${n}-body`,S?.body),style:{...f,...C?.body}},p),d),M);return $.createElement(`div`,{key:`dialog-element`,role:`dialog`,"aria-labelledby":a?o:null,"aria-modal":`true`,ref:O,style:{...i,...j},className:X(n,r),onMouseDown:h,onMouseUp:g,tabIndex:-1,onFocus:e=>{k(e.target)}},$.createElement(gf,{shouldUpdate:v||y},m?m(R):R))});function yf(){return yf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yf.apply(this,arguments)}var bf=$.forwardRef((e,t)=>{let{prefixCls:n,title:r,style:i,className:a,visible:o,forceRender:s,destroyOnHidden:c,motionName:l,ariaId:u,onVisibleChanged:d,mousePosition:f}=e,p=(0,$.useRef)(null),m=(0,$.useRef)(null);$.useImperativeHandle(t,()=>({...m.current,inMotion:p.current.inMotion,enableMotion:p.current.enableMotion}));let[h,g]=$.useState(),_={};h&&(_.transformOrigin=h);function v(){if(!p.current?.nativeElement)return;let e=hf(p.current.nativeElement);g(f&&(f.x||f.y)?`${f.x-e.left}px ${f.y-e.top}px`:``)}return $.createElement(wi,{visible:o,onVisibleChanged:d,onAppearPrepare:v,onEnterPrepare:v,forceRender:s,motionName:l,removeOnLeave:c,ref:p},({className:t,style:o},s)=>$.createElement(vf,yf({},e,{ref:m,title:r,ariaId:u,prefixCls:n,holderRef:s,style:{...o,...i,..._},className:X(a,t)})))});function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xf.apply(this,arguments)}var Sf=e=>{let{prefixCls:t,style:n,visible:r,maskProps:i,motionName:a,className:o}=e;return $.createElement(wi,{key:`mask`,visible:r,motionName:a,leavedClassName:`${t}-mask-hidden`},({className:e,style:r},a)=>$.createElement(`div`,xf({ref:a,style:{...r,...n},className:X(`${t}-mask`,e,o)},i)))};function Cf(){return Cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cf.apply(this,arguments)}var wf=e=>{let{prefixCls:t=`rc-dialog`,zIndex:n,visible:r=!1,focusTriggerAfterClose:i=!0,wrapStyle:a,wrapClassName:o,wrapProps:s,onClose:c,afterOpenChange:l,afterClose:u,transitionName:d,animation:f,closable:p=!0,mask:m=!0,maskTransitionName:h,maskAnimation:g,maskClosable:_=!0,maskStyle:v,maskProps:y,rootClassName:b,rootStyle:x,classNames:S,styles:C}=e,w=(0,$.useRef)(null),T=(0,$.useRef)(null),E=(0,$.useRef)(null),[D,O]=$.useState(r),[k,A]=$.useState(!1),j=te();function M(){rt(T.current,document.activeElement)||(w.current=document.activeElement)}function N(){rt(T.current,document.activeElement)||E.current?.focus()}function P(){if(O(!1),m&&w.current&&i){try{w.current.focus({preventScroll:!0})}catch{}w.current=null}D&&u?.()}function F(e){e?N():P(),l?.(e)}function I(e){c?.(e)}let L=(0,$.useRef)(!1),R=null;_&&(R=e=>{T.current===e.target&&L.current&&I(e)});function z(e){L.current=e.target===T.current}(0,$.useEffect)(()=>{r?(L.current=!1,O(!0),M(),T.current&&A(getComputedStyle(T.current).position===`fixed`)):D&&E.current.enableMotion()&&!E.current.inMotion()&&P()},[r]);let B={zIndex:n,...a,...C?.wrapper,display:D?null:`none`};return $.createElement(`div`,Cf({className:X(`${t}-root`,b),style:x},V(e,{data:!0})),$.createElement(Sf,{prefixCls:t,visible:m&&r,motionName:pf(t,h,g),style:{zIndex:n,...v,...C?.mask},maskProps:y,className:S?.mask}),$.createElement(`div`,Cf({className:X(`${t}-wrap`,o,S?.wrapper),ref:T,onClick:R,onMouseDown:z,style:B},s),$.createElement(bf,Cf({},e,{isFixedPos:k,ref:E,closable:p,ariaId:j,prefixCls:t,visible:r&&D,onClose:I,onVisibleChanged:F,motionName:pf(t,d,f)}))))};function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tf.apply(this,arguments)}var Ef=e=>{let{visible:t,getContainer:n,forceRender:r,destroyOnHidden:i=!1,afterClose:a,closable:o,panelRef:s,keyboard:c=!0,onClose:l}=e,[u,d]=$.useState(t),f=$.useMemo(()=>({panel:s}),[s]);return $.useEffect(()=>{t&&d(!0)},[t]),!r&&i&&!u?null:$.createElement(ff.Provider,{value:f},$.createElement(Qa,{open:t||r||u,onEsc:({top:e,event:t})=>{if(e&&c){t.stopPropagation(),l?.(t);return}},autoDestroy:!1,getContainer:n,autoLock:t||u},$.createElement(wf,Tf({},e,{destroyOnHidden:i,afterClose:()=>{let{afterClose:e}=(o&&typeof o==`object`?o:{})||{};e?.(),a?.(),d(!1)}}))))},Df=`RC_FORM_INTERNAL_HOOKS`,Of=()=>{$e(!1,`Can not find FormContext. Please make sure you wrap Field under Form.`)},kf=$.createContext({getFieldValue:Of,getFieldsValue:Of,getFieldError:Of,getFieldWarning:Of,getFieldsError:Of,isFieldsTouched:Of,isFieldTouched:Of,isFieldValidating:Of,isFieldsValidating:Of,resetFields:Of,setFields:Of,setFieldValue:Of,setFieldsValue:Of,validateFields:Of,submit:Of,getInternalHooks:()=>(Of(),{dispatch:Of,initEntityValue:Of,registerField:Of,useSubscribe:Of,setInitialValues:Of,destroyForm:Of,setCallbacks:Of,registerWatch:Of,getFields:Of,setValidateMessages:Of,setPreserve:Of,getInitialValue:Of})}),Af=$.createContext(null);function jf(e){return e==null?[]:Array.isArray(e)?e:[e]}function Mf(e){return e&&!!e._init}function Nf(){return{default:`Validation error on field %s`,required:`%s is required`,enum:`%s must be one of %s`,whitespace:`%s cannot be empty`,date:{format:`%s date %s is invalid for format %s`,parse:`%s date could not be parsed, %s is invalid `,invalid:`%s date %s is invalid`},types:{string:`%s is not a %s`,method:`%s is not a %s (function)`,array:`%s is not an %s`,object:`%s is not an %s`,number:`%s is not a %s`,date:`%s is not a %s`,boolean:`%s is not a %s`,integer:`%s is not an %s`,float:`%s is not a %s`,regexp:`%s is not a valid %s`,email:`%s is not a valid %s`,tel:`%s is not a valid %s`,url:`%s is not a valid %s`,hex:`%s is not a valid %s`},string:{len:`%s must be exactly %s characters`,min:`%s must be at least %s characters`,max:`%s cannot be longer than %s characters`,range:`%s must be between %s and %s characters`},number:{len:`%s must equal %s`,min:`%s cannot be less than %s`,max:`%s cannot be greater than %s`,range:`%s must be between %s and %s`},array:{len:`%s must be exactly %s in length`,min:`%s cannot be less than %s in length`,max:`%s cannot be greater than %s in length`,range:`%s must be between %s and %s in length`},pattern:{mismatch:`%s value %s does not match pattern %s`},clone(){let e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Pf=Nf(),Ff=/%[sdj%]/g,If=()=>{};function Lf(e){if(!e||!e.length)return null;let t={};return e.forEach(e=>{let n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function Rf(e,...t){let n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(Ff,e=>{if(e===`%%`)return`%`;if(n>=r)return e;switch(e){case`%s`:return String(t[n++]);case`%d`:return Number(t[n++]);case`%j`:try{return JSON.stringify(t[n++])}catch{return`[Circular]`}break;default:return e}}):e}function zf(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`||e===`tel`}function Bf(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||zf(t)&&typeof e==`string`&&!e)}function Vf(e,t,n){let r=[],i=0,a=e.length;function o(e){r.push(...e||[]),i++,i===a&&n(r)}e.forEach(e=>{t(e,o)})}function Hf(e,t,n){let r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}let s=r;r+=1,s<i?t(e[s],a):n([])}a([])}function Uf(e){let t=[];return Object.keys(e).forEach(n=>{t.push(...e[n]||[])}),t}var Wf=class extends Error{constructor(e,t){super(`Async Validation Error`),Z(this,`errors`,void 0),Z(this,`fields`,void 0),this.errors=e,this.fields=t}};function Gf(e,t,n,r,i){if(t.first){let t=new Promise((t,a)=>{Hf(Uf(e),n,e=>(r(e),e.length?a(new Wf(e,Lf(e))):t(i)))});return t.catch(e=>e),t}let a=t.firstFields===!0?Object.keys(e):t.firstFields||[],o=Object.keys(e),s=o.length,c=0,l=[],u=new Promise((t,u)=>{let d=e=>{if(l.push.apply(l,e),c++,c===s)return r(l),l.length?u(new Wf(l,Lf(l))):t(i)};o.length||(r(l),t(i)),o.forEach(t=>{let r=e[t];a.indexOf(t)===-1?Vf(r,n,d):Hf(r,n,d)})});return u.catch(e=>e),u}function Kf(e){return!!(e&&e.message!==void 0)}function qf(e,t){let n=e;for(let e=0;e<t.length;e++){if(n==null)return n;n=n[t[e]]}return n}function Jf(e,t){return n=>{let r;return r=e.fullFields?qf(t,e.fullFields):t[n.field||e.fullField],Kf(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n==`function`?n():n,fieldValue:r,field:n.field||e.fullField}}}function Yf(e,t){if(t){for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];typeof r==`object`&&typeof e[n]==`object`?e[n]={...e[n],...r}:e[n]=r}}return e}var Xf=`enum`,Zf=(e,t,n,r,i)=>{e[Xf]=Array.isArray(e[Xf])?e[Xf]:[],e[Xf].indexOf(t)===-1&&r.push(Rf(i.messages[Xf],e.fullField,e[Xf].join(`, `)))},Qf=(e,t,n,r,i)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Rf(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern==`string`&&(new RegExp(e.pattern).test(t)||r.push(Rf(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},$f=(e,t,n,r,i)=>{let a=typeof e.len==`number`,o=typeof e.min==`number`,s=typeof e.max==`number`,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,u=null,d=typeof t==`number`,f=typeof t==`string`,p=Array.isArray(t);if(d?u=`number`:f?u=`string`:p&&(u=`array`),!u)return!1;p&&(l=t.length),f&&(l=t.replace(c,`_`).length),a?l!==e.len&&r.push(Rf(i.messages[u].len,e.fullField,e.len)):o&&!s&&l<e.min?r.push(Rf(i.messages[u].min,e.fullField,e.min)):s&&!o&&l>e.max?r.push(Rf(i.messages[u].max,e.fullField,e.max)):o&&s&&(l<e.min||l>e.max)&&r.push(Rf(i.messages[u].range,e.fullField,e.min,e.max))},ep=(e,t,n,r,i,a)=>{e.required&&(!n.hasOwnProperty(e.field)||Bf(t,a||e.type))&&r.push(Rf(i.messages.required,e.fullField))},tp,np=(()=>{if(tp)return tp;let e=`[a-fA-F\\d:]`,t=t=>t&&t.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|$))`:``,n=`(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}`,r=`[a-fA-F\\d]{1,4}`,i=`(?:${[`(?:${r}:){7}(?:${r}|:)`,`(?:${r}:){6}(?:${n}|:${r}|:)`,`(?:${r}:){5}(?::${n}|(?::${r}){1,2}|:)`,`(?:${r}:){4}(?:(?::${r}){0,1}:${n}|(?::${r}){1,3}|:)`,`(?:${r}:){3}(?:(?::${r}){0,2}:${n}|(?::${r}){1,4}|:)`,`(?:${r}:){2}(?:(?::${r}){0,3}:${n}|(?::${r}){1,5}|:)`,`(?:${r}:){1}(?:(?::${r}){0,4}:${n}|(?::${r}){1,6}|:)`,`(?::(?:(?::${r}){0,5}:${n}|(?::${r}){1,7}|:))`].join(`|`)})(?:%[0-9a-zA-Z]{1,})?`,a=RegExp(`(?:^${n}$)|(?:^${i}$)`),o=RegExp(`^${n}$`),s=RegExp(`^${i}$`),c=e=>e&&e.exact?a:RegExp(`(?:${t(e)}${n}${t(e)})|(?:${t(e)}${i}${t(e)})`,`g`);c.v4=e=>e&&e.exact?o:RegExp(`${t(e)}${n}${t(e)}`,`g`),c.v6=e=>e&&e.exact?s:RegExp(`${t(e)}${i}${t(e)}`,`g`);let l=`(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|${c.v4().source}|${c.v6().source}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return tp=RegExp(`(?:^${l}$)`,`i`),tp}),rp={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ip={integer(e){return ip.number(e)&&parseInt(e,10)===e},float(e){return ip.number(e)&&!ip.integer(e)},array(e){return Array.isArray(e)},regexp(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date(e){return typeof e.getTime==`function`&&typeof e.getMonth==`function`&&typeof e.getYear==`function`&&!isNaN(e.getTime())},number(e){return isNaN(e)?!1:typeof e==`number`},object(e){return typeof e==`object`&&!ip.array(e)},method(e){return typeof e==`function`},email(e){return typeof e==`string`&&e.length<=320&&!!e.match(rp.email)},tel(e){return typeof e==`string`&&e.length<=32&&!!e.match(rp.tel)},url(e){return typeof e==`string`&&e.length<=2048&&!!e.match(np())},hex(e){return typeof e==`string`&&!!e.match(rp.hex)}},ap={required:ep,whitespace:(e,t,n,r,i)=>{(/^\s+$/.test(t)||t===``)&&r.push(Rf(i.messages.whitespace,e.fullField))},type:(e,t,n,r,i)=>{if(e.required&&t===void 0){ep(e,t,n,r,i);return}let a=[`integer`,`float`,`array`,`regexp`,`object`,`method`,`email`,`tel`,`number`,`date`,`url`,`hex`],o=e.type;a.indexOf(o)>-1?ip[o](t)||r.push(Rf(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(Rf(i.messages.types[o],e.fullField,e.type))},range:$f,enum:Zf,pattern:Qf},op=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bf(t)&&!e.required)return n();ap.required(e,t,r,a,i)}n(a)},sp=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();ap.required(e,t,r,a,i,`array`),t!=null&&(ap.type(e,t,r,a,i),ap.range(e,t,r,a,i))}n(a)},cp=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bf(t)&&!e.required)return n();ap.required(e,t,r,a,i),t!==void 0&&ap.type(e,t,r,a,i)}n(a)},lp=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bf(t,`date`)&&!e.required)return n();if(ap.required(e,t,r,a,i),!Bf(t,`date`)){let n;n=t instanceof Date?t:new Date(t),ap.type(e,n,r,a,i),n&&ap.range(e,n.getTime(),r,a,i)}}n(a)},up=`enum`,dp=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bf(t)&&!e.required)return n();ap.required(e,t,r,a,i),t!==void 0&&ap[up](e,t,r,a,i)}n(a)},fp=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bf(t)&&!e.required)return n();ap.required(e,t,r,a,i),t!==void 0&&(ap.type(e,t,r,a,i),ap.range(e,t,r,a,i))}n(a)},pp=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bf(t)&&!e.required)return n();ap.required(e,t,r,a,i),t!==void 0&&(ap.type(e,t,r,a,i),ap.range(e,t,r,a,i))}n(a)},mp=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bf(t)&&!e.required)return n();ap.required(e,t,r,a,i),t!==void 0&&ap.type(e,t,r,a,i)}n(a)},hp=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===``&&(t=void 0),Bf(t)&&!e.required)return n();ap.required(e,t,r,a,i),t!==void 0&&(ap.type(e,t,r,a,i),ap.range(e,t,r,a,i))}n(a)},gp=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bf(t)&&!e.required)return n();ap.required(e,t,r,a,i),t!==void 0&&ap.type(e,t,r,a,i)}n(a)},_p=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bf(t,`string`)&&!e.required)return n();ap.required(e,t,r,a,i),Bf(t,`string`)||ap.pattern(e,t,r,a,i)}n(a)},vp=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bf(t)&&!e.required)return n();ap.required(e,t,r,a,i),Bf(t)||ap.type(e,t,r,a,i)}n(a)},yp=(e,t,n,r,i)=>{let a=[],o=Array.isArray(t)?`array`:typeof t;ap.required(e,t,r,a,i,o),n(a)},bp=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bf(t,`string`)&&!e.required)return n();ap.required(e,t,r,a,i,`string`),Bf(t,`string`)||(ap.type(e,t,r,a,i),ap.range(e,t,r,a,i),ap.pattern(e,t,r,a,i),e.whitespace===!0&&ap.whitespace(e,t,r,a,i))}n(a)},xp=(e,t,n,r,i)=>{let a=e.type,o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Bf(t,a)&&!e.required)return n();ap.required(e,t,r,o,i,a),Bf(t,a)||ap.type(e,t,r,o,i)}n(o)},Sp={string:bp,method:mp,number:hp,boolean:cp,regexp:vp,integer:pp,float:fp,array:sp,object:gp,enum:dp,pattern:_p,date:lp,url:xp,hex:xp,email:xp,tel:xp,required:yp,any:op},Cp=class e{constructor(e){Z(this,`rules`,null),Z(this,`_messages`,Pf),this.define(e)}define(e){if(!e)throw Error(`Cannot configure a schema with no rules`);if(typeof e!=`object`||Array.isArray(e))throw Error(`Rules must be an object`);this.rules={},Object.keys(e).forEach(t=>{let n=e[t];this.rules[t]=Array.isArray(n)?n:[n]})}messages(e){return e&&(this._messages=Yf(Nf(),e)),this._messages}validate(t,n={},r=()=>{}){let i=t,a=n,o=r;if(typeof a==`function`&&(o=a,a={}),!this.rules||Object.keys(this.rules).length===0)return o&&o(null,i),Promise.resolve(i);function s(e){let t=[],n={};function r(e){Array.isArray(e)?t=t.concat(...e):t.push(e)}for(let t=0;t<e.length;t++)r(e[t]);t.length?(n=Lf(t),o(t,n)):o(null,i)}if(a.messages){let e=this.messages();e===Pf&&(e=Nf()),Yf(e,a.messages),a.messages=e}else a.messages=this.messages();let c={};(a.keys||Object.keys(this.rules)).forEach(e=>{let n=this.rules[e],r=i[e];n.forEach(n=>{let a=n;typeof a.transform==`function`&&(i===t&&(i={...i}),r=i[e]=a.transform(r),r!=null&&(a.type=a.type||(Array.isArray(r)?`array`:typeof r))),a=typeof a==`function`?{validator:a}:{...a},a.validator=this.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=this.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:r,source:i,field:e}))})});let l={};return Gf(c,a,(t,n)=>{let r=t.rule,o=(r.type===`object`||r.type===`array`)&&(typeof r.fields==`object`||typeof r.defaultField==`object`);o=o&&(r.required||!r.required&&t.value),r.field=t.field;function s(e,t){return{...t,fullField:`${r.fullField}.${e}`,fullFields:r.fullFields?[...r.fullFields,e]:[e]}}function c(c=[]){let u=Array.isArray(c)?c:[c];!a.suppressWarning&&u.length&&e.warning(`async-validator:`,u),u.length&&r.message!==void 0&&r.message!==null&&(u=[].concat(r.message));let d=u.map(Jf(r,i));if(a.first&&d.length)return l[r.field]=1,n(d);if(!o)n(d);else{if(r.required&&!t.value)return r.message===void 0?a.error&&(d=[a.error(r,Rf(a.messages.required,r.field))]):d=[].concat(r.message).map(Jf(r,i)),n(d);let o={};r.defaultField&&Object.keys(t.value).map(e=>{o[e]=r.defaultField}),o={...o,...t.rule.fields};let c={};Object.keys(o).forEach(e=>{let t=o[e];c[e]=(Array.isArray(t)?t:[t]).map(s.bind(null,e))});let l=new e(c);l.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),l.validate(t.value,t.rule.options||a,e=>{let t=[];d&&d.length&&t.push(...d),e&&e.length&&t.push(...e),n(t.length?t:null)})}}let u;if(r.asyncValidator)u=r.asyncValidator(r,t.value,c,t.source,a);else if(r.validator){try{u=r.validator(r,t.value,c,t.source,a)}catch(e){console.error?.(e),a.suppressValidatorError||setTimeout(()=>{throw e},0),c(e.message)}u===!0?c():u===!1?c(typeof r.message==`function`?r.message(r.fullField||r.field):r.message||`${r.fullField||r.field} fails`):u instanceof Array?c(u):u instanceof Error&&c(u.message)}u&&u.then&&u.then(()=>c(),e=>c(e))},e=>{s(e)},i)}getType(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type=`pattern`),typeof e.validator!=`function`&&e.type&&!Sp.hasOwnProperty(e.type))throw Error(Rf(`Unknown rule type %s`,e.type));return e.type||`string`}getValidationMethod(e){if(typeof e.validator==`function`)return e.validator;let t=Object.keys(e),n=t.indexOf(`message`);return n!==-1&&t.splice(n,1),t.length===1&&t[0]===`required`?Sp.required:Sp[this.getType(e)]||void 0}};Z(Cp,`register`,function(e,t){if(typeof t!=`function`)throw Error(`Cannot register a validator by type, validator is not a function`);Sp[e]=t}),Z(Cp,`warning`,If),Z(Cp,`messages`,Pf),Z(Cp,`validators`,Sp);var wp="'${name}' is not a valid ${type}",Tp={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:wp,method:wp,array:wp,object:wp,number:wp,date:wp,boolean:wp,integer:wp,float:wp,regexp:wp,email:wp,tel:wp,url:wp,hex:wp},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Ep=Cp;function Dp(e,t){return e.replace(/\\?\$\{\w+\}/g,e=>e.startsWith(`\\`)?e.slice(1):t[e.slice(2,-1)])}var Op=`CODE_LOGIC_ERROR`;async function kp(e,t,n,r,i){let a={...n};if(delete a.ruleIndex,Ep.warning=()=>void 0,a.validator){let e=a.validator;a.validator=(...t)=>{try{return e(...t)}catch{return Promise.reject(Op)}}}let o=null;a&&a.type===`array`&&a.defaultField&&(o=a.defaultField,delete a.defaultField);let s=new Ep({[e]:[a]}),c=ve(Tp,r.validateMessages);s.messages(c);let l=[];try{await Promise.resolve(s.validate({[e]:t},{...r}))}catch(e){e.errors&&(l=e.errors.map(({message:e},t)=>{let n=e===Op?c.default:e;return $.isValidElement(n)?$.cloneElement(n,{key:`error_${t}`}):n}))}if(!l.length&&o&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((t,n)=>kp(`${e}.${n}`,t,o,r,i)))).reduce((e,t)=>[...e,...t],[]);let u={...n,name:e,enum:(n.enum||[]).join(`, `),...i};return l.map(e=>typeof e==`string`?Dp(e,u):e)}function Ap(e,t,n,r,i,a){let o=e.join(`.`),s=n.map((e,t)=>{let n=e.validator,r={...e,ruleIndex:t};return n&&(r.validator=(e,t,r)=>{let i=!1,a=n(e,t,(...e)=>{Promise.resolve().then(()=>{$e(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r(...e)})});i=a&&typeof a.then==`function`&&typeof a.catch==`function`,$e(i,"`callback` is deprecated. Please return a promise instead."),i&&a.then(()=>{r()}).catch(e=>{r(e||` `)})}),r}).sort(({warningOnly:e,ruleIndex:t},{warningOnly:n,ruleIndex:r})=>!!e==!!n?t-r:e?1:-1),c;if(i===!0)c=new Promise(async(e,n)=>{for(let e=0;e<s.length;e+=1){let i=s[e],c=await kp(o,t,i,r,a);if(c.length){n([{errors:c,rule:i}]);return}}e([])});else{let e=s.map(e=>kp(o,t,e,r,a).then(t=>({errors:t,rule:e})));c=(i?Mp(e):jp(e)).then(e=>Promise.reject(e))}return c.catch(e=>e),c}async function jp(e){return Promise.all(e).then(e=>[].concat(...e))}async function Mp(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])})})})}function Np(e){return jf(e)}function Pp(e,t){let n={};return t.forEach(t=>{let r=oe(e,t);n=ge(n,t,r)}),n}function Fp(e,t,n=!1){return e&&e.some(e=>Ip(t,e,n))}function Ip(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((t,n)=>e[n]===t)}function Lp(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!=`object`||typeof t!=`object`)return!1;let n=Object.keys(e),r=Object.keys(t);return[...new Set([...n,...r])].every(n=>{let r=e[n],i=t[n];return typeof r==`function`&&typeof i==`function`?!0:r===i})}function Rp(e,...t){let n=t[0];return n&&n.target&&typeof n.target==`object`&&e in n.target?n.target[e]:n}function zp(e,t,n){let{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;let i=e[t],a=t-n;return a>0?[...e.slice(0,n),i,...e.slice(n,t),...e.slice(t+1,r)]:a<0?[...e.slice(0,t),...e.slice(t+1,n+1),i,...e.slice(n+1,r)]:e}var Bp=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},Vp=class{constructor(e){Z(this,`namePathList`,[]),Z(this,`taskId`,0),Z(this,`watcherList`,new Set),Z(this,`form`,void 0),this.form=e}register(e){return this.watcherList.add(e),()=>{this.watcherList.delete(e)}}notify(e){e.forEach(e=>{this.namePathList.every(t=>!Ip(t,e))&&this.namePathList.push(e)}),this.doBatch()}doBatch(){this.taskId+=1;let e=this.taskId;Bp(()=>{if(e===this.taskId&&this.watcherList.size){let e=this.form.getForm(),t=e.getFieldsValue(),n=e.getFieldsValue(!0);this.watcherList.forEach(e=>{e(t,n,this.namePathList)}),this.namePathList=[]}})}};async function Hp(){return new Promise(e=>{Bp(()=>{Y(()=>{e()})})})}function Up(){return Up=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Up.apply(this,arguments)}var Wp=[],Gp=[];function Kp(e,t,n,r,i,a){return typeof e==`function`?e(t,n,`source`in a?{source:a.source}:{}):r!==i}var qp=class extends $.Component{constructor(e){if(super(e),Z(this,`state`,{resetCount:0}),Z(this,`cancelRegisterFunc`,null),Z(this,`mounted`,!1),Z(this,`touched`,!1),Z(this,`dirty`,!1),Z(this,`validatePromise`,void 0),Z(this,`prevValidating`,void 0),Z(this,`errors`,Wp),Z(this,`warnings`,Gp),Z(this,`cancelRegister`,()=>{let{preserve:e,isListField:t,name:n}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(t,e,Np(n)),this.cancelRegisterFunc=null}),Z(this,`getNamePath`,()=>{let{name:e,fieldContext:t}=this.props,{prefixName:n=[]}=t;return e===void 0?[]:[...n,...e]}),Z(this,`getRules`,()=>{let{rules:e=[],fieldContext:t}=this.props;return e.map(e=>typeof e==`function`?e(t):e)}),Z(this,`refresh`,()=>{this.mounted&&this.setState(({resetCount:e})=>({resetCount:e+1}))}),Z(this,`metaCache`,null),Z(this,`triggerMetaEvent`,e=>{let{onMetaChange:t}=this.props;if(t){let n={...this.getMeta(),destroy:e};tt(this.metaCache,n)||t(n),this.metaCache=n}else this.metaCache=null}),Z(this,`onStoreChange`,(e,t,n)=>{let{shouldUpdate:r,dependencies:i=[],onReset:a}=this.props,{store:o}=n,s=this.getNamePath(),c=this.getValue(e),l=this.getValue(o),u=t&&Fp(t,s);switch(n.type===`valueUpdate`&&n.source===`external`&&!tt(c,l)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Wp,this.warnings=Gp,this.triggerMetaEvent()),n.type){case`reset`:if(!t||u){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Wp,this.warnings=Gp,this.triggerMetaEvent(),a?.(),this.refresh();return}break;case`remove`:if(r&&Kp(r,e,o,c,l,n)){this.reRender();return}break;case`setField`:{let{data:i}=n;if(u){`touched`in i&&(this.touched=i.touched),`validating`in i&&!(`originRCField`in i)&&(this.validatePromise=i.validating?Promise.resolve([]):null),`errors`in i&&(this.errors=i.errors||Wp),`warnings`in i&&(this.warnings=i.warnings||Gp),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if(`value`in i&&Fp(t,s,!0)){this.reRender();return}if(r&&!s.length&&Kp(r,e,o,c,l,n)){this.reRender();return}break}case`dependenciesUpdate`:if(i.map(Np).some(e=>Fp(n.relatedFields,e))){this.reRender();return}break;default:if(u||(!i.length||s.length||r)&&Kp(r,e,o,c,l,n)){this.reRender();return}break}r===!0&&this.reRender()}),Z(this,`validateRules`,e=>{let t=this.getNamePath(),n=this.getValue(),{triggerName:r,validateOnly:i=!1,delayFrame:a}=e||{},o=Promise.resolve().then(async()=>{if(!this.mounted)return[];let{validateFirst:i=!1,messageVariables:s,validateDebounce:c}=this.props;a&&await Hp();let l=this.getRules();if(r&&(l=l.filter(e=>e).filter(e=>{let{validateTrigger:t}=e;return t?jf(t).includes(r):!0})),c&&r&&(await new Promise(e=>{setTimeout(e,c)}),this.validatePromise!==o))return[];let u=Ap(t,n,l,e,i,s);return u.catch(e=>e).then((e=Wp)=>{if(this.validatePromise===o){this.validatePromise=null;let t=[],n=[];e.forEach?.(({rule:{warningOnly:e},errors:r=Wp})=>{e?n.push(...r):t.push(...r)}),this.errors=t,this.warnings=n,this.triggerMetaEvent(),this.reRender()}}),u});return i?o:(this.validatePromise=o,this.dirty=!0,this.errors=Wp,this.warnings=Gp,this.triggerMetaEvent(),this.reRender(),o)}),Z(this,`isFieldValidating`,()=>!!this.validatePromise),Z(this,`isFieldTouched`,()=>this.touched),Z(this,`isFieldDirty`,()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;let{fieldContext:e}=this.props,{getInitialValue:t}=e.getInternalHooks(Df);return t(this.getNamePath())!==void 0}),Z(this,`getErrors`,()=>this.errors),Z(this,`getWarnings`,()=>this.warnings),Z(this,`isListField`,()=>this.props.isListField),Z(this,`isList`,()=>this.props.isList),Z(this,`isPreserve`,()=>this.props.preserve),Z(this,`getMeta`,()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null})),Z(this,`getOnlyChild`,e=>{if(typeof e==`function`){let t=this.getMeta();return{...this.getOnlyChild(e(this.getControlled(),t,this.props.fieldContext)),isFunction:!0}}let t=Je(e);return t.length!==1||!$.isValidElement(t[0])?{child:t,isFunction:!1}:{child:t[0],isFunction:!1}}),Z(this,`getValue`,e=>{let{getFieldsValue:t}=this.props.fieldContext,n=this.getNamePath();return oe(e||t(!0),n)}),Z(this,`getControlled`,(e={})=>{let{name:t,trigger:n=`onChange`,validateTrigger:r,getValueFromEvent:i,normalize:a,valuePropName:o=`value`,getValueProps:s,fieldContext:c}=this.props,l=r===void 0?c.validateTrigger:r,u=this.getNamePath(),{getInternalHooks:d,getFieldsValue:f}=c,{dispatch:p}=d(Df),m=this.getValue(),h=s||(e=>({[o]:e})),g=e[n],_=t===void 0?{}:h(m),v={...e,..._};return v[n]=(...e)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let t;t=i?i(...e):Rp(o,...e),a&&(t=a(t,m,f(!0))),t!==m&&p({type:`updateValue`,namePath:u,value:t}),g&&g(...e)},jf(l||[]).forEach(e=>{let t=v[e];v[e]=(...n)=>{t&&t(...n);let{rules:r}=this.props;r&&r.length&&p({type:`validateField`,namePath:u,triggerName:e})}}),v}),e.fieldContext){let{getInternalHooks:t}=e.fieldContext,{initEntityValue:n}=t(Df);n(this)}}componentDidMount(){let{shouldUpdate:e,fieldContext:t}=this.props;if(this.mounted=!0,t){let{getInternalHooks:e}=t,{registerField:n}=e(Df);this.cancelRegisterFunc=n(this)}e===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}reRender(){this.mounted&&this.forceUpdate()}render(){let{resetCount:e}=this.state,{children:t}=this.props,{child:n,isFunction:r}=this.getOnlyChild(t),i;return r?i=n:$.isValidElement(n)?i=$.cloneElement(n,this.getControlled(n.props)):($e(!n,"`children` of Field is not validate ReactElement."),i=n),$.createElement($.Fragment,{key:e},i)}};Z(qp,`contextType`,kf);function Jp({name:e,...t}){let n=$.useContext(kf),r=$.useContext(Af),i=e===void 0?void 0:Np(e),a=t.isListField??!!r,o=`keep`;return a||(o=`_${(i||[]).join(`_`)}`),$.createElement(qp,Up({key:o,name:i,isListField:a},t,{fieldContext:n}))}function Yp({name:e,initialValue:t,children:n,rules:r,validateTrigger:i,isListField:a}){let o=$.useContext(kf),s=$.useContext(Af),c=$.useRef({keys:[],id:0}).current,l=$.useMemo(()=>[...Np(o.prefixName)||[],...Np(e)],[o.prefixName,e]),u=$.useMemo(()=>({...o,prefixName:l}),[o,l]),d=$.useMemo(()=>({getKey:e=>{let t=l.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}),[c,l]);return typeof n==`function`?$.createElement(Af.Provider,{value:d},$.createElement(kf.Provider,{value:u},$.createElement(Jp,{name:[],shouldUpdate:(e,t,{source:n})=>n===`internal`?!1:e!==t,rules:r,validateTrigger:i,initialValue:t,isList:!0,isListField:a??!!s},({value:e=[],onChange:t},r)=>{let{getFieldValue:i}=o,a=()=>i(l||[])||[],s={add:(e,n)=>{let r=a();n>=0&&n<=r.length?(c.keys=[...c.keys.slice(0,n),c.id,...c.keys.slice(n)],t([...r.slice(0,n),e,...r.slice(n)])):(c.keys=[...c.keys,c.id],t([...r,e])),c.id+=1},remove:e=>{let n=a(),r=new Set(Array.isArray(e)?e:[e]);r.size<=0||(c.keys=c.keys.filter((e,t)=>!r.has(t)),t(n.filter((e,t)=>!r.has(t))))},move(e,n){if(e===n)return;let r=a();e<0||e>=r.length||n<0||n>=r.length||(c.keys=zp(c.keys,e,n),t(zp(r,e,n)))}},u=e||[];return Array.isArray(u)||(u=[]),n(u.map((e,t)=>{let n=c.keys[t];return n===void 0&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}}),s,r)}))):($e(!1,`Form.List only accepts function as children.`),null)}function Xp(e){let t=!1,n=e.length,r=[];return e.length?new Promise((i,a)=>{e.forEach((e,o)=>{e.catch(e=>(t=!0,e)).then(e=>{--n,r[o]=e,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var Zp=`__@field_split__`;function Qp(e){return e.map(e=>`${typeof e}:${e}`).join(Zp)}var $p=class{constructor(){Z(this,`kvs`,new Map)}set(e,t){this.kvs.set(Qp(e),t)}get(e){return this.kvs.get(Qp(e))}getAsPrefix(e){let t=Qp(e),n=t+Zp,r=[],i=this.kvs.get(t);return i!==void 0&&r.push(i),this.kvs.forEach((e,t)=>{t.startsWith(n)&&r.push(e)}),r}update(e,t){let n=t(this.get(e));n?this.set(e,n):this.delete(e)}delete(e){this.kvs.delete(Qp(e))}map(e){return[...this.kvs.entries()].map(([t,n])=>e({key:t.split(Zp).map(e=>{let[,t,n]=e.match(/^([^:]*):(.*)$/);return t===`number`?Number(n):n}),value:n}))}toJSON(){let e={};return this.map(({key:t,value:n})=>(e[t.join(`.`)]=n,null)),e}},em=class{constructor(e){Z(this,`formHooked`,!1),Z(this,`forceRootUpdate`,void 0),Z(this,`subscribable`,!0),Z(this,`store`,{}),Z(this,`fieldEntities`,[]),Z(this,`initialValues`,{}),Z(this,`callbacks`,{}),Z(this,`validateMessages`,null),Z(this,`preserve`,null),Z(this,`lastValidatePromise`,null),Z(this,`watcherCenter`,new Vp(this)),Z(this,`getForm`,()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks})),Z(this,`getInternalHooks`,e=>e===`RC_FORM_INTERNAL_HOOKS`?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):($e(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)),Z(this,`useSubscribe`,e=>{this.subscribable=e}),Z(this,`prevWithoutPreserves`,null),Z(this,`setInitialValues`,(e,t)=>{if(this.initialValues=e||{},t){let t=ve(e,this.store);this.prevWithoutPreserves?.map(({key:n})=>{t=ge(t,n,oe(e,n))}),this.prevWithoutPreserves=null,this.updateStore(t)}}),Z(this,`destroyForm`,e=>{if(e)this.updateStore({});else{let e=new $p;this.getFieldEntities(!0).forEach(t=>{this.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),this.prevWithoutPreserves=e}}),Z(this,`getInitialValue`,e=>{let t=oe(this.initialValues,e);return e.length?ve(t):t}),Z(this,`setCallbacks`,e=>{this.callbacks=e}),Z(this,`setValidateMessages`,e=>{this.validateMessages=e}),Z(this,`setPreserve`,e=>{this.preserve=e}),Z(this,`registerWatch`,e=>this.watcherCenter.register(e)),Z(this,`notifyWatch`,(e=[])=>{this.watcherCenter.notify(e)}),Z(this,`timeoutId`,null),Z(this,`warningUnhooked`,()=>{}),Z(this,`updateStore`,e=>{this.store=e}),Z(this,`getFieldEntities`,(e=!1)=>e?this.fieldEntities.filter(e=>e.getNamePath().length):this.fieldEntities),Z(this,`getFieldsMap`,(e=!1)=>{let t=new $p;return this.getFieldEntities(e).forEach(e=>{let n=e.getNamePath();t.set(n,e)}),t}),Z(this,`getFieldEntitiesForNamePathList`,(e,t=!1)=>{if(!e)return this.getFieldEntities(!0);let n=this.getFieldsMap(!0);return t?e.flatMap(e=>{let t=Np(e),r=n.getAsPrefix(t);return r.length?r:[{INVALIDATE_NAME_PATH:t}]}):e.map(e=>{let t=Np(e);return n.get(t)||{INVALIDATE_NAME_PATH:Np(e)}})}),Z(this,`getFieldsValue`,(e,t)=>{this.warningUnhooked();let n,r;if(e===!0||Array.isArray(e)?(n=e,r=t):e&&typeof e==`object`&&(r=e.filter),n===!0&&!r)return this.store;let i=this.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null,!0),a=[],o=[];i.forEach(e=>{let t=e.INVALIDATE_NAME_PATH||e.getNamePath();if(e.isList?.()){o.push(t);return}if(!r)a.push(t);else{let n=`getMeta`in e?e.getMeta():null;r(n)&&a.push(t)}});let s=Pp(this.store,a.map(Np));return o.forEach(e=>{oe(s,e)||(s=ge(s,e,[]))}),s}),Z(this,`getFieldValue`,e=>{this.warningUnhooked();let t=Np(e);return oe(this.store,t)}),Z(this,`getFieldsError`,e=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(e).map((t,n)=>t&&!t.INVALIDATE_NAME_PATH?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Np(e[n]),errors:[],warnings:[]}))),Z(this,`getFieldError`,e=>{this.warningUnhooked();let t=Np(e);return this.getFieldsError([t])[0].errors}),Z(this,`getFieldWarning`,e=>{this.warningUnhooked();let t=Np(e);return this.getFieldsError([t])[0].warnings}),Z(this,`isFieldsTouched`,(...e)=>{this.warningUnhooked();let[t,n]=e,r,i=!1;e.length===0?r=null:e.length===1?Array.isArray(t)?(r=t.map(Np),i=!1):(r=null,i=t):(r=t.map(Np),i=n);let a=this.getFieldEntities(!0),o=e=>e.isFieldTouched();if(!r)return i?a.every(e=>o(e)||e.isList()):a.some(o);let s=new $p;r.forEach(e=>{s.set(e,[])}),a.forEach(e=>{let t=e.getNamePath();r.forEach(n=>{n.every((e,n)=>t[n]===e)&&s.update(n,t=>[...t,e])})});let c=e=>e.some(o),l=s.map(({value:e})=>e);return i?l.every(c):l.some(c)}),Z(this,`isFieldTouched`,e=>(this.warningUnhooked(),this.isFieldsTouched([e]))),Z(this,`isFieldsValidating`,e=>{this.warningUnhooked();let t=this.getFieldEntities();if(!e)return t.some(e=>e.isFieldValidating());let n=e.map(Np);return t.some(e=>Fp(n,e.getNamePath())&&e.isFieldValidating())}),Z(this,`isFieldValidating`,e=>(this.warningUnhooked(),this.isFieldsValidating([e]))),Z(this,`resetWithFieldInitialValue`,(e={})=>{let t=new $p,n=this.getFieldEntities(!0);n.forEach(e=>{let{initialValue:n}=e.props,r=e.getNamePath();if(n!==void 0){let i=t.get(r)||new Set;i.add({entity:e,value:n}),t.set(r,i)}});let r=n=>{n.forEach(n=>{let{initialValue:r}=n.props;if(r!==void 0){let r=n.getNamePath();if(this.getInitialValue(r)!==void 0)$e(!1,`Form already set 'initialValues' with path '${r.join(`.`)}'. Field can not overwrite it.`);else{let i=t.get(r);if(i&&i.size>1)$e(!1,`Multiple Field with path '${r.join(`.`)}' set 'initialValue'. Can not decide which one to pick.`);else if(i){let t=this.getFieldValue(r);!n.isListField()&&(!e.skipExist||t===void 0)&&this.updateStore(ge(this.store,r,[...i][0].value))}}}})},i;e.entities?i=e.entities:e.namePathList?(i=[],e.namePathList.forEach(e=>{let n=t.get(e);n&&i.push(...[...n].map(e=>e.entity))})):i=n,r(i)}),Z(this,`resetFields`,e=>{this.warningUnhooked();let t=this.store;if(!e){this.updateStore(ve(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:`reset`}),this.notifyWatch();return}let n=e.map(Np);n.forEach(e=>{let t=this.getInitialValue(e);this.updateStore(ge(this.store,e,t))}),this.resetWithFieldInitialValue({namePathList:n}),this.notifyObservers(t,n,{type:`reset`}),this.notifyWatch(n)}),Z(this,`setFields`,e=>{this.warningUnhooked();let t=this.store,n=[];e.forEach(e=>{let{name:r,...i}=e,a=Np(r);n.push(a),`value`in i&&this.updateStore(ge(this.store,a,i.value)),this.notifyObservers(t,[a],{type:`setField`,data:e})}),this.notifyWatch(n)}),Z(this,`getFields`,()=>this.getFieldEntities(!0).map(e=>{let t=e.getNamePath(),n={...e.getMeta(),name:t,value:this.getFieldValue(t)};return Object.defineProperty(n,"originRCField",{value:!0}),n})),Z(this,`initEntityValue`,e=>{let{initialValue:t}=e.props;if(t!==void 0){let n=e.getNamePath();oe(this.store,n)===void 0&&this.updateStore(ge(this.store,n,t))}}),Z(this,`isMergedPreserve`,e=>(e===void 0?this.preserve:e)??!0),Z(this,`registerField`,e=>{this.fieldEntities.push(e);let t=e.getNamePath();if(this.notifyWatch([t]),e.props.initialValue!==void 0){let t=this.store;this.resetWithFieldInitialValue({entities:[e],skipExist:!0}),this.notifyObservers(t,[e.getNamePath()],{type:`valueUpdate`,source:`internal`})}return(n,r,i=[])=>{if(this.fieldEntities=this.fieldEntities.filter(t=>t!==e),!this.isMergedPreserve(r)&&(!n||i.length>1)){let e=n?void 0:this.getInitialValue(t);if(t.length&&this.getFieldValue(t)!==e&&this.fieldEntities.every(e=>!Ip(e.getNamePath(),t))){let n=this.store;this.updateStore(ge(n,t,e,!0)),this.notifyObservers(n,[t],{type:`remove`}),this.triggerDependenciesUpdate(n,t)}}this.notifyWatch([t])}}),Z(this,`dispatch`,e=>{switch(e.type){case`updateValue`:{let{namePath:t,value:n}=e;this.updateValue(t,n);break}case`validateField`:{let{namePath:t,triggerName:n}=e;this.validateFields([t],{triggerName:n});break}default:}}),Z(this,`notifyObservers`,(e,t,n)=>{if(this.subscribable){let r={...n,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:n})=>{n(e,t,r)})}else this.forceRootUpdate()}),Z(this,`triggerDependenciesUpdate`,(e,t)=>{let n=this.getDependencyChildrenFields(t);return n.length&&this.validateFields(n,{delayFrame:!0}),this.notifyObservers(e,n,{type:`dependenciesUpdate`,relatedFields:[t,...n]}),n}),Z(this,`updateValue`,(e,t)=>{let n=Np(e),r=this.store;this.updateStore(ge(this.store,n,t)),this.notifyObservers(r,[n],{type:`valueUpdate`,source:`internal`}),this.notifyWatch([n]);let i=this.triggerDependenciesUpdate(r,n),{onValuesChange:a}=this.callbacks;if(a){let e=Pp(this.store,[n]);a(e,ge(this.getFieldsValue(),n,oe(e,n)))}this.triggerOnFieldsChange([n,...i])}),Z(this,`setFieldsValue`,e=>{this.warningUnhooked();let t=this.store;if(e){let t=ve(this.store,e);this.updateStore(t)}this.notifyObservers(t,null,{type:`valueUpdate`,source:`external`}),this.notifyWatch()}),Z(this,`setFieldValue`,(e,t)=>{this.setFields([{name:e,value:t,errors:[],warnings:[],touched:!0}])}),Z(this,`getDependencyChildrenFields`,e=>{let t=new Set,n=[],r=new $p;this.getFieldEntities().forEach(e=>{let{dependencies:t}=e.props;(t||[]).forEach(t=>{let n=Np(t);r.update(n,(t=new Set)=>(t.add(e),t))})});let i=e=>{(r.get(e)||new Set).forEach(e=>{if(!t.has(e)){t.add(e);let r=e.getNamePath();e.isFieldDirty()&&r.length&&(n.push(r),i(r))}})};return i(e),n}),Z(this,`triggerOnFieldsChange`,(e,t)=>{let{onFieldsChange:n}=this.callbacks;if(n){let r=this.getFields();if(t){let e=new $p;t.forEach(({name:t,errors:n})=>{e.set(t,n)}),r.forEach(t=>{t.errors=e.get(t.name)||t.errors})}let i=r.filter(({name:t})=>Fp(e,t));i.length&&n(i,r)}}),Z(this,`validateFields`,(e,t)=>{this.warningUnhooked();let n,r;Array.isArray(e)||typeof e==`string`||typeof t==`string`?(n=e,r=t):r=e;let i=!!n,a=i?n.map(Np):[],o=[...a],s=[],c=String(Date.now()),l=new Set,{recursive:u,dirty:d}=r||{};this.getFieldEntities(!0).forEach(e=>{let t=e.getNamePath();if(i||((!e.isList()||!a.some(e=>Ip(e,t,!0)))&&o.push(t),a.push(t)),!(!e.props.rules||!e.props.rules.length)&&!(d&&!e.isFieldDirty())&&(l.add(t.join(c)),!i||Fp(a,t,u))){let n=e.validateRules({validateMessages:{...Tp,...this.validateMessages},...r});s.push(n.then(()=>({name:t,errors:[],warnings:[]})).catch(e=>{let n=[],r=[];return e.forEach?.(({rule:{warningOnly:e},errors:t})=>{e?r.push(...t):n.push(...t)}),n.length?Promise.reject({name:t,errors:n,warnings:r}):{name:t,errors:n,warnings:r}}))}});let f=Xp(s);this.lastValidatePromise=f,f.catch(e=>e).then(e=>{let t=e.map(({name:e})=>e);this.notifyObservers(this.store,t,{type:`validateFinish`}),this.triggerOnFieldsChange(t,e)});let p=f.then(()=>this.lastValidatePromise===f?Promise.resolve(this.getFieldsValue(o)):Promise.reject([])).catch(e=>{let t=e.filter(e=>e&&e.errors.length),n=t[0]?.errors?.[0];return Promise.reject({message:n,values:this.getFieldsValue(a),errorFields:t,outOfDate:this.lastValidatePromise!==f})});p.catch(e=>e);let m=a.filter(e=>l.has(e.join(c)));return this.triggerOnFieldsChange(m),p}),Z(this,`submit`,()=>{this.warningUnhooked(),this.validateFields().then(e=>{let{onFinish:t}=this.callbacks;if(t)try{t(e)}catch{}}).catch(e=>{let{onFinishFailed:t}=this.callbacks;t&&t(e)})}),this.forceRootUpdate=e}};function tm(e){let t=$.useRef(null),[,n]=$.useState({});return t.current||(e?t.current=e:t.current=new em(()=>{n({})}).getForm()),[t.current]}var nm=$.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),rm=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{let i=$.useContext(nm),a=$.useRef({});return $.createElement(nm.Provider,{value:{...i,validateMessages:{...i.validateMessages,...e},triggerFormChange:(e,n)=>{t&&t(e,{changedFields:n,forms:a.current}),i.triggerFormChange(e,n)},triggerFormFinish:(e,t)=>{n&&n(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:(e,t)=>{e&&(a.current={...a.current,[e]:t}),i.registerForm(e,t)},unregisterForm:e=>{let t={...a.current};delete t[e],a.current=t,i.unregisterForm(e)}}},r)};function im(){return im=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},im.apply(this,arguments)}var am=({name:e,initialValues:t,fields:n,form:r,preserve:i,children:a,component:o=`form`,validateMessages:s,validateTrigger:c=`onChange`,onValuesChange:l,onFieldsChange:u,onFinish:d,onFinishFailed:f,clearOnDestroy:p,...m},h)=>{let g=$.useRef(null),_=$.useContext(nm),[v]=tm(r),{useSubscribe:y,setInitialValues:b,setCallbacks:x,setValidateMessages:S,setPreserve:C,destroyForm:w}=v.getInternalHooks(Df);$.useImperativeHandle(h,()=>({...v,nativeElement:g.current})),$.useEffect(()=>(_.registerForm(e,v),()=>{_.unregisterForm(e)}),[_,v,e]),S({..._.validateMessages,...s}),x({onValuesChange:l,onFieldsChange:(t,...n)=>{_.triggerFormChange(e,t),u&&u(t,...n)},onFinish:t=>{_.triggerFormFinish(e,t),d&&d(t)},onFinishFailed:f}),C(i);let T=$.useRef(null);b(t,!T.current),T.current||(T.current=!0),$.useEffect(()=>()=>w(p),[]);let E,D=typeof a==`function`;E=D?a(v.getFieldsValue(!0),v):a,y(!D);let O=$.useRef(null);$.useEffect(()=>{Lp(O.current||[],n||[])||v.setFields(n||[]),O.current=n},[n,v]);let k=$.useMemo(()=>({...v,validateTrigger:c}),[v,c]),A=$.createElement(Af.Provider,{value:null},$.createElement(kf.Provider,{value:k},E));return o===!1?A:$.createElement(o,im({},m,{ref:g,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),v.submit()},onReset:e=>{e.preventDefault(),v.resetFields(),m.onReset?.(e)}}),A)};function om(e){try{return JSON.stringify(e)}catch{return Math.random()}}function sm(...e){let[t,n={}]=e,r=Mf(n)?{form:n}:n,i=r.form,[a,o]=(0,$.useState)(()=>typeof t==`function`?t({}):void 0),s=(0,$.useMemo)(()=>om(a),[a]),c=(0,$.useRef)(s);c.current=s;let l=(0,$.useContext)(kf),u=i||l,d=u&&u._init,{getFieldsValue:f,getInternalHooks:p}=u,{registerWatch:m}=p(Df),h=J((e,n)=>{let i=r.preserve?n??f(!0):e??f(),s=typeof t==`function`?t(i):oe(i,Np(t));om(a)!==om(s)&&o(s)});return(0,$.useEffect)(()=>{d&&h()},[d,typeof t==`function`?t:JSON.stringify(t)]),(0,$.useEffect)(()=>{if(d)return m((e,t)=>{h(e,t)})},[d]),a}var cm=$.forwardRef(am);cm.FormProvider=rm,cm.Field=Jp,cm.List=Yp,cm.useForm=tm,cm.useWatch=sm;var lm=$.createContext({labelAlign:`right`,layout:`horizontal`,itemRef:()=>{}}),um=$.createContext(null),dm=e=>{let t=u(e,[`prefixCls`]);return $.createElement(rm,{...t})},fm=$.createContext({prefixCls:``}),pm=$.createContext({}),mm=({children:e,status:t,override:n})=>{let r=$.useContext(pm),i=$.useMemo(()=>{let e={...r};return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,r]);return $.createElement(pm.Provider,{value:i},e)},hm=$.createContext(void 0),gm=e=>{let{space:t,form:n,children:r}=e;if(!Ti(r))return null;let i=r;return n&&(i=$.createElement(mm,{override:!0,status:!0},i)),t&&(i=$.createElement(Fl,null,i)),i},_m=()=>et()&&window.document.documentElement;function vm(e,t,n){return(0,$.useMemo)(()=>({trap:t??!0,focusTriggerAfterClose:n??!0,...e}),[e,t,n])}var ym=e=>{let{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=X({[`${t}-lg`]:i===`large`,[`${t}-sm`]:i===`small`}),s=X({[`${t}-circle`]:a===`circle`,[`${t}-square`]:a===`square`,[`${t}-round`]:a===`round`}),c=$.useMemo(()=>Ei(i)?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return $.createElement(`span`,{className:X(t,o,s,n),style:{...c,...r}})},bm=new at(`ant-skeleton-loading`,{"0%":{backgroundPosition:`100% 50%`},"100%":{backgroundPosition:`0 50%`}}),xm=e=>({height:e,lineHeight:Q(e)}),Sm=e=>({width:e,...xm(e)}),Cm=e=>({background:e.skeletonLoadingBackground,backgroundSize:`400% 100%`,animationName:bm,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`}),wm=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...xm(e)}),Tm=e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:{display:`inline-block`,verticalAlign:`top`,background:n,...Sm(r)},[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:{...Sm(i)},[`${t}${t}-sm`]:{...Sm(a)}}},Em=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:n,...wm(t,s)},[`${r}-lg`]:{...wm(i,s)},[`${r}-sm`]:{...wm(a,s)}}},Dm=e=>{let{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:i}=e;return{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,verticalAlign:`middle`,background:t,borderRadius:n,...Sm(i(r).mul(2).equal())}},Om=e=>({[e.skeletonNodeCls]:{...Dm(e)}}),km=e=>{let{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...Dm(e),[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:{...Sm(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:`50%`}},[`${t}${t}-circle`]:{borderRadius:`50%`}}},Am=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},jm=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...xm(e)}),Mm=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[n]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal(),...jm(r,s)},...Am(e,r,n),[`${n}-lg`]:{...jm(i,s)},...Am(e,i,`${n}-lg`),[`${n}-sm`]:{...jm(a,s)},...Am(e,a,`${n}-sm`)}},Nm=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonNodeCls:s,skeletonImageCls:c,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:m,borderRadius:h,titleHeight:g,blockRadius:_,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:b}=e;return{[t]:{display:`table`,width:`100%`,[`${t}-header`]:{display:`table-cell`,paddingInlineEnd:p,verticalAlign:`top`,[n]:{display:`inline-block`,verticalAlign:`top`,background:f,...Sm(l)},[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:{...Sm(u)},[`${n}-sm`]:{...Sm(d)}},[`${t}-section`]:{display:`table-cell`,width:`100%`,verticalAlign:`top`,[r]:{width:`100%`,height:g,background:f,borderRadius:_,[`+ ${i}`]:{marginBlockStart:d}},[i]:{padding:0,"> li":{width:`100%`,height:v,listStyle:`none`,background:f,borderRadius:_,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:`61%`}},[`&-round ${t}-section`]:{[`${r}, ${i} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:m,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:{display:`inline-block`,width:`auto`,...Mm(e),...Tm(e),...Em(e),...Om(e),...km(e)},[`${t}${t}-block`]:{width:`100%`,[a]:{width:`100%`},[o]:{width:`100%`}},[`${t}${t}-active`]:{[`
67
+ ${r},
68
+ ${i} > li,
69
+ ${n},
70
+ ${a},
71
+ ${o},
72
+ ${s},
73
+ ${c}
74
+ `]:{...Cm(e)}}}},Pm=yr(`Skeleton`,e=>{let{componentCls:t,calc:n}=e;return Nm(wn(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:`1.4s`}))},e=>{let{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[[`color`,`gradientFromColor`],[`colorGradientEnd`,`gradientToColor`]]}),Fm=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,active:a,style:o,styles:s,shape:c=`circle`,size:l,...u}=e,{getPrefixCls:d}=$.useContext(Vt),f=d(`skeleton`,t),[p,m]=Pm(f),h=jl(e=>l??e),g=X(f,`${f}-element`,{[`${f}-active`]:a},r?.root,n,i,p,m);return $.createElement(`div`,{className:g,style:s?.root},$.createElement(ym,{prefixCls:`${f}-avatar`,className:r?.content,style:{...s?.content,...o},shape:c,size:h,...u}))},Im=e=>{let{prefixCls:t,className:n,rootClassName:r,classNames:i,active:a,style:o,styles:s,block:c=!1,size:l,...u}=e,{getPrefixCls:d}=$.useContext(Vt),f=d(`skeleton`,t),[p,m]=Pm(f),h=jl(e=>l??e),g=X(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:c},i?.root,n,r,p,m);return $.createElement(`div`,{className:g,style:s?.root},$.createElement(ym,{prefixCls:`${f}-button`,className:i?.content,style:{...s?.content,...o},size:h,...u}))},Lm=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,internalClassName:a,style:o,styles:s,active:c,children:l}=e,{getPrefixCls:u}=$.useContext(Vt),d=u(`skeleton`,t),[f,p]=Pm(d),m=X(d,`${d}-element`,{[`${d}-active`]:c},f,r?.root,n,i,p);return $.createElement(`div`,{className:m,style:s?.root},$.createElement(`div`,{className:X(r?.content,a||`${d}-node`),style:{...s?.content,...o}},l))},Rm=e=>{let{getPrefixCls:t}=$.useContext(Vt),n=t(`skeleton`,e.prefixCls);return $.createElement(Lm,{...e,internalClassName:`${n}-image`},$.createElement(`svg`,{viewBox:`0 0 1098 1024`,xmlns:`http://www.w3.org/2000/svg`,className:`${n}-image-svg`},$.createElement(`title`,null,`Image placeholder`),$.createElement(`path`,{d:`M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6`,className:`${n}-image-path`})))},zm=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,active:a,block:o,style:s,styles:c,size:l,...u}=e,{getPrefixCls:d}=$.useContext(Vt),f=d(`skeleton`,t),[p,m]=Pm(f),h=jl(e=>l??e),g=X(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:o},r?.root,n,i,p,m);return $.createElement(`div`,{className:g,style:c?.root},$.createElement(ym,{prefixCls:`${f}-input`,className:r?.content,style:{...c?.content,...s},size:h,...u}))},Bm=(e,t)=>{let{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Vm=e=>{let{prefixCls:t,className:n,style:r,rows:i=0}=e,a=Array.from({length:i}).map((t,n)=>$.createElement(`li`,{key:n,style:{width:Bm(n,e)}}));return $.createElement(`ul`,{className:X(t,n),style:r},a)},Hm=({prefixCls:e,className:t,width:n,style:r})=>$.createElement(`h3`,{className:X(e,t),style:{width:n,...r}});function Um(e){return Oi(e)?e:{}}function Wm(e,t){return e&&!t?{size:`large`,shape:`square`}:{size:`large`,shape:`circle`}}function Gm(e,t){return!e&&t?{width:`38%`}:e&&t?{width:`50%`}:{}}function Km(e,t){let n={};return(!e||!t)&&(n.width=`61%`),!e&&t?n.rows=3:n.rows=2,n}var qm=e=>{let{prefixCls:t,loading:n,className:r,rootClassName:i,classNames:a,style:o,styles:s,children:c,avatar:l=!1,title:u=!0,paragraph:d=!0,active:f,round:p}=e,{getPrefixCls:m,direction:h,className:g,style:_,classNames:v,styles:y}=Wt(`skeleton`),b=m(`skeleton`,t),[x,S]=Pm(b),C={...e,avatar:l,title:u,paragraph:d},[w,T]=zi([v,a],[y,s],{props:C});if(n||!(`loading`in e)){let e=!!l,t=!!u,n=!!d,a;if(e){let e={className:w.avatar,prefixCls:`${b}-avatar`,...Wm(t,n),...Um(l),style:T.avatar};a=$.createElement(`div`,{className:X(w.header,`${b}-header`),style:T.header},$.createElement(ym,{...e}))}let s;if(t||n){let r;if(t){let t={className:w.title,prefixCls:`${b}-title`,...Gm(e,n),...Um(u),style:T.title};r=$.createElement(Hm,{...t})}let i;if(n){let n={className:w.paragraph,prefixCls:`${b}-paragraph`,...Km(e,t),...Um(d),style:T.paragraph};i=$.createElement(Vm,{...n})}s=$.createElement(`div`,{className:X(w.section,`${b}-section`),style:T.section},r,i)}let c=X(b,{[`${b}-with-avatar`]:e,[`${b}-active`]:f,[`${b}-rtl`]:h===`rtl`,[`${b}-round`]:p},w.root,g,r,i,x,S);return $.createElement(`div`,{className:c,style:{...T.root,..._,...o}},a,s)}return c??null};qm.Button=Im,qm.Avatar=Fm,qm.Input=zm,qm.Image=Rm,qm.Node=Lm;var Jm=qm;function Ym(){}var Xm=$.createContext({add:Ym,remove:Ym});function Zm(e){let t=$.useContext(Xm),n=$.useRef(null);return J(r=>{if(r){let i=e?r.querySelector(e):r;i&&(t.add(i),n.current=i)}else t.remove(n.current)})}var Qm=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,$.useContext)(cf);return $.createElement(of,{onClick:n,...e},t)},$m=()=>{let{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=(0,$.useContext)(cf);return $.createElement(of,{...Hl(n),loading:e,onClick:i,...t},r)};function eh(e,t){return $.createElement(`span`,{className:`${e}-close-x`},t||$.createElement(ne,{className:`${e}-close-icon`}))}var th=e=>{let{okText:t,okType:n=`primary`,cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:c,footer:l}=e,[u]=ja(`Modal`,ka()),d=t||u?.okText,f=r||u?.cancelText,p=$.useMemo(()=>({confirmLoading:i,okButtonProps:s,cancelButtonProps:c,okTextLocale:d,cancelTextLocale:f,okType:n,onOk:a,onCancel:o}),[i,s,c,d,f,n,a,o]),m;return ki(l)||l===void 0?(m=$.createElement($.Fragment,null,$.createElement(Qm,null),$.createElement($m,null)),ki(l)&&(m=l(m,{OkBtn:$m,CancelBtn:Qm})),m=$.createElement(lf,{value:p},m)):m=l,$.createElement(Ho,{disabled:!1},m)},nh=e=>{let{componentCls:t}=e;return{[t]:{display:`flex`,flexFlow:`row wrap`,minWidth:0,"&::before, &::after":{display:`flex`},"&-no-wrap":{flexWrap:`nowrap`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`},"&-space-between":{justifyContent:`space-between`},"&-space-around":{justifyContent:`space-around`},"&-space-evenly":{justifyContent:`space-evenly`},"&-top":{alignItems:`flex-start`},"&-middle":{alignItems:`center`},"&-bottom":{alignItems:`flex-end`}}}},rh=e=>{let{componentCls:t}=e;return{[t]:{position:`relative`,maxWidth:`100%`,minHeight:1}}},ih=(e,t)=>{let{componentCls:n,gridColumns:r,antCls:i}=e,[a,o]=Sr(i,`grid`),[,s]=Sr(i,`col`),c={};for(let e=r;e>=0;e--)e===0?(c[`${n}${t}-${e}`]={display:`none`},c[`${n}-push-${e}`]={insetInlineStart:`auto`},c[`${n}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-push-${e}`]={insetInlineStart:`auto`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-offset-${e}`]={marginInlineStart:0},c[`${n}${t}-order-${e}`]={order:0}):(c[`${n}${t}-${e}`]=[{[a(`display`)]:`block`,display:`block`},{display:o(`display`),flex:`0 0 ${e/r*100}%`,maxWidth:`${e/r*100}%`}],c[`${n}${t}-push-${e}`]={insetInlineStart:`${e/r*100}%`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`${e/r*100}%`},c[`${n}${t}-offset-${e}`]={marginInlineStart:`${e/r*100}%`},c[`${n}${t}-order-${e}`]={order:e});return c[`${n}${t}-flex`]={flex:s(`${t.replace(/-/,``)}-flex`)},c},ah=(e,t)=>ih(e,t),oh=(e,t,n)=>({[`@media (min-width: ${Q(t)})`]:{...ah(e,n)}}),sh=()=>({}),ch=()=>({}),lh=yr(`Grid`,nh,sh),uh=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),dh=yr(`Grid`,e=>{let t=wn(e,{gridColumns:24}),n=uh(t);return delete n.xs,[rh(t),ah(t,``),ah(t,`-xs`),Object.keys(n).map(e=>oh(t,n[e],`-${e}`)).reduce((e,t)=>({...e,...t}),{})]},ch);function fh(e){return{position:e,inset:0}}var ph=e=>{let{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:`none`,opacity:0,animationDuration:e.motionDurationSlow,userSelect:`none`},[`${t}${n}-zoom-leave ${t}-container`]:{pointerEvents:`none`},[`${t}-mask`]:{...fh(`fixed`),zIndex:e.zIndexPopupBase,height:`100%`,backgroundColor:e.colorBgMask,pointerEvents:`none`,[`&${t}-mask-blur`]:{backdropFilter:`blur(4px)`},[`${t}-hidden`]:{display:`none`}},[`${t}-wrap`]:{...fh(`fixed`),zIndex:e.zIndexPopupBase,overflow:`auto`,outline:0,WebkitOverflowScrolling:`touch`}}},{[`${t}-root`]:nu(e)}]},mh=e=>{let{componentCls:t,motionDurationMid:n}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:`rtl`},[`${t}-centered`]:{textAlign:`center`,"&::before":{display:`inline-block`,width:0,height:`100%`,verticalAlign:`middle`,content:`""`},[t]:{top:0,display:`inline-block`,paddingBottom:0,textAlign:`start`,verticalAlign:`middle`}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:`calc(100vw - 16px)`,margin:`${Q(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...ur(e),pointerEvents:`none`,position:`relative`,top:100,width:`auto`,maxWidth:`calc(100vw - ${Q(e.calc(e.margin).mul(2).equal())})`,margin:`0 auto`,"&:focus-visible":{borderRadius:e.borderRadiusLG,...pr(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:`break-word`},[`${t}-container`]:{position:`relative`,backgroundColor:e.contentBg,backgroundClip:`padding-box`,border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:`auto`,padding:e.contentPadding},[`${t}-close`]:{position:`absolute`,top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:`none`,background:`transparent`,borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:`pointer`,transition:[`color`,`background-color`].map(e=>`${e} ${n}`).join(`, `),"&-x":{display:`flex`,fontSize:e.fontSizeLG,fontStyle:`normal`,lineHeight:Q(e.modalCloseBtnSize),justifyContent:`center`,textTransform:`none`,textRendering:`auto`},"&:disabled":{pointerEvents:`none`},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:`none`},"&:active":{backgroundColor:e.colorBgTextActive},...mr(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:`break-word`,padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:`100%`,height:`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`,margin:`${Q(e.margin)} auto`}},[`${t}-footer`]:{textAlign:`end`,background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:`hidden`}}},{[`${t}-pure-panel`]:{top:`auto`,padding:0,display:`flex`,flexDirection:`column`,[`${t}-container,
75
+ ${t}-body,
76
+ ${t}-confirm-body-wrapper`]:{display:`flex`,flexDirection:`column`,flex:`auto`},[`${t}-confirm-body`]:{marginBottom:`auto`}}}]},hh=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:`rtl`,[`${t}-confirm-body`]:{direction:`rtl`}}}}},gh=e=>{let{componentCls:t}=e,n=uh(e),r={...n};delete r.xs;let i=`--${t.replace(`.`,``)}-`,a=Object.keys(r).map(e=>({[`@media (min-width: ${Q(r[e])})`]:{width:`var(${i}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Lt(Object.keys(n).map((e,t)=>{let r=Object.keys(n)[t-1];return r?{[`${i}${e}-width`]:`var(${i}${r}-width)`}:null})),[{width:`var(${i}xs-width)`}],Lt(a))}}},_h=e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return wn(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},vh=e=>({footerBg:`transparent`,headerBg:`transparent`,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Q(e.paddingMD)} ${Q(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Q(e.padding)} ${Q(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Q(e.paddingXS)} ${Q(e.padding)}`:0,footerBorderTop:e.wireframe?`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,footerBorderRadius:e.wireframe?`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Q(e.padding*2)} ${Q(e.padding*2)} ${Q(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),yh=yr(`Modal`,e=>{let t=_h(e);return[mh(t),hh(t),ph(t),Fu(t,`zoom`),gh(t)]},vh,{unitless:{titleLineHeight:!0}}),bh;_m()&&document.documentElement.addEventListener(`click`,e=>{bh={x:e.pageX,y:e.pageY},setTimeout(()=>{bh=null},100)},!0);var xh=e=>{let{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:a,centered:o,getContainer:s,style:c,width:l=520,footer:u,classNames:d,styles:f,children:p,loading:m,confirmLoading:h,zIndex:g,mousePosition:_,onOk:v,onCancel:y,okButtonProps:b,cancelButtonProps:x,destroyOnHidden:C,destroyOnClose:w,panelRef:T=null,closable:E,mask:D,modalRender:O,maskClosable:k,focusTriggerAfterClose:A,focusable:j,...M}=e,{getPopupContainer:N,getPrefixCls:P,direction:F,className:I,style:L,classNames:R,styles:z,centered:B,cancelButtonProps:V,okButtonProps:H,mask:U,focusable:W}=Wt(`modal`),{modal:G}=$.useContext(Vt),[ee,K]=$.useMemo(()=>typeof E==`boolean`?[void 0,void 0]:[E?.afterClose,E?.onClose],[E]),q=P(`modal`,t),te=P(),[re,J,ie]=ic(D,U,q,k),ae=vm({...W,...j},re,A),oe=e=>{h||(y?.(e),K?.())},se=e=>{v?.(e),K?.()},ce=la(q),[le,Y]=yh(q,ce),ue=X(a,{[`${q}-centered`]:o??B,[`${q}-wrap-rtl`]:F===`rtl`}),de=u!==null&&!m?$.createElement(th,{...e,okButtonProps:{...H,...b},onOk:se,cancelButtonProps:{...V,...x},onCancel:oe}):null,[fe,pe,me,he]=tc(Ys(e),Ys(G),{closable:!0,closeIcon:$.createElement(ne,{className:`${q}-close-icon`}),closeIconRender:e=>eh(q,e)}),ge=fe?{disabled:me,closeIcon:pe,afterClose:ee,...he}:!1,_e=O?e=>$.createElement(`div`,{className:`${q}-render`},O(e)):void 0,ve=S(T,Zm(`.${q}-${O?`render`:`container`}`)),[ye,be]=vc(`Modal`,g),xe={...e,width:l,panelRef:T,focusTriggerAfterClose:ae.focusTriggerAfterClose,focusable:ae,mask:re,maskClosable:ie,zIndex:ye},[Se,Ce]=zi([R,d,J],[z,f],{props:xe}),[we,Te]=$.useMemo(()=>Oi(l)?[void 0,l]:[l,void 0],[l]),Ee=$.useMemo(()=>{let e={};return Te&&Object.keys(Te).forEach(t=>{let n=Te[t];Ti(n)&&(e[`--${q}-${t}-width`]=Ei(n)?`${n}px`:n)}),e},[q,Te]);return $.createElement(gm,{form:!0,space:!0},$.createElement(fc.Provider,{value:be},$.createElement(Ef,{width:we,...M,zIndex:ye,getContainer:s===void 0?N:s,prefixCls:q,rootClassName:X(le,r,Y,ce,Se.root),rootStyle:Ce.root,footer:de,visible:i,mousePosition:_??bh,onClose:oe,closable:ge,closeIcon:pe,transitionName:bl(te,`zoom`,e.transitionName),maskTransitionName:bl(te,`fade`,e.maskTransitionName),mask:re,maskClosable:ie,className:X(le,n,I),style:{...L,...c,...Ee},classNames:{...Se,wrapper:X(Se.wrapper,ue)},styles:Ce,panelRef:ve,destroyOnHidden:C??w,modalRender:_e,focusTriggerAfterClose:ae.focusTriggerAfterClose,focusTrap:ae.trap},m?$.createElement(Jm,{active:!0,title:!1,paragraph:{rows:4},className:`${q}-body-skeleton`}):p)))},Sh=e=>{let{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:a,lineHeight:o,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:l}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:`rtl`},[`${e.antCls}-modal-header`]:{display:`none`},[`${u}-body-wrapper`]:{...fr()},[`&${t} ${t}-body`]:{padding:l},[`${u}-body`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${e.iconCls}`]:{flex:`none`,fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:`flex`,flexDirection:`column`,flex:`auto`,rowGap:e.marginXS,maxWidth:`calc(100% - ${Q(e.marginSM)})`},[`${u}-body-no-icon ${u}-paragraph`]:{maxWidth:`100%`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Q(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-container`]:{color:e.colorText,fontSize:a,lineHeight:o},[`${u}-btns`]:{textAlign:`end`,marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
77
+ ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Ch=xr([`Modal`,`confirm`],e=>Sh(_h(e)),vh,{order:-1e3}),wh=e=>{let{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:a,type:o,okCancel:s,footer:c,locale:l,autoFocusButton:u,focusable:d,...f}=e,{infoIcon:p,successIcon:m,errorIcon:h,warningIcon:g}=Wt(`modal`),_=n;if(n===void 0)switch(o){case`info`:_=qs(p,$.createElement(C,null));break;case`success`:_=qs(m,$.createElement(L,null));break;case`error`:_=qs(h,$.createElement(ie,null));break;default:_=qs(g,$.createElement(re,null))}let v=s??o===`confirm`,y=$.useMemo(()=>{let e=d?.autoFocusButton||u;return e||e===null?e:`ok`},[u,d?.autoFocusButton]),[b]=ja(`Modal`),x=l||b,S=r||(v?x?.okText:x?.justOkText),w=i||x?.cancelText,{closable:T}=f,{onClose:E}=Oi(T)?T:{},D=$.useMemo(()=>({autoFocusButton:y,cancelTextLocale:w,okTextLocale:S,mergedOkCancel:v,onClose:E,...f}),[y,w,S,v,E,f]),O=$.createElement($.Fragment,null,$.createElement(uf,null),$.createElement(df,null)),k=Ti(e.title)&&e.title!==``,A=Ti(_),j=`${a}-body`;return $.createElement(`div`,{className:`${a}-body-wrapper`},$.createElement(`div`,{className:X(j,{[`${j}-has-title`]:k,[`${j}-no-icon`]:!A})},_,$.createElement(`div`,{className:`${a}-paragraph`},k&&$.createElement(`span`,{className:`${a}-title`},e.title),$.createElement(`div`,{className:`${a}-content`},e.content))),c===void 0||ki(c)?$.createElement(lf,{value:D},$.createElement(`div`,{className:`${a}-btns`},ki(c)?c(O,{OkBtn:df,CancelBtn:uf}):O)):c,$.createElement(Ch,{prefixCls:t}))},Th=e=>{let{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:a,wrapClassName:o,rootPrefixCls:s,bodyStyle:c,closable:l=!1,onConfirm:u,styles:d,title:f,mask:p,maskClosable:m,okButtonProps:h,cancelButtonProps:g}=e,{cancelButtonProps:_,okButtonProps:v}=Wt(`modal`),y=`${a}-confirm`,b=e.width||416,x=e.style||{},S=X(y,`${y}-${e.type}`,{[`${y}-rtl`]:i===`rtl`},e.className),C=$.useMemo(()=>{let e=rc(p,m);return e.closable??(e.closable=!1),e},[p,m]),[,w]=cr(),T=$.useMemo(()=>n===void 0?w.zIndexPopupBase+mc:n,[n,w]);return $.createElement(xh,{...e,className:S,wrapClassName:X({[`${y}-centered`]:!!e.centered},o),onCancel:()=>{t?.({triggerCancel:!0}),u?.(!1)},title:f,footer:null,transitionName:bl(s||``,`zoom`,e.transitionName),maskTransitionName:bl(s||``,`fade`,e.maskTransitionName),mask:C,style:x,styles:{body:c,mask:r,...d},width:b,zIndex:T,closable:l},$.createElement(wh,{...e,confirmPrefixCls:y,okButtonProps:{...v,...h},cancelButtonProps:{..._,...g}}))},Eh=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return $.createElement(ss,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},$.createElement(Th,{...e}))},Dh=[],Oh=``;function kh(){return Oh}var Ah=e=>{let{prefixCls:t,getContainer:n,direction:r}=e,i=ka(),a=(0,$.useContext)(Vt),o=kh()||a.getPrefixCls(),s=t||`${o}-modal`,c=n;return c===!1&&(c=void 0),$.createElement(Eh,{...e,rootPrefixCls:o,prefixCls:s,iconPrefixCls:a.iconPrefixCls,theme:a.theme,direction:r??a.direction,locale:a.locale?.Modal??i,getContainer:c})};function jh(e){let t=as(),n=document.createDocumentFragment(),r={...e,close:s,open:!0},i;function a(...t){t.some(e=>e?.triggerCancel)&&e.onCancel?.(()=>{},...t.slice(1));for(let e=0;e<Dh.length;e++)if(Dh[e]===s){Dh.splice(e,1);break}De(n).then(()=>{})}let o=e=>{clearTimeout(i),i=setTimeout(()=>{let r=t.getPrefixCls(void 0,kh()),i=t.getIconPrefixCls(),a=t.getTheme(),o=$.createElement(Ah,{...e});Me($.createElement(ss,{prefixCls:r,iconPrefixCls:i,theme:a},ki(t.holderRender)?t.holderRender(o):o),n)})};function s(...t){r={...r,open:!1,afterClose:()=>{ki(e.afterClose)&&e.afterClose(),a.apply(this,t)}},o(r)}function c(e){r=ki(e)?e(r):{...r,...e},o(r)}return o(r),Dh.push(s),{destroy:s,update:c}}function Mh(e){return{...e,type:`warning`}}function Nh(e){return{...e,type:`info`}}function Ph(e){return{...e,type:`success`}}function Fh(e){return{...e,type:`error`}}function Ih(e){return{...e,type:`confirm`}}function Lh({rootPrefixCls:e}){Oh=e}var Rh=$.forwardRef((e,t)=>{let{afterClose:n,config:r,...i}=e,[a,o]=$.useState(!0),[s,c]=$.useState(r),{direction:l,getPrefixCls:u}=$.useContext(Vt),d=u(`modal`),f=u(),p=()=>{n(),s.afterClose?.()},m=(...e)=>{o(!1),e.some(e=>e?.triggerCancel)&&s.onCancel?.(()=>{},...e.slice(1))};$.useImperativeHandle(t,()=>({destroy:m,update:e=>{c(t=>{let n=ki(e)?e(t):e;return{...t,...n}})}}));let h=s.okCancel??s.type===`confirm`,[g]=ja(`Modal`,wa.Modal);return $.createElement(Eh,{prefixCls:d,rootPrefixCls:f,...s,close:m,open:a,afterClose:p,okText:s.okText||(h?g?.okText:g?.justOkText),direction:s.direction||l,cancelText:s.cancelText||g?.cancelText,...i})}),zh=0,Bh=$.memo($.forwardRef((e,t)=>{let[n,r]=cc();return $.useImperativeHandle(t,()=>({patchElement:r}),[r]),$.createElement($.Fragment,null,n)}));function Vh(){let e=$.useRef(null),[t,n]=$.useState([]);$.useEffect(()=>{t.length&&(Lt(t).forEach(e=>{e()}),n([]))},[t]);let r=$.useCallback(t=>function(r){zh+=1;let i=$.createRef(),a,o=new Promise(e=>{a=e}),s=!1,c,l=$.createElement(Rh,{key:`modal-${zh}`,config:t(r),ref:i,afterClose:()=>{c?.()},isSilent:()=>s,onConfirm:e=>{a(e)}});return c=e.current?.patchElement(l),c&&Dh.push(c),{destroy:()=>{function e(){i.current?.destroy()}i.current?e():n(t=>[].concat(Lt(t),[e]))},update:e=>{function t(){i.current?.update(e)}i.current?t():n(e=>[].concat(Lt(e),[t]))},then:e=>(s=!0,o.then(e))}},[]);return[$.useMemo(()=>({info:r(Nh),success:r(Ph),error:r(Fh),warning:r(Mh),confirm:r(Ih)}),[r]),$.createElement(Bh,{key:`modal-holder`,ref:e})]}var Hh={info:$.createElement(C,null),success:$.createElement(L,null),error:$.createElement(ie,null),warning:$.createElement(re,null),loading:$.createElement(Ne,null)};function Uh(e,t){return t===null||t===!1?null:t||$.createElement(ne,{className:`${e}-close-icon`})}var Wh=e=>{let{prefixCls:t,icon:n,type:r,message:i,title:a,description:o,btn:s,actions:c,closeIcon:l,className:u,style:d,styles:f,classNames:p,closable:m,role:h,...g}=e,{getPrefixCls:_,className:v,style:y,classNames:b,styles:x}=Wt(`notification`),[S,C]=zi([b,p],[x,f],{props:e}),{notification:w}=$.useContext(Vt),T=c??s,E=a??i,D=Ti(E)&&E!==!1&&E!==``,O=t||_(`notification`),k=`${O}-notice`,A=n||(r?Hh[r]:null),j=!n&&r?`${k}-icon-${r}`:void 0,{root:M,...N}=S,{root:P,...F}=C,I=la(O),[L,R]=Kc(O,I),[z,B,,V]=tc(Ys(e),Ys(w),{closable:!0,closeIcon:$.createElement(ne,{className:`${O}-close-icon`}),closeIconRender:e=>Uh(O,e)}),H=z?{onClose:Oi(m)?m?.onClose:void 0,closeIcon:B,...V}:!1;return $.createElement(`div`,{className:X(`${k}-pure-panel`,L,u,R,I,M),style:P},$.createElement(Wc,{prefixCls:O}),$.createElement(Es,{style:{...y,...d},...g,prefixCls:O,duration:null,closable:H,className:v,title:D?E:null,description:o,icon:A,actions:T,role:h,classNames:{...N,icon:X(j,N.icon)},styles:F}))},Gh=4.5,Kh=`topRight`,qh={offset:8},Jh=({children:e,prefixCls:t})=>{let n=la(t),[r,i]=Kc(t,n);return $.createElement(Os,{classNames:{list:X(r,i,n)}},e)},Yh=(e,{prefixCls:t,key:n})=>$.createElement(Jh,{prefixCls:t,key:n},e),Xh=$.forwardRef((e,t)=>{let{top:n,bottom:r,prefixCls:i,getContainer:a,maxCount:o,rtl:s,onAllRemoved:c,stack:l,duration:u=Gh,pauseOnHover:d=!0,showProgress:f}=e,{getPrefixCls:p,getPopupContainer:m,direction:h}=Wt(`notification`),{notification:g}=(0,$.useContext)(Vt),_=i||p(`notification`),v=(0,$.useMemo)(()=>Ei(u)&&u>0?u:!1,[u]),[y,b]=zi([g?.classNames,e?.classNames],[g?.styles,e?.styles],{props:e}),x=()=>Ws(n,r),S=()=>X({[`${_}-rtl`]:s??h===`rtl`}),C=()=>Gs(_),w=Us(l,qh),[T,E]=Hs({prefixCls:_,style:x,className:S,motion:C,closable:{closeIcon:Uh(_)},duration:v,getContainer:()=>a?.()||m?.()||document.body,maxCount:o,pauseOnHover:d,showProgress:f,classNames:y,styles:b,onAllRemoved:c,renderNotifications:Yh,stack:w});return $.useImperativeHandle(t,()=>({...T,prefixCls:_,notification:g})),E});function Zh(e){let t=$.useRef(null);gt(`Notification`);let{notification:n}=$.useContext(Vt);return[$.useMemo(()=>{let r=r=>{if(!t.current)return;let{open:i,prefixCls:a,notification:o}=t.current,s=o?.className||{},c=o?.style||{},l=`${a}-notice`,{title:u,message:d,description:f,icon:p,type:m,btn:h,actions:g,className:_,style:v,role:y=`alert`,closeIcon:b,closable:x,classNames:S={},styles:C={},...w}=r,T=u??d,E=g??h,D=Uh(l,Ks(b,e,o)),[O,k,,A]=ec(Ys({...e||{},...r}),Ys(n),{closable:!0,closeIcon:D}),j=O?{onClose:Oi(x)?x.onClose:void 0,closeIcon:k,...A}:!1,M=Ri(S,{props:r}),N=Ri(C,{props:r}),P=p||(m?Hh[m]:null),F=!p&&m?`${l}-icon-${m}`:void 0;return i({placement:e?.placement??Kh,...w,title:T,description:f,icon:P,actions:E,role:y,classNames:{...M,icon:X(F,M.icon)},styles:{...N,root:{...c,...N.root}},className:X({[`${l}-${m}`]:m},_,s),style:v,closable:j})},i={open:r,destroy:e=>{e===void 0?t.current?.destroy():t.current?.close(e)}};return[`success`,`info`,`warning`,`error`].forEach(e=>{i[e]=t=>r({...t,type:e})}),i},[e,n]),$.createElement(Xh,{key:`notification-holder`,...e,ref:t})]}function Qh(e){return Zh(e)}var $h=$.createContext({}),eg=$.createContext({message:{},notification:{},modal:{}}),tg=yr(`App`,e=>{let{componentCls:t,colorText:n,fontSize:r,lineHeight:i,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:i,fontFamily:a,[`&${t}-rtl`]:{direction:`rtl`}}}},()=>({})),ng=$.forwardRef((e,t)=>{let{prefixCls:n,children:r,className:i,rootClassName:a,message:o,notification:s,style:c,component:l=`div`}=e,{direction:u,getPrefixCls:d,className:f,style:p}=Wt(`app`),m=d(`app`,n),[h,g]=tg(m),_=X(h,m,i,a,g,{[`${m}-rtl`]:u===`rtl`}),v=(0,$.useContext)($h),y=$.useMemo(()=>({message:{...v.message,...o},notification:{...v.notification,...s}}),[o,s,v.message,v.notification]),[b,x]=ml(y.message),[S,C]=Qh(y.notification),[w,T]=Vh(),E=$.useMemo(()=>({message:b,notification:S,modal:w}),[b,S,w]);gt(`App`)(!(g&&l===!1),`usage`,"When using cssVar, ensure `component` is assigned a valid React component string."),gt(`App`)(!t||l!==!1,`usage`,"`ref` is not supported when `component` is `false`. Please provide a valid `component` instead.");let D=l===!1?$.Fragment:l,O={className:X(f,_),style:{...p,...c}};return $.createElement(eg.Provider,{value:E},$.createElement($h.Provider,{value:y},$.createElement(D,{...l===!1?void 0:{...O,ref:t}},T,x,C,r)))}),rg=()=>$.useContext(eg),ig=ng;ig.useApp=rg;function ag(e){return t=>$.createElement(ss,{theme:{token:{motion:!1,zIndexPopupBase:0}}},$.createElement(e,{...t}))}var og=(e,t,n,r,i)=>ag(a=>{let{prefixCls:o,style:s}=a,c=$.useRef(null),[l,u]=$.useState(0),[d,f]=$.useState(0),[p,m]=v(!1,a.open),{getPrefixCls:h}=$.useContext(Vt),g=h(r||`select`,o);$.useEffect(()=>{if(m(!0),typeof ResizeObserver<`u`){let e=new ResizeObserver(e=>{let t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)}),t=setInterval(()=>{let n=i?`.${i(g)}`:`.${g}-dropdown`,r=c.current?.querySelector(n);r&&(clearInterval(t),e.observe(r))},10);return()=>{clearInterval(t),e.disconnect()}}},[g]);let _={...a,style:{...s,margin:0},open:p,getPopupContainer:()=>c.current};n&&(_=n(_)),t&&(_={..._,[t]:{overflow:{adjustX:!1,adjustY:!1}}});let y={paddingBottom:l,position:`relative`,minWidth:d};return $.createElement(`div`,{ref:c,style:y},$.createElement(e,{..._}))}),sg=(e,t,n,r,i=!1,a,o)=>{let s=(0,$.useMemo)(()=>typeof n==`boolean`?{allowClear:n}:n&&typeof n==`object`?n:{allowClear:!1},[n]);return(0,$.useMemo)(()=>{let e=!i&&s.allowClear!==!1&&(t.length||a)&&!(o===`combobox`&&a===``);return{allowClear:e,clearIcon:e?s.clearIcon||r||`×`:null}},[s,r,i,t.length,a,o])},cg=$.createContext(null);function lg(){return $.useContext(cg)}function ug(e=250){let t=$.useRef(null),n=$.useRef(null);$.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(r){(r||t.current===null)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function dg(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}function fg(e,t,n,r){let i=J(i=>{if(r)return;let a=i.target;a.shadowRoot&&i.composed&&(a=i.composedPath()[0]||a),i._ori_target&&(a=i._ori_target),t&&!dg(e(),a)&&n(!1)});$.useEffect(()=>(window.addEventListener(`mousedown`,i),()=>window.removeEventListener(`mousedown`,i)),[i])}function pg(){return pg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pg.apply(this,arguments)}var mg=e=>{let t=e===!0?0:1;return{bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`}}},hg=$.forwardRef((e,t)=>{let{prefixCls:n,disabled:r,visible:i,children:a,popupElement:o,animation:s,transitionName:c,popupStyle:l,popupClassName:u,direction:d=`ltr`,placement:f,builtinPlacements:p,popupMatchSelectWidth:m,popupRender:h,popupAlign:g,getPopupContainer:_,empty:v,onPopupVisibleChange:y,onPopupMouseEnter:b,onPopupMouseDown:x,onPopupBlur:S,...C}=e,w=`${n}-dropdown`,T=o;h&&(T=h(o));let E=$.useMemo(()=>p||mg(m),[p,m]),D=s?`${w}-${s}`:c,O=typeof m==`number`,k=$.useMemo(()=>O?null:m===!1?`minWidth`:`width`,[m,O]),A=l;O&&(A={...l,width:m});let j=$.useRef(null);return $.useImperativeHandle(t,()=>({getPopupElement:()=>j.current?.popupElement})),$.createElement(No,pg({},C,{showAction:y?[`click`]:[],hideAction:y?[`click`]:[],popupPlacement:f||(d===`rtl`?`bottomRight`:`bottomLeft`),builtinPlacements:E,prefixCls:w,popupMotion:{motionName:D},popup:$.createElement(`div`,{onMouseEnter:b,onMouseDown:x,onBlur:S},T),ref:j,stretch:k,popupAlign:g,popupVisible:i,getPopupContainer:_,popupClassName:X(u,{[`${w}-empty`]:v}),popupStyle:A,onPopupVisibleChange:y}),a)});function gg(e,t){let{key:n}=e,r;return`value`in e&&({value:r}=e),n??(r===void 0?`rc-index-key-${t}`:r)}function _g(e){return e!==void 0&&!Number.isNaN(e)}function vg(e,t){let{label:n,value:r,options:i,groupLabel:a}=e||{},o=n||(t?`children`:`label`);return{label:o,value:r||`value`,options:i||`options`,groupLabel:a||o}}function yg(e,{fieldNames:t,childrenAsData:n}={}){let r=[],{label:i,value:a,options:o,groupLabel:s}=vg(t,!1);function c(e,t){Array.isArray(e)&&e.forEach(e=>{if(t||!(o in e)){let n=e[a];r.push({key:gg(e,r.length),groupOption:t,data:e,label:e[i],value:n})}else{let t=e[s];t===void 0&&n&&(t=e.label),r.push({key:gg(e,r.length),group:!0,data:e,label:t}),c(e[o],!0)}})}return c(e,!1),r}function bg(e){let t={...e};return`props`in t||Object.defineProperty(t,"props",{get(){return $e(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var xg=(e,t,n)=>{if(!t||!t.length)return null;let r=!1,i=(e,[t,...n])=>{if(!t)return[e];let a=e.split(t);return r=r||a.length>1,a.reduce((e,t)=>[...e,...i(t,n)],[]).filter(Boolean)},a=i(e,t);return r?n===void 0?a:a.slice(0,n):null};function Sg(e){let{visible:t,values:n}=e;return t?$.createElement(`span`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`${n.slice(0,50).map(({label:e,value:t})=>[`number`,`string`].includes(typeof e)?e:t).join(`, `)}`,n.length>50?`, ...`:null):null}var Cg=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},wg=(e,t=1)=>{if(t<=0){e();return}Cg(()=>{wg(e,t-1)})};function Tg(e,t,n,r){let[i,a]=(0,$.useState)(!1);(0,$.useEffect)(()=>{a(!0)},[]);let[o,s]=v(e,t),[c,l]=(0,$.useState)(!1),u=i?o:!1,d=r(u),f=(0,$.useRef)(0),p=J(e=>{n&&d!==e&&n(e),s(e)});return[u,d,J((e,t={})=>{let{cancelFun:n}=t;f.current+=1;let r=f.current,i=typeof e==`boolean`?e:!d;l(!i);function a(){r===f.current&&!n?.()&&(p(i),l(!1))}i?a():wg(()=>{a()})}),c]}function Eg(e){let{children:t,...n}=e;return t?$.createElement(`div`,n,t):null}var Dg=$.createContext(null);function Og(){return $.useContext(Dg)}var kg=$.forwardRef((e,t)=>{let{onChange:n,onKeyDown:r,onBlur:i,style:a,syncWidth:o,value:s,className:c,autoComplete:l,...u}=e,{prefixCls:d,mode:f,onSearch:p,onSearchSubmit:m,onInputBlur:h,autoFocus:g,tokenWithEnter:_,placeholder:v,components:{input:y=`input`}}=Og(),{id:b,classNames:x,styles:C,open:w,activeDescendantId:T,role:E,disabled:D}=lg()||{},O=X(`${d}-input`,x?.input,c),k=$.useRef(!1),A=$.useRef(null),j=$.useRef(null);$.useImperativeHandle(t,()=>j.current);let M=e=>{let{value:t}=e.target;if(_&&A.current&&/[\r\n]/.test(A.current)){let e=A.current.replace(/[\r\n]+$/,``).replace(/\r\n/g,` `).replace(/[\r\n]/g,` `);t=t.replace(e,A.current)}A.current=null,p&&p(t,!0,k.current),n?.(e)},N=e=>{let{key:t}=e,{value:n}=e.currentTarget;t===`Enter`&&f===`tags`&&!w&&!k.current&&m&&m(n),r?.(e)},P=e=>{h?.(),i?.(e)},F=()=>{k.current=!0},I=e=>{if(k.current=!1,f!==`combobox`){let{value:t}=e.currentTarget;p?.(t,!0,!1)}},L=e=>{let{clipboardData:t}=e;A.current=t?.getData(`text`)||``},[R,z]=$.useState(void 0);Pe(()=>{let e=j.current;if(o&&e){e.style.width=`0px`;let t=e.scrollWidth;z(t),e.style.width=``}},[o,s]);let B={id:b,type:f===`combobox`?`text`:`search`,...u,ref:j,style:{...C?.input,...a,"--select-input-width":R},autoFocus:g,autoComplete:l||`off`,className:O,disabled:D,value:s||``,onChange:M,onKeyDown:N,onBlur:P,onPaste:L,onCompositionStart:F,onCompositionEnd:I,role:E||`combobox`,"aria-expanded":w||!1,"aria-haspopup":`listbox`,"aria-owns":w?`${b}_list`:void 0,"aria-autocomplete":`list`,"aria-controls":w?`${b}_list`:void 0,"aria-activedescendant":w?T:void 0};if($.isValidElement(y)){let t=y.props||{},n={placeholder:e.placeholder||v,...B,...t};return Object.keys(t).forEach(e=>{let r=t[e];typeof r==`function`&&(n[e]=(...t)=>{r(...t),B[e]?.(...t)})}),n.ref=S(y.ref,B.ref),$.cloneElement(y,n)}let V=y;return $.createElement(V,B)});function Ag(e){let{prefixCls:t,placeholder:n,displayValues:r}=Og(),{classNames:i,styles:a}=lg(),{show:o=!0}=e;return r.length?null:$.createElement(`div`,{className:X(`${t}-placeholder`,i?.placeholder),style:{visibility:o?`visible`:`hidden`,...a?.placeholder}},n)}var jg=$.createContext(null);function Mg(e){return Array.isArray(e)?e:e===void 0?[]:[e]}typeof window<`u`&&window.document&&window.document.documentElement;function Ng(e){return e!=null}function Pg(e){return!e&&e!==0}function Fg(e){return[`string`,`number`].includes(typeof e)}function Ig(e){let t;return e&&(Fg(e.title)?t=e.title.toString():Fg(e.label)&&(t=e.label.toString())),t}function Lg(){return Lg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lg.apply(this,arguments)}var Rg=$.forwardRef(({inputProps:e},t)=>{let{prefixCls:n,searchValue:r,activeValue:i,displayValues:a,maxLength:o,mode:s,components:c}=Og(),{triggerOpen:l,title:u,showSearch:d,classNames:f,styles:p}=lg(),m=$.useContext(jg),[h,g]=$.useState(!1),_=s===`combobox`,v=a[0],y=$.useMemo(()=>_&&i&&!h&&l?i:d?r:``,[_,i,h,l,r,d]),[b,x,S,C]=$.useMemo(()=>{let e,t,n;if(v&&m?.flattenOptions){let r=m.flattenOptions.find(e=>e.value===v.value);r?.data&&(e=r.data.className,t=r.data.style,n=Ig(r.data))}return v&&!n&&(n=Ig(v)),u!==void 0&&(n=u),[e,t,n,!!e||!!t]},[v,m?.flattenOptions,u]);$.useEffect(()=>{_&&g(!1)},[_,i]);let w=v&&v.label!==null&&v.label!==void 0&&String(v.label).trim()!==``,T=_&&c?.input?null:v?C?$.createElement(`div`,{className:X(`${n}-content-value`,b),style:{...y?{visibility:`hidden`}:{},...x},title:S},v.label):v.label:$.createElement(Ag,{show:!y});return $.createElement(`div`,{className:X(`${n}-content`,w&&`${n}-content-has-value`,y&&`${n}-content-has-search-value`,C&&`${n}-content-has-option-style`,f?.content),style:p?.content,title:C?void 0:S},T,$.createElement(kg,Lg({ref:t},e,{value:y,maxLength:s===`combobox`?o:void 0,onChange:t=>{g(!0),e.onChange?.(t)}})))}),zg=void 0;function Bg(e,t){let{prefixCls:n,invalidate:r,item:i,renderItem:a,responsive:o,responsiveDisabled:s,registerSize:c,itemKey:l,className:u,style:d,children:f,display:p,order:m,component:h=`div`,...g}=e,_=o&&!p;function v(e){c(l,e)}$.useEffect(()=>()=>{v(null)},[]);let y=a&&i!==zg?a(i,{index:m}):f,b;r||(b={opacity:+!_,height:_?0:zg,overflowY:_?`hidden`:zg,order:o?m:zg,pointerEvents:_?`none`:zg,position:_?`absolute`:zg});let x={};_&&(x[`aria-hidden`]=!0);let S=$.createElement(h,ld({className:X(!r&&n,u),style:{...b,...d}},x,g,{ref:t}),y);return o&&(S=$.createElement(jt,{onResize:({offsetWidth:e})=>{v(e)},disabled:s},S)),S}var Vg=$.forwardRef(Bg);function Hg(e){if(typeof MessageChannel>`u`)Y(e);else{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function Ug(){let e=$.useRef(null);return t=>{e.current||(e.current=[],Hg(()=>{(0,Kt.unstable_batchedUpdates)(()=>{e.current.forEach(e=>{e()}),e.current=null})})),e.current.push(t)}}function Wg(e,t){let[n,r]=$.useState(t);return[n,J(t=>{e(()=>{r(t)})})]}var Gg=$.createContext(null),Kg=$.forwardRef((e,t)=>{let n=$.useContext(Gg);if(!n){let{component:n=`div`,...r}=e;return $.createElement(n,ld({},r,{ref:t}))}let{className:r,...i}=n,{className:a,...o}=e;return $.createElement(Gg.Provider,{value:null},$.createElement(Vg,ld({ref:t,className:X(r,a)},i,o)))}),qg=`responsive`,Jg=`invalidate`;function Yg(e){return`+ ${e.length} ...`}function Xg(e,t){let{prefixCls:n=`rc-overflow`,data:r=[],renderItem:i,renderRawItem:a,itemKey:o,itemWidth:s=10,ssr:c,style:l,className:u,maxCount:d,renderRest:f,renderRawRest:p,prefix:m,suffix:h,component:g=`div`,itemComponent:_,onVisibleChange:v,...y}=e,b=c===`full`,x=Ug(),[S,C]=Wg(x,null),w=S||0,[T,E]=Wg(x,new Map),[D,O]=Wg(x,0),[k,A]=Wg(x,0),[j,M]=Wg(x,0),[N,P]=Wg(x,0),[F,I]=(0,$.useState)(null),[L,R]=(0,$.useState)(null),z=$.useMemo(()=>L===null&&b?2**53-1:L||0,[L,S]),[B,V]=(0,$.useState)(!1),H=`${n}-item`,U=Math.max(D,k),W=d===qg,G=r.length&&W,ee=d===Jg,K=G||typeof d==`number`&&r.length>d,q=(0,$.useMemo)(()=>{let e=r;return G?e=S===null&&b?r:r.slice(0,Math.min(r.length,w/s)):typeof d==`number`&&(e=r.slice(0,d)),e},[r,s,S,d,G]),te=(0,$.useMemo)(()=>G?r.slice(z+1):r.slice(q.length),[r,q,G,z]),ne=(0,$.useCallback)((e,t)=>typeof o==`function`?o(e):(o&&e?.[o])??t,[o]),re=(0,$.useCallback)(i||(e=>e),[i]);function J(e,t,n){L===e&&(t===void 0||t===F)||(R(e),n||(V(e<r.length-1),v?.(e)),t!==void 0&&I(t))}function ie(e,t){C(t.clientWidth)}function ae(e,t){E(n=>{let r=new Map(n);return t===null?r.delete(e):r.set(e,t),r})}function oe(e,t){A(t),O(k)}function se(e,t){M(t)}function ce(e,t){P(t)}function le(e){return T.get(ne(q[e],e))}Pe(()=>{if(w&&typeof U==`number`&&q){let e=j+N,t=q.length,n=t-1;if(!t){J(0,null);return}for(let r=0;r<t;r+=1){let t=le(r);if(b&&(t=t||0),t===void 0){J(r-1,void 0,!0);break}if(e+=t,n===0&&e<=w||r===n-1&&e+le(n)<=w){J(n,null);break}else if(e+U>w){J(r-1,e-t-N+k);break}}h&&le(0)+N>w&&I(null)}},[w,T,k,j,N,ne,q]);let Y=B&&!!te.length,ue={};F!==null&&G&&(ue={position:`absolute`,top:0,insetInlineStart:F});let de={prefixCls:H,responsive:G,component:_,invalidate:ee},fe=a?(e,t)=>{let n=ne(e,t);return $.createElement(Gg.Provider,{key:n,value:{...de,order:t,item:e,itemKey:n,registerSize:ae,display:t<=z}},a(e,t))}:(e,t)=>{let n=ne(e,t);return $.createElement(Vg,ld({},de,{order:t,key:n,item:e,renderItem:re,itemKey:n,registerSize:ae,display:t<=z}))},pe={order:Y?z:2**53-1,className:`${H}-rest`,registerSize:oe,display:Y},me=f||Yg,he=p?$.createElement(Gg.Provider,{value:{...de,...pe}},p(te)):$.createElement(Vg,ld({},de,pe),typeof me==`function`?me(te):me),ge=$.createElement(g,ld({className:X(!ee&&n,u),style:l,ref:t},y),m&&$.createElement(Vg,ld({},de,{responsive:W,responsiveDisabled:!G,order:-1,className:`${H}-prefix`,registerSize:se,display:!0}),m),q.map(fe),K?he:null,h&&$.createElement(Vg,ld({},de,{responsive:W,responsiveDisabled:!G,order:z,className:`${H}-suffix`,registerSize:ce,display:!0,style:ue}),h));return W?$.createElement(jt,{onResize:ie,disabled:!G},ge):ge}var Zg=$.forwardRef(Xg);Zg.Item=Kg,Zg.RESPONSIVE=qg,Zg.INVALIDATE=Jg;var Qg=Zg,$g=e=>{let{className:t,style:n,customizeIcon:r,customizeIconProps:i,children:a,onMouseDown:o,onClick:s}=e,c=typeof r==`function`?r(i):r;return $.createElement(`span`,{className:t,onMouseDown:e=>{e.preventDefault(),o?.(e)},style:{userSelect:`none`,WebkitUserSelect:`none`,...n},unselectable:`on`,onClick:s,"aria-hidden":!0},c===void 0?$.createElement(`span`,{className:X(t.split(/\s+/).map(e=>`${e}-icon`))},a):c)};function e_(){return e_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e_.apply(this,arguments)}function t_(e){return e.key??e.value}var n_=e=>{e.preventDefault(),e.stopPropagation()},r_=$.forwardRef(function({inputProps:e},t){let{prefixCls:n,displayValues:r,searchValue:i,mode:a,onSelectorRemove:o,removeIcon:s}=Og(),{disabled:c,showSearch:l,triggerOpen:u,rawOpen:d,toggleOpen:f,autoClearSearchValue:p,tagRender:m,maxTagPlaceholder:h,maxTagTextLength:g,maxTagCount:_,classNames:v,styles:y}=lg(),b=`${n}-selection-item`,x=i;!d&&a===`multiple`&&p!==!1&&(x=``);let S=l&&x||``,C=l&&!c,w=s??`×`,T=h??(e=>`+ ${e.length} ...`),E=m,D=e=>{f(e)},O=e=>{o?.(e)},k=(e,t,n,r,i)=>$.createElement(`span`,{title:Ig(e),className:X(b,{[`${b}-disabled`]:n},v?.item),style:y?.item},$.createElement(`span`,{className:X(`${b}-content`,v?.itemContent),style:y?.itemContent},t),r&&$.createElement($g,{className:X(`${b}-remove`,v?.itemRemove),style:y?.itemRemove,onMouseDown:n_,onClick:i,customizeIcon:w},`×`)),A=(e,t,n,r,i,a,o)=>$.createElement(`span`,{onMouseDown:e=>{n_(e),D(!u)}},E({label:t,value:e,index:o?.index,disabled:n,closable:r,onClose:i,isMaxTag:!!a}));return $.createElement(Qg,{prefixCls:`${n}-content`,className:v?.content,style:y?.content,prefix:!r.length&&!S&&$.createElement(Ag,null),data:r,renderItem:(e,t)=>{let{disabled:n,label:r,value:i}=e,a=!c&&!n,o=r;if(typeof g==`number`&&(typeof r==`string`||typeof r==`number`)){let e=String(o);e.length>g&&(o=`${e.slice(0,g)}...`)}let s=t=>{t&&t.stopPropagation(),O(e)};return typeof E==`function`?A(i,o,n,a,s,void 0,t):k(e,o,n,a,s)},renderRest:e=>{if(!r.length)return null;let t=typeof T==`function`?T(e):T;return typeof E==`function`?A(void 0,t,!1,!1,void 0,!0):k({title:t},t,!1)},suffix:$.createElement(kg,e_({ref:t,disabled:c,readOnly:!C},e,{value:S||``,syncWidth:!0})),itemKey:t_,maxCount:_})}),i_=$.forwardRef(function(e,t){let{multiple:n,onInputKeyDown:r,tabIndex:i}=Og(),a=lg(),{showSearch:o}=a,s={...V(a,{aria:!0}),onKeyDown:r,readOnly:!o,tabIndex:i};return n?$.createElement(r_,{ref:t,inputProps:s}):$.createElement(Rg,{ref:t,inputProps:s})});function a_(e){return e&&![f.ESC,f.SHIFT,f.BACKSPACE,f.TAB,f.WIN_KEY,f.ALT,f.META,f.WIN_KEY_RIGHT,f.CTRL,f.SEMICOLON,f.EQUALS,f.CAPS_LOCK,f.CONTEXT_MENU,f.UP,f.LEFT,f.RIGHT,f.F1,f.F2,f.F3,f.F4,f.F5,f.F6,f.F7,f.F8,f.F9,f.F10,f.F11,f.F12].includes(e)}function o_(){return o_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o_.apply(this,arguments)}var s_=[`value`,`onChange`,`removeIcon`,`placeholder`,`maxTagCount`,`maxTagTextLength`,`maxTagPlaceholder`,`choiceTransitionName`,`onInputKeyDown`,`onPopupScroll`,`tabIndex`,`activeValue`,`onSelectorRemove`,`focused`],c_=$.forwardRef(function(e,t){let{prefixCls:n,className:r,style:i,prefix:a,suffix:o,clearIcon:s,children:c,multiple:l,displayValues:d,placeholder:p,mode:m,searchValue:h,onSearch:g,onSearchSubmit:_,onInputBlur:v,maxLength:y,autoFocus:b,onMouseDown:x,onClearMouseDown:C,onInputKeyDown:w,onSelectorRemove:T,tokenWithEnter:E,components:D,...O}=e,{triggerOpen:k,toggleOpen:A,showSearch:j,disabled:M,loading:N,classNames:P,styles:F}=lg(),L=$.useRef(null),R=$.useRef(null),z=J(e=>{let{which:t}=e,n=R.current instanceof HTMLTextAreaElement;!n&&k&&(t===f.UP||t===f.DOWN)&&e.preventDefault(),w&&w(e),!(n&&!k&&~[f.UP,f.DOWN,f.LEFT,f.RIGHT].indexOf(t))&&!(e.ctrlKey||e.altKey||e.metaKey)&&a_(t)&&A(!0)});$.useImperativeHandle(t,()=>({focus:e=>{(R.current||L.current).focus?.(e)},blur:()=>{(R.current||L.current).blur?.()},nativeElement:I(L.current)}));let B=J(e=>{if(!M){let t=I(R.current);e.nativeEvent._ori_target=t;let n=t===e.target||t?.contains(e.target);t&&!n&&e.preventDefault();let r=k&&!l&&(m===`combobox`||j)||k&&l&&n;e.nativeEvent._select_lazy?k&&A(!1):(R.current?.focus(),r||A())}x?.(e)}),{root:H}=D,U=u(O,s_),W=V(U,{aria:!0}),G=Object.keys(W),ee={...e,onInputKeyDown:z};if(H){let e=H.props||{},t={...e,...U};return Object.keys(e).forEach(n=>{let r=e[n],i=U[n];typeof r==`function`&&typeof i==`function`&&(t[n]=(...e)=>{i(...e),r(...e)})}),$.isValidElement(H)?$.cloneElement(H,{...t,ref:S(H.ref,L)}):$.createElement(H,o_({},t,{ref:L}))}return $.createElement(Dg.Provider,{value:ee},$.createElement(`div`,o_({},u(U,G),{ref:L,className:r,style:i,onMouseDown:B}),$.createElement(Eg,{className:X(`${n}-prefix`,P?.prefix),style:F?.prefix},a),$.createElement(i_,{ref:R}),$.createElement(Eg,{className:X(`${n}-suffix`,{[`${n}-suffix-loading`]:N},P?.suffix),style:F?.suffix},o),s&&$.createElement(Eg,{className:X(`${n}-clear`,P?.clear),style:F?.clear,onMouseDown:e=>{e.nativeEvent._select_lazy=!0,C?.(e)}},s),c))});function l_(e,t,n){return $.useMemo(()=>{let{root:r,input:i}=e||{};return n&&(r=n()),t&&(i=t()),{root:r,input:i}},[e,t,n])}function u_(){return u_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u_.apply(this,arguments)}var d_=e=>e===`tags`||e===`multiple`,f_=$.forwardRef((e,t)=>{let{id:n,prefixCls:r,className:i,styles:a,classNames:o,showSearch:s,tagRender:c,showScrollBar:l=`optional`,direction:u,omitDomProps:d,displayValues:f,onDisplayValuesChange:p,emptyOptions:m,notFoundContent:h=`Not Found`,onClear:g,maxCount:_,placeholder:v,mode:y,disabled:b,loading:x,getInputElement:S,getRawInputElement:C,open:w,defaultOpen:T,onPopupVisibleChange:E,activeValue:D,onActiveValueChange:O,activeDescendantId:k,searchValue:A,autoClearSearchValue:j,onSearch:M,onSearchSplit:N,tokenSeparators:P,allowClear:F,prefix:L,suffix:R,suffixIcon:z,clearIcon:B,OptionList:V,animation:H,transitionName:U,popupStyle:W,popupClassName:G,popupMatchSelectWidth:ee,popupRender:K,popupAlign:q,placement:te,builtinPlacements:ne,getPopupContainer:re,showAction:ie=[],onFocus:ae,onBlur:oe,onKeyUp:se,onKeyDown:ce,onMouseDown:le,components:Y,...ue}=e,de=d_(y),fe=$.useRef(null),pe=$.useRef(null),me=$.useRef(null),[he,ge]=$.useState(!1);$.useImperativeHandle(t,()=>({focus:fe.current?.focus,blur:fe.current?.blur,scrollTo:e=>me.current?.scrollTo(e),nativeElement:I(fe.current)}));let _e=l_(Y,S,C),ve=$.useMemo(()=>{if(y!==`combobox`)return A;let e=f[0]?.value;return typeof e==`string`||typeof e==`number`?String(e):``},[A,y,f]),ye=y===`combobox`&&typeof S==`function`&&S()||null,be=!h&&m,[xe,Se,Ce,we]=Tg(T||!1,w,E,e=>b||be?!1:e),Te=$.useMemo(()=>(P||[]).some(e=>[`
78
+ `,`\r
79
+ `].includes(e)),[P]),Ee=(e,t,n)=>{if(de&&_g(_)&&f.length>=_)return;let r=!0,i=e;O?.(null);let a=xg(e,P,_g(_)?_-f.length:void 0),o=n?null:a;return y!==`combobox`&&o&&(i=``,N?.(o),Ce(!1),r=!1),M&&ve!==i&&M(i,{source:t?`typing`:`effect`}),e&&t&&r&&Ce(!0),r},De=e=>{!e||!e.trim()||M(e,{source:`submit`})};$.useEffect(()=>{!xe&&!de&&y!==`combobox`&&Ee(``,!1,!1)},[xe]),$.useEffect(()=>{b&&(Ce(!1),ge(!1))},[b,Se]);let[Oe,ke]=ug(),Ae=$.useRef(!1),je=e=>{let t=Oe(),{key:n}=e,r=n===`Enter`,i=n===` `;if(r||i){let t=y===`combobox`;(i&&!(t||s)||r&&!t)&&e.preventDefault(),Se||Ce(!0)}if(ke(!!ve),n===`Backspace`&&!t&&de&&!ve&&f.length){let e=[...f],t=null;for(let n=e.length-1;n>=0;--n){let r=e[n];if(!r.disabled){e.splice(n,1),t=r;break}}t&&p(e,{type:`remove`,values:[t]})}Se&&(!r||!Ae.current)&&!i&&(r&&(Ae.current=!0),me.current?.onKeyDown(e)),ce?.(e)},Me=(e,...t)=>{Se&&me.current?.onKeyUp(e,...t),e.key===`Enter`&&(Ae.current=!1),se?.(e,...t)},Ne=J(e=>{p(f.filter(t=>t!==e),{type:`remove`,values:[e]})}),Pe=()=>{Ae.current=!1},Fe=()=>[I(fe.current),pe.current?.getPopupElement()];fg(Fe,Se,Ce,!!_e.root);let Ie=$.useRef(!1),Le=e=>{ge(!0),b||(ie.includes(`focus`)&&Ce(!0),ae?.(e))},Re=()=>{Se&&!Ie.current&&Ce(!1,{cancelFun:()=>dg(Fe(),document.activeElement)})},ze=e=>{ge(!1),ve&&(y===`tags`?M(ve,{source:`submit`}):y===`multiple`&&M(``,{source:`blur`})),Re(),b||oe?.(e)},Be=(e,...t)=>{let{target:n}=e;(pe.current?.getPopupElement())?.contains(n)&&Ce&&Ce(!0),le?.(e,...t),Ie.current=!0,wg(()=>{Ie.current=!1})},[,Ve]=$.useState({});function He(){Ve({})}let Ue;_e.root&&(Ue=e=>{Ce(e)});let We=$.useMemo(()=>({...e,notFoundContent:h,open:Se,triggerOpen:Se,rawOpen:xe,id:n,showSearch:s,multiple:de,toggleOpen:Ce,showScrollBar:l,styles:a,classNames:o,lockOptions:we}),[e,h,Ce,n,s,de,Se,xe,l,a,o,we]),Ge=$.useMemo(()=>{let e=R??z;return typeof e==`function`?e({searchValue:ve,open:Se,focused:he,showSearch:s,loading:x}):e},[R,z,ve,Se,he,s,x]),Ke=()=>{g?.(),fe.current?.focus(),p([],{type:`clear`,values:f}),Ee(``,!1,!1)},{allowClear:qe,clearIcon:Je}=sg(r,f,F,B,b,ve,y),Ye=$.createElement(V,{ref:me}),Xe=X(r,i,{[`${r}-focused`]:he,[`${r}-multiple`]:de,[`${r}-single`]:!de,[`${r}-allow-clear`]:qe,[`${r}-show-arrow`]:Ge!=null,[`${r}-disabled`]:b,[`${r}-loading`]:x,[`${r}-open`]:Se,[`${r}-customize-input`]:ye,[`${r}-show-search`]:s}),Ze=$.createElement(c_,u_({},ue,{ref:fe,prefixCls:r,className:Xe,focused:he,prefix:L,suffix:Ge,clearIcon:Je,multiple:de,mode:y,displayValues:f,placeholder:v,searchValue:ve,activeValue:D,onSearch:Ee,onSearchSubmit:De,onInputBlur:Pe,onFocus:Le,onBlur:ze,onClearMouseDown:Ke,onKeyDown:je,onKeyUp:Me,onSelectorRemove:Ne,tokenWithEnter:Te,onMouseDown:Be,components:_e}));return Ze=$.createElement(hg,{ref:pe,disabled:b,prefixCls:r,visible:Se,popupElement:Ye,animation:H,transitionName:U,popupStyle:W,popupClassName:G,direction:u,popupMatchSelectWidth:ee,popupRender:K,popupAlign:q,placement:te,builtinPlacements:ne,getPopupContainer:re,empty:m,onPopupVisibleChange:Ue,onPopupMouseEnter:He,onPopupMouseDown:Be,onPopupBlur:Re},Ze),$.createElement(cg.Provider,{value:We},$.createElement(Sg,{visible:he&&!Se,values:f}),Ze)}),p_=()=>null;p_.isSelectOptGroup=!0;var m_=()=>null;m_.isSelectOption=!0;var h_=$.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:i,onInnerResize:a,innerProps:o,rtl:s,extra:c},l)=>{let u={},d={display:`flex`,flexDirection:`column`};return t!==void 0&&(u={height:e,position:`relative`,overflow:`hidden`},d={...d,transform:`translateY(${t}px)`,[s?`marginRight`:`marginLeft`]:-n,position:`absolute`,left:0,right:0,top:0}),$.createElement(`div`,{style:u},$.createElement(jt,{onResize:({offsetHeight:e})=>{e&&a&&a()}},$.createElement(`div`,ld({style:d,className:X({[`${i}-holder-inner`]:i}),ref:l},o),r,c)))});h_.displayName=`Filler`;function g_({children:e,setRef:t}){let n=$.useCallback(e=>{t(e)},[]);return $.cloneElement(e,{ref:n})}function __(e,t,n,r,i,a,o,{getKey:s}){return e.slice(t,n+1).map((e,n)=>{let c=o(e,t+n,{style:{width:r},offsetX:i}),l=s(e);return $.createElement(g_,{key:l,setRef:t=>a(e,t)},c)})}function v_(e,t,n){let r=e.length,i=t.length,a,o;if(r===0&&i===0)return null;r<i?(a=e,o=t):(a=t,o=e);let s={__EMPTY_ITEM__:!0};function c(e){return e===void 0?s:n(e)}let l=null,u=Math.abs(r-i)!==1;for(let e=0;e<o.length;e+=1){let t=c(a[e]);if(t!==c(o[e])){l=e,u=u||t!==c(o[e+1]);break}}return l===null?null:{index:l,multiple:u}}function y_(e,t,n){let[r,i]=$.useState(e),[a,o]=$.useState(null);return $.useEffect(()=>{let a=v_(r||[],e||[],t);a?.index!==void 0&&(n?.(a.index),o(e[a.index])),i(e)},[e]),[a]}var b_=typeof navigator==`object`&&/Firefox/i.test(navigator.userAgent),x_=((e,t,n,r)=>{let i=(0,$.useRef)(!1),a=(0,$.useRef)(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(()=>{i.current=!1},50)}let s=(0,$.useRef)({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,(e,t,n=!1)=>{let r=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):(!r||i.current)&&o(),!i.current&&r}});function S_(e,t,n,r,i,a,o){let s=(0,$.useRef)(0),c=(0,$.useRef)(null),l=(0,$.useRef)(null),u=(0,$.useRef)(!1),d=x_(t,n,r,i);function f(e,t){if(Y.cancel(c.current),d(!1,t))return;let n=e;if(!n._virtualHandled)n._virtualHandled=!0;else return;s.current+=t,l.current=t,b_||n.preventDefault(),c.current=Y(()=>{let e=u.current?10:1;o(s.current*e,!1),s.current=0})}function p(e,t){o(t,!0),b_||e.preventDefault()}let m=(0,$.useRef)(null),h=(0,$.useRef)(null);function g(t){if(!e)return;Y.cancel(h.current),h.current=Y(()=>{m.current=null},2);let{deltaX:n,deltaY:r,shiftKey:i}=t,o=n,s=r;(m.current===`sx`||!m.current&&i&&r&&!n)&&(o=r,s=0,m.current=`sx`);let c=Math.abs(o),l=Math.abs(s);m.current===null&&(m.current=a&&c>l?`x`:`y`),m.current===`y`?f(t,s):p(t,o)}function _(t){e&&(u.current=t.detail===l.current)}return[g,_]}function C_(e,t,n,r){let[i,a]=$.useMemo(()=>[new Map,[]],[e,n.id,r]);return(o,s=o)=>{let c=i.get(o),l=i.get(s);if(c===void 0||l===void 0){let u=e.length;for(let d=a.length;d<u;d+=1){let u=e[d],f=t(u);i.set(f,d);let p=n.get(f)??r;if(a[d]=(a[d-1]||0)+p,f===o&&(c=d),f===s&&(l=d),c!==void 0&&l!==void 0)break}}return{top:a[c-1]||0,bottom:a[l]}}}var w_=class{constructor(){Z(this,`maps`,void 0),Z(this,`id`,0),Z(this,`diffRecords`,new Map),this.maps=Object.create(null)}set(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}get(e){return this.maps[e]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}};function T_(e){let t=parseFloat(e);return isNaN(t)?0:t}function E_(e,t,n){let[r,i]=$.useState(0),a=(0,$.useRef)(new Map),o=(0,$.useRef)(new w_),s=(0,$.useRef)(0);function c(){s.current+=1}function l(e=!1){c();let t=()=>{let e=!1;a.current.forEach((t,n)=>{if(t&&t.offsetParent){let{offsetHeight:r}=t,{marginTop:i,marginBottom:a}=getComputedStyle(t),s=T_(i),c=T_(a),l=r+s+c;o.current.get(n)!==l&&(o.current.set(n,l),e=!0)}}),e&&i(e=>e+1)};if(e)t();else{s.current+=1;let e=s.current;Promise.resolve().then(()=>{e===s.current&&t()})}}function u(r,i){let o=e(r),s=a.current.get(o);i?(a.current.set(o,i),l()):a.current.delete(o),!s!=!i&&(i?t?.(r):n?.(r))}return(0,$.useEffect)(()=>c,[]),[u,l,o.current,r]}var D_=14/15;function O_(e,t,n){let r=(0,$.useRef)(!1),i=(0,$.useRef)(0),a=(0,$.useRef)(0),o=(0,$.useRef)(null),s=(0,$.useRef)(null),c,l=e=>{if(r.current){let t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),o=i.current-t,c=a.current-r,l=Math.abs(o)>Math.abs(c);l?i.current=t:a.current=r;let u=n(l,l?o:c,!1,e);u&&e.preventDefault(),clearInterval(s.current),u&&(s.current=setInterval(()=>{l?o*=D_:c*=D_;let e=Math.floor(l?o:c);(!n(l,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},u=()=>{r.current=!1,c()},d=e=>{c(),e.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),o.current=e.target,o.current.addEventListener(`touchmove`,l,{passive:!1}),o.current.addEventListener(`touchend`,u,{passive:!0}))};c=()=>{o.current&&(o.current.removeEventListener(`touchmove`,l),o.current.removeEventListener(`touchend`,u))},Pe(()=>(e&&t.current.addEventListener(`touchstart`,d,{passive:!0}),()=>{t.current?.removeEventListener(`touchstart`,d),c(),clearInterval(s.current)}),[e])}function k_(e){return Math.floor(e**.5)}function A_(e,t){return(`touches`in e?e.touches[0]:e)[t?`pageX`:`pageY`]-window[t?`scrollX`:`scrollY`]}function j_(e,t,n){$.useEffect(()=>{let r=t.current;if(e&&r){let e=!1,t,i,a=()=>{Y.cancel(t)},o=()=>{a(),t=Y(()=>{n(i),o()})},s=()=>{e=!1,a()},c=t=>{if(t.target.draggable||t.button!==0)return;let n=t;n._virtualHandled||(n._virtualHandled=!0,e=!0)},l=t=>{if(e){let e=A_(t,!1),{top:n,bottom:s}=r.getBoundingClientRect();e<=n?(i=-k_(n-e),o()):e>=s?(i=k_(e-s),o()):a()}};return r.addEventListener(`mousedown`,c),r.ownerDocument.addEventListener(`mouseup`,s),r.ownerDocument.addEventListener(`mousemove`,l),r.ownerDocument.addEventListener(`dragend`,s),()=>{r.removeEventListener(`mousedown`,c),r.ownerDocument.removeEventListener(`mouseup`,s),r.ownerDocument.removeEventListener(`mousemove`,l),r.ownerDocument.removeEventListener(`dragend`,s),a()}}},[e])}var M_=10;function N_(e,t){let n=typeof e==`function`?e(t):e;return Number.isFinite(n)?n:0}function P_(e,t,n,r,i,a,o,s,c){let l=$.useRef(),[u,d]=$.useState(null);return Pe(()=>{if(u&&u.times<M_){if(!e.current){d(e=>({...e}));return}o();let{targetAlign:c,originAlign:l,index:f,offset:p}=u,m=N_(p,{getSize:a}),h=e.current.clientHeight,g=!1,_=c,v=null;if(h){let a=c||l,o=0,d=0,p=0,y=Math.min(t.length-1,f);for(let e=0;e<=y;e+=1){let a=i(t[e]);d=o;let s=n.get(a);p=d+(s===void 0?r:s),o=p}let b=a===`top`?m:h-m;for(let e=y;e>=0;--e){let r=i(t[e]),a=n.get(r);if(a===void 0){g=!0;break}if(b-=a,b<=0)break}switch(a){case`top`:v=d-m;break;case`bottom`:v=p-h+m;break;default:{let{scrollTop:t}=e.current,n=t+h;d<t?_=`top`:p>n&&(_=`bottom`)}}v!==null&&s(v),v!==u.lastTop&&(g=!0)}g&&d({...u,times:u.times+1,targetAlign:_,lastTop:v})}},[u,e.current]),e=>{if(e==null){c();return}if(Y.cancel(l.current),typeof e==`number`)s(e);else if(e&&typeof e==`object`){let n,{align:r}=e;`index`in e?{index:n}=e:n=t.findIndex(t=>i(t)===e.key);let{offset:a=0}=e;d({times:0,index:n,offset:a,originAlign:r})}}}var F_=$.forwardRef((e,t)=>{let{prefixCls:n,rtl:r,scrollOffset:i,scrollRange:a,onStartMove:o,onStopMove:s,onScroll:c,horizontal:l,spinSize:u,containerSize:d,style:f,thumbStyle:p,showScrollBar:m}=e,[h,g]=$.useState(!1),[_,v]=$.useState(null),[y,b]=$.useState(null),x=!r,S=$.useRef(),C=$.useRef(),[w,T]=$.useState(m),E=$.useRef(),D=()=>{m===!0||m===!1||(clearTimeout(E.current),T(!0),E.current=setTimeout(()=>{T(!1)},3e3))},O=a-d||0,k=d-u||0,A=$.useMemo(()=>i===0||O===0?0:i/O*k,[i,O,k]),j=e=>{e.stopPropagation(),e.preventDefault()},M=$.useRef({top:A,dragging:h,pageY:_,startTop:y});M.current={top:A,dragging:h,pageY:_,startTop:y};let N=e=>{g(!0),v(A_(e,l)),b(M.current.top),o(),e.stopPropagation(),e.preventDefault()};$.useEffect(()=>{let e=e=>{e.preventDefault()},t=S.current,n=C.current;return t.addEventListener(`touchstart`,e,{passive:!1}),n.addEventListener(`touchstart`,N,{passive:!1}),()=>{t.removeEventListener(`touchstart`,e),n.removeEventListener(`touchstart`,N)}},[]);let P=$.useRef();P.current=O;let F=$.useRef();F.current=k,$.useEffect(()=>{if(h){let e,t=t=>{let{dragging:n,pageY:r,startTop:i}=M.current;Y.cancel(e);let a=S.current.getBoundingClientRect(),o=d/(l?a.width:a.height);if(n){let n=(A_(t,l)-r)*o,a=i;!x&&l?a-=n:a+=n;let s=P.current,u=F.current,d=u?a/u:0,f=Math.ceil(d*s);f=Math.max(f,0),f=Math.min(f,s),e=Y(()=>{c(f,l)})}},n=()=>{g(!1),s()};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}),()=>{window.removeEventListener(`mousemove`,t),window.removeEventListener(`touchmove`,t),window.removeEventListener(`mouseup`,n),window.removeEventListener(`touchend`,n),Y.cancel(e)}}},[h]),$.useEffect(()=>(D(),()=>{clearTimeout(E.current)}),[i]),$.useImperativeHandle(t,()=>({delayHidden:D}));let I=`${n}-scrollbar`,L={position:`absolute`,visibility:w?null:`hidden`},R={position:`absolute`,borderRadius:99,background:`var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))`,cursor:`pointer`,userSelect:`none`};return l?(Object.assign(L,{height:8,left:0,right:0,bottom:0}),Object.assign(R,{height:`100%`,width:u,[x?`left`:`right`]:A})):(Object.assign(L,{width:8,top:0,bottom:0,[x?`right`:`left`]:0}),Object.assign(R,{width:`100%`,height:u,top:A})),$.createElement(`div`,{ref:S,className:X(I,{[`${I}-horizontal`]:l,[`${I}-vertical`]:!l,[`${I}-visible`]:w}),style:{...L,...f},onMouseDown:j,onMouseMove:D},$.createElement(`div`,{ref:C,className:X(`${I}-thumb`,{[`${I}-thumb-moving`]:h}),style:{...R,...p},onMouseDown:N}))}),I_=20;function L_(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,I_),Math.floor(n)}var R_=[],z_={overflowY:`auto`,overflowAnchor:`none`};function B_(e,t){let{prefixCls:n=`rc-virtual-list`,className:r,height:i,itemHeight:a,fullHeight:o=!0,style:s,data:c,children:l,itemKey:u,virtual:d,direction:f,scrollWidth:p,component:m=`div`,onScroll:h,onVirtualScroll:g,onVisibleChange:_,innerProps:v,extraRender:y,styles:b,showScrollBar:x=`optional`,...S}=e,C=$.useCallback(e=>typeof u==`function`?u(e):e?.[u],[u]),[w,T,E,D]=E_(C,null,null),O=!!(d!==!1&&i&&a),k=$.useMemo(()=>Object.values(E.maps).reduce((e,t)=>e+t,0),[E.id,E.maps]),A=O&&c&&(Math.max(a*c.length,k)>i||!!p),j=f===`rtl`,M=X(n,{[`${n}-rtl`]:j},r),N=c||R_,P=(0,$.useRef)(),F=(0,$.useRef)(),I=(0,$.useRef)(),[L,R]=(0,$.useState)(0),[z,B]=(0,$.useState)(0),[V,H]=(0,$.useState)(!1),U=()=>{H(!0)},W=()=>{H(!1)},G={getKey:C};function ee(e){R(t=>{let n;n=typeof e==`function`?e(t):e;let r=me(n);return P.current.scrollTop=r,r})}let K=(0,$.useRef)({start:0,end:N.length}),q=(0,$.useRef)(),[te]=y_(N,C);q.current=te;let{scrollHeight:ne,start:re,end:ie,offset:ae}=$.useMemo(()=>{if(!O)return{scrollHeight:void 0,start:0,end:N.length-1,offset:void 0};if(!A)return{scrollHeight:F.current?.offsetHeight||0,start:0,end:N.length-1,offset:void 0};let e=0,t,n,r,o=N.length;for(let s=0;s<o;s+=1){let o=N[s],c=C(o),l=E.get(c),u=e+(l===void 0?a:l);u>=L&&t===void 0&&(t=s,n=e),u>L+i&&r===void 0&&(r=s),e=u}return t===void 0&&(t=0,n=0,r=Math.ceil(i/a)),r===void 0&&(r=N.length-1),r=Math.min(r+1,N.length-1),{scrollHeight:e,start:t,end:r,offset:n}},[A,O,L,N,D,i]);K.current.start=re,K.current.end=ie,$.useLayoutEffect(()=>{let e=E.getRecord();if(e.size===1){let t=Array.from(e.keys())[0],n=e.get(t),r=N[re];if(r&&n===void 0&&C(r)===t){let e=E.get(t)-a;ee(t=>t+e)}}E.resetRecord()},[ne]);let[oe,se]=$.useState({width:0,height:i}),ce=e=>{se({width:e.offsetWidth,height:e.offsetHeight})},le=(0,$.useRef)(),Y=(0,$.useRef)(),ue=$.useMemo(()=>L_(oe.width,p),[oe.width,p]),de=$.useMemo(()=>L_(oe.height,ne),[oe.height,ne]),fe=ne-i,pe=(0,$.useRef)(fe);pe.current=fe;function me(e){let t=e;return Number.isNaN(pe.current)||(t=Math.min(t,pe.current)),t=Math.max(t,0),t}let he=L<=0,ge=L>=fe,_e=z<=0,ve=z>=p,ye=x_(he,ge,_e,ve),be=()=>({x:j?-z:z,y:L}),xe=(0,$.useRef)(be()),Se=J(e=>{if(g){let t={...be(),...e};(xe.current.x!==t.x||xe.current.y!==t.y)&&(g(t),xe.current=t)}});function Ce(e,t){let n=e;t?((0,Kt.flushSync)(()=>{B(n)}),Se()):ee(n)}function we(e){let{scrollTop:t}=e.currentTarget;t!==L&&ee(t),h?.(e),Se()}let Te=e=>{let t=e,n=p?p-oe.width:0;return t=Math.max(t,0),t=Math.min(t,n),t},Ee=J((e,t)=>{t?((0,Kt.flushSync)(()=>{B(t=>Te(t+(j?-e:e)))}),Se()):ee(t=>t+e)}),[De,Oe]=S_(O,he,ge,_e,ve,!!p,Ee);O_(O,P,(e,t,n,r)=>{let i=r;return ye(e,t,n)?!1:!i||!i._virtualHandled?(i&&(i._virtualHandled=!0),De({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),!0):!1}),j_(A,P,e=>{ee(t=>t+e)}),Pe(()=>{function e(e){let t=he&&e.detail<0,n=ge&&e.detail>0;O&&!t&&!n&&e.preventDefault()}let t=P.current;return t.addEventListener(`wheel`,De,{passive:!1}),t.addEventListener(`DOMMouseScroll`,Oe,{passive:!0}),t.addEventListener(`MozMousePixelScroll`,e,{passive:!1}),()=>{t.removeEventListener(`wheel`,De),t.removeEventListener(`DOMMouseScroll`,Oe),t.removeEventListener(`MozMousePixelScroll`,e)}},[O,he,ge]),Pe(()=>{if(p){let e=Te(z);B(e),Se({x:e})}},[oe.width,p]);let ke=()=>{le.current?.delayHidden(),Y.current?.delayHidden()},Ae=C_(N,C,E,a),je=P_(P,N,E,a,C,Ae,()=>T(!0),ee,ke);$.useImperativeHandle(t,()=>({nativeElement:I.current,getScrollInfo:be,scrollTo:e=>{function t(e){return e&&typeof e==`object`&&(`left`in e||`top`in e)}t(e)?(e.left!==void 0&&B(Te(e.left)),je(e.top)):je(e)}})),Pe(()=>{_&&_(N.slice(re,ie+1),N)},[re,ie,N]);let Me=y?.({start:re,end:ie,virtual:A,offsetX:z,scrollTop:L,offsetY:ae,rtl:j,getSize:Ae}),Ne=__(N,re,ie,p,z,w,l,G),Fe=null;i&&(Fe={[o?`height`:`maxHeight`]:i,...z_},O&&(Fe.overflowY=`hidden`,p&&(Fe.overflowX=`hidden`),V&&(Fe.pointerEvents=`none`)));let Ie={};return j&&(Ie.dir=`rtl`),$.createElement(`div`,ld({ref:I,style:{...s,position:`relative`},className:M},Ie,S),$.createElement(jt,{onResize:ce},$.createElement(m,{className:`${n}-holder`,style:Fe,ref:P,onScroll:we,onMouseEnter:ke},$.createElement(h_,{prefixCls:n,height:ne,offsetX:z,offsetY:ae,scrollWidth:p,onInnerResize:T,ref:F,innerProps:v,rtl:j,extra:Me},Ne))),A&&ne>i&&$.createElement(F_,{ref:le,prefixCls:n,scrollOffset:L,scrollRange:ne,rtl:j,onScroll:Ce,onStartMove:U,onStopMove:W,spinSize:de,containerSize:oe.height,style:b?.verticalScrollBar,thumbStyle:b?.verticalScrollBarThumb,showScrollBar:x}),A&&p>oe.width&&$.createElement(F_,{ref:Y,prefixCls:n,scrollOffset:z,scrollRange:p,rtl:j,onScroll:Ce,onStartMove:U,onStopMove:W,spinSize:ue,containerSize:oe.width,horizontal:!0,style:b?.horizontalScrollBar,thumbStyle:b?.horizontalScrollBarThumb,showScrollBar:x}))}var V_=$.forwardRef(B_);V_.displayName=`List`;var H_=$.forwardRef((e,t)=>B_({...e,virtual:!1},t));H_.displayName=`List`;var U_=V_;function W_(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function G_(){return G_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G_.apply(this,arguments)}function K_(e){return typeof e==`string`||typeof e==`number`}var q_=$.forwardRef((e,t)=>{let{prefixCls:n,id:r,open:i,multiple:a,mode:o,searchValue:s,toggleOpen:c,notFoundContent:l,onPopupScroll:d,showScrollBar:p,lockOptions:m}=lg(),{maxCount:h,flattenOptions:g,onActiveValue:_,defaultActiveFirstOption:v,onSelect:y,menuItemSelectedIcon:b,rawValues:x,fieldNames:S,virtual:C,direction:w,listHeight:T,listItemHeight:E,optionRender:D,classNames:O,styles:k}=$.useContext(jg),A=`${n}-item`,j=Qe(()=>g,[i,m],(e,t)=>t[0]&&!t[1]),M=$.useRef(null),N=$.useMemo(()=>a&&_g(h)&&x?.size>=h,[a,h,x?.size]),P=e=>{e.preventDefault()},F=e=>{M.current?.scrollTo(typeof e==`number`?{index:e}:e)},I=$.useCallback(e=>o===`combobox`?!1:x.has(e),[o,[...x].toString(),x.size]),L=(e,t=1)=>{let n=j.length;for(let r=0;r<n;r+=1){let i=(e+r*t+n)%n,{group:a,data:o}=j[i]||{};if(!a&&!o?.disabled&&(I(o.value)||!N))return i}return-1},[R,z]=$.useState(()=>L(0)),B=(e,t=!1)=>{z(e);let n={source:t?`keyboard`:`mouse`},r=j[e];if(!r){_(null,-1,n);return}_(r.value,e,n)};(0,$.useEffect)(()=>{B(v===!1?-1:L(0))},[j.length,s]);let H=$.useCallback(e=>o===`combobox`?String(e).toLowerCase()===s.toLowerCase():x.has(e),[o,s,[...x].toString(),x.size]);(0,$.useEffect)(()=>{let e;if(!a&&i&&x.size===1){let t=Array.from(x)[0],n=j.findIndex(({data:e})=>s?String(e.value).startsWith(s):e.value===t);n!==-1&&(B(n),e=setTimeout(()=>{F(n)}))}return i&&M.current?.scrollTo(void 0),()=>clearTimeout(e)},[i,s]);let U=e=>{e!==void 0&&y(e,{selected:!x.has(e)}),a||c(!1)};if($.useImperativeHandle(t,()=>({onKeyDown:e=>{let{which:t,ctrlKey:n}=e;switch(t){case f.N:case f.P:case f.UP:case f.DOWN:{let e=0;if(t===f.UP?e=-1:t===f.DOWN?e=1:W_()&&n&&(t===f.N?e=1:t===f.P&&(e=-1)),e!==0){let t=L(R+e,e);F(t),B(t,!0)}break}case f.TAB:case f.ENTER:{let t=j[R];if(!t||t.data.disabled)return U(void 0);!N||x.has(t.value)?U(t.value):U(void 0),i&&e.preventDefault();break}case f.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:()=>{},scrollTo:e=>{F(e)}})),j.length===0)return $.createElement(`div`,{role:`listbox`,id:`${r}_list`,className:`${A}-empty`,onMouseDown:P},l);let W=Object.keys(S).map(e=>S[e]),G=e=>e.label;function ee(e,t){let{group:n}=e;return{role:n?`presentation`:`option`,id:`${r}_list_${t}`}}let K=e=>{let t=j[e];if(!t)return null;let n=t.data||{},{value:r,disabled:i}=n,{group:a}=t,o=V(n,!0),s=G(t);return t?$.createElement(`div`,G_({"aria-label":typeof s==`string`&&!a?s:null},o,{key:e},ee(t,e),{"aria-selected":H(r),"aria-disabled":i}),r):null},q={role:`listbox`,id:`${r}_list`};return $.createElement($.Fragment,null,C&&$.createElement(`div`,G_({},q,{style:{height:0,width:0,overflow:`hidden`}}),K(R-1),K(R),K(R+1)),$.createElement(U_,{itemKey:`key`,ref:M,data:j,height:T,itemHeight:E,fullHeight:!1,onMouseDown:P,onScroll:d,virtual:C,direction:w,innerProps:C?null:q,showScrollBar:p,className:O?.popup?.list,style:k?.popup?.list},(e,t)=>{let{group:n,groupOption:r,data:i,label:a,value:o}=e,{key:s}=i;if(n){let e=i.title??(K_(a)?a.toString():void 0);return $.createElement(`div`,{className:X(A,`${A}-group`,i.className),title:e},a===void 0?s:a)}let{disabled:c,title:l,children:d,style:f,className:p,...m}=i,h=u(m,W),g=I(o),_=c||!g&&N,v=`${A}-option`,y=X(A,v,p,O?.popup?.listItem,{[`${v}-grouped`]:r,[`${v}-active`]:R===t&&!_,[`${v}-disabled`]:_,[`${v}-selected`]:g}),x=G(e),S=!b||typeof b==`function`||g,w=typeof x==`number`?x:x||o,T=K_(w)?w.toString():void 0;return l!==void 0&&(T=l),$.createElement(`div`,G_({},V(h),C?{}:ee(e,t),{"aria-selected":C?void 0:H(o),"aria-disabled":_,className:y,title:T,onMouseMove:()=>{R===t||_||B(t)},onClick:()=>{_||U(o)},style:{...k?.popup?.listItem,...f}}),$.createElement(`div`,{className:`${v}-content`},typeof D==`function`?D(e,{index:t}):w),$.isValidElement(b)||g,S&&$.createElement($g,{className:`${A}-option-state`,customizeIcon:b,customizeIconProps:{value:o,disabled:_,isSelected:g}},g?`✓`:null))}))}),J_=((e,t)=>{let n=$.useRef({values:new Map,options:new Map});return[$.useMemo(()=>{let{values:r,options:i}=n.current,a=e.map(e=>e.label===void 0?{...e,label:r.get(e.value)?.label}:e),o=new Map,s=new Map;return a.forEach(e=>{o.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))}),n.current.values=o,n.current.options=s,a},[e,t]),$.useCallback(e=>t.get(e)||n.current.options.get(e),[t])]});function Y_(e,t){return Mg(e).join(``).toUpperCase().includes(t)}var X_=((e,t,n,r,i)=>$.useMemo(()=>{if(!n||r===!1)return e;let{options:a,label:o,value:s}=t,c=[],l=typeof r==`function`,u=n.toUpperCase(),d=l?r:(e,t)=>i&&i.length?i.some(e=>Y_(t[e],u)):t[a]?Y_(t[o===`children`?`label`:o],u):Y_(t[s],u),f=l?e=>bg(e):e=>e;return e.forEach(e=>{if(e[a]){if(d(n,f(e)))c.push(e);else{let t=e[a].filter(e=>d(n,f(e)));t.length&&c.push({...e,[a]:t})}return}d(n,f(e))&&c.push(e)}),c},[e,r,i,n,t]));function Z_(e){let{key:t,props:{children:n,value:r,...i}}=e;return{key:t,value:r===void 0?t:r,children:n,...i}}function Q_(e,t=!1){return Je(e).map((e,n)=>{if(!$.isValidElement(e)||!e.type)return null;let{type:{isSelectOptGroup:r},key:i,props:{children:a,...o}}=e;return t||!r?Z_(e):{key:`__RC_SELECT_GRP__${i===null?n:i}__`,label:i,...o,options:Q_(a)}}).filter(e=>e)}var $_=(e,t,n,r,i)=>$.useMemo(()=>{let a=e;e||(a=Q_(t));let o=new Map,s=new Map,c=(e,t,n)=>{n&&typeof n==`string`&&e.set(t[n],t)},l=(e,t=!1)=>{for(let a=0;a<e.length;a+=1){let u=e[a];!u[n.options]||t?(o.set(u[n.value],u),c(s,u,n.label),r.forEach(e=>{c(s,u,e)}),c(s,u,i)):l(u[n.options],!0)}};return l(a),{options:a,valueOptions:o,labelOptions:s}},[e,t,n,r,i]);function ev(e){let t=$.useRef();return t.current=e,$.useCallback((...e)=>t.current(...e),[])}function tv(e,t,n){let{filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c}=t;return $.useMemo(()=>{let t=typeof e==`object`,l={filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c,...t?e:{}};return[t||n===`combobox`||n===`tags`||n===`multiple`&&e===void 0?!0:e,l]},[n,e,r,i,a,o,s,c])}function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nv.apply(this,arguments)}var rv=[`inputValue`];function iv(e){return!e||typeof e!=`object`}var av=$.forwardRef((e,t)=>{let{id:n,mode:r,prefixCls:i=`rc-select`,backfill:a,fieldNames:o,showSearch:s,searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p,onSelect:m,onDeselect:h,onActive:g,popupMatchSelectWidth:_=!0,optionLabelProp:y,options:b,optionRender:x,children:S,defaultActiveFirstOption:C,menuItemSelectedIcon:w,virtual:T,direction:E,listHeight:D=200,listItemHeight:O=20,labelRender:k,value:A,defaultValue:j,labelInValue:M,onChange:N,maxCount:P,classNames:F,styles:I,...L}=e,[R,z]=tv(s,{searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p},r),{filterOption:B,searchValue:V,optionFilterProp:H,filterSort:U,onSearch:W,autoClearSearchValue:G=!0}=z,ee=$.useMemo(()=>H?Array.isArray(H)?H:[H]:[],[H]),K=te(n),q=d_(r),ne=!!(!b&&S),re=$.useMemo(()=>B===void 0&&r===`combobox`?!1:B,[B,r]),J=$.useMemo(()=>vg(o,ne),[JSON.stringify(o),ne]),[ie,ae]=v(``,V),oe=ie||``,se=$_(b,S,J,ee,y),{valueOptions:ce,labelOptions:le,options:Y}=se,ue=$.useCallback(e=>Mg(e).map(e=>{let t,n,r,i;iv(e)?t=e:(n=e.label,t=e.value);let a=ce.get(t);return a&&(n===void 0&&(n=a?.[y||J.label]),r=a?.disabled,i=a?.title),{label:n,value:t,key:t,disabled:r,title:i}}),[J,y,ce]),[de,fe]=v(j,A),[pe,me]=J_($.useMemo(()=>{let e=ue(q&&de===null?[]:de);return r===`combobox`&&Pg(e[0]?.value)?[]:e},[de,ue,r,q]),ce),X=$.useMemo(()=>{if(!r&&pe.length===1){let e=pe[0];if(e.value===null&&(e.label===null||e.label===void 0))return[]}return pe.map(e=>({...e,label:(typeof k==`function`?k(e):e.label)??e.value}))},[r,pe,k]),he=$.useMemo(()=>new Set(pe.map(e=>e.value)),[pe]);$.useEffect(()=>{if(r===`combobox`){let e=pe[0]?.value;ae(Ng(e)?String(e):``)}},[pe]);let ge=ev((e,t)=>{let n=t??e;return{[J.value]:e,[J.label]:n}}),_e=X_($.useMemo(()=>{if(r!==`tags`)return Y;let e=[...Y],t=e=>ce.has(e);return[...pe].sort((e,t)=>e.value<t.value?-1:1).forEach(n=>{let r=n.value;t(r)||e.push(ge(r,n.label))}),e},[ge,Y,ce,pe,r]),J,oe,re,ee),ve=$.useMemo(()=>{let e=e=>ee.length?ee.some(t=>e?.[t]===oe):e?.value===oe;return r!==`tags`||!oe||_e.some(t=>e(t))||_e.some(e=>e[J.value]===oe)?_e:[ge(oe),..._e]},[ge,ee,r,_e,oe,J]),ye=e=>[...e].sort((e,t)=>U(e,t,{searchValue:oe})).map(e=>Array.isArray(e.options)?{...e,options:e.options.length>0?ye(e.options):e.options}:e),be=$.useMemo(()=>U?ye(ve):ve,[ve,U,oe]),xe=$.useMemo(()=>yg(be,{fieldNames:J,childrenAsData:ne}),[be,J,ne]),Se=e=>{let t=ue(e);if(fe(t),N&&(t.length!==pe.length||t.some((e,t)=>pe[t]?.value!==e?.value))){let e=M?t.map(({label:e,value:t})=>({label:e,value:t})):t.map(e=>e.value),n=t.map(e=>bg(me(e.value)));N(q?e:e[0],q?n:n[0])}},[Ce,we]=$.useState(null),[Te,Ee]=$.useState(0),De=C===void 0?r!==`combobox`:C,Oe=$.useRef(),ke=$.useCallback((e,t,{source:n=`keyboard`}={})=>{Ee(t),a&&r===`combobox`&&e!==null&&n===`keyboard`&&we(String(e));let i=Promise.resolve().then(()=>{Oe.current===i&&g?.(e)});Oe.current=i},[a,r,g]),Ae=(e,t,n)=>{let r=()=>{let t=me(e);return[M?{label:t?.[J.label],value:e}:e,bg(t)]};if(t&&m){let[e,t]=r();m(e,t)}else if(!t&&h&&n!==`clear`){let[e,t]=r();h(e,t)}},je=ev((e,t)=>{let n,i=q?t.selected:!0;n=i?q?[...pe,e]:[e]:pe.filter(t=>t.value!==e),Se(n),Ae(e,i),r===`combobox`?we(``):(!d_||G)&&(ae(``),we(``))}),Me=(e,t)=>{Se(e);let{type:n,values:r}=t;(n===`remove`||n===`clear`)&&r.forEach(e=>{Ae(e.value,!1,n)})},Ne=(e,t)=>{if(ae(e),we(null),t.source===`submit`){let t=(e||``).trim();t&&(Se(Array.from(new Set([...he,t]))),Ae(t,!0),ae(``));return}t.source!==`blur`&&(r===`combobox`&&Se(e),W?.(e))},Pe=e=>{let t=e;r!==`tags`&&(t=e.map(e=>le.get(e)?.value).filter(e=>e!==void 0));let n=Array.from(new Set([...he,...t]));Se(n),n.forEach(e=>{Ae(e,!0)})},Fe=$.useMemo(()=>{let e=T!==!1&&_!==!1;return{...se,flattenOptions:xe,onActiveValue:ke,defaultActiveFirstOption:De,onSelect:je,menuItemSelectedIcon:w,rawValues:he,fieldNames:J,virtual:e,direction:E,listHeight:D,listItemHeight:O,childrenAsData:ne,maxCount:P,optionRender:x,classNames:F,styles:I}},[P,se,xe,ke,De,je,w,he,J,T,_,E,D,O,ne,x,F,I]);return $.createElement(jg.Provider,{value:Fe},$.createElement(f_,nv({},L,{id:K,prefixCls:i,ref:t,omitDomProps:rv,mode:r,classNames:F,styles:I,displayValues:X,onDisplayValuesChange:Me,maxCount:P,direction:E,showSearch:R,searchValue:oe,onSearch:Ne,autoClearSearchValue:G,onSearchSplit:Pe,popupMatchSelectWidth:_,OptionList:q_,emptyOptions:!xe.length,activeValue:Ce,activeDescendantId:`${K}_list_${Te}`})))});av.Option=m_,av.OptGroup=p_;var ov=av;function sv(e,t,n){return e===!1?null:e===!0?n:e&&e[t]!==void 0?e[t]:n}var cv=(e,t,n)=>X({[`${e}-status-success`]:t===`success`,[`${e}-status-warning`]:t===`warning`,[`${e}-status-error`]:t===`error`,[`${e}-status-validating`]:t===`validating`,[`${e}-has-feedback`]:n}),lv=(e,t)=>t||e,uv=()=>{let[,e]=cr(),[t]=ja(`Empty`),n=new pe(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return $.createElement(`svg`,{style:n,width:`184`,height:`152`,viewBox:`0 0 184 152`,xmlns:`http://www.w3.org/2000/svg`},$.createElement(`title`,null,t?.description||`Empty`),$.createElement(`g`,{fill:`none`,fillRule:`evenodd`},$.createElement(`g`,{transform:`translate(24 31.7)`},$.createElement(`ellipse`,{fillOpacity:`.8`,fill:`#F5F5F7`,cx:`67.8`,cy:`106.9`,rx:`67.8`,ry:`12.7`}),$.createElement(`path`,{fill:`#aeb8c2`,d:`M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z`}),$.createElement(`path`,{fill:`#f5f5f7`,d:`M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4`}),$.createElement(`path`,{fill:`#dce0e6`,d:`M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8`})),$.createElement(`path`,{fill:`#dce0e6`,d:`m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8`}),$.createElement(`g`,{fill:`#fff`,transform:`translate(149.7 15.4)`},$.createElement(`circle`,{cx:`20.7`,cy:`3.2`,r:`2.8`}),$.createElement(`path`,{d:`M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z`}))))},dv=()=>{let[,e]=cr(),[t]=ja(`Empty`),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:c}=(0,$.useMemo)(()=>({borderColor:new pe(n).onBackground(a).toHexString(),shadowColor:new pe(r).onBackground(a).toHexString(),contentColor:new pe(i).onBackground(a).toHexString()}),[n,r,i,a]);return $.createElement(`svg`,{width:`64`,height:`41`,viewBox:`0 0 64 41`,xmlns:`http://www.w3.org/2000/svg`},$.createElement(`title`,null,t?.description||`Empty`),$.createElement(`g`,{transform:`translate(0 1)`,fill:`none`,fillRule:`evenodd`},$.createElement(`ellipse`,{fill:s,cx:`32`,cy:`33`,rx:`32`,ry:`7`}),$.createElement(`g`,{fillRule:`nonzero`,stroke:o},$.createElement(`path`,{d:`M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z`}),$.createElement(`path`,{d:`M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3`,fill:c}))))},fv=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,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:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},pv=yr(`Empty`,e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return fv(wn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))}),mv=$.createElement(uv,null),hv=$.createElement(dv,null),gv=e=>{let{className:t,rootClassName:n,prefixCls:r,image:i,description:a,children:o,imageStyle:s,style:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f,direction:p,className:m,style:h,classNames:g,styles:_,image:v}=Wt(`empty`),y=f(`empty`,r),[b,x]=pv(y),[S,C]=zi([g,l],[_,u],{props:e}),[w]=ja(`Empty`),T=a===void 0?w?.description:a,E=typeof T==`string`?T:`empty`,D=i??v??mv,O=null;return O=typeof D==`string`?$.createElement(`img`,{draggable:!1,alt:E,src:D}):D,$.createElement(`div`,{className:X(b,x,y,m,{[`${y}-normal`]:D===hv,[`${y}-rtl`]:p===`rtl`},t,n,S.root),style:{...C.root,...h,...c},...d},$.createElement(`div`,{className:X(`${y}-image`,S.image),style:{...s,...C.image}},O),T&&$.createElement(`div`,{className:X(`${y}-description`,S.description),style:C.description},T),o&&$.createElement(`div`,{className:X(`${y}-footer`,S.footer),style:C.footer},o))};gv.PRESENTED_IMAGE_DEFAULT=mv,gv.PRESENTED_IMAGE_SIMPLE=hv;var _v=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,$.useContext)(Vt),r=n(`empty`);switch(t){case`Table`:case`List`:return $.createElement(gv,{image:gv.PRESENTED_IMAGE_SIMPLE});case`Select`:case`TreeSelect`:case`Cascader`:case`Transfer`:case`Mentions`:return $.createElement(gv,{image:gv.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case`Table.filter`:return null;default:return $.createElement(gv,null)}},vv=(e,t,n)=>{let{variant:r,[e]:i}=$.useContext(Vt),a=$.useContext(hm),o=i?.variant,s;s=t===void 0?n===!1?`borderless`:a??o??r??`outlined`:t;let c=Bt.includes(s);return[s,c]},yv=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e===`scroll`?`scroll`:`visible`,dynamicInset:!0};return{bottomLeft:{...t,points:[`tl`,`bl`],offset:[0,4]},bottomRight:{...t,points:[`tr`,`br`],offset:[0,4]},topLeft:{...t,points:[`bl`,`tl`],offset:[0,-4]},topRight:{...t,points:[`br`,`tr`],offset:[0,-4]}}};function bv(e,t){return e||yv(t)}var xv=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:`relative`,display:`block`,minHeight:t,padding:i,color:e.colorText,fontWeight:`normal`,fontSize:n,lineHeight:r,boxSizing:`border-box`}},Sv=e=>{let{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...ur(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,[`
80
+ ${i}${s}bottomLeft,
81
+ ${a}${s}bottomLeft
82
+ `]:{animationName:du},[`
83
+ ${i}${s}topLeft,
84
+ ${a}${s}topLeft,
85
+ ${i}${s}topRight,
86
+ ${a}${s}topRight
87
+ `]:{animationName:pu},[`${o}${s}bottomLeft`]:{animationName:fu},[`
88
+ ${o}${s}topLeft,
89
+ ${o}${s}topRight
90
+ `]:{animationName:mu},"&-hidden":{display:`none`},[r]:{...xv(e),cursor:`pointer`,transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:`default`},"&-option":{display:`flex`,"&-content":{flex:`auto`,...lr},"&-state":{flex:`none`,display:`flex`,alignItems:`center`},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:`not-allowed`},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...xv(e),color:e.colorTextDisabled}},[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:`rtl`}}},bu(e,`slide-up`),bu(e,`slide-down`),uu(e,`move-up`),uu(e,`move-down`)]},Cv=e=>{let{componentCls:t}=e;return{[`&${t}-customize`]:{border:0,padding:0,fontSize:`inherit`,lineHeight:`inherit`,[`${t}-placeholder`]:{display:`none`},[`${t}-content`]:{margin:0,padding:0,"&-value":{display:`none`}}}}},wv=4,Tv=e=>{let{componentCls:t,calc:n,iconCls:r,paddingXS:i,paddingXXS:a,INTERNAL_FIXED_ITEM_MARGIN:o,lineWidth:s,colorIcon:c,colorIconHover:l,inputPaddingHorizontalBase:u,antCls:d}=e,[f,p]=Sr(d,`select`);return{"&-multiple":{[f(`multi-item-background`)]:e.multipleItemBg,[f(`multi-item-border-color`)]:`transparent`,[f(`multi-item-border-radius`)]:e.borderRadiusSM,[f(`multi-item-height`)]:e.multipleItemHeight,[f(`multi-padding-base`)]:`calc((${p(`height`)} - ${p(`multi-item-height`)}) / 2)`,[f(`multi-padding-vertical`)]:`calc(${p(`multi-padding-base`)} - ${o} - ${s})`,[f(`multi-item-padding-horizontal`)]:`calc(${u} - ${p(`multi-padding-vertical`)} - ${s} * 2)`,paddingBlock:p(`multi-padding-vertical`),paddingInlineStart:`calc(${p(`multi-padding-base`)} - ${s})`,[`${t}-prefix`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:`absolute`,lineHeight:p(`line-height`),insetInlineStart:p(`multi-item-padding-horizontal`),width:`calc(100% - ${p(`multi-item-padding-horizontal`)})`,top:`50%`,transform:`translateY(-50%)`},[`${t}-content`]:{flexWrap:`wrap`,alignItems:`center`,lineHeight:1,"&-item-prefix":{height:p(`font-size`)},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${wv}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
91
+ ${t}-content-item-suffix:first-child`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-selection-item`]:{lineHeight:`calc(${p(`multi-item-height`)} - ${s} * 2)`,border:`${s} solid ${p(`multi-item-border-color`)}`,display:`flex`,marginBlock:o,marginInlineEnd:n(o).mul(2).equal(),background:p(`multi-item-background`),borderRadius:p(`multi-item-border-radius`),paddingInlineStart:i,paddingInlineEnd:a,transition:[`height`,`line-height`,`padding`].map(t=>`${t} ${e.motionDurationSlow}`).join(`,`),"&-content":{...lr,marginInlineEnd:a},"&-remove":{...dr(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${r}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}},[`${t}-input`]:{lineHeight:n(o).mul(2).add(p(`multi-item-height`)).equal(),width:`calc(var(--select-input-width, 0) * 1px)`,minWidth:wv,maxWidth:`100%`,transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[f(`multi-item-height`)]:e.multipleItemHeightSM,[f(`multi-item-border-radius`)]:e.borderRadiusXS},[`&${t}-lg`]:{[f(`multi-item-height`)]:e.multipleItemHeightLG,[f(`multi-item-border-radius`)]:e.borderRadius},[`&${t}-filled`]:{[f(`multi-item-border-color`)]:e.colorSplit,[f(`multi-item-background`)]:e.colorBgContainer,[`&${t}-disabled`]:{[f(`multi-item-border-color`)]:`transparent`}}}}},Ev=(e,t)=>{let{componentCls:n,antCls:r}=e,[i]=Sr(r,`select`),{border:a,borderHover:o,borderActive:s,borderOutline:c}=t,l=t.background||e.selectorBg||e.colorBgContainer;return{[i(`border-color`)]:a,[i(`background-color`)]:l,[i(`affix-color`)]:t.affixColor,[`&:not(${n}-disabled)`]:{"&:hover":{[i(`border-color`)]:o,[i(`background-color`)]:t.backgroundHover||l},[`&${n}-focused`]:{[i(`border-color`)]:s,[i(`background-color`)]:t.backgroundActive||l,boxShadow:`0 0 0 ${Q(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{[i(`border-color`)]:t.borderDisabled||t.border,[i(`background-color`)]:t.backgroundDisabled||t.background}}},Dv=(e,t,n,r={},i={},a)=>{let{componentCls:o}=e;return{[`&${o}-${t}`]:[Ev(e,n),{[`&${o}-status-error`]:Ev(e,{...n,...r}),[`&${o}-status-warning`]:Ev(e,{...n,...i})},a]}},Ov=e=>{let{componentCls:t,fontHeight:n,controlHeight:r,fontSizeIcon:i,showArrowPaddingInlineEnd:a,iconCls:o,antCls:s,max:c,calc:l}=e,[u,d]=Sr(s,`select`),f=c(l(a).sub(i).equal(),0);return{[t]:[{[u(`border-radius`)]:e.borderRadius,[u(`border-color`)]:`#000`,[u(`border-size`)]:e.lineWidth,[u(`background-color`)]:e.colorBgContainer,[u(`font-size`)]:e.fontSize,[u(`line-height`)]:e.lineHeight,[u(`font-height`)]:n,[u(`color`)]:e.colorText,[u(`affix-color`)]:e.colorText,[u(`height`)]:r,[u(`padding-horizontal`)]:l(e.paddingSM).sub(e.lineWidth).equal(),[u(`padding-vertical`)]:`calc((${d(`height`)} - ${d(`font-height`)}) / 2 - ${d(`border-size`)})`,...ur(e),display:`inline-flex`,flexWrap:`nowrap`,position:`relative`,transition:`all ${e.motionDurationSlow}`,alignItems:`flex-start`,outline:0,cursor:`pointer`,borderRadius:d(`border-radius`),borderWidth:d(`border-size`),borderStyle:e.lineType,borderColor:d(`border-color`),background:d(`background-color`),fontSize:d(`font-size`),lineHeight:d(`line-height`),color:d(`color`),paddingInline:d(`padding-horizontal`),paddingBlock:d(`padding-vertical`),[`${t}-prefix`]:{color:d(`affix-color`),flex:`none`,lineHeight:1},[`${t}-placeholder`]:{...lr,color:e.colorTextPlaceholder,pointerEvents:`none`,zIndex:1},[`${t}-content`]:{flex:`auto`,minWidth:0,position:`relative`,display:`flex`,marginInlineEnd:f,"&:before":{content:`"\\a0"`,width:0,overflow:`hidden`},"&-value":{visibility:`inherit`},"input[readonly]":{cursor:`inherit`,caretColor:`transparent`}},[`${t}-suffix`]:{flex:`none`,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:`center`,[o]:{verticalAlign:`top`}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:`not-allowed`,input:{cursor:`not-allowed`}},"&-sm":{[u(`height`)]:e.controlHeightSM,[u(`padding-horizontal`)]:l(e.paddingXS).sub(e.lineWidth).equal(),[u(`border-radius`)]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:d(`padding-horizontal`)}},"&-lg":{[u(`height`)]:e.controlHeightLG,[u(`font-size`)]:e.fontSizeLG,[u(`line-height`)]:e.lineHeightLG,[u(`font-height`)]:e.fontHeightLG,[u(`border-radius`)]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:`none`,background:`transparent`,appearance:`none`,border:0,margin:0,padding:0,color:d(`color`),fontFamily:`inherit`,fontSize:`inherit`,"&::-webkit-search-cancel-button":{display:`none`,appearance:`none`}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:`absolute`,inset:0,lineHeight:`inherit`},[`${t}-content`]:{...lr,alignSelf:`center`,"&-has-value":{display:`block`,"&:before":{display:`none`}},"&-has-search-value":{color:`transparent`,[`> :not(${t}-input)`]:{opacity:0}},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1}},[`&${t}-open ${t}-content`]:{color:e.colorTextPlaceholder,"&-has-search-value":{color:`transparent`}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:`text`}},Tv(e),Dv(e,`outlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline,affixColor:e.colorErrorAffix},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline,affixColor:e.colorWarningAffix}),Dv(e,`filled`,{border:`transparent`,borderHover:`transparent`,borderActive:e.activeBorderColor,borderOutline:`transparent`,borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{color:e.colorErrorText,background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),Dv(e,`borderless`,{border:`transparent`,borderHover:`transparent`,borderActive:`transparent`,borderOutline:`transparent`,background:`transparent`}),Dv(e,`underlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:`transparent`},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:`transparent`,borderInlineColor:`transparent`}),Cv(e)]}},kv=e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:l,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:_,colorPrimaryHover:v,colorPrimary:y,controlOutline:b}=e,x=s*2,S=r*2,C=Math.min(i-x,i-S),w=Math.min(a-x,a-S),T=Math.min(o-x,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:l+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:h,multipleItemBorderColor:`transparent`,multipleItemHeight:C,multipleItemHeightSM:w,multipleItemHeightLG:T,multipleSelectorBgDisabled:g,multipleItemColorDisabled:_,multipleItemBorderColorDisabled:`transparent`,showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:b,selectAffixPadding:s}},Av=e=>{let{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:i}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:`50%`}};return{[n]:{...ur(e),[`${n}-selection-item`]:{flex:1,fontWeight:`normal`,position:`relative`,userSelect:`none`,...lr,[`> ${t}-typography`]:{display:`inline`}},[`${n}-prefix`]:{flex:`none`,marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:`absolute`,top:`50%`,insetInlineStart:`auto`,insetInlineEnd:i,zIndex:1,display:`inline-block`,width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:`normal`,lineHeight:1,textAlign:`center`,textTransform:`none`,cursor:`pointer`,opacity:0,transition:[`color`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),textRendering:`auto`,transform:`translateZ(0)`,"&:before":{display:`block`},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},jv=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:`100%`}}},Av(e),Sv(e),{[`${t}-rtl`]:{direction:`rtl`}},Zd(e,{focusElCls:`${t}-focused`})]},Mv=yr(`Select`,(e,{rootPrefixCls:t})=>{let n=wn(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[jv(n),Ov(n)]},kv,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function Nv({suffixIcon:e,contextSuffixIcon:t,clearIcon:n,contextClearIcon:r,menuItemSelectedIcon:i,contextMenuItemSelectedIcon:a,removeIcon:o,contextRemoveIcon:s,loading:c,loadingIcon:l,contextLoadingIcon:u,searchIcon:d,contextSearchIcon:f,multiple:p,hasFeedback:m,showSuffixIcon:h,feedbackIcon:g,showArrow:v,componentName:y}){return $.useMemo(()=>{let y=qs(n,r,$.createElement(ie,null)),b=t=>e===null&&!m&&!v?null:$.createElement($.Fragment,null,h!==!1&&t,m&&g),x=null;x=e===void 0?c?b(qs(l,u,$.createElement(Ne,{spin:!0}))):({open:e,showSearch:n})=>b(e&&n?qs(d,f,$.createElement(W,null)):qs(t,$.createElement(q,null))):b(e);let S=qs(i,a,p?$.createElement(_,null):null),C=qs(o,s,$.createElement(ne,null));return{clearIcon:y,suffixIcon:x,itemIcon:S,removeIcon:C}},[e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,v])}function Pv(e){return $.useMemo(()=>{if(e)return(...t)=>$.createElement(gm,{space:!0},e.apply(void 0,t))},[e])}function Fv(e,t){return t===void 0?e!==null:t}var Iv=`SECRET_COMBOBOX_MODE_DO_NOT_USE`,Lv=$.forwardRef((e,t)=>{let{prefixCls:n,bordered:r,className:i,rootClassName:a,getPopupContainer:o,popupClassName:s,dropdownClassName:c,listHeight:l=256,placement:d,listItemHeight:f,size:p,disabled:m,notFoundContent:h,status:g,builtinPlacements:_,dropdownMatchSelectWidth:v,popupMatchSelectWidth:y,direction:b,style:x,allowClear:S,variant:C,popupStyle:w,dropdownStyle:T,transitionName:E,tagRender:D,maxCount:O,prefix:k,dropdownRender:A,popupRender:j,onDropdownVisibleChange:M,onOpenChange:N,styles:P,classNames:F,clearIcon:I,showSearch:L,...R}=e,{getPopupContainer:z,getPrefixCls:B,renderEmpty:V,direction:H,virtual:U,popupMatchSelectWidth:W,popupOverflow:G}=$.useContext(Vt),{showSearch:ee,allowClear:K,style:q,styles:te,className:ne,classNames:re,clearIcon:J,loadingIcon:ie,menuItemSelectedIcon:ae,removeIcon:oe,suffixIcon:se}=Wt(`select`),[,ce]=cr(),le=f??ce?.controlHeight,Y=B(`select`,n),ue=B(),de=b??H,{compactSize:fe,compactItemClassnames:pe}=Pl(Y,de),[me,he]=vv(`select`,C,r),ge=la(Y),[_e,ve]=Mv(Y,ge),ye=$.useMemo(()=>{let{mode:t}=e;if(t!==`combobox`)return t===Iv?`combobox`:t},[e.mode]),be=ye===`multiple`||ye===`tags`,xe=Fv(e.suffixIcon,e.showArrow),Se=y??v??W,Ce=Pv(j||A),we=N||M,{status:Te,hasFeedback:Ee,isFormItemInput:De,feedbackIcon:Oe}=$.useContext(pm),ke=lv(Te,g),Ae;Ae=h===void 0?ye===`combobox`?null:V?.(`Select`)||$.createElement(_v,{componentName:`Select`}):h;let{suffixIcon:je,itemIcon:Me,removeIcon:Ne,clearIcon:Pe}=Nv({...R,multiple:be,hasFeedback:Ee,feedbackIcon:Oe,showSuffixIcon:xe,prefixCls:Y,componentName:`Select`,clearIcon:I,searchIcon:sv(L,`searchIcon`),contextClearIcon:J,contextLoadingIcon:ie,contextMenuItemSelectedIcon:ae,contextRemoveIcon:oe,contextSearchIcon:sv(ee,`searchIcon`),contextSuffixIcon:se}),Fe=S??K,Ie=Fe===!0?{clearIcon:Pe}:Fe,Le=L??ee,Re=u(R,[`suffixIcon`,`itemIcon`]),ze=jl(e=>p??fe??e),Be=$.useContext(Vo),Ve=m??Be,He={...e,variant:me,status:ke,disabled:Ve,size:ze},[Ue,We]=zi([re,F],[te,P],{props:He},{popup:{_default:`root`}}),Ge=X(Ue.popup.root,s,c,{[`${Y}-dropdown-${de}`]:de===`rtl`},a,ve,ge,_e),Ke={...We.popup?.root,...w??T},qe=X({[`${Y}-lg`]:ze===`large`,[`${Y}-sm`]:ze===`small`,[`${Y}-rtl`]:de===`rtl`,[`${Y}-${me}`]:he,[`${Y}-in-form-item`]:De},cv(Y,ke,Ee),pe,ne,i,Ue.root,a,ve,ge,_e),Je=$.useMemo(()=>d===void 0?de===`rtl`?`bottomRight`:`bottomLeft`:d,[d,de]),[Ye]=vc(`SelectLike`,We.popup.root?.zIndex??Ke.zIndex);return $.createElement(ov,{ref:t,virtual:U,classNames:Ue,styles:We,showSearch:Le,...Re,style:{...We.root,...q,...x},popupMatchSelectWidth:Se,transitionName:bl(ue,`slide-up`,E),builtinPlacements:bv(_,G),listHeight:l,listItemHeight:le,mode:ye,prefixCls:Y,placement:Je,direction:de,prefix:k,suffixIcon:je,menuItemSelectedIcon:Me,removeIcon:Ne,allowClear:Ie,notFoundContent:Ae,className:qe,getPopupContainer:o||z,popupClassName:Ge,disabled:Ve,popupStyle:{...We.popup.root,...Ke,zIndex:Ye},maxCount:be?O:void 0,tagRender:be?D:void 0,popupRender:Ce,onPopupVisibleChange:we})}),Rv=og(Lv,`popupAlign`);Lv.SECRET_COMBOBOX_MODE_DO_NOT_USE=Iv,Lv.Option=m_,Lv.OptGroup=p_,Lv._InternalPanelDoNotUseOrYouWillBeFired=Rv;var{Option:zv}=Lv;function Bv(e){return e?.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}var Vv=$.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,popupClassName:a,dropdownClassName:o,children:s,dataSource:c,rootClassName:l,dropdownStyle:d,dropdownRender:f,popupRender:p,onDropdownVisibleChange:m,onOpenChange:h,styles:g,classNames:_,popupMatchSelectWidth:v,dropdownMatchSelectWidth:y}=e,b=Je(s),x=p||f,S=h||m,C=v??y,w;b.length===1&&$.isValidElement(b[0])&&!Bv(b[0])&&([w]=b);let T=w?()=>w:void 0,E;E=b.length&&Bv(b[0])?s:c?c.map(e=>{if($.isValidElement(e))return e;switch(typeof e){case`string`:return $.createElement(zv,{key:e,value:e},e);case`object`:{let{value:t}=e;return $.createElement(zv,{key:t,value:t},e.text)}default:return}}):[];let{getPrefixCls:D}=$.useContext(Vt),O=D(`select`,n),k={...e,popupRender:x,onOpenChange:S,popupMatchSelectWidth:C},[A,j]=zi([_],[g],{props:k},{popup:{_default:`root`}}),M=$.useMemo(()=>({root:X(`${O}-auto-complete`,r,l,A.root,{[`${O}-customize`]:w}),prefix:A.prefix,input:A.input,placeholder:A.placeholder,content:A.content,popup:{root:X(a,o,A.popup.root),list:A.popup.list,listItem:A.popup.listItem}}),[O,r,l,A,a,o]),N=$.useMemo(()=>({root:{...j.root,...i},input:j.input,prefix:j.prefix,placeholder:j.placeholder,content:j.content,popup:{root:{...d,...j.popup.root},list:j.popup.list,listItem:j.popup.listItem}}),[j,i,d]);return $.createElement(Lv,{ref:t,suffixIcon:null,...u(e,[`dataSource`,`dropdownClassName`,`popupClassName`]),prefixCls:O,classNames:M,styles:N,mode:Lv.SECRET_COMBOBOX_MODE_DO_NOT_USE,popupRender:x,onPopupVisibleChange:S,popupMatchSelectWidth:C,getInputElement:T},E)}),{Option:Hv}=Lv,Uv=og(Vv,`popupAlign`,e=>u(e,[`visible`])),Wv=Vv;Wv.Option=Hv,Wv._InternalPanelDoNotUseOrYouWillBeFired=Uv;var Gv=[`xxxl`,`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],Kv=[].concat(Gv).reverse(),qv=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),Jv=e=>{let t=e,n=[].concat(Gv).reverse();return n.forEach((e,r)=>{let i=e.toUpperCase(),a=`screen${i}Min`,o=`screen${i}`;if(!(t[a]<=t[o]))throw Error(`${a}<=${o} fails : !(${t[a]}<=${t[o]})`);if(r<n.length-1){let e=`screen${i}Max`;if(!(t[o]<=t[e]))throw Error(`${o}<=${e} fails : !(${t[o]}<=${t[e]})`);let a=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[a]))throw Error(`${e}<=${a} fails : !(${t[e]}<=${t[a]})`)}}),e},Yv=(e,t)=>{if(t){for(let n of Gv)if(e[n]&&t?.[n]!==void 0)return t[n]}},Xv=()=>{let[,e]=cr(),t=qv(Jv(e));return $.useMemo(()=>{let e=new Map,n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return 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()},register(){Object.entries(t).forEach(([e,t])=>{let n=({matches:t})=>{this.dispatch({...r,[e]:t})},i=window.matchMedia(t);ki(i.addEventListener)&&i.addEventListener(`change`,n),this.matchHandlers[t]={mql:i,listener:n},n(i)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];ki(t?.mql.removeEventListener)&&t.mql.removeEventListener(`change`,t?.listener)}),e.clear()}}},[t])};function Zv(e=!0,t={}){let n=(0,$.useRef)(t),[,r]=nc(),i=Xv();return Pe(()=>{let t=i.subscribe(t=>{n.current=t,e&&r()});return()=>i.unsubscribe(t)},[]),n.current}var Qv=$.createContext({}),$v=e=>{let{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:a,containerSize:o,containerSizeLG:s,containerSizeSM:c,textFontSize:l,textFontSizeLG:u,textFontSizeSM:d,iconFontSize:f,iconFontSizeLG:p,iconFontSizeSM:m,borderRadius:h,borderRadiusLG:g,borderRadiusSM:_,lineWidth:v,lineType:y}=e,b=(e,t,i,a)=>({width:e,height:e,borderRadius:`50%`,fontSize:t,[`&${n}-square`]:{borderRadius:a},[`&${n}-icon`]:{fontSize:i,[`> ${r}`]:{margin:0}}});return{[n]:{...ur(e),position:`relative`,display:`inline-flex`,justifyContent:`center`,alignItems:`center`,overflow:`hidden`,color:a,whiteSpace:`nowrap`,textAlign:`center`,verticalAlign:`middle`,background:i,border:`${Q(v)} ${y} transparent`,"&-image":{background:`transparent`},[`${t}-image-img`]:{display:`block`},...b(o,l,f,h),"&-lg":{...b(s,u,p,g)},"&-sm":{...b(c,d,m,_)},"> img":{display:`block`,width:`100%`,height:`100%`,objectFit:`cover`}}}},ey=e=>{let{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:`inline-flex`,[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},ty=yr(`Avatar`,e=>{let{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=wn(e,{avatarBg:n,avatarColor:t});return[$v(r),ey(r)]},e=>{let{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:a,fontSizeXL:o,fontSizeHeading3:s,marginXS:c,marginXXS:l,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:i,textFontSizeLG:i,textFontSizeSM:i,iconFontSize:Math.round((a+o)/2),iconFontSizeLG:s,iconFontSizeSM:i,groupSpace:l,groupOverlapping:-c,groupBorderColor:u}}),ny=$.forwardRef((e,t)=>{let{prefixCls:n,shape:r,size:i,src:a,srcSet:o,icon:s,className:c,rootClassName:l,style:u,alt:d,draggable:f,children:p,crossOrigin:m,gap:h=4,onError:g,..._}=e,[v,y]=$.useState(1),[b,x]=$.useState(!1),[C,w]=$.useState(!0),T=$.useRef(null),E=$.useRef(null),D=S(t,T),{getPrefixCls:O,className:k,style:A}=Wt(`avatar`),j=$.useContext(Qv),M=()=>{if(!E.current||!T.current)return;let e=E.current.offsetWidth,t=T.current.offsetWidth;e!==0&&t!==0&&h*2<t&&y(t-h*2<e?(t-h*2)/e:1)};$.useEffect(()=>{x(!0)},[]),$.useEffect(()=>{w(!0),y(1)},[a]),$.useEffect(M,[h]);let N=()=>{g?.()!==!1&&w(!1)},P=jl(e=>i??j?.size??e??`medium`),F=Zv(Object.keys(Oi(P)&&P||{}).some(e=>Gv.includes(e))),I=$.useMemo(()=>{if(!Oi(P))return{};let e=P[Gv.find(e=>F[e])];return e?{width:e,height:e,fontSize:e&&(s||p)?e/2:18}:{}},[F,P,s,p]),L=O(`avatar`,n),R=la(L),[z,B]=ty(L,R),V=X({[`${L}-lg`]:P===`large`,[`${L}-sm`]:P===`small`}),H=$.isValidElement(a),U=X(L,V,k,`${L}-${r||j?.shape||`circle`}`,{[`${L}-image`]:H||a&&C,[`${L}-icon`]:!!s},B,R,c,l,z),W=Ei(P)?{width:P,height:P,fontSize:s?P/2:18}:{},G;if(typeof a==`string`&&C)G=$.createElement(`img`,{src:a,draggable:f,srcSet:o,onError:N,alt:d,crossOrigin:m});else if(H)G=a;else if(s)G=s;else if(b||v!==1){let e=`scale(${v})`,t={msTransform:e,WebkitTransform:e,transform:e};G=$.createElement(jt,{onResize:M},$.createElement(`span`,{className:`${L}-string`,ref:E,style:t},p))}else G=$.createElement(`span`,{className:`${L}-string`,style:{opacity:0},ref:E},p);return $.createElement(`span`,{..._,style:{...W,...I,...A,...u},className:U,ref:D},G)}),ry=e=>e?ki(e)?e():e:null,iy=e=>{let{children:t,prefixCls:n,id:r,classNames:i,styles:a,className:o,style:s}=e;return $.createElement(`div`,{id:r,className:X(`${n}-container`,i?.container,o),style:{...a?.container,...s},role:`tooltip`},typeof t==`function`?t():t)},ay={shiftX:64,adjustY:1},oy={adjustX:1,shiftY:!0},sy=[0,0],cy={left:{points:[`cr`,`cl`],overflow:oy,offset:[-4,0],targetOffset:sy},right:{points:[`cl`,`cr`],overflow:oy,offset:[4,0],targetOffset:sy},top:{points:[`bc`,`tc`],overflow:ay,offset:[0,-4],targetOffset:sy},bottom:{points:[`tc`,`bc`],overflow:ay,offset:[0,4],targetOffset:sy},topLeft:{points:[`bl`,`tl`],overflow:ay,offset:[0,-4],targetOffset:sy},leftTop:{points:[`tr`,`tl`],overflow:oy,offset:[-4,0],targetOffset:sy},topRight:{points:[`br`,`tr`],overflow:ay,offset:[0,-4],targetOffset:sy},rightTop:{points:[`tl`,`tr`],overflow:oy,offset:[4,0],targetOffset:sy},bottomRight:{points:[`tr`,`br`],overflow:ay,offset:[0,4],targetOffset:sy},rightBottom:{points:[`bl`,`br`],overflow:oy,offset:[4,0],targetOffset:sy},bottomLeft:{points:[`tl`,`bl`],overflow:ay,offset:[0,4],targetOffset:sy},leftBottom:{points:[`br`,`bl`],overflow:oy,offset:[-4,0],targetOffset:sy}};function ly(){return ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ly.apply(this,arguments)}var uy=$.forwardRef((e,t)=>{let{trigger:n=[`hover`],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:a=`rc-tooltip`,children:o,onVisibleChange:s,afterVisibleChange:c,motion:l,placement:u=`right`,align:d={},destroyOnHidden:f=!1,defaultVisible:p,getTooltipContainer:m,arrowContent:h,overlay:g,id:_,showArrow:v=!0,classNames:y,styles:b,...x}=e,S=te(_),C=(0,$.useRef)(null);(0,$.useImperativeHandle)(t,()=>C.current);let w={...x};`visible`in e&&(w.popupVisible=e.visible);let T=$.useMemo(()=>{if(!v)return!1;let e=v===!0?{}:v;return{...e,className:X(e.className,y?.arrow),style:{...e.style,...b?.arrow},content:e.content??h}},[v,y?.arrow,b?.arrow,h]);return $.createElement(No,ly({popupClassName:y?.root,prefixCls:a,popup:$.createElement(iy,{key:`content`,prefixCls:a,id:S,classNames:y,styles:b},g),action:n,builtinPlacements:cy,popupPlacement:u,ref:C,popupAlign:d,getPopupContainer:m,onOpenChange:s,afterOpenChange:c,popupMotion:l,defaultPopupVisible:p,autoDestroy:f,mouseLeaveDelay:i,popupStyle:b?.root,mouseEnterDelay:r,arrow:T,uniqueContainerClassName:y?.uniqueContainer,uniqueContainerStyle:b?.uniqueContainer},w),({open:e})=>{let t=$.Children.only(o),n={"aria-describedby":g&&e?S:void 0};return $.cloneElement(t,n)})});function dy(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=i,o=r*1/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-1/Math.sqrt(2)*n,l=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,u=2*i-c,d=l,f=2*i-o,p=s,m=2*i-0,h=a,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),v=`polygon(${_}px 100%, 50% ${_}px, ${2*i-_}px 100%, ${_}px 100%)`;return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${r} ${r} 0 0 0 ${o} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${h} Z')`,arrowPolygon:v}}var fy=(e,t,n)=>{let{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,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:[i,a]},content:`""`},"&::after":{content:`""`,position:`absolute`,width:o,height:o,bottom:0,insetInline:0,margin:`auto`,borderRadius:{_skip_check_:!0,value:`0 0 ${Q(s)} 0`},transform:`translateY(50%) rotate(-135deg)`,boxShadow:n,zIndex:0,background:`transparent`}}};function py(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function my(e,t){return e?t:{}}var hy=(e,t,n)=>{let{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o,antCls:s}=e,[c]=Sr(s,`tooltip`),{arrowDistance:l=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:{[`${r}-arrow`]:[{position:`absolute`,zIndex:1,display:`block`,...fy(e,t,i),"&:before":{background:t}}],...my(!!u.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":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{[c(`arrow-offset-x`)]:`calc(100% - ${Q(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}}),...my(!!u.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":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{[c(`arrow-offset-x`)]:`calc(100% - ${Q(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}}),...my(!!u.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:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}}),...my(!!u.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:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}})}}};function gy(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};let i=Oi(r)?r:{},a={};switch(e){case`top`:case`bottom`:a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case`left`:case`right`:a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}let o={...a,...i};return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}var _y={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`]}},vy={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`]}},yy=new Set([`topLeft`,`topRight`,`bottomLeft`,`bottomRight`,`leftTop`,`leftBottom`,`rightTop`,`rightBottom`]);function by(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,c={},l=py({contentRadius:a,limitVerticalRadius:!0});return Object.keys(_y).forEach(e=>{let a={...r&&vy[e]||_y[e],offset:[0,0],dynamicInset:!0};switch(c[e]=a,yy.has(e)&&(a.autoArrow=!1),e){case`top`:case`topLeft`:case`topRight`:a.offset[1]=-s-i;break;case`bottom`:case`bottomLeft`:case`bottomRight`:a.offset[1]=s+i;break;case`left`:case`leftTop`:case`leftBottom`:a.offset[0]=-s-i;break;case`right`:case`rightTop`:case`rightBottom`:a.offset[0]=s+i;break}if(r)switch(e){case`topLeft`:case`bottomLeft`:a.offset[0]=-l.arrowOffsetHorizontal-s;break;case`topRight`:case`bottomRight`:a.offset[0]=l.arrowOffsetHorizontal+s;break;case`leftTop`:case`rightTop`:a.offset[1]=-l.arrowOffsetHorizontal*2+s;break;case`leftBottom`:case`rightBottom`:a.offset[1]=l.arrowOffsetHorizontal*2-s;break}a.overflow=gy(e,l,t,n),o&&(a.htmlRegion=`visibleFirst`)}),c}var xy=$.createContext(!1),Sy=(e,t)=>{let n=e=>typeof e==`boolean`?{show:e}:e||{};return $.useMemo(()=>{let r=n(e),i=n(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},Cy=`50%`,wy=e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:c,boxShadowSecondary:l,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p,antCls:m}=e,[h,g]=Sr(m,`tooltip`),_=t(o).add(p).add(f).equal(),v={minWidth:t(o).mul(2).add(p).equal(),minHeight:c,padding:`${Q(e.calc(u).div(2).equal())} ${Q(d)}`,color:g(`overlay-color`,i),textAlign:`start`,textDecoration:`none`,wordWrap:`break-word`,backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:`border-box`},y={[h(`valid-offset-x`)]:g(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[g(`valid-offset-x`,Cy),`var(--arrow-y, ${Cy})`].join(` `)};return[{[n]:{...ur(e),position:`absolute`,zIndex:s,display:`block`,width:`max-content`,maxWidth:r,visibility:`visible`,...y,"&-hidden":{display:`none`},[h(`arrow-background-color`)]:a,[`${n}-container`]:[v,nu(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:`none`,background:`transparent`,boxShadow:`none`}},[[`&-placement-topLeft`,`&-placement-topRight`,`&-placement-bottomLeft`,`&-placement-bottomRight`].join(`,`)]:{minWidth:_},[[`&-placement-left`,`&-placement-leftTop`,`&-placement-leftBottom`,`&-placement-right`,`&-placement-rightTop`,`&-placement-rightBottom`].join(`,`)]:{[`${n}-inner`]:{borderRadius:e.min(o,8)}},[`${n}-content`]:{position:`relative`},...Cr(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{[h(`arrow-background-color`)]:t}}})),"&-rtl":{direction:`rtl`}}},hy(e,g(`arrow-background-color`)),{[`${n}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...v,...y,position:`absolute`,zIndex:t(s).sub(1).equal(),"&-hidden":{display:`none`},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},Ty=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...py({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...dy(wn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),Ey=(e,t,n=!0)=>yr(`Tooltip`,e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r,maxWidth:i}=e;return[wy(wn(e,{tooltipMaxWidth:i,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),Fu(e,`zoom-big-fast`)]},Ty,{resetStyle:!1,injectStyle:n})(e,t),Dy=Fn.map(e=>`${e}-inverse`),Oy=[`success`,`processing`,`error`,`default`,`warning`];function ky(e,t=!0){return t?[].concat(Lt(Dy),Lt(Fn)).includes(e):Fn.includes(e)}function Ay(e){return Oy.includes(e)}var jy=(e,t,n)=>{let r=ky(n),[i]=Sr(e,`tooltip`),a=X({[`${t}-${n}`]:n&&r}),o={},s={},c=kd(n).toRgb(),l=(.299*c.r+.587*c.g+.114*c.b)/255<.5?`#FFF`:`#000`;return n&&!r&&(o.background=n,o[i(`overlay-color`)]=l,s[i(`arrow-background-color`)]=n),{className:a,overlayStyle:o,arrowStyle:s}},My=e=>{let{prefixCls:t,className:n,placement:r=`top`,title:i,color:a,overlayInnerStyle:o,classNames:s,styles:c}=e,{getPrefixCls:l}=$.useContext(Vt),u=l(`tooltip`,t),d=l(),f=la(u),[p,m]=Ey(u,f),h=jy(d,u,a),g=h.arrowStyle,_=$.useMemo(()=>({container:{...o,...h.overlayStyle}}),[o,h.overlayStyle]),v={...e,placement:r},[y,b]=zi([s],[_,c],{props:v}),x=X(f,p,m,u,`${u}-pure`,`${u}-placement-${r}`,n,h.className);return $.createElement(`div`,{className:x,style:g},$.createElement(`div`,{className:`${u}-arrow`}),$.createElement(iy,{...e,className:p,prefixCls:u,classNames:y,styles:b},i))},Ny=$.forwardRef((e,t)=>{let{prefixCls:n,openClassName:r,getTooltipContainer:i,color:a,children:o,afterOpenChange:s,arrow:c,destroyTooltipOnHide:l,destroyOnHidden:u,title:d,overlay:f,trigger:p,builtinPlacements:m,autoAdjustOverflow:h=!0,motion:g,getPopupContainer:_,placement:y=`top`,mouseEnterDelay:b=.1,mouseLeaveDelay:x=.1,rootClassName:S,styles:C,classNames:w,onOpenChange:T,overlayInnerStyle:E,overlayStyle:D,overlayClassName:O,...k}=e,[,A]=cr(),j=e[`data-popover-inject`],{getPopupContainer:M,getPrefixCls:N,direction:P,...F}=Wt(`tooltip`),{className:I,style:L,classNames:R,styles:z,arrow:B,trigger:V}=j?{}:F,H=Sy(c,B),U=H.show,W=p||V||`hover`,G=_||M,ee=u??!!l,K=$.useContext(xy);gt(`Tooltip`);let q=$.useRef(null),te=()=>{q.current?.forceAlign()};$.useImperativeHandle(t,()=>({forceAlign:te,nativeElement:q.current?.nativeElement,popupElement:q.current?.popupElement}));let[ne,re]=v(e.defaultOpen??!1,e.open),J=!d&&!f&&d!==0,ie=e=>{re(J?!1:e),!J&&T&&T(e)},ae=$.useMemo(()=>m||by({arrowPointAtCenter:H?.pointAtCenter??!1,autoAdjustOverflow:h,arrowWidth:U?A.sizePopupArrow:0,borderRadius:A.borderRadius,offset:A.marginXXS,visibleFirst:!0}),[H,m,A,U,h]),oe=$.useMemo(()=>d===0?d:f||d||``,[f,d]),se=$.createElement(gm,{space:!0,form:!0},ki(oe)?oe():oe),ce={...e,trigger:W,builtinPlacements:ae,getPopupContainer:G,destroyOnHidden:ee},[le,Y]=zi([R,w],[z,C],{props:ce}),ue=N(`tooltip`,n),de=N(),fe=ne;(!(`open`in e)&&J||K)&&(fe=!1);let pe=$.isValidElement(o)&&!Po(o)?o:$.createElement(`span`,null,o),me=pe.props,he=!me.className||typeof me.className==`string`?X(me.className,r||`${ue}-open`):me.className,ge=la(ue),[_e,ve]=Ey(ue,ge,!j),ye=jy(de,ue,a),be=ye.arrowStyle,xe=X(ge,_e,ve),Se=X(O,{[`${ue}-rtl`]:P===`rtl`},ye.className,S,xe,I,le.root),[Ce,we]=vc(`Tooltip`,k.zIndex),Te={...Y.container,...E,...ye.overlayStyle},Ee=$.createElement(uy,{unique:!0,...k,zIndex:Ce,showArrow:U,placement:y,mouseEnterDelay:b,mouseLeaveDelay:x,prefixCls:ue,classNames:{root:Se,container:le.container,arrow:le.arrow,uniqueContainer:X(xe,le.container)},styles:{root:{...be,...Y.root,...L,...D},container:Te,uniqueContainer:Te,arrow:Y.arrow},ref:q,overlay:se,visible:fe,onVisibleChange:ie,afterVisibleChange:s,arrowContent:$.createElement(`span`,{className:`${ue}-arrow-content`}),motion:{motionName:bl(de,`zoom-big-fast`,typeof g?.motionName==`string`?g?.motionName:void 0),motionDeadline:1e3},trigger:W,builtinPlacements:ae,getTooltipContainer:G,destroyOnHidden:ee},fe?Io(pe,{className:he}):pe);return $.createElement(fc.Provider,{value:we},Ee)});Ny._InternalPanelDoNotUseOrYouWillBeFired=My,Ny.UniqueProvider=Bo;var Py=`50%`,Fy=e=>{let{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:l,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:h,antCls:g}=e,[_,v]=Sr(g,`tooltip`);return[{[t]:{...ur(e),position:`absolute`,top:0,left:{_skip_check_:!0,value:0},zIndex:l,fontWeight:`normal`,whiteSpace:`normal`,textAlign:`start`,cursor:`auto`,userSelect:`text`,[_(`valid-offset-x`)]:v(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[v(`valid-offset-x`,Py),`var(--arrow-y, ${Py})`].join(` `),[_(`arrow-background-color`)]:d,width:`max-content`,maxWidth:`100vw`,"&-rtl":{direction:`rtl`},"&-hidden":{display:`none`},[`${t}-content`]:{position:`relative`},[`${t}-container`]:{backgroundColor:f,backgroundClip:`padding-box`,borderRadius:c,boxShadow:o,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:p,padding:h},[`${t}-content`]:{color:n,padding:m}}},hy(e,v(`arrow-background-color`)),{[`${t}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow,display:`inline-block`}}]},Iy=e=>{let{componentCls:t,antCls:n}=e,[r]=Sr(n,`tooltip`);return{[t]:Fn.map(n=>{let i=e[`${n}6`];return{[`&${t}-${n}`]:{[r(`arrow-background-color`)]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:`transparent`}}}})}},Ly=yr(`Popover`,e=>{let{colorBgElevated:t,colorText:n}=e,r=wn(e,{popoverBg:t,popoverColor:n});return[Fy(r),Iy(r),Fu(r,`zoom-big`)]},e=>{let{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:c,lineType:l,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,h=i;return{titleMinWidth:177,zIndexPopup:o+30,...dy(e),...py({contentRadius:s,limitVerticalRadius:!0}),innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${p}px ${h}px ${m}px`:0,titleBorderBottom:a?`${t}px ${l} ${u}`:`none`,innerContentPadding:a?`${d}px ${h}px`:0}},{resetStyle:!1,deprecatedTokens:[[`width`,`titleMinWidth`],[`minWidth`,`titleMinWidth`]]}),Ry=e=>{let{title:t,content:n,prefixCls:r,classNames:i,styles:a}=e;return!t&&!n?null:$.createElement($.Fragment,null,t&&$.createElement(`div`,{className:X(`${r}-title`,i?.title),style:a?.title},t),n&&$.createElement(`div`,{className:X(`${r}-content`,i?.content),style:a?.content},n))},zy=e=>{let{hashId:t,prefixCls:n,className:r,style:i,placement:a=`top`,title:o,content:s,children:c,classNames:l,styles:u}=e,d=ry(o),f=ry(s),p={...e,placement:a},[m,h]=zi([l],[u],{props:p}),g=X(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return $.createElement(`div`,{className:g,style:i},$.createElement(`div`,{className:`${n}-arrow`}),$.createElement(iy,{...e,className:t,prefixCls:n,classNames:m,styles:h},c||$.createElement(Ry,{prefixCls:n,title:d,content:f,classNames:m,styles:h})))},By=e=>{let{prefixCls:t,className:n,...r}=e,{getPrefixCls:i}=$.useContext(Vt),a=i(`popover`,t),[o,s]=Ly(a);return $.createElement(zy,{...r,prefixCls:a,hashId:o,className:X(n,s)})},Vy=$.forwardRef((e,t)=>{let{prefixCls:n,title:r,content:i,overlayClassName:a,placement:o=`top`,trigger:s,children:c,mouseEnterDelay:l=.1,mouseLeaveDelay:u=.1,onOpenChange:d,overlayStyle:f={},styles:p,classNames:m,motion:h,arrow:g,..._}=e,{getPrefixCls:y,className:b,style:x,classNames:S,styles:C,arrow:w,trigger:T}=Wt(`popover`),E=y(`popover`,n),[D,O]=Ly(E),k=y(),A=Sy(g,w),j=s||T||`hover`,M={...e,placement:o,trigger:j,mouseEnterDelay:l,mouseLeaveDelay:u,overlayStyle:f,styles:p,classNames:m},[N,P]=zi([S,m],[C,p],{props:M}),F=X(a,D,O,b,N.root),[I,L]=v(e.defaultOpen??!1,e.open),R=e=>{L(e),d?.(e)},z=ry(r),B=ry(i);return $.createElement(Ny,{unique:!1,arrow:A,placement:o,trigger:j,mouseEnterDelay:l,mouseLeaveDelay:u,..._,prefixCls:E,classNames:{root:F,container:N.container,arrow:N.arrow},styles:{root:{...P.root,...x,...f},container:P.container,arrow:P.arrow},ref:t,open:I,onOpenChange:R,overlay:z||B?$.createElement(Ry,{prefixCls:E,title:z,content:B,classNames:N,styles:P}):null,motion:{motionName:bl(k,`zoom-big`,typeof h?.motionName==`string`?h?.motionName:void 0)},"data-popover-inject":!0},c)});Vy._InternalPanelDoNotUseOrYouWillBeFired=By;var Hy=e=>{let{size:t,shape:n}=$.useContext(Qv),r=$.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return $.createElement(Qv.Provider,{value:r},e.children)},Uy=e=>{let{getPrefixCls:t,direction:n}=$.useContext(Vt),{prefixCls:r,className:i,rootClassName:a,style:o,maxCount:s,maxStyle:c,size:l,shape:u,maxPopoverPlacement:d,maxPopoverTrigger:f,children:p,max:m}=e,h=t(`avatar`,r),g=`${h}-group`,_=la(h),[v,y]=ty(h,_),b=X(g,{[`${g}-rtl`]:n===`rtl`},y,_,i,a,v),x=Je(p).map((e,t)=>Io(e,{key:`avatar-key-${t}`})),S=m?.count||s,C=x.length;if(S&&S<C){let e=x.slice(0,S),t=x.slice(S,C),n=m?.style||c,r=m?.popover?.trigger||f||`hover`,i=m?.popover?.placement||d||`top`,a={content:t,...m?.popover,placement:i,trigger:r,rootClassName:X(`${g}-popover`,m?.popover?.rootClassName)};return e.push($.createElement(Vy,{key:`avatar-popover-key`,destroyOnHidden:!0,...a},$.createElement(ny,{style:n},`+${C-S}`))),$.createElement(Hy,{shape:u,size:l},$.createElement(`div`,{className:b,style:o},e))}return $.createElement(Hy,{shape:u,size:l},$.createElement(`div`,{className:b,style:o},x))},Wy=ny;Wy.Group=Uy;var Gy=e=>{let{componentCls:t,backTopFontSize:n,backTopSize:r,zIndexPopup:i}=e;return{[t]:{...ur(e),position:`fixed`,insetInlineEnd:e.backTopInlineEnd,insetBlockEnd:e.backTopBlockEnd,zIndex:i,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:Q(r)}}}},Ky=e=>{let{componentCls:t,screenMD:n,screenXS:r,backTopInlineEndMD:i,backTopInlineEndXS:a}=e;return{[`@media (max-width: ${Q(n)})`]:{[t]:{insetInlineEnd:i}},[`@media (max-width: ${Q(r)})`]:{[t]:{insetInlineEnd:a}}}},qy=yr(`BackTop`,e=>{let{fontSizeHeading3:t,colorTextDescription:n,colorTextLightSolid:r,colorText:i,controlHeightLG:a,calc:o}=e,s=wn(e,{backTopBackground:n,backTopColor:r,backTopHoverBackground:i,backTopFontSize:t,backTopSize:a,backTopBlockEnd:o(a).mul(1.25).equal(),backTopInlineEnd:o(a).mul(2.5).equal(),backTopInlineEndMD:o(a).mul(1.5).equal(),backTopInlineEndXS:o(a).mul(.5).equal()});return[Gy(s),Ky(s)]},e=>({zIndexPopup:e.zIndexBase+10})),Jy=e=>{let{prefixCls:t,className:n,rootClassName:r,visibilityHeight:i=400,target:a,onClick:o,duration:s=450,children:c}=e,[l,d]=$.useState(i===0),f=$.useRef(null),p=()=>f.current?.ownerDocument||window,m=Rt(e=>{d(oa(e.target)>=i)});$.useEffect(()=>{let e=(a||p)();return m({target:e}),e?.addEventListener(`scroll`,m),()=>{m.cancel(),e?.removeEventListener(`scroll`,m)}},[a]);let h=e=>{ca(0,{getContainer:a||p,duration:s}),o?.(e)},{getPrefixCls:g,direction:_}=$.useContext(Vt),v=g(`back-top`,t),b=g(),[x,S]=qy(v,la(v)),C=X(x,S,v,{[`${v}-rtl`]:_===`rtl`},n,r),w=u(e,[`prefixCls`,`className`,`rootClassName`,`children`,`visibilityHeight`,`target`]),T=$.createElement(`div`,{className:`${v}-content`},$.createElement(`div`,{className:`${v}-icon`},$.createElement(y,null)));return $.createElement(`div`,{...w,className:C,onClick:h,ref:f},$.createElement(wi,{visible:l,motionName:`${b}-fade`},({className:e})=>Io(c||T,({className:t})=>({className:X(e,t)}))))},Yy=e=>{let{prefixCls:t,value:n,current:r,offset:i=0}=e,a;return i&&(a={position:`absolute`,top:`${i}00%`,left:0}),$.createElement(`span`,{style:a,className:X(`${t}-only-unit`,{current:r})},n)};function Xy(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}var Zy=e=>{let{prefixCls:t,count:n,value:r}=e,i=Number(r),a=Math.abs(n),[o,s]=$.useState(i),[c,l]=$.useState(a),u=()=>{s(i),l(a)};$.useEffect(()=>{let e=setTimeout(u,1e3);return()=>clearTimeout(e)},[i]);let d,f;if(o===i||Number.isNaN(i)||Number.isNaN(o))d=[$.createElement(Yy,{...e,key:i,current:!0})],f={transition:`none`};else{d=[];let t=i+10,n=[];for(let e=i;e<=t;e+=1)n.push(e);let r=c<a?1:-1,s=n.findIndex(e=>e%10===o);d=(r<0?n.slice(0,s+1):n.slice(s)).map((t,n)=>{let i=t%10;return $.createElement(Yy,{...e,key:t,value:i,offset:r<0?n-s:n,current:n===s})}),f={transform:`translateY(${-Xy(o,i,r)}00%)`}}return $.createElement(`span`,{className:`${t}-only`,style:f,onTransitionEnd:u},d)},Qy=$.forwardRef((e,t)=>{let{prefixCls:n,count:r,className:i,motionClassName:a,style:o,title:s,show:c,component:l=`sup`,children:u,...d}=e,{getPrefixCls:f}=$.useContext(Vt),p=f(`scroll-number`,n),m={...d,"data-show":c,style:o,className:X(p,i,a),title:s},h=r;if(r&&Number(r)%1==0){let e=String(r).split(``);h=$.createElement(`bdi`,null,e.map((t,n)=>$.createElement(Zy,{prefixCls:p,count:Number(r),value:t,key:e.length-n})))}return o?.borderColor&&(m.style={...o,boxShadow:`0 0 0 1px ${o.borderColor} inset`}),u?Io(u,e=>({className:X(`${p}-custom-component`,e?.className,a)})):$.createElement(l,{...m,ref:t},h)}),$y=new at(`antStatusProcessing`,{"0%":{transform:`scale(0.8)`,opacity:.5},"100%":{transform:`scale(2.4)`,opacity:0}}),eb=new at(`antZoomBadgeIn`,{"0%":{transform:`scale(0) translate(50%, -50%)`,opacity:0},"100%":{transform:`scale(1) translate(50%, -50%)`}}),tb=new at(`antZoomBadgeOut`,{"0%":{transform:`scale(1) translate(50%, -50%)`},"100%":{transform:`scale(0) translate(50%, -50%)`,opacity:0}}),nb=new at(`antNoWrapperZoomBadgeIn`,{"0%":{transform:`scale(0)`,opacity:0},"100%":{transform:`scale(1)`}}),rb=new at(`antNoWrapperZoomBadgeOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0)`,opacity:0}}),ib=new at(`antBadgeLoadingCircle`,{"0%":{transformOrigin:`50%`},"100%":{transform:`translate(50%, -50%) rotate(360deg)`,transformOrigin:`50%`}}),ab=e=>{let{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:a,textFontSizeSM:o,statusSize:s,dotSize:c,textFontWeight:l,indicatorHeight:u,indicatorHeightSM:d,marginXS:f,calc:p}=e,m=`${r}-scroll-number`,h=Cr(e,(e,{darkColor:n})=>({[`&${t} ${t}-color-${e}`]:{background:n,[`&:not(${t}-count)`]:{color:n},"a:hover &":{background:n}}}));return{[t]:{...ur(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:l,fontSize:a,lineHeight:Q(u),whiteSpace:`nowrap`,textAlign:`center`,background:e.badgeColor,borderRadius:p(u).div(2).equal(),boxShadow:`0 0 0 ${Q(i)} ${e.badgeShadowColor}`,transition:`background-color ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:d,height:d,fontSize:o,lineHeight:Q(d),borderRadius:p(d).div(2).equal()},[`${t}-multiple-words`]:{paddingInline:e.paddingInline,bdi:{unicodeBidi:`plaintext`}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:`100%`,boxShadow:`0 0 0 ${Q(i)} ${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:ib,animationDuration:`1s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`}},[`&${t}-status`]:{lineHeight:`inherit`,verticalAlign:`baseline`,[`${t}-status-dot`]:{position:`relative`,top:-1,display:`inline-block`,width:s,height:s,verticalAlign:`middle`,borderRadius:`50%`},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:`visible`,color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:`currentcolor`,"&::after":{position:`absolute`,top:0,insetInlineStart:0,width:`100%`,height:`100%`,borderWidth:i,borderStyle:`solid`,borderColor:`inherit`,borderRadius:`50%`,animationName:$y,animationDuration:e.badgeProcessingDuration,animationIterationCount:`infinite`,animationTimingFunction:`ease-in-out`,content:`""`}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:f,color:e.colorText,fontSize:e.fontSize}},...h,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:eb,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:`both`},[`${t}-zoom-leave`]:{animationName:tb,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:`both`},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:nb,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:rb,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%)`}}}}},ob=e=>{let{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,a=t,o=n,s=e.colorTextLightSolid,c=e.colorError,l=e.colorErrorHover;return wn(e,{badgeFontHeight:a,badgeShadowSize:o,badgeTextColor:s,badgeColor:c,badgeColorHover:l,badgeShadowColor:i,badgeProcessingDuration:`1.2s`,badgeRibbonOffset:r,badgeRibbonCornerTransform:`scaleY(0.75)`,badgeRibbonCornerFilter:`brightness(75%)`})},sb=e=>{let{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i,paddingXS:a}=e;return{indicatorZIndex:`auto`,indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:`normal`,statusSize:r/2,paddingInline:a}},cb=yr(`Badge`,e=>ab(ob(e)),sb),lb=$.forwardRef((e,t)=>{let{prefixCls:n,scrollNumberPrefixCls:r,children:i,status:a,text:o,color:s,count:c=null,overflowCount:l=99,dot:u=!1,size:d=`medium`,title:f,offset:p,style:m,className:h,rootClassName:g,classNames:_,styles:v,showZero:y=!1,...b}=e,{getPrefixCls:x,direction:S,className:C,style:w,classNames:T,styles:E}=Wt(`badge`),D=x(`badge`,n),[O,k]=cb(D),A={...e,overflowCount:l,size:d,dot:u,showZero:y},[j,M]=zi([T,_],[E,v],{props:A}),N=c>l?`${l}+`:c,P=N===`0`||N===0||o===`0`||o===0,F=c===null||P&&!y,I=(Ti(a)||Ti(s))&&F,L=Ti(a)||!P,R=u&&!P,z=R?``:N,B=(0,$.useMemo)(()=>((!Ti(z)||z===``)&&(!Ti(o)||o===``)||P&&!y)&&!R,[z,P,y,R,o]),V=(0,$.useRef)(c);B||(V.current=c);let H=V.current,U=(0,$.useRef)(z);B||(U.current=z);let W=U.current,G=(0,$.useRef)(R);B||(G.current=R);let ee=(0,$.useMemo)(()=>{if(!p)return{...w,...m};let e=Number.parseInt(p[0],10);return{marginTop:p[1],insetInlineEnd:-e,...w,...m}},[p,m,w]),K=f??(typeof H==`string`||Ei(H)?H:void 0),q=!B&&(o===0?y:!!o&&o!==!0),te=q?$.createElement(`span`,{className:`${D}-status-text`},o):null,ne=Oi(H)?Io(H,e=>({style:{...ee,...e.style}})):void 0,re=ky(s,!1),J=X(j.indicator,{[`${D}-status-dot`]:I,[`${D}-status-${a}`]:!!a,[`${D}-color-${s}`]:re}),ie={};s&&!re&&(ie.color=s,ie.background=s);let ae=X(D,{[`${D}-status`]:I,[`${D}-not-a-wrapper`]:!i,[`${D}-rtl`]:S===`rtl`},h,g,C,j.root,O,k);if(!i&&I&&(o||L||!F)){let e=ee.color;return $.createElement(`span`,{ref:t,...b,className:ae,style:{...M.root,...ee}},$.createElement(`span`,{className:J,style:{...M.indicator,...ie}}),q&&$.createElement(`span`,{style:{color:e},className:`${D}-status-text`},o))}return $.createElement(`span`,{ref:t,...b,className:ae,style:M.root},i,$.createElement(wi,{visible:!B,motionName:`${D}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:e})=>{let t=x(`scroll-number`,r),n=G.current,i=X(j.indicator,{[`${D}-dot`]:n,[`${D}-count`]:!n,[`${D}-count-sm`]:d===`small`,[`${D}-multiple-words`]:!n&&W&&W.toString().length>1,[`${D}-status-${a}`]:!!a,[`${D}-color-${s}`]:re}),o={...M.indicator,...ee};return s&&!re&&(o=o||{},o.background=s),$.createElement(Qy,{prefixCls:t,show:!B,motionClassName:e,className:i,count:W,title:K,style:o,key:`scrollNumber`},ne)}),te)}),ub=e=>{let{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:a}=e,o=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,c=Cr(e,(e,{darkColor:t})=>({[`&${o}-color-${e}`]:{background:t,color:t}}));return{[s]:{position:`relative`},[o]:{...ur(e),position:`absolute`,top:r,padding:`0 ${Q(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Q(n),whiteSpace:`nowrap`,backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${o}-content`]:{color:e.badgeTextColor},[`${o}-corner`]:{position:`absolute`,top:`100%`,width:i,height:i,color:`currentcolor`,border:`${Q(a(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:`top`,filter:e.badgeRibbonCornerFilter},...c,[`&${o}-placement-end`]:{insetInlineEnd:a(i).mul(-1).equal(),borderEndEndRadius:0,[`${o}-corner`]:{insetInlineEnd:0,borderInlineEndColor:`transparent`,borderBlockEndColor:`transparent`}},[`&${o}-placement-start`]:{insetInlineStart:a(i).mul(-1).equal(),borderEndStartRadius:0,[`${o}-corner`]:{insetInlineStart:0,borderBlockEndColor:`transparent`,borderInlineStartColor:`transparent`}},"&-rtl":{direction:`rtl`}}}},db=yr([`Badge`,`Ribbon`],e=>ub(ob(e)),sb),fb=e=>{let{className:t,prefixCls:n,style:r,color:i,children:a,text:o,placement:s=`end`,rootClassName:c,styles:l,classNames:u}=e,{getPrefixCls:d,direction:f,className:p,style:m,classNames:h,styles:g}=Wt(`ribbon`),_=d(`ribbon`,n),v=`${_}-wrapper`,[y,b]=db(_,v),x={...e,placement:s},[S,C]=zi([h,u],[g,l],{props:x}),w=ky(i,!1),T=X(_,`${_}-placement-${s}`,{[`${_}-rtl`]:f===`rtl`,[`${_}-color-${i}`]:w},t,p,S.indicator),E={},D={};return i&&!w&&(E.background=i,D.color=i),$.createElement(`div`,{className:X(v,c,y,b,S.root),style:C.root},a,$.createElement(`div`,{className:X(T,y),style:{...E,...C.indicator,...m,...r}},$.createElement(`span`,{className:X(`${_}-content`,S.content),style:C.content},o),$.createElement(`div`,{className:`${_}-corner`,style:D})))},pb=lb;pb.Ribbon=fb;var mb=e=>typeof HTMLElement<`u`&&e instanceof HTMLElement,hb=e=>{let{prefixCls:t,className:n,...r}=e;return $.createElement(`div`,{"aria-hidden":`true`,className:X(t,n),...r})},gb=e=>{let{prefixCls:t,hostDom:n,...r}=e;return!n||!mb(n)?null:(0,Kt.createPortal)($.createElement(hb,{prefixCls:t,...r}),n)},_b={borderWidth:[0,0,0,0],borderRadius:`0px`},vb=e=>{let t=Number.parseFloat(e);return Number.isFinite(t)?t:0},yb=e=>{let[t,n]=$.useState(_b);return $.useEffect(()=>{if(!e){n(_b);return}let{borderTopWidth:t,borderRightWidth:r,borderBottomWidth:i,borderLeftWidth:a,borderRadius:o}=getComputedStyle(e);n({borderWidth:[vb(t),vb(r),vb(i),vb(a)],borderRadius:o})},[e]),t},bb=e=>{let[t,n]=$.useState(null),r=$.isValidElement(e)?e:null,i=$.useCallback(e=>{let t=I(e);n(e=>e===t?e:t)},[]),a=K(r?z(r):null,i);return!r||!c(r)?[e,t]:[Io(r,{ref:a}),t]},xb=(...e)=>`linear-gradient(to left, ${e.join(`, `)}, transparent)`,Sb=e=>Di(e)?[{color:e,percent:0}]:e??[],Cb=e=>{let t=e[e.length-1];return!t||t.percent===100?e:[].concat(Lt(e),[{...t,percent:100}])},wb=e=>Number((Math.min(Math.max(e,0),100)/100*70).toFixed(2)),Tb=e=>Cb(e).map(e=>({...e,percent:wb(e.percent)})),Eb=e=>{let t=Tb(Sb(e));return t.length?xb.apply(void 0,Lt(t.map(e=>`${e.color} ${e.percent}%`))):void 0},Db=yr(`BorderBeam`,e=>{let{componentCls:t,antCls:n}=e,[,r]=Sr(n,`border-beam`),i=`linear-gradient(to left, ${e.colorPrimary} 0%, ${e.colorPrimaryHover} 70%, transparent)`,a=new at(`antBorderBeamMove`,{from:{offsetDistance:`0%`},to:{offsetDistance:`100%`}});return{[t]:{display:`none`,position:`absolute`,inset:r(`inset-offset`,`0px`),borderRadius:r(`border-radius`,`0px`),zIndex:1,overflow:`hidden`,pointerEvents:`none`,padding:e.lineWidth,"@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor))":{WebkitMask:`linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)`,WebkitMaskComposite:`xor`,mask:`linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)`,maskComposite:`exclude`,"@supports (offset-path: rect(0 auto auto 0 round 1px))":{display:`block`,"&::before":{...xu(),content:`""`,position:`absolute`,top:0,left:0,width:100,aspectRatio:`1 / 1`,opacity:.95,backgroundImage:r(`beam-gradient`,i),offsetAnchor:`90% 50%`,offsetDistance:`0%`,offsetPath:`rect(0 auto auto 0 round 100px)`,offsetRotate:`auto`,animationName:a,animationDuration:`6s`,animationTimingFunction:`linear`,animationIterationCount:`infinite`,willChange:`offset-distance`}}},"@media (prefers-reduced-motion: reduce)":{"&::before":{display:`none`}}}}}),Ob=e=>Di(e)?`calc(-1 * ${e})`:`-${e}px`,kb=e=>{let{prefixCls:t,className:n,style:r,children:i,color:a,outset:o}=e,{className:s,style:c,getPrefixCls:l}=Wt(`borderBeam`),u=l(`border-beam`,t),[d,f]=Db(u),[p]=Sr(l(),`border-beam`),[m,h]=bb(i),{borderWidth:g,borderRadius:_}=yb(h),v=(0,$.useMemo)(()=>Eb(a),[a]),y=(0,$.useMemo)(()=>Ti(o)?Ob(o):g.map(Ob).join(` `),[g,o]);return $.createElement($.Fragment,null,m,$.createElement(gb,{prefixCls:u,hostDom:h,className:X(s,n,d,f),style:{...c,...r,...v&&{[p(`beam-gradient`)]:v},[p(`inset-offset`)]:y,[p(`border-radius`)]:_}}))},Ab=$.createContext({}),{ESC:jb,TAB:Mb}=f;function Nb({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:i}){let a=$.useRef(!1),o=()=>{e&&(t.current?.focus?.(),n?.(!1))},s=()=>i.current?.focus?(i.current.focus(),a.current=!0,!0):!1,c=e=>{switch(e.keyCode){case jb:o();break;case Mb:{let t=!1;a.current||(t=s()),t?e.preventDefault():o();break}}};$.useEffect(()=>e?(window.addEventListener(`keydown`,c),r&&Y(s,3),()=>{window.removeEventListener(`keydown`,c),a.current=!1}):()=>{a.current=!1},[e])}var Pb=(0,$.forwardRef)((e,t)=>{let{overlay:n,arrow:r,prefixCls:i}=e,a=(0,$.useMemo)(()=>{let e;return e=typeof n==`function`?n():n,e},[n]),o=S(t,z(a));return $.createElement($.Fragment,null,r&&$.createElement(`div`,{className:`${i}-arrow`}),$.cloneElement(a,{ref:c(a)?o:void 0}))}),Fb={adjustX:1,adjustY:1},Ib=[0,0],Lb={topLeft:{points:[`bl`,`tl`],overflow:Fb,offset:[0,-4],targetOffset:Ib},top:{points:[`bc`,`tc`],overflow:Fb,offset:[0,-4],targetOffset:Ib},topRight:{points:[`br`,`tr`],overflow:Fb,offset:[0,-4],targetOffset:Ib},bottomLeft:{points:[`tl`,`bl`],overflow:Fb,offset:[0,4],targetOffset:Ib},bottom:{points:[`tc`,`bc`],overflow:Fb,offset:[0,4],targetOffset:Ib},bottomRight:{points:[`tr`,`br`],overflow:Fb,offset:[0,4],targetOffset:Ib}};function Rb(){return Rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rb.apply(this,arguments)}var zb=$.forwardRef((e,t)=>{let{arrow:n=!1,prefixCls:r=`rc-dropdown`,transitionName:i,animation:a,align:o,placement:s=`bottomLeft`,placements:l=Lb,getPopupContainer:u,showAction:d,hideAction:f,overlayClassName:p,overlayStyle:m,visible:h,trigger:g=[`hover`],autoFocus:_,overlay:v,children:y,onVisibleChange:b,...x}=e,[C,w]=$.useState(),T=`visible`in e?h:C,E=a?`${r}-${a}`:i,D=$.useRef(null),O=$.useRef(null),k=$.useRef(null);$.useImperativeHandle(t,()=>D.current);let A=e=>{w(e),b?.(e)};Nb({visible:T,triggerRef:k,onVisibleChange:A,autoFocus:_,overlayRef:O});let j=t=>{let{onOverlayClick:n}=e;w(!1),n&&n(t)},M=()=>$.createElement(Pb,{ref:O,overlay:v,prefixCls:r,arrow:n}),N=()=>typeof v==`function`?M:M(),P=()=>{let{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return`minOverlayWidthMatchTrigger`in e?t:!n},F=$.cloneElement(y,{className:X(y.props?.className,T&&(()=>{let{openClassName:t}=e;return t===void 0?`${r}-open`:t})()),ref:c(y)?S(k,z(y)):void 0}),I=f;return!I&&g.indexOf(`contextMenu`)!==-1&&(I=[`click`]),$.createElement(No,Rb({builtinPlacements:l},x,{prefixCls:r,ref:D,popupClassName:X(p,{[`${r}-show-arrow`]:n}),popupStyle:m,action:g,showAction:d,hideAction:I,popupPlacement:s,popupAlign:o,popupMotion:{motionName:E},popupVisible:T,stretch:P()?`minWidth`:``,popup:N(),onOpenChange:A,onPopupClick:j,getPopupContainer:u}),F)}),Bb=$.createContext(null);function Vb(e,t){return`${e}-${t}`}function Hb(e){return Vb($.useContext(Bb),e)}var Ub=$.createContext(null);function Wb(e,t){let n={...e};return Object.keys(t).forEach(e=>{let r=t[e];r!==void 0&&(n[e]=r)}),n}function Gb({children:e,locked:t,...n}){let r=$.useContext(Ub),i=Qe(()=>Wb(r,n),[r,n],(e,n)=>!t&&(e[0]!==n[0]||!tt(e[1],n[1],!0)));return $.createElement(Ub.Provider,{value:i},e)}var Kb=[],qb=$.createContext(null);function Jb(){return $.useContext(qb)}var Yb=$.createContext(Kb);function Xb(e){let t=$.useContext(Yb);return $.useMemo(()=>e===void 0?t:[...t,e],[t,e])}var Zb=$.createContext(null),Qb=$.createContext({}),{LEFT:$b,RIGHT:ex,UP:tx,DOWN:nx,ENTER:rx,ESC:ix,HOME:ax,END:ox}=f,sx=[tx,nx,$b,ex];function cx(e,t,n,r){let i=`prev`,a=`next`,o=`children`,s=`parent`;if(e===`inline`&&r===rx)return{inlineTrigger:!0};let c={[tx]:i,[nx]:a},l={[$b]:n?a:i,[ex]:n?i:a,[nx]:o,[rx]:o},u={[tx]:i,[nx]:a,[rx]:o,[ix]:s,[$b]:n?o:s,[ex]:n?s:o};switch({inline:c,horizontal:l,vertical:u,inlineSub:c,horizontalSub:u,verticalSub:u}[`${e}${t?``:`Sub`}`]?.[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case o:return{offset:1,sibling:!1};default:return null}}function lx(e){let t=e;for(;t;){if(t.getAttribute(`data-menu-list`))return t;t=t.parentElement}return null}function ux(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function dx(e,t){return o(e,!0).filter(e=>t.has(e))}function fx(e,t,n,r=1){if(!e)return null;let i=dx(e,t),a=i.length,o=i.findIndex(e=>n===e);return r<0?o===-1?o=a-1:--o:r>0&&(o+=1),o=(o+a)%a,i[o]}var px=(e,t)=>{let n=new Set,r=new Map,i=new Map;return e.forEach(e=>{let a=document.querySelector(`[data-menu-id='${Vb(t,e)}']`);a&&(n.add(a),i.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:i}};function mx(e,t,n,r,i,a,o,s,c,l){let u=$.useRef(),d=$.useRef();d.current=t;let f=()=>{Y.cancel(u.current)};return $.useEffect(()=>()=>{f()},[]),p=>{let{which:m}=p;if([...sx,rx,ix,ax,ox].includes(m)){let l=a(),h=px(l,r),{elements:g,key2element:_,element2key:v}=h,y=ux(_.get(t),g),b=v.get(y),x=cx(e,o(b,!0).length===1,n,m);if(!x&&m!==ax&&m!==ox)return;(sx.includes(m)||[ax,ox].includes(m))&&p.preventDefault();let S=e=>{if(e){let t=e,n=e.querySelector(`a`);n?.getAttribute(`href`)&&(t=n);let r=v.get(e);s(r),f(),u.current=Y(()=>{d.current===r&&t.focus()})}};if([ax,ox].includes(m)||x.sibling||!y){let t;t=!y||e===`inline`?i.current:lx(y);let n,r=dx(t,g);n=m===ax?r[0]:m===ox?r[r.length-1]:fx(t,g,y,x.offset),S(n)}else if(x.inlineTrigger)c(b);else if(x.offset>0)c(b,!0),f(),u.current=Y(()=>{h=px(l,r);let e=y.getAttribute(`aria-controls`);S(fx(document.getElementById(e),h.elements))},5);else if(x.offset<0){let e=o(b,!0),t=e[e.length-2],n=_.get(t);c(t,!1),S(n)}}l?.(p)}}function hx(e){Promise.resolve().then(e)}var gx=`__RC_UTIL_PATH_SPLIT__`,_x=e=>e.join(gx),vx=e=>e.split(gx),yx=`rc-menu-more`;function bx(){let[,e]=$.useState({}),t=(0,$.useRef)(new Map),n=(0,$.useRef)(new Map),[r,i]=$.useState([]),a=(0,$.useRef)(0),o=(0,$.useRef)(!1),s=()=>{o.current||e({})},c=(0,$.useCallback)((e,r)=>{let i=_x(r);n.current.set(i,e),t.current.set(e,i),a.current+=1;let o=a.current;hx(()=>{o===a.current&&s()})},[]),l=(0,$.useCallback)((e,r)=>{let i=_x(r);n.current.delete(i),t.current.delete(e)},[]),u=(0,$.useCallback)(e=>{i(e)},[]),d=(0,$.useCallback)((e,n)=>{let i=vx(t.current.get(e)||``);return n&&r.includes(i[0])&&i.unshift(yx),i},[r]),f=(0,$.useCallback)((e,t)=>e.filter(e=>e!==void 0).some(e=>d(e,!0).includes(t)),[d]),p=()=>{let e=[...t.current.keys()];return r.length&&e.push(yx),e},m=(0,$.useCallback)(e=>{let r=`${t.current.get(e)}${gx}`,i=new Set;return[...n.current.keys()].forEach(e=>{e.startsWith(r)&&i.add(n.current.get(e))}),i},[]);return $.useEffect(()=>()=>{o.current=!0},[]),{registerPath:c,unregisterPath:l,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:p,getSubPathKeys:m}}function xx(e){let t=$.useRef(e);t.current=e;let n=$.useCallback((...e)=>t.current?.(...e),[]);return e?n:void 0}function Sx(e,t,n,r){let{activeKey:i,onActive:a,onInactive:o}=$.useContext(Ub),s={active:i===e};return t||(s.onMouseEnter=t=>{n?.({key:e,domEvent:t}),a(e)},s.onMouseLeave=t=>{r?.({key:e,domEvent:t}),o(e)}),s}function Cx(e){let{mode:t,rtl:n,inlineIndent:r}=$.useContext(Ub);if(t!==`inline`)return null;let i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function wx({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e==`function`?r=$.createElement(e,{...t}):typeof e!=`boolean`&&(r=e),r||n||null)}function Tx({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>($e(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function Ex(){return Ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ex.apply(this,arguments)}var Dx=class extends $.Component{render(){let{title:e,attribute:t,elementRef:n,...r}=this.props,i=u(r,[`eventKey`,`popupClassName`,`popupOffset`,`onTitleClick`]);return $e(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),$.createElement(Qg.Item,Ex({},t,{title:typeof e==`string`?e:void 0},i,{ref:n}))}},Ox=$.forwardRef((e,t)=>{let{style:n,className:r,eventKey:i,warnKey:a,disabled:o,itemIcon:s,children:c,role:l,onMouseEnter:d,onMouseLeave:p,onClick:m,onKeyDown:h,onFocus:g,..._}=e,v=Hb(i),{prefixCls:y,onItemClick:b,disabled:x,overflowDisabled:S,itemIcon:C,selectedKeys:w,onActive:T}=$.useContext(Ub),{_internalRenderMenuItem:E}=$.useContext(Qb),D=`${y}-item`,O=$.useRef(),k=$.useRef(),A=x||o,j=K(t,k),M=Xb(i),N=e=>({key:i,keyPath:[...M].reverse(),item:O.current,domEvent:e}),P=s||C,{active:F,...I}=Sx(i,A,d,p),L=w.includes(i),R=Cx(M.length),z=e=>{if(A)return;let t=N(e);m?.(Tx(t)),b(t)},B=e=>{if(h?.(e),e.which===f.ENTER){let t=N(e);m?.(Tx(t)),b(t)}},V=e=>{T(i),g?.(e)},H={};e.role===`option`&&(H[`aria-selected`]=L);let U=$.createElement(Dx,Ex({ref:O,elementRef:j,role:l===null?`none`:l||`menuitem`,tabIndex:o?null:-1,"data-menu-id":S&&v?null:v},u(_,[`extra`]),I,H,{component:`li`,"aria-disabled":o,style:{...R,...n},className:X(D,{[`${D}-active`]:F,[`${D}-selected`]:L,[`${D}-disabled`]:A},r),onClick:z,onKeyDown:B,onFocus:V}),c,$.createElement(wx,{props:{...e,isSelected:L},icon:P}));return E&&(U=E(U,e,{selected:L})),U});function kx(e,t){let{eventKey:n}=e,r=Jb(),i=Xb(n);return $.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:$.createElement(Ox,Ex({},e,{ref:t}))}var Ax=$.forwardRef(kx);function jx(){return jx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jx.apply(this,arguments)}var Mx=$.forwardRef(({className:e,children:t,...n},r)=>{let{prefixCls:i,mode:a,rtl:o}=$.useContext(Ub);return $.createElement(`ul`,jx({className:X(i,o&&`${i}-rtl`,`${i}-sub`,`${i}-${a===`inline`?`inline`:`vertical`}`,e),role:`menu`},n,{"data-menu-list":!0,ref:r}),t)});function Nx(e,t){return Je(e).map((e,n)=>{if($.isValidElement(e)){let{key:r}=e,i=e.props?.eventKey??r;i??(i=`tmp_key-${[...t,n].join(`-`)}`);let a={key:i,eventKey:i};return $.cloneElement(e,a)}return e})}var Px={adjustX:1,adjustY:1},Fx={topLeft:{points:[`bl`,`tl`],overflow:Px},topRight:{points:[`br`,`tr`],overflow:Px},bottomLeft:{points:[`tl`,`bl`],overflow:Px},bottomRight:{points:[`tr`,`br`],overflow:Px},leftTop:{points:[`tr`,`tl`],overflow:Px},leftBottom:{points:[`br`,`bl`],overflow:Px},rightTop:{points:[`tl`,`tr`],overflow:Px},rightBottom:{points:[`bl`,`br`],overflow:Px}},Ix={topLeft:{points:[`bl`,`tl`],overflow:Px},topRight:{points:[`br`,`tr`],overflow:Px},bottomLeft:{points:[`tl`,`bl`],overflow:Px},bottomRight:{points:[`tr`,`br`],overflow:Px},rightTop:{points:[`tr`,`tl`],overflow:Px},rightBottom:{points:[`br`,`bl`],overflow:Px},leftTop:{points:[`tl`,`tr`],overflow:Px},leftBottom:{points:[`bl`,`br`],overflow:Px}};function Lx(e,t,n){if(t)return t;if(n)return n[e]||n.other}var Rx={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`};function zx({prefixCls:e,visible:t,children:n,popup:r,popupStyle:i,popupClassName:a,popupOffset:o,disabled:s,mode:c,onVisibleChange:l}){let{getPopupContainer:u,rtl:d,subMenuOpenDelay:f,subMenuCloseDelay:p,builtinPlacements:m,triggerSubMenuAction:h,forceSubMenuRender:g,rootClassName:_,motion:v,defaultMotions:y}=$.useContext(Ub),[b,x]=$.useState(!1),S=d?{...Ix,...m}:{...Fx,...m},C=Rx[c],w=Lx(c,v,y),T=$.useRef(w);c!==`inline`&&(T.current=w);let E={...T.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},D=$.useRef();return $.useEffect(()=>(D.current=Y(()=>{x(t)}),()=>{Y.cancel(D.current)}),[t]),$.createElement(No,{prefixCls:e,popupClassName:X(`${e}-popup`,{[`${e}-rtl`]:d},a,_),stretch:c===`horizontal`?`minWidth`:null,getPopupContainer:u,builtinPlacements:S,popupPlacement:C,popupVisible:b,popup:r,popupStyle:i,popupAlign:o&&{offset:o},action:s?[]:[h],mouseEnterDelay:f,mouseLeaveDelay:p,onPopupVisibleChange:l,forceRender:g,popupMotion:E,fresh:!0},n)}function Bx(){return Bx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bx.apply(this,arguments)}function Vx({id:e,open:t,keyPath:n,children:r}){let i=`inline`,{prefixCls:a,forceSubMenuRender:o,motion:s,defaultMotions:c,mode:l}=$.useContext(Ub),u=$.useRef(!1);u.current=l===i;let[d,f]=$.useState(!u.current),p=u.current?t:!1;$.useEffect(()=>{u.current&&f(!1)},[l]);let m={...Lx(i,s,c)};n.length>1&&(m.motionAppear=!1);let h=m.onVisibleChanged;return m.onVisibleChanged=e=>(!u.current&&!e&&f(!0),h?.(e)),d?null:$.createElement(Gb,{mode:i,locked:!u.current},$.createElement(wi,Bx({visible:p},m,{forceRender:o,removeOnLeave:!1,leavedClassName:`${a}-hidden`}),({className:t,style:n})=>$.createElement(Mx,{id:e,className:t,style:n},r)))}function Hx(){return Hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hx.apply(this,arguments)}var Ux=$.forwardRef((e,t)=>{let{style:n,className:r,styles:i,classNames:a,title:o,eventKey:s,warnKey:c,disabled:l,internalPopupClose:u,children:d,itemIcon:f,expandIcon:p,popupClassName:m,popupOffset:h,popupStyle:g,onClick:_,onMouseEnter:v,onMouseLeave:y,onTitleClick:b,onTitleMouseEnter:x,onTitleMouseLeave:S,popupRender:C,...w}=e,T=Hb(s),{prefixCls:E,mode:D,openKeys:O,disabled:k,overflowDisabled:A,activeKey:j,selectedKeys:M,itemIcon:N,expandIcon:P,onItemClick:F,onOpenChange:I,onActive:L,popupRender:R}=$.useContext(Ub),{_internalRenderSubMenuItem:z}=$.useContext(Qb),{isSubPathKey:B}=$.useContext(Zb),V=Xb(),H=`${E}-submenu`,U=k||l,W=$.useRef(),G=$.useRef(),ee=f??N,K=p??P,q=O.includes(s),te=!A&&q,ne=B(M,s),{active:re,...J}=Sx(s,U,x,S),[ie,ae]=$.useState(!1),oe=e=>{U||ae(e)},se=e=>{oe(!0),v?.({key:s,domEvent:e})},ce=e=>{oe(!1),y?.({key:s,domEvent:e})},le=$.useMemo(()=>re||(D===`inline`?!1:ie||B([j],s)),[D,re,j,ie,s,B]),Y=Cx(V.length),ue=e=>{U||(b?.({key:s,domEvent:e}),D===`inline`&&I(s,!q))},de=xx(e=>{_?.(Tx(e)),F(e)}),fe=e=>{D!==`inline`&&I(s,e)},pe=()=>{L(s)},me=T&&`${T}-popup`,he=$.useMemo(()=>$.createElement(wx,{icon:D===`horizontal`?void 0:K,props:{...e,isOpen:te,isSubMenu:!0}},$.createElement(`i`,{className:`${H}-arrow`})),[D,K,e,te,H]),ge=$.createElement(`div`,Hx({role:`menuitem`,style:Y,className:`${H}-title`,tabIndex:U?null:-1,ref:W,title:typeof o==`string`?o:null,"data-menu-id":A&&T?null:T,"aria-expanded":te,"aria-haspopup":!0,"aria-controls":me,"aria-disabled":U,onClick:ue,onFocus:pe},J),o,he),_e=$.useRef(D);D!==`inline`&&V.length>1?_e.current=`vertical`:_e.current=D;let ve=_e.current,ye=$.useMemo(()=>{let t=$.createElement(Gb,{classNames:a,styles:i,mode:ve===`horizontal`?`vertical`:ve},$.createElement(Mx,{id:me,ref:G},d)),n=C||R;return n?n(t,{item:e,keys:V}):t},[C,R,V,me,d,e,ve]);if(!A){let e=_e.current;ge=$.createElement(zx,{mode:e,prefixCls:H,visible:!u&&te&&D!==`inline`,popupClassName:m,popupOffset:h,popupStyle:g,popup:ye,disabled:U,onVisibleChange:fe},ge)}let be=$.createElement(Qg.Item,Hx({ref:t,role:`none`},w,{component:`li`,style:n,className:X(H,`${H}-${D}`,r,{[`${H}-open`]:te,[`${H}-active`]:le,[`${H}-selected`]:ne,[`${H}-disabled`]:U}),onMouseEnter:se,onMouseLeave:ce}),ge,!A&&$.createElement(Vx,{id:me,open:te,keyPath:V},d));return z&&(be=z(be,e,{selected:ne,active:le,open:te,disabled:U})),$.createElement(Gb,{classNames:a,styles:i,onItemClick:de,mode:D===`horizontal`?`vertical`:D,itemIcon:ee,expandIcon:K},be)}),Wx=$.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=Xb(n),a=Nx(r,i),o=Jb();$.useEffect(()=>{if(o)return o.registerPath(n,i),()=>{o.unregisterPath(n,i)}},[i]);let s;return s=o?a:$.createElement(Ux,Hx({ref:t},e),a),$.createElement(Yb.Provider,{value:i},s)});function Gx({className:e,style:t}){let{prefixCls:n}=$.useContext(Ub);return Jb()?null:$.createElement(`li`,{role:`separator`,className:X(`${n}-item-divider`,e),style:t})}function Kx(){return Kx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kx.apply(this,arguments)}var qx=$.forwardRef((e,t)=>{let{className:n,title:r,eventKey:i,children:a,...o}=e,{prefixCls:s,classNames:c,styles:l}=$.useContext(Ub),u=`${s}-item-group`;return $.createElement(`li`,Kx({ref:t,role:`presentation`},o,{onClick:e=>e.stopPropagation(),className:X(u,n)}),$.createElement(`div`,{role:`presentation`,className:X(`${u}-title`,c?.listTitle),style:l?.listTitle,title:typeof r==`string`?r:void 0},r),$.createElement(`ul`,{role:`group`,className:X(`${u}-list`,c?.list),style:l?.list},a))}),Jx=$.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=Nx(r,Xb(n));return Jb()?i:$.createElement(qx,Kx({ref:t},u(e,[`warnKey`])),i)});function Yx(){return Yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yx.apply(this,arguments)}function Xx(e,t,n){let{item:r,group:i,submenu:a,divider:o}=t;return(e||[]).map((e,s)=>{if(e&&typeof e==`object`){let{label:c,children:l,key:u,type:d,extra:f,...p}=e,m=u??`tmp-${s}`;if(l||d===`group`)return d===`group`?$.createElement(i,Yx({key:m},p,{title:c}),Xx(l,t,n)):$.createElement(a,Yx({key:m},p,{title:c}),Xx(l,t,n));if(d===`divider`)return $.createElement(o,Yx({key:m},p));let h=!!f||f===0;return $.createElement(r,Yx({key:m},p,{extra:f}),h?$.createElement($.Fragment,null,$.createElement(`span`,{className:`${n}-item-label`},c),$.createElement(`span`,{className:`${n}-item-extra`},f)):c)}return null}).filter(e=>e)}function Zx(e,t,n,r,i){let a=e,o={divider:Gx,item:Ax,group:Jx,submenu:Wx,...r};return t&&(a=Xx(t,o,i)),Nx(a,n)}function Qx(){return Qx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qx.apply(this,arguments)}var $x=[],eS=$.forwardRef((e,t)=>{let{prefixCls:n=`rc-menu`,rootClassName:r,style:i,className:a,styles:o,classNames:s,tabIndex:c=0,items:l,children:u,direction:d,id:f,mode:p=`vertical`,inlineCollapsed:m,disabled:h,disabledOverflow:g,subMenuOpenDelay:_=.1,subMenuCloseDelay:y=.1,forceSubMenuRender:b,defaultOpenKeys:x,openKeys:S,activeKey:C,defaultActiveFirst:w,selectable:T=!0,multiple:E=!1,defaultSelectedKeys:D,selectedKeys:O,onSelect:k,onDeselect:A,inlineIndent:j=24,motion:M,defaultMotions:N,triggerSubMenuAction:P=`hover`,builtinPlacements:F,itemIcon:I,expandIcon:L,overflowedIndicator:R=`...`,overflowedIndicatorPopupClassName:z,getPopupContainer:B,onClick:V,onOpenChange:H,onKeyDown:U,openAnimation:W,openTransitionName:G,_internalRenderMenuItem:ee,_internalRenderSubMenuItem:K,_internalComponents:q,popupRender:ne,...re}=e,[J,ie]=$.useMemo(()=>[Zx(u,l,$x,q,n),Zx(u,l,$x,{},n)],[u,l,q]),[ae,oe]=$.useState(!1),se=$.useRef(),ce=te(f?`rc-menu-uuid-${f}`:`rc-menu-uuid`),le=d===`rtl`,[Y,ue]=v(x,S),de=Y||$x,fe=(e,t=!1)=>{function n(){ue(e),H?.(e)}t?(0,Kt.flushSync)(n):n()},[pe,me]=$.useState(de),he=$.useRef(!1),[ge,_e]=$.useMemo(()=>(p===`inline`||p===`vertical`)&&m?[`vertical`,m]:[p,!1],[p,m]),ve=ge===`inline`,[ye,be]=$.useState(ge),[xe,Se]=$.useState(_e);$.useEffect(()=>{be(ge),Se(_e),he.current&&(ve?ue(pe):fe($x))},[ge,_e]);let[Ce,we]=$.useState(0),Te=Ce>=J.length-1||ye!==`horizontal`||g;$.useEffect(()=>{ve&&me(de)},[de]),$.useEffect(()=>(he.current=!0,()=>{he.current=!1}),[]);let{registerPath:Ee,unregisterPath:De,refreshOverflowKeys:Oe,isSubPathKey:ke,getKeyPath:Ae,getKeys:je,getSubPathKeys:Me}=bx(),Ne=$.useMemo(()=>({registerPath:Ee,unregisterPath:De}),[Ee,De]),Pe=$.useMemo(()=>({isSubPathKey:ke}),[ke]);$.useEffect(()=>{Oe(Te?$x:J.slice(Ce+1).map(e=>e.key))},[Ce,Te]);let[Fe,Ie]=v(C||w&&J[0]?.key,C),Le=xx(e=>{Ie(e)}),Re=xx(()=>{Ie(void 0)});(0,$.useImperativeHandle)(t,()=>({list:se.current,focus:e=>{let t=je(),{elements:n,key2element:r,element2key:i}=px(t,ce),a=dx(se.current,n),o;o=Fe&&t.includes(Fe)?Fe:a[0]?i.get(a[0]):J.find(e=>!e.props.disabled)?.key;let s=r.get(o);o&&s&&s?.focus?.(e)},findItem:({key:e})=>{let{key2element:t}=px(je(),ce);return t.get(e)||null}}));let[ze,Be]=v(D||[],O),Ve=$.useMemo(()=>Array.isArray(ze)?ze:ze==null?$x:[ze],[ze]),He=e=>{if(T){let{key:t}=e,n=Ve.includes(t),r;r=E?n?Ve.filter(e=>e!==t):[...Ve,t]:[t],Be(r);let i={...e,selectedKeys:r};n?A?.(i):k?.(i)}!E&&de.length&&ye!==`inline`&&fe($x)},Ue=xx(e=>{V?.(Tx(e)),He(e)}),We=xx((e,t)=>{let n=de.filter(t=>t!==e);if(t)n.push(e);else if(ye!==`inline`){let t=Me(e);n=n.filter(e=>!t.has(e))}tt(de,n,!0)||fe(n,!0)}),Ge=mx(ye,Fe,le,ce,se,je,Ae,Ie,(e,t)=>{We(e,t??!de.includes(e))},U);$.useEffect(()=>{oe(!0)},[]);let Ke=$.useMemo(()=>({_internalRenderMenuItem:ee,_internalRenderSubMenuItem:K}),[ee,K]),qe=ye!==`horizontal`||g?J:J.map((e,t)=>$.createElement(Gb,{key:e.key,overflowDisabled:t>Ce,classNames:s,styles:o},e)),Je=$.createElement(Qg,Qx({id:f,ref:se,prefixCls:`${n}-overflow`,component:`ul`,itemComponent:Ax,className:X(n,`${n}-root`,`${n}-${ye}`,a,{[`${n}-inline-collapsed`]:xe,[`${n}-rtl`]:le},r),dir:d,style:i,role:`menu`,tabIndex:c,data:qe,renderRawItem:e=>e,renderRawRest:e=>{let t=e.length,n=t?J.slice(-t):null;return $.createElement(Wx,{eventKey:yx,title:R,disabled:Te,internalPopupClose:t===0,popupClassName:z},n)},maxCount:ye!==`horizontal`||g?Qg.INVALIDATE:Qg.RESPONSIVE,ssr:`full`,"data-menu-list":!0,onVisibleChange:e=>{we(e)},onKeyDown:Ge},re));return $.createElement(Qb.Provider,{value:Ke},$.createElement(Bb.Provider,{value:ce},$.createElement(Gb,{prefixCls:n,rootClassName:r,classNames:s,styles:o,mode:ye,openKeys:de,rtl:le,disabled:h,motion:ae?M:null,defaultMotions:ae?N:null,activeKey:Fe,onActive:Le,onInactive:Re,selectedKeys:Ve,inlineIndent:j,subMenuOpenDelay:_,subMenuCloseDelay:y,forceSubMenuRender:b,builtinPlacements:F,triggerSubMenuAction:P,getPopupContainer:B,itemIcon:I,expandIcon:L,onItemClick:Ue,onOpenChange:We,popupRender:ne},$.createElement(Zb.Provider,{value:Pe},Je),$.createElement(`div`,{style:{display:`none`},"aria-hidden":!0},$.createElement(qb.Provider,{value:Ne},ie)))))});eS.Item=Ax,eS.SubMenu=Wx,eS.ItemGroup=Jx,eS.Divider=Gx;var tS=$.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),nS=e=>{let{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:c,fontSize:l,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:a,padding:o,color:s,lineHeight:Q(a),background:d,[`${t}-menu`]:{lineHeight:`inherit`}},[`${n}-footer`]:{padding:c,color:r,fontSize:l,background:i},[`${n}-content`]:{flex:`auto`,color:r,minHeight:0}}},rS=e=>{let{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:c}=e,l=r*1.25;return{colorBgHeader:`#001529`,colorBgBody:t,colorBgTrigger:`#002140`,bodyBg:t,headerBg:`#001529`,headerHeight:n*2,headerPadding:`0 ${l}px`,headerColor:i,footerPadding:`${a}px ${l}px`,footerBg:t,siderBg:`#001529`,triggerHeight:r+o*2,triggerBg:`#002140`,triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:i}},iS=[[`colorBgBody`,`bodyBg`],[`colorBgHeader`,`headerBg`],[`colorBgTrigger`,`triggerBg`]],aS=yr(`Layout`,nS,rS,{deprecatedTokens:iS}),oS=yr([`Layout`,`Sider`],e=>{let{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:c,headerHeight:l,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:h,bodyBg:g}=e;return{[t]:{position:`relative`,minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:`100%`,marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:`auto`}},[`&-zero-width ${t}-children`]:{overflow:`hidden`},[`${t}-trigger`]:{position:`fixed`,bottom:0,zIndex:1,height:o,color:s,lineHeight:Q(o),textAlign:`center`,background:c,cursor:`pointer`,transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:`absolute`,top:l,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:`flex`,alignItems:`center`,justifyContent:`center`,background:n,borderRadius:`0 ${Q(f)} ${Q(f)} 0`,cursor:`pointer`,transition:`background-color ${i} ease`,"&::after":{position:`absolute`,inset:0,background:`transparent`,transition:`all ${i}`,content:`""`},"&:hover::after":{background:`rgba(255, 255, 255, 0.2)`},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${Q(f)} 0 0 ${Q(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:h},[`${t}-zero-width-trigger`]:{color:m,background:h,border:`1px solid ${g}`,borderInlineStart:0}}}}},rS,{deprecatedTokens:iS}),sS={xs:`479.98px`,sm:`575.98px`,md:`767.98px`,lg:`991.98px`,xl:`1199.98px`,xxl:`1599.98px`,xxxl:`1839.98px`},cS=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),lS=$.createContext({}),uS=(()=>{let e=0;return(t=``)=>(e+=1,`${t}${e}`)})(),dS=$.forwardRef((e,t)=>{let{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:c=`dark`,style:l={},collapsible:d=!1,reverseArrow:f=!1,width:p=200,collapsedWidth:m=80,zeroWidthTriggerStyle:h,breakpoint:g,onCollapse:_,onBreakpoint:v,...y}=e,{siderHook:b}=(0,$.useContext)(tS),[x,S]=(0,$.useState)(`collapsed`in e?e.collapsed:o),[C,w]=(0,$.useState)(!1);(0,$.useEffect)(()=>{`collapsed`in e&&S(e.collapsed)},[e.collapsed]);let E=(t,n)=>{`collapsed`in e||S(t),_?.(t,n)},{getPrefixCls:D,direction:O}=(0,$.useContext)(Vt),k=D(`layout-sider`,n),[A,j]=oS(k),M=(0,$.useRef)(null);M.current=e=>{w(e.matches),v?.(e.matches),x!==e.matches&&E(e.matches,`responsive`)},(0,$.useEffect)(()=>{function e(e){return M.current?.(e)}let t;return window?.matchMedia!==void 0&&g&&g in sS&&(t=window.matchMedia(`screen and (max-width: ${sS[g]})`),ki(t?.addEventListener)&&t.addEventListener(`change`,e),e(t)),()=>{ki(t?.removeEventListener)&&t.removeEventListener(`change`,e)}},[g]),(0,$.useEffect)(()=>{let e=uS(`ant-sider-`);return b.addSider(e),()=>b.removeSider(e)},[]);let N=()=>{E(!x,`clickTrigger`)},P=u(y,[`collapsed`]),F=x?m:p,I=cS(F)?`${F}px`:String(F),L=Number.parseFloat(String(m||0))===0?$.createElement(`span`,{onClick:N,className:X(`${k}-zero-width-trigger`,`${k}-zero-width-trigger-${f?`right`:`left`}`),style:h},i||$.createElement(s,null)):null,R=O===`rtl`==!f,z={expanded:R?$.createElement(T,null):$.createElement(ee,null),collapsed:R?$.createElement(ee,null):$.createElement(T,null)}[x?`collapsed`:`expanded`],B=i===null?null:L||$.createElement(`div`,{className:`${k}-trigger`,onClick:N,style:{width:I}},i||z),V={...l,flex:`0 0 ${I}`,maxWidth:I,minWidth:I,width:I},H=X(k,`${k}-${c}`,{[`${k}-collapsed`]:!!x,[`${k}-has-trigger`]:d&&i!==null&&!L,[`${k}-below`]:!!C,[`${k}-zero-width`]:Number.parseFloat(I)===0},r,A,j),U=$.useMemo(()=>({siderCollapsed:x}),[x]);return $.createElement(lS.Provider,{value:U},$.createElement(`aside`,{className:H,...P,style:V,ref:t},$.createElement(`div`,{className:`${k}-children`},a),d||C&&L?B:null))}),fS=(0,$.createContext)({prefixCls:``,firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),pS=e=>{let{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:a}=$.useContext(Vt),o=X({[`${a(`menu`,t)}-item-divider-dashed`]:!!r},n);return $.createElement(Gx,{className:o,...i})},mS=e=>{let{className:t,children:n,icon:r,title:i,danger:a,extra:o}=e,{prefixCls:s,firstLevel:c,direction:l,disableMenuItemTitleTooltip:d,tooltip:f,inlineCollapsed:p,styles:m,classNames:h}=$.useContext(fS),g=e=>{let t=n?.[0],i=$.createElement(`span`,{className:X(`${s}-title-content`,c?h?.itemContent:h?.subMenu?.itemContent,{[`${s}-title-content-with-extra`]:!!o||o===0}),style:c?m?.itemContent:m?.subMenu?.itemContent},n);return(!r||$.isValidElement(n)&&n.type===`span`)&&n&&e&&c&&typeof t==`string`?$.createElement(`div`,{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):i},{siderCollapsed:_}=$.useContext(lS),v=i;i===void 0?v=c?n:``:i===!1&&(v=``);let y=f===!1?void 0:f,b=y&&y.title!==void 0?y.title:v,x={...y??null,title:b};!_&&!p&&(x.title=null,x.open=!1);let S=Je(n).length,C=$.createElement(Ax,{...u(e,[`title`,`icon`,`danger`]),className:X(c?h?.item:h?.subMenu?.item,{[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(r?S+1:S)===1},t),style:{...c?m?.item:m?.subMenu?.item,...e.style},title:typeof i==`string`?i:void 0},Io(r,e=>({className:X(`${s}-item-icon`,c?h?.itemIcon:h?.subMenu?.itemIcon,e.className),style:{...c?m?.itemIcon:m?.subMenu?.itemIcon,...e.style}})),g(p));if(!d&&f!==!1){let e=y&&y.placement?y.placement:l===`rtl`?`left`:`right`,t=`${s}-inline-collapsed-tooltip`,n=e=>({...e,root:X(t,e?.root)}),r=ki(y?.classNames)?e=>n(y.classNames(e)):n(y?.classNames);C=$.createElement(Ny,{...x,placement:e,classNames:r},C)}return C},hS=$.createContext(null),gS=$.forwardRef((e,t)=>{let{children:n,...r}=e,i=$.useContext(hS),a=$.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=Xe(n),s=K(t,o?z(n):null);return $.createElement(hS.Provider,{value:a},$.createElement(gm,{space:!0},o?$.cloneElement(n,{ref:s}):n))}),_S=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Q(a)} ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${t}-item:hover,
92
+ > ${t}-item-active,
93
+ > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:`transparent`},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${n}`).join(`,`)},[`${t}-submenu-arrow`]:{display:`none`}}}},vS=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:`rtl`},[`${e}-submenu-rtl`]:{transformOrigin:`100% 0`},[`${e}-rtl${e}-vertical,
94
+ ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Q(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Q(t)})`}}}}),yS=e=>pr(e),bS=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:c,itemSelectedBg:l,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:_,itemHoverColor:v,lineType:y,colorSplit:b,itemDisabledColor:x,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:w,dangerItemActiveBg:T,dangerItemSelectedBg:E,popupBg:D,itemHoverBg:O,itemActiveBg:k,menuSubMenuBg:A,horizontalItemSelectedColor:j,horizontalItemSelectedBg:M,horizontalItemBorderRadius:N,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:{...yS(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...yS(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:`inherit`}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:`inherit`}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:D},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:D},[`&${n}-horizontal`]:{...t===`dark`?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:`absolute`,insetInline:g,bottom:0,borderBottom:`${Q(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:`""`},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:u,borderBottomColor:j}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Q(f)} ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Q(d)} solid ${i}`,transform:`scaleY(0.0001)`,opacity:0,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${h}`).join(`,`),content:`""`},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:`scaleY(1)`,opacity:1,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${m}`).join(`,`)}}}}}},xS=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:c,itemPaddingInline:l}=e,u=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:`relative`,overflow:`hidden`},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Q(n),paddingInline:l,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
95
+ > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Q(n)},[`${t}-item-group-list ${t}-submenu-title,
96
+ ${t}-submenu-title`]:{paddingInlineEnd:u}}},SS=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,padding:c,paddingXL:l,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:p,paddingXS:m,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:_}=e,v={height:r,lineHeight:Q(r),listStylePosition:`inside`,listStyleType:`disc`};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:`none`},...xS(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...xS(e),boxShadow:h}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${Q(e.calc(o).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 ${p}`,`background-color ${p}`,`padding ${f} ${s}`].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:l}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:`center`}}},[`> ${t}-item,
97
+ > ${t}-item-group > ${t}-item-group-list > ${t}-item,
98
+ > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
99
+ > ${t}-submenu > ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,insetInlineStart:0,paddingInline:`calc(50% - ${Q(e.calc(_).div(2).equal())} - ${Q(u)})`,textOverflow:`clip`,[`
100
+ ${t}-submenu-arrow,
101
+ ${t}-submenu-expand-icon
102
+ `]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:`hidden`},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:_,lineHeight:Q(r),"+ span":{display:`inline-block`,width:0,opacity:0,overflow:`hidden`,marginInlineStart:0}}},[`${t}-item-icon, ${n}`]:{display:`inline-block`},"&-tooltip":{pointerEvents:`none`,[`${t}-item-icon, ${n}`]:{display:`none`},[`${t}-item-extra`]:{paddingInlineStart:c},"a, a:hover":{color:i}},[`${t}-item-group-title`]:{...lr,paddingInline:m}}}]},CS=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:`relative`,display:`block`,margin:0,whiteSpace:`nowrap`,cursor:`pointer`,transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(`,`),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(`,`),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(`,`)}},[`${t}-item-icon`]:{...dr()},[`&${t}-item-only-child`]:{[`> ${o}, > ${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`,cursor:`not-allowed`,pointerEvents:`none`},[`> ${t}-submenu-title`]:{color:`inherit !important`,cursor:`not-allowed`}}}},wS=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:`absolute`,top:`50%`,insetInlineEnd:e.margin,width:a,color:`currentcolor`,transform:`translateY(-50%)`,transition:[`transform`,`opacity`].map(e=>`${e} ${n}`).join(`,`)},"&-arrow":{"&::before, &::after":{position:`absolute`,width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:`currentcolor`,borderRadius:i,transition:[`background-color`,`transform`,`top`,`color`].map(e=>`${e} ${n} ${r}`).join(`,`),content:`""`},"&::before":{transform:`rotate(45deg) translateY(${Q(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Q(o)})`}}}}},TS=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:c,colorSplit:l,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:h,lineType:g,groupTitleLineHeight:_,groupTitleFontSize:v,iconSize:y,iconMarginInlineEnd:b}=e,x=[`> ${t}-typography-ellipsis-single-line`,`> ${n}-item-label > ${t}-typography-ellipsis-single-line`].join(`,`);return[{"":{[n]:{...fr(),"&-hidden":{display:`none`}}},[`${n}-submenu-hidden`]:{display:`none`}},{[n]:{...ur(e),...fr(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:`none`,outline:`none`,transition:`width ${i} 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:`${Q(s)} ${Q(c)}`,fontSize:v,lineHeight:_,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i}`,`background-color ${i}`,`padding ${a}`].map(e=>`${e} ${o}`).join(`,`)},[`${n}-submenu ${n}-sub`]:{cursor:`initial`,transition:[`background-color`,`padding`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`,minWidth:0},[`${n}-item-label`]:{flex:`auto`,minWidth:0,...lr},[x]:{display:`inline`,verticalAlign:`unset`},[`${n}-item-extra`]:{flex:`none`,marginInlineStart:`auto`,paddingInlineStart:e.padding}},[`${n}-item-icon + ${n}-title-content-with-extra`]:{width:`calc(100% - ${Q(e.calc(y).add(b??0).equal())})`},[`${n}-item a`]:{"&::before":{position:`absolute`,inset:0,backgroundColor:`transparent`,content:`""`}},[`${n}-item-divider`]:{overflow:`hidden`,lineHeight:0,borderColor:l,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:`dashed`}},...CS(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Q(e.calc(r).mul(2).equal())} ${Q(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}`]:{borderRadius:f,...CS(e),...wS(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:`100% 0`},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:`100% 100%`},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:`0 100%`},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:`0 0`},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...wS(e),[`&-inline-collapsed ${n}-submenu-arrow,
103
+ &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Q(h)})`},"&::after":{transform:`rotate(45deg) translateX(${Q(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Q(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Q(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Q(h)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:`inherit`}}}]},ES=e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:a,colorTextDescription:o,colorBgContainer:s,colorFillAlter:c,colorFillContent:l,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:m,lineHeight:h,colorBgElevated:g,marginXXS:_,padding:v,fontSize:y,controlHeightSM:b,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:C}=e,w=e.activeBarWidth??0,T=e.activeBarBorderWidth??u,E=e.itemMarginInline??e.marginXXS,D=new pe(S).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:o,groupTitleColor:o,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:l,itemActiveBg:f,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:`transparent`,horizontalItemSelectedBg:`transparent`,colorActiveBarWidth:0,activeBarWidth:w,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:T,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:E,horizontalItemBorderRadius:0,horizontalItemHoverBg:`transparent`,itemHeight:m,groupTitleLineHeight:h,collapsedWidth:m*2,popupBg:g,itemMarginBlock:_,itemPaddingInline:v,horizontalLineHeight:`${m*1.15}px`,iconSize:y,iconMarginInlineEnd:b-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new pe(S).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:n,darkItemBg:`#001529`,darkPopupBg:`#001529`,darkSubMenuItemBg:`#000c17`,darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:`transparent`,darkGroupTitleColor:D,darkItemHoverColor:S,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n,itemWidth:w?`calc(100% + ${T}px)`:`calc(100% - ${E*2}px)`}},DS=(e,t=e,n=!0)=>yr(`Menu`,e=>{let{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:a,darkItemBg:o,darkSubMenuItemBg:s,darkItemSelectedColor:c,darkItemSelectedBg:l,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:_,popupBg:v,darkPopupBg:y}=e,b=e.calc(r).div(7).mul(5).equal(),x=wn(e,{menuArrowSize:b,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(b).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),S=wn(x,{itemColor:i,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:o,popupBg:y,subMenuItemBg:s,itemActiveBg:`transparent`,itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:a,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:_,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:c,horizontalItemSelectedBg:l});return[TS(x),_S(x),SS(x),bS(x,`light`),bS(S,`dark`),vS(x),Zl(x),bu(x,`slide-up`),bu(x,`slide-down`),Fu(x,`zoom-big`)]},ES,{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),OS=e=>{let{popupClassName:t,icon:n,title:r,theme:i}=e,a=$.useContext(fS),{prefixCls:o,inlineCollapsed:s,theme:c,classNames:l,styles:d}=a,f=Xb(),p;if(!n)p=s&&!f.length&&r&&typeof r==`string`?$.createElement(`div`,{className:`${o}-inline-collapsed-noicon`},r.charAt(0)):$.createElement(`span`,{className:`${o}-title-content`},r);else{let e=$.isValidElement(r)&&r.type===`span`;p=$.createElement($.Fragment,null,Io(n,e=>({className:X(e.className,`${o}-item-icon`,l?.itemIcon),style:{...e.style,...d?.itemIcon}})),e?r:$.createElement(`span`,{className:`${o}-title-content`},r))}let m=$.useMemo(()=>({...a,firstLevel:!1}),[a]),[h]=vc(`Menu`);return $.createElement(fS.Provider,{value:m},$.createElement(Wx,{...u(e,[`icon`]),title:p,classNames:{list:l?.subMenu?.list,listTitle:l?.subMenu?.itemTitle},styles:{list:d?.subMenu?.list,listTitle:d?.subMenu?.itemTitle},popupClassName:X(o,t,l?.popup?.root,`${o}-${i||c}`),popupStyle:{zIndex:h,...e.popupStyle,...d?.popup?.root}}))};function kS(e){return e===null||e===!1}var AS={item:mS,submenu:OS,divider:pS},jS=(0,$.forwardRef)((e,t)=>{let n=$.useContext(hS),r=n||{},{prefixCls:i,className:a,style:o,theme:s=`light`,expandIcon:c,_internalDisableMenuItemTitleTooltip:l,tooltip:d,inlineCollapsed:f,siderCollapsed:p,rootClassName:m,mode:h,selectable:g,onClick:_,overflowedIndicatorPopupClassName:v,classNames:y,styles:b,...x}=e,{menu:S}=$.useContext(Vt),{getPrefixCls:C,getPopupContainer:w,direction:T,className:E,style:D,classNames:O,styles:k}=Wt(`menu`),A=C(),j=u(x,[`collapsedWidth`]);r.validator?.({mode:h});let M=J((...e)=>{_?.(...e),r.onClick?.()}),N=r.mode||h,P=g??r.selectable,F=f??p,I={...e,mode:N,inlineCollapsed:F,selectable:P,theme:s},[L,R]=zi([O,y],[k,b],{props:I},{popup:{_default:`root`},subMenu:{_default:`item`}}),z={horizontal:{motionName:`${A}-slide-up`},inline:yl(A),other:{motionName:`${A}-zoom-big`}},B=C(`menu`,i||r.prefixCls),V=la(B),[H,U]=DS(B,V,!n),W=X(`${B}-${s}`,E,a),G=$.useMemo(()=>{if(ki(c)||kS(c))return c||null;if(ki(r.expandIcon)||kS(r.expandIcon))return r.expandIcon||null;if(ki(S?.expandIcon)||kS(S?.expandIcon))return S?.expandIcon||null;let e=c??r?.expandIcon??S?.expandIcon;return Io(e,{className:X(`${B}-submenu-expand-icon`,$.isValidElement(e)?e.props?.className:void 0)})},[c,r?.expandIcon,S?.expandIcon,B]),ee=$.useMemo(()=>({prefixCls:B,inlineCollapsed:F||!1,direction:T,firstLevel:!0,theme:s,mode:N,disableMenuItemTitleTooltip:l,tooltip:d,classNames:L,styles:R}),[B,F,T,l,s,N,L,R,d]);return $.createElement(hS.Provider,{value:null},$.createElement(fS.Provider,{value:ee},$.createElement(eS,{getPopupContainer:w,overflowedIndicator:$.createElement(Ye,null),overflowedIndicatorPopupClassName:X(B,`${B}-${s}`,v),classNames:{list:L.list,listTitle:L.itemTitle},styles:{list:R.list,listTitle:R.itemTitle},mode:N,selectable:P,onClick:M,...j,inlineCollapsed:F,style:{...R.root,...D,...o},className:W,prefixCls:B,direction:T,defaultMotions:z,expandIcon:G,ref:t,rootClassName:X(m,H,r.rootClassName,U,V,L.root),_internalComponents:AS})))}),MS=(0,$.forwardRef)((e,t)=>{let n=(0,$.useRef)(null),r=$.useContext(lS);return(0,$.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{n.current?.focus(e)}})),$.createElement(jS,{ref:n,...e,...r})});MS.Item=mS,MS.SubMenu=OS,MS.Divider=pS,MS.ItemGroup=Jx;var NS=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},PS=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:c,paddingBlock:l,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:h}=e;return[{[t]:{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:`block`,"&::before":{position:`absolute`,insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:`""`},"&-menu-vertical":{maxHeight:`100vh`,overflowY:`auto`},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:`relative`,[`${o}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:`rotate(180deg)`}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:`none`},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft,
104
+ &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft,
105
+ &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom,
106
+ &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom,
107
+ &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight,
108
+ &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:du},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft,
109
+ &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft,
110
+ &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top,
111
+ &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top,
112
+ &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight,
113
+ &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:pu},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft,
114
+ &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom,
115
+ &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:fu},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft,
116
+ &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top,
117
+ &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:mu}}},hy(e,h,{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`]:{...ur(e),[n]:{padding:d,listStyleType:`none`,backgroundColor:h,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,...mr(e),"&:empty":{padding:0,boxShadow:`none`},[`${n}-item-group-title`]:{padding:`${Q(l)} ${Q(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, > ${n}-item-label > 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`]:{display:`flex`,margin:0,padding:`${Q(l)} ${Q(m)}`,color:e.colorText,fontWeight:`normal`,fontSize:u,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...mr(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:`not-allowed`,"&:hover":{color:f,backgroundColor:h,cursor:`not-allowed`},a:{pointerEvents:`none`}},"&-divider":{height:1,margin:`${Q(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.colorIcon,fontSize:p,fontStyle:`normal`}}},[`${n}-item-group-list`]:{margin:`0 ${Q(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:h,cursor:`not-allowed`}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[bu(e,`slide-up`),bu(e,`slide-down`),uu(e,`move-up`),uu(e,`move-down`),Fu(e,`zoom-big`)]]},FS=yr(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=wn(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[PS(a),NS(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...py({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...dy(e)}),{resetStyle:!1}),IS=$.forwardRef((e,t)=>{let{menu:n,arrow:r,prefixCls:i,children:a,trigger:o,disabled:s,dropdownRender:c,popupRender:l,getPopupContainer:d,overlayClassName:f,rootClassName:p,overlayStyle:m,open:h,onOpenChange:g,mouseEnterDelay:_=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:b=!0,placement:x=``,transitionName:S,classNames:C,styles:w,destroyPopupOnHide:E,destroyOnHidden:D}=e,{getPrefixCls:O,direction:k,getPopupContainer:A,className:j,style:M,classNames:N,styles:P}=Wt(`dropdown`),F={...e,mouseEnterDelay:_,mouseLeaveDelay:y,autoAdjustOverflow:b},[I,L]=zi([N,C],[P,w],{props:F}),R={...M,...m,...L.root},z=l||c;gt(`Dropdown`);let B=$.useMemo(()=>{let e=O();return S===void 0?x.includes(`top`)?`${e}-slide-down`:`${e}-slide-up`:S},[O,x,S]),V=$.useMemo(()=>x?x.includes(`Center`)?x.slice(0,x.indexOf(`Center`)):x:k===`rtl`?`bottomRight`:`bottomLeft`,[x,k]),H=O(`dropdown`,i),U=la(H),[W,G]=FS(H,U),[,q]=cr(),te=$.Children.only(ji(a)?$.createElement(`span`,null,a):a),ne=K(t,te.ref),re=Io(te,{className:X(`${H}-trigger`,{[`${H}-rtl`]:k===`rtl`},te.props.className),disabled:te.props.disabled??s,ref:ne}),ie=s?[]:o,ae=!!ie?.includes(`contextMenu`),[oe,se]=v(!1,h),ce=J(e=>{g?.(e,{source:`trigger`}),se(e)}),le=X(f,p,W,G,U,j,I.root,{[`${H}-rtl`]:k===`rtl`}),Y=by({arrowPointAtCenter:Oi(r)&&r.pointAtCenter,autoAdjustOverflow:b,offset:q.marginXXS,arrowWidth:r?q.sizePopupArrow:0,borderRadius:q.borderRadius}),ue=J(()=>{n?.selectable&&n?.multiple||(g?.(!1,{source:`menu`}),se(!1))}),de=()=>{let e=u(I,[`root`]),t=u(L,[`root`]),r;return n?.items&&(r=$.createElement(MS,{...n,classNames:{...e,subMenu:{...e}},styles:{...t,subMenu:{...t}}})),z&&(r=z(r)),r=$.Children.only(typeof r==`string`?$.createElement(`span`,null,r):r),$.createElement(gS,{prefixCls:`${H}-menu`,rootClassName:X(G,U),expandIcon:$.createElement(`span`,{className:`${H}-menu-submenu-arrow`},k===`rtl`?$.createElement(ee,{className:`${H}-menu-submenu-arrow-icon`}):$.createElement(T,{className:`${H}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:ue,validator:({mode:e})=>{}},r)},[fe,pe]=vc(`Dropdown`,R.zIndex),me=$.createElement(zb,{alignPoint:ae,...u(e,[`rootClassName`,`onOpenChange`]),mouseEnterDelay:_,mouseLeaveDelay:y,visible:oe,builtinPlacements:Y,arrow:!!r,overlayClassName:le,prefixCls:H,getPopupContainer:d||A,transitionName:B,trigger:ie,overlay:de,placement:V,onVisibleChange:ce,overlayStyle:{...R,zIndex:fe},autoDestroy:D??E},re);return fe&&(me=$.createElement(fc.Provider,{value:pe},me)),me}),LS=og(IS,`align`,void 0,`dropdown`,e=>e);IS._InternalPanelDoNotUseOrYouWillBeFired=e=>$.createElement(LS,{...e},$.createElement(`span`,null));var RS=({children:e})=>{let{getPrefixCls:t}=$.useContext(Vt),n=t(`breadcrumb`),{classNames:r,styles:i}=$.useContext(Ab);return $.createElement(`li`,{className:X(`${n}-separator`,r?.separator),style:i?.separator,"aria-hidden":`true`},e===``?e:e||`/`)};RS.__ANT_BREADCRUMB_SEPARATOR=!0;function zS(e,t){if(!Ti(e.title))return null;let n=Object.keys(t).join(`|`);return Oi(e.title)?e.title:String(e.title).replace(RegExp(`:(${n})`,`g`),(e,n)=>t[n]||e)}function BS(e,t,n,r){if(!Ti(n))return null;let{className:i,onClick:a,...o}=t,s={...V(o,{data:!0,aria:!0}),onClick:a};return r===void 0?$.createElement(`span`,{...s,className:X(`${e}-link`,i)},n):$.createElement(`a`,{...s,className:X(`${e}-link`,i),href:r},n)}function VS(e,t){return(n,r,i,a,o)=>t?t(n,r,i,a):BS(e,n,zS(n,r),o)}var HS=e=>{let{prefixCls:t,separator:n=`/`,children:r,menu:i,dropdownProps:a,href:o,dropdownIcon:s}=e,{classNames:c,styles:l}=$.useContext(Ab),u=(e=>{if(i){let n={...a};if(i){let{items:e,...t}=i||{};n.menu={...t,items:e?.map(({key:e,title:t,label:n,path:r,...i},a)=>{let s=n??t;return r&&(s=$.createElement(`a`,{href:`${o}${r}`},s)),{...i,key:e??a,label:s}})}}return $.createElement(IS,{placement:`bottom`,...n},$.createElement(`span`,{className:`${t}-overlay-link`},e,s))}return e})(r);return Ti(u)?$.createElement($.Fragment,null,$.createElement(`li`,{className:X(`${t}-item`,c?.item),style:l?.item},u),n&&$.createElement(RS,null,n)):null},US=e=>{let{prefixCls:t,children:n,href:r,...i}=e,{getPrefixCls:a}=$.useContext(Vt),o=a(`breadcrumb`,t);return $.createElement(HS,{...i,prefixCls:o},BS(o,i,n,r))};US.__ANT_BREADCRUMB_ITEM=!0;var WS=e=>{let{componentCls:t,iconCls:n,calc:r}=e;return{[t]:{...ur(e),color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:`flex`,flexWrap:`wrap`,margin:0,padding:0,listStyle:`none`},[`${t}-item a`]:{color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${Q(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},...mr(e)},[`${t}-item:last-child`]:{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`
118
+ > ${n} + span,
119
+ > ${n} + a
120
+ `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:`inline-block`,padding:`0 ${Q(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`}}}},GS=yr(`Breadcrumb`,e=>WS(wn(e,{})),e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}));function KS(e){let{breadcrumbName:t,children:n,...r}=e,i={title:t,...r};return n&&(i.menu={items:n.map(({breadcrumbName:e,...t})=>({...t,title:e}))}),i}function qS(e,t){return(0,$.useMemo)(()=>e||(t?t.map(KS):null),[e,t])}var JS=(e,t)=>{if(t===void 0)return t;let n=(t||``).replace(/^\//,``);return Object.keys(e).forEach(t=>{n=n.replace(`:${t}`,e[t])}),n},YS=e=>{let{prefixCls:t,separator:n,style:r,className:i,rootClassName:a,routes:o,items:s,children:c,itemRender:l,params:u={},classNames:d,styles:f,dropdownIcon:p,...m}=e,{getPrefixCls:h,direction:g,className:_,style:v,classNames:y,styles:b,separator:x,dropdownIcon:S}=Wt(`breadcrumb`),C=n??x??`/`,w=p??S??$.createElement(q,null),T,E=h(`breadcrumb`,t),[D,O]=GS(E),k=qS(s,o),A=$.useMemo(()=>({...e,separator:C}),[e,C]),[j,M]=zi([y,d],[b,f],{props:A}),N=VS(E,l);if(k&&k.length>0){let e=[],t=s||o;T=k.map((n,r)=>{let{path:i,key:a,type:o,menu:s,onClick:c,className:l,style:d,separator:f,dropdownProps:p}=n,m=JS(u,i);m!==void 0&&e.push(m);let h=a??r;if(o===`separator`)return $.createElement(RS,{key:h},f);let g={},_=r===k.length-1;s&&(g.menu=s);let{href:v}=n;return e.length&&m!==void 0&&(v=`#/${e.join(`/`)}`),$.createElement(HS,{key:h,...g,...V(n,{data:!0,aria:!0}),className:l,style:d,dropdownProps:p,dropdownIcon:w,href:v,separator:_?``:C,onClick:c,prefixCls:E},N(n,u,t,e,v))})}else if(c){let e=Je(c).length;T=Je(c).map((t,n)=>t&&Io(t,{separator:n===e-1?``:C,key:n}))}let P=X(E,_,{[`${E}-rtl`]:g===`rtl`},i,a,j.root,D,O),F={...M.root,...v,...r},I=$.useMemo(()=>({classNames:j,styles:M}),[j,M]);return $.createElement(Ab.Provider,{value:I},$.createElement(`nav`,{className:P,style:F,...m},$.createElement(`ol`,null,T)))};YS.Item=US,YS.Separator=RS;var XS=of,ZS=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekday=r()})(e,(function(){return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,`day`).add(e,`day`)}}}))})),QS=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var o=e.name?e:e.$locale(),s=i(o[t]),c=i(o[n]),l=s||c.map((function(e){return e.slice(0,r)}));if(!a)return l;var u=o.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format(`MMMM`):a(e,`months`)},monthsShort:function(t){return t?t.format(`MMM`):a(e,`monthsShort`,`months`,3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format(`dddd`):a(e,`weekdays`)},weekdaysMin:function(t){return t?t.format(`dd`):a(e,`weekdaysMin`,`weekdays`,2)},weekdaysShort:function(t){return t?t.format(`ddd`):a(e,`weekdaysShort`,`weekdays`,3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(o(),`months`)},n.monthsShort=function(){return a(o(),`monthsShort`,`months`,3)},n.weekdays=function(e){return a(o(),`weekdays`,null,null,e)},n.weekdaysShort=function(e){return a(o(),`weekdaysShort`,`weekdays`,3,e)},n.weekdaysMin=function(e){return a(o(),`weekdaysMin`,`weekdays`,2,e)}}}))})),$S=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),eC=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekYear=r()})(e,(function(){return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return t===1&&e===11?n+1:e===0&&t>=52?n-1:n}}}))})),tC=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),nC=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),rC=t(ft()),iC=t(ZS()),aC=t(QS()),oC=t($S()),sC=t(eC()),cC=t(tC()),lC=t(nC());rC.default.extend(lC.default),rC.default.extend(cC.default),rC.default.extend(iC.default),rC.default.extend(aC.default),rC.default.extend(oC.default),rC.default.extend(sC.default),rC.default.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 uC={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`},dC=function(e){return uC[e]||e.split(`_`)[0]},fC=function(e){return!rC.default.isDayjs(e)||e instanceof rC.default?e:(0,rC.default)(e.valueOf())},pC={getNow:function(){var e=(0,rC.default)();return typeof e.tz==`function`?e.tz():e},getFixedDate:function(e){return(0,rC.default)(e,[`YYYY-M-DD`,`YYYY-MM-DD`])},getEndDate:function(e){return fC(e).endOf(`month`)},getWeekDay:function(e){var t=fC(e).locale(`en`);return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return fC(e).year()},getMonth:function(e){return fC(e).month()},getDate:function(e){return fC(e).date()},getHour:function(e){return fC(e).hour()},getMinute:function(e){return fC(e).minute()},getSecond:function(e){return fC(e).second()},getMillisecond:function(e){return fC(e).millisecond()},addYear:function(e,t){return fC(e).add(t,`year`)},addMonth:function(e,t){return fC(e).add(t,`month`)},addDate:function(e,t){return fC(e).add(t,`day`)},setYear:function(e,t){return fC(e).year(t)},setMonth:function(e,t){return fC(e).month(t)},setDate:function(e,t){return fC(e).date(t)},setHour:function(e,t){return fC(e).hour(t)},setMinute:function(e,t){return fC(e).minute(t)},setSecond:function(e,t){return fC(e).second(t)},setMillisecond:function(e,t){return fC(e).millisecond(t)},isAfter:function(e,t){return fC(e).isAfter(fC(t))},isValidate:function(e){return fC(e).isValid()},locale:{getWeekFirstDay:function(e){return(0,rC.default)().locale(dC(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return fC(t).locale(dC(e)).weekday(0)},getWeek:function(e,t){return fC(t).locale(dC(e)).week()},getShortWeekDays:function(e){return(0,rC.default)().locale(dC(e)).localeData().weekdaysMin()},getShortMonths:function(e){return(0,rC.default)().locale(dC(e)).localeData().monthsShort()},format:function(e,t,n){return fC(t).locale(dC(e)).format(n)},parse:function(e,t,n){for(var r=dC(e),i=0;i<n.length;i+=1){var a=n[i],o=t;if(a.includes(`wo`)||a.includes(`Wo`)){for(var s=o.split(`-`)[0],c=o.split(`-`)[1],l=(0,rC.default)(s,`YYYY`).startOf(`year`).locale(r),u=0;u<=52;u+=1){var d=l.add(u,`week`);if(d.format(`Wo`)===c)return d}return null}var f=(0,rC.default)(o,a,!0).locale(r);if(f.isValid())return f}return null}}};function mC(e,t){return e===void 0?t?`bottomRight`:`bottomLeft`:e}var hC=$.createContext(null);function gC(e){"@babel/helpers - typeof";return gC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},gC(e)}function _C(e,t,n){return t=vC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vC(e){var t=yC(e,`string`);return gC(t)==`symbol`?t:String(t)}function yC(e,t){if(gC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(gC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var bC={bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function xC(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,i=e.popupAlign,a=e.transitionName,o=e.getPopupContainer,s=e.children,c=e.range,l=e.placement,u=e.builtinPlacements,d=u===void 0?bC:u,f=e.direction,p=e.visible,m=e.onClose,h=`${$.useContext(hC).prefixCls}-dropdown`,g=mC(l,f===`rtl`);return $.createElement(No,{showAction:[],hideAction:[`click`],popupPlacement:g,builtinPlacements:d,prefixCls:h,popupMotion:{motionName:a},popup:t,popupAlign:i,popupVisible:p,popupClassName:X(r,_C(_C({},`${h}-range`,c),`${h}-rtl`,f===`rtl`)),popupStyle:n,stretch:`minWidth`,getPopupContainer:o,onPopupVisibleChange:function(e){e||m()}},s)}function SC(e){return EC(e)||TC(e)||wC(e)||CC()}function CC(){throw TypeError(`Invalid attempt to spread non-iterable instance.
121
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wC(e,t){if(e){if(typeof e==`string`)return DC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DC(e,t)}}function TC(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function EC(e){if(Array.isArray(e))return DC(e)}function DC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OC(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`0`,r=String(e);r.length<t;)r=`${n}${r}`;return r}function kC(e){return e==null?[]:Array.isArray(e)?e:[e]}function AC(e,t,n){var r=SC(e);return r[t]=n,r}function jC(e,t){var n={};return(t||Object.keys(e)).forEach(function(t){e[t]!==void 0&&(n[t]=e[t])}),n}function MC(e,t,n){if(n)return n;switch(e){case`time`:return t.fieldTimeFormat;case`datetime`:return t.fieldDateTimeFormat;case`month`:return t.fieldMonthFormat;case`year`:return t.fieldYearFormat;case`quarter`:return t.fieldQuarterFormat;case`week`:return t.fieldWeekFormat;default:return t.fieldDateFormat}}function NC(e,t,n){var r=n===void 0?t[t.length-1]:n,i=t.find(function(t){return e[t]});return r===i?void 0:e[i]}function PC(e){return jC(e,[`placement`,`builtinPlacements`,`popupAlign`,`getPopupContainer`,`transitionName`,`direction`])}function FC(e){"@babel/helpers - typeof";return FC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},FC(e)}function IC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function LC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?IC(Object(n),!0).forEach(function(t){RC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function RC(e,t,n){return t=zC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zC(e){var t=BC(e,`string`);return FC(t)==`symbol`?t:String(t)}function BC(e,t){if(FC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(FC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function VC(e,t,n,r){var i=$.useMemo(function(){return e||function(e,r){var i=e;return t&&r.type===`date`?t(i,r.today):n&&r.type===`month`?n(i,r.locale):r.originNode}},[e,n,t]);return $.useCallback(function(e,t){return i(e,LC(LC({},t),{},{range:r}))},[i,r])}function HC(e,t){return qC(e)||KC(e,t)||WC(e,t)||UC()}function UC(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
122
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WC(e,t){if(e){if(typeof e==`string`)return GC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GC(e,t)}}function GC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function KC(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function qC(e){if(Array.isArray(e))return e}function JC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=HC($.useState([!1,!1]),2),i=r[0],a=r[1];return[$.useMemo(function(){return i.map(function(r,i){if(r)return!0;var a=e[i];return a?!!(!n[i]&&!a||a&&t(a,{activeIndex:i})):!1})},[e,i,t,n]),function(e,t){a(function(n){return AC(n,t,e)})}]}function YC(e){"@babel/helpers - typeof";return YC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},YC(e)}function XC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ZC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?XC(Object(n),!0).forEach(function(t){QC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QC(e,t,n){return t=$C(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $C(e){var t=ew(e,`string`);return YC(t)==`symbol`?t:String(t)}function ew(e,t){if(YC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(YC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function tw(e,t,n,r,i){var a=``,o=[];return e&&o.push(i?`hh`:`HH`),t&&o.push(`mm`),n&&o.push(`ss`),a=o.join(`:`),r&&(a+=`.SSS`),i&&(a+=` A`),a}function nw(e,t,n,r,i,a){var o=e.fieldDateTimeFormat,s=e.fieldDateFormat,c=e.fieldTimeFormat,l=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,f=e.fieldQuarterFormat,p=e.yearFormat,m=e.cellYearFormat,h=e.cellQuarterFormat,g=e.dayFormat,_=e.cellDateFormat,v=tw(t,n,r,i,a);return ZC(ZC({},e),{},{fieldDateTimeFormat:o||`YYYY-MM-DD ${v}`,fieldDateFormat:s||`YYYY-MM-DD`,fieldTimeFormat:c||v,fieldMonthFormat:l||`YYYY-MM`,fieldYearFormat:u||`YYYY`,fieldWeekFormat:d||`gggg-wo`,fieldQuarterFormat:f||`YYYY-[Q]Q`,yearFormat:p||`YYYY`,cellYearFormat:m||`YYYY`,cellQuarterFormat:h||`[Q]Q`,cellDateFormat:_||g||`D`})}function rw(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,a=t.showMillisecond,o=t.use12Hours;return $.useMemo(function(){return nw(e,n,r,i,a,o)},[e,n,r,i,a,o])}function iw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?iw(Object(n),!0).forEach(function(t){ow(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ow(e,t,n){return t=sw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sw(e){var t=cw(e,`string`);return hw(t)==`symbol`?t:String(t)}function cw(e,t){if(hw(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(hw(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function lw(e,t){return mw(e)||pw(e,t)||dw(e,t)||uw()}function uw(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
123
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dw(e,t){if(e){if(typeof e==`string`)return fw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fw(e,t)}}function fw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function pw(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function mw(e){if(Array.isArray(e))return e}function hw(e){"@babel/helpers - typeof";return hw=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hw(e)}function gw(e,t,n){return n??t.some(function(t){return e.includes(t)})}var _w=[`showNow`,`showHour`,`showMinute`,`showSecond`,`showMillisecond`,`use12Hours`,`hourStep`,`minuteStep`,`secondStep`,`millisecondStep`,`hideDisabledOptions`,`defaultValue`,`disabledHours`,`disabledMinutes`,`disabledSeconds`,`disabledMilliseconds`,`disabledTime`,`changeOnScroll`,`defaultOpenValue`];function vw(e){var t=jC(e,_w),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=hw(i)===`object`?i.format:i),r===`time`&&(t.format=i),[t,i]}function yw(e){return e&&typeof e==`string`}function bw(e,t,n,r){return[e,t,n,r].some(function(e){return e!==void 0})}function xw(e,t,n,r,i){var a=t,o=n,s=r;if(!e&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(e){var c=[a,o,s].some(function(e){return e===!1}),l=[a,o,s].some(function(e){return e===!0}),u=c?!0:!l;a=a??u,o=o??u,s=s??u}return[a,o,s,i]}function Sw(e){var t=e.showTime,n=lw(vw(e),2),r=n[0],i=n[1],a=t&&hw(t)===`object`?t:{},o=aw(aw({defaultOpenValue:a.defaultOpenValue||a.defaultValue},r),a),s=o.showMillisecond,c=o.showHour,l=o.showMinute,u=o.showSecond,d=lw(xw(bw(c,l,u,s),c,l,u,s),3);return c=d[0],l=d[1],u=d[2],[o,aw(aw({},o),{},{showHour:c,showMinute:l,showSecond:u,showMillisecond:s}),o.format,i]}function Cw(e,t,n,r,i){if(e===`datetime`||e===`time`){for(var a=r,o=MC(e,i,null),s=[t,n],c=0;c<s.length;c+=1){var l=kC(s[c])[0];if(yw(l)){o=l;break}}var u=a.showHour,d=a.showMinute,f=a.showSecond,p=a.showMillisecond,m=a.use12Hours,h=gw(o,[`a`,`A`,`LT`,`LLL`,`LTS`],m),g=bw(u,d,f,p);g||(u=gw(o,[`H`,`h`,`k`,`LT`,`LLL`]),d=gw(o,[`m`,`LT`,`LLL`]),f=gw(o,[`s`,`LTS`]),p=gw(o,[`SSS`]));var _=lw(xw(g,u,d,f,p),3);u=_[0],d=_[1],f=_[2];var v=t||tw(u,d,f,p,h);return aw(aw({},a),{},{format:v,showHour:u,showMinute:d,showSecond:f,showMillisecond:p,use12Hours:h})}return null}function ww(e){"@babel/helpers - typeof";return ww=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ww(e)}function Tw(e,t,n){return t===!1?null:(t&&ww(t)===`object`?t:{}).clearIcon||n||$.createElement(`span`,{className:`${e}-clear-btn`})}function Ew(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function Dw(e,t,n){return Ew(t,n,function(){return Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)})}function Ow(e,t,n){return Ew(t,n,function(){return e.getYear(t)===e.getYear(n)})}function kw(e,t){return Math.floor(e.getMonth(t)/3)+1}function Aw(e,t,n){return Ew(t,n,function(){return Ow(e,t,n)&&kw(e,t)===kw(e,n)})}function jw(e,t,n){return Ew(t,n,function(){return Ow(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function Mw(e,t,n){return Ew(t,n,function(){return Ow(e,t,n)&&jw(e,t,n)&&e.getDate(t)===e.getDate(n)})}function Nw(e,t,n){return Ew(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function Pw(e,t,n){return Ew(t,n,function(){return Mw(e,t,n)&&Nw(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function Fw(e,t,n,r){return Ew(n,r,function(){return Ow(e,e.locale.getWeekFirstDate(t,n),e.locale.getWeekFirstDate(t,r))&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Iw(e,t,n,r,i){switch(i){case`date`:return Mw(e,n,r);case`week`:return Fw(e,t.locale,n,r);case`month`:return jw(e,n,r);case`quarter`:return Aw(e,n,r);case`year`:return Ow(e,n,r);case`decade`:return Dw(e,n,r);case`time`:return Nw(e,n,r);default:return Pw(e,n,r)}}function Lw(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function Rw(e,t,n,r,i){return Iw(e,t,n,r,i)?!0:e.isAfter(n,r)}function zw(e,t,n){var r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),a=t.getWeekDay(i),o=t.addDate(i,r-a);return t.getMonth(o)===t.getMonth(n)&&t.getDate(o)>1&&(o=t.addDate(o,-7)),o}function Bw(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?typeof i==`function`?i(e):n.locale.format(r.locale,e,i):``}function Vw(e,t,n){var r=t,i=[`getHour`,`getMinute`,`getSecond`,`getMillisecond`];return[`setHour`,`setMinute`,`setSecond`,`setMillisecond`].forEach(function(t,a){r=n?e[t](r,e[i[a]](n)):e[t](r,0)}),r}function Hw(e,t,n,r,i){return J(function(a,o){return!!(n&&n(a,o)||r&&e.isAfter(r,a)&&!Iw(e,t,r,a,o.type)||i&&e.isAfter(a,i)&&!Iw(e,t,i,a,o.type))})}function Uw(e){"@babel/helpers - typeof";return Uw=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Uw(e)}function Ww(e,t,n){return $.useMemo(function(){var r=kC(MC(e,t,n)),i=r[0],a=Uw(i)===`object`&&i.type===`mask`?i.format:null;return[r.map(function(e){return typeof e==`string`||typeof e==`function`?e:e.format}),a]},[e,t,n])}function Gw(e,t,n){return typeof e[0]==`function`||n?!0:t}function Kw(e){"@babel/helpers - typeof";return Kw=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Kw(e)}function qw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qw(Object(n),!0).forEach(function(t){Yw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yw(e,t,n){return t=Xw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xw(e){var t=Zw(e,`string`);return Kw(t)==`symbol`?t:String(t)}function Zw(e,t){if(Kw(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Kw(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Qw(e,t,n,r){return J(function(i,a){var o=Jw({type:t},a);if(delete o.activeIndex,!e.isValidate(i)||n&&n(i,o))return!0;if((t===`date`||t===`time`)&&r){var s=a&&a.activeIndex===1?`end`:`start`,c=r.disabledTime?.call(r,i,s,{from:o.from})||{},l=c.disabledHours,u=c.disabledMinutes,d=c.disabledSeconds,f=c.disabledMilliseconds,p=r.disabledHours,m=r.disabledMinutes,h=r.disabledSeconds,g=l||p,_=u||m,v=d||h,y=e.getHour(i),b=e.getMinute(i),x=e.getSecond(i),S=e.getMillisecond(i);if(g&&g().includes(y)||_&&_(y).includes(b)||v&&v(y,b).includes(x)||f&&f(y,b,x).includes(S))return!0}return!1})}function $w(e){"@babel/helpers - typeof";return $w=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},$w(e)}function eT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?eT(Object(n),!0).forEach(function(t){nT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nT(e,t,n){return t=rT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rT(e){var t=iT(e,`string`);return $w(t)==`symbol`?t:String(t)}function iT(e,t){if($w(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if($w(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function aT(e,t){return uT(e)||lT(e,t)||sT(e,t)||oT()}function oT(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
124
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sT(e,t){if(e){if(typeof e==`string`)return cT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cT(e,t)}}function cT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lT(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function uT(e){if(Array.isArray(e))return e}function dT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return $.useMemo(function(){var n=e&&kC(e);return t&&n&&(n[1]=n[1]||n[0]),n},[e,t])}function fT(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,a=i===void 0?`date`:i,o=e.prefixCls,s=o===void 0?`rc-picker`:o,c=e.previewValue,l=c===void 0?`hover`:c,u=e.styles,d=u===void 0?{}:u,f=e.classNames,p=f===void 0?{}:f,m=e.order,h=m===void 0?!0:m,g=e.components,_=g===void 0?{}:g,v=e.inputRender,y=e.allowClear,b=e.clearIcon,x=e.needConfirm,S=e.multiple,C=e.format,w=e.inputReadOnly,T=e.disabledDate,E=e.minDate,D=e.maxDate,O=e.showTime,k=e.value,A=e.defaultValue,j=e.pickerValue,M=e.defaultPickerValue,N=dT(k),P=dT(A),F=dT(j),I=dT(M),L=a===`date`&&O?`datetime`:a,R=L===`time`||L===`datetime`,z=R||S,B=x??R,V=aT(Sw(e),4),H=V[0],U=V[1],W=V[2],G=V[3],ee=rw(r,U),K=$.useMemo(function(){return Cw(L,W,G,H,ee)},[L,W,G,H,ee]),q=$.useMemo(function(){return tT(tT({},e),{},{previewValue:l,prefixCls:s,locale:ee,picker:a,styles:d,classNames:p,order:h,components:tT({input:v},_),clearIcon:Tw(s,y,b),showTime:K,value:N,defaultValue:P,pickerValue:F,defaultPickerValue:I},t?.())},[e]),te=aT(Ww(L,ee,C),2),ne=te[0],re=te[1],J=Gw(ne,w,S),ie=Hw(n,r,T,E,D),ae=Qw(n,a,ie,K);return[$.useMemo(function(){return tT(tT({},q),{},{needConfirm:B,inputReadOnly:J,disabledDate:ie})},[q,B,J,ie]),L,z,ne,re,ae]}function pT(e,t){return vT(e)||_T(e,t)||hT(e,t)||mT()}function mT(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
125
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hT(e,t){if(e){if(typeof e==`string`)return gT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gT(e,t)}}function gT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _T(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function vT(e){if(Array.isArray(e))return e}function yT(e,t,n){var r=pT(v(t,e),2),i=r[0],a=r[1],o=pT($.useState({}),2)[1],s=J(function(e){a(e),o({})}),c=$.useRef(e),l=$.useRef(),u=function(){Y.cancel(l.current)},d=J(function(){s(c.current),n&&i!==c.current&&n(c.current)}),f=J(function(e,t){u(),c.current=e,e||t?d():l.current=Y(d)});return $.useEffect(function(){return u},[]),[i,f]}function bT(e,t){return TT(e)||wT(e,t)||ST(e,t)||xT()}function xT(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
126
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ST(e,t){if(e){if(typeof e==`string`)return CT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CT(e,t)}}function CT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wT(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function TT(e){if(Array.isArray(e))return e}function ET(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=bT(yT(n.every(function(e){return e})?!1:e,t||!1,r),2),a=i[0],o=i[1];function s(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!t.inherit||a)&&o(e,t.force)}return[a,s]}function DT(e){var t=$.useRef();return $.useImperativeHandle(e,function(){return{nativeElement:t.current?.nativeElement,focus:function(e){var n;(n=t.current)==null||n.focus(e)},blur:function(){var e;(e=t.current)==null||e.blur()}}}),t}function OT(e,t){return NT(e)||MT(e,t)||AT(e,t)||kT()}function kT(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
127
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AT(e,t){if(e){if(typeof e==`string`)return jT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jT(e,t)}}function jT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function MT(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function NT(e){if(Array.isArray(e))return e}function PT(e,t){return $.useMemo(function(){return e||(t?($e(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(e){var t=OT(e,2);return{label:t[0],value:t[1]}})):[])},[e,t])}function FT(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=$.useRef(t);r.current=t,w(function(){if(e)r.current(e);else{var t=Y(function(){r.current(e)},n);return function(){Y.cancel(t)}}},[e])}function IT(e,t){return VT(e)||BT(e,t)||RT(e,t)||LT()}function LT(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
128
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RT(e,t){if(e){if(typeof e==`string`)return zT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zT(e,t)}}function zT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function BT(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function VT(e){if(Array.isArray(e))return e}function HT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=IT($.useState(0),2),i=r[0],a=r[1],o=IT($.useState(!1),2),s=o[0],c=o[1],l=$.useRef([]),u=$.useRef(null),d=$.useRef(null),f=function(e){u.current=e};return FT(s||n,function(){s||(l.current=[],f(null))}),$.useEffect(function(){s&&l.current.push(i)},[s,i]),[s,function(e){c(e)},function(e){return e&&(d.current=e),d.current},i,a,function(n){var r=l.current,i=new Set(r.filter(function(e){return n[e]||t[e]})),a=+(r[r.length-1]===0);return i.size>=2||e[a]?null:a},l.current,f,function(e){return u.current===e}]}function UT(e){"@babel/helpers - typeof";return UT=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},UT(e)}function WT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?WT(Object(n),!0).forEach(function(t){KT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function KT(e,t,n){return t=qT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qT(e){var t=JT(e,`string`);return UT(t)==`symbol`?t:String(t)}function JT(e,t){if(UT(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(UT(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function YT(e,t){return eE(e)||$T(e,t)||ZT(e,t)||XT()}function XT(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
129
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZT(e,t){if(e){if(typeof e==`string`)return QT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QT(e,t)}}function QT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $T(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function eE(e){if(Array.isArray(e))return e}function tE(e,t,n,r,i,a){var o=n[n.length-1];return function(s,c){var l=YT(e,2),u=l[0],d=l[1],f=GT(GT({},c),{},{from:NC(e,n)});return o===1&&t[0]&&u&&!Iw(r,i,u,s,f.type)&&r.isAfter(u,s)||o===0&&t[1]&&d&&!Iw(r,i,d,s,f.type)&&r.isAfter(s,d)?!0:a?.(s,f)}}function nE(e,t){return sE(e)||oE(e,t)||iE(e,t)||rE()}function rE(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
130
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iE(e,t){if(e){if(typeof e==`string`)return aE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aE(e,t)}}function aE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function oE(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function sE(e){if(Array.isArray(e))return e}function cE(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,r*10);case`decade`:return e.addYear(n,r*100);default:return n}}var lE=[];function uE(e,t,n,r,i,a,o,s){var c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:lE,l=arguments.length>9&&arguments[9]!==void 0?arguments[9]:lE,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:lE,d=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,m=o===`time`,h=a||0,g=function(t){var r=e.getNow();return m&&(r=Vw(e,r)),c[t]||n[t]||r},_=nE(l,2),y=_[0],b=_[1],x=nE(v(function(){return g(0)},y),2),S=x[0],C=x[1],w=nE(v(function(){return g(1)},b),2),T=w[0],E=w[1],D=$.useMemo(function(){var t=[S,T][h];return m?t:Vw(e,t,u[h])},[m,S,T,h,e,u]),O=function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`panel`,a=[C,E][h];a(n);var s=[S,T];s[h]=n,d&&(!Iw(e,t,S,s[0],o)||!Iw(e,t,T,s[1],o))&&d(s,{source:i,range:h===1?`end`:`start`,mode:r})},k=function(n,r){if(s){var i={date:`month`,week:`month`,month:`year`,quarter:`year`}[o];if(i&&!Iw(e,t,n,r,i)||o===`year`&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return cE(e,o,r,-1)}return r},A=$.useRef(null);return Pe(function(){if(i&&!c[h]){var t=m?null:e.getNow();if(A.current!==null&&A.current!==h?t=[S,T][h^1]:n[h]?t=h===0?n[0]:k(n[0],n[1]):n[h^1]&&(t=n[h^1]),t){f&&e.isAfter(f,t)&&(t=f);var r=s?cE(e,o,t,1):t;p&&e.isAfter(r,p)&&(t=s?cE(e,o,p,-1):p),O(t,`reset`)}}},[i,h,n[h]]),$.useEffect(function(){i?A.current=h:A.current=null},[i,h]),Pe(function(){i&&c&&c[h]&&O(c[h],`reset`)},[i,h]),[D,O]}function dE(e,t){return gE(e)||hE(e,t)||pE(e,t)||fE()}function fE(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
131
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pE(e,t){if(e){if(typeof e==`string`)return mE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mE(e,t)}}function mE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hE(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function gE(e){if(Array.isArray(e))return e}function _E(e,t){var n=$.useRef(e),r=dE($.useState({}),2)[1],i=function(e){return e&&t!==void 0?t:n.current};return[i,function(e){n.current=e,r({})},i(!0)]}function vE(e,t){return xE(e)||bE(e,t)||wE(e,t)||yE()}function yE(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
132
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bE(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function xE(e){if(Array.isArray(e))return e}function SE(e){return EE(e)||TE(e)||wE(e)||CE()}function CE(){throw TypeError(`Invalid attempt to spread non-iterable instance.
133
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wE(e,t){if(e){if(typeof e==`string`)return DE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DE(e,t)}}function TE(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function EE(e){if(Array.isArray(e))return DE(e)}function DE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var OE=[];function kE(e,t,n){return[function(r){return r.map(function(r){return Bw(r,{generateConfig:e,locale:t,format:n[0]})})},function(t,n){for(var r=Math.max(t.length,n.length),i=-1,a=0;a<r;a+=1){var o=t[a]||null,s=n[a]||null;if(o!==s&&!Pw(e,o,s)){i=a;break}}return[i<0,i!==0]}]}function AE(e,t){return SE(e).sort(function(e,n){return t.isAfter(e,n)?1:-1})}function jE(e){var t=vE(_E(e),2),n=t[0],r=t[1],i=J(function(){r(e)});return $.useEffect(function(){i()},[e]),[n,r]}function ME(e,t,n,r,i,a,o,s,c){var l=vE(v(a,o),2),u=l[0],d=l[1],f=u||OE,p=vE(jE(f),2),m=p[0],h=p[1],g=vE(kE(e,t,n),2),_=g[0],y=g[1];return[f,d,m,J(function(t){var n=SE(t);if(r)for(var a=0;a<2;a+=1)n[a]=n[a]||null;else i&&(n=AE(n.filter(function(e){return e}),e));var o=vE(y(m(),n),2),c=o[0],l=o[1];if(!c&&(h(n),s)){var u=_(n);s(n,u,{range:l?`end`:`start`})}}),function(){c&&c(m())}]}function NE(e,t,n,r,i,a,o,s,c,l){var u=e.generateConfig,d=e.locale,f=e.picker,p=e.onChange,m=e.allowEmpty,h=e.order,g=a.some(function(e){return e})?!1:h,_=vE(kE(u,d,o),2),v=_[0],y=_[1],b=vE(_E(t),2),x=b[0],S=b[1],C=J(function(){S(t)});$.useEffect(function(){C()},[t]);var w=J(function(e){var r=e===null,o=SE(e||x());if(r)for(var s=Math.max(a.length,o.length),c=0;c<s;c+=1)a[c]||(o[c]=null);g&&o[0]&&o[1]&&(o=AE(o,u)),i(o);var _=vE(o,2),b=_[0],S=_[1],C=!b,w=!S,T=m?(!C||m[0])&&(!w||m[1]):!0,E=!h||C||w||Iw(u,d,b,S,f)||u.isAfter(S,b),D=(a[0]||!b||!l(b,{activeIndex:0}))&&(a[1]||!S||!l(S,{from:b,activeIndex:1})),O=r||T&&E&&D;if(O){n(o);var k=vE(y(o,t),1)[0];if(p&&!k){var A=o.every(function(e){return!e});p(r&&A?null:o,A?null:v(o))}}return O}),T=J(function(e,t){S(AC(x(),e,r()[e])),t&&w()}),E=!s&&!c;return FT(!E,function(){E&&(w(),i(t),C())},2),[T,w]}function PE(e,t,n,r,i){return t!==`date`&&t!==`time`?!1:n===void 0?r===void 0?!i&&(e===`date`||e===`time`):r:n}function FE(e){return zE(e)||RE(e)||LE(e)||IE()}function IE(){throw TypeError(`Invalid attempt to spread non-iterable instance.
134
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LE(e,t){if(e){if(typeof e==`string`)return BE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BE(e,t)}}function RE(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function zE(e){if(Array.isArray(e))return BE(e)}function BE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function VE(e,t,n,r,i,a){var o=e;function s(e,t,n){var r=a[e](o),i=n.find(function(e){return e.value===r});if(!i||i.disabled){var s=n.filter(function(e){return!e.disabled}),c=FE(s).reverse().find(function(e){return e.value<=r})||s[0];c&&(r=c.value,o=a[t](o,r))}return r}var c=s(`getHour`,`setHour`,t()),l=s(`getMinute`,`setMinute`,n(c));return s(`getMillisecond`,`setMillisecond`,i(c,l,s(`getSecond`,`setSecond`,r(c,l)))),o}function HE(e){"@babel/helpers - typeof";return HE=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},HE(e)}function UE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function WE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?UE(Object(n),!0).forEach(function(t){GE(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function GE(e,t,n){return t=KE(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KE(e){var t=qE(e,`string`);return HE(t)==`symbol`?t:String(t)}function qE(e,t){if(HE(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(HE(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function JE(e,t){return $E(e)||QE(e,t)||XE(e,t)||YE()}function YE(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
135
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XE(e,t){if(e){if(typeof e==`string`)return ZE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZE(e,t)}}function ZE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function QE(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function $E(e){if(Array.isArray(e))return e}function eD(){return[]}function tD(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,o=[],s=n>=1?n|0:1,c=e;c<=t;c+=s){var l=i.includes(c);(!l||!r)&&o.push({label:OC(c,a),value:c,disabled:l})}return o}function nD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,a=r.hourStep,o=a===void 0?1:a,s=r.minuteStep,c=s===void 0?1:s,l=r.secondStep,u=l===void 0?1:l,d=r.millisecondStep,f=d===void 0?100:d,p=r.hideDisabledOptions,m=r.disabledTime,h=r.disabledHours,g=r.disabledMinutes,_=r.disabledSeconds,v=$.useMemo(function(){return n||e.getNow()},[n,e]),y=$.useCallback(function(e){var t=m?.(e)||{};return[t.disabledHours||h||eD,t.disabledMinutes||g||eD,t.disabledSeconds||_||eD,t.disabledMilliseconds||eD]},[m,h,g,_]),b=JE($.useMemo(function(){return y(v)},[v,y]),4),x=b[0],S=b[1],C=b[2],w=b[3],T=$.useCallback(function(e,t,n,r){var a=tD(0,23,o,p,e());return[i?a.map(function(e){return WE(WE({},e),{},{label:OC(e.value%12||12,2)})}):a,function(e){return tD(0,59,c,p,t(e))},function(e,t){return tD(0,59,u,p,n(e,t))},function(e,t,n){return tD(0,999,f,p,r(e,t,n),3)}]},[p,o,i,f,c,u]),E=JE($.useMemo(function(){return T(x,S,C,w)},[T,x,S,C,w]),4),D=E[0],O=E[1],k=E[2],A=E[3];return[function(t,n){var r=function(){return D},i=O,a=k,o=A;if(n){var s=JE(y(n),4),c=s[0],l=s[1],u=s[2],d=s[3],f=JE(T(c,l,u,d),4),p=f[0],m=f[1],h=f[2],g=f[3];r=function(){return p},i=m,a=h,o=g}return VE(t,r,i,a,o,e)},D,O,k,A]}function rD(e,t){return cD(e)||sD(e,t)||aD(e,t)||iD()}function iD(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
136
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aD(e,t){if(e){if(typeof e==`string`)return oD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oD(e,t)}}function oD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sD(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function cD(e){if(Array.isArray(e))return e}function lD(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,a=e.showTime,o=e.onSubmit,s=e.onNow,c=e.invalid,l=e.needConfirm,u=e.generateConfig,d=e.disabledDate,f=$.useContext(hC),p=f.prefixCls,m=f.locale,h=f.button,g=h===void 0?`button`:h,_=f.classNames,v=f.styles,y=u.getNow(),b=rD(nD(u,a,y),1)[0],x=r?.(t),S=d(y,{type:t}),C=function(){S||s(b(y))},w=`${p}-now`,T=`${w}-btn`,E=i&&$.createElement(`li`,{className:w},$.createElement(`a`,{className:X(T,S&&`${T}-disabled`),"aria-disabled":S,onClick:C},n===`date`?m.today:m.now)),D=l&&$.createElement(`li`,{className:`${p}-ok`},$.createElement(g,{disabled:c,onClick:o},m.ok)),O=(E||D)&&$.createElement(`ul`,{className:`${p}-ranges`},E,D);return!x&&!O?null:$.createElement(`div`,{className:X(`${p}-footer`,_.popup.footer),style:v.popup.footer},x&&$.createElement(`div`,{className:`${p}-footer-extra`},x),O)}function uD(e){return mD(e)||pD(e)||fD(e)||dD()}function dD(){throw TypeError(`Invalid attempt to spread non-iterable instance.
137
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fD(e,t){if(e){if(typeof e==`string`)return hD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hD(e,t)}}function pD(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function mD(e){if(Array.isArray(e))return hD(e)}function hD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gD(e,t,n){function r(r,i){var a=r.findIndex(function(r){return Iw(e,t,r,i,n)});if(a===-1)return[].concat(uD(r),[i]);var o=uD(r);return o.splice(a,1),o}return r}var _D=$.createContext(null),vD=$.createContext(null);function yD(){return $.useContext(vD)}function bD(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,a=e.disabledDate,o=e.minDate,s=e.maxDate,c=e.cellRender,l=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,f=e.values,p=e.pickerValue,m=e.onSelect,h=e.prevIcon,g=e.nextIcon,_=e.superPrevIcon,v=e.superNextIcon,y=$.useContext(_D),b=y.classNames,x=y.styles,S=r.getNow();return[{now:S,values:f,pickerValue:p,prefixCls:n,classNames:b,styles:x,disabledDate:a,minDate:o,maxDate:s,cellRender:c,hoverValue:l,hoverRangeValue:u,onHover:d,locale:i,generateConfig:r,onSelect:m,panelType:t,prevIcon:h,nextIcon:g,superPrevIcon:_,superNextIcon:v},S]}var xD=$.createContext({});function SD(e){"@babel/helpers - typeof";return SD=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},SD(e)}function CD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?CD(Object(n),!0).forEach(function(t){TD(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function TD(e,t,n){return t=ED(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ED(e){var t=DD(e,`string`);return SD(t)==`symbol`?t:String(t)}function DD(e,t){if(SD(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(SD(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function OD(e,t){return ND(e)||MD(e,t)||AD(e,t)||kD()}function kD(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
138
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AD(e,t){if(e){if(typeof e==`string`)return jD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jD(e,t)}}function jD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function MD(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function ND(e){if(Array.isArray(e))return e}function PD(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,a=e.prefixColumn,o=e.rowClassName,s=e.titleFormat,c=e.getCellText,l=e.getCellClassName,u=e.headerCells,d=e.cellSelection,f=d===void 0?!0:d,p=e.disabledDate,m=yD(),h=m.prefixCls,g=m.classNames,_=m.styles,v=m.panelType,y=m.now,b=m.disabledDate,x=m.cellRender,S=m.onHover,C=m.hoverValue,w=m.hoverRangeValue,T=m.generateConfig,E=m.values,D=m.locale,O=m.onSelect,k=p||b,A=`${h}-cell`,j=$.useContext(xD).onCellDblClick,M=function(e){return E.some(function(t){return t&&Iw(T,D,e,t,v)})},N=[],P=0;P<t;P+=1){for(var F=[],I=void 0,L=function(){var e=i(r,P*n+R),t=k?.(e,{type:v});R===0&&(I=e,a&&F.push(a(I)));var o=!1,u=!1,d=!1;if(f&&w){var p=OD(w,2),m=p[0],b=p[1];o=Lw(T,m,b,e),u=Iw(T,D,e,m,v),d=Iw(T,D,e,b,v)}var E=s?Bw(e,{locale:D,format:s,generateConfig:T}):void 0,N=$.createElement(`div`,{className:`${A}-inner`},c(e));F.push($.createElement(`td`,{key:R,title:E,className:X(A,g.item,wD(TD(TD(TD(TD(TD(TD({},`${A}-disabled`,t),`${A}-hover`,(C||[]).some(function(t){return Iw(T,D,e,t,v)})),`${A}-in-range`,o&&!u&&!d),`${A}-range-start`,u),`${A}-range-end`,d),`${h}-cell-selected`,!w&&v!==`week`&&M(e)),l(e))),style:_.item,onClick:function(){t||O(e)},onDoubleClick:function(){!t&&j&&j()},onMouseEnter:function(){t||S?.(e)},onMouseLeave:function(){t||S?.(null)}},x?x(e,{prefixCls:h,originNode:N,today:y,type:v,locale:D}):N))},R=0;R<n;R+=1)L();N.push($.createElement(`tr`,{key:P,className:o?.(I)},F))}return $.createElement(`div`,{className:X(`${h}-body`,g.body),style:_.body},$.createElement(`table`,{className:X(`${h}-content`,g.content),style:_.content},u&&$.createElement(`thead`,null,$.createElement(`tr`,null,u)),$.createElement(`tbody`,null,N)))}var FD={visibility:`hidden`};function ID(e){var t=e.offset,n=e.superOffset,r=e.onChange,i=e.getStart,a=e.getEnd,o=e.children,s=yD(),c=s.prefixCls,l=s.classNames,u=s.styles,d=s.prevIcon,f=d===void 0?`‹`:d,p=s.nextIcon,m=p===void 0?`›`:p,h=s.superPrevIcon,g=h===void 0?`«`:h,_=s.superNextIcon,v=_===void 0?`»`:_,y=s.minDate,b=s.maxDate,x=s.generateConfig,S=s.locale,C=s.pickerValue,w=s.panelType,T=`${c}-header`,E=$.useContext(xD),D=E.hidePrev,O=E.hideNext,k=E.hideHeader,A=$.useMemo(function(){return!y||!t||!a?!1:!Rw(x,S,a(t(-1,C)),y,w)},[y,t,C,a,x,S,w]),j=$.useMemo(function(){return!y||!n||!a?!1:!Rw(x,S,a(n(-1,C)),y,w)},[y,n,C,a,x,S,w]),M=$.useMemo(function(){return!b||!t||!i?!1:!Rw(x,S,b,i(t(1,C)),w)},[b,t,C,i,x,S,w]),N=$.useMemo(function(){return!b||!n||!i?!1:!Rw(x,S,b,i(n(1,C)),w)},[b,n,C,i,x,S,w]),P=function(e){t&&r(t(e,C))},F=function(e){n&&r(n(e,C))};if(k)return null;var I=`${T}-prev-btn`,L=`${T}-next-btn`,R=`${T}-super-prev-btn`,z=`${T}-super-next-btn`;return $.createElement(`div`,{className:X(T,l.header),style:u.header},n&&$.createElement(`button`,{type:`button`,"aria-label":S.previousYear,onClick:function(){return F(-1)},tabIndex:-1,className:X(R,j&&`${R}-disabled`),disabled:j,style:D?FD:{}},g),t&&$.createElement(`button`,{type:`button`,"aria-label":S.previousMonth,onClick:function(){return P(-1)},tabIndex:-1,className:X(I,A&&`${I}-disabled`),disabled:A,style:D?FD:{}},f),$.createElement(`div`,{className:`${T}-view`},o),t&&$.createElement(`button`,{type:`button`,"aria-label":S.nextMonth,onClick:function(){return P(1)},tabIndex:-1,className:X(L,M&&`${L}-disabled`),disabled:M,style:O?FD:{}},m),n&&$.createElement(`button`,{type:`button`,"aria-label":S.nextYear,onClick:function(){return F(1)},tabIndex:-1,className:X(z,N&&`${z}-disabled`),disabled:N,style:O?FD:{}},v))}function LD(e){"@babel/helpers - typeof";return LD=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},LD(e)}function RD(){return RD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RD.apply(this,arguments)}function zD(e,t,n){return t=BD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BD(e){var t=VD(e,`string`);return LD(t)==`symbol`?t:String(t)}function VD(e,t){if(LD(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(LD(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function HD(e,t){return qD(e)||KD(e,t)||WD(e,t)||UD()}function UD(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
139
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WD(e,t){if(e){if(typeof e==`string`)return GD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GD(e,t)}}function GD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function KD(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function qD(e){if(Array.isArray(e))return e}function JD(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?`date`:n,i=e.locale,a=e.generateConfig,o=e.pickerValue,s=e.onPickerValueChange,c=e.onModeChange,l=e.mode,u=l===void 0?`date`:l,d=e.disabledDate,f=e.onSelect,p=e.onHover,m=e.showWeek,h=`${t}-${r}-panel`,g=`${t}-cell`,_=u===`week`,v=HD(bD(e,u),2),y=v[0],b=v[1],x=a.locale.getWeekFirstDay(i.locale),S=a.setDate(o,1),C=zw(i.locale,a,S),w=a.getMonth(o),T=(m===void 0?_:m)?function(e){var t=d?.(e,{type:`week`});return $.createElement(`td`,{key:`week`,className:X(g,`${g}-week`,zD({},`${g}-disabled`,t)),onClick:function(){t||f(e)},onMouseEnter:function(){t||p?.(e)},onMouseLeave:function(){t||p?.(null)}},$.createElement(`div`,{className:`${g}-inner`},a.locale.getWeek(i.locale,e)))}:null,E=[],D=i.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(i.locale):[]);T&&E.push($.createElement(`th`,{key:`empty`},$.createElement(`span`,{style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},i.week)));for(var O=0;O<7;O+=1)E.push($.createElement(`th`,{key:O},D[(O+x)%7]));var k=function(e,t){return a.addDate(e,t)},A=function(e){return Bw(e,{locale:i,format:i.cellDateFormat,generateConfig:a})},j=function(e){return zD(zD({},`${t}-cell-in-view`,jw(a,e,o)),`${t}-cell-today`,Mw(a,e,b))},M=i.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(i.locale):[]),N=$.createElement(`button`,{type:`button`,"aria-label":i.yearSelect,key:`year`,onClick:function(){c(`year`,o)},tabIndex:-1,className:`${t}-year-btn`},Bw(o,{locale:i,format:i.yearFormat,generateConfig:a})),P=$.createElement(`button`,{type:`button`,"aria-label":i.monthSelect,key:`month`,onClick:function(){c(`month`,o)},tabIndex:-1,className:`${t}-month-btn`},i.monthFormat?Bw(o,{locale:i,format:i.monthFormat,generateConfig:a}):M[w]),F=i.monthBeforeYear?[P,N]:[N,P];return $.createElement(vD.Provider,{value:y},$.createElement(`div`,{className:X(h,m&&`${h}-show-week`)},$.createElement(ID,{offset:function(e){return a.addMonth(o,e)},superOffset:function(e){return a.addYear(o,e)},onChange:s,getStart:function(e){return a.setDate(e,1)},getEnd:function(e){var t=a.setDate(e,1);return t=a.addMonth(t,1),a.addDate(t,-1)}},F),$.createElement(PD,RD({titleFormat:i.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:C,headerCells:E,getCellDate:k,getCellText:A,getCellClassName:j,prefixColumn:T,cellSelection:!_}))))}var YD=1/3;function XD(e,t){var n=$.useRef(!1),r=$.useRef(null),i=$.useRef(null),a=function(){return n.current},o=function(){Y.cancel(r.current),n.current=!1},s=$.useRef();return[J(function(){var a=e.current;if(i.current=null,s.current=0,a){var c=a.querySelector(`[data-value="${t}"]`),l=a.querySelector(`li`);c&&l&&function e(){o(),n.current=!0,s.current+=1;var t=a.scrollTop,u=l.offsetTop,d=c.offsetTop,f=d-u;if(d===0&&c!==l||!M(a)){s.current<=5&&(r.current=Y(e));return}var p=t+(f-t)*YD,m=Math.abs(f-p);if(i.current!==null&&i.current<m){o();return}if(i.current=m,m<=1){a.scrollTop=f,o();return}a.scrollTop=p,r.current=Y(e)}()}}),o,a]}function ZD(e){"@babel/helpers - typeof";return ZD=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ZD(e)}function QD(e,t,n){return t=$D(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $D(e){var t=eO(e,`string`);return ZD(t)==`symbol`?t:String(t)}function eO(e,t){if(ZD(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ZD(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function tO(e){return iO(e)||rO(e)||sO(e)||nO()}function nO(){throw TypeError(`Invalid attempt to spread non-iterable instance.
140
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rO(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function iO(e){if(Array.isArray(e))return cO(e)}function aO(e,t){return uO(e)||lO(e,t)||sO(e,t)||oO()}function oO(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
141
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sO(e,t){if(e){if(typeof e==`string`)return cO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cO(e,t)}}function cO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lO(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function uO(e){if(Array.isArray(e))return e}var dO=300;function fO(e){return e.map(function(e){return[e.value,e.label,e.disabled].join(`,`)}).join(`;`)}function pO(e){var t=e.units,n=e.value,r=e.optionalValue,i=e.type,a=e.onChange,o=e.onHover,s=e.onDblClick,c=e.changeOnScroll,l=yD(),u=l.prefixCls,d=l.cellRender,f=l.now,p=l.locale,m=l.classNames,h=l.styles,g=`${u}-time-panel`,_=`${u}-time-panel-cell`,v=$.useRef(null),y=$.useRef(),b=function(){clearTimeout(y.current)},x=aO(XD(v,n??r),3),S=x[0],C=x[1],w=x[2];Pe(function(){return S(),b(),function(){C(),b()}},[n,r,fO(t)]);var T=function(e){b();var n=e.target;!w()&&c&&(y.current=setTimeout(function(){var e=v.current,r=e.querySelector(`li`).offsetTop,i=Array.from(e.querySelectorAll(`li`)).map(function(e){return e.offsetTop-r}).map(function(e,r){return t[r].disabled?2**53-1:Math.abs(e-n.scrollTop)}),o=Math.min.apply(Math,tO(i)),s=t[i.findIndex(function(e){return e===o})];s&&!s.disabled&&a(s.value)},dO))},E=`${g}-column`;return $.createElement(`ul`,{className:E,ref:v,"data-type":i,onScroll:T},t.map(function(e){var t=e.label,r=e.value,c=e.disabled,l=$.createElement(`div`,{className:`${_}-inner`},t);return $.createElement(`li`,{key:r,style:h.item,className:X(_,m.item,QD(QD({},`${_}-selected`,n===r),`${_}-disabled`,c)),onClick:function(){c||a(r)},onDoubleClick:function(){!c&&s&&s()},onMouseEnter:function(){o(r)},onMouseLeave:function(){o(null)},"data-value":r},d?d(r,{prefixCls:u,originNode:l,today:f,type:`time`,subType:i,locale:p}):l)}))}function mO(){return mO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mO.apply(this,arguments)}function hO(e,t){return bO(e)||yO(e,t)||_O(e,t)||gO()}function gO(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
142
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _O(e,t){if(e){if(typeof e==`string`)return vO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vO(e,t)}}function vO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yO(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function bO(e){if(Array.isArray(e))return e}function xO(e){return e<12}function SO(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,i=e.showMillisecond,a=e.use12Hours,o=e.changeOnScroll,s=yD(),c=s.prefixCls,l=s.classNames,u=s.styles,d=s.values,f=s.generateConfig,p=s.locale,m=s.onSelect,h=s.onHover,g=h===void 0?function(){}:h,_=s.pickerValue,v=d?.[0]||null,y=$.useContext(xD).onCellDblClick,b=hO(nD(f,e,v),5),x=b[0],S=b[1],C=b[2],w=b[3],T=b[4],E=function(e){return[v&&f[e](v),_&&f[e](_)]},D=hO(E(`getHour`),2),O=D[0],k=D[1],A=hO(E(`getMinute`),2),j=A[0],M=A[1],N=hO(E(`getSecond`),2),P=N[0],F=N[1],I=hO(E(`getMillisecond`),2),L=I[0],R=I[1],z=O===null?null:xO(O)?`am`:`pm`,B=$.useMemo(function(){return a?xO(O)?S.filter(function(e){return xO(e.value)}):S.filter(function(e){return!xO(e.value)}):S},[O,S,a]),V=function(e,t){var n,r=e.filter(function(e){return!e.disabled});return t??(r==null||(n=r[0])==null?void 0:n.value)},H=V(S,O),U=$.useMemo(function(){return C(H)},[C,H]),W=V(U,j),G=$.useMemo(function(){return w(H,W)},[w,H,W]),ee=V(G,P),K=$.useMemo(function(){return T(H,W,ee)},[T,H,W,ee]),q=V(K,L),te=$.useMemo(function(){if(!a)return[];var e=f.getNow(),t=f.setHour(e,6),n=f.setHour(e,18),r=function(e,t){var n=p.cellMeridiemFormat;return n?Bw(e,{generateConfig:f,locale:p,format:n}):t};return[{label:r(t,`AM`),value:`am`,disabled:S.every(function(e){return e.disabled||!xO(e.value)})},{label:r(n,`PM`),value:`pm`,disabled:S.every(function(e){return e.disabled||xO(e.value)})}]},[S,a,f,p]),ne=function(e){m(x(e))},re=$.useMemo(function(){var e=v||_||f.getNow(),t=function(e){return e!=null};return t(O)?(e=f.setHour(e,O),e=f.setMinute(e,j),e=f.setSecond(e,P),e=f.setMillisecond(e,L)):t(k)?(e=f.setHour(e,k),e=f.setMinute(e,M),e=f.setSecond(e,F),e=f.setMillisecond(e,R)):t(H)&&(e=f.setHour(e,H),e=f.setMinute(e,W),e=f.setSecond(e,ee),e=f.setMillisecond(e,q)),e},[v,_,O,j,P,L,H,W,ee,q,k,M,F,R,f]),J=function(e,t){return e===null?null:f[t](re,e)},ie=function(e){return J(e,`setHour`)},ae=function(e){return J(e,`setMinute`)},oe=function(e){return J(e,`setSecond`)},se=function(e){return J(e,`setMillisecond`)},ce=function(e){return e===null?null:e===`am`&&!xO(O)?f.setHour(re,O-12):e===`pm`&&xO(O)?f.setHour(re,O+12):re},le=function(e){ne(ie(e))},Y=function(e){ne(ae(e))},ue=function(e){ne(oe(e))},de=function(e){ne(se(e))},fe=function(e){ne(ce(e))},pe=function(e){g(ie(e))},me=function(e){g(ae(e))},he=function(e){g(oe(e))},ge=function(e){g(se(e))},_e=function(e){g(ce(e))},ve={onDblClick:y,changeOnScroll:o};return $.createElement(`div`,{className:X(`${c}-content`,l.content),style:u.content},t&&$.createElement(pO,mO({units:B,value:O,optionalValue:k,type:`hour`,onChange:le,onHover:pe},ve)),n&&$.createElement(pO,mO({units:U,value:j,optionalValue:M,type:`minute`,onChange:Y,onHover:me},ve)),r&&$.createElement(pO,mO({units:G,value:P,optionalValue:F,type:`second`,onChange:ue,onHover:he},ve)),i&&$.createElement(pO,mO({units:K,value:L,optionalValue:R,type:`millisecond`,onChange:de,onHover:ge},ve)),a&&$.createElement(pO,mO({units:te,value:z,type:`meridiem`,onChange:fe,onHover:_e},ve)))}function CO(e,t){return OO(e)||DO(e,t)||TO(e,t)||wO()}function wO(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
143
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TO(e,t){if(e){if(typeof e==`string`)return EO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EO(e,t)}}function EO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function DO(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function OO(e){if(Array.isArray(e))return e}function kO(e){var t=e.prefixCls,n=e.value,r=e.locale,i=e.generateConfig,a=e.showTime,o=(a||{}).format,s=`${t}-time-panel`,c=CO(bD(e,`time`),1)[0];return $.createElement(vD.Provider,{value:c},$.createElement(`div`,{className:X(s)},$.createElement(ID,null,n?Bw(n,{locale:r,format:o,generateConfig:i}):`\xA0`),$.createElement(SO,a)))}function AO(){return AO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AO.apply(this,arguments)}function jO(e,t){return IO(e)||FO(e,t)||NO(e,t)||MO()}function MO(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
144
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NO(e,t){if(e){if(typeof e==`string`)return PO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PO(e,t)}}function PO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function FO(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function IO(e){if(Array.isArray(e))return e}function LO(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,i=e.onSelect,a=e.value,o=e.pickerValue,s=e.onHover,c=`${t}-datetime-panel`,l=jO(nD(n,r),1)[0],u=function(e){return a?Vw(n,e,a):Vw(n,e,o)};return $.createElement(`div`,{className:c},$.createElement(JD,AO({},e,{onSelect:function(e){var t=u(e);i(l(t,t))},onHover:function(e){s?.(e&&u(e))}})),$.createElement(kO,e))}function RO(e){"@babel/helpers - typeof";return RO=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},RO(e)}function zO(){return zO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zO.apply(this,arguments)}function BO(e,t,n){return t=VO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VO(e){var t=HO(e,`string`);return RO(t)==`symbol`?t:String(t)}function HO(e,t){if(RO(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(RO(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function UO(e,t){return JO(e)||qO(e,t)||GO(e,t)||WO()}function WO(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
145
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GO(e,t){if(e){if(typeof e==`string`)return KO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KO(e,t)}}function KO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qO(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function JO(e){if(Array.isArray(e))return e}function YO(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.disabledDate,o=e.onPickerValueChange,s=`${t}-decade-panel`,c=UO(bD(e,`decade`),1)[0],l=function(e){var t=Math.floor(r.getYear(e)/100)*100;return r.setYear(e,t)},u=function(e){var t=l(e);return r.addYear(t,99)},d=l(i),f=u(i),p=r.addYear(d,-10),m=function(e,t){return r.addYear(e,t*10)},h=function(e){var t=n.cellYearFormat;return`${Bw(e,{locale:n,format:t,generateConfig:r})}-${Bw(r.addYear(e,9),{locale:n,format:t,generateConfig:r})}`},g=function(e){return BO({},`${t}-cell-in-view`,Dw(r,e,d)||Dw(r,e,f)||Lw(r,d,f,e))},_=a?function(e,t){var n=r.setDate(e,1),i=r.setMonth(n,0),o=r.setYear(i,Math.floor(r.getYear(i)/10)*10),s=r.addYear(o,10),c=r.addDate(s,-1);return a(o,t)&&a(c,t)}:null,v=`${Bw(d,{locale:n,format:n.yearFormat,generateConfig:r})}-${Bw(f,{locale:n,format:n.yearFormat,generateConfig:r})}`;return $.createElement(vD.Provider,{value:c},$.createElement(`div`,{className:s},$.createElement(ID,{superOffset:function(e){return r.addYear(i,e*100)},onChange:o,getStart:l,getEnd:u},v),$.createElement(PD,zO({},e,{disabledDate:_,colNum:3,rowNum:4,baseDate:p,getCellDate:m,getCellText:h,getCellClassName:g}))))}function XO(e){"@babel/helpers - typeof";return XO=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},XO(e)}function ZO(){return ZO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZO.apply(this,arguments)}function QO(e,t,n){return t=$O(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $O(e){var t=ek(e,`string`);return XO(t)==`symbol`?t:String(t)}function ek(e,t){if(XO(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(XO(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function tk(e,t){return ok(e)||ak(e,t)||rk(e,t)||nk()}function nk(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
146
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rk(e,t){if(e){if(typeof e==`string`)return ik(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ik(e,t)}}function ik(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ak(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function ok(e){if(Array.isArray(e))return e}function sk(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.disabledDate,o=e.onPickerValueChange,s=e.onModeChange,c=`${t}-month-panel`,l=tk(bD(e,`month`),1)[0],u=r.setMonth(i,0),d=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),f=function(e,t){return r.addMonth(e,t)},p=function(e){var t=r.getMonth(e);return n.monthFormat?Bw(e,{locale:n,format:n.monthFormat,generateConfig:r}):d[t]},m=function(){return QO({},`${t}-cell-in-view`,!0)},h=a?function(e,t){var n=r.setDate(e,1),i=r.setMonth(n,r.getMonth(n)+1),o=r.addDate(i,-1);return a(n,t)&&a(o,t)}:null,g=$.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:function(){s(`year`)},tabIndex:-1,className:`${t}-year-btn`},Bw(i,{locale:n,format:n.yearFormat,generateConfig:r}));return $.createElement(vD.Provider,{value:l},$.createElement(`div`,{className:c},$.createElement(ID,{superOffset:function(e){return r.addYear(i,e)},onChange:o,getStart:function(e){return r.setMonth(e,0)},getEnd:function(e){return r.setMonth(e,11)}},g),$.createElement(PD,ZO({},e,{disabledDate:h,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:u,getCellDate:f,getCellText:p,getCellClassName:m}))))}function ck(e){"@babel/helpers - typeof";return ck=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ck(e)}function lk(){return lk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lk.apply(this,arguments)}function uk(e,t,n){return t=dk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dk(e){var t=fk(e,`string`);return ck(t)==`symbol`?t:String(t)}function fk(e,t){if(ck(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ck(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function pk(e,t){return vk(e)||_k(e,t)||hk(e,t)||mk()}function mk(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
147
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hk(e,t){if(e){if(typeof e==`string`)return gk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gk(e,t)}}function gk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _k(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function vk(e){if(Array.isArray(e))return e}function yk(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.onPickerValueChange,o=e.onModeChange,s=`${t}-quarter-panel`,c=pk(bD(e,`quarter`),1)[0],l=r.setMonth(i,0),u=function(e,t){return r.addMonth(e,t*3)},d=function(e){return Bw(e,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},f=function(){return uk({},`${t}-cell-in-view`,!0)},p=$.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:function(){o(`year`)},tabIndex:-1,className:`${t}-year-btn`},Bw(i,{locale:n,format:n.yearFormat,generateConfig:r}));return $.createElement(vD.Provider,{value:c},$.createElement(`div`,{className:s},$.createElement(ID,{superOffset:function(e){return r.addYear(i,e)},onChange:a,getStart:function(e){return r.setMonth(e,0)},getEnd:function(e){return r.setMonth(e,11)}},p),$.createElement(PD,lk({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:l,getCellDate:u,getCellText:d,getCellClassName:f}))))}function bk(e){"@babel/helpers - typeof";return bk=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},bk(e)}function xk(){return xk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xk.apply(this,arguments)}function Sk(e,t,n){return t=Ck(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ck(e){var t=wk(e,`string`);return bk(t)==`symbol`?t:String(t)}function wk(e,t){if(bk(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(bk(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Tk(e,t){return Ak(e)||kk(e,t)||Dk(e,t)||Ek()}function Ek(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
148
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dk(e,t){if(e){if(typeof e==`string`)return Ok(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ok(e,t)}}function Ok(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kk(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Ak(e){if(Array.isArray(e))return e}function jk(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,i=e.value,a=e.hoverValue,o=e.hoverRangeValue,s=r.locale,c=`${t}-week-panel-row`;return $.createElement(JD,xk({},e,{mode:`week`,panelName:`week`,rowClassName:function(e){var t={};if(o){var r=Tk(o,2),l=r[0],u=r[1],d=Fw(n,s,l,e),f=Fw(n,s,u,e);t[`${c}-range-start`]=d,t[`${c}-range-end`]=f,t[`${c}-range-hover`]=!d&&!f&&Lw(n,l,u,e)}return a&&(t[`${c}-hover`]=a.some(function(t){return Fw(n,s,e,t)})),X(c,Sk({},`${c}-selected`,!o&&Fw(n,s,i,e)),t)}}))}function Mk(e){"@babel/helpers - typeof";return Mk=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Mk(e)}function Nk(){return Nk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nk.apply(this,arguments)}function Pk(e,t,n){return t=Fk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fk(e){var t=Ik(e,`string`);return Mk(t)==`symbol`?t:String(t)}function Ik(e,t){if(Mk(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Mk(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Lk(e,t){return Hk(e)||Vk(e,t)||zk(e,t)||Rk()}function Rk(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
149
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zk(e,t){if(e){if(typeof e==`string`)return Bk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bk(e,t)}}function Bk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Vk(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Hk(e){if(Array.isArray(e))return e}function Uk(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.disabledDate,o=e.onPickerValueChange,s=e.onModeChange,c=`${t}-year-panel`,l=Lk(bD(e,`year`),1)[0],u=function(e){var t=Math.floor(r.getYear(e)/10)*10;return r.setYear(e,t)},d=function(e){var t=u(e);return r.addYear(t,9)},f=u(i),p=d(i),m=r.addYear(f,-1),h=function(e,t){return r.addYear(e,t)},g=function(e){return Bw(e,{locale:n,format:n.cellYearFormat,generateConfig:r})},_=function(e){return Pk({},`${t}-cell-in-view`,Ow(r,e,f)||Ow(r,e,p)||Lw(r,f,p,e))},v=a?function(e,t){var n=r.setMonth(e,0),i=r.setDate(n,1),o=r.addYear(i,1),s=r.addDate(o,-1);return a(i,t)&&a(s,t)}:null,y=$.createElement(`button`,{type:`button`,key:`decade`,"aria-label":n.decadeSelect,onClick:function(){s(`decade`)},tabIndex:-1,className:`${t}-decade-btn`},Bw(f,{locale:n,format:n.yearFormat,generateConfig:r}),`-`,Bw(p,{locale:n,format:n.yearFormat,generateConfig:r}));return $.createElement(vD.Provider,{value:l},$.createElement(`div`,{className:c},$.createElement(ID,{superOffset:function(e){return r.addYear(i,e*10)},onChange:o,getStart:u,getEnd:d},y),$.createElement(PD,Nk({},e,{disabledDate:v,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:h,getCellText:g,getCellClassName:_}))))}function Wk(e){"@babel/helpers - typeof";return Wk=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Wk(e)}function Gk(){return Gk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gk.apply(this,arguments)}function Kk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Kk(Object(n),!0).forEach(function(t){Jk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jk(e,t,n){return t=Yk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yk(e){var t=Xk(e,`string`);return Wk(t)==`symbol`?t:String(t)}function Xk(e,t){if(Wk(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Wk(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Zk(e){return eA(e)||$k(e)||rA(e)||Qk()}function Qk(){throw TypeError(`Invalid attempt to spread non-iterable instance.
150
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $k(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function eA(e){if(Array.isArray(e))return iA(e)}function tA(e,t){return oA(e)||aA(e,t)||rA(e,t)||nA()}function nA(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
151
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rA(e,t){if(e){if(typeof e==`string`)return iA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iA(e,t)}}function iA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function aA(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function oA(e){if(Array.isArray(e))return e}var sA={date:JD,datetime:LO,week:jk,month:sk,quarter:yk,year:Uk,decade:YO,time:kO};function cA(e,t){var n=e.classNames,r=e.styles,i=e.locale,a=e.generateConfig,o=e.direction,s=e.prefixCls,c=e.tabIndex,l=c===void 0?0:c,u=e.multiple,d=e.defaultValue,f=e.value,p=e.onChange,m=e.onSelect,h=e.defaultPickerValue,g=e.pickerValue,_=e.onPickerValueChange,y=e.mode,b=e.onPanelChange,x=e.picker,S=x===void 0?`date`:x,C=e.showTime,w=e.hoverValue,T=e.hoverRangeValue,E=e.cellRender,D=e.dateRender,O=e.monthCellRender,k=e.components,A=k===void 0?{}:k,j=e.hideHeader,M=$.useContext(hC)||{},N=M.prefixCls,P=M.classNames,F=M.styles,I=N||s||`rc-picker`,L=$.useRef();$.useImperativeHandle(t,function(){return{nativeElement:L.current}});var R=tA(Sw(e),4),z=R[0],B=R[1],V=R[2],H=R[3],U=rw(i,B),W=S===`date`&&C?`datetime`:S,G=$.useMemo(function(){return Cw(W,V,H,z,U)},[W,V,H,z,U]),ee=a.getNow(),K=tA(v(S||`date`,y),2),q=K[0],te=K[1],ne=q===`date`&&G?`datetime`:q,re=gD(a,i,W),ie=tA(v(d,f),2),ae=ie[0],oe=ie[1],se=$.useMemo(function(){var e=kC(ae).filter(function(e){return e});return u?e:e.slice(0,1)},[ae,u]),ce=J(function(e){oe(e),p&&(e===null||se.length!==e.length||se.some(function(t,n){return!Iw(a,i,t,e[n],W)}))&&p?.(u?e:e[0])}),le=J(function(e){m?.(e),q===S&&ce(u?re(se,e):[e])}),Y=tA(v(h||se[0]||ee,g),2),ue=Y[0],de=Y[1];$.useEffect(function(){se[0]&&!g&&de(se[0])},[se[0]]);var fe=function(e,t){b?.(e||g,t||q)},pe=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;de(e),_?.(e),t&&fe(e)},me=function(e,t){te(e),t&&pe(t),fe(t,e)},he=function(e){if(le(e),pe(e),q!==S){var t=[`decade`,`year`],n=[].concat(t,[`month`]),r={quarter:[].concat(t,[`quarter`]),week:[].concat(Zk(n),[`week`]),date:[].concat(Zk(n),[`date`])}[S]||n,i=r[r.indexOf(q)+1];i&&me(i,e)}},ge=$.useMemo(function(){var e,t;if(Array.isArray(T)){var n=tA(T,2);e=n[0],t=n[1]}else e=T;return!e&&!t?null:(e=e||t,t=t||e,a.isAfter(e,t)?[t,e]:[e,t])},[T,a]),_e=VC(E,D,O),ve=A[ne]||sA[ne]||JD,ye=$.useMemo(function(){return{classNames:P?.popup??n??{},styles:F?.popup??r??{}}},[P,n,F,r]),be=$.useContext(xD),xe=$.useMemo(function(){return qk(qk({},be),{},{hideHeader:j})},[be,j]),Se=`${I}-panel`,Ce=jC(e,[`showWeek`,`prevIcon`,`nextIcon`,`superPrevIcon`,`superNextIcon`,`disabledDate`,`minDate`,`maxDate`,`onHover`]);return $.createElement(_D.Provider,{value:ye},$.createElement(xD.Provider,{value:xe},$.createElement(`div`,{ref:L,tabIndex:l,className:X(Se,Jk({},`${Se}-rtl`,o===`rtl`))},$.createElement(ve,Gk({},Ce,{showTime:G,prefixCls:I,locale:U,generateConfig:a,onModeChange:me,pickerValue:ue,onPickerValueChange:function(e){pe(e,!0)},value:se[0],onSelect:he,values:se,cellRender:_e,hoverRangeValue:ge,hoverValue:w})))))}var lA=$.memo($.forwardRef(cA));function uA(e){"@babel/helpers - typeof";return uA=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},uA(e)}function dA(){return dA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dA.apply(this,arguments)}function fA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?fA(Object(n),!0).forEach(function(t){mA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mA(e,t,n){return t=hA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hA(e){var t=gA(e,`string`);return uA(t)==`symbol`?t:String(t)}function gA(e,t){if(uA(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(uA(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _A(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,o=e.onSubmit,s=e.range,c=e.hoverValue,l=$.useContext(hC),u=l.prefixCls,d=l.generateConfig,f=$.useCallback(function(e,n){return cE(d,t,e,n)},[d,t]),p=$.useMemo(function(){return f(r,1)},[r,f]),m=function(e){i(f(e,-1))},h={onCellDblClick:function(){a&&o()}},g=t===`time`,_=pA(pA({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:g});return s?_.hoverRangeValue=c:_.hoverValue=c,n?$.createElement(`div`,{className:`${u}-panels`},$.createElement(xD.Provider,{value:pA(pA({},h),{},{hideNext:!0})},$.createElement(lA,_)),$.createElement(xD.Provider,{value:pA(pA({},h),{},{hidePrev:!0})},$.createElement(lA,dA({},_,{pickerValue:p,onPickerValueChange:m})))):$.createElement(xD.Provider,{value:pA({},h)},$.createElement(lA,_))}function vA(e){return typeof e==`function`?e():e}function yA(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?$.createElement(`div`,{className:`${t}-presets`},$.createElement(`ul`,null,n.map(function(e,t){var n=e.label,a=e.value;return $.createElement(`li`,{key:t,onClick:function(){r(vA(a))},onMouseEnter:function(){i(vA(a))},onMouseLeave:function(){i(null)}},n)}))):null}function bA(e){"@babel/helpers - typeof";return bA=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},bA(e)}function xA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function SA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?xA(Object(n),!0).forEach(function(t){CA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function CA(e,t,n){return t=wA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wA(e){var t=TA(e,`string`);return bA(t)==`symbol`?t:String(t)}function TA(e,t){if(bA(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(bA(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function EA(){return EA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EA.apply(this,arguments)}function DA(e,t){return MA(e)||jA(e,t)||kA(e,t)||OA()}function OA(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
152
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kA(e,t){if(e){if(typeof e==`string`)return AA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AA(e,t)}}function AA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jA(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function MA(e){if(Array.isArray(e))return e}function NA(e){var t,n,r=e.panelRender,i=e.internalMode,a=e.picker,o=e.showNow,s=e.range,c=e.multiple,l=e.activeInfo,u=l===void 0?[0,0,0]:l,d=e.presets,f=e.onPresetHover,p=e.onPresetSubmit,m=e.onFocus,h=e.onBlur,g=e.onPanelMouseDown,_=e.direction,v=e.value,y=e.onSelect,b=e.isInvalid,x=e.defaultOpenValue,S=e.onOk,C=e.onSubmit,w=e.classNames,T=e.styles,E=$.useContext(hC).prefixCls,D=`${E}-panel`,O=_===`rtl`,k=$.useRef(null),A=$.useRef(null),j=DA($.useState(0),2),M=j[0],N=j[1],P=DA($.useState(0),2),F=P[0],I=P[1],L=DA($.useState(0),2),R=L[0],z=L[1],B=function(e){e.width&&N(e.width)},V=DA(u,3),H=V[0],U=V[1],W=V[2],G=DA($.useState(0),2),ee=G[0],K=G[1];$.useEffect(function(){K(10)},[H]),$.useEffect(function(){if(s&&A.current){var e=k.current?.offsetWidth||0,t=A.current.getBoundingClientRect();if(!t.height||t.right<0){K(function(e){return Math.max(0,e-1)});return}if(z((O?U-e:H)-t.left),M&&M<W){var n=O?t.right-(U-e+M):H+e-t.left-M;I(Math.max(0,n))}else I(0)}},[ee,O,M,H,U,W,s]);function q(e){return e.filter(function(e){return e})}var te=$.useMemo(function(){return q(kC(v))},[v]),ne=a===`time`&&!te.length,re=$.useMemo(function(){return ne?q([x]):te},[ne,te,x]),J=ne?x:te,ie=$.useMemo(function(){return re.length?re.some(function(e){return b(e)}):!0},[re,b]),ae=$.createElement(`div`,{className:`${E}-panel-layout`},$.createElement(yA,{prefixCls:E,presets:d,onClick:p,onHover:f}),$.createElement(`div`,null,$.createElement(_A,EA({},e,{value:J})),$.createElement(lD,EA({},e,{showNow:c?!1:o,invalid:ie,onSubmit:function(){ne&&y(x),S(),C()}}))));r&&(ae=r(ae));var oe=`${D}-container`,se=`marginLeft`,ce=`marginRight`,le=$.createElement(`div`,{onMouseDown:g,tabIndex:-1,className:X(oe,`${E}-${i}-panel-container`,w==null||(t=w.popup)==null?void 0:t.container),style:SA(CA(CA({},O?ce:se,F),O?se:ce,`auto`),T==null||(n=T.popup)==null?void 0:n.container),onFocus:m,onBlur:h},ae);return s&&(le=$.createElement(`div`,{onMouseDown:g,ref:A,className:X(`${E}-range-wrapper`,`${E}-${a}-range-wrapper`)},$.createElement(`div`,{ref:k,className:`${E}-range-arrow`,style:{left:R}}),$.createElement(jt,{onResize:B},le))),le}function PA(e){"@babel/helpers - typeof";return PA=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},PA(e)}function FA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function IA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?FA(Object(n),!0).forEach(function(t){LA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function LA(e,t,n){return t=RA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RA(e){var t=zA(e,`string`);return PA(t)==`symbol`?t:String(t)}function zA(e,t){if(PA(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(PA(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function BA(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,a=e.locale,o=e.preserveInvalidOnBlur,s=e.inputReadOnly,c=e.required,l=e[`aria-required`],u=e.onSubmit,d=e.onFocus,f=e.onBlur,p=e.onInputChange,m=e.onInvalid,h=e.open,g=e.onOpenChange,_=e.onKeyDown,v=e.onChange,y=e.activeHelp,b=e.name,x=e.autoComplete,S=e.id,C=e.value,w=e.invalid,T=e.placeholder,E=e.disabled,D=e.activeIndex,O=e.allHelp,k=e.picker,A=function(e,t){var n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},j=n[0],M=$.useCallback(function(e){return Bw(e,{locale:a,format:j,generateConfig:i})},[a,i,j]),N=$.useMemo(function(){return C.map(M)},[C,M]),P=$.useMemo(function(){var e=k===`time`?8:10,t=typeof j==`function`?j(i.getNow()).length:j.length;return Math.max(e,t)+2},[j,k,i]),F=function(e){for(var t=0;t<n.length;t+=1){var r=n[t];if(typeof r==`string`){var i=A(e,r);if(i)return i}}return!1};return[function(n){function i(e){return n===void 0?e:e[n]}var a=IA(IA({},V(e,{aria:!0,data:!0})),{},{format:r,validateFormat:function(e){return!!F(e)},preserveInvalidOnBlur:o,readOnly:s,required:c,"aria-required":l,name:b,autoComplete:x,size:P,id:i(S),value:i(N)||``,invalid:i(w),placeholder:i(T),active:D===n,helped:O||y&&D===n,disabled:i(E),onFocus:function(e){d(e,n)},onBlur:function(e){f(e,n)},onSubmit:u,onChange:function(e){p();var t=F(e);if(t){m(!1,n),v(t,n);return}m(!!e,n)},onHelp:function(){g(!0,{index:n})},onKeyDown:function(e){var t=!1;if(_?.(e,function(){t=!0}),!e.defaultPrevented&&!t)switch(e.key){case`Escape`:g(!1,{index:n});break;case`Enter`:h||g(!0);break}}},t?.({valueTexts:N}));return Object.keys(a).forEach(function(e){a[e]===void 0&&delete a[e]}),a},M]}var VA=[`onMouseEnter`,`onMouseLeave`];function HA(e){return $.useMemo(function(){return jC(e,VA)},[e])}var UA=[`icon`,`type`],WA=[`onClear`];function GA(){return GA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GA.apply(this,arguments)}function KA(e,t){if(e==null)return{};var n=qA(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function JA(e){var t=e.icon,n=e.type,r=KA(e,UA),i=$.useContext(hC),a=i.prefixCls,o=i.classNames,s=i.styles;return t?$.createElement(`span`,GA({className:X(`${a}-${n}`,o.suffix),style:s.suffix},r),t):null}function YA(e){var t=e.onClear,n=KA(e,WA);return $.createElement(JA,GA({},n,{type:`clear`,role:`button`,onMouseDown:function(e){e.preventDefault()},onClick:function(e){e.stopPropagation(),t()}}))}function XA(e){"@babel/helpers - typeof";return XA=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},XA(e)}function ZA(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function QA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,tj(r.key),r)}}function $A(e,t,n){return t&&QA(e.prototype,t),n&&QA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ej(e,t,n){return t=tj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tj(e){var t=nj(e,`string`);return XA(t)==`symbol`?t:String(t)}function nj(e,t){if(XA(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(XA(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var rj=[`YYYY`,`MM`,`DD`,`HH`,`mm`,`ss`,`SSS`],ij=`顧`,aj=function(){function e(t){ZA(this,e),ej(this,`format`,void 0),ej(this,`maskFormat`,void 0),ej(this,`cells`,void 0),ej(this,`maskCells`,void 0),this.format=t;var n=rj.map(function(e){return`(${e})`}).join(`|`),r=new RegExp(n,`g`);this.maskFormat=t.replace(r,function(e){return ij.repeat(e.length)});var i=RegExp(`(${rj.join(`|`)})`),a=(t.split(i)||[]).filter(function(e){return e}),o=0;this.cells=a.map(function(e){var t=rj.includes(e),n=o,r=o+e.length;return o=r,{text:e,mask:t,start:n,end:r}}),this.maskCells=this.cells.filter(function(e){return e.mask})}return $A(e,[{key:`getSelection`,value:function(e){var t=this.maskCells[e]||{},n=t.start,r=t.end;return[n||0,r||0]}},{key:`match`,value:function(e){for(var t=0;t<this.maskFormat.length;t+=1){var n=this.maskFormat[t],r=e[t];if(!r||n!==ij&&n!==r)return!1}return!0}},{key:`size`,value:function(){return this.maskCells.length}},{key:`getMaskCellIndex`,value:function(e){for(var t=2**53-1,n=0,r=0;r<this.maskCells.length;r+=1){var i=this.maskCells[r],a=i.start,o=i.end;if(e>=a&&e<=o)return r;var s=Math.min(Math.abs(e-a),Math.abs(e-o));s<t&&(t=s,n=r)}return n}}]),e}();function oj(e){return{YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}function sj(e){"@babel/helpers - typeof";return sj=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},sj(e)}var cj=[`className`,`active`,`showActiveCls`,`suffixIcon`,`format`,`validateFormat`,`onChange`,`onInput`,`helped`,`onHelp`,`onSubmit`,`onKeyDown`,`preserveInvalidOnBlur`,`invalid`,`clearIcon`];function lj(){return lj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lj.apply(this,arguments)}function uj(e,t,n){return t=dj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dj(e){var t=fj(e,`string`);return sj(t)==`symbol`?t:String(t)}function fj(e,t){if(sj(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(sj(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function pj(e,t){return vj(e)||_j(e,t)||hj(e,t)||mj()}function mj(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
153
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hj(e,t){if(e){if(typeof e==`string`)return gj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gj(e,t)}}function gj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _j(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function vj(e){if(Array.isArray(e))return e}function yj(e,t){if(e==null)return{};var n=bj(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bj(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var xj=$.forwardRef(function(e,t){var n=e.className,r=e.active,i=e.showActiveCls,a=i===void 0?!0:i,o=e.suffixIcon,s=e.format,c=e.validateFormat,l=e.onChange;e.onInput;var u=e.helped,d=e.onHelp,f=e.onSubmit,p=e.onKeyDown,m=e.preserveInvalidOnBlur,h=m===void 0?!1:m,g=e.invalid,_=e.clearIcon,v=yj(e,cj),y=e.value,b=e.onFocus,x=e.onBlur,S=e.onMouseUp,C=$.useContext(hC),w=C.prefixCls,T=C.input,E=T===void 0?`input`:T,D=C.classNames,O=C.styles,k=`${w}-input`,A=pj($.useState(!1),2),j=A[0],M=A[1],N=pj($.useState(y),2),P=N[0],F=N[1],I=pj($.useState(``),2),L=I[0],R=I[1],z=pj($.useState(null),2),B=z[0],V=z[1],H=pj($.useState(null),2),U=H[0],W=H[1],G=P||``;$.useEffect(function(){F(y)},[y]);var ee=$.useRef(null),K=$.useRef(null),q=$.useRef(!1);$.useImperativeHandle(t,function(){return{nativeElement:ee.current,inputElement:K.current,focus:function(e){K.current.focus(e)},blur:function(){K.current.blur()}}});var te=$.useMemo(function(){return new aj(s||``)},[s]),ne=pj($.useMemo(function(){return u?[0,0]:te.getSelection(B)},[te,B,u]),2),re=ne[0],ie=ne[1],ae=function(e){e&&e!==s&&e!==y&&d()},oe=J(function(e){c(e)&&l(e),F(e),ae(e)}),se=function(e){if(!s){var t=e.target.value;ae(t),F(t),l(t)}},ce=function(e){if(q.current){e.preventDefault();return}var t=e.clipboardData.getData(`text`);c(t)&&oe(t)},le=function(){q.current=!0},ue=function(e){var t=e.target.selectionStart;V(te.getMaskCellIndex(t)),W({}),S?.(e),q.current=!1},de=function(e){M(!0),V(0),R(``),b(e)},fe=function(e){x(e)},pe=function(e){M(!1),fe(e)};FT(r,function(){!r&&!h&&F(y)});var me=function(e){e.key===`Enter`&&c(G)&&f(),p?.(e)},he=function(e){if(q.current){e.preventDefault();return}me(e);var t=e.key,n=null,r=null,i=ie-re,a=s.slice(re,ie),o=function(e){V(function(t){var n=t+e;return n=Math.max(n,0),n=Math.min(n,te.size()-1),n})},c=function(e){var t=pj(oj(a),3),n=t[0],r=t[1],i=t[2],o=G.slice(re,ie),s=Number(o);if(isNaN(s))return String(i||(e>0?n:r));var c=s+e,l=r-n+1;return String(n+(l+c-n)%l)};switch(t){case`Backspace`:case`Delete`:n=``,r=a;break;case`ArrowLeft`:n=``,o(-1);break;case`ArrowRight`:n=``,o(1);break;case`ArrowUp`:n=``,r=c(1);break;case`ArrowDown`:n=``,r=c(-1);break;default:isNaN(Number(t))||(n=L+t,r=n);break}n!==null&&(R(n),n.length>=i&&(o(1),R(``))),r!==null&&oe((G.slice(0,re)+OC(r,i)+G.slice(ie)).slice(0,s.length)),W({})},ge=$.useRef();Pe(function(){if(!(!j||!s||q.current)){if(!te.match(G)){oe(s);return}return K.current.setSelectionRange(re,ie),ge.current=Y(function(){K.current.setSelectionRange(re,ie)}),function(){Y.cancel(ge.current)}}},[te,s,j,G,B,re,ie,U,oe]);var _e=s?{onFocus:de,onBlur:pe,onKeyDown:he,onMouseDown:le,onMouseUp:ue,onPaste:ce}:{};return $.createElement(`div`,{ref:ee,className:X(k,uj(uj({},`${k}-active`,r&&a),`${k}-placeholder`,u),n)},$.createElement(E,lj({ref:K,"aria-invalid":g,autoComplete:`off`},v,{onKeyDown:me,onBlur:fe},_e,{value:G,onChange:se,className:D.input,style:O.input})),$.createElement(JA,{type:`suffix`,icon:o}),_)}),Sj=`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.onActiveInfo.placement.onMouseDown.required.aria-required.autoFocus.tabIndex`.split(`.`),Cj=[`index`];function wj(){return wj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wj.apply(this,arguments)}function Tj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ej(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Tj(Object(n),!0).forEach(function(t){Dj(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dj(e,t,n){return t=Oj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oj(e){var t=kj(e,`string`);return Ij(t)==`symbol`?t:String(t)}function kj(e,t){if(Ij(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ij(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Aj(e,t){return Fj(e)||Pj(e,t)||Mj(e,t)||jj()}function jj(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
154
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mj(e,t){if(e){if(typeof e==`string`)return Nj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nj(e,t)}}function Nj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pj(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Fj(e){if(Array.isArray(e))return e}function Ij(e){"@babel/helpers - typeof";return Ij=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ij(e)}function Lj(e,t){if(e==null)return{};var n=Rj(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rj(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function zj(e,t){var n=e.id,r=e.prefix,i=e.clearIcon,a=e.suffixIcon,o=e.separator,s=o===void 0?`~`:o,c=e.activeIndex;e.activeHelp,e.allHelp;var l=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,d=e.className,f=e.style,p=e.onClick,m=e.onClear,h=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var g=e.disabled,_=e.invalid;e.inputReadOnly;var v=e.direction;e.onOpenChange;var y=e.onActiveInfo;e.placement;var b=e.onMouseDown;e.required,e[`aria-required`];var x=e.autoFocus,S=e.tabIndex,C=Lj(e,Sj),w=v===`rtl`,T=$.useContext(hC),E=T.prefixCls,D=T.classNames,O=T.styles,k=$.useMemo(function(){if(typeof n==`string`)return[n];var e=n||{};return[e.start,e.end]},[n]),A=$.useRef(),j=$.useRef(),M=$.useRef(),N=function(e){return[j,M][e]?.current};$.useImperativeHandle(t,function(){return{nativeElement:A.current,focus:function(e){if(Ij(e)===`object`){var t,n=e||{},r=n.index,i=r===void 0?0:r,a=Lj(n,Cj);(t=N(i))==null||t.focus(a)}else{var o;(o=N(e??0))==null||o.focus()}},blur:function(){var e,t;(e=N(0))==null||e.blur(),(t=N(1))==null||t.blur()}}});var P=HA(C),F=$.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),I=Aj(BA(Ej(Ej({},e),{},{id:k,placeholder:F})),1)[0],L=Aj($.useState({position:`absolute`,width:0}),2),R=L[0],z=L[1],B=J(function(){var e=N(c);if(e){var t=e.nativeElement.getBoundingClientRect(),n=A.current.getBoundingClientRect(),r=t.left-n.left;z(function(e){return Ej(Ej({},e),{},{width:t.width,left:r})}),y([t.left,t.right,n.width])}});$.useEffect(function(){B()},[c]);var V=i&&(h[0]&&!g[0]||h[1]&&!g[1]),H=x&&!g[0],U=x&&!H&&!g[1];return $.createElement(jt,{onResize:B},$.createElement(`div`,wj({},P,{className:X(E,`${E}-range`,Dj(Dj(Dj(Dj({},`${E}-focused`,l),`${E}-disabled`,g.every(function(e){return e})),`${E}-invalid`,_.some(function(e){return e})),`${E}-rtl`,w),d),style:f,ref:A,onClick:p,onMouseDown:function(e){var t=e.target;t!==j.current.inputElement&&t!==M.current.inputElement&&e.preventDefault(),b?.(e)}}),r&&$.createElement(`div`,{className:X(`${E}-prefix`,D.prefix),style:O.prefix},r),$.createElement(xj,wj({ref:j},I(0),{className:`${E}-input-start`,autoFocus:H,tabIndex:S,"date-range":`start`})),$.createElement(`div`,{className:`${E}-range-separator`},s),$.createElement(xj,wj({ref:M},I(1),{className:`${E}-input-end`,autoFocus:U,tabIndex:S,"date-range":`end`})),$.createElement(`div`,{className:`${E}-active-bar`,style:R}),$.createElement(JA,{type:`suffix`,icon:a}),V&&$.createElement(YA,{icon:i,onClear:m})))}var Bj=$.forwardRef(zj);function Vj(e){"@babel/helpers - typeof";return Vj=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Vj(e)}function Hj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Uj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Hj(Object(n),!0).forEach(function(t){Wj(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wj(e,t,n){return t=Gj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gj(e){var t=Kj(e,`string`);return Vj(t)==`symbol`?t:String(t)}function Kj(e,t){if(Vj(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Vj(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function qj(e,t){return(0,$.useMemo)(function(){return[Uj(Uj({},e),{},{popup:e?.popup||{}}),Uj(Uj({},t),{},{popup:t?.popup||{}})]},[e,t])}function Jj(e){"@babel/helpers - typeof";return Jj=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Jj(e)}function Yj(){return Yj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yj.apply(this,arguments)}function Xj(e){return $j(e)||Qj(e)||sM(e)||Zj()}function Zj(){throw TypeError(`Invalid attempt to spread non-iterable instance.
155
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qj(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function $j(e){if(Array.isArray(e))return cM(e)}function eM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?eM(Object(n),!0).forEach(function(t){nM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nM(e,t,n){return t=rM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rM(e){var t=iM(e,`string`);return Jj(t)==`symbol`?t:String(t)}function iM(e,t){if(Jj(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Jj(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function aM(e,t){return uM(e)||lM(e,t)||sM(e,t)||oM()}function oM(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
156
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sM(e,t){if(e){if(typeof e==`string`)return cM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cM(e,t)}}function cM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lM(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function uM(e){if(Array.isArray(e))return e}function dM(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function fM(e){return e===1?`end`:`start`}function pM(e,t){var n=aM(fT(e,function(){var t=e.disabled,n=e.allowEmpty;return{disabled:dM(t,!1),allowEmpty:dM(n,!1)}}),6),r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=r.prefixCls,d=r.rootClassName,f=r.styles,p=r.classNames,m=r.previewValue,h=r.defaultValue,g=r.value,_=r.needConfirm,y=r.onKeyDown,b=r.disabled,x=r.allowEmpty,S=r.disabledDate,C=r.minDate,w=r.maxDate,T=r.defaultOpen,E=r.open,D=r.onOpenChange,O=r.locale,k=r.generateConfig,A=r.picker,j=r.showNow,M=r.showToday,N=r.showTime,P=r.mode,F=r.onPanelChange,I=r.onCalendarChange,L=r.onOk,R=r.defaultPickerValue,z=r.pickerValue,B=r.onPickerValueChange,H=r.inputReadOnly,U=r.suffixIcon,W=r.onFocus,G=r.onBlur,ee=r.presets,K=r.ranges,q=r.components,te=r.cellRender,ne=r.dateRender,re=r.monthCellRender,ie=r.onClick,ae=DT(t),oe=aM(qj(p,f),2),se=oe[0],ce=oe[1],le=aM(ET(E,T,b,D),2),Y=le[0],ue=le[1],de=function(e,t){(b.some(function(e){return!e})||!e)&&ue(e,t)},fe=aM(ME(k,O,o,!0,!1,h,g,I,L),5),pe=fe[0],me=fe[1],he=fe[2],ge=fe[3],_e=fe[4],ve=he(),ye=aM(HT(b,x,Y),9),be=ye[0],xe=ye[1],Se=ye[2],Ce=ye[3],we=ye[4],Te=ye[5],Ee=ye[6],De=ye[7],Oe=ye[8],ke=function(e,t){xe(!0),W?.(e,{range:fM(t??Ce)})},Ae=function(e,t){xe(!1),G?.(e,{range:fM(t??Ce)})},je=$.useMemo(function(){if(!N)return null;var e=N.disabledTime,t=e?function(t){return e(t,fM(Ce),{from:NC(ve,Ee,Ce)})}:void 0;return tM(tM({},N),{},{disabledTime:t})},[N,Ce,ve,Ee]),Me=aM(v([A,A],P),2),Ne=Me[0],Fe=Me[1],Ie=Ne[Ce]||A,Le=Ie===`date`&&je?`datetime`:Ie,Re=Le===A&&Le!==`time`,ze=PE(A,Ie,j,M,!0),Be=aM(NE(r,pe,me,he,ge,b,o,be,Y,c),2),Ve=Be[0],He=Be[1],Ue=tE(ve,b,Ee,k,O,S),We=aM(JC(ve,c,x),2),Ge=We[0],Ke=We[1],qe=aM(uE(k,O,ve,Ne,Y,Ce,i,Re,R,z,je?.defaultOpenValue,B,C,w),2),Je=qe[0],Ye=qe[1],Xe=J(function(e,t,n){var r=AC(Ne,Ce,t);if((r[0]!==Ne[0]||r[1]!==Ne[1])&&Fe(r),F&&n!==!1){var i=Xj(ve);e&&(i[Ce]=e),F(i,r)}}),Ze=function(e,t){return AC(ve,t,e)},Qe=function(e,t){var n=ve;e&&(n=Ze(e,Ce)),De(Ce);var r=Te(n);ge(n),Ve(Ce,r===null),r===null?de(!1,{force:!0}):t||ae.current.focus({index:r})},$e=function(e){var t=e.target.getRootNode();if(!ae.current.nativeElement.contains(t.activeElement??document.activeElement)){var n=b.findIndex(function(e){return!e});n>=0&&ae.current.focus({index:n})}de(!0),ie?.(e)},et=function(){He(null),de(!1,{force:!0})},tt=aM($.useState(null),2),nt=tt[0],rt=tt[1],Z=aM($.useState(null),2),it=Z[0],at=Z[1],ot=$.useMemo(function(){return it||ve},[ve,it]);$.useEffect(function(){Y||at(null)},[Y]);var st=aM($.useState([0,0,0]),2),Q=st[0],ct=st[1],lt=function(e,t){m===`hover`&&(at(e),rt(t))},ut=PT(ee,K),dt=function(e){lt(e,`preset`)},ft=function(e){He(e)&&(Se(`preset-click`),de(!1,{force:!0}))},pt=function(e){Qe(e)},mt=function(e){lt(e?Ze(e,Ce):null,`cell`)},ht=function(e){de(!0),ke(e)},gt=function(){Se(`panel`)},_t=function(e){ge(AC(ve,Ce,e)),!_&&!a&&i===Le&&Qe(e)},vt=function(){de(!1)},yt=VC(te,ne,re,fM(Ce)),bt=ve[Ce]||null,xt=J(function(e){return c(e,{activeIndex:Ce})}),St=$.useMemo(function(){var e=V(r,!1);return u(r,[].concat(Xj(Object.keys(e)),[`onChange`,`onCalendarChange`,`style`,`className`,`onPanelChange`,`disabledTime`,`classNames`,`styles`]))},[r]),Ct=$.createElement(NA,Yj({},St,{showNow:ze,showTime:je,range:!0,multiplePanel:Re,activeInfo:Q,disabledDate:Ue,onFocus:ht,onBlur:Ae,onPanelMouseDown:gt,picker:A,mode:Ie,internalMode:Le,onPanelChange:Xe,format:s,value:bt,isInvalid:xt,onChange:null,onSelect:_t,pickerValue:Je,defaultOpenValue:kC(N?.defaultOpenValue)[Ce],onPickerValueChange:Ye,hoverValue:ot,onHover:mt,needConfirm:_,onSubmit:Qe,onOk:_e,presets:ut,onPresetHover:dt,onPresetSubmit:ft,onNow:pt,cellRender:yt,classNames:se,styles:ce})),wt=function(e,t){ge(Ze(e,t))},Tt=function(){Se(`input`)},Et=function(e,t){var n=Ee.length,r=Ee[n-1];if(n&&r!==t&&_&&!x[r]&&!Oe(r)&&ve[r]){ae.current.focus({index:r});return}Se(`input`),de(!0,{inherit:!0}),Ce!==t&&Y&&!_&&a&&Qe(null,!0),we(t),ke(e,t)},Dt=function(e,t){de(!1),!_&&Se()===`input`&&Ve(Ce,Te(ve)===null),Ae(e,t)},Ot=function(e,t){e.key===`Tab`&&Qe(null,!0),y?.(e,t)},kt=$.useMemo(function(){return{prefixCls:l,locale:O,generateConfig:k,button:q.button,input:q.input,classNames:se,styles:ce}},[l,O,k,q.button,q.input,se,ce]);return Pe(function(){Y&&Ce!==void 0&&Xe(null,A,!1)},[Y,Ce,A]),Pe(function(){var e=Se();!Y&&e===`input`&&(de(!1),Qe(null,!0)),!Y&&a&&!_&&e===`panel`&&(de(!0),Qe())},[Y]),$.createElement(hC.Provider,{value:kt},$.createElement(xC,Yj({},PC(r),{popupElement:Ct,popupStyle:ce.popup.root,popupClassName:X(d,se.popup.root),visible:Y,onClose:vt,range:!0}),$.createElement(Bj,Yj({},r,{ref:ae,className:X(r.className,d,se.root),style:tM(tM({},ce.root),r.style),suffixIcon:U,activeIndex:be||Y?Ce:null,activeHelp:!!it,allHelp:!!it&&nt===`preset`,focused:be,onFocus:Et,onBlur:Dt,onKeyDown:Ot,onSubmit:Qe,value:ot,maskFormat:s,onChange:wt,onInputChange:Tt,format:o,inputReadOnly:H,disabled:b,open:Y,onOpenChange:de,onClick:$e,onClear:et,invalid:Ge,onInvalid:Ke,onActiveInfo:ct}))))}var mM=$.forwardRef(pM);function hM(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,a=i===void 0?`×`:i,o=e.formatDate,s=e.disabled,c=e.maxTagCount,l=e.tagRender,u=e.placeholder,d=`${t}-selector`,f=`${t}-selection`,p=`${f}-overflow`;function m(e,t){return $.createElement(`span`,{className:X(`${f}-item`),title:typeof e==`string`?e:null},$.createElement(`span`,{className:`${f}-item-content`},e),!s&&t&&$.createElement(`span`,{onMouseDown:function(e){e.preventDefault()},onClick:t,className:`${f}-item-remove`},a))}function h(e){var t=o(e),n=!s,i=function(t){t&&t.stopPropagation(),s||r(e)};return l?l({label:t,value:e,disabled:!!s,closable:n,onClose:i}):m(t,i)}function g(e){return m(`+ ${e.length} ...`)}return $.createElement(`div`,{className:d},$.createElement(Qg,{prefixCls:p,data:n,renderItem:h,renderRest:g,itemKey:function(e){return o(e)},maxCount:c}),!n.length&&$.createElement(`span`,{className:`${t}-selection-placeholder`},u))}function gM(e){"@babel/helpers - typeof";return gM=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},gM(e)}var _M=`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.tagRender.format.maskFormat.preserveInvalidOnBlur.onInvalid.disabled.invalid.inputReadOnly.direction.onOpenChange.onMouseDown.required.aria-required.autoFocus.tabIndex.removeIcon`.split(`.`);function vM(){return vM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vM.apply(this,arguments)}function yM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yM(Object(n),!0).forEach(function(t){xM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xM(e,t,n){return t=SM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SM(e){var t=CM(e,`string`);return gM(t)==`symbol`?t:String(t)}function CM(e,t){if(gM(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(gM(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function wM(e,t){return kM(e)||OM(e,t)||EM(e,t)||TM()}function TM(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
157
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EM(e,t){if(e){if(typeof e==`string`)return DM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DM(e,t)}}function DM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OM(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function kM(e){if(Array.isArray(e))return e}function AM(e,t){if(e==null)return{};var n=jM(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jM(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function MM(e,t){e.id;var n=e.open,r=e.prefix,i=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,c=e.generateConfig,l=e.placeholder,u=e.className,d=e.style,f=e.onClick,p=e.onClear,m=e.internalPicker,h=e.value,g=e.onChange,_=e.onSubmit;e.onInputChange;var v=e.multiple,y=e.maxTagCount,b=e.tagRender;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var x=e.disabled,S=e.invalid;e.inputReadOnly;var C=e.direction;e.onOpenChange;var w=e.onMouseDown;e.required,e[`aria-required`];var T=e.autoFocus,E=e.tabIndex,D=e.removeIcon,O=AM(e,_M),k=C===`rtl`,A=$.useContext(hC),j=A.prefixCls,M=A.classNames,N=A.styles,P=$.useRef(),F=$.useRef();$.useImperativeHandle(t,function(){return{nativeElement:P.current,focus:function(e){var t;(t=F.current)==null||t.focus(e)},blur:function(){var e;(e=F.current)==null||e.blur()}}});var I=HA(O),L=function(e){g([e])},R=function(e){g(h.filter(function(t){return t&&!Iw(c,s,t,e,m)})),n||_()},z=wM(BA(bM(bM({},e),{},{onChange:L}),function(e){return{value:e.valueTexts[0]||``,active:o}}),2),B=z[0],V=z[1],H=!!(i&&h.length&&!x),U=v?$.createElement($.Fragment,null,$.createElement(hM,{prefixCls:j,value:h,onRemove:R,formatDate:V,maxTagCount:y,tagRender:b,disabled:x,removeIcon:D,placeholder:l}),$.createElement(`input`,{className:`${j}-multiple-input`,value:h.map(V).join(`,`),ref:F,readOnly:!0,autoFocus:T,tabIndex:E}),$.createElement(JA,{type:`suffix`,icon:a}),H&&$.createElement(YA,{icon:i,onClear:p})):$.createElement(xj,vM({ref:F},B(),{autoFocus:T,tabIndex:E,suffixIcon:a,clearIcon:H&&$.createElement(YA,{icon:i,onClear:p}),showActiveCls:!1}));return $.createElement(`div`,vM({},I,{className:X(j,xM(xM(xM(xM(xM({},`${j}-multiple`,v),`${j}-focused`,o),`${j}-disabled`,x),`${j}-invalid`,S),`${j}-rtl`,k),u),style:d,ref:P,onClick:f,onMouseDown:function(e){e.target!==F.current?.inputElement&&e.preventDefault(),w?.(e)}}),r&&$.createElement(`div`,{className:X(`${j}-prefix`,M.prefix),style:N.prefix},r),U)}var NM=$.forwardRef(MM);function PM(e){"@babel/helpers - typeof";return PM=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},PM(e)}function FM(){return FM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FM.apply(this,arguments)}function IM(e){return zM(e)||RM(e)||qM(e)||LM()}function LM(){throw TypeError(`Invalid attempt to spread non-iterable instance.
158
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RM(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function zM(e){if(Array.isArray(e))return JM(e)}function BM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function VM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?BM(Object(n),!0).forEach(function(t){HM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function HM(e,t,n){return t=UM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UM(e){var t=WM(e,`string`);return PM(t)==`symbol`?t:String(t)}function WM(e,t){if(PM(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(PM(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function GM(e,t){return XM(e)||YM(e,t)||qM(e,t)||KM()}function KM(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
159
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qM(e,t){if(e){if(typeof e==`string`)return JM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JM(e,t)}}function JM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function YM(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function XM(e){if(Array.isArray(e))return e}function ZM(e,t){var n=GM(fT(e),6),r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=r,d=l.prefixCls,f=l.rootClassName,p=l.styles,m=l.classNames,h=l.previewValue,g=l.order,_=l.defaultValue,y=l.value,b=l.needConfirm,x=l.onChange,S=l.onKeyDown,C=l.disabled,w=l.disabledDate,T=l.minDate,E=l.maxDate,D=l.defaultOpen,O=l.open,k=l.onOpenChange,A=l.locale,j=l.generateConfig,M=l.picker,N=l.showNow,P=l.showToday,F=l.showTime,I=l.mode,L=l.onPanelChange,R=l.onCalendarChange,z=l.onOk,B=l.multiple,H=l.defaultPickerValue,U=l.pickerValue,W=l.onPickerValueChange,G=l.inputReadOnly,ee=l.suffixIcon,K=l.removeIcon,q=l.tagRender,te=l.onFocus,ne=l.onBlur,re=l.presets,ie=l.components,ae=l.cellRender,oe=l.dateRender,se=l.monthCellRender,ce=l.onClick,le=DT(t);function Y(e){return e===null?null:B?e:e[0]}var ue=gD(j,A,i),de=GM(qj(m,p),2),fe=de[0],pe=de[1],me=GM(ET(O,D,[C],k),2),he=me[0],ge=me[1],_e=GM(ME(j,A,o,!1,g,_,y,function(e,t,n){if(R){var r=VM({},n);delete r.range,R(Y(e),Y(t),r)}},function(e){z?.(Y(e))}),5),ve=_e[0],ye=_e[1],be=_e[2],xe=_e[3],Se=_e[4],Ce=be(),we=GM(HT([C]),4),Te=we[0],Ee=we[1],De=we[2],Oe=we[3],ke=function(e){Ee(!0),te?.(e,{})},Ae=function(e){Ee(!1),ne?.(e,{})},je=GM(v(M,I),2),Me=je[0],Ne=je[1],Fe=Me===`date`&&F?`datetime`:Me,Ie=PE(M,Me,N,P),Le=x&&function(e,t){x(Y(e),Y(t))},Re=GM(NE(VM(VM({},r),{},{onChange:Le}),ve,ye,be,xe,[],o,Te,he,c),2)[1],ze=GM(JC(Ce,c),2),Be=ze[0],Ve=ze[1],He=$.useMemo(function(){return Be.some(function(e){return e})},[Be]),Ue=GM(uE(j,A,Ce,[Me],he,Oe,i,!1,H,U,kC(F?.defaultOpenValue),function(e,t){if(W){var n=VM(VM({},t),{},{mode:t.mode[0]});delete n.range,W(e[0],n)}},T,E),2),We=Ue[0],Ge=Ue[1],Ke=J(function(e,t,n){Ne(t),L&&n!==!1&&L(e||Ce[Ce.length-1],t)}),qe=function(){Re(be()),ge(!1,{force:!0})},Je=function(e){!C&&!le.current.nativeElement.contains(document.activeElement)&&le.current.focus(),ge(!0),ce?.(e)},Ye=function(){Re(null),ge(!1,{force:!0})},Xe=GM($.useState(null),2),Ze=Xe[0],Qe=Xe[1],$e=GM($.useState(null),2),et=$e[0],tt=$e[1],nt=$.useMemo(function(){var e=[et].concat(IM(Ce)).filter(function(e){return e});return B?e:e.slice(0,1)},[Ce,et,B]),rt=$.useMemo(function(){return!B&&et?[et]:Ce.filter(function(e){return e})},[Ce,et,B]);$.useEffect(function(){he||tt(null)},[he]);var Z=function(e,t){h===`hover`&&(tt(e),Qe(t))},it=PT(re),at=function(e){Z(e,`preset`)},ot=function(e){Re(B?ue(be(),e):[e])&&!B&&ge(!1,{force:!0})},st=function(e){ot(e)},Q=function(e){Z(e,`cell`)},ct=function(e){ge(!0),ke(e)},lt=function(e){De(`panel`),!(B&&Fe!==M)&&(xe(B?ue(be(),e):[e]),!b&&!a&&i===Fe&&qe())},ut=function(){ge(!1)},dt=VC(ae,oe,se),ft=$.useMemo(function(){var e=V(r,!1);return VM(VM({},u(r,[].concat(IM(Object.keys(e)),[`onChange`,`onCalendarChange`,`style`,`className`,`onPanelChange`,`classNames`,`styles`]))),{},{multiple:r.multiple})},[r]),pt=$.createElement(NA,FM({},ft,{showNow:Ie,showTime:F,disabledDate:w,onFocus:ct,onBlur:Ae,picker:M,mode:Me,internalMode:Fe,onPanelChange:Ke,format:s,value:Ce,isInvalid:c,onChange:null,onSelect:lt,pickerValue:We,defaultOpenValue:F?.defaultOpenValue,onPickerValueChange:Ge,hoverValue:nt,onHover:Q,needConfirm:b,onSubmit:qe,onOk:Se,presets:it,onPresetHover:at,onPresetSubmit:ot,onNow:st,cellRender:dt,classNames:fe,styles:pe})),mt=function(e){xe(e)},ht=function(){De(`input`)},gt=function(e){De(`input`),ge(!0,{inherit:!0}),ke(e)},_t=function(e){ge(!1),Ae(e)},vt=function(e,t){e.key===`Tab`&&qe(),S?.(e,t)},yt=$.useMemo(function(){return{prefixCls:d,locale:A,generateConfig:j,button:ie.button,input:ie.input,classNames:fe,styles:pe}},[d,A,j,ie.button,ie.input,fe,pe]);return Pe(function(){he&&Oe!==void 0&&Ke(null,M,!1)},[he,Oe,M]),Pe(function(){var e=De();!he&&e===`input`&&(ge(!1),qe()),!he&&a&&!b&&e===`panel`&&qe()},[he]),$.createElement(hC.Provider,{value:yt},$.createElement(xC,FM({},PC(r),{popupElement:pt,popupStyle:pe.popup.root,popupClassName:X(f,fe.popup.root),visible:he,onClose:ut}),$.createElement(NM,FM({},r,{ref:le,className:X(r.className,f,fe.root),style:VM(VM({},pe.root),r.style),suffixIcon:ee,removeIcon:K,tagRender:q,activeHelp:!!et,allHelp:!!et&&Ze===`preset`,focused:Te,onFocus:gt,onBlur:_t,onKeyDown:vt,onSubmit:qe,value:rt,maskFormat:s,onChange:mt,onInputChange:ht,internalPicker:i,format:o,inputReadOnly:G,disabled:C,open:he,onOpenChange:ge,onClick:Je,onClear:Ye,invalid:He,onInvalid:function(e){Ve(e,0)}}))))}var QM=$.forwardRef(ZM),$M=[`parentNode`],eN=`form_item`;function tN(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function nN(e,t){if(!e.length)return;let n=e.join(`_`);return t?`${t}_${n}`:$M.includes(n)?`${eN}_${n}`:n}function rN(e,t,n,r,i,a){let o=r;return a===void 0?n.validating?o=`validating`:e.length?o=`error`:t.length?o=`warning`:(n.touched||i&&n.validated)&&(o=`success`):o=a,o}function iN(e){return tN(e).join(`_`)}function aN(e,t){let n=I(t.getFieldInstance(e));if(n)return n;let r=nN(tN(e),t.__INTERNAL__.name);if(r)return document.getElementById(r)}function oN(e){let[t]=tm(),n=$.useRef({}),r=$.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:e=>t=>{let r=iN(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:(e,t={})=>{let{focus:n,...i}=t,a=aN(e,r);a&&(ia(a,{scrollMode:`if-needed`,block:`nearest`,...i}),n&&r.focusField(e))},focusField:e=>{let t=r.getFieldInstance(e);ki(t?.focus)?t.focus():aN(e,r)?.focus?.()},getFieldInstance:e=>{let t=iN(e);return n.current[t]}},[e,t]);return[r]}var sN=$.createContext(void 0),cN=sN.Provider,lN=$.createContext(void 0),uN=lN.Provider;function dN(){return dN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dN.apply(this,arguments)}var fN=(0,$.forwardRef)((e,t)=>{let{prefixCls:n=`rc-checkbox`,className:r,style:i,checked:a,disabled:o,defaultChecked:s=!1,type:c=`checkbox`,title:l,onChange:u,...d}=e,f=(0,$.useRef)(null),p=(0,$.useRef)(null),[m,h]=v(s,a);(0,$.useImperativeHandle)(t,()=>({focus:e=>{f.current?.focus(e)},blur:()=>{f.current?.blur()},input:f.current,nativeElement:p.current}));let g=X(n,r,{[`${n}-checked`]:m,[`${n}-disabled`]:o});return $.createElement(`span`,{className:g,title:l,style:i,ref:p},$.createElement(`input`,dN({},d,{className:`${n}-input`,ref:f,onChange:t=>{o||(`checked`in e||h(t.target.checked),u?.({target:{...e,type:c,checked:t.target.checked},stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:o,checked:!!m,type:c})))});function pN(e){let t=$.useRef(null),n=()=>{Y.cancel(t.current),t.current=null};return[()=>{n(),t.current=Y(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e?.(r)}]}var mN=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:{...ur(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`},"&-vertical":{display:`flex`,flexDirection:`column`,rowGap:e.marginXS,[`${t}-wrapper`]:{marginInlineEnd:0}}}}},hN=e=>{let{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,colorPrimaryHover:i,radioSize:a,motionDurationSlow:o,motionDurationMid:s,motionEaseInOutCirc:c,colorBgContainer:l,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:m,dotColorDisabled:h,dotSize:g,lineType:_,radioColor:v,radioBgColor:y}=e;return{[`${t}-wrapper`]:{...ur(e),display:`inline-flex`,alignItems:`baseline`,marginInlineStart:0,marginInlineEnd:n,cursor:`pointer`,"&:last-child":{marginInlineEnd:0},[`&${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]:{...ur(e),position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,boxSizing:`border-box`,display:`block`,width:`calc(${a} * 1px)`,height:`calc(${a} * 1px)`,backgroundColor:l,border:`${Q(d)} ${_} ${u}`,borderRadius:`50%`,transition:`all ${s}`,flex:`none`,"&:after":{content:`""`,position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%) scale(0)`,width:`calc(${g} * 1px)`,height:`calc(${g} * 1px)`,backgroundColor:v,borderRadius:`50%`,transformOrigin:`50% 50%`,opacity:0,transition:`all ${o} ${c}`},[`${t}-input`]:{position:`absolute`,inset:0,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:pr(e)},[`&:hover:not(${t}-wrapper-disabled) ${t}`]:{borderColor:r},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:i,borderColor:`transparent`},[`${t}-checked`]:{backgroundColor:y,borderColor:r,"&::after":{transform:`translate(-50%, -50%)`,opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},background:f,borderColor:u,"&::after":{backgroundColor:h}},[`${t}-disabled + span`]:{color:p,cursor:`not-allowed`},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}}}},gN=e=>{let{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationMid:s,buttonPaddingInline:c,fontSize:l,buttonBg:u,fontSizeLG:d,controlHeightLG:f,controlHeightSM:p,paddingXS:m,borderRadius:h,borderRadiusSM:g,borderRadiusLG:_,buttonCheckedBg:v,buttonSolidCheckedColor:y,colorTextDisabled:b,colorBgContainerDisabled:x,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:C,colorPrimary:w,colorPrimaryHover:T,colorPrimaryActive:E,buttonSolidCheckedBg:D,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:k,calc:A}=e;return{[`${r}-button-wrapper`]:{position:`relative`,display:`inline-block`,height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:l,lineHeight:Q(A(n).sub(A(i).mul(2)).equal()),background:u,border:`${Q(i)} ${a} ${o}`,borderBlockStartWidth:A(i).add(.02).equal(),borderInlineEndWidth:i,cursor:`pointer`,transition:[`color`,`background-color`,`box-shadow`].map(e=>`${e} ${s}`).join(`,`),a:{color:t},[`> ${r}-button`]:{position:`absolute`,insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:`100%`,height:`100%`},"&:not(:last-child)":{marginInlineEnd:A(i).mul(-1).equal()},"&:first-child":{borderInlineStart:`${Q(i)} ${a} ${o}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:f,fontSize:d,lineHeight:Q(A(f).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},[`${r}-group-small &`]:{height:p,paddingInline:A(m).sub(i).equal(),paddingBlock:0,lineHeight:Q(A(p).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:`relative`,color:w},"&:has(:focus-visible)":pr(e),[`${r}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:`none`},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:w,background:v,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:E,borderColor:E,"&::before":{backgroundColor:E}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:y,background:D,borderColor:D,"&:hover":{color:y,background:O,borderColor:O},"&:active":{color:y,background:k,borderColor:k}},"&-disabled":{color:b,backgroundColor:x,borderColor:o,cursor:`not-allowed`,"&:first-child, &:hover":{color:b,backgroundColor:x,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:C,backgroundColor:S,borderColor:o,boxShadow:`none`},"&-block":{flex:1,textAlign:`center`}}}},_N=yr(`Radio`,e=>{let{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Q(n)} ${t}`,i=wn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[mN(i),hN(i),gN(i)]},e=>{let{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:l,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e,h=a;return{radioSize:h,dotSize:t?h-8:h-(4+i)*2,dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:l,buttonCheckedColorDisabled:c,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?s:d}},{unitless:{radioSize:!0,dotSize:!0}}),vN=$.forwardRef((e,t)=>{let n=$.useContext(sN),r=$.useContext(lN),{getPrefixCls:i,direction:a,className:o,style:s,classNames:c,styles:l}=Wt(`radio`),u=S(t,$.useRef(null)),{isFormItemInput:d}=$.useContext(pm),f=t=>{e.onChange?.(t),n?.onChange?.(t)},{prefixCls:p,className:m,rootClassName:h,children:g,style:_,title:v,classNames:y,styles:b,...x}=e,C=i(`radio`,p),w=(n?.optionType||r)===`button`,T=w?`${C}-button`:C,E=la(C),[D,O]=_N(C,E),k={...x},A=$.useContext(Vo),j=k.checked;n&&(k.name=n.name,k.onChange=f,j=e.value===n.value,k.disabled=k.disabled??n.disabled),k.disabled=k.disabled??A;let M={...e,...k,checked:j},[N,P]=zi([c,y],[l,b],{props:M}),F=X(`${T}-wrapper`,{[`${T}-wrapper-checked`]:j,[`${T}-wrapper-disabled`]:k.disabled,[`${T}-wrapper-rtl`]:a===`rtl`,[`${T}-wrapper-in-form-item`]:d,[`${T}-wrapper-block`]:!!n?.block},o,m,h,N.root,D,O,E),[I,L]=pN(k.onClick);return $.createElement(Al,{component:`Radio`,disabled:k.disabled},$.createElement(`label`,{className:F,style:{...P.root,...s,..._},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:v,onClick:I},$.createElement(fN,{...k,checked:j,className:X(N.icon,{[Sl]:!w}),style:P.icon,type:`radio`,prefixCls:T,ref:u,onClick:L}),g===void 0?null:$.createElement(`span`,{className:X(`${T}-label`,N.label),style:P.label},g)))}),yN=$.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=$.useContext(Vt),{name:i}=$.useContext(pm),a=te(iN(i)),{prefixCls:o,className:s,rootClassName:c,options:l,buttonStyle:u=`outline`,disabled:d,children:f,size:p,style:m,id:h,optionType:g,name:_=a,defaultValue:y,value:b,block:x=!1,onChange:S,onMouseEnter:C,onMouseLeave:w,onFocus:T,onBlur:E,orientation:D,vertical:O,role:k=`radiogroup`}=e,[A,j]=v(y,b),M=$.useCallback(t=>{let n=A,r=t.target.value;`value`in e||j(r),r!==n&&S?.(t)},[A,j,S]),N=n(`radio`,o),P=`${N}-group`,F=la(N),[I,L]=_N(N,F),R=f;l&&l.length>0&&(R=l.map(e=>typeof e==`string`||Ei(e)?$.createElement(vN,{key:e.toString(),prefixCls:N,disabled:d,value:e,checked:A===e},e):$.createElement(vN,{key:`radio-group-value-options-${e.value}`,prefixCls:N,disabled:e.disabled||d,value:e.value,checked:A===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));let z=jl(p),[,B]=sc(D,O),H=X(P,`${P}-${u}`,{[`${P}-large`]:z===`large`,[`${P}-small`]:z===`small`,[`${P}-rtl`]:r===`rtl`,[`${P}-block`]:x},s,c,I,L,F),U=$.useMemo(()=>({onChange:M,value:A,disabled:d,name:_,optionType:g,block:x}),[M,A,d,_,g,x]);return $.createElement(`div`,{...V(e,{aria:!0,data:!0}),role:k,className:X(H,{[`${N}-group-vertical`]:B}),style:m,onMouseEnter:C,onMouseLeave:w,onFocus:T,onBlur:E,id:h,ref:t},$.createElement(cN,{value:U},R))}),bN=$.memo(yN),xN=$.forwardRef((e,t)=>{let{getPrefixCls:n}=$.useContext(Vt),{prefixCls:r,...i}=e,a=n(`radio`,r);return $.createElement(uN,{value:`button`},$.createElement(vN,{prefixCls:a,...i,type:`radio`,ref:t}))}),SN=vN;SN.Button=xN,SN.Group=bN,SN.__ANT_RADIO=!0;var CN=10,wN=20;function TN(e){let{fullscreen:t,validRange:n,generateConfig:r,locale:i,prefixCls:a,value:o,onChange:s,divRef:c}=e,l=r.getYear(o||r.getNow()),u=l-CN,d=u+wN;n&&(u=r.getYear(n[0]),d=r.getYear(n[1])+1);let f=i&&i.year===`年`?`年`:``,p=[];for(let e=u;e<d;e++)p.push({label:`${e}${f}`,value:e});return $.createElement(Lv,{size:t?void 0:`small`,options:p,value:l,className:`${a}-year-select`,onChange:e=>{let t=r.setYear(o,e);if(n){let[e,i]=n,a=r.getYear(t),o=r.getMonth(t);a===r.getYear(i)&&o>r.getMonth(i)&&(t=r.setMonth(t,r.getMonth(i))),a===r.getYear(e)&&o<r.getMonth(e)&&(t=r.setMonth(t,r.getMonth(e)))}s(t)},getPopupContainer:()=>c.current})}function EN(e){let{prefixCls:t,fullscreen:n,validRange:r,value:i,generateConfig:a,locale:o,onChange:s,divRef:c}=e,l=a.getMonth(i||a.getNow()),u=0,d=11;if(r){let[e,t]=r,n=a.getYear(i);a.getYear(t)===n&&(d=a.getMonth(t)),a.getYear(e)===n&&(u=a.getMonth(e))}let f=o.shortMonths||a.locale.getShortMonths(o.locale),p=[];for(let e=u;e<=d;e+=1)p.push({label:f[e],value:e});return $.createElement(Lv,{size:n?void 0:`small`,className:`${t}-month-select`,value:l,options:p,onChange:e=>{s(a.setMonth(i,e))},getPopupContainer:()=>c.current})}function DN(e){let{prefixCls:t,locale:n,mode:r,fullscreen:i,onModeChange:a}=e;return $.createElement(bN,{onChange:({target:{value:e}})=>{a(e)},value:r,size:i?void 0:`small`,className:`${t}-mode-switch`},$.createElement(xN,{value:`month`},n.month),$.createElement(xN,{value:`year`},n.year))}function ON(e){let{prefixCls:t,fullscreen:n,mode:r,onChange:i,onModeChange:a,className:o,style:s}=e,c=$.useRef(null),l=(0,$.useContext)(pm),u=(0,$.useMemo)(()=>({...l,isFormItemInput:!1}),[l]),d={...e,fullscreen:n,divRef:c};return $.createElement(`div`,{className:X(`${t}-header`,o),style:s,ref:c},$.createElement(pm.Provider,{value:u},$.createElement(TN,{...d,onChange:e=>{i(e,`year`)}}),r===`month`&&$.createElement(EN,{...d,onChange:e=>{i(e,`month`)}})),$.createElement(DN,{...d,onModeChange:a}))}function kN(e){return wn(e,{inputAffixPadding:e.paddingXXS})}var AN=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:c,paddingSM:l,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:_,colorWarningOutline:v,colorBgContainer:y,inputFontSize:b,inputFontSizeLG:x,inputFontSizeSM:S}=e,C=b||n,w=S||C,T=x||s,E=Math.round((t-C*r)/2*10)/10-i,D=Math.round((a-w*r)/2*10)/10-i,O=Math.ceil((o-T*c)/2*10)/10-i;return{paddingBlock:Math.max(E,0),paddingBlockSM:Math.max(D,0),paddingBlockLG:Math.max(O,0),paddingInline:l-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${_}`,warningActiveShadow:`0 0 0 ${h}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:C,inputFontSizeLG:T,inputFontSizeSM:w}},jN=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),MN=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:`none`,cursor:`not-allowed`,opacity:1,"input[disabled], textarea[disabled]":{cursor:`not-allowed`},"&:hover:not([disabled])":{...jN(wn(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),NN=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),PN=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...NN(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),FN=(e,t)=>({"&-outlined":{...NN(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...MN(e)},...PN(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...PN(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),IN=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),LN=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...IN(e,{status:`error`,addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...IN(e,{status:`warning`,addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...MN(e)}}}}),RN=(e,t)=>{let{componentCls:n}=e;return{"&-borderless":{background:`transparent`,border:`none`,paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:`none`},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError},[`${n}-prefix, ${n}-suffix`]:{color:e.colorErrorAffix}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning},[`${n}-prefix, ${n}-suffix`]:{color:e.colorWarningAffix}},...t}}},zN=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:`transparent`,"input&, & input, textarea&, & textarea":{color:t?.inputColor??`unset`},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),BN=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...zN(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),VN=(e,t)=>({"&-filled":{...zN(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...MN(e)},...BN(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...BN(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),HN=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),UN=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:`static`}},...HN(e,{status:`error`,addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...HN(e,{status:`warning`,addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),WN=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Q(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),GN=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...WN(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),KN=(e,t)=>({"&-underlined":{...WN(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:`none`,cursor:`not-allowed`,"&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:`not-allowed`},...GN(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...GN(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),qN=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:`none`},"&:placeholder-shown":{textOverflow:`ellipsis`}}),JN=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${Q(t)} ${Q(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},YN=e=>({padding:`${Q(e.paddingBlockSM)} ${Q(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),XN=(e,t={})=>({position:`relative`,display:`inline-block`,width:`100%`,minWidth:0,padding:`${Q(e.paddingBlock)} ${Q(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...qN(e.colorTextPlaceholder),"&-lg":{...JN(e),...t.largeStyle},"&-sm":{...YN(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:`rtl`}}),ZN=e=>{let{componentCls:t,antCls:n}=e;return{position:`relative`,display:`table`,width:`100%`,borderCollapse:`separate`,borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...JN(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...YN(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:`table-cell`,"&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:`table-cell`,width:1,whiteSpace:`nowrap`,verticalAlign:`middle`,"&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:`block !important`},"&-addon":{position:`relative`,padding:`0 ${Q(e.paddingInline)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.inputFontSize,textAlign:`center`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Q(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Q(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:`inherit`,border:`${Q(e.lineWidth)} ${e.lineType} transparent`,boxShadow:`none`}},[`${n}-cascader-picker`]:{margin:`-9px ${Q(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:`transparent`,[`${n}-cascader-input`]:{textAlign:`start`,border:0,boxShadow:`none`}}}},[t]:{width:`100%`,marginBottom:0,textAlign:`inherit`,"&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:`block`,...fr(),[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:`inline-flex`,float:`none`,verticalAlign:`top`,borderRadius:0},[`
160
+ & > ${t}-affix-wrapper,
161
+ & > ${t}-number-affix-wrapper,
162
+ & > ${n}-picker-range
163
+ `]:{display:`inline-flex`},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:`none`},[`& > ${n}-select,
164
+ & > ${n}-select-auto-complete ${t},
165
+ & > ${n}-cascader-picker ${t},
166
+ & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
167
+ & > ${n}-select:first-child,
168
+ & > ${n}-select-auto-complete:first-child ${t},
169
+ & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
170
+ & > ${n}-select:last-child,
171
+ & > ${n}-cascader-picker:last-child ${t},
172
+ & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:`top`},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},QN=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:{...ur(e),...XN(e),...FN(e),...VN(e),...RN(e),...KN(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:`none`}}}},$N=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,border:`none`,outline:`none`,backgroundColor:`transparent`,"&:hover":{color:e.colorIcon},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...pr(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${Q(e.inputAffixPadding)}`}}}},eP=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:{...XN(e),display:`inline-flex`,"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:`inherit`,border:`none`,borderRadius:0,outline:`none`,background:`transparent`,color:`inherit`,"&::-ms-reveal":{display:`none`},"&:focus":{boxShadow:`none !important`}},"&::before":{display:`inline-block`,width:0,visibility:`hidden`,content:`"\\a0"`},[t]:{"&-prefix, &-suffix":{display:`flex`,flex:`none`,alignItems:`center`,"> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:`ltr`},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n},"&-password-icon":{display:`inline-flex`,color:a,cursor:`pointer`,transition:`all ${i}`,"&:hover":{color:o}}},...$N(e)},[`${t}-underlined`]:{borderRadius:0},[c]:{[`${t}-password-icon`]:{color:a,cursor:`not-allowed`,"&:hover":{color:a}}}}},tP=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...ur(e),...ZN(e),"&-rtl":{direction:`rtl`},"&-wrapper":{display:`inline-block`,width:`100%`,textAlign:`start`,verticalAlign:`top`,"&-rtl":{direction:`rtl`},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}},...LN(e),...UN(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}}},nP=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},rP=yr([`Input`,`Shared`],e=>{let t=wn(e,kN(e));return[QN(t),eP(t)]},AN,{resetFont:!1}),iP=yr([`Input`,`Component`],e=>{let t=wn(e,kN(e));return[tP(t),nP(t),Zd(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},AN,{resetFont:!1}),aP=e=>{let{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(i).equal(),0),itemHeight:Q(t),itemLineHeight:Q(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},oP=e=>{let{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:l,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:`relative`,display:`flex`,flex:`auto`,flexWrap:`wrap`,maxWidth:`100%`,"&-item":{flex:`none`,alignSelf:`center`,maxWidth:`calc(100% - 4px)`,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`,`line-height`,`height`].map(e=>`${e} ${i}`).join(`, `),marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:`not-allowed`},"&-content":{display:`inline-block`,marginInlineEnd:e.calc(a).div(2).equal(),overflow:`hidden`,whiteSpace:`pre`,textOverflow:`ellipsis`},"&-remove":{...dr(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${n}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}}}}},sP=(e,t)=>{let{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:``,a=aP(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:Q(a.itemLineHeight)}}}]},cP=e=>{let{componentCls:t,calc:n,lineWidth:r}=e,i=wn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=wn(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[sP(i,`small`),sP(e),sP(a,`large`),{[`${t}${t}-multiple`]:{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}`,flex:1,color:e.colorTextPlaceholder,pointerEvents:`none`,...lr}},...oP(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:`hidden`,position:`absolute`,zIndex:-1}}}]},lP=e=>{let{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:a,cellHoverBg:o,lineWidth:s,lineType:c,colorPrimary:l,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:Q(r),borderRadius:i,transition:`background-color ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
173
+ &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:o}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Q(s)} ${c} ${l}`,borderRadius:i,content:`""`}},[`&-in-view${t}-in-range,
174
+ &-in-view${t}-range-start,
175
+ &-in-view${t}-range-end`]:{position:`relative`,[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,
176
+ &-in-view${t}-range-start,
177
+ &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:l},[`&${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:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:f,cursor:`not-allowed`,[n]:{background:`transparent`},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},uP=e=>{let{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,cellWidth:o,paddingSM:s,paddingXS:c,paddingXXS:l,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:m,colorTextHeading:h,colorSplit:g,pickerControlIconBorderWidth:_,colorIcon:v,textHeight:y,motionDurationMid:b,colorIconHover:x,fontWeightStrong:S,cellHeight:C,pickerCellPaddingVertical:w,colorTextDisabled:T,colorText:E,fontSize:D,motionDurationSlow:O,withoutTimeCellHeight:k,pickerQuarterPanelContentHeight:A,borderRadiusSM:j,colorTextLightSolid:M,cellHoverBg:N,timeColumnHeight:P,timeColumnWidth:F,timeCellHeight:I,controlItemBgActive:L,marginXXS:R,pickerDatePanelPaddingHorizontal:z,pickerControlIconMargin:B}=e,V=e.calc(o).mul(7).add(e.calc(z).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,
178
+ ${t}-super-prev-icon`]:{transform:`rotate(45deg)`},[`${t}-next-icon,
179
+ ${t}-super-next-icon`]:{transform:`rotate(-135deg)`},[`${t}-time-panel`]:{[`${t}-content`]:{direction:`ltr`,"> *":{direction:`rtl`}}}}},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel, &-week-panel, &-date-panel, &-time-panel":{display:`flex`,flexDirection:`column`,width:V},"&-header":{display:`flex`,padding:`0 ${Q(c)}`,color:h,borderBottom:`${Q(d)} ${f} ${g}`,"> *":{flex:`none`},button:{padding:0,color:v,lineHeight:Q(y),background:`transparent`,border:0,cursor:`pointer`,transition:`color ${b}`,fontSize:`inherit`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,"&:empty":{display:`none`}},"> button":{minWidth:`1.6em`,fontSize:D,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:`none`}},"&-view":{flex:`auto`,fontWeight:S,lineHeight:Q(y),"> button":{color:`inherit`,fontWeight:`inherit`,verticalAlign:`top`,"&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon, &-next-icon, &-super-prev-icon, &-super-next-icon":{position:`relative`,width:a,height:a,"&::before":{position:`absolute`,top:0,insetInlineStart:0,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:_,borderInlineStartWidth:_,content:`""`}},"&-super-prev-icon, &-super-next-icon":{"&::after":{position:`absolute`,top:B,insetInlineStart:B,display:`inline-block`,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:_,borderInlineStartWidth:_,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:C,fontWeight:`normal`},th:{height:e.calc(C).add(e.calc(w).mul(2)).equal(),color:E,verticalAlign:`middle`}},"&-cell":{padding:`${Q(w)} 0`,color:T,cursor:`pointer`,"&-in-view":{color:E},...lP(e)},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel":{[`${t}-content`]:{height:e.calc(k).mul(4).equal()},[r]:{padding:`0 ${Q(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:A}},"&-decade-panel":{[r]:{padding:`0 ${Q(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:`none`}},"&-year-panel, &-quarter-panel, &-month-panel":{[`${t}-body`]:{padding:`0 ${Q(c)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${Q(c)} ${Q(z)}`},[`${t}-content th`]:{boxSizing:`border-box`,padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background-color ${b}`},"&:first-child:before":{borderStartStartRadius:j,borderEndStartRadius:j},"&:last-child:before":{borderStartEndRadius:j,borderEndEndRadius:j}},"&:hover td:before":{background:N},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new pe(M).setA(.5).toHexString()},[r]:{color:M}}},"&-range-hover td:before":{background:L}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${Q(c)} ${Q(s)}`},[`${t}-content th`]:{width:`auto`}},"&-datetime-panel":{display:`flex`,[`${t}-time-panel`]:{borderInlineStart:`${Q(d)} ${f} ${g}`},[`${t}-date-panel,
180
+ ${t}-time-panel`]:{transition:`opacity ${O}`},"&-active":{[`${t}-date-panel,
181
+ ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:`auto`,minWidth:`auto`,[`${t}-content`]:{display:`flex`,flex:`auto`,height:P},"&-column":{flex:`1 0 auto`,width:F,margin:`${Q(l)} 0`,padding:0,overflowY:`auto`,textAlign:`start`,listStyle:`none`,transition:`background-color ${b}`,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% - ${Q(I)})`,content:`""`},"&:not(:first-child)":{borderInlineStart:`${Q(d)} ${f} ${g}`},"&-active":{background:new pe(L).setA(.2).toHexString()},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:R,[`${t}-time-panel-cell-inner`]:{display:`block`,width:e.calc(F).sub(e.calc(R).mul(2)).equal(),height:I,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(F).sub(I).div(2).equal(),color:E,lineHeight:Q(I),borderRadius:j,cursor:`pointer`,transition:`background-color ${b}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:L}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:T,background:`transparent`,cursor:`not-allowed`}}}}}}}}},dP=e=>{let{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:a,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:c,lineType:l,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${Q(r)} ${l} ${u}`,"&-extra":{padding:`0 ${Q(i)}`,lineHeight:Q(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:`start`,"&:not(:last-child)":{borderBottom:`${Q(r)} ${l} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:`space-between`},[`${t}-ranges`]:{marginBlock:0,paddingInline:Q(i),overflow:`hidden`,textAlign:`start`,listStyle:`none`,display:`flex`,justifyContent:`center`,alignItems:`center`,"> li":{lineHeight:Q(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:`inline-block`},[`${t}-now-btn-disabled`]:{pointerEvents:`none`,color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:o,background:s,borderColor:c,cursor:`pointer`},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:`auto`}}}}},fP=e=>{let{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=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(i).add(e.calc(r).div(2)).equal()}},pP=e=>{let{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,c=o*2,l=Math.min(n-s,n-c),u=Math.min(r-s,r-c),d=Math.min(i-s,i-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new pe(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new pe(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:`transparent`,multipleItemHeight:l,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:`transparent`}},mP=e=>({...AN(e),...pP(e),...dy(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),hP=e=>{let{componentCls:t}=e;return{[t]:[{...FN(e),...KN(e),...VN(e),...RN(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},gP=(e,t)=>({padding:`${Q(e)} ${Q(t)}`}),_P=e=>{let{componentCls:t,colorError:n,colorWarning:r}=e,[i]=Sr(e.antCls,`date-picker`);return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[i(`affix-color`)]:e.colorErrorAffix,[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[i(`affix-color`)]:e.colorWarningAffix,[`${t}-active-bar`]:{background:r}}}}},vP=e=>{let{componentCls:t,antCls:n,paddingInline:r,lineWidth:i,lineType:a,colorBorder:o,borderRadius:s,motionDurationMid:c,colorTextDisabled:l,colorTextPlaceholder:u,colorTextQuaternary:d,fontSizeLG:f,inputFontSizeLG:p,fontSizeSM:m,inputFontSizeSM:h,controlHeightSM:g,paddingInlineSM:_,paddingXS:v,marginXS:y,colorIcon:b,lineWidthBold:x,colorPrimary:S,motionDurationSlow:C,zIndexPopup:w,paddingXXS:T,sizePopupArrow:E,colorBgElevated:D,borderRadiusLG:O,boxShadowSecondary:k,borderRadiusSM:A,colorSplit:j,cellHoverBg:M,presetsWidth:N,presetsMaxWidth:P,boxShadowPopoverArrow:F,fontHeight:I,lineHeightLG:L}=e,[R,z]=Sr(n,`date-picker`);return[{[t]:{[R(`affix-color`)]:`inherit`,...ur(e),...gP(e.paddingBlock,e.paddingInline),position:`relative`,display:`inline-flex`,alignItems:`center`,lineHeight:1,borderRadius:s,transition:[`border`,`box-shadow`,`background-color`].map(e=>`${e} ${c}`).join(`, `),[`${t}-prefix`]:{color:z(`affix-color`),flex:`0 0 auto`,marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:`relative`,display:`inline-flex`,alignItems:`center`,width:`100%`,"> input":{position:`relative`,display:`inline-block`,width:`100%`,color:`inherit`,fontSize:e.inputFontSize??e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`,...qN(u),flex:`auto`,minWidth:1,height:`auto`,padding:0,background:`transparent`,border:0,fontFamily:`inherit`,"&:focus":{boxShadow:`none`,outline:0},"&[disabled]":{background:`transparent`,color:l,cursor:`not-allowed`}},"&-placeholder":{"> input":{color:u}}},"&-large":{...gP(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:p??f,lineHeight:L}},"&-small":{...gP(e.paddingBlockSM,e.paddingInlineSM),borderRadius:e.borderRadiusSM,[`${t}-input > input`]:{fontSize:h??m}},[`${t}-suffix`]:{display:`flex`,flex:`none`,alignSelf:`center`,marginInlineStart:e.calc(v).div(2).equal(),color:d,lineHeight:1,pointerEvents:`none`,transition:[`opacity`,`color`].map(e=>`${e} ${c}`).join(`, `),"> *":{verticalAlign:`top`,"&:not(:last-child)":{marginInlineEnd:y}}},[`${t}-clear`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,color:d,lineHeight:1,transform:`translateY(-50%)`,cursor:`pointer`,opacity:0,transition:[`opacity`,`color`].map(e=>`${e} ${c}`).join(`, `),"> *":{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:f,color:d,fontSize:f,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:x,background:S,opacity:0,transition:`all ${C} ease-out`,pointerEvents:`none`},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:`center`,padding:`0 ${Q(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:_}}},"&-dropdown":{...ur(e),...uP(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,
182
+ &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:`block`,transform:`translateY(-100%)`}},[`&${t}-dropdown-placement-topLeft,
183
+ &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:`block`,transform:`translateY(100%) rotate(180deg)`}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:`none`}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
184
+ &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
185
+ &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
186
+ &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:pu},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
187
+ &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
188
+ &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
189
+ &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:du},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:`none`},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
190
+ &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:mu},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
191
+ &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:fu},[`${t}-panel > ${t}-time-panel`]:{paddingTop:T},[`${t}-range-wrapper`]:{display:`flex`,position:`relative`},[`${t}-range-arrow`]:{position:`absolute`,zIndex:1,display:`none`,paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:`content-box`,transition:`all ${C} ease-out`,...fy(e,D,F),"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:`hidden`,verticalAlign:`top`,background:D,borderRadius:O,boxShadow:k,transition:`margin ${C}`,display:`inline-block`,pointerEvents:`auto`,[`${t}-panel-layout`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`stretch`},[`${t}-presets`]:{display:`flex`,flexDirection:`column`,minWidth:N,maxWidth:P,ul:{height:0,flex:`auto`,listStyle:`none`,overflow:`auto`,margin:0,padding:v,borderInlineEnd:`${Q(i)} ${a} ${j}`,li:{...lr,borderRadius:A,paddingInline:v,paddingBlock:e.calc(g).sub(I).div(2).equal(),cursor:`pointer`,transition:`all ${C}`,"+ li":{marginTop:y},"&: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:o}}}},"&-dropdown-range":{padding:`${Q(e.calc(E).mul(2).div(3).equal())} 0`,"&-hidden":{display:`none`}},"&-rtl":{direction:`rtl`,[`${t}-separator`]:{transform:`scale(-1, 1)`},[`${t}-footer`]:{"&-extra":{direction:`rtl`}}}}},bu(e,`slide-up`),bu(e,`slide-down`),uu(e,`move-up`),uu(e,`move-down`)]},yP=yr(`DatePicker`,e=>{let t=wn(kN(e),fP(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[dP(t),vP(t),hP(t),_P(t),cP(t),Zd(e,{focusElCls:`${e.componentCls}-focused`})]},mP),bP=e=>{let{calendarCls:t,componentCls:n,fullBg:r,fullPanelBg:i,itemActiveBg:a}=e;return{[t]:{...uP(e),...ur(e),background:r,"&-rtl":{direction:`rtl`},[`${t}-header`]:{display:`flex`,justifyContent:`flex-end`,padding:`${Q(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:i,border:0,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:`auto`},[`${n}-body`]:{padding:`${Q(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 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:`auto`,padding:0,lineHeight:Q(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:Q(e.weekHeight)}}},[`${n}-cell-week ${n}-cell-inner`]:{display:`block`,borderRadius:0,borderTop:`${Q(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,width:`100%`,height:e.calc(e.dateValueHeight).add(e.dateContentHeight).add(e.calc(e.paddingXS).div(2)).add(e.lineWidthBold).equal()},[`${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:a}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:`block`,width:`auto`,height:`auto`,margin:`0 ${Q(e.calc(e.marginXS).div(2).equal())}`,padding:`${Q(e.calc(e.paddingXS).div(2).equal())} ${Q(e.paddingXS)} 0`,border:0,borderTop:`${Q(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background-color ${e.motionDurationSlow}`,"&-value":{lineHeight:Q(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: ${Q(e.screenXS)}) `]:{[t]:{[`${t}-header`]:{display:`block`,[`${t}-year-select`]:{width:`50%`},[`${t}-month-select`]:{width:`calc(50% - ${Q(e.paddingXS)})`},[`${t}-mode-switch`]:{width:`100%`,marginTop:e.marginXS,marginInlineStart:0,"> label":{width:`50%`,textAlign:`center`}}}}}}},xP=yr(`Calendar`,e=>{let t=`${e.componentCls}-calendar`;return bP(wn(e,fP(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()}))},e=>({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256,...pP(e)})),SP=(e,t,n)=>{let{getYear:r}=n;return e&&t&&r(e)===r(t)},CP=(e,t,n)=>{let{getMonth:r}=n;return SP(e,t,n)&&r(e)===r(t)},wP=(e,t,n)=>{let{getDate:r}=n;return CP(e,t,n)&&r(e)===r(t)},TP=e=>t=>{let{prefixCls:n,className:r,rootClassName:i,style:a,dateFullCellRender:o,dateCellRender:s,monthFullCellRender:c,monthCellRender:l,cellRender:u,fullCellRender:d,headerRender:f,value:p,defaultValue:m,disabledDate:h,mode:g,validRange:_,fullscreen:y=!0,showWeek:b,onChange:x,onPanelChange:S,onSelect:C,styles:w,classNames:T}=t,{getPrefixCls:E,direction:D,className:O,style:k,classNames:A,styles:j}=Wt(`calendar`),M={...t,mode:g,fullscreen:y,showWeek:b},[N,P]=zi([A,T],[j,w],{props:M}),[F,I,L,R,z,B]=$.useMemo(()=>{let{root:e,header:t,...n}=N,{root:r,header:i,...a}=P;return[e,t,n,r,i,a]},[N,P]),V=N.itemContent,H=P.itemContent,U=E(`picker`,n),W=`${U}-calendar`,[G,ee]=xP(U,W),K=e.getNow(),[q,te]=v(()=>m||e.getNow(),p),[ne,re]=v(`month`,g),J=$.useMemo(()=>ne===`year`?`month`:`date`,[ne]),ie=$.useCallback(t=>(_?e.isAfter(_[0],t)||e.isAfter(t,_[1]):!1)||!!h?.(t),[h,_]),ae=(e,t)=>{S?.(e,t)},oe=t=>{te(t),wP(t,q,e)||((J===`date`&&!CP(t,q,e)||J===`month`&&!SP(t,q,e))&&ae(t,ne),x?.(t))},se=e=>{re(e),ae(q,e)},ce=(e,t)=>{oe(e),C?.(e,{source:t})},le=$.useCallback((t,n)=>ki(d)?d(t,n):ki(o)?o(t):$.createElement(`div`,{className:X(`${U}-cell-inner`,`${W}-date`,{[`${W}-date-today`]:wP(K,t,e)})},$.createElement(`div`,{className:`${W}-date-value`},String(e.getDate(t)).padStart(2,`0`)),$.createElement(`div`,{className:X(`${W}-date-content`,V),style:H},ki(u)?u(t,n):s?.(t))),[K,U,W,d,o,u,s,V,H]),Y=$.useCallback((t,n)=>{if(d)return d(t,n);if(c)return c(t);let r=n.locale.shortMonths||e.locale.getShortMonths(n.locale.locale);return $.createElement(`div`,{className:X(`${U}-cell-inner`,`${W}-date`,{[`${W}-date-today`]:CP(K,t,e)})},$.createElement(`div`,{className:`${W}-date-value`},r[e.getMonth(t)]),$.createElement(`div`,{className:X(`${W}-date-content`,V),style:H},ki(u)?u(t,n):l?.(t)))},[K,U,W,d,c,u,l,V,H]),[ue]=ja(`Calendar`,Sa),de=ve(ue,t.locale||{}),fe=(e,t)=>{if(t.type===`date`)return le(e,t);if(t.type===`month`)return Y(e,{...t,locale:de?.lang})};return $.createElement(`div`,{className:X(W,{[`${W}-full`]:y,[`${W}-mini`]:!y,[`${W}-rtl`]:D===`rtl`},O,r,i,F,G,ee),style:{...R,...k,...a}},f?f({value:q,type:ne,onChange:e=>{ce(e,`customize`)},onTypeChange:se}):$.createElement(ON,{className:I,style:z,prefixCls:W,value:q,generateConfig:e,mode:ne,fullscreen:y,locale:de?.lang,validRange:_,onChange:ce,onModeChange:se}),$.createElement(lA,{classNames:L,styles:B,value:q,prefixCls:U,locale:de?.lang,generateConfig:e,cellRender:fe,onSelect:e=>{ce(e,J)},mode:J,picker:J,disabledDate:ie,hideHeader:!0,showWeek:b}))},EP=TP(pC);EP.generateCalendar=TP;var DP=(0,$.createContext)(null),OP=e=>{let{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:a,align:o=`center`}=i,[s,c]=(0,$.useState)(),l=(0,$.useRef)(),u=$.useCallback(e=>typeof a==`function`?a(e):typeof a==`number`?a:e,[a]);function d(){Y.cancel(l.current)}return(0,$.useEffect)(()=>{let e={};if(t)if(n){e.width=u(t.width);let n=r?`right`:`left`;o===`start`&&(e[n]=t[n]),o===`center`&&(e[n]=t[n]+t.width/2,e.transform=r?`translateX(50%)`:`translateX(-50%)`),o===`end`&&(e[n]=t[n]+t.width,e.transform=`translateX(-100%)`)}else e.height=u(t.height),o===`start`&&(e.top=t.top),o===`center`&&(e.top=t.top+t.height/2,e.transform=`translateY(-50%)`),o===`end`&&(e.top=t.top+t.height,e.transform=`translateY(-100%)`);return d(),l.current=Y(()=>{s&&e&&Object.keys(e).every(t=>{let n=e[t],r=s[t];return typeof n==`number`&&typeof r==`number`?Math.round(n)===Math.round(r):n===r})||c(e)}),d},[JSON.stringify(t),n,r,o,u]),{style:s}},kP={width:0,height:0,left:0,top:0};function AP(e,t,n){return(0,$.useMemo)(()=>{let n=new Map,r=t.get(e[0]?.key)||kP,i=r.left+r.width;for(let r=0;r<e.length;r+=1){let{key:a}=e[r],o=t.get(a);o||(o=t.get(e[r-1]?.key)||kP);let s=n.get(a)||{...o};s.right=i-s.left-s.width,n.set(a,s)}return n},[e.map(e=>e.key).join(`_`),t,n])}function jP(e,t){let n=$.useRef(e),[,r]=$.useState({});function i(e){let i=typeof e==`function`?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}return[n.current,i]}var MP=.1,NP=.01,PP=20,FP=.995**PP;function IP(e,t){let[n,r]=(0,$.useState)(),[i,a]=(0,$.useState)(0),[o,s]=(0,$.useState)(0),[c,l]=(0,$.useState)(),u=(0,$.useRef)();function d(e){let{screenX:t,screenY:n}=e.touches[0];r({x:t,y:n}),window.clearInterval(u.current)}function f(e){if(!n)return;let{screenX:o,screenY:c}=e.touches[0];r({x:o,y:c});let u=o-n.x,d=c-n.y;t(u,d);let f=Date.now();a(f),s(f-i),l({x:u,y:d})}function p(){if(n&&(r(null),l(null),c)){let e=c.x/o,n=c.y/o;if(Math.max(Math.abs(e),Math.abs(n))<MP)return;let r=e,i=n;u.current=window.setInterval(()=>{if(Math.abs(r)<NP&&Math.abs(i)<NP){window.clearInterval(u.current);return}r*=FP,i*=FP,t(r*PP,i*PP)},PP)}}let m=(0,$.useRef)();function h(e){let{deltaX:n,deltaY:r}=e,i=0,a=Math.abs(n),o=Math.abs(r);a===o?i=m.current===`x`?n:r:a>o?(i=n,m.current=`x`):(i=r,m.current=`y`),t(-i,-i)&&e.preventDefault()}let g=(0,$.useRef)(null);g.current={onTouchStart:d,onTouchMove:f,onTouchEnd:p,onWheel:h},$.useEffect(()=>{function t(e){g.current.onTouchStart(e)}function n(e){g.current.onTouchMove(e)}function r(e){g.current.onTouchEnd(e)}function i(e){g.current.onWheel(e)}return document.addEventListener(`touchmove`,n,{passive:!1}),document.addEventListener(`touchend`,r,{passive:!0}),e.current.addEventListener(`touchstart`,t,{passive:!0}),e.current.addEventListener(`wheel`,i,{passive:!1}),()=>{document.removeEventListener(`touchmove`,n),document.removeEventListener(`touchend`,r)}},[])}function LP(e){let[t,n]=(0,$.useState)(0),r=(0,$.useRef)(0),i=(0,$.useRef)();return i.current=e,w(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function RP(e){let t=(0,$.useRef)([]),[,n]=(0,$.useState)({}),r=(0,$.useRef)(typeof e==`function`?e():e),i=LP(()=>{let e=r.current;t.current.forEach(t=>{e=t(e)}),t.current=[],r.current=e,n({})});function a(e){t.current.push(e),i()}return[r.current,a]}var zP={width:0,height:0,left:0,top:0,right:0};function BP(e,t,n,r,i,a,{tabs:o,tabPosition:s,rtl:c}){let l,u,d;return[`top`,`bottom`].includes(s)?(l=`width`,u=c?`right`:`left`,d=Math.abs(n)):(l=`height`,u=`top`,d=-n),(0,$.useMemo)(()=>{if(!o.length)return[0,0];let n=o.length,r=n;for(let i=0;i<n;i+=1){let n=e.get(o[i].key)||zP;if(Math.floor(n[u]+n[l])>Math.floor(d+t)){r=i-1;break}}let i=0;for(let t=n-1;t>=0;--t)if((e.get(o[t].key)||zP)[u]<d){i=t+1;break}return i>r?[0,-1]:[i,r]},[e,t,r,i,a,d,s,o.map(e=>e.key).join(`_`),c])}function VP(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}var HP=`TABS_DQ`;function UP(e){return String(e).replace(/"/g,HP)}function WP(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var GP=$.forwardRef((e,t)=>{let{prefixCls:n,editable:r,locale:i,style:a}=e;return!r||r.showAdd===!1?null:$.createElement(`button`,{ref:t,type:`button`,className:`${n}-nav-add`,style:a,"aria-label":i?.addAriaLabel||`Add tab`,onClick:e=>{r.onEdit(`add`,{event:e})}},r.addIcon||`+`)}),KP=$.forwardRef((e,t)=>{let{position:n,prefixCls:r,extra:i}=e;if(!i)return null;let a,o={};return typeof i==`object`&&!$.isValidElement(i)?o=i:o.right=i,n===`right`&&(a=o.right),n===`left`&&(a=o.left),a?$.createElement(`div`,{className:`${r}-extra-content`,ref:t},a):null});function qP(){return qP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qP.apply(this,arguments)}var JP=$.forwardRef((e,t)=>{let{prefixCls:n,id:r,tabs:i,locale:a,mobile:o,more:s={},style:c,className:l,editable:u,tabBarGutter:d,rtl:p,removeAriaLabel:m,onTabClick:h,getPopupContainer:g,popupClassName:_,popupStyle:v,classNames:y,styles:b}=e,[x,S]=(0,$.useState)(!1),[C,w]=(0,$.useState)(null),{icon:T=`More`}=s,E=`${r}-more-popup`,D=`${n}-dropdown`,O=C===null?null:`${E}-${C}`,k=a?.dropdownAriaLabel;function A(e,t){e.preventDefault(),e.stopPropagation(),u.onEdit(`remove`,{key:t,event:e})}let j=$.createElement(eS,{onClick:({key:e,domEvent:t})=>{h(e,t),S(!1)},prefixCls:`${D}-menu`,id:E,tabIndex:-1,role:`listbox`,"aria-activedescendant":O,selectedKeys:[C],"aria-label":k===void 0?`expanded dropdown`:k},i.map(e=>{let{closable:t,disabled:n,closeIcon:i,key:a,label:o}=e,s=WP(t,i,u,n);return $.createElement(Ax,{key:a,id:`${E}-${a}`,role:`option`,"aria-controls":r&&`${r}-panel-${a}`,disabled:n},$.createElement(`span`,null,o),s&&$.createElement(`button`,{type:`button`,"aria-label":m||`remove`,tabIndex:0,className:X(`${D}-menu-item-remove`,y?.remove),style:b?.remove,onClick:e=>{e.stopPropagation(),A(e,a)}},i||u.removeIcon||`×`))}));function M(e){let t=i.filter(e=>!e.disabled),n=t.findIndex(e=>e.key===C)||0,r=t.length;for(let i=0;i<r;i+=1){n=(n+e+r)%r;let i=t[n];if(!i.disabled){w(i.key);return}}}function N(e){let{which:t}=e;if(!x){[f.DOWN,f.SPACE,f.ENTER].includes(t)&&(S(!0),e.preventDefault());return}switch(t){case f.UP:M(-1),e.preventDefault();break;case f.DOWN:M(1),e.preventDefault();break;case f.ESC:S(!1);break;case f.SPACE:case f.ENTER:C!==null&&h(C,e);break}}(0,$.useEffect)(()=>{let e=document.getElementById(O);e?.scrollIntoView&&e.scrollIntoView(!1)},[O,C]),(0,$.useEffect)(()=>{x||w(null)},[x]);let P={marginInlineStart:d};i.length||(P.visibility=`hidden`,P.order=1);let F=X(_,{[`${D}-rtl`]:p}),I=o?null:$.createElement(zb,qP({prefixCls:D,overlay:j,visible:i.length?x:!1,onVisibleChange:S,overlayClassName:F,overlayStyle:v,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},s),$.createElement(`button`,{type:`button`,className:`${n}-nav-more`,style:P,"aria-haspopup":`listbox`,"aria-controls":E,id:`${r}-more`,"aria-expanded":x,onKeyDown:N},T));return $.createElement(`div`,{className:X(`${n}-nav-operations`,l),style:c,ref:t},I,$.createElement(GP,{prefixCls:n,locale:a,editable:u}))}),YP=$.memo(JP,(e,t)=>t.tabMoving),XP=e=>{let{prefixCls:t,id:n,active:r,focus:i,tab:{key:a,label:o,disabled:s,closeIcon:c,icon:l},closable:u,renderWrapper:d,removeAriaLabel:f,editable:p,onClick:m,onFocus:h,onBlur:g,onKeyDown:_,onMouseDown:v,onMouseUp:y,styles:b,classNames:x,tabCount:S,currentPosition:C}=e,w=`${t}-tab`,T=WP(u,c,p,s);function E(e){s||m(e)}function D(e){e.preventDefault(),e.stopPropagation(),p.onEdit(`remove`,{key:a,event:e})}let O=$.useMemo(()=>l&&typeof o==`string`?$.createElement(`span`,null,o):o,[o,l]),k=$.useRef(null);$.useEffect(()=>{i&&k.current&&k.current.focus()},[i]);let A=$.createElement(`div`,{key:a,"data-node-key":UP(a),className:X(w,x?.item,{[`${w}-with-remove`]:T,[`${w}-active`]:r,[`${w}-disabled`]:s,[`${w}-focus`]:i}),style:b?.item,onClick:E},$.createElement(`div`,{ref:k,role:`tab`,"aria-selected":r,id:n&&`${n}-tab-${a}`,className:`${w}-btn`,"aria-controls":n&&`${n}-panel-${a}`,"aria-disabled":s,tabIndex:s?null:r?0:-1,onClick:e=>{e.stopPropagation(),E(e)},onKeyDown:_,onMouseDown:v,onMouseUp:y,onFocus:h,onBlur:g},i&&$.createElement(`div`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`Tab ${C} of ${S}`),l&&$.createElement(`span`,{className:`${w}-icon`},l),o&&O),T&&$.createElement(`button`,{type:`button`,"aria-label":f||`remove`,tabIndex:r?0:-1,className:X(`${w}-remove`,x?.remove),style:b?.remove,onClick:e=>{e.stopPropagation(),D(e)}},c||p.removeIcon||`×`));return d?d(A):A};function ZP(){return ZP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZP.apply(this,arguments)}var QP=(e,t)=>{let{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:a}=e,{width:o,height:s,left:c,top:l}=e.getBoundingClientRect();return Math.abs(o-n)<1?[o,s,c-t.left,l-t.top]:[n,r,a,i]},$P=e=>{let{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){let{width:n,height:r}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,r]}return[t,n]},eF=(e,t)=>e[+!t],tF=$.forwardRef((e,t)=>{let{className:n,style:r,id:i,animated:a,activeKey:o,rtl:s,extra:c,editable:l,locale:u,tabPosition:d,tabBarGutter:f,children:p,onTabClick:m,onTabScroll:h,indicator:g,classNames:_,styles:v}=e,{prefixCls:y,tabs:b}=$.useContext(DP),x=(0,$.useRef)(null),S=(0,$.useRef)(null),C=(0,$.useRef)(null),w=(0,$.useRef)(null),T=(0,$.useRef)(null),E=(0,$.useRef)(null),D=(0,$.useRef)(null),O=d===`top`||d===`bottom`,[k,A]=jP(0,(e,t)=>{O&&h&&h({direction:e>t?`left`:`right`})}),[j,M]=jP(0,(e,t)=>{!O&&h&&h({direction:e>t?`top`:`bottom`})}),[N,P]=(0,$.useState)([0,0]),[F,I]=(0,$.useState)([0,0]),[L,R]=(0,$.useState)([0,0]),[z,B]=(0,$.useState)([0,0]),[V,H]=RP(new Map),U=AP(b,V,F[0]),W=eF(N,O),G=eF(F,O),ee=eF(L,O),q=eF(z,O),te=Math.floor(W)<Math.floor(G+ee),ne=te?W-q:W-ee,re=`${y}-nav-operations-hidden`,ie=0,ae=0;O&&s?(ie=0,ae=Math.max(0,G-ne)):(ie=Math.min(0,ne-G),ae=0);function oe(e){return e<ie?ie:e>ae?ae:e}let se=(0,$.useRef)(null),[ce,le]=(0,$.useState)();function Y(){le(Date.now())}function ue(){se.current&&clearTimeout(se.current)}IP(w,(e,t)=>{function n(e,t){e(e=>oe(e+t))}return te?(O?n(A,e):n(M,t),ue(),Y(),!0):!1}),(0,$.useEffect)(()=>(ue(),ce&&(se.current=setTimeout(()=>{le(0)},100)),ue),[ce]);let[de,fe]=BP(U,ne,O?k:j,G,ee,q,{...e,tabs:b}),pe=J((e=o)=>{let t=U.get(e)||{width:0,height:0,left:0,right:0,top:0};if(O){let e=k;s?t.right<k?e=t.right:t.right+t.width>k+ne&&(e=t.right+t.width-ne):t.left<-k?e=-t.left:t.left+t.width>-k+ne&&(e=-(t.left+t.width-ne)),M(0),A(oe(e))}else{let e=j;t.top<-j?e=-t.top:t.top+t.height>-j+ne&&(e=-(t.top+t.height-ne)),A(0),M(oe(e))}}),[me,he]=(0,$.useState)(),[ge,_e]=(0,$.useState)(!1),ve=b.filter(e=>!e.disabled).map(e=>e.key),ye=e=>{let t=ve.indexOf(me||o),n=ve.length,r=ve[(t+e+n)%n];he(r)},be=(e,t)=>{let n=ve.indexOf(e),r=b.find(t=>t.key===e);WP(r?.closable,r?.closeIcon,l,r?.disabled)&&(t.preventDefault(),t.stopPropagation(),l.onEdit(`remove`,{key:e,event:t}),n===ve.length-1?ye(-1):ye(1))},xe=(e,t)=>{_e(!0),t.button===1&&be(e,t)},Se=e=>{let{code:t}=e,n=s&&O,r=ve[0],i=ve[ve.length-1];switch(t){case`ArrowLeft`:O&&ye(n?1:-1);break;case`ArrowRight`:O&&ye(n?-1:1);break;case`ArrowUp`:e.preventDefault(),O||ye(-1);break;case`ArrowDown`:e.preventDefault(),O||ye(1);break;case`Home`:e.preventDefault(),he(r);break;case`End`:e.preventDefault(),he(i);break;case`Enter`:case`Space`:e.preventDefault(),m(me??o,e);break;case`Backspace`:case`Delete`:be(me,e);break}},Ce={};O?Ce.marginInlineStart=f:Ce.marginTop=f;let we=b.map((e,t)=>{let{key:n}=e;return $.createElement(XP,{id:i,prefixCls:y,key:n,tab:e,classNames:{item:_?.item,remove:_?.remove},styles:{item:t===0?v?.item:{...Ce,...v?.item},remove:v?.remove},closable:e.closable,editable:l,active:n===o,focus:n===me,renderWrapper:p,removeAriaLabel:u?.removeAriaLabel,tabCount:ve.length,currentPosition:t+1,onClick:e=>{m(n,e)},onKeyDown:Se,onFocus:()=>{ge||he(n),pe(n),Y(),w.current&&(s||(w.current.scrollLeft=0),w.current.scrollTop=0)},onBlur:()=>{he(void 0)},onMouseDown:e=>xe(n,e),onMouseUp:()=>{_e(!1)}})}),Te=()=>H(()=>{let e=new Map,t=T.current?.getBoundingClientRect();return b.forEach(({key:n})=>{let r=T.current?.querySelector(`[data-node-key="${UP(n)}"]`);if(r){let[i,a,o,s]=QP(r,t);e.set(n,{width:i,height:a,left:o,top:s})}}),e});(0,$.useEffect)(()=>{Te()},[b.map(e=>e.key).join(`_`)]);let Ee=LP(()=>{let e=$P(x),t=$P(S),n=$P(C);P([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);let r=$P(D);R(r),B($P(E));let i=$P(T);I([i[0]-r[0],i[1]-r[1]]),Te()}),De=b.slice(0,de),Oe=b.slice(fe+1),ke=[...De,...Oe],Ae=U.get(o),{style:je}=OP({activeTabOffset:Ae,horizontal:O,indicator:g,rtl:s});(0,$.useEffect)(()=>{pe()},[o,ie,ae,VP(Ae),VP(U),O]),(0,$.useEffect)(()=>{Ee()},[s]);let Me=!!ke.length,Ne=`${y}-nav-wrap`,Pe,Fe,Ie,Le;return O?s?(Fe=k>0,Pe=k!==ae):(Pe=k<0,Fe=k!==ie):(Ie=j<0,Le=j!==ie),$.createElement(jt,{onResize:Ee},$.createElement(`div`,{ref:K(t,x),role:`tablist`,"aria-orientation":O?`horizontal`:`vertical`,className:X(`${y}-nav`,n,_?.header),style:{...v?.header,...r},onKeyDown:()=>{Y()}},$.createElement(KP,{ref:S,position:`left`,extra:c,prefixCls:y}),$.createElement(jt,{onResize:Ee},$.createElement(`div`,{className:X(Ne,{[`${Ne}-ping-left`]:Pe,[`${Ne}-ping-right`]:Fe,[`${Ne}-ping-top`]:Ie,[`${Ne}-ping-bottom`]:Le}),ref:w},$.createElement(jt,{onResize:Ee},$.createElement(`div`,{ref:T,className:`${y}-nav-list`,style:{transform:`translate(${k}px, ${j}px)`,transition:ce?`none`:void 0}},we,$.createElement(GP,{ref:D,prefixCls:y,locale:u,editable:l,style:{...we.length===0?void 0:Ce,visibility:Me?`hidden`:null}}),$.createElement(`div`,{className:X(`${y}-ink-bar`,_?.indicator,{[`${y}-ink-bar-animated`]:a.inkBar}),style:{...je,...v?.indicator}}))))),$.createElement(YP,ZP({},e,{removeAriaLabel:u?.removeAriaLabel,ref:E,prefixCls:y,tabs:ke,className:!Me&&re,popupStyle:v?.popup,tabMoving:!!ce})),$.createElement(KP,{ref:C,position:`right`,extra:c,prefixCls:y})))}),nF=({renderTabBar:e,...t})=>e?e(t,tF):$.createElement(tF,t),rF=$.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,id:a,active:o,tabKey:s,children:c}=e,l=$.Children.count(c)>0;return $.createElement(`div`,{id:a&&`${a}-panel-${s}`,role:`tabpanel`,tabIndex:o&&l?0:-1,"aria-labelledby":a&&`${a}-tab-${s}`,"aria-hidden":!o,style:i,className:X(n,o&&`${n}-active`,r),ref:t},c)});function iF(){return iF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iF.apply(this,arguments)}var aF=e=>{let{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:a,contentStyle:o,contentClassName:s}=e,{prefixCls:c,tabs:l}=$.useContext(DP),u=r.tabPane,d=`${c}-tabpane`;return $.createElement(`div`,{className:X(`${c}-content-holder`)},$.createElement(`div`,{className:X(`${c}-content`,`${c}-content-${i}`,{[`${c}-content-animated`]:u})},l.map(e=>{let{key:i,forceRender:c,style:l,className:f,destroyOnHidden:p,...m}=e,h=i===n;return $.createElement(wi,iF({key:i,visible:h,forceRender:c,removeOnLeave:!!(a??p),leavedClassName:`${d}-hidden`},r.tabPaneMotion),({style:e,className:n},r)=>$.createElement(rF,iF({},m,{prefixCls:d,id:t,tabKey:i,animated:u,active:h,style:{...o,...l,...e},className:X(s,f,n),ref:r})))})))};function oF(e={inkBar:!0,tabPane:!1}){let t;return t=e===!1?{inkBar:!1,tabPane:!1}:e===!0?{inkBar:!0,tabPane:!1}:{inkBar:!0,...typeof e==`object`?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function sF(){return sF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sF.apply(this,arguments)}var cF=0,lF=$.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-tabs`,className:i,items:a,direction:o,activeKey:s,defaultActiveKey:c,editable:l,animated:u,tabPosition:d=`top`,tabBarGutter:f,tabBarStyle:p,tabBarExtraContent:m,locale:h,more:g,destroyOnHidden:_,renderTabBar:y,onChange:b,onTabClick:x,onTabScroll:S,getPopupContainer:C,popupClassName:w,indicator:T,classNames:E,styles:D,...O}=e,k=$.useMemo(()=>(a||[]).filter(e=>e&&typeof e==`object`&&`key`in e),[a]),A=o===`rtl`,j=oF(u),[M,N]=(0,$.useState)(!1);(0,$.useEffect)(()=>{N(We())},[]);let[P,F]=v(c??k[0]?.key,s),[I,L]=(0,$.useState)(()=>k.findIndex(e=>e.key===P));(0,$.useEffect)(()=>{let e=k.findIndex(e=>e.key===P);e===-1&&(e=Math.max(0,Math.min(I,k.length-1)),F(k[e]?.key)),L(e)},[k.map(e=>e.key).join(`_`),P,I]);let[R,z]=v(null,n);(0,$.useEffect)(()=>{n||(z(`rc-tabs-${cF}`),cF+=1)},[]);function B(e,t){x?.(e,t);let n=e!==P;F(e),n&&b?.(e)}let V={id:R,activeKey:P,animated:j,tabPosition:d,rtl:A,mobile:M},H={...V,editable:l,locale:h,more:g,tabBarGutter:f,onTabClick:B,onTabScroll:S,extra:m,style:p,getPopupContainer:C,popupClassName:X(w,E?.popup),indicator:T,styles:D,classNames:E},U=$.useMemo(()=>({tabs:k,prefixCls:r}),[k,r]);return $.createElement(DP.Provider,{value:U},$.createElement(`div`,sF({ref:t,id:n,className:X(r,`${r}-${d}`,{[`${r}-mobile`]:M,[`${r}-editable`]:l,[`${r}-rtl`]:A},i)},O),$.createElement(nF,sF({},H,{renderTabBar:y})),$.createElement(aF,sF({destroyOnHidden:_},V,{contentStyle:D?.content,contentClassName:E?.content,animated:j}))))}),uF={motionAppear:!1,motionEnter:!0,motionLeave:!0};function dF(e,t={inkBar:!0,tabPane:!1}){let n;return n=t===!1?{inkBar:!1,tabPane:!1}:t===!0?{inkBar:!0,tabPane:!0}:{inkBar:!0,...Oi(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...uF,motionName:bl(e,`switch`)}),n}function fF(e){return e.filter(e=>e)}function pF(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):fF(Je(t).map(e=>{if($.isValidElement(e)){let{key:t,props:n}=e,{tab:r,...i}=n||{};return{key:String(t),...i,label:r}}return null}))}var mF=e=>{let{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}`}}}}},[bu(e,`slide-up`),bu(e,`slide-down`)]]},hF=e=>{let{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Q(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:pr(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:`none`},[`${t}-ink-bar`]:{visibility:`hidden`}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Q(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Q(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Q(e.borderRadiusLG)} 0 0 ${Q(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 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},gF=e=>{let{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:{...ur(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:`${Q(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":{...lr,display:`flex`,alignItems:`center`,minWidth:e.tabsDropdownWidth,margin:0,padding:`${Q(e.paddingXXS)} ${Q(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.colorIcon,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`}}}}}}},_F=e=>{let{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,motionDurationSlow:s,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:`column`,[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:`absolute`,right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${r}`,content:`''`},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:[`width`,`left`,`right`].map(e=>`${e} ${s}`).join(`, `)}},[`${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,
192
+ > 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:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:`center`},[`${t}-tab + ${t}-tab`]:{margin:o},[`${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`,`top`].map(e=>`${e} ${s}`).join(`, `)}},[`${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:Q(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Q(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:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},vF=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Q(e.borderRadius)} ${Q(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Q(e.borderRadius)} ${Q(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Q(e.borderRadius)} ${Q(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Q(e.borderRadius)} 0 0 ${Q(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},yF=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:`relative`,WebkitTouchCallout:`none`,WebkitTapHighlightColor:`transparent`,display:`inline-flex`,alignItems:`center`,padding:o,fontSize:e.titleFontSize,background:`transparent`,border:0,outline:`none`,cursor:`pointer`,color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:`none`,transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:`none`,lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:`none`,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...mr(e)},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s},[`&${l}-focus ${l}-btn:focus-visible`]:pr(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${i}`]:{margin:0,verticalAlign:`middle`},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:a}}}},bF=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{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:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:a(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:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:`rtl`},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:`right`}}}}},xF=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:{...ur(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`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:`transparent`,border:`${Q(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`,outline:`none`,cursor:`pointer`,color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o},...mr(e,-3)}},[`${t}-extra-content`]:{flex:`none`},[`${t}-ink-bar`]:{position:`absolute`,background:e.inkBarColor,pointerEvents:`none`},...yF(e),[`${t}-content`]:{position:`relative`,width:`100%`},[`${t}-content-holder`]:{flex:`auto`,minWidth:0,minHeight:0},[`${t}-tabpane`]:{...mr(e),"&-hidden":{display:`none`}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:`auto`}}}}}},SF=yr(`Tabs`,e=>{let t=wn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Q(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Q(e.horizontalItemGutter)}`});return[vF(t),bF(t),_F(t),gF(t),hF(t),xF(t),mF(t)]},e=>{let{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:a}=e,o=t||a,s=n||i,c=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:o,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(o-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}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}}),CF=()=>null,wF=$.forwardRef((e,t)=>{let{type:n,className:r,rootClassName:i,size:a,onEdit:o,hideAdd:s,centered:c,addIcon:l,removeIcon:u,moreIcon:d,more:f,popupClassName:p,children:m,items:h,animated:g,style:_,indicatorSize:v,indicator:y,classNames:b,styles:x,destroyInactiveTabPane:S,destroyOnHidden:C,tabPlacement:w,tabPosition:T,...E}=e,{prefixCls:D}=E,{getPrefixCls:O,direction:k,getPopupContainer:A,className:j,style:M,classNames:N,styles:P}=Wt(`tabs`),{tabs:F}=$.useContext(Vt),I=O(`tabs`,D),L=la(I),[z,B]=SF(I,L),V=$.useRef(null);$.useImperativeHandle(t,()=>({nativeElement:V.current}));let H;n===`editable-card`&&(H={onEdit:(e,{key:t,event:n})=>{o?.(e===`add`?n:t,e)},removeIcon:u??F?.removeIcon??$.createElement(ne,null),addIcon:(l??F?.addIcon)||$.createElement(R,null),showAdd:s!==!0});let U=O(),W=jl(a),G=pF(h,m),ee=dF(I,g),K={align:y?.align??F?.indicator?.align,size:y?.size??v??F?.indicator?.size??F?.indicatorSize},q=$.useMemo(()=>{let e=w??T??void 0,t=k===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[w,T,k]),te={...e,size:W,tabPlacement:q,items:G},[re,J]=zi([N,b],[P,x],{props:te},{popup:{_default:`root`}});return $.createElement(lF,{ref:V,direction:k,getPopupContainer:A,...E,items:G,className:X({[`${I}-large`]:W===`large`,[`${I}-small`]:W===`small`,[`${I}-card`]:[`card`,`editable-card`].includes(n),[`${I}-editable-card`]:n===`editable-card`,[`${I}-centered`]:c},j,r,i,re.root,z,B,L),classNames:{...re,popup:X(p,z,B,L,re.popup?.root)},styles:J,style:{...J.root,...M,..._},editable:H,more:{icon:F?.more?.icon??F?.moreIcon??d??$.createElement(Ye,null),transitionName:`${U}-slide-up`,...f},prefixCls:I,animated:ee,indicator:K,destroyOnHidden:C??S,tabPosition:q})});wF.TabPane=CF;var TF=({prefixCls:e,className:t,hoverable:n=!0,...r})=>{let{getPrefixCls:i}=$.useContext(Vt),a=i(`card`,e),o=X(`${a}-grid`,t,{[`${a}-grid-hoverable`]:n});return $.createElement(`div`,{...r,className:o})},EF=e=>{let{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:a}=e;return{display:`flex`,justifyContent:`center`,flexDirection:`column`,minHeight:r,marginBottom:-1,padding:`0 ${Q(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`,...fr(),"&-wrapper":{width:`100%`,display:`flex`,alignItems:`center`},"&-title":{display:`inline-block`,flex:1,...lr,[`
193
+ > ${n}-typography,
194
+ > ${n}-typography-edit-content
195
+ `]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:`both`,marginBottom:a,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,"&-bar":{borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},DF=e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:`33.33%`,padding:t,border:0,borderRadius:0,boxShadow:`
196
+ ${Q(i)} 0 0 0 ${n},
197
+ 0 ${Q(i)} 0 0 ${n},
198
+ ${Q(i)} ${Q(i)} 0 0 ${n},
199
+ ${Q(i)} 0 0 0 ${n} inset,
200
+ 0 ${Q(i)} 0 0 ${n} inset;
201
+ `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},OF=e=>{let{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return{margin:0,padding:0,listStyle:`none`,background:o,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`,...fr(),"& > 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.colorIcon,lineHeight:Q(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Q(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${a}`}}}},kF=e=>({margin:`${Q(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`,...fr(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:`hidden`,flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...lr},"&-description":{color:e.colorTextDescription}}),AF=e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${Q(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Q(e.padding)} ${Q(i)}`}}},jF=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},MF=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s,motionDurationMid:c}=e;return{[t]:{...ur(e),position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:EF(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:s,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:DF(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:OF(e),[`${t}-meta`]:kF(e)},[`${t}-bordered`]:{border:`${Q(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:[`box-shadow`,`border-color`].map(e=>`${e} ${c}`).join(`, `),"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius: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`]:AF(e),[`${t}-loading`]:jF(e),[`${t}-rtl`]:{direction:`rtl`}}},NF=e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${Q(r)}`,fontSize:a,[`> ${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`}}}}},PF=yr(`Card`,e=>{let t=wn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[MF(t),NF(t)]},e=>({headerBg:`transparent`,headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),FF=e=>{let{actionClasses:t,actions:n=[],actionStyle:r}=e;return $.createElement(`ul`,{className:t,style:r},n.map((e,t)=>{let r=`action-${t}`;return $.createElement(`li`,{style:{width:`${100/n.length}%`},key:r},$.createElement(`span`,null,e))}))},IF=$.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:c={},title:l,loading:d,bordered:f,variant:p,size:m,type:h,cover:g,actions:_,tabList:v,children:y,activeTabKey:b,defaultActiveTabKey:x,tabBarExtraContent:S,hoverable:C,tabProps:w={},classNames:T,styles:E,...D}=e,{getPrefixCls:O,direction:k,className:A,style:j,classNames:M,styles:N}=Wt(`card`),[P]=vv(`card`,p,f),F=jl(m),I={...e,size:F,variant:P},[L,R]=zi([M,T],[N,E],{props:I}),z=t=>{e.onTabChange?.(t)},B=$.useMemo(()=>Je(y),[y]),V=$.useMemo(()=>B.some(e=>$.isValidElement(e)&&e.type===TF),[B]),H=O(`card`,n),[U,W]=PF(H),G=$.createElement(Jm,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),ee=b!==void 0,K={...w,[ee?`activeKey`:`defaultActiveKey`]:ee?b:x,tabBarExtraContent:S},q,te=F===`small`?F:`large`,ne=v?$.createElement(wF,{size:te,...K,className:`${H}-head-tabs`,onChange:z,items:v.map(({tab:e,...t})=>({label:e,...t}))}):null;if(l||o||ne){let e=X(`${H}-head`,L.header),t=X(`${H}-head-title`,L.title),n=X(`${H}-extra`,L.extra),r={...s,...R.header};q=$.createElement(`div`,{className:e,style:r},$.createElement(`div`,{className:`${H}-head-wrapper`},l&&$.createElement(`div`,{className:t,style:R.title},l),o&&$.createElement(`div`,{className:n,style:R.extra},o)),ne)}let re=X(`${H}-cover`,L.cover),J=g?$.createElement(`div`,{className:re,style:R.cover},g):null,ie=X(`${H}-body`,L.body),ae={...c,...R.body},oe=d||B.length?$.createElement(`div`,{className:ie,style:ae},d?G:y):null,se=X(`${H}-actions`,L.actions),ce=_?.length?$.createElement(FF,{actionClasses:se,actionStyle:R.actions,actions:_}):null,le=u(D,[`onTabChange`]),Y=X(H,A,{[`${H}-loading`]:d,[`${H}-bordered`]:P!==`borderless`,[`${H}-hoverable`]:C,[`${H}-contain-grid`]:V,[`${H}-contain-tabs`]:v?.length,[`${H}-small`]:F===`small`,[`${H}-type-${h}`]:!!h,[`${H}-rtl`]:k===`rtl`},r,i,U,W,L.root),ue={...R.root,...j,...a};return $.createElement(`div`,{ref:t,...le,className:Y,style:ue},q,J,oe,ce)}),LF=e=>{let{prefixCls:t,className:n,avatar:r,title:i,description:a,style:o,classNames:s,styles:c,...l}=e,{getPrefixCls:u,className:d,style:f,classNames:p,styles:m}=Wt(`cardMeta`),h=`${u(`card`,t)}-meta`,[g,_]=zi([p,s],[m,c],{props:e}),v=X(h,n,d,g.root),y={...f,..._.root,...o},b=X(`${h}-avatar`,g.avatar),x=X(`${h}-title`,g.title),S=X(`${h}-description`,g.description),C=X(`${h}-section`,g.section),w=r?$.createElement(`div`,{className:b,style:_.avatar},r):null,T=i?$.createElement(`div`,{className:x,style:_.title},i):null,E=a?$.createElement(`div`,{className:S,style:_.description},a):null,D=T||E?$.createElement(`div`,{className:C,style:_.section},T,E):null;return $.createElement(`div`,{...l,className:v,style:y},w,D)},RF=IF;RF.Grid=TF,RF.Meta=LF;function zF(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function BF(e,t){if(e==null)return{};var n,r,i=zF(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var VF={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 HF(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,c=r.debounceMode,l=c===void 0?void 0:c,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function m(e){var t=(e||{}).upcomingOnly,n=t===void 0?!1:t;p(),d=!n}function h(){var n=[...arguments],r=this,i=Date.now()-f;if(d)return;function o(){f=Date.now(),t.apply(r,n)}function c(){u=void 0}!s&&l&&!u&&o(),p(),l===void 0&&i>e?s?(f=Date.now(),a||(u=setTimeout(l?c:o,e))):o():a!==!0&&(u=setTimeout(l?c:o,l===void 0?e-i:e))}return h.cancel=m,h}function UF(e,t,n){var r=(n||{}).atBegin;return HF(e,t,{debounceMode:(r===void 0?!1:r)!==!1})}var WF={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return $.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 $.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,verticalSwiping:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};function GF(e,t,n){return Math.max(t,Math.min(e,n))}var KF=function(e){[`onTouchStart`,`onTouchMove`,`onWheel`].includes(e._reactName)||e.preventDefault()},qF=function(e){for(var t=[],n=JF(e),r=YF(e),i=n;i<r;i++)e.lazyLoadedList.indexOf(i)<0&&t.push(i);return t},JF=function(e){return e.currentSlide-XF(e)},YF=function(e){return e.currentSlide+ZF(e)},XF=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+ +(parseInt(e.centerPadding)>0):0},ZF=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+ +(parseInt(e.centerPadding)>0):e.slidesToShow},QF=function(e){return e&&e.offsetWidth||0},$F=function(e){return e&&e.offsetHeight||0},eI=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.startX-e.curX,r=e.startY-e.curY,i=Math.round(Math.atan2(r,n)*180/Math.PI);return i<0&&(i=360-Math.abs(i)),i<=45&&i>=0||i<=360&&i>=315?`left`:i>=135&&i<=225?`right`:t===!0?i>=35&&i<=135?`up`:`down`:`vertical`},tI=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},nI=function(e,t){var n={};return t.forEach(function(t){return n[t]=e[t]}),n},rI=function(e){var t=$.Children.count(e.children),n=e.listRef,r=Math.ceil(QF(n)),i=e.trackRef&&e.trackRef.node,a=Math.ceil(QF(i)),o;if(e.vertical)o=r;else{var s=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding==`string`&&e.centerPadding.slice(-1)===`%`&&(s*=r/100),o=Math.ceil((r-s)/e.slidesToShow)}var c=n&&$F(n.querySelector(`[data-index="0"]`)),l=c*e.slidesToShow,u=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(u=t-1-e.initialSlide);var d=e.lazyLoadedList||[],f=qF(tn(tn({},e),{},{currentSlide:u,lazyLoadedList:d}));d=d.concat(f);var p={slideCount:t,slideWidth:o,listWidth:r,trackWidth:a,currentSlide:u,slideHeight:c,listHeight:l,lazyLoadedList:d};return e.autoplaying===null&&e.autoplay&&(p.autoplaying=`playing`),p},iI=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,i=e.infinite,a=e.index,o=e.slideCount,s=e.lazyLoad,c=e.currentSlide,l=e.centerMode,u=e.slidesToScroll,d=e.slidesToShow,f=e.useCSS,p=e.lazyLoadedList;if(t&&n)return{};var m=a,h,g,_,v={},y={},b=i?a:GF(a,0,o-1);if(r){if(!i&&(a<0||a>=o))return{};a<0?m=a+o:a>=o&&(m=a-o),s&&p.indexOf(m)<0&&(p=p.concat(m)),v={animating:!0,currentSlide:m,lazyLoadedList:p,targetSlide:m},y={animating:!1,targetSlide:m}}else h=m,m<0?(h=m+o,i?o%u!==0&&(h=o-o%u):h=0):!tI(e)&&m>c?m=h=c:l&&m>=o?(m=i?o:o-1,h=i?0:o-1):m>=o&&(h=m-o,i?o%u!==0&&(h=0):h=o-d),!i&&m+d>=o&&(h=o-d),g=gI(tn(tn({},e),{},{slideIndex:m})),_=gI(tn(tn({},e),{},{slideIndex:h})),i||(g===_&&(m=h),g=_),s&&(p=p.concat(qF(tn(tn({},e),{},{currentSlide:m})))),f?(v={animating:!0,currentSlide:h,trackStyle:hI(tn(tn({},e),{},{left:g})),lazyLoadedList:p,targetSlide:b},y={animating:!1,currentSlide:h,trackStyle:mI(tn(tn({},e),{},{left:_})),swipeLeft:null,targetSlide:b}):v={currentSlide:h,trackStyle:mI(tn(tn({},e),{},{left:_})),lazyLoadedList:p,targetSlide:b};return{state:v,nextState:y}},aI=function(e,t){var n,r,i,a,o,s=e.slidesToScroll,c=e.slidesToShow,l=e.slideCount,u=e.currentSlide,d=e.targetSlide,f=e.lazyLoad,p=e.infinite;if(a=l%s!==0,n=a?0:(l-u)%s,t.message===`previous`)i=n===0?s:c-n,o=u-i,f&&!p&&(r=u-i,o=r===-1?l-1:r),p||(o=d-s);else if(t.message===`next`)i=n===0?s:n,o=u+i,f&&!p&&(o=(u+s)%l+n),p||(o=d+s);else if(t.message===`dots`)o=t.index*t.slidesToScroll;else if(t.message===`children`){if(o=t.index,p){var m=bI(tn(tn({},e),{},{targetSlide:o}));o>t.currentSlide&&m===`left`?o-=l:o<t.currentSlide&&m===`right`&&(o+=l)}}else t.message===`index`&&(o=Number(t.index));return o},oI=function(e,t,n){return e.target.tagName.match(`TEXTAREA|INPUT|SELECT`)||!t?``:e.keyCode===37?n?`next`:`previous`:e.keyCode===39?n?`previous`:`next`:``},sI=function(e,t,n){return e.target.tagName===`IMG`&&KF(e),!t||!n&&e.type.indexOf(`mouse`)!==-1?``:{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}},cI=function(e,t){var n=t.scrolling,r=t.animating,i=t.vertical,a=t.swipeToSlide,o=t.verticalSwiping,s=t.rtl,c=t.currentSlide,l=t.edgeFriction,u=t.edgeDragged,d=t.onEdge,f=t.swiped,p=t.swiping,m=t.slideCount,h=t.slidesToScroll,g=t.infinite,_=t.touchObject,v=t.swipeEvent,y=t.listHeight,b=t.listWidth;if(!n){if(r)return KF(e);i&&a&&o&&KF(e);var x,S={},C=gI(t);_.curX=e.touches?e.touches[0].pageX:e.clientX,_.curY=e.touches?e.touches[0].pageY:e.clientY,_.swipeLength=Math.round(Math.sqrt((_.curX-_.startX)**2));var w=Math.round(Math.sqrt((_.curY-_.startY)**2));if(!o&&!p&&w>10)return{scrolling:!0};o&&(_.swipeLength=w);var T=(s?-1:1)*(_.curX>_.startX?1:-1);o&&(T=_.curY>_.startY?1:-1);var E=Math.ceil(m/h),D=eI(t.touchObject,o),O=_.swipeLength;return g||(c===0&&(D===`right`||D===`down`)||c+1>=E&&(D===`left`||D===`up`)||!tI(t)&&(D===`left`||D===`up`))&&(O=_.swipeLength*l,u===!1&&d&&(d(D),S.edgeDragged=!0)),!f&&v&&(v(D),S.swiped=!0),x=i?C+y/b*O*T:s?C-O*T:C+O*T,o&&(x=C+O*T),S=tn(tn({},S),{},{touchObject:_,swipeLeft:x,trackStyle:mI(tn(tn({},t),{},{left:x}))}),Math.abs(_.curX-_.startX)<Math.abs(_.curY-_.startY)*.8||_.swipeLength>10&&(S.swiping=!0,KF(e)),S}},lI=function(e,t){var n=t.dragging,r=t.swipe,i=t.touchObject,a=t.listWidth,o=t.touchThreshold,s=t.verticalSwiping,c=t.listHeight,l=t.swipeToSlide,u=t.scrolling,d=t.onSwipe,f=t.targetSlide,p=t.currentSlide,m=t.infinite;if(!n)return r&&KF(e),{};var h=s?c/o:a/o,g=eI(i,s),_={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u||!i.swipeLength)return _;if(i.swipeLength>h){KF(e),d&&d(g);var v,y,b=m?p:f;switch(g){case`left`:case`up`:y=b+fI(t),v=l?dI(t,y):y,_.currentDirection=0;break;case`right`:case`down`:y=b-fI(t),v=l?dI(t,y):y,_.currentDirection=1;break;default:v=b}_.triggerSlideHandler=v}else{var x=gI(t);_.trackStyle=hI(tn(tn({},t),{},{left:x}))}return _},uI=function(e){for(var t=e.infinite?e.slideCount*2:e.slideCount,n=e.infinite?e.slidesToShow*-1:0,r=e.infinite?e.slidesToShow*-1:0,i=[];n<t;)i.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return i},dI=function(e,t){var n=uI(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var i in n){if(t<n[i]){t=r;break}r=n[i]}return t},fI=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=e.listRef,i=r.querySelectorAll&&r.querySelectorAll(`.slick-slide`)||[];if(Array.from(i).every(function(r){if(!e.vertical){if(r.offsetLeft-t+QF(r)/2>e.swipeLeft*-1)return n=r,!1}else if(r.offsetTop+$F(r)/2>e.swipeLeft*-1)return n=r,!1;return!0}),!n)return 0;var a=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-a)||1}else return e.slidesToScroll},pI=function(e,t){return t.reduce(function(t,n){return t&&e.hasOwnProperty(n)},!0)?null:void 0},mI=function(e){pI(e,[`left`,`variableWidth`,`slideCount`,`slidesToShow`,`slideWidth`]);var t,n;e.vertical?n=(e.unslick?e.slideCount:e.slideCount+2*e.slidesToShow)*e.slideHeight:t=yI(e)*e.slideWidth;var r={opacity:1,transition:``,WebkitTransition:``};if(e.useTransform){var i=e.vertical?`translate3d(0px, `+e.left+`px, 0px)`:`translate3d(`+e.left+`px, 0px, 0px)`,a=e.vertical?`translate3d(0px, `+e.left+`px, 0px)`:`translate3d(`+e.left+`px, 0px, 0px)`,o=e.vertical?`translateY(`+e.left+`px)`:`translateX(`+e.left+`px)`;r=tn(tn({},r),{},{WebkitTransform:i,transform:a,msTransform:o})}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},hI=function(e){pI(e,[`left`,`variableWidth`,`slideCount`,`slidesToShow`,`slideWidth`,`speed`,`cssEase`]);var t=mI(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},gI=function(e){if(e.unslick)return 0;pI(e,[`slideIndex`,`trackRef`,`infinite`,`centerMode`,`slideCount`,`slidesToShow`,`slidesToScroll`,`slideWidth`,`listWidth`,`variableWidth`,`slideHeight`]);var t=e.slideIndex,n=e.trackRef,r=e.infinite,i=e.centerMode,a=e.slideCount,o=e.slidesToShow,s=e.slidesToScroll,c=e.slideWidth,l=e.listWidth,u=e.variableWidth,d=e.slideHeight,f=e.fade,p=e.vertical,m=0,h,g,_=0;if(f||e.slideCount===1)return 0;var v=0;if(r?(v=-_I(e),a%s!==0&&t+s>a&&(v=-(t>a?o-(t-a):a%s)),i&&(v+=parseInt(o/2))):(a%s!==0&&t+s>a&&(v=o-a%s),i&&(v=parseInt(o/2))),m=v*c,_=v*d,h=p?t*d*-1+_:t*c*-1+m,u===!0){var y,b=n&&n.node;if(y=t+_I(e),g=b&&b.childNodes[y],h=g?g.offsetLeft*-1:0,i===!0){y=r?t+_I(e):t,g=b&&b.children[y],h=0;for(var x=0;x<y;x++)h-=b&&b.children[x]&&b.children[x].offsetWidth;h-=parseInt(e.centerPadding),h+=g&&(l-g.offsetWidth)/2}}return h},_I=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+ +!!e.centerMode},vI=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+ +!!e.centerMode},yI=function(e){return e.slideCount===1?1:_I(e)+e.slideCount+vI(e)},bI=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+xI(e)?`left`:`right`:e.targetSlide<e.currentSlide-SI(e)?`right`:`left`},xI=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;if(n){var a=(t-1)/2+1;return parseInt(i)>0&&(a+=1),r&&t%2==0&&(a+=1),a}return r?0:t-1},SI=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;if(n){var a=(t-1)/2+1;return parseInt(i)>0&&(a+=1),!r&&t%2==0&&(a+=1),a}return r?t-1:0},CI=function(){return!!(typeof window<`u`&&window.document&&window.document.createElement)},wI=Object.keys(WF);function TI(e){return wI.reduce(function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t},{})}function EI(e,t,n){return t=ln(t),dn(e,un()?Reflect.construct(t,n||[],ln(e).constructor):t.apply(e,n))}var DI=function(e){var t,n,r,i,a=e.rtl?e.slideCount-1-e.index:e.index;r=a<0||a>=e.slideCount,e.centerMode?(i=Math.floor(e.slidesToShow/2),n=(a-e.currentSlide)%e.slideCount===0,a>e.currentSlide-i-1&&a<=e.currentSlide+i&&(t=!0)):t=e.currentSlide<=a&&a<e.currentSlide+e.slidesToShow;var o=e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide;return{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":a===o}},OI=function(e){var t={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(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),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},kI=function(e,t){return e.key+`-`+t},AI=function(e){var t,n=[],r=[],i=[],a=$.Children.count(e.children),o=JF(e),s=YF(e);return $.Children.forEach(e.children,function(c,l){var u,d={message:`children`,index:l,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};u=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(l)>=0?c:$.createElement(`div`,null);var f=OI(tn(tn({},e),{},{index:l})),p=u.props.className||``,m=DI(tn(tn({},e),{},{index:l}));if(n.push($.cloneElement(u,{key:`original`+kI(u,l),"data-index":l,className:X(m,p),tabIndex:`-1`,"aria-hidden":!m[`slick-active`],style:tn(tn({outline:`none`},u.props.style||{}),f),onClick:function(t){u.props&&u.props.onClick&&u.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}})),e.infinite&&a>1&&e.fade===!1&&!e.unslick){var h=a-l;h<=_I(e)&&(t=-h,t>=o&&(u=c),m=DI(tn(tn({},e),{},{index:t})),r.push($.cloneElement(u,{key:`precloned`+kI(u,t),"data-index":t,tabIndex:`-1`,className:X(m,p),"aria-hidden":!m[`slick-active`],style:tn(tn({},u.props.style||{}),f),onClick:function(t){u.props&&u.props.onClick&&u.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}}))),l<vI(e)&&(t=a+l,t<s&&(u=c),m=DI(tn(tn({},e),{},{index:t})),i.push($.cloneElement(u,{key:`postcloned`+kI(u,t),"data-index":t,tabIndex:`-1`,className:X(m,p),"aria-hidden":!m[`slick-active`],style:tn(tn({},u.props.style||{}),f),onClick:function(t){u.props&&u.props.onClick&&u.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}})))}}),e.rtl?r.concat(n,i).reverse():r.concat(n,i)},jI=function(e){function t(){var e;nn(this,t);var n=[...arguments];return e=EI(this,t,[].concat(n)),$t(e,`node`,null),$t(e,`handleRef`,function(t){e.node=t}),e}return cn(t,e),an(t,[{key:`render`,value:function(){var e=AI(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return $.createElement(`div`,ld({ref:this.handleRef,className:`slick-track`,style:this.props.trackStyle},n),e)}}])}($.PureComponent);function MI(e,t,n){return t=ln(t),dn(e,un()?Reflect.construct(t,n||[],ln(e).constructor):t.apply(e,n))}var NI=function(e){return e.infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1},PI=function(e){function t(){return nn(this,t),MI(this,t,arguments)}return cn(t,e),an(t,[{key:`clickHandler`,value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:`render`,value:function(){for(var e=this.props,t=e.onMouseEnter,n=e.onMouseOver,r=e.onMouseLeave,i=e.infinite,a=e.slidesToScroll,o=e.slidesToShow,s=e.slideCount,c=e.currentSlide,l=NI({slideCount:s,slidesToScroll:a,slidesToShow:o,infinite:i}),u={onMouseEnter:t,onMouseOver:n,onMouseLeave:r},d=[],f=0;f<l;f++){var p=(f+1)*a-1,m=i?p:GF(p,0,s-1),h=m-(a-1),g=i?h:GF(h,0,s-1),_=X({"slick-active":i?c>=g&&c<=m:c===g}),v={message:`dots`,index:f,slidesToScroll:a,currentSlide:c},y=this.clickHandler.bind(this,v);d=d.concat($.createElement(`li`,{key:f,className:_},$.cloneElement(this.props.customPaging(f),{onClick:y})))}return $.cloneElement(this.props.appendDots(d),tn({className:this.props.dotsClass},u))}}])}($.PureComponent);function FI(e,t,n){return t=ln(t),dn(e,un()?Reflect.construct(t,n||[],ln(e).constructor):t.apply(e,n))}var II=function(e){function t(){return nn(this,t),FI(this,t,arguments)}return cn(t,e),an(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&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(e[`slick-disabled`]=!0,t=null);var n={key:`0`,"data-role":`none`,className:X(e),style:{display:`block`},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?$.cloneElement(this.props.prevArrow,tn(tn({},n),r)):$.createElement(`button`,ld({key:`0`,type:`button`},n),` `,`Previous`)}}])}($.PureComponent),LI=function(e){function t(){return nn(this,t),FI(this,t,arguments)}return cn(t,e),an(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`});tI(this.props)||(e[`slick-disabled`]=!0,t=null);var n={key:`1`,"data-role":`none`,className:X(e),style:{display:`block`},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?$.cloneElement(this.props.nextArrow,tn(tn({},n),r)):$.createElement(`button`,ld({key:`1`,type:`button`},n),` `,`Next`)}}])}($.PureComponent),RI=[`animating`];function zI(e,t,n){return t=ln(t),dn(e,un()?Reflect.construct(t,n||[],ln(e).constructor):t.apply(e,n))}var BI=function(e){function t(e){var n;nn(this,t),n=zI(this,t,[e]),$t(n,`listRefHandler`,function(e){return n.list=e}),$t(n,`trackRefHandler`,function(e){return n.track=e}),$t(n,`adaptHeight`,function(){if(n.props.adaptiveHeight&&n.list){var e=n.list.querySelector(`[data-index="${n.state.currentSlide}"]`);n.list.style.height=$F(e)+`px`}}),$t(n,`componentDidMount`,function(){if(n.props.onInit&&n.props.onInit(),n.props.lazyLoad){var e=qF(tn(tn({},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=tn({listRef:n.list,trackRef:n.track},n.props);n.updateState(t,!0,function(){n.adaptHeight(),n.props.autoplay&&n.autoPlay(`playing`)}),n.props.lazyLoad===`progressive`&&(n.lazyLoadTimer=setInterval(n.progressiveLazyLoad,1e3)),typeof ResizeObserver<`u`&&(n.ro=new ResizeObserver(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)}),$t(n,`componentWillUnmount`,function(){var e;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),(e=n.ro)==null||e.disconnect()}),$t(n,`componentDidUpdate`,function(e){if(n.checkImagesLoad(),n.props.onReInit&&n.props.onReInit(),n.props.lazyLoad){var t=qF(tn(tn({},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 r=tn(tn({listRef:n.list,trackRef:n.track},n.props),n.state),i=n.didPropsChange(e);i&&n.updateState(r,i,function(){n.state.currentSlide>=$.Children.count(n.props.children)&&n.changeSlide({message:`index`,index:$.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`))})}),$t(n,`onWindowResized`,function(e){n.debouncedResize&&n.debouncedResize.cancel(),n.debouncedResize=UF(50,function(){return n.resizeWindow(e)}),n.debouncedResize()}),$t(n,`resizeWindow`,function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(n.track&&n.track.node){var t=tn(tn({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}}),$t(n,`updateState`,function(e,t,r){var i=rI(e);e=tn(tn(tn({},e),i),{},{slideIndex:i.currentSlide});var a=gI(e);e=tn(tn({},e),{},{left:a});var o=mI(e);(t||$.Children.count(n.props.children)!==$.Children.count(e.children))&&(i.trackStyle=o),n.setState(i,r)}),$t(n,`ssrInit`,function(){if(n.props.variableWidth){var e=0,t=0,r=[],i=_I(tn(tn(tn({},n.props),n.state),{},{slideCount:n.props.children.length})),a=vI(tn(tn(tn({},n.props),n.state),{},{slideCount:n.props.children.length}));n.props.children.forEach(function(t){r.push(t.props.style.width),e+=t.props.style.width});for(var o=0;o<i;o++)t+=r[r.length-1-o],e+=r[r.length-1-o];for(var s=0;s<a;s++)e+=r[s];for(var c=0;c<n.state.currentSlide;c++)t+=r[c];var l={width:e+`px`,left:-t+`px`};if(n.props.centerMode){var u=`${r[n.state.currentSlide]}px`;l.left=`calc(${l.left} + (100% - ${u}) / 2 ) `}return{trackStyle:l}}var d=$.Children.count(n.props.children),f=tn(tn(tn({},n.props),n.state),{},{slideCount:d}),p=_I(f)+vI(f)+d,m=100/n.props.slidesToShow*p,h=100/p,g=-h*(_I(f)+n.state.currentSlide)*m/100;n.props.centerMode&&(g+=(100-h*m/100)/2);var _={width:m+`%`,left:g+`%`};return{slideWidth:h+`%`,trackStyle:_}}),$t(n,`checkImagesLoad`,function(){var e=n.list&&n.list.querySelectorAll&&n.list.querySelectorAll(`.slick-slide img`)||[],t=e.length,r=0;Array.prototype.forEach.call(e,function(e){var i=function(){return++r&&r>=t&&n.onWindowResized()};if(!e.onclick)e.onclick=function(){return e.parentNode.focus()};else{var a=e.onclick;e.onclick=function(t){a(t),e.parentNode.focus()}}e.onload||(n.props.lazyLoad?e.onload=function(){n.adaptHeight(),n.callbackTimers.push(setTimeout(n.onWindowResized,n.props.speed))}:(e.onload=i,e.onerror=function(){i(),n.props.onLazyLoadError&&n.props.onLazyLoadError()}))})}),$t(n,`progressiveLazyLoad`,function(){for(var e=[],t=tn(tn({},n.props),n.state),r=n.state.currentSlide;r<n.state.slideCount+vI(t);r++)if(n.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}for(var i=n.state.currentSlide-1;i>=-_I(t);i--)if(n.state.lazyLoadedList.indexOf(i)<0){e.push(i);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)}),$t(n,`slideHandler`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n.props,i=r.asNavFor,a=r.beforeChange,o=r.onLazyLoad,s=r.speed,c=r.afterChange,l=n.state.currentSlide,u=iI(tn(tn(tn({index:e},n.props),n.state),{},{trackRef:n.track,useCSS:n.props.useCSS&&!t})),d=u.state,f=u.nextState;if(d){a&&a(l,d.currentSlide);var p=d.lazyLoadedList.filter(function(e){return n.state.lazyLoadedList.indexOf(e)<0});o&&p.length>0&&o(p),!n.props.waitForAnimate&&n.animationEndCallback&&(clearTimeout(n.animationEndCallback),c&&c(l),delete n.animationEndCallback),n.setState(d,function(){i&&n.asNavForIndex!==e&&(n.asNavForIndex=e,i.innerSlider.slideHandler(e)),f&&(n.animationEndCallback=setTimeout(function(){var e=f.animating,t=BF(f,RI);n.setState(t,function(){n.callbackTimers.push(setTimeout(function(){return n.setState({animating:e})},10)),c&&c(d.currentSlide),delete n.animationEndCallback})},s))})}}),$t(n,`changeSlide`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=aI(tn(tn({},n.props),n.state),e);if(!(r!==0&&!r)&&(t===!0?n.slideHandler(r,t):n.slideHandler(r),n.props.autoplay&&n.autoPlay(`update`),n.props.focusOnSelect)){var i=n.list.querySelectorAll(`.slick-current`);i[0]&&i[0].focus()}}),$t(n,`clickHandler`,function(e){n.clickable===!1&&(e.stopPropagation(),e.preventDefault()),n.clickable=!0}),$t(n,`keyHandler`,function(e){var t=oI(e,n.props.accessibility,n.props.rtl);t!==``&&n.changeSlide({message:t})}),$t(n,`selectHandler`,function(e){n.changeSlide(e)}),$t(n,`disableBodyScroll`,function(){window.ontouchmove=function(e){e=e||window.event,e.preventDefault&&e.preventDefault(),e.returnValue=!1}}),$t(n,`enableBodyScroll`,function(){window.ontouchmove=null}),$t(n,`swipeStart`,function(e){n.props.verticalSwiping&&n.disableBodyScroll();var t=sI(e,n.props.swipe,n.props.draggable);t!==``&&n.setState(t)}),$t(n,`swipeMove`,function(e){var t=cI(e,tn(tn(tn({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));t&&(t.swiping&&(n.clickable=!1),n.setState(t))}),$t(n,`swipeEnd`,function(e){var t=lI(e,tn(tn(tn({},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),r!==void 0&&(n.slideHandler(r),n.props.verticalSwiping&&n.enableBodyScroll())}}),$t(n,`touchEnd`,function(e){n.swipeEnd(e),n.clickable=!0}),$t(n,`slickPrev`,function(){n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:`previous`})},0))}),$t(n,`slickNext`,function(){n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:`next`})},0))}),$t(n,`slickGoTo`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!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))}),$t(n,`play`,function(){var e;if(n.props.rtl)e=n.state.currentSlide-n.props.slidesToScroll;else if(tI(tn(tn({},n.props),n.state)))e=n.state.currentSlide+n.props.slidesToScroll;else return!1;n.slideHandler(e)}),$t(n,`autoPlay`,function(e){n.autoplayTimer&&clearInterval(n.autoplayTimer);var t=n.state.autoplaying;if(e===`update`){if(t===`hovered`||t===`focused`||t===`paused`)return}else if(e===`leave`){if(t===`paused`||t===`focused`)return}else if(e===`blur`&&(t===`paused`||t===`hovered`))return;n.autoplayTimer=setInterval(n.play,n.props.autoplaySpeed+50),n.setState({autoplaying:`playing`})}),$t(n,`pause`,function(e){n.autoplayTimer&&(clearInterval(n.autoplayTimer),n.autoplayTimer=null);var t=n.state.autoplaying;e===`paused`?n.setState({autoplaying:`paused`}):e===`focused`?(t===`hovered`||t===`playing`)&&n.setState({autoplaying:`focused`}):t===`playing`&&n.setState({autoplaying:`hovered`})}),$t(n,`onDotsOver`,function(){return n.props.autoplay&&n.pause(`hovered`)}),$t(n,`onDotsLeave`,function(){return n.props.autoplay&&n.state.autoplaying===`hovered`&&n.autoPlay(`leave`)}),$t(n,`onTrackOver`,function(){return n.props.autoplay&&n.pause(`hovered`)}),$t(n,`onTrackLeave`,function(){return n.props.autoplay&&n.state.autoplaying===`hovered`&&n.autoPlay(`leave`)}),$t(n,`onSlideFocus`,function(){return n.props.autoplay&&n.pause(`focused`)}),$t(n,`onSlideBlur`,function(){return n.props.autoplay&&n.state.autoplaying===`focused`&&n.autoPlay(`blur`)}),$t(n,`render`,function(){var e=X(`slick-slider`,n.props.className,{"slick-vertical":n.props.vertical,"slick-initialized":!0}),t=tn(tn({},n.props),n.state),r=nI(t,[`fade`,`cssEase`,`speed`,`infinite`,`centerMode`,`focusOnSelect`,`currentSlide`,`lazyLoad`,`lazyLoadedList`,`rtl`,`slideWidth`,`slideHeight`,`listHeight`,`vertical`,`slidesToShow`,`slidesToScroll`,`slideCount`,`trackStyle`,`variableWidth`,`unslick`,`centerPadding`,`targetSlide`,`useCSS`]),i=n.props.pauseOnHover;r=tn(tn({},r),{},{onMouseEnter:i?n.onTrackOver:null,onMouseLeave:i?n.onTrackLeave:null,onMouseOver:i?n.onTrackOver:null,focusOnSelect:n.props.focusOnSelect&&n.clickable?n.selectHandler:null});var a;if(n.props.dots===!0&&n.state.slideCount>=n.props.slidesToShow){var o=nI(t,[`dotsClass`,`slideCount`,`slidesToShow`,`currentSlide`,`slidesToScroll`,`clickHandler`,`children`,`customPaging`,`infinite`,`appendDots`]),s=n.props.pauseOnDotsHover;o=tn(tn({},o),{},{clickHandler:n.changeSlide,onMouseEnter:s?n.onDotsLeave:null,onMouseOver:s?n.onDotsOver:null,onMouseLeave:s?n.onDotsLeave:null}),a=$.createElement(PI,o)}var c,l,u=nI(t,[`infinite`,`centerMode`,`currentSlide`,`slideCount`,`slidesToShow`,`prevArrow`,`nextArrow`]);u.clickHandler=n.changeSlide,n.props.arrows&&(c=$.createElement(II,u),l=$.createElement(LI,u));var d=null;n.props.vertical&&(d={height:n.state.listHeight});var f=null;n.props.vertical===!1?n.props.centerMode===!0&&(f={padding:`0px `+n.props.centerPadding}):n.props.centerMode===!0&&(f={padding:n.props.centerPadding+` 0px`});var p=tn(tn({},d),f),m=n.props.touchMove,h={className:`slick-list`,style:p,onClick:n.clickHandler,onMouseDown:m?n.swipeStart:null,onMouseMove:n.state.dragging&&m?n.swipeMove:null,onMouseUp:m?n.swipeEnd:null,onMouseLeave:n.state.dragging&&m?n.swipeEnd:null,onTouchStart:m?n.swipeStart:null,onTouchMove:n.state.dragging&&m?n.swipeMove:null,onTouchEnd:m?n.touchEnd:null,onTouchCancel:n.state.dragging&&m?n.swipeEnd:null,onKeyDown:n.props.accessibility?n.keyHandler:null},g={className:e,dir:`ltr`,style:n.props.style};return n.props.unslick&&(h={className:`slick-list`},g={className:e,style:n.props.style}),$.createElement(`div`,g,n.props.unslick?``:c,$.createElement(`div`,ld({ref:n.listRefHandler},h),$.createElement(jI,ld({ref:n.trackRefHandler},r),n.props.children)),n.props.unslick?``:l,n.props.unslick?``:a)}),n.list=null,n.track=null,n.state=tn(tn({},VF),{},{currentSlide:n.props.initialSlide,targetSlide:n.props.initialSlide?n.props.initialSlide:0,slideCount:$.Children.count(n.props.children)}),n.callbackTimers=[],n.clickable=!0,n.debouncedResize=null;var r=n.ssrInit();return n.state=tn(tn({},n.state),r),n}return cn(t,e),an(t,[{key:`didPropsChange`,value:function(e){for(var t=!1,n=0,r=Object.keys(this.props);n<r.length;n++){var i=r[n];if(!e.hasOwnProperty(i)){t=!0;break}if(!(Gt(e[i])===`object`||typeof e[i]==`function`||isNaN(e[i]))&&e[i]!==this.props[i]){t=!0;break}}return t||$.Children.count(this.props.children)!==$.Children.count(e.children)}}])}($.Component),VI=n(((e,t)=>{t.exports=function(e){return e.replace(/[A-Z]/g,function(e){return`-`+e.toLowerCase()}).toLowerCase()}})),HI=t(n(((e,t)=>{var n=VI(),r=function(e){return/[height|width]$/.test(e)},i=function(e){var t=``,i=Object.keys(e);return i.forEach(function(a,o){var s=e[a];a=n(a),r(a)&&typeof s==`number`&&(s+=`px`),s===!0?t+=a:s===!1?t+=`not `+a:t+=`(`+a+`: `+s+`)`,o<i.length-1&&(t+=` and `)}),t};t.exports=function(e){var t=``;return typeof e==`string`?e:e instanceof Array?(e.forEach(function(n,r){t+=i(n),r<e.length-1&&(t+=`, `)}),t):i(e)}}))());function UI(e,t,n){return t=ln(t),dn(e,un()?Reflect.construct(t,n||[],ln(e).constructor):t.apply(e,n))}var WI=function(e){function t(e){var n;return nn(this,t),n=UI(this,t,[e]),$t(n,`innerSliderRefHandler`,function(e){return n.innerSlider=e}),$t(n,`slickPrev`,function(){return n.innerSlider.slickPrev()}),$t(n,`slickNext`,function(){return n.innerSlider.slickNext()}),$t(n,`slickGoTo`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return n.innerSlider.slickGoTo(e,t)}),$t(n,`slickPause`,function(){return n.innerSlider.pause(`paused`)}),$t(n,`slickPlay`,function(){return n.innerSlider.autoPlay(`play`)}),n.state={breakpoint:null},n._responsiveMediaHandlers=[],n}return cn(t,e),an(t,[{key:`media`,value:function(e,t){var n=window.matchMedia(e),r=function(e){e.matches&&t()};n.addListener(r),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 i=r===0?(0,HI.default)({minWidth:0,maxWidth:n}):(0,HI.default)({minWidth:t[r-1]+1,maxWidth:n});CI()&&e.media(i,function(){e.setState({breakpoint:n})})});var n=(0,HI.default)({minWidth:t.slice(-1)[0]});CI()&&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=this,t,n;this.state.breakpoint?(n=this.props.responsive.filter(function(t){return t.breakpoint===e.state.breakpoint}),t=n[0].settings===`unslick`?`unslick`:tn(tn(tn({},WF),this.props),n[0].settings)):t=tn(tn({},WF),this.props),t.centerMode&&(t.slidesToScroll,t.slidesToScroll=1),t.fade&&(t.slidesToShow,t.slidesToScroll,t.slidesToShow=1,t.slidesToScroll=1);var r=$.Children.toArray(this.props.children);r=r.filter(function(e){return typeof e==`string`?!!e.trim():!!e}),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(t.variableWidth=!1);for(var i=[],a=null,o=0;o<r.length;o+=t.rows*t.slidesPerRow){for(var s=[],c=o;c<o+t.rows*t.slidesPerRow;c+=t.slidesPerRow){for(var l=[],u=c;u<c+t.slidesPerRow&&(t.variableWidth&&r[u].props.style&&(a=r[u].props.style.width),!(u>=r.length));u+=1)l.push($.cloneElement(r[u],{key:100*o+10*c+u,tabIndex:-1,style:{width:`${100/t.slidesPerRow}%`,display:`inline-block`}}));s.push($.createElement(`div`,{key:10*o+c},l))}t.variableWidth?i.push($.createElement(`div`,{key:o,style:{width:a}},s)):i.push($.createElement(`div`,{key:o},s))}if(t===`unslick`){var d=`regular slider `+(this.props.className||``);return $.createElement(`div`,{className:d},r)}else i.length<=t.slidesToShow&&(t.unslick=!0);return $.createElement(BI,ld({style:this.props.style,ref:this.innerSliderRefHandler},TI(t)),i)}}])}($.Component),GI=`--dot-duration`,KI=e=>{let{componentCls:t,antCls:n}=e;return{[t]:{...ur(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`}}}},qI=e=>{let{componentCls:t,motionDurationSlow:n,arrowSize:r,arrowOffset:i}=e,a=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(a).div(2).equal(),insetInlineStart:e.calc(r).sub(a).div(2).equal(),display:`inline-block`,width:a,height:a,border:`0 solid currentcolor`,borderInlineStartWidth:2,borderBlockStartWidth:2,borderRadius:1,content:`""`}},".slick-prev":{insetInlineStart:i,"&::after":{transform:`rotate(-45deg)`}},".slick-next":{insetInlineEnd:i,"&::after":{transform:`rotate(135deg)`}}}}},JI=e=>{let{componentCls:t,dotOffset:n,dotWidth:r,dotHeight:i,dotGap:a,colorBgContainer:o,motionDurationSlow:s}=e,c=new at(`${e.prefixCls}-dot-animation`,{from:{width:0},to:{width:e.dotActiveWidth}});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:i,marginInline:a,padding:0,textAlign:`center`,textIndent:-999,verticalAlign:`top`,transition:`all ${s}`,borderRadius:i,overflow:`hidden`,"&::after":{display:`block`,position:`absolute`,top:0,insetInlineStart:0,width:0,height:i,content:`""`,background:`transparent`,borderRadius:i,opacity:1,outline:`none`,cursor:`pointer`,overflow:`hidden`},button:{position:`relative`,display:`block`,width:`100%`,height:i,padding:0,color:`transparent`,fontSize:0,background:o,border:0,borderRadius:i,outline:`none`,cursor:`pointer`,opacity:.2,transition:`all ${s}`,overflow:`hidden`,"&:hover":{opacity:.75},"&::after":{position:`absolute`,inset:e.calc(a).mul(-1).equal(),content:`""`}},"&.slick-active":{width:e.dotActiveWidth,position:`relative`,"&:hover":{opacity:1},"&::after":{background:o,animationName:c,animationDuration:`var(${GI})`,animationTimingFunction:`ease-out`,animationFillMode:`forwards`}}}}}}},YI=e=>{let{componentCls:t,dotOffset:n,arrowOffset:r,marginXXS:i}=e,a=new at(`${e.prefixCls}-dot-vertical-animation`,{from:{height:0},to:{height:e.dotActiveWidth}}),o={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%)`,"&-start":{insetInlineEnd:`auto`,insetInlineStart:n},"&-end":{insetInlineEnd:n,insetInlineStart:`auto`},li:{...o,margin:`${Q(i)} 0`,verticalAlign:`baseline`,button:o,"&::after":{...o,height:0},"&.slick-active":{...o,height:e.dotActiveWidth,button:{...o,height:e.dotActiveWidth},"&::after":{...o,animationName:a,animationDuration:`var(${GI})`,animationTimingFunction:`ease-out`,animationFillMode:`forwards`}}}}}}},XI=e=>{let{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:`rtl`}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:`column`}}}}]},ZI=yr(`Carousel`,e=>[KI(e),qI(e),JI(e),YI(e),XI(e)],e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24}),{deprecatedTokens:[[`dotWidthActive`,`dotActiveWidth`]]}),QI=`slick-dots`,$I=({currentSlide:e,slideCount:t,...n})=>$.createElement(`button`,{type:`button`,...n}),eL=$.forwardRef((e,t)=>{let{dots:n=!0,arrows:r=!1,prevArrow:i,nextArrow:a,draggable:o=!1,waitForAnimate:s=!1,dotPosition:c,dotPlacement:l,vertical:u,rootClassName:d,className:f,style:p,id:m,autoplay:h=!1,autoplaySpeed:g=3e3,rtl:_,...v}=e,y=$.useMemo(()=>{let e=l??c??`bottom`;switch(e){case`left`:return`start`;case`right`:return`end`;default:return e}},[c,l]),b=u??(y===`start`||y===`end`),{getPrefixCls:x,direction:S,className:C,style:w}=Wt(`carousel`),T=$.useRef(null),E=(e,t=!1)=>{T.current.slickGoTo(e,t)};$.useImperativeHandle(t,()=>({goTo:E,autoPlay:T.current.innerSlider.autoPlay,innerSlider:T.current.innerSlider,prev:T.current.slickPrev,next:T.current.slickNext}),[T.current]);let{children:D,initialSlide:O=0}=e,k=Je(D).length,A=(_??S===`rtl`)&&!u;$.useEffect(()=>{k>0&&E(A?k-O-1:O,!1)},[k,O,A]);let j={vertical:b,className:X(f,C),style:{...w,...p},autoplay:!!h,...v};j.effect===`fade`&&(j.fade=!0);let M=x(`carousel`,j.prefixCls),N=!!n,P=X(QI,`${QI}-${y}`,typeof n==`boolean`?!1:n?.className),[F,I]=ZI(M),L=X(M,{[`${M}-rtl`]:A,[`${M}-vertical`]:j.vertical},F,I,d),R=h&&Oi(h)&&h.dotDuration?{[GI]:`${g}ms`}:{};return $.createElement(`div`,{className:L,id:m,style:R},$.createElement(WI,{ref:T,...j,dots:N,dotsClass:P,arrows:r,prevArrow:i??$.createElement($I,{"aria-label":A?`next`:`prev`}),nextArrow:a??$.createElement($I,{"aria-label":A?`prev`:`next`}),draggable:o,verticalSwiping:b,autoplaySpeed:g,waitForAnimate:s,rtl:A}))}),tL=$.createContext({}),nL=`__rc_cascader_search_mark__`,rL=(e,t,{label:n=``})=>t.some(t=>String(t[n]).toLowerCase().includes(e.toLowerCase())),iL=(e,t,n,r)=>t.map(e=>e[r.label]).join(` / `),aL=(e,t,n,r,i,a)=>{let{filter:o=rL,render:s=iL,limit:c=50,sort:l}=i;return $.useMemo(()=>{let i=[];if(!e)return[];function u(t,d,f=!1){t.forEach(t=>{if(!l&&c!==!1&&c>0&&i.length>=c)return;let p=[...d,t],m=t[n.children],h=f||t.disabled;(!m||m.length===0||a)&&o(e,p,{label:n.label})&&i.push({...t,disabled:h,[n.label]:s(e,p,r,n),[nL]:p,[n.children]:void 0}),m&&u(t[n.children],p,h)})}return u(t,[]),l&&i.sort((t,r)=>l(t[nL],r[nL],e,n)),c!==!1&&c>0?i.slice(0,c):i},[e,t,n,r,s,a,o,l,c])},oL=`__RC_CASCADER_SPLIT__`,sL=`SHOW_PARENT`,cL=`SHOW_CHILD`;function lL(e){return e.join(oL)}function uL(e){return e.map(lL)}function dL(e){return e.split(oL)}function fL(e){let{label:t,value:n,children:r}=e||{},i=n||`value`;return{label:t||`label`,value:i,key:i,children:r||`children`}}function pL(e,t){return e.isLeaf??!e[t.children]?.length}function mL(e){let t=e.parentElement;if(!t)return;let 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 hL(e,t){return e.map(e=>e[nL]?.map(e=>e[t.value]))}function gL(e){return Array.isArray(e)&&Array.isArray(e[0])}function _L(e){return e?gL(e)?e:(e.length===0?[]:[e]).map(e=>Array.isArray(e)?e:[e]):[]}function vL(e,t,n){let r=new Set(e),i=t();return e.filter(e=>{let t=i[e],a=t?t.parent:null,o=t?t.children:null;return t&&t.node.disabled?!0:n===`SHOW_CHILD`?!(o&&o.some(e=>e.key&&r.has(e.key))):!(a&&!a.node.disabled&&r.has(a.key))})}function yL(e,t,n,r=!1){let i=t,a=[];for(let t=0;t<e.length;t+=1){let o=e[t],s=i?.findIndex(e=>{let t=e[n.value];return r?String(t)===String(o):t===o}),c=s===-1?null:i?.[s];a.push({value:c?.[n.value]??o,index:s,option:c}),i=c?.[n.children]}return a}var bL=((e,t,n,r,i)=>$.useMemo(()=>{let a=i||(e=>{let t=r?e.slice(-1):e;return t.every(e=>[`string`,`number`].includes(typeof e))?t.join(` / `):t.reduce((e,t,n)=>{let r=$.isValidElement(t)?$.cloneElement(t,{key:n}):t;return n===0?[r]:[...e,` / `,r]},[])});return e.map(e=>{let r=yL(e,t,n),i=a(r.map(({option:e,value:t})=>e?.[n.label]??t),r.map(({option:e})=>e)),o=lL(e);return{label:i,value:o,key:o,valueCells:e,disabled:r[r.length-1]?.option?.disabled}})},[e,t,n,i,r]));function xL(e,t){return $.useCallback(n=>{let r=[],i=[];return n.forEach(n=>{yL(n,e,t).every(e=>e.option)?i.push(n):r.push(n)}),[i,r]},[e,t])}function SL(e,t){return e[t]}function CL(e,t){return`${e}-${t}`}function wL(e){return e&&e.type&&e.type.isTreeNode}function TL(e,t){return e??t}function EL(e){let{title:t,_title:n,key:r,children:i}=e||{},a=t||`title`;return{title:a,_title:n||[a],key:r||`key`,children:i||`children`}}function DL(e){function t(e){return Je(e).map(e=>{if(!wL(e))return $e(!e,`Tree/TreeNode can only accept TreeNode as children.`),null;let{key:n}=e,{children:r,...i}=e.props,a={key:n,...i},o=t(r);return o.length&&(a.children=o),a}).filter(e=>e)}return t(e)}function OL(e,t,n){let{_title:r,key:i,children:a}=EL(n),o=new Set(t===!0?[]:t),s=[];function c(e,n=null){return e.map((l,d)=>{let f=CL(n?n.pos:`0`,d),p=TL(l[i],f),m;for(let e=0;e<r.length;e+=1){let t=r[e];if(l[t]!==void 0){m=l[t];break}}let h=Object.assign(u(l,[...r,i,a]),{title:m,key:p,parent:n,pos:f,children:null,data:l,isStart:[...n?n.isStart:[],d===0],isEnd:[...n?n.isEnd:[],d===e.length-1]});return s.push(h),t===!0||o.has(p)?h.children=c(l[a]||[],h):h.children=[],h})}return c(e),s}function kL(e,t,n){let r={};r=typeof n==`object`?n:{externalGetKey:n},r=r||{};let{childrenPropName:i,externalGetKey:a,fieldNames:o}=r,{key:s,children:c}=EL(o),l=i||c,u;a?typeof a==`string`?u=e=>e[a]:typeof a==`function`&&(u=e=>a(e)):u=(e,t)=>TL(e[s],t);function d(n,r,i,a){let o=n?n[l]:e,s=n?CL(i.pos,r):`0`,c=n?[...a,n]:[];n&&t({node:n,index:r,pos:s,key:u(n,s),parentPos:i.node?i.pos:null,level:i.level+1,nodes:c}),o&&o.forEach((e,t)=>{d(e,t,{node:n,pos:s,level:i?i.level+1:-1},c)})}d(null)}function AL(e,{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:i,childrenPropName:a,fieldNames:o}={},s){let c=i||s,l={},u={},d={posEntities:l,keyEntities:u};return t&&(d=t(d)||d),kL(e,e=>{let{node:t,index:r,pos:i,key:a,parentPos:o,level:s,nodes:c}=e,f={node:t,nodes:c,index:r,key:a,pos:i,level:s},p=TL(a,i);l[i]=f,u[p]=f,f.parent=l[o],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),n&&n(f,d)},{externalGetKey:c,childrenPropName:a,fieldNames:o}),r&&r(d),d}function jL(e,t,n,r){return e===!1?!1:e||!t&&!n||t&&r&&!n}function ML(e,{expandedKeys:t,selectedKeys:n,loadedKeys:r,loadingKeys:i,checkedKeys:a,halfCheckedKeys:o,dragOverNodeKey:s,dropPosition:c,keyEntities:l}){let u=SL(l,e);return{eventKey:e,expanded:t.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:r.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:o.indexOf(e)!==-1,pos:String(u?u.pos:``),dragOver:s===e&&c===0,dragOverGapTop:s===e&&c===-1,dragOverGapBottom:s===e&&c===1}}function NL(e){let{data:t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,eventKey:p}=e,m={...t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,key:p};return`props`in m||Object.defineProperty(m,"props",{get(){return $e(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}var PL=((e,t)=>{let n=$.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}});return $.useCallback(()=>(n.current.options!==e&&(n.current.options=e,n.current.info=AL(e,{fieldNames:t,initWrapper:e=>({...e,pathKeyEntities:{}}),processEntity:(e,n)=>{let r=e.nodes.map(e=>e[t.value]).join(oL);n.pathKeyEntities[r]=e,e.key=r}})),n.current.info.pathKeyEntities),[t,e])});function FL(e,t){let n=$.useMemo(()=>t||[],[t]),r=PL(n,e);return[n,r,$.useCallback(t=>{let n=r();return t.map(t=>{let{nodes:r}=n[t];return r.map(t=>t[e.value])})},[r,e])]}function IL(e,t){let{autoClearSearchValue:n,searchValue:r,onSearch:i}=t;return $.useMemo(()=>{if(!e)return[!1,{}];let t={matchInputWidth:!0,limit:50,autoClearSearchValue:n,searchValue:r,onSearch:i};return e&&typeof e==`object`&&(t={...t,...e}),t.limit<=0&&(t.limit=!1),[!0,t]},[e,n,r,i])}function LL(e,t){let n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function RL(e){let{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function zL(e,t,n,r){let i=new Set(e),a=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:a=[]}=e;i.has(t)&&!r(n)&&a.filter(e=>!r(e.node)).forEach(e=>{i.add(e.key)})});let o=new Set;for(let e=n;e>=0;--e)(t.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(r(n)||!e.parent||o.has(e.parent.key))return;if(r(e.parent.node)){o.add(t.key);return}let s=!0,c=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(({key:e})=>{let t=i.has(e);s&&!t&&(s=!1),!c&&(t||a.has(e))&&(c=!0)}),s&&i.add(t.key),c&&a.add(t.key),o.add(t.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(LL(a,i))}}function BL(e,t,n,r,i){let a=new Set(e),o=new Set(t);for(let e=0;e<=r;e+=1)(n.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:r=[]}=e;!a.has(t)&&!o.has(t)&&!i(n)&&r.filter(e=>!i(e.node)).forEach(e=>{a.delete(e.key)})});o=new Set;let s=new Set;for(let e=r;e>=0;--e)(n.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(i(n)||!e.parent||s.has(e.parent.key))return;if(i(e.parent.node)){s.add(t.key);return}let r=!0,c=!1;(t.children||[]).filter(e=>!i(e.node)).forEach(({key:e})=>{let t=a.has(e);r&&!t&&(r=!1),!c&&(t||o.has(e))&&(c=!0)}),r||a.delete(t.key),c&&o.add(t.key),s.add(t.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(LL(o,a))}}function VL(e,t,n,r){let i=[],a;a=r||RL;let o=new Set(e.filter(e=>{let t=!!SL(n,e);return t||i.push(e),t})),s=new Map,c=0;Object.keys(n).forEach(e=>{let t=n[e],{level:r}=t,i=s.get(r);i||(i=new Set,s.set(r,i)),i.add(t),c=Math.max(c,r)}),$e(!i.length,`Tree missing follow keys: ${i.slice(0,100).map(e=>`'${e}'`).join(`, `)}`);let l;return l=t===!0?zL(o,s,c,a):BL(o,t.halfCheckedKeys,s,c,a),l}function HL(e,t,n,r,i,a,o,s){return c=>{if(!e)t(c);else{let e=lL(c),l=uL(n),u=uL(r),d=l.includes(e),f=i.some(t=>lL(t)===e),p=n,m=i;if(f&&!d)m=i.filter(t=>lL(t)!==e);else{let t=d?l.filter(t=>t!==e):[...l,e],n=a(),r;d?{checkedKeys:r}=VL(t,{checked:!1,halfCheckedKeys:u},n):{checkedKeys:r}=VL(t,!0,n),p=o(vL(r,a,s))}t([...m,...p])}}}function UL(e,t,n,r,i){return $.useMemo(()=>{let[a,o]=i(t);if(!e||!t.length)return[a,[],o];let{checkedKeys:s,halfCheckedKeys:c}=VL(uL(a),!0,n());return[r(s),r(c),o]},[e,t,n,r,i])}function WL({prefixCls:e,checked:t,halfChecked:n,disabled:r,onClick:i,disableCheckbox:a}){let{checkable:o}=$.useContext(tL),s=typeof o==`boolean`?null:o;return $.createElement(`span`,{className:X(`${e}`,{[`${e}-checked`]:t,[`${e}-indeterminate`]:!t&&n,[`${e}-disabled`]:r||a}),onClick:i},s)}function GL(){return GL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GL.apply(this,arguments)}var KL=`__cascader_fix_label__`;function qL({prefixCls:e,multiple:t,options:n,activeValue:r,prevValuePath:i,onToggleOpen:a,onSelect:o,onActive:s,checkedSet:c,halfCheckedSet:l,loadingKeys:u,isSelectable:d,disabled:f}){let p=`${e}-menu`,m=`${e}-menu-item`,h=$.useRef(null),{fieldNames:g,changeOnSelect:_,expandTrigger:v,expandIcon:y,loadingIcon:b,popupMenuColumnStyle:x,optionRender:S,classNames:C,styles:w}=$.useContext(tL),T=v===`hover`,E=e=>f||e,D=$.useMemo(()=>n.map(e=>{let{disabled:t,disableCheckbox:n}=e,r=e[nL],a=e.__cascader_fix_label__??e[g.label],o=e[g.value],s=pL(e,g),d=r?r.map(e=>e[g.value]):[...i,o],f=lL(d);return{disabled:t,label:a,value:o,isLeaf:s,isLoading:u.includes(f),checked:c.has(f),halfChecked:l.has(f),option:e,disableCheckbox:n,fullPath:d,fullPathKey:f}}),[n,c,g,l,u,i]);return $.useEffect(()=>{if(h.current){let e=`.${m}-active`,t=h.current.querySelector(e);t&&mL(t)}},[r,m]),$.createElement(`ul`,{className:X(p,C?.popup?.list),style:w?.popup?.list,ref:h,role:`menu`},D.map(({disabled:n,label:i,value:c,isLeaf:l,isLoading:u,checked:f,halfChecked:p,option:h,fullPath:g,fullPathKey:v,disableCheckbox:D})=>{let O=V(h,{aria:!0,data:!0}),k=()=>{if(E(n))return;let e=[...g];T&&l&&e.pop(),s(e)},A=()=>{d(h)&&!E(n)&&o(g,l)},j;return typeof h.title==`string`?j=h.title:typeof i==`string`&&(j=i),$.createElement(`li`,GL({key:v},O,{className:X(m,C?.popup?.listItem,{[`${m}-expand`]:!l,[`${m}-active`]:r===c||r===v,[`${m}-disabled`]:E(n),[`${m}-loading`]:u}),style:{...x,...w?.popup?.listItem},role:`menuitemcheckbox`,title:j,"aria-checked":f,"data-path-key":v,onClick:()=>{k(),!D&&(!t||l)&&A()},onDoubleClick:()=>{_&&a(!1)},onMouseEnter:()=>{T&&k()},onMouseDown:e=>{e.preventDefault()}}),t&&$.createElement(WL,{prefixCls:`${e}-checkbox`,checked:f,halfChecked:p,disabled:E(n)||D,disableCheckbox:D,onClick:e=>{D||(e.stopPropagation(),A())}}),$.createElement(`div`,{className:`${m}-content`},S&&c!==`__EMPTY__`?S(h):i),!u&&y&&!l&&$.createElement(`div`,{className:`${m}-expand-icon`},y),u&&b&&$.createElement(`div`,{className:`${m}-loading-icon`},b))}))}var JL=(e,t)=>{let{values:n}=$.useContext(tL),r=n[0],[i,a]=$.useState([]);return $.useEffect(()=>{e||a(r||[])},[t,r]),[i,a]},YL=((e,t,n,r,i,a,o)=>{let{direction:s,searchValue:c,toggleOpen:l,open:u}=o,d=s===`rtl`,[p,m,h,g]=$.useMemo(()=>{let e=-1,i=t,a=[],o=[],s=r.length,c=hL(t,n);for(let t=0;t<s&&i;t+=1){let s=i.findIndex((e,i)=>(c[i]?lL(c[i]):e[n.value])===r[t]);if(s===-1)break;e=s,a.push(e),o.push(r[t]),i=i[e][n.children]}let l=t;for(let e=0;e<a.length-1;e+=1)l=l[a[e]][n.children];return[o,e,l,c]},[r,n,t]),_=e=>{i(e)},v=e=>{let t=h.length,r=m;r===-1&&e<0&&(r=t);for(let i=0;i<t;i+=1){r=(r+e+t)%t;let i=h[r];if(i&&!i.disabled){_(p.slice(0,-1).concat(g[r]?lL(g[r]):i[n.value]));return}}},y=()=>{p.length>1?_(p.slice(0,-1)):l(!1)},b=()=>{let e=(h[m]?.[n.children]||[]).find(e=>!e.disabled);e&&_([...p,e[n.value]])};$.useImperativeHandle(e,()=>({onKeyDown:e=>{let{which:t}=e;switch(t){case f.UP:case f.DOWN:{let e=0;t===f.UP?e=-1:t===f.DOWN&&(e=1),e!==0&&v(e);break}case f.LEFT:if(c)break;d?b():y();break;case f.RIGHT:if(c)break;d?y():b();break;case f.BACKSPACE:c||y();break;case f.ENTER:if(p.length){let e=h[m]?.__rc_cascader_search_mark__||[];e.length?a(e.map(e=>e[n.value]),e[e.length-1]):a(p,h[m])}break;case f.ESC:l(!1),u&&e.stopPropagation()}},onKeyUp:()=>{}}))});function XL(){return XL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XL.apply(this,arguments)}var ZL=$.forwardRef((e,t)=>{let{prefixCls:n,multiple:r,searchValue:i,toggleOpen:a,notFoundContent:o,direction:s,open:c,disabled:l,lockOptions:u=!1}=e,d=$.useRef(null),f=s===`rtl`,{options:p,values:m,halfValues:h,fieldNames:g,changeOnSelect:_,onSelect:v,searchOptions:y,popupPrefixCls:b,loadData:x,expandTrigger:S}=$.useContext(tL),C=b||n,[w,T]=$.useState([]),E=e=>{if(!x||i)return;let t=yL(e,p,g).map(({option:e})=>e),n=t[t.length-1];if(n&&!pL(n,g)){let n=lL(e);T(e=>[...e,n]),x(t)}};$.useEffect(()=>{w.length&&w.forEach(e=>{let t=yL(dL(e),p,g,!0).map(({option:e})=>e),n=t[t.length-1];(!n||n[g.children]||pL(n,g))&&T(t=>t.filter(t=>t!==e))})},[p,w,g]);let D=$.useMemo(()=>new Set(uL(m)),[m]),O=$.useMemo(()=>new Set(uL(h)),[h]),[k,A]=JL(r,c),j=e=>{A(e),E(e)},M=e=>{if(l)return!1;let{disabled:t}=e,n=pL(e,g);return!t&&(n||_||r)},N=(e,t,n=!1)=>{v(e),!r&&(t||_&&(S===`hover`||n))&&a(!1)},P=$.useMemo(()=>i?y:p,[i,y,p]),F=Qe(()=>P,[c,u],(e,t)=>!!t[0]&&!t[1]),I=$.useMemo(()=>{let e=[{options:F}],t=F,n=hL(t,g);for(let r=0;r<k.length;r+=1){let i=k[r],a=t.find((e,t)=>(n[t]?lL(n[t]):e[g.value])===i)?.[g.children];if(!a?.length)break;t=a,e.push({options:a})}return e},[F,k,g]);YL(t,F,g,k,j,(e,t)=>{M(t)&&N(e,pL(t,g),!0)},{direction:s,searchValue:i,toggleOpen:a,open:c}),$.useEffect(()=>{if(!i)for(let e=0;e<k.length;e+=1){let t=lL(k.slice(0,e+1)),n=d.current?.querySelector(`li[data-path-key="${t.replace(/\\{0,2}"/g,`\\"`)}"]`);n&&mL(n)}},[k,i]);let L=!I[0]?.options?.length,R=[{[g.value]:`__EMPTY__`,[KL]:o,disabled:!0}],z={...e,multiple:!L&&r,onSelect:N,onActive:j,onToggleOpen:a,checkedSet:D,halfCheckedSet:O,loadingKeys:w,isSelectable:M},B=(L?[{options:R}]:I).map((e,t)=>{let n=k.slice(0,t),r=k[t];return $.createElement(qL,XL({key:t},z,{prefixCls:C,options:e.options,prevValuePath:n,activeValue:r}))});return $.createElement(`div`,{className:X(`${C}-menus`,{[`${C}-menu-empty`]:L,[`${C}-rtl`]:f}),ref:d},B)});function QL(){return QL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QL.apply(this,arguments)}var $L=$.forwardRef((e,t)=>{let{lockOptions:n,...r}=lg();return $.createElement(ZL,QL({},e,r,{lockOptions:n,ref:t}))});function eR(){}function tR(e){let{prefixCls:t=`rc-cascader`,style:n,className:r,options:i,checkable:a,defaultValue:o,value:s,fieldNames:c,changeOnSelect:l,onChange:u,showCheckedStrategy:d,loadData:f,expandTrigger:p,expandIcon:m=`>`,loadingIcon:h,direction:g,notFoundContent:_=`Not Found`,disabled:y,optionRender:b}=e,x=!!a,[S,C]=v(o,s),w=_L(S),T=$.useMemo(()=>fL(c),[JSON.stringify(c)]),[E,D,O]=FL(T,i),[k,A,j]=UL(x,w,D,O,xL(E,T)),M=HL(x,J(e=>{if(C(e),u){let t=_L(e),n=t.map(e=>yL(e,E,T).map(e=>e.option));u(x?t:t[0],x?n:n[0])}}),k,A,j,D,O,d),N=J(e=>{M(e)}),P=$.useMemo(()=>({options:E,fieldNames:T,values:k,halfValues:A,changeOnSelect:l,onSelect:N,checkable:a,searchOptions:[],popupPrefixCls:void 0,loadData:f,expandTrigger:p,expandIcon:m,loadingIcon:h,popupMenuColumnStyle:void 0,optionRender:b}),[E,T,k,A,l,N,a,f,p,m,h,b]),F=`${t}-panel`,I=!E.length;return $.createElement(tL.Provider,{value:P},$.createElement(`div`,{className:X(F,{[`${F}-rtl`]:g===`rtl`,[`${F}-empty`]:I},r),style:n},I?_:$.createElement(ZL,{prefixCls:t,searchValue:``,multiple:x,toggleOpen:eR,open:!0,direction:g,disabled:y})))}function nR(){return nR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nR.apply(this,arguments)}var rR=$.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-cascader`,fieldNames:i,defaultValue:a,value:o,changeOnSelect:s,onChange:c,displayRender:l,checkable:u,showSearch:d,expandTrigger:f,options:p,popupPrefixCls:m,loadData:h,open:g,popupClassName:_,popupMenuColumnStyle:y,popupStyle:b,classNames:x,styles:S,placement:C,onPopupVisibleChange:w,expandIcon:T=`>`,loadingIcon:E,children:D,popupMatchSelectWidth:O=!1,showCheckedStrategy:k=sL,optionRender:A,...j}=e,M=te(n),N=!!u,[P,F]=v(a,o),I=_L(P),L=$.useMemo(()=>fL(i),[JSON.stringify(i)]),[R,z,B]=FL(L,p),[V,H]=IL(d,e),{autoClearSearchValue:U=!0,searchValue:W,onSearch:G}=H,[ee,K]=v(``,W),q=ee||``,ne=(e,t)=>{K(e),t.source!==`blur`&&G&&G(e)},re=aL(q,R,L,m||r,H,s||N),[ie,ae,oe]=UL(N,I,z,B,xL(R,L)),se=bL($.useMemo(()=>{let e=vL(uL(ie),z,k);return[...oe,...B(e)]},[ie,z,B,oe,k]),R,L,N,l),ce=J(e=>{if(F(e),c){let t=_L(e),n=t.map(e=>yL(e,R,L).map(e=>e.option));c(N?t:t[0],N?n:n[0])}}),le=HL(N,ce,ie,ae,oe,z,B,k),Y=J(e=>{(!N||U)&&K(``),le(e)}),ue=(e,t)=>{if(t.type===`clear`){ce([]);return}let{valueCells:n}=t.values[0];Y(n)},de=e=>{w?.(e)},fe=$.useMemo(()=>({classNames:x,styles:S,options:R,fieldNames:L,values:ie,halfValues:ae,changeOnSelect:s,onSelect:Y,checkable:u,searchOptions:re,popupPrefixCls:m,loadData:h,expandTrigger:f,expandIcon:T,loadingIcon:E,popupMenuColumnStyle:y,optionRender:A}),[x,S,R,L,ie,ae,s,Y,u,re,m,h,f,T,E,y,A]),pe=!(q?re:R).length,me=q&&H.matchInputWidth||pe?{}:{minWidth:`auto`};return $.createElement(tL.Provider,{value:fe},$.createElement(f_,nR({},j,{ref:t,id:M,prefixCls:r,autoClearSearchValue:U,popupMatchSelectWidth:O,classNames:x,styles:S,popupStyle:{...me,...b},displayValues:se,onDisplayValuesChange:ue,mode:N?`multiple`:void 0,searchValue:q,onSearch:ne,showSearch:V,OptionList:$L,emptyOptions:pe,open:g,popupClassName:_,placement:C,onPopupVisibleChange:de,getRawInputElement:()=>D})))});rR.SHOW_PARENT=sL,rR.SHOW_CHILD=cL,rR.Panel=tR;var iR=rR;function aR(e,t){let{getPrefixCls:n,direction:r,renderEmpty:i}=$.useContext(Vt),a=t||r;return[n(`select`,e),n(`cascader`,e),a,i]}function oR(e,t){return $.useMemo(()=>t?$.createElement(`span`,{className:`${e}-checkbox-inner`}):!1,[e,t])}var sR=$.createElement(Ne,{spin:!0}),cR=$.createElement(T,null),lR=$.createElement(ee,null);function uR({contextExpandIcon:e,contextLoadingIcon:t,expandIcon:n,loadingIcon:r,isRtl:i}){return $.useMemo(()=>({expandIcon:n??e??(i?lR:cR),loadingIcon:r??t??sR}),[e,t,n,i,r])}var dR=e=>{let{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,i=`${t}-wrapper`;return[{[`${t}-group`]:{...ur(e),display:`inline-flex`,flexWrap:`wrap`,columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[i]:{...ur(e),display:`inline-flex`,alignItems:`baseline`,cursor:`pointer`,"&:after":{display:`inline-block`,width:0,overflow:`hidden`,content:`'\\a0'`},[`& + ${i}`]:{marginInlineStart:0}},[t]:{...ur(e),position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,boxSizing:`border-box`,display:`block`,width:n,height:n,direction:`ltr`,backgroundColor:e.colorBgContainer,border:`${Q(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:`separate`,transition:`all ${e.motionDurationSlow}`,flex:`none`,...xu(),"&:after":{boxSizing:`border-box`,position:`absolute`,top:`calc(${n} / 2 - ${r})`,insetInlineStart:`calc(${n} / 4 - ${r})`,display:`table`,width:e.calc(n).div(14).mul(5).equal(),height:e.calc(n).div(14).mul(8).equal(),border:`${Q(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}`,...xu()},[`${t}-input`]:{position:`absolute`,inset:`calc(-1 * (${r}))`,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:pr(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`
202
+ ${i}:not(${i}-disabled),
203
+ ${t}:not(${t}-disabled)
204
+ `]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${i}:not(${i}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}},{[`${t}-checked`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:`rotate(45deg) scale(1) translate(-50%,-50%)`,transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`,...xu()},[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}},{[t]:{"&-indeterminate":{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:`50%`,insetInlineStart:`50%`,width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:`translate(-50%, -50%) scale(1)`,opacity:1,content:`""`},"&:hover":{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}},{[`${i}-disabled`]:{cursor:`not-allowed`},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]};function fR(e,t){return dR(wn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}var pR=yr(`Checkbox`,(e,{prefixCls:t})=>[fR(t,e)]),mR=e=>{let{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,i=`
205
+ &${r}-expand ${r}-expand-icon,
206
+ ${r}-loading-icon
207
+ `;return[fR(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS,pointerEvents:`unset`},"&-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:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":{display:`flex`,maxWidth:400,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`},[i]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:`auto`,minWidth:0,...lr},[i]:{marginInlineStart:e.paddingXXS,color:e.colorIcon,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}}}}}]},hR=e=>{let{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},mR(e)]},{[`${t}-dropdown-rtl`]:{direction:`rtl`}},Zd(e)]},gR=e=>{let 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,optionSelectedColor:e.colorText}},_R=yr(`Cascader`,hR,gR,{resetFont:!1,unitless:{optionSelectedFontWeight:!0}}),vR=br([`Cascader`,`Panel`],e=>{let{componentCls:t}=e;return{[`${t}-panel`]:[mR(e),{display:`inline-flex`,border:`${Q(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}}]}},gR,{resetFont:!1});function yR(e){let{prefixCls:t,className:n,multiple:r,rootClassName:i,notFoundContent:a,direction:o,expandIcon:s,loadingIcon:c,disabled:l}=e,{expandIcon:u,loadingIcon:d}=Wt(`cascader`),f=$.useContext(Vo),p=l??f,[m,h,g,_]=aR(t,o),v=la(h),[y,b]=_R(h,v);vR(h);let{expandIcon:x,loadingIcon:S}=uR({contextExpandIcon:u,contextLoadingIcon:d,expandIcon:s,loadingIcon:c,isRtl:g===`rtl`}),C=a||_?.(`Cascader`)||$.createElement(_v,{componentName:`Cascader`}),w=oR(h,r);return $.createElement(tR,{...e,checkable:w,prefixCls:h,className:X(n,y,i,b,v),notFoundContent:C,direction:g,expandIcon:x,loadingIcon:S,disabled:p})}var{SHOW_CHILD:bR,SHOW_PARENT:xR}=iR,SR=(e,t,n)=>{let r=e.toLowerCase().split(t).reduce((e,n,r)=>r===0?[n]:[].concat(Lt(e),[t,n]),[]),i=[],a=0;return r.forEach((t,r)=>{let o=a+t.length,s=e.slice(a,o);a=o,r%2==1&&(s=$.createElement(`span`,{className:`${n}-menu-item-keyword`,key:`separator-${r}`},s)),i.push(s)}),i},CR=(e,t,n,r)=>{let i=[],a=e.toLowerCase();return t.forEach((e,t)=>{t!==0&&i.push(` / `);let o=e[r.label];(Di(o)||Ei(o))&&(o=SR(String(o),a,n)),i.push(o)}),i},wR=$.forwardRef((e,t)=>{let{prefixCls:n,size:r,disabled:i,className:a,rootClassName:o,multiple:s,bordered:c=!0,transitionName:l,choiceTransitionName:u=``,popupClassName:d,expandIcon:f,placement:p,showSearch:m,allowClear:h=!0,notFoundContent:g,direction:_,getPopupContainer:v,status:y,showArrow:b,builtinPlacements:x,style:S,variant:C,dropdownClassName:w,dropdownRender:T,onDropdownVisibleChange:E,onPopupVisibleChange:D,dropdownMenuColumnStyle:O,popupRender:k,dropdownStyle:A,popupMenuColumnStyle:j,onOpenChange:M,styles:N,classNames:P,loadingIcon:F,clearIcon:I,removeIcon:L,suffixIcon:R,...z}=e,{getPrefixCls:B,getPopupContainer:V,className:H,style:U,classNames:W,styles:G,expandIcon:ee,loadingIcon:K,clearIcon:q,removeIcon:te,suffixIcon:ne,searchIcon:re}=Wt(`cascader`),{popupOverflow:J}=$.useContext(Vt),{status:ie,hasFeedback:ae,isFormItemInput:oe,feedbackIcon:se}=$.useContext(pm),ce=lv(ie,y),[le,Y,ue,de]=aR(n,_),fe=ue===`rtl`,pe=B(),me=la(le),[he,ge]=Mv(le,me),_e=la(Y);_R(Y,_e);let{compactSize:ve,compactItemClassnames:ye}=Pl(le,_),[be,xe]=vv(`cascader`,C,c),Se=g||de?.(`Cascader`)||$.createElement(_v,{componentName:`Cascader`}),Ce=Pv(k||T),we=j||O,Te=M||D||E,Ee=$.useMemo(()=>{if(!m)return m;let e={render:CR};return Oi(m)&&(e={...e,...m}),e},[m]),De=jl(e=>r??ve??e),Oe=$.useContext(Vo),ke=i??Oe,{expandIcon:Ae,loadingIcon:je}=uR({contextExpandIcon:ee,contextLoadingIcon:K,expandIcon:f,loadingIcon:F,isRtl:fe}),Me=oR(Y,s),Ne=Fv(e.suffixIcon,b),{suffixIcon:Pe,removeIcon:Fe,clearIcon:Ie}=Nv({...e,clearIcon:I,contextClearIcon:q,removeIcon:L,contextRemoveIcon:te,loadingIcon:je,suffixIcon:R,contextSuffixIcon:ne,searchIcon:Oi(m)?m.searchIcon:void 0,contextSearchIcon:re,hasFeedback:ae,feedbackIcon:se,showSuffixIcon:Ne,multiple:s,prefixCls:le,componentName:`Cascader`}),Le=$.useMemo(()=>p===void 0?fe?`bottomRight`:`bottomLeft`:p,[p,fe]),Re=h===!0?{clearIcon:Ie}:h,ze={...e,variant:be,size:De,status:ce,disabled:ke},[Be,Ve]=zi([W,P],[G,N],{props:ze},{popup:{_default:`root`}}),He={...Ve.popup.root,...A},[Ue]=vc(`SelectLike`,He?.zIndex),We=X(d||w,`${Y}-dropdown`,{[`${Y}-dropdown-rtl`]:ue===`rtl`},o,me,Be.popup.root,_e,he,ge);return $.createElement(iR,{prefixCls:le,className:X(!n&&Y,{[`${le}-lg`]:De===`large`,[`${le}-sm`]:De===`small`,[`${le}-rtl`]:fe,[`${le}-${be}`]:xe,[`${le}-in-form-item`]:oe},cv(le,ce,ae),ye,H,a,o,Be.root,me,_e,he,ge),disabled:ke,style:{...Ve.root,...U,...S},classNames:Be,styles:Ve,...z,builtinPlacements:bv(x,J),direction:ue,placement:Le,notFoundContent:Se,allowClear:Re,showSearch:Ee,expandIcon:Ae,suffixIcon:Pe,removeIcon:Fe,loadingIcon:je,checkable:Me,popupClassName:We,popupPrefixCls:n||Y,popupStyle:{...He,zIndex:Ue},popupRender:Ce,popupMenuColumnStyle:we,onPopupVisibleChange:Te,choiceTransitionName:bl(pe,``,u),transitionName:bl(pe,`slide-up`,l),getPopupContainer:v||V,ref:t})}),TR=og(wR,`popupAlign`,e=>u(e,[`visible`]));wR.SHOW_PARENT=xR,wR.SHOW_CHILD=bR,wR.Panel=yR,wR._InternalPanelDoNotUseOrYouWillBeFired=TR;var ER=$.createContext(null),DR=$.forwardRef((e,t)=>{let{prefixCls:n,children:r,indeterminate:i=!1,onMouseEnter:a,onMouseLeave:o,skipGroup:s=!1,disabled:c,rootClassName:l,className:u,style:d,classNames:f,styles:p,name:m,value:h,checked:g,defaultChecked:_,onChange:y,...b}=e,{getPrefixCls:x,direction:S,className:C,style:w,classNames:T,styles:E}=Wt(`checkbox`),D=$.useContext(ER),{isFormItemInput:O}=$.useContext(pm),k=$.useContext(Vo),A=(D?.disabled||c)??k,[j,M]=v(_,g),N=j,P=J(e=>{M(e.target.checked),y?.(e),!s&&D?.toggleOption&&D.toggleOption({label:r,value:h})});D&&!s&&(N=D.value.includes(h));let F=$.useRef(null),I=K(t,F);$.useEffect(()=>{if(!(s||!D))return D.registerValue(h),()=>{D.cancelValue(h)}},[h,s]),$.useEffect(()=>{F.current?.input&&(F.current.input.indeterminate=i)},[i]);let L=x(`checkbox`,n),R=la(L),[z,B]=pR(L,R),V={...b},H={...e,indeterminate:i,disabled:A,checked:N},[U,W]=zi([T,f],[E,p],{props:H}),G=X(`${L}-wrapper`,{[`${L}-rtl`]:S===`rtl`,[`${L}-wrapper-checked`]:N,[`${L}-wrapper-disabled`]:A,[`${L}-wrapper-in-form-item`]:O},C,u,U.root,l,B,R,z),ee=X(U.icon,{[`${L}-indeterminate`]:i},Sl,z),[q,te]=pN(V.onClick);return $.createElement(Al,{component:`Checkbox`,disabled:A},$.createElement(`label`,{className:G,style:{...W.root,...w,...d},onMouseEnter:a,onMouseLeave:o,onClick:q},$.createElement(fN,{...V,name:!s&&D?D.name:m,checked:N,onClick:te,onChange:P,prefixCls:L,className:ee,style:W.icon,disabled:A,ref:I,value:h}),Ti(r)&&$.createElement(`span`,{className:X(`${L}-label`,U.label),style:W.label},r)))}),OR=$.forwardRef((e,t)=>{let{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:s,style:c,onChange:l,role:d=`group`,...f}=e,{getPrefixCls:p,direction:m}=$.useContext(Vt),[h,g]=$.useState(f.value||n||[]),[_,v]=$.useState([]);$.useEffect(()=>{`value`in f&&g(f.value||[])},[f.value]);let y=$.useMemo(()=>i.map(e=>typeof e==`string`||Ei(e)?{label:e,value:e}:e),[i]),b=e=>{v(t=>t.filter(t=>t!==e))},x=e=>{v(t=>[].concat(Lt(t),[e]))},S=e=>{let t=h.indexOf(e.value),n=Lt(h);t===-1?n.push(e.value):n.splice(t,1),`value`in f||g(n),l?.(n.filter(e=>_.includes(e)).sort((e,t)=>y.findIndex(t=>t.value===e)-y.findIndex(e=>e.value===t)))},C=p(`checkbox`,a),w=`${C}-group`,T=la(C),[E,D]=pR(C,T),O=u(f,[`value`,`disabled`]),k=i.length?y.map(e=>$.createElement(DR,{prefixCls:C,key:e.value.toString(),disabled:`disabled`in e?e.disabled:f.disabled,value:e.value,checked:h.includes(e.value),onChange:e.onChange,className:X(`${w}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):r,A=$.useMemo(()=>({toggleOption:S,value:h,disabled:f.disabled,name:f.name,registerValue:x,cancelValue:b}),[S,h,f.disabled,f.name,x,b]),j=X(w,{[`${w}-rtl`]:m===`rtl`},o,s,D,T,E);return $.createElement(`div`,{className:j,style:c,role:d,...O,ref:t},$.createElement(ER.Provider,{value:A},k))}),kR=DR;kR.Group=OR,kR.__ANT_CHECKBOX=!0;var AR=(0,$.createContext)({});function jR(e){return e===`auto`?`1 1 auto`:Ei(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var MR=$.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=$.useContext(Vt),{gutter:i,wrap:a}=$.useContext(AR),{prefixCls:o,span:s,order:c,offset:l,push:u,pull:d,className:f,children:p,flex:m,style:h,...g}=e,_=n(`col`,o),v=n(),[y,b]=dh(_),[x]=Sr(v,`col`),S={},C={};Kv.forEach(t=>{let n={},i=e[t];Ei(i)?n.span=i:Oi(i)&&(n=i||{}),delete g[t],C={...C,[`${_}-${t}-${n.span}`]:Ti(n.span),[`${_}-${t}-order-${n.order}`]:n.order||n.order===0,[`${_}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${_}-${t}-push-${n.push}`]:n.push||n.push===0,[`${_}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${_}-rtl`]:r===`rtl`},n.flex&&(C[`${_}-${t}-flex`]=!0,S[x(`${t}-flex`)]=jR(n.flex))});let w=X(_,{[`${_}-${s}`]:s!==void 0,[`${_}-order-${c}`]:c,[`${_}-offset-${l}`]:l,[`${_}-push-${u}`]:u,[`${_}-pull-${d}`]:d},f,C,y,b),T={};return i?.[0]&&(T.paddingInline=Ei(i[0])?`${i[0]/2}px`:`calc(${i[0]} / 2)`),m&&(T.flex=jR(m),a===!1&&!T.minWidth&&(T.minWidth=0)),$.createElement(`div`,{...g,style:{...T,...h,...S},className:w,ref:t},p)});function NR(e,t){let n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((e,t)=>{if(Oi(e))for(let r=0;r<Gv.length;r++){let a=Gv[r];if(i[a]&&e[a]!==void 0){n[t]=e[a];break}}else n[t]=e}),n}var PR=(e,t)=>{let[n,r]=$.useState(()=>Di(e)?e:``),i=()=>{if(Di(e)&&r(e),Oi(e))for(let n=0;n<Gv.length;n++){let i=Gv[n];if(!t||!t[i])continue;let a=e[i];if(a!==void 0){r(a);return}}};return $.useEffect(()=>{i()},[JSON.stringify(e),t]),n},FR=$.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:c=0,wrap:l,...u}=e,{getPrefixCls:d,direction:f}=$.useContext(Vt),p=Zv(!0,null),m=PR(i,p),h=PR(r,p),g=d(`row`,n),[_,v]=lh(g),y=NR(c,p),b=X(g,{[`${g}-no-wrap`]:l===!1,[`${g}-${h}`]:h,[`${g}-${m}`]:m,[`${g}-rtl`]:f===`rtl`},a,_,v),x={};y?.[0]&&(x.marginInline=Ei(y[0])?`${y[0]/-2}px`:`calc(${y[0]} / -2)`);let[S,C]=y;x.rowGap=C;let w=$.useMemo(()=>({gutter:[S,C],wrap:l}),[S,C,l]);return $.createElement(AR.Provider,{value:w},$.createElement(`div`,{...u,className:b,style:{...x,...o},ref:t},s))});function IR(){return Zv()}var LR={useBreakpoint:IR},RR=MR,zR=e=>{let{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},BR=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:a,orientationMargin:o,verticalMarginInline:s}=e,c=`${t}-rail`;return{[t]:{...ur(e),borderBlockStart:`${Q(i)} solid ${r}`,[c]:{borderBlockStart:`${Q(i)} solid ${r}`},"&-vertical":{position:`relative`,top:`-0.06em`,display:`inline-block`,height:`0.9em`,marginInline:s,marginBlock:0,verticalAlign:`middle`,borderTop:0,borderInlineStart:`${Q(i)} solid ${r}`},"&-horizontal":{display:`flex`,clear:`both`,width:`100%`,minWidth:`100%`,margin:`${Q(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:`flex`,alignItems:`center`,margin:`${Q(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:`nowrap`,textAlign:`center`,borderBlockStart:`0 ${r}`,[`${c}-start, ${c}-end`]:{width:`50%`,borderBlockStartColor:`inherit`,borderBlockEnd:0,content:`''`}},[`&-horizontal${t}-with-text-start`]:{[`${c}-start`]:{width:`calc(${o} * 100%)`},[`${c}-end`]:{width:`calc(100% - ${o} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${c}-start`]:{width:`calc(100% - ${o} * 100%)`},[`${c}-end`]:{width:`calc(${o} * 100%)`}},[`${t}-inner-text`]:{display:`inline-block`,paddingBlock:0,paddingInline:a},"&-dashed":{background:`none`,borderColor:r,borderStyle:`dashed`,borderWidth:`${Q(i)} 0 0`,[c]:{borderBlockStart:`${Q(i)} dashed ${r}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${c}-start, ${c}-end`]:{borderStyle:`dashed none none`}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:`none`,borderColor:r,borderStyle:`dotted`,borderWidth:`${Q(i)} 0 0`,[c]:{borderBlockStart:`${Q(i)} dotted ${r}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:`dotted none none`}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{[`${c}-start`]:{width:0},[`${c}-end`]:{width:`100%`},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${c}-start`]:{width:`100%`},[`${c}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}}}},VR=yr(`Divider`,e=>{let t=wn(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[BR(t),zR(t)]},e=>({textPaddingInline:`1em`,orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}}),HR=[`left`,`right`,`center`,`start`,`end`],UR=e=>{let{getPrefixCls:t,direction:n,className:r,style:i,classNames:a,styles:o}=Wt(`divider`),{prefixCls:s,type:c,orientation:l,vertical:u,titlePlacement:d,orientationMargin:f,className:p,rootClassName:m,children:h,dashed:g,variant:_=`solid`,plain:v,style:y,size:b,classNames:x,styles:S,...C}=e,w=t(`divider`,s),T=`${w}-rail`,[E,D]=VR(w),O=jl(b),k=!!h,A=HR.includes(l||``),j=$.useMemo(()=>{let e=d??(A?l:`center`);return e===`left`?n===`rtl`?`end`:`start`:e===`right`?n===`rtl`?`start`:`end`:e},[n,l,d,A]),M=j===`start`&&f!=null,N=j===`end`&&f!=null,[P,F]=sc(l,u,c),I={...e,orientation:P,titlePlacement:j,size:O},[L,R]=zi([a,x],[o,S],{props:I}),z=X(w,r,E,D,`${w}-${P}`,{[`${w}-with-text`]:k,[`${w}-with-text-${j}`]:k,[`${w}-dashed`]:!!g,[`${w}-${_}`]:_!==`solid`,[`${w}-plain`]:!!v,[`${w}-rtl`]:n===`rtl`,[`${w}-no-default-orientation-margin-start`]:M,[`${w}-no-default-orientation-margin-end`]:N,[`${w}-md`]:O===`medium`||O===`middle`,[`${w}-sm`]:O===`small`,[T]:!h,[L.rail]:L.rail&&!h},p,m,L.root),B=$.useMemo(()=>Ei(f)?f:/^\d+$/.test(f)?Number(f):f,[f]),V={marginInlineStart:M?B:void 0,marginInlineEnd:N?B:void 0};return $.createElement(`div`,{className:z,style:{...i,...R.root,...h?{}:R.rail,...y},...C,role:`separator`},h&&!F&&$.createElement($.Fragment,null,$.createElement(`div`,{className:X(T,`${T}-start`,L.rail),style:R.rail}),$.createElement(`span`,{className:X(`${w}-inner-text`,L.content),style:{...V,...R.content}},h),$.createElement(`div`,{className:X(T,`${T}-end`,L.rail),style:R.rail})))},WR=(e,t)=>{if(!e)return null;let 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}},GR=e=>e===void 0?void 0:`${e}px`;function KR(e){let{prefixCls:t,containerRef:n,value:r,getValueIndex:i,motionName:a,onMotionStart:o,onMotionEnd:s,direction:c,vertical:l=!1}=e,u=$.useRef(null),[d,f]=$.useState(r),p=e=>{let r=i(e),a=n.current?.querySelectorAll(`.${t}-item`)[r];return a?.offsetParent&&a},[m,h]=$.useState(null),[g,_]=$.useState(null);Pe(()=>{if(d!==r){let e=p(d),t=p(r),n=WR(e,l),i=WR(t,l);f(r),h(n),_(i),e&&t?o():s()}},[r]);let v=$.useMemo(()=>GR(l?m?.top??0:c===`rtl`?-m?.right:m?.left),[l,c,m]),y=$.useMemo(()=>GR(l?g?.top??0:c===`rtl`?-g?.right:g?.left),[l,c,g]);return!m||!g?null:$.createElement(wi,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:()=>l?{transform:`translateY(var(--thumb-start-top))`,height:`var(--thumb-start-height)`}:{transform:`translateX(var(--thumb-start-left))`,width:`var(--thumb-start-width)`},onAppearActive:()=>l?{transform:`translateY(var(--thumb-active-top))`,height:`var(--thumb-active-height)`}:{transform:`translateX(var(--thumb-active-left))`,width:`var(--thumb-active-width)`},onVisibleChanged:()=>{h(null),_(null),s()}},({className:e,style:n},r)=>{let i={...n,"--thumb-start-left":v,"--thumb-start-width":GR(m?.width),"--thumb-active-left":y,"--thumb-active-width":GR(g?.width),"--thumb-start-top":v,"--thumb-start-height":GR(m?.height),"--thumb-active-top":y,"--thumb-active-height":GR(g?.height)},a={ref:S(u,r),style:i,className:X(`${t}-thumb`,e)};return $.createElement(`div`,a)})}function qR(e){if(e.title!==void 0)return e.title;if(typeof e.label!=`object`)return e.label?.toString()}function JR(e){return e.map(e=>{if(typeof e==`object`&&e){let t=qR(e);return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}})}var YR=({prefixCls:e,className:t,style:n,styles:r,classNames:i,data:a,disabled:o,checked:s,label:c,title:l,value:u,name:d,onChange:f,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g,onMouseDown:_,itemRender:v=e=>e})=>{let y=e=>{o||f(e,u)};return v($.createElement(`label`,{className:X(t,{[`${e}-item-disabled`]:o}),style:n,onMouseDown:_},$.createElement(`input`,{name:d,className:`${e}-item-input`,type:`radio`,disabled:o,checked:s,onChange:y,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g}),$.createElement(`div`,{className:X(`${e}-item-label`,i?.label),title:l,style:r?.label},c)),{item:a})},XR=$.forwardRef((e,t)=>{let{prefixCls:n=`rc-segmented`,direction:r,vertical:i,options:a=[],disabled:o,defaultValue:s,value:c,name:l,onChange:d,className:f=``,style:p,styles:m,classNames:h,motionName:g=`thumb-motion`,itemRender:_,...y}=e,b=$.useRef(null),x=$.useMemo(()=>S(b,t),[b,t]),C=$.useMemo(()=>JR(a),[a]),[w,T]=v(s??C[0]?.value,c),[E,D]=$.useState(!1),O=(e,t)=>{T(t),d?.(t)},k=u(y,[`children`]),[A,j]=$.useState(!1),[M,N]=$.useState(!1),P=()=>{N(!0)},F=()=>{N(!1)},I=()=>{j(!1)},L=e=>{e.key===`Tab`&&j(!0)},R=e=>{let t=C.findIndex(e=>e.value===w),n=C.length,r=C[(t+e+n)%n];r&&(T(r.value),d?.(r.value))},z=e=>{switch(e.key){case`ArrowLeft`:case`ArrowUp`:R(-1);break;case`ArrowRight`:case`ArrowDown`:R(1);break}},B=e=>{let{value:t,disabled:r}=e;return $.createElement(YR,ld({},e,{name:l,data:e,itemRender:_,key:t,prefixCls:n,className:X(e.className,`${n}-item`,h?.item,{[`${n}-item-selected`]:t===w&&!E,[`${n}-item-focused`]:M&&A&&t===w}),style:m?.item,classNames:h,styles:m,checked:t===w,onChange:O,onFocus:P,onBlur:F,onKeyDown:z,onKeyUp:L,onMouseDown:I,disabled:!!o||!!r}))};return $.createElement(`div`,ld({role:`radiogroup`,"aria-label":`segmented control`,tabIndex:o?void 0:0,"aria-orientation":i?`vertical`:`horizontal`,style:p},k,{className:X(n,{[`${n}-rtl`]:r===`rtl`,[`${n}-disabled`]:o,[`${n}-vertical`]:i},f),ref:x}),$.createElement(`div`,{className:`${n}-group`},$.createElement(KR,{vertical:i,prefixCls:n,value:w,containerRef:b,motionName:`${n}-${g}`,direction:r,getValueIndex:e=>C.findIndex(t=>t.value===e),onMotionStart:()=>{D(!0)},onMotionEnd:()=>{D(!1)}}),C.map(B)))});function ZR(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:`not-allowed`}}}var QR=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),$R={overflow:`hidden`,...lr},ez=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),s=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...ur(e),display:`inline-block`,padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${i}`,...mr(e),[`${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 ${Q(e.paddingXXS)}`}},[`&${t}-block`]:{display:`flex`},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:`relative`,textAlign:`center`,cursor:`pointer`,transition:`color ${i}`,borderRadius:e.borderRadiusSM,transform:`translateZ(0)`,"&-selected":{...QR(e),color:e.itemSelectedColor},"&-focused":pr(e),"&::after":{content:`""`,position:`absolute`,zIndex:-1,width:`100%`,height:`100%`,top:0,insetInlineStart:0,borderRadius:`inherit`,opacity:0,pointerEvents:`none`,transition:[`opacity`,`background-color`].map(e=>`${e} ${i}`).join(`, `)},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:a,lineHeight:Q(a),padding:`0 ${Q(e.segmentedPaddingHorizontal)}`,...$R},"&-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`]:{...QR(e),position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:`100%`,padding:`${Q(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:`transparent`}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:o,lineHeight:Q(o),padding:`0 ${Q(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:s,lineHeight:Q(s),padding:`0 ${Q(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...ZR(`&-disabled ${t}-item`,e),...ZR(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:`transform, width`,transition:[`transform`,`width`].map(e=>`${e} ${n} ${r}`).join(`, `)},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},tz=yr(`Segmented`,e=>{let{lineWidth:t,calc:n}=e;return ez(wn(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{let{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}});function nz(e){return Oi(e)&&!!e?.icon}var rz=$.forwardRef((e,t)=>{let n=te(),{prefixCls:r,className:i,rootClassName:a,block:o,options:s=[],size:c,style:l,vertical:u,orientation:d,shape:f=`default`,name:p=n,styles:m,classNames:h,...g}=e,{getPrefixCls:_,direction:v,className:y,style:b,classNames:x,styles:S}=Wt(`segmented`),C={...e,options:s,size:c,shape:f},[w,T]=zi([x,h],[S,m],{props:C}),E=_(`segmented`,r),[D,O]=tz(E),k=jl(c),A=$.useMemo(()=>s.map(e=>{if(nz(e)){let{icon:t,label:n,...r}=e;return{...r,label:$.createElement($.Fragment,null,$.createElement(`span`,{className:X(`${E}-item-icon`,w.icon),style:T.icon},t),n&&$.createElement(`span`,null,n))}}return e}),[s,E,w.icon,T.icon]),[,j]=sc(d,u),M=X(i,a,y,w.root,{[`${E}-block`]:o,[`${E}-sm`]:k===`small`,[`${E}-lg`]:k===`large`,[`${E}-vertical`]:j,[`${E}-shape-${f}`]:f===`round`},D,O),N={...T.root,...b,...l},P=(e,{item:t})=>{if(!t.tooltip)return e;let n=Oi(t.tooltip)?t.tooltip:{title:t.tooltip};return $.createElement(Ny,{...n},e)};return $.createElement(XR,{...g,name:p,className:M,style:N,classNames:w,styles:T,itemRender:P,options:A,ref:t,prefixCls:E,direction:v,vertical:j})}),iz=$.createContext({}),az=$.createContext({}),oz=({prefixCls:e,value:t,onChange:n,className:r,style:i})=>$.createElement(`div`,{className:X(`${e}-clear`,r),style:i,onClick:()=>{if(n&&t&&!t.cleared){let e=t.toHsb();e.a=0;let r=kd(e);r.cleared=!0,n(r)}}});function sz(){return typeof BigInt==`function`}function cz(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function lz(e){var t=e.trim(),n=t.startsWith(`-`);n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,`$1`).replace(/\.0*$/,``).replace(/^0+/,``),t.startsWith(`.`)&&(t=`0${t}`);var r=t||`0`,i=r.split(`.`),a=i[0]||`0`,o=i[1]||`0`;a===`0`&&o===`0`&&(n=!1);var s=n?`-`:``;return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:o,fullStr:`${s}${r}`}}function uz(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes(`e`)}function dz(e){var t=Xt(e.toLowerCase().split(`e`),2),n=t[0],r=t[1],i=r===void 0?`0`:r,a=n.startsWith(`-`),o=Xt((a?n.slice(1):n).split(`.`),2),s=o[0],c=s===void 0?`0`:s,l=o[1],u=l===void 0?``:l;return{decimal:u,digits:`${c}${u}`.replace(/^0+/,``)||`0`,exponent:Number(i),integer:c,negative:a}}function fz(e){var t=e.decimal,n=e.digits,r=e.exponent,i=e.integer,a=e.negative;if(n===`0`)return`0`;var o=i.replace(/^0+/,``).length,s=(t.match(/^0*/)||[``])[0].length,c=(o||-s)+r,l=``;return l=c<=0?`0.${`0`.repeat(-c)}${n}`:c>=n.length?`${n}${`0`.repeat(c-n.length)}`:`${n.slice(0,c)}.${n.slice(c)}`,`${a?`-`:``}${l}`}function pz(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function mz(e){var t=String(e);return uz(e)?pz(dz(t)):t.includes(`.`)&&gz(t)?t.length-t.indexOf(`.`)-1:0}function hz(e){var t=String(e);if(uz(e)){if(e>2**53-1)return String(sz()?BigInt(e).toString():2**53-1);if(e<-(2**53-1))return String(sz()?BigInt(e).toString():-(2**53-1));var n=dz(t),r=pz(n);t=r>100?fz(n):e.toFixed(r)}return lz(t).fullStr}function gz(e){return typeof e==`number`?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var _z=function(){function e(t){if(nn(this,e),$t(this,`origin`,``),$t(this,`negative`,void 0),$t(this,`integer`,void 0),$t(this,`decimal`,void 0),$t(this,`decimalLen`,void 0),$t(this,`empty`,void 0),$t(this,`nan`,void 0),cz(t)){this.empty=!0;return}if(this.origin=String(t),t===`-`||Number.isNaN(t)){this.nan=!0;return}var n=t;if(uz(n)&&(n=Number(n)),n=typeof n==`string`?n:hz(n),gz(n)){var r=lz(n);this.negative=r.negative;var i=r.trimStr.split(`.`);this.integer=BigInt(i[0]);var a=i[1]||`0`;this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return an(e,[{key:`getMark`,value:function(){return this.negative?`-`:``}},{key:`getIntegerStr`,value:function(){return this.integer.toString()}},{key:`getDecimalStr`,value:function(){return this.decimal.toString().padStart(this.decimalLen,`0`)}},{key:`alignDecimal`,value:function(e){var t=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(e,`0`)}`;return BigInt(t)}},{key:`negate`,value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:`cal`,value:function(t,n,r){var i=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),a=n(this.alignDecimal(i),t.alignDecimal(i)).toString(),o=r(i),s=lz(a),c=`${s.negativeStr}${s.trimStr.padStart(o+1,`0`)}`;return new e(`${c.slice(0,-o)}.${c.slice(-o)}`)}},{key:`add`,value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(e,t){return e+t},function(e){return e})}},{key:`multi`,value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(e,t){return e*t},function(e){return e*2})}},{key:`isEmpty`,value:function(){return this.empty}},{key:`isNaN`,value:function(){return this.nan}},{key:`isInvalidate`,value:function(){return this.isEmpty()||this.isNaN()}},{key:`equals`,value:function(e){return this.toString()===e?.toString()}},{key:`lessEquals`,value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:`toNumber`,value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:`toString`,value:function(){return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.isInvalidate()?``:lz(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}]),e}(),vz=function(){function e(t){if(nn(this,e),$t(this,`origin`,``),$t(this,`number`,void 0),$t(this,`empty`,void 0),cz(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return an(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>2**53-1)return new e(2**53-1);if(r<-(2**53-1))return new e(-(2**53-1));var i=Math.max(mz(this.number),mz(n));return new e(r.toFixed(i))}},{key:`multi`,value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>2**53-1)return new e(2**53-1);if(r<-(2**53-1))return new e(-(2**53-1));var i=Math.max(mz(this.number),mz(n));return new e(r.toFixed(i))}},{key:`isEmpty`,value:function(){return this.empty}},{key:`isNaN`,value:function(){return Number.isNaN(this.number)}},{key:`isInvalidate`,value:function(){return this.isEmpty()||this.isNaN()}},{key:`equals`,value:function(e){return this.toNumber()===e?.toNumber()}},{key:`lessEquals`,value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:`toNumber`,value:function(){return this.number}},{key:`toString`,value:function(){return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.isInvalidate()?``:uz(this.number)&&mz(this.number)>100?String(this.number):hz(this.number):this.origin}}]),e}();function yz(e){return sz()?new _z(e):new vz(e)}function bz(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===``)return``;var i=lz(e),a=i.negativeStr,o=i.integerStr,s=i.decimalStr,c=`${t}${s}`,l=`${a}${o}`;if(n>=0){var u=Number(s[n]);return u>=5&&!r?bz(yz(e).add(`${a}0.${`0`.repeat(n)}${10-u}`).toString(),t,n,r):n===0?l:`${l}${t}${s.padEnd(n,`0`).slice(0,n)}`}return c===`.0`?l:`${l}${c}`}var xz=yz;function Sz(e,t){let n=(0,$.useRef)(null);function r(){try{let{selectionStart:t,selectionEnd:r,value:i}=e;n.current={start:t,end:r,value:i,beforeTxt:i.substring(0,t),afterTxt:i.substring(r)}}catch{}}function i(){if(e&&n.current&&t)try{let{value:t}=e,{beforeTxt:r,afterTxt:i,start:a}=n.current,o=t.length;if(t.startsWith(r))o=r.length;else if(t.endsWith(i))o=t.length-n.current.afterTxt.length;else{let e=r[a-1],n=t.indexOf(e,a-1);n!==-1&&(o=n+1)}e.setSelectionRange(o,o)}catch(e){$e(!1,`Something warning of cursor restore. Please fire issue about this: ${e.message}`)}}return[r,i]}var Cz=200,wz=600;function Tz({prefixCls:e,action:t,children:n,disabled:r,className:i,style:a,onStep:o}){let s=t===`up`,c=$.useRef(),l=$.useRef([]),u=()=>{clearTimeout(c.current)},d=e=>{e.preventDefault(),u(),o(s,`handler`);function t(){o(s,`handler`),c.current=setTimeout(t,Cz)}c.current=setTimeout(t,wz)};$.useEffect(()=>()=>{u(),l.current.forEach(e=>{Y.cancel(e)})},[]);let f=`${e}-action`,p=X(f,`${f}-${t}`,{[`${f}-${t}-disabled`]:r},i),m=()=>l.current.push(Y(u));return $.createElement(`span`,{unselectable:`on`,role:`button`,onMouseUp:m,onMouseLeave:m,onMouseDown:e=>{d(e)},"aria-label":s?`Increase Value`:`Decrease Value`,"aria-disabled":r,className:p,style:a},n||$.createElement(`span`,{unselectable:`on`,className:`${e}-action-${t}-inner`}))}function Ez(e){let t=typeof e==`number`?hz(e):lz(e).fullStr;return t.includes(`.`)?lz(t.replace(/(\d)\.(\d)/g,`$1$2.`)).fullStr:e+`0`}var Dz=(()=>{let e=(0,$.useRef)(0),t=()=>{Y.cancel(e.current)};return(0,$.useEffect)(()=>t,[]),n=>{t(),e.current=Y(()=>{n()})}});function Oz(){return Oz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oz.apply(this,arguments)}var kz=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),Az=e=>{let t=xz(e);return t.isInvalidate()?null:t},jz=$.forwardRef((e,t)=>{let{mode:n=`input`,prefixCls:r=`rc-input-number`,className:i,style:a,classNames:o,styles:s,min:c,max:l,step:u=1,defaultValue:d,value:f,disabled:p,readOnly:m,upHandler:h,downHandler:g,keyboard:_,changeOnWheel:v=!1,controls:y=!0,prefix:b,suffix:x,stringMode:S,parser:C,formatter:T,precision:E,decimalSeparator:D,onChange:O,onInput:k,onPressEnter:A,onStep:j,onMouseDown:M,onClick:N,onMouseUp:P,onMouseLeave:F,onMouseMove:I,onMouseEnter:L,onMouseOut:R,changeOnBlur:z=!0,...B}=e,[V,H]=$.useState(!1),U=$.useRef(!1),W=$.useRef(!1),G=$.useRef(!1),ee=$.useRef(null),K=$.useRef(null);$.useImperativeHandle(t,()=>Ke(K.current,{focus:e=>{xe(K.current,e)},blur:()=>{K.current?.blur()},nativeElement:ee.current}));let[q,te]=$.useState(()=>xz(f??d));function ne(e){f===void 0&&te(e)}let re=$.useCallback((e,t)=>{if(!t)return E>=0?E:Math.max(mz(e),mz(u))},[E,u]),ie=$.useCallback(e=>{let t=String(e);if(C)return C(t);let n=t;return D&&(n=n.replace(D,`.`)),n.replace(/[^\w.-]+/g,``)},[C,D]),ae=$.useRef(``),oe=$.useCallback((e,t)=>{if(T)return T(e,{userTyping:t,input:String(ae.current)});let n=typeof e==`number`?hz(e):e;if(!t){let e=re(n,t);gz(n)&&(D||e>=0)&&(n=bz(n,D||`.`,e))}return n},[T,re,D]),[se,ce]=$.useState(()=>{let e=d??f;return q.isInvalidate()&&[`string`,`number`].includes(typeof e)?Number.isNaN(e)?``:e:oe(q.toString(),!1)});ae.current=se;function le(e,t){ce(oe(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}let Y=$.useMemo(()=>Az(l),[l,E]),ue=$.useMemo(()=>Az(c),[c,E]),de=$.useMemo(()=>!Y||!q||q.isInvalidate()?!1:Y.lessEquals(q),[Y,q]),fe=$.useMemo(()=>!ue||!q||q.isInvalidate()?!1:q.lessEquals(ue),[ue,q]),[pe,me]=Sz(K.current,V),he=e=>Y&&!e.lessEquals(Y)?Y:ue&&!ue.lessEquals(e)?ue:null,ge=e=>!he(e),_e=(e,t)=>{let n=e,r=ge(n)||n.isEmpty();if(!n.isEmpty()&&!t&&(n=he(n)||n,r=!0),!m&&!p&&r){let e=n.toString(),r=re(e,t);return r>=0&&(n=xz(bz(e,`.`,r)),ge(n)||(n=xz(bz(e,`.`,r,!0)))),n.equals(q)||(ne(n),O?.(n.isEmpty()?null:kz(S,n)),f===void 0&&le(n,t)),n}return q},ve=Dz(),ye=e=>{if(pe(),ae.current=e,ce(e),!W.current){let t=xz(ie(e));t.isNaN()||_e(t,!0)}k?.(e),ve(()=>{let t=e;C||(t=e.replace(/。/g,`.`)),t!==e&&ye(t)})},be=()=>{W.current=!0},Se=()=>{W.current=!1,ye(K.current.value)},Ce=e=>{ye(e.target.value)},we=J((e,t)=>{if(e&&de||!e&&fe)return;U.current=!1;let n=xz(G.current?Ez(u):u);e||(n=n.negate());let r=_e((q||xz(0)).add(n.toString()),!1);j?.(kz(S,r),{offset:G.current?Ez(u):u,type:e?`up`:`down`,emitter:t}),K.current?.focus()}),Te=e=>{let t=xz(ie(se)),n;n=t.isNaN()?_e(q,e):_e(t,e),f===void 0?n.isNaN()||le(n,!1):le(q,!1)},Ee=()=>{U.current=!0},De=e=>{let{key:t,shiftKey:n}=e;U.current=!0,G.current=n,t===`Enter`&&(W.current||(U.current=!1),Te(!1),A?.(e)),_!==!1&&!W.current&&[`Up`,`ArrowUp`,`Down`,`ArrowDown`].includes(t)&&(we(t===`Up`||t===`ArrowUp`,`keyboard`),e.preventDefault())},Oe=()=>{U.current=!1,G.current=!1};$.useEffect(()=>{if(v&&V){let e=e=>{we(e.deltaY<0,`wheel`),e.preventDefault()},t=K.current;if(t)return t.addEventListener(`wheel`,e,{passive:!1}),()=>t.removeEventListener(`wheel`,e)}});let ke=()=>{z&&Te(!1),H(!1),U.current=!1},Ae=e=>{K.current&&e.target!==K.current&&(K.current.focus(),e.preventDefault()),M?.(e)};w(()=>{q.isInvalidate()||le(q,!1)},[E,T]),w(()=>{let e=xz(f);te(e);let t=xz(ie(se));(!e.equals(t)||!U.current||T)&&le(e,U.current)},[f]),w(()=>{T&&me()},[se]);let je={prefixCls:r,onStep:we,className:o?.action,style:s?.action},Me=$.createElement(Tz,Oz({},je,{action:`up`,disabled:de}),h),Ne=$.createElement(Tz,Oz({},je,{action:`down`,disabled:fe}),g);return $.createElement(`div`,{ref:ee,className:X(r,`${r}-mode-${n}`,i,o?.root,{[`${r}-focused`]:V,[`${r}-disabled`]:p,[`${r}-readonly`]:m,[`${r}-not-a-number`]:q.isNaN(),[`${r}-out-of-range`]:!q.isInvalidate()&&!ge(q)}),style:{...s?.root,...a},onMouseDown:Ae,onMouseUp:P,onMouseLeave:F,onMouseMove:I,onMouseEnter:L,onMouseOut:R,onClick:N,onFocus:()=>{H(!0)},onBlur:ke,onKeyDown:De,onKeyUp:Oe,onCompositionStart:be,onCompositionEnd:Se,onBeforeInput:Ee},n===`spinner`&&y&&Ne,b!==void 0&&$.createElement(`div`,{className:X(`${r}-prefix`,o?.prefix),style:s?.prefix},b),$.createElement(`input`,Oz({autoComplete:`off`,role:`spinbutton`,"aria-valuemin":c,"aria-valuemax":l,"aria-valuenow":q.isInvalidate()?null:q.toString(),step:u,ref:K,className:X(`${r}-input`,o?.input),style:s?.input,value:se,onChange:Ce,disabled:p,readOnly:m},B)),x!==void 0&&$.createElement(`div`,{className:X(`${r}-suffix`,o?.suffix),style:s?.suffix},x),n===`spinner`&&y&&Me,n===`input`&&y&&$.createElement(`div`,{className:X(`${r}-actions`,o?.actions),style:s?.actions},Me,Ne))}),Mz=e=>{let{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:l,colorBgContainerDisabled:u,lineWidth:d,antCls:f}=e,[p,m]=Sr(f,`space-addon`);return{[t]:[{...ur(e),display:`inline-flex`,alignItems:`center`,gap:0,whiteSpace:`nowrap`,paddingInline:r,margin:0,borderWidth:d,borderStyle:`solid`,borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:o,borderRadius:c},"&-small":{paddingInline:a,borderRadius:l,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u,[p(`addon-border-color-outlined`)]:i,[p(`addon-background-filled`)]:u,borderColor:m(`addon-border-color`),background:m(`addon-background`),"&-variant-outlined":{[p(`addon-border-color`)]:m(`addon-border-color-outlined`)},"&-variant-filled":{[p(`addon-border-color`)]:`transparent`,[p(`addon-background`)]:m(`addon-background-filled`),[`&${t}-disabled`]:{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u}},"&-variant-borderless":{border:`none`,background:`transparent`},"&-variant-underlined":{border:`none`,background:`transparent`}},{"&-status-error":{[p(`addon-border-color-outlined`)]:e.colorError,[p(`addon-background-filled`)]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[p(`addon-border-color-outlined`)]:e.colorWarning,[p(`addon-background-filled`)]:e.colorWarningBg,color:e.colorWarning}}]}},Nz=yr(`Addon`,e=>[Mz(e),Zd(e,{focus:!1})]),Pz=$.forwardRef((e,t)=>{let{className:n,children:r,style:i,prefixCls:a,variant:o=`outlined`,disabled:s,status:c,...l}=e,{getPrefixCls:u,direction:d}=$.useContext(Vt),f=u(`space-addon`,a),[p,m]=Nz(f),{compactItemClassnames:h,compactSize:g}=Pl(f,d),_=cv(f,c),v=X(f,p,h,m,`${f}-variant-${o}`,_,{[`${f}-${g}`]:g,[`${f}-disabled`]:s},n);return $.createElement(`div`,{ref:t,className:v,style:i,...l},r)}),Fz=e=>{let t=e.handleVisible??`auto`,n=e.controlHeightSM-e.lineWidth*2;return{...AN(e),controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new pe(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:+(t===!0),handleVisibleWidth:t===!0?n:0}},Iz=e=>{let{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:a,inputFontSizeLG:o,colorError:s,paddingInlineSM:c,paddingBlockSM:l,paddingBlockLG:u,paddingInlineLG:d,colorIcon:f,colorTextDisabled:p,motionDurationMid:m,handleHoverColor:h,handleOpacity:g,paddingInline:_,paddingBlock:v,handleBg:y,handleActiveBg:b,inputAffixPadding:x,borderRadiusSM:S,controlWidth:C,handleBorderColor:w,filledHandleBg:T,lineHeightLG:E,antCls:D}=e,O=`${Q(n)} ${r} ${w}`,[k,A]=Sr(D,`input-number`);return[{[t]:{...ur(e),...XN(e),[k(`input-padding-block`)]:Q(v),[k(`input-padding-inline`)]:Q(_),display:`inline-flex`,width:C,margin:0,paddingBlock:0,borderRadius:i,...FN(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:O}}}),...VN(e,{[`${t}-actions`]:{background:T,[`${t}-action-down`]:{borderBlockStart:O}},"&:focus-within":{[`${t}-actions`]:{background:y}}}),...KN(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:O}}}),...RN(e),[`&${t}-borderless`]:{paddingBlock:0,[k(`input-padding-block`)]:Q(e.calc(v).add(n).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[k(`input-padding-block`)]:Q(e.calc(l).add(n).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[k(`input-padding-block`)]:Q(e.calc(u).add(n).equal())},"&-rtl":{direction:`rtl`,[`${t}-input`]:{direction:`rtl`}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:s}},[`${t}-input`]:{...ur(e),width:`100%`,paddingBlock:A(`input-padding-block`),textAlign:`start`,backgroundColor:`transparent`,border:0,borderRadius:0,outline:0,transition:`all ${m} linear`,appearance:`textfield`,fontSize:`inherit`,lineHeight:`inherit`,...qN(e.colorTextPlaceholder),'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:`none`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&-disabled ${t}-input`]:{cursor:`not-allowed`,color:e.colorTextDisabled}}},{[t]:{[`${t}-action`]:{...dr(),userSelect:`none`,overflow:`hidden`,fontWeight:`bold`,lineHeight:0,textAlign:`center`,cursor:`pointer`,transition:`all ${m} linear`,[`&:active:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{background:b},[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{color:h},[`&${t}-action-up-disabled, &${t}-action-down-disabled`]:{cursor:`not-allowed`,color:p}},"&-mode-input":{overflow:`hidden`,[`${t}-actions`]:{position:`absolute`,insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:g,height:`100%`,borderRadius:0,display:`flex`,flexDirection:`column`,alignItems:`stretch`,transition:`all ${m}`,overflow:`hidden`,[`${t}-action`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,flex:`auto`,height:`40%`,marginInlineEnd:0,fontSize:e.handleFontSize}},[`&:hover ${t}-actions, &-focused ${t}-actions`]:{width:e.handleWidth,opacity:1},[`${t}-action`]:{color:f,height:`50%`,borderInlineStart:O,[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{height:`60%`}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:`none`}}},[`&${t}-mode-spinner`]:{padding:0,width:`auto`,[`${t}-action`]:{flex:`none`,paddingInline:A(`input-padding-inline`),"&-up":{borderInlineStart:O},"&-down":{borderInlineEnd:O}},[`${t}-input`]:{textAlign:`center`,paddingInline:A(`input-padding-inline`)}}}},{[t]:{"&-lg":{[k(`input-padding-block`)]:Q(u),[k(`input-padding-inline`)]:Q(d),paddingBlock:0,fontSize:o,lineHeight:E},"&-sm":{[k(`input-padding-block`)]:Q(l),[k(`input-padding-inline`)]:Q(c),paddingBlock:0,fontSize:a,borderRadius:S}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:`flex`,flex:`none`,alignItems:`center`,alignSelf:`center`,pointerEvents:`none`},[`${t}-prefix`]:{marginInlineEnd:x},[`${t}-suffix`]:{height:`100%`,marginInlineStart:x,transition:`margin ${m}`},[`&:hover:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}]},Lz=e=>{let{componentCls:t,antCls:n}=e;return{[`${t}-addon`]:{[`&:has(${n}-select)`]:{border:0,padding:0}}}},Rz=yr(`InputNumber`,e=>{let t=wn(e,kN(e));return[Iz(t),Lz(t),Zd(t)]},Fz,{unitless:{handleOpacity:!0},resetFont:!1}),zz=$.forwardRef((e,t)=>{let n=$.useRef(null);$.useImperativeHandle(t,()=>n.current);let{rootClassName:r,size:i,disabled:a,prefixCls:o,addonBefore:s,addonAfter:c,prefix:l,suffix:u,bordered:d,readOnly:f,status:p,controls:m=!0,variant:h,className:g,style:_,classNames:v,styles:y,mode:b,...S}=e,{direction:C,className:w,style:T,styles:E,classNames:O}=Wt(`inputNumber`),k=$.useContext(Vo),A=a??k,j=$.useMemo(()=>!m||A||f?!1:m,[m,A,f]),{compactSize:M,compactItemClassnames:N}=Pl(o,C),P=b===`spinner`?$.createElement(R,null):$.createElement(x,null),F=b===`spinner`?$.createElement(D,null):$.createElement(q,null),I=typeof j==`boolean`?j:void 0;Oi(j)&&(P=j.upIcon||P,F=j.downIcon||F);let{hasFeedback:L,isFormItemInput:z,feedbackIcon:B}=$.useContext(pm),V=jl(e=>i??M??e),[H,U]=vv(`inputNumber`,h,d),W=L&&$.createElement($.Fragment,null,B),G={...e,size:V,disabled:A,controls:j},[ee,K]=zi([O,v],[E,y],{props:G});return $.createElement(jz,{ref:n,mode:b,disabled:A,className:X(g,r,ee.root,w,N,cv(o,p,L),{[`${o}-${H}`]:U,[`${o}-lg`]:V===`large`,[`${o}-sm`]:V===`small`,[`${o}-rtl`]:C===`rtl`,[`${o}-in-form-item`]:z,[`${o}-without-controls`]:!j}),style:{...K.root,...T,..._},upHandler:P,downHandler:F,prefixCls:o,readOnly:f,controls:I,prefix:l,suffix:W||u,classNames:ee,styles:K,...S})}),Bz=$.forwardRef((e,t)=>{let{addonBefore:n,addonAfter:r,prefixCls:i,className:a,status:o,rootClassName:s,...c}=e,{getPrefixCls:l}=Wt(`inputNumber`),u=l(`input-number`,i),{status:d}=$.useContext(pm),f=lv(d,o),p=la(u),[m,h]=Rz(u,p),g=n||r,_=$.createElement(zz,{ref:t,...c,prefixCls:u,status:f,className:X(h,p,m,a),rootClassName:g?void 0:s});if(g){let t=t=>t?$.createElement(Pz,{className:X(`${u}-addon`,h,m),variant:e.variant,disabled:e.disabled,status:f},$.createElement(gm,{form:!0},t)):null,i=t(n),a=t(r);return $.createElement(Ll,{rootClassName:s},i,_,a)}return _}),Vz=Bz;Vz._InternalPanelDoNotUseOrYouWillBeFired=e=>$.createElement(ss,{theme:{components:{InputNumber:{handleVisible:!0}}}},$.createElement(Bz,{...e}));var Hz=({prefixCls:e,min:t=0,max:n=100,value:r,onChange:i,className:a,formatter:o})=>{let s=`${e}-steppers`,[c,l]=(0,$.useState)(0),u=Number.isNaN(r)?c:r;return $.createElement(Vz,{className:X(s,a),min:t,max:n,value:u,formatter:o,size:`small`,onChange:e=>{l(e||0),i?.(e)}})},Uz=({prefixCls:e,value:t,onChange:n})=>{let r=`${e}-alpha-input`,[i,a]=(0,$.useState)(()=>kd(t||`#000`)),o=t||i;return $.createElement(Hz,{value:jd(o),prefixCls:e,formatter:e=>`${e}%`,className:r,onChange:e=>{let t=o.toHsb();t.a=(e||0)/100;let r=kd(t);a(r),n?.(r)}})};function Wz(e){return!!(e.addonBefore||e.addonAfter)}function Gz(e){return!!(e.prefix||e.suffix||e.allowClear)}function Kz(e,t,n){let r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart==`number`&&typeof t.selectionEnd==`number`&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},i}function qz(e,t,n,r){if(!n)return;let i=t;if(t.type===`click`){i=Kz(t,e,``),n(i);return}if(e.type!==`file`&&r!==void 0){i=Kz(t,e,r),n(i);return}n(i)}function Jz(){return Jz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jz.apply(this,arguments)}var Yz=$.forwardRef((e,t)=>{let{inputElement:n,children:r,prefixCls:i,prefix:a,suffix:o,addonBefore:s,addonAfter:c,className:l,style:u,disabled:d,readOnly:f,focused:p,triggerFocus:m,allowClear:h,value:g,handleReset:_,hidden:v,classes:y,classNames:b,dataAttrs:x,styles:S,components:C,onClear:w}=e,T=r??n,E=C?.affixWrapper||`span`,D=C?.groupWrapper||`span`,O=C?.wrapper||`span`,k=C?.groupAddon||`span`,A=(0,$.useRef)(null),j=e=>{A.current?.contains(e.target)&&m?.()},M=Gz(e),N=(0,$.cloneElement)(T,{value:g,className:X(T.props?.className,!M&&b?.variant)||null}),P=(0,$.useRef)(null);if($.useImperativeHandle(t,()=>({nativeElement:P.current||A.current})),M){let e=null;if(h){let t=!d&&!f&&g&&!(typeof h==`object`&&h.disabled),n=`${i}-clear-icon`,r=typeof h==`object`&&h?.clearIcon?h.clearIcon:`✖`;e=$.createElement(`button`,{type:`button`,onClick:e=>{_?.(e),w?.()},onMouseDown:e=>e.preventDefault(),className:X(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!o},b?.clear),style:S?.clear},r)}let t=`${i}-affix-wrapper`,n=X(t,{[`${i}-disabled`]:d,[`${t}-disabled`]:d,[`${t}-focused`]:p,[`${t}-readonly`]:f,[`${t}-input-with-clear-btn`]:o&&h&&g},y?.affixWrapper,b?.affixWrapper,b?.variant),r=(o||h)&&$.createElement(`span`,{className:X(`${i}-suffix`,b?.suffix),style:S?.suffix},e,o);N=$.createElement(E,Jz({className:n,style:S?.affixWrapper,onClick:j},x?.affixWrapper,{ref:A}),a&&$.createElement(`span`,{className:X(`${i}-prefix`,b?.prefix),style:S?.prefix},a),N,r)}if(Wz(e)){let e=`${i}-group`,t=`${e}-addon`,n=`${e}-wrapper`,r=X(`${i}-wrapper`,e,y?.wrapper,b?.wrapper),a=X(n,{[`${n}-disabled`]:d},y?.group,b?.groupWrapper);N=$.createElement(D,{className:a,ref:P},$.createElement(O,{className:r},s&&$.createElement(k,{className:t},s),N,c&&$.createElement(k,{className:t},c)))}return $.cloneElement(N,{className:X(N.props?.className,l)||null,style:{...N.props?.style,...u},hidden:v})});function Xz(e,t){return $.useMemo(()=>{let n={};t&&(n.show=typeof t==`object`&&t.formatter?t.formatter:!!t),n={...n,...e};let{show:r,...i}=n;return{...i,show:!!r,showFormatter:typeof r==`function`?r:void 0,strategy:i.strategy||(e=>e.length)}},[e,t])}function Zz({countConfig:e,value:t,maxLength:n}){return $.useMemo(()=>{let r=e.max??n,i=e.strategy(t),a=!!r&&i>r,o=Number(r)>0;return{mergedMax:r,isOutOfRange:a,dataCount:e.show?e.showFormatter?e.showFormatter({value:t,count:i,maxLength:r}):`${i}${o?` / ${r}`:``}`:void 0}},[e,n,t])}function Qz({countConfig:e,getTarget:t}){let[n,r]=$.useState(null),i=$.useRef(t);return $.useEffect(()=>{i.current=t},[t]),$.useEffect(()=>{n&&(i.current()?.setSelectionRange(...n),r(null))},[n]),$.useCallback((t,n)=>{let a=t;return!n&&e.exceedFormatter&&e.max&&e.strategy(t)>e.max&&(a=e.exceedFormatter(t,{max:e.max}),t!==a&&r([i.current()?.selectionStart||0,i.current()?.selectionEnd||0])),a},[e])}function $z(e,t){let[n,r]=v(e,t);return{value:n,setValue:r,formatValue:n==null?``:String(n)}}function eB(){return eB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eB.apply(this,arguments)}var tB=(0,$.forwardRef)((e,t)=>{let{autoComplete:n,onChange:r,onFocus:i,onBlur:a,onPressEnter:o,onKeyDown:s,onKeyUp:c,prefixCls:l=`rc-input`,disabled:d,htmlSize:f,className:p,maxLength:m,suffix:h,showCount:g,count:_,type:v=`text`,classes:y,classNames:b,styles:x,onCompositionStart:S,onCompositionEnd:C,...w}=e,[T,E]=(0,$.useState)(!1),D=(0,$.useRef)(!1),O=(0,$.useRef)(!1),k=(0,$.useRef)(null),A=(0,$.useRef)(null),j=e=>{k.current&&xe(k.current,e)},{setValue:M,formatValue:N}=$z(e.defaultValue,e.value),P=Xz(_,g),{isOutOfRange:F,dataCount:I}=Zz({countConfig:P,value:N,maxLength:m}),L=Qz({countConfig:P,getTarget:()=>k.current});(0,$.useImperativeHandle)(t,()=>({focus:j,blur:()=>{k.current?.blur()},setSelectionRange:(e,t,n)=>{k.current?.setSelectionRange(e,t,n)},select:()=>{k.current?.select()},input:k.current,nativeElement:A.current?.nativeElement||k.current})),(0,$.useEffect)(()=>{O.current&&(O.current=!1),E(e=>e&&d?!1:e)},[d]);let R=(e,t,n)=>{let i=L(t,D.current);n.source===`compositionEnd`&&t===i||(M(i),k.current&&qz(k.current,e,r,i))},z=e=>{R(e,e.target.value,{source:`change`})},B=e=>{D.current=!1,R(e,e.currentTarget.value,{source:`compositionEnd`}),C?.(e)},V=e=>{o&&e.key===`Enter`&&!O.current&&!e.nativeEvent.isComposing&&(O.current=!0,o(e)),s?.(e)},H=e=>{e.key===`Enter`&&(O.current=!1),c?.(e)},U=e=>{E(!0),i?.(e)},W=e=>{O.current&&(O.current=!1),E(!1),a?.(e)},G=e=>{M(``),j(),k.current&&qz(k.current,e,r)},ee=F&&`${l}-out-of-range`;return $.createElement(Yz,eB({},w,{prefixCls:l,className:X(p,ee),handleReset:G,value:N,focused:T,triggerFocus:j,suffix:h||P.show?$.createElement($.Fragment,null,P.show&&$.createElement(`span`,{className:X(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!h},b?.count),style:{...x?.count}},I),h):null,disabled:d,classes:y,classNames:b,styles:x,ref:A}),(()=>{let t=u(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`showCount`,`count`,`classes`,`htmlSize`,`styles`,`classNames`,`onClear`]);return $.createElement(`input`,eB({autoComplete:n},t,{onChange:z,onFocus:U,onBlur:W,onKeyDown:V,onKeyUp:H,className:X(l,{[`${l}-disabled`]:d},b?.input),style:x?.input,ref:k,size:f,type:v,onCompositionStart:e=>{D.current=!0,S?.(e)},onCompositionEnd:B}))})())}),nB=`
208
+ min-height:0 !important;
209
+ max-height:none !important;
210
+ height:0 !important;
211
+ visibility:hidden !important;
212
+ overflow:hidden !important;
213
+ position:absolute !important;
214
+ z-index:-1000 !important;
215
+ top:0 !important;
216
+ right:0 !important;
217
+ pointer-events: none !important;
218
+ `,rB=[`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`],iB={},aB;function oB(e,t=!1){let n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&iB[n])return iB[n];let r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:rB.map(e=>`${e}:${r.getPropertyValue(e)}`).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(iB[n]=s),s}function sB(e,t=!1,n=null,r=null){aB||(aB=document.createElement(`textarea`),aB.setAttribute(`tab-index`,`-1`),aB.setAttribute(`aria-hidden`,`true`),aB.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(aB)),e.getAttribute(`wrap`)?aB.setAttribute(`wrap`,e.getAttribute(`wrap`)):aB.removeAttribute(`wrap`);let{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=oB(e,t);aB.setAttribute(`style`,`${s};${nB}`),aB.value=e.value||e.placeholder||``;let c,l,u,d=aB.scrollHeight;if(o===`border-box`?d+=a:o===`content-box`&&(d-=i),n!==null||r!==null){aB.value=` `;let e=aB.scrollHeight-i;n!==null&&(c=e*n,o===`border-box`&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(l=e*r,o===`border-box`&&(l=l+i+a),u=d>l?void 0:`hidden`,d=Math.min(l,d))}let f={height:d,overflowY:u,resize:`none`};return c&&(f.minHeight=c),l&&(f.maxHeight=l),f}function cB(){return cB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cB.apply(this,arguments)}var lB=0,uB=1,dB=2,fB=$.forwardRef((e,t)=>{let{prefixCls:n,defaultValue:r,value:i,autoSize:a,onResize:o,className:s,style:c,disabled:l,onChange:u,onInternalAutoSize:d,...f}=e,[p,m]=v(r,i),h=p??``,g=e=>{m(e.target.value),u?.(e)},_=$.useRef(null);$.useImperativeHandle(t,()=>({textArea:_.current}));let[y,b]=$.useMemo(()=>a&&typeof a==`object`?[a.minRows,a.maxRows]:[],[a]),x=!!a,[S,C]=$.useState(dB),[w,T]=$.useState(),E=()=>{C(lB)};Pe(()=>{x&&E()},[i,y,b,x]),Pe(()=>{if(S===lB)C(uB);else if(S===uB){let e=sB(_.current,!1,y,b);C(dB),T(e)}},[S]);let D=$.useRef(void 0),O=()=>{D.current!==void 0&&Y.cancel(D.current)},k=e=>{S===dB&&(o?.(e),a&&(O(),D.current=Y(()=>{E()})))};$.useEffect(()=>O,[]);let A=x?w:null,j={...c,...A};return(S===lB||S===uB)&&(j.overflowY=`hidden`,j.overflowX=`hidden`),$.createElement(jt,{onResize:k,disabled:!(a||o)},$.createElement(`textarea`,cB({},f,{ref:_,style:j,className:X(n,s,{[`${n}-disabled`]:l}),disabled:l,value:h,onChange:g})))});function pB(){return pB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pB.apply(this,arguments)}var mB=$.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:i,allowClear:a,maxLength:o,onCompositionStart:s,onCompositionEnd:c,suffix:l,prefixCls:u=`rc-textarea`,showCount:d,count:f,className:p,style:m,disabled:h,hidden:g,classNames:_,styles:v,onResize:y,onClear:b,onPressEnter:x,readOnly:S,autoSize:C,onKeyDown:w,...T},E)=>{let[D,O]=$.useState(!1),k=$.useRef(!1),[A,j]=$.useState(null),M=(0,$.useRef)(null),N=(0,$.useRef)(null),P=()=>N.current?.textArea||null,{setValue:F,formatValue:I}=$z(e,t),L=Xz(f,d),{isOutOfRange:R,dataCount:z}=Zz({countConfig:L,value:I,maxLength:o}),B=Qz({countConfig:L,getTarget:()=>N.current?.textArea||null}),V=()=>{P()?.focus()};(0,$.useImperativeHandle)(E,()=>({resizableTextArea:N.current,focus:V,blur:()=>{P()?.blur()},nativeElement:M.current?.nativeElement||P()})),(0,$.useEffect)(()=>{O(e=>!h&&e)},[h]);let H=(e,t)=>{let n=B(t,k.current);F(n),qz(e.currentTarget,e,i,n)},U=e=>{k.current=!0,s?.(e)},W=e=>{k.current=!1,H(e,e.currentTarget.value),c?.(e)},G=e=>{H(e,e.target.value)},ee=e=>{e.key===`Enter`&&x&&!e.nativeEvent.isComposing&&x(e),w?.(e)},K=e=>{O(!0),n?.(e)},q=e=>{O(!1),r?.(e)},te=e=>{F(``),V();let t=P();t&&qz(t,e,i)},ne=l;L.show&&(ne=$.createElement($.Fragment,null,ne,$.createElement(`span`,{className:X(`${u}-data-count`,_?.count),style:v?.count},z)));let re=e=>{y?.(e),P()?.style.height&&j(!0)},J=!C&&!d&&!a;return $.createElement(Yz,{ref:M,value:I,allowClear:a,handleReset:te,suffix:ne,prefixCls:u,classNames:{..._,affixWrapper:X(_?.affixWrapper,{[`${u}-show-count`]:d,[`${u}-textarea-allow-clear`]:a})},disabled:h,focused:D,className:X(p,R&&`${u}-out-of-range`),style:{...m,...A&&!J?{height:`auto`}:{}},dataAttrs:typeof z==`string`?{affixWrapper:{"data-count":z}}:void 0,styles:v,hidden:g,readOnly:S,onClear:b},$.createElement(fB,pB({},T,{autoSize:C,maxLength:o,onKeyDown:ee,onChange:G,onFocus:K,onBlur:q,onCompositionStart:U,onCompositionEnd:W,className:X(_?.textarea),style:{resize:m?.resize,...v?.textarea},disabled:h,prefixCls:u,onResize:re,ref:N,readOnly:S})))}),hB=tB;function gB(e,t){let n=(0,$.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute(`type`)===`password`&&e.current?.input.hasAttribute(`value`)&&e.current?.input.removeAttribute(`value`)}))};return(0,$.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}function _B(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var vB=(0,$.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,status:i,size:a,disabled:o,onBlur:s,onFocus:c,suffix:l,allowClear:u,addonAfter:d,addonBefore:f,className:p,style:m,styles:h,rootClassName:g,onChange:_,classNames:v,variant:y,...b}=e,{getPrefixCls:x,direction:C,allowClear:w,autoComplete:T,className:E,style:D,classNames:O,styles:k}=Wt(`input`),A=x(`input`,n),j=(0,$.useRef)(null),M=la(A),[N,P]=rP(A,g);iP(A,M);let{compactSize:F,compactItemClassnames:I}=Pl(A,C),L=jl(e=>a??F??e),R=$.useContext(Vo),z=o??R,B={...e,size:L,disabled:z},[V,H]=zi([O,v],[k,h],{props:B}),{status:U,hasFeedback:W,feedbackIcon:G}=(0,$.useContext)(pm),ee=lv(U,i);(0,$.useRef)(_B(e)||!!W);let K=gB(j,!0),q=e=>{K(),s?.(e)},te=e=>{K(),c?.(e)},ne=e=>{K(),_?.(e)},re=(W||l)&&$.createElement($.Fragment,null,l,W&&G),J=Js({allowClear:u,contextAllowClear:w,componentName:`Input`}),[ie,ae]=vv(`input`,y,r);return $.createElement(hB,{ref:S(t,j),prefixCls:A,autoComplete:T,...b,disabled:z,onBlur:q,onFocus:te,style:{...H.root,...D,...m},styles:H,suffix:re,allowClear:J,className:X(p,g,P,M,I,E,V.root),onChange:ne,addonBefore:f&&$.createElement(gm,{form:!0,space:!0},f),addonAfter:d&&$.createElement(gm,{form:!0,space:!0},d),classNames:{...V,input:X({[`${A}-sm`]:L===`small`,[`${A}-lg`]:L===`large`,[`${A}-rtl`]:C===`rtl`},V.input,N),variant:X({[`${A}-${ie}`]:ae},cv(A,ee)),affixWrapper:X({[`${A}-affix-wrapper-sm`]:L===`small`,[`${A}-affix-wrapper-lg`]:L===`large`,[`${A}-affix-wrapper-rtl`]:C===`rtl`},N),wrapper:X({[`${A}-group-rtl`]:C===`rtl`},N),groupWrapper:X({[`${A}-group-wrapper-sm`]:L===`small`,[`${A}-group-wrapper-lg`]:L===`large`,[`${A}-group-wrapper-rtl`]:C===`rtl`,[`${A}-group-wrapper-${ie}`]:ae},cv(`${A}-group-wrapper`,ee,W),N)}})}),yB=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,bB=e=>yB.test(`#${e}`),xB=({prefixCls:e,value:t,onChange:n})=>{let r=`${e}-hex-input`,[i,a]=(0,$.useState)(()=>t?od(t.toHexString()):void 0);return(0,$.useEffect)(()=>{t&&a(od(t.toHexString()))},[t]),$.createElement(vB,{className:r,value:i,prefix:`#`,onChange:e=>{let t=e.target.value;a(od(t)),bB(od(t,!0))&&n?.(kd(t))},size:`small`})},SB=({prefixCls:e,value:t,onChange:n})=>{let r=`${e}-hsb-input`,[i,a]=(0,$.useState)(()=>kd(t||`#000`)),o=t||i,s=(e,t)=>{let r=o.toHsb();r[t]=t===`h`?e:(e||0)/100;let i=kd(r);a(i),n?.(i)};return $.createElement(`div`,{className:r},$.createElement(Hz,{max:360,min:0,value:Number(o.toHsb().h),prefixCls:e,className:r,formatter:e=>Ad(e||0).toString(),onChange:e=>s(Number(e),`h`)}),$.createElement(Hz,{max:100,min:0,value:Number(o.toHsb().s)*100,prefixCls:e,className:r,formatter:e=>`${Ad(e||0)}%`,onChange:e=>s(Number(e),`s`)}),$.createElement(Hz,{max:100,min:0,value:Number(o.toHsb().b)*100,prefixCls:e,className:r,formatter:e=>`${Ad(e||0)}%`,onChange:e=>s(Number(e),`b`)}))},CB=({prefixCls:e,value:t,onChange:n})=>{let r=`${e}-rgb-input`,[i,a]=(0,$.useState)(()=>kd(t||`#000`)),o=t||i,s=(e,t)=>{let r=o.toRgb();r[t]=e||0;let i=kd(r);a(i),n?.(i)};return $.createElement(`div`,{className:r},$.createElement(Hz,{max:255,min:0,value:Number(o.toRgb().r),prefixCls:e,className:r,onChange:e=>s(Number(e),`r`)}),$.createElement(Hz,{max:255,min:0,value:Number(o.toRgb().g),prefixCls:e,className:r,onChange:e=>s(Number(e),`g`)}),$.createElement(Hz,{max:255,min:0,value:Number(o.toRgb().b),prefixCls:e,className:r,onChange:e=>s(Number(e),`b`)}))},wB=[`hex`,`hsb`,`rgb`].map(e=>({value:e,label:e.toUpperCase()})),TB=e=>{let{prefixCls:t,format:n,value:r,disabledAlpha:i,onFormatChange:a,onChange:o,disabledFormat:s}=e,[c,l]=v(`hex`,n),u=`${t}-input`,d=e=>{l(e),a?.(e)},f=(0,$.useMemo)(()=>{let e={value:r,prefixCls:t,onChange:o};switch(c){case`hsb`:return $.createElement(SB,{...e});case`rgb`:return $.createElement(CB,{...e});default:return $.createElement(xB,{...e})}},[c,t,r,o]);return $.createElement(`div`,{className:`${u}-container`},!s&&$.createElement(Lv,{value:c,variant:`borderless`,getPopupContainer:e=>e,popupMatchSelectWidth:68,placement:`bottomRight`,onChange:d,className:`${t}-format-select`,size:`small`,options:wB}),$.createElement(`div`,{className:u},f),!i&&$.createElement(Uz,{prefixCls:t,value:r,onChange:o}))};function EB(e,t,n){return(e-t)/(n-t)}function DB(e,t,n,r){let i=EB(t,n,r),a={};switch(e){case`rtl`:a.right=`${i*100}%`,a.transform=`translateX(50%)`;break;case`btt`:a.bottom=`${i*100}%`,a.transform=`translateY(50%)`;break;case`ttb`:a.top=`${i*100}%`,a.transform=`translateY(-50%)`;break;default:a.left=`${i*100}%`,a.transform=`translateX(-50%)`;break}return a}function OB(e,t){return Array.isArray(e)?e[t]:e}var kB=$.createContext({min:0,max:0,direction:`ltr`,step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),AB=$.createContext({});function jB(){return jB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jB.apply(this,arguments)}var MB=$.forwardRef((e,t)=>{let{prefixCls:n,value:r,valueIndex:i,onStartMove:a,onDelete:o,style:s,render:c,dragging:l,draggingDelete:u,onOffsetChange:d,onChangeComplete:p,onFocus:m,onMouseEnter:h,...g}=e,{min:_,max:v,direction:y,disabled:b,keyboard:x,range:S,tabIndex:C,ariaLabelForHandle:w,ariaLabelledByForHandle:T,ariaRequired:E,ariaValueTextFormatterForHandle:D,styles:O,classNames:k}=$.useContext(kB),A=`${n}-handle`,j=e=>{b||a(e,i)},M=e=>{m?.(e,i)},N=e=>{h(e,i)},P=e=>{if(!b&&x){let t=null;switch(e.which||e.keyCode){case f.LEFT:t=y===`ltr`||y===`btt`?-1:1;break;case f.RIGHT:t=y===`ltr`||y===`btt`?1:-1;break;case f.UP:t=y===`ttb`?-1:1;break;case f.DOWN:t=y===`ttb`?1:-1;break;case f.HOME:t=`min`;break;case f.END:t=`max`;break;case f.PAGE_UP:t=2;break;case f.PAGE_DOWN:t=-2;break;case f.BACKSPACE:case f.DELETE:o?.(i);break}t!==null&&(e.preventDefault(),d(t,i))}},F=e=>{switch(e.which||e.keyCode){case f.LEFT:case f.RIGHT:case f.UP:case f.DOWN:case f.HOME:case f.END:case f.PAGE_UP:case f.PAGE_DOWN:p?.();break}},I=DB(y,r,_,v),L={};i!==null&&(L={tabIndex:b?null:OB(C,i),role:`slider`,"aria-valuemin":_,"aria-valuemax":v,"aria-valuenow":r,"aria-disabled":b,"aria-label":OB(w,i),"aria-labelledby":OB(T,i),"aria-required":OB(E,i),"aria-valuetext":OB(D,i)?.(r),"aria-orientation":y===`ltr`||y===`rtl`?`horizontal`:`vertical`,onMouseDown:j,onTouchStart:j,onFocus:M,onMouseEnter:N,onKeyDown:P,onKeyUp:F});let R=$.createElement(`div`,jB({ref:t,className:X(A,{[`${A}-${i+1}`]:i!==null&&S,[`${A}-dragging`]:l,[`${A}-dragging-delete`]:u},k.handle),style:{...I,...s,...O.handle}},L,g));return c&&(R=c(R,{index:i,prefixCls:n,value:r,dragging:l,draggingDelete:u})),R});function NB(){return NB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NB.apply(this,arguments)}var PB=$.forwardRef((e,t)=>{let{prefixCls:n,style:r,onStartMove:i,onOffsetChange:a,values:o,handleRender:s,activeHandleRender:c,draggingIndex:l,draggingDelete:u,onFocus:d,...f}=e,p=$.useRef({}),[m,h]=$.useState(!1),[g,_]=$.useState(-1),v=e=>{_(e),h(!0)},y=(e,t)=>{v(t),d?.(e)},b=(e,t)=>{v(t)};$.useImperativeHandle(t,()=>({focus:e=>{p.current[e]?.focus()},hideHelp:()=>{(0,Kt.flushSync)(()=>{h(!1)})}}));let x={prefixCls:n,onStartMove:i,onOffsetChange:a,render:s,onFocus:y,onMouseEnter:b,...f};return $.createElement($.Fragment,null,o.map((e,t)=>{let n=l===t;return $.createElement(MB,NB({ref:e=>{e?p.current[t]=e:delete p.current[t]},dragging:n,draggingDelete:n&&u,style:OB(r,t),key:t,value:e,valueIndex:t},x))}),c&&m&&$.createElement(MB,NB({key:`a11y`},x,{value:o[g],valueIndex:null,dragging:l!==-1,draggingDelete:u,render:c,style:{pointerEvents:`none`},tabIndex:null,"aria-hidden":!0})))}),FB=e=>{let{prefixCls:t,style:n,children:r,value:i,onClick:a}=e,{min:o,max:s,direction:c,includedStart:l,includedEnd:u,included:d}=$.useContext(kB),f=`${t}-text`,p=DB(c,i,o,s);return $.createElement(`span`,{className:X(f,{[`${f}-active`]:d&&l<=i&&i<=u}),style:{...p,...n},onMouseDown:e=>{e.stopPropagation()},onClick:()=>{a(i)}},r)},IB=e=>{let{prefixCls:t,marks:n,onClick:r}=e,i=`${t}-mark`;return n.length?$.createElement(`div`,{className:i},n.map(({value:e,style:t,label:n})=>$.createElement(FB,{key:e,prefixCls:i,style:t,value:e,onClick:r},n))):null},LB=e=>{let{prefixCls:t,value:n,style:r,activeStyle:i}=e,{min:a,max:o,direction:s,included:c,includedStart:l,includedEnd:u}=$.useContext(kB),d=`${t}-dot`,f=c&&l<=n&&n<=u,p={...DB(s,n,a,o),...typeof r==`function`?r(n):r};return f&&(p={...p,...typeof i==`function`?i(n):i}),$.createElement(`span`,{className:X(d,{[`${d}-active`]:f}),style:p})},RB=e=>{let{prefixCls:t,marks:n,dots:r,style:i,activeStyle:a}=e,{min:o,max:s,step:c}=$.useContext(kB),l=$.useMemo(()=>{let e=new Set;if(n.forEach(t=>{e.add(t.value)}),r&&c!==null){let t=o;for(;t<=s;)e.add(t),t+=c}return Array.from(e)},[o,s,c,r,n]);return $.createElement(`div`,{className:`${t}-step`},l.map(e=>$.createElement(LB,{prefixCls:t,key:e,value:e,style:i,activeStyle:a})))},zB=e=>{let{prefixCls:t,style:n,start:r,end:i,index:a,onStartMove:o,replaceCls:s}=e,{direction:c,min:l,max:u,disabled:d,range:f,classNames:p}=$.useContext(kB),m=`${t}-track`,h=EB(r,l,u),g=EB(i,l,u),_=e=>{!d&&o&&o(e,-1)},v={};switch(c){case`rtl`:v.right=`${h*100}%`,v.width=`${g*100-h*100}%`;break;case`btt`:v.bottom=`${h*100}%`,v.height=`${g*100-h*100}%`;break;case`ttb`:v.top=`${h*100}%`,v.height=`${g*100-h*100}%`;break;default:v.left=`${h*100}%`,v.width=`${g*100-h*100}%`}let y=s||X(m,{[`${m}-${a+1}`]:a!==null&&f,[`${t}-track-draggable`]:o},p.track);return $.createElement(`div`,{className:y,style:{...v,...n},onMouseDown:_,onTouchStart:_})},BB=e=>{let{prefixCls:t,style:n,values:r,startPoint:i,onStartMove:a}=e,{included:o,range:s,min:c,styles:l,classNames:u}=$.useContext(kB),d=$.useMemo(()=>{if(!s){if(r.length===0)return[];let e=i??c,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}let e=[];for(let t=0;t<r.length-1;t+=1)e.push({start:r[t],end:r[t+1]});return e},[r,s,i,c]);if(!o)return null;let f=d?.length&&(u.tracks||l.tracks)?$.createElement(zB,{index:null,prefixCls:t,start:d[0].start,end:d[d.length-1].end,replaceCls:X(u.tracks,`${t}-tracks`),style:l.tracks}):null;return $.createElement($.Fragment,null,f,d.map(({start:e,end:r},i)=>$.createElement(zB,{index:i,prefixCls:t,style:{...OB(n,i),...l.track},start:e,end:r,key:i,onStartMove:a})))},VB=130;function HB(e){let t=`targetTouches`in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function UB(e,t,n,r,i,a,o,s,c,l,u){let[d,f]=$.useState(null),[p,m]=$.useState(-1),[h,g]=$.useState(!1),[_,v]=$.useState(n),[y,b]=$.useState(n),x=$.useRef(null),S=$.useRef(null),C=$.useRef(null),{onDragStart:w,onDragChange:T}=$.useContext(AB);Pe(()=>{p===-1&&v(n)},[n,p]),$.useEffect(()=>()=>{document.removeEventListener(`mousemove`,x.current),document.removeEventListener(`mouseup`,S.current),C.current&&(C.current.removeEventListener(`touchmove`,x.current),C.current.removeEventListener(`touchend`,S.current))},[]);let E=(e,t,n)=>{t!==void 0&&f(t),v(e);let r=e;n&&(r=e.filter((e,t)=>t!==p)),o(r),T&&T({rawValues:e,deleteIndex:n?p:-1,draggingIndex:p,draggingValue:t})},D=J((e,t,n)=>{if(e===-1){let e=y[0],n=y[y.length-1],o=r-e,s=i-n,c=t*(i-r);c=Math.max(c,o),c=Math.min(c,s),c=a(e+c)-e,E(y.map(e=>e+c))}else{let a=(i-r)*t,o=[..._];o[e]=y[e];let s=c(o,a,e,`dist`);E(s.values,s.value,n)}});return[p,d,h,$.useMemo(()=>{let e=[...n].sort((e,t)=>e-t),t=[..._].sort((e,t)=>e-t),r={};t.forEach(e=>{r[e]=(r[e]||0)+1}),e.forEach(e=>{r[e]=(r[e]||0)-1});let i=+!!l;return Object.values(r).reduce((e,t)=>e+Math.abs(t),0)<=i?_:n},[n,_,l]),(r,i,a)=>{r.stopPropagation();let o=a||n,c=o[i];m(i),f(c),b(o),v(o),g(!1);let{pageX:d,pageY:p}=HB(r),h=!1;w&&w({rawValues:o,draggingIndex:i,draggingValue:c});let y=n=>{n.preventDefault();let{pageX:r,pageY:a}=HB(n),o=r-d,s=a-p,{width:c,height:f}=e.current.getBoundingClientRect(),m,v;switch(t){case`btt`:m=-s/f,v=o;break;case`ttb`:m=s/f,v=o;break;case`rtl`:m=-o/c,v=s;break;default:m=o/c,v=s}h=l?Math.abs(v)>VB&&u<_.length:!1,g(h),D(i,m,h)},T=e=>{e.preventDefault(),document.removeEventListener(`mouseup`,T),document.removeEventListener(`mousemove`,y),C.current&&(C.current.removeEventListener(`touchmove`,x.current),C.current.removeEventListener(`touchend`,S.current)),x.current=null,S.current=null,C.current=null,s(h),m(-1),g(!1)};document.addEventListener(`mouseup`,T),document.addEventListener(`mousemove`,y),r.currentTarget.addEventListener(`touchend`,T),r.currentTarget.addEventListener(`touchmove`,y),x.current=y,S.current=T,C.current=r.currentTarget}]}function WB(e,t,n,r,i,a){let o=$.useCallback(n=>Math.max(e,Math.min(t,n)),[e,t]),s=$.useCallback(r=>{if(n!==null){let i=e+Math.round((o(r)-e)/n)*n,a=e=>(String(e).split(`.`)[1]||``).length,s=Math.max(a(n),a(t),a(e)),c=Number(i.toFixed(s));return e<=c&&c<=t?c:null}return null},[n,e,t,o]),c=$.useCallback(i=>{let a=o(i),c=r.map(e=>e.value);n!==null&&c.push(s(i)),c.push(e,t);let l=c[0],u=t-e;return c.forEach(e=>{let t=Math.abs(a-e);t<=u&&(l=e,u=t)}),l},[e,t,r,n,o,s]),l=(i,a,o,c=`unit`)=>{if(typeof a==`number`){let u,d=i[o],f=d+a,p=[];r.forEach(e=>{p.push(e.value)}),p.push(e,t),p.push(s(d));let m=a>0?1:-1;c===`unit`?p.push(s(d+m*n)):p.push(s(f)),p=p.filter(e=>e!==null).filter(e=>a<0?e<=d:e>=d),c===`unit`&&(p=p.filter(e=>e!==d));let h=c===`unit`?d:f;u=p[0];let g=Math.abs(u-h);if(p.forEach(e=>{let t=Math.abs(e-h);t<g&&(u=e,g=t)}),u===void 0)return a<0?e:t;if(c===`dist`)return u;if(Math.abs(a)>1){let e=[...i];return e[o]=u,l(e,a-m,o,c)}return u}else if(a===`min`)return e;else if(a===`max`)return t},u=(e,t,n,r=`unit`)=>{let i=e[n],a=l(e,t,n,r);return{value:a,changed:a!==i}},d=e=>a===null&&e===0||typeof a==`number`&&e<a;return[c,(e,t,n,r=`unit`)=>{let o=e.map(c),s=o[n];if(o[n]=l(o,t,n,r),i===!1){let e=a||0;n>0&&o[n-1]!==s&&(o[n]=Math.max(o[n],o[n-1]+e)),n<o.length-1&&o[n+1]!==s&&(o[n]=Math.min(o[n],o[n+1]-e))}else if(typeof a==`number`||a===null){for(let e=n+1;e<o.length;e+=1){let t=!0;for(;d(o[e]-o[e-1])&&t;)({value:o[e],changed:t}=u(o,1,e))}for(let e=n;e>0;--e){let t=!0;for(;d(o[e]-o[e-1])&&t;)({value:o[e-1],changed:t}=u(o,-1,e-1))}for(let e=o.length-1;e>0;--e){let t=!0;for(;d(o[e]-o[e-1])&&t;)({value:o[e-1],changed:t}=u(o,-1,e-1))}for(let e=0;e<o.length-1;e+=1){let t=!0;for(;d(o[e+1]-o[e])&&t;)({value:o[e+1],changed:t}=u(o,1,e+1))}}return{value:o[n],values:o}}]}function GB(e){return(0,$.useMemo)(()=>{if(e===!0||!e)return[!!e,!1,!1,0];let{editable:t,draggableTrack:n,minCount:r,maxCount:i}=e;return[!0,t,!t&&n,r||0,i]},[e])}var KB=$.forwardRef((e,t)=>{let{prefixCls:n=`rc-slider`,className:r,style:i,classNames:a,styles:o,id:s,disabled:c=!1,keyboard:l=!0,autoFocus:u,onFocus:d,onBlur:f,min:p=0,max:m=100,step:h=1,value:g,defaultValue:_,range:y,count:b,onChange:x,onBeforeChange:S,onAfterChange:C,onChangeComplete:w,allowCross:T=!0,pushable:E=!1,reverse:D,vertical:O,included:k=!0,startPoint:A,trackStyle:j,handleStyle:M,railStyle:N,dotStyle:P,activeDotStyle:F,marks:I,dots:L,handleRender:R,activeHandleRender:z,track:B,tabIndex:V=0,ariaLabelForHandle:H,ariaLabelledByForHandle:U,ariaRequired:W,ariaValueTextFormatterForHandle:G}=e,ee=$.useRef(null),K=$.useRef(null),q=$.useMemo(()=>O?D?`ttb`:`btt`:D?`rtl`:`ltr`,[D,O]),[te,ne,re,ie,ae]=GB(y),oe=$.useMemo(()=>isFinite(p)?p:0,[p]),se=$.useMemo(()=>isFinite(m)?m:100,[m]),ce=$.useMemo(()=>h!==null&&h<=0?1:h,[h]),le=$.useMemo(()=>typeof E==`boolean`?E?ce:!1:E>=0?E:!1,[E,ce]),Y=$.useMemo(()=>Object.keys(I||{}).map(e=>{let t=I[e],n={value:Number(e)};return t&&typeof t==`object`&&!$.isValidElement(t)&&(`label`in t||`style`in t)?(n.style=t.style,n.label=t.label):n.label=t,n}).filter(({label:e})=>e||typeof e==`number`).sort((e,t)=>e.value-t.value),[I]),[ue,de]=WB(oe,se,ce,Y,T,le),[fe,pe]=v(_,g),me=$.useMemo(()=>{let e=fe==null?[]:Array.isArray(fe)?fe:[fe],[t=oe]=e,n=fe===null?[]:[t];if(te){if(n=[...e],b||fe===void 0){let e=b>=0?b+1:2;for(n=n.slice(0,e);n.length<e;)n.push(n[n.length-1]??oe)}n.sort((e,t)=>e-t)}return n.forEach((e,t)=>{n[t]=ue(e)}),n},[fe,te,oe,b,ue]),he=e=>te?e:e[0],ge=J(e=>{let t=[...e].sort((e,t)=>e-t);x&&!tt(t,me,!0)&&x(he(t)),pe(t)}),_e=J(e=>{e&&ee.current.hideHelp();let t=he(me);C?.(t),$e(!C,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),w?.(t)}),ve=e=>{if(c||!ne||me.length<=ie)return;let t=[...me];t.splice(e,1),S?.(he(t)),ge(t);let n=Math.max(0,e-1);ee.current.hideHelp(),ee.current.focus(n)},[ye,be,xe,Se,Ce]=UB(K,q,me,oe,se,ue,ge,_e,de,ne,ie),we=(e,t)=>{if(!c){let n=[...me],r=0,i=0,a=se-oe;me.forEach((t,n)=>{let o=Math.abs(e-t);o<=a&&(a=o,r=n),t<e&&(i=n)});let o=r;ne&&a!==0&&(!ae||me.length<ae)?(n.splice(i+1,0,e),o=i+1):n[r]=e,te&&!me.length&&b===void 0&&n.push(e);let s=he(n);S?.(s),ge(n),t?(document.activeElement?.blur?.(),ee.current.focus(o),Ce(t,o,n)):(C?.(s),$e(!C,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),w?.(s))}},Te=e=>{e.preventDefault();let{width:t,height:n,left:r,top:i,bottom:a,right:o}=K.current.getBoundingClientRect(),{clientX:s,clientY:c}=e,l;switch(q){case`btt`:l=(a-c)/n;break;case`ttb`:l=(c-i)/n;break;case`rtl`:l=(o-s)/t;break;default:l=(s-r)/t}we(ue(oe+l*(se-oe)),e)},[Ee,De]=$.useState(null),Oe=(e,t)=>{if(!c){let n=de(me,e,t);S?.(he(me)),ge(n.values),De(n.value)}};$.useEffect(()=>{if(Ee!==null){let e=me.indexOf(Ee);e>=0&&ee.current.focus(e)}De(null)},[Ee]);let ke=$.useMemo(()=>re&&ce===null?!1:re,[re,ce]),Ae=J((e,t)=>{Ce(e,t),S?.(he(me))}),je=ye!==-1;$.useEffect(()=>{if(!je){let e=me.lastIndexOf(be);ee.current.focus(e)}},[je]);let Me=$.useMemo(()=>[...Se].sort((e,t)=>e-t),[Se]),[Ne,Pe]=$.useMemo(()=>te?[Me[0],Me[Me.length-1]]:[oe,Me[0]],[Me,te,oe]);$.useImperativeHandle(t,()=>({focus:()=>{ee.current.focus(0)},blur:()=>{let{activeElement:e}=document;K.current?.contains(e)&&e?.blur()}})),$.useEffect(()=>{u&&ee.current.focus(0)},[]);let Fe=$.useMemo(()=>({min:oe,max:se,direction:q,disabled:c,keyboard:l,step:ce,included:k,includedStart:Ne,includedEnd:Pe,range:te,tabIndex:V,ariaLabelForHandle:H,ariaLabelledByForHandle:U,ariaRequired:W,ariaValueTextFormatterForHandle:G,styles:o||{},classNames:a||{}}),[oe,se,q,c,l,ce,k,Ne,Pe,te,V,H,U,W,G,o,a]);return $.createElement(kB.Provider,{value:Fe},$.createElement(`div`,{ref:K,className:X(n,r,{[`${n}-disabled`]:c,[`${n}-vertical`]:O,[`${n}-horizontal`]:!O,[`${n}-with-marks`]:Y.length}),style:i,onMouseDown:Te,id:s},$.createElement(`div`,{className:X(`${n}-rail`,a?.rail),style:{...N,...o?.rail}}),B!==!1&&$.createElement(BB,{prefixCls:n,style:j,values:me,startPoint:A,onStartMove:ke?Ae:void 0}),$.createElement(RB,{prefixCls:n,marks:Y,dots:L,style:P,activeStyle:F}),$.createElement(PB,{ref:ee,prefixCls:n,style:M,values:Se,draggingIndex:ye,draggingDelete:xe,onStartMove:Ae,onOffsetChange:Oe,onFocus:d,onBlur:f,handleRender:R,activeHandleRender:z,onChangeComplete:_e,onDelete:ne?ve:void 0}),$.createElement(IB,{prefixCls:n,marks:Y,onClick:we})))}),qB=(0,$.createContext)({}),JB=$.forwardRef((e,t)=>{let{open:n,draggingDelete:r,value:i}=e,a=(0,$.useRef)(null),o=n&&!r,s=(0,$.useRef)(null);function c(){Y.cancel(s.current),s.current=null}function l(){s.current=Y(()=>{a.current?.forceAlign(),s.current=null})}return $.useEffect(()=>(o?l():c(),c),[o,e.title,i]),$.createElement(Ny,{ref:S(a,t),...e,open:o})}),YB=e=>{let{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:a,marginPart:o,colorFillContentHover:s,handleColorDisabled:c,calc:l,handleSize:u,handleSizeHover:d,handleActiveColor:f,handleActiveOutlineColor:p,handleLineWidth:m,handleLineWidthHover:h,motionDurationMid:g}=e;return{[t]:{...ur(e),position:`relative`,height:r,margin:`${Q(o)} ${Q(a)}`,padding:0,cursor:`pointer`,touchAction:`none`,"&-vertical":{margin:`${Q(a)} ${Q(o)}`},[`${t}-rail`]:{position:`absolute`,backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${g}`},[`${t}-track,${t}-tracks`]:{position:`absolute`,transition:`background-color ${g}`},[`${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:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${Q(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:l(m).mul(-1).equal(),insetBlockStart:l(m).mul(-1).equal(),width:l(u).add(l(m).mul(2)).equal(),height:l(u).add(l(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 ${Q(m)} ${e.handleColor}`,outline:`0px solid transparent`,borderRadius:`50%`,cursor:`pointer`,transition:[`inset-inline-start`,`inset-block-start`,`width`,`height`,`box-shadow`,`outline`].map(e=>`${e} ${g}`).join(`, `)},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:l(d).sub(u).div(2).add(h).mul(-1).equal(),insetBlockStart:l(d).sub(u).div(2).add(h).mul(-1).equal(),width:l(d).add(l(h).mul(2)).equal(),height:l(d).add(l(h).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${Q(h)} ${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:i,height:i,backgroundColor:e.colorBgElevated,border:`${Q(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`},[`
219
+ ${t}-dot
220
+ `]:{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 ${Q(m)} ${c}`,insetInlineStart:0,insetBlockStart:0},[`
221
+ ${t}-mark-text,
222
+ ${t}-dot
223
+ `]:{cursor:`not-allowed !important`}},[`&-tooltip ${n}-tooltip-container`]:{minWidth:`unset`}}}},XB=(e,t)=>{let{componentCls:n,railSize:r,handleSize:i,dotSize:a,marginFull:o,calc:s}=e,c=t?`paddingBlock`:`paddingInline`,l=t?`width`:`height`,u=t?`height`:`width`,d=t?`insetBlockStart`:`insetInlineStart`,f=t?`top`:`insetInlineStart`,p=s(r).mul(3).sub(i).div(2).equal(),m=s(i).sub(r).div(2).equal(),h=t?{borderWidth:`${Q(m)} 0`,transform:`translateY(${Q(s(m).mul(-1).equal())})`}:{borderWidth:`0 ${Q(m)}`,transform:`translateX(${Q(e.calc(m).mul(-1).equal())})`};return{[c]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[l]:`100%`,[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:{...h},[`${n}-handle`]:{[d]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[f]:s(r).mul(3).add(t?0:o).equal(),[l]:`100%`},[`${n}-step`]:{insetInlineStart:0,top:0,[f]:r,[l]:`100%`,[u]:r},[`${n}-dot`]:{position:`absolute`,[d]:s(r).sub(a).div(2).equal()}}},ZB=e=>{let{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:{...XB(e,!0),[`&${t}-with-marks`]:{marginBottom:n}}}},QB=e=>{let{componentCls:t}=e;return{[`${t}-vertical`]:{...XB(e,!1),height:`100%`}}},$B=yr(`Slider`,e=>{let t=wn(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[YB(t),ZB(t),QB(t)]},e=>{let t=e.controlHeightLG/4,n=e.controlHeightSM/2,r=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,o=new pe(a).setA(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:r,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:o,handleColorDisabled:new pe(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});function eV(){let[e,t]=$.useState(!1),n=$.useRef(null),r=()=>{Y.cancel(n.current)};return $.useEffect(()=>r,[]),[e,e=>{r(),e?t(e):n.current=Y(()=>{t(e)})}]}function tV(e){return e||e===null?e:e=>Ei(e)?e.toString():``}var nV=$.forwardRef((e,t)=>{let{prefixCls:n,range:r,className:i,rootClassName:a,style:o,disabled:s,tooltip:c={},onChangeComplete:l,classNames:u,styles:d,vertical:f,orientation:p,...m}=e,[,h]=sc(p,f),{getPrefixCls:g,direction:_,className:v,style:y,classNames:b,styles:x,getPopupContainer:S}=Wt(`slider`),C=$.useContext(Vo),w=s??C,T={...e,disabled:w,vertical:h},[E,D]=zi([b,u],[x,d],{props:T}),{handleRender:O,direction:k}=$.useContext(qB),A=(k||_)===`rtl`,[j,M]=eV(),[N,P]=eV(),F={...c},{open:I,placement:L,getPopupContainer:R,prefixCls:z,formatter:B}=F,V=I,H=(j||N)&&V!==!1,U=tV(B),[W,G]=eV(),ee=e=>{l?.(e),G(!1)},K=(e,t)=>e||(t?A?`left`:`right`:`top`),q=g(`slider`,n),[te,ne]=$B(q),re=X(i,v,E.root,a,{[`${q}-rtl`]:A,[`${q}-lock`]:W},te,ne);A&&!h&&(m.reverse=!m.reverse),$.useEffect(()=>{let e=()=>{Y(()=>{P(!1)},1)};return document.addEventListener(`mouseup`,e),()=>{document.removeEventListener(`mouseup`,e)}},[]);let J=r&&!V,ie=O||((e,t)=>{let{index:n}=t,r=e.props;function i(e,t,n){n&&m[e]?.(t),r[e]?.(t)}let a={...r,onMouseEnter:e=>{M(!0),i(`onMouseEnter`,e)},onMouseLeave:e=>{M(!1),i(`onMouseLeave`,e)},onMouseDown:e=>{P(!0),G(!0),i(`onMouseDown`,e)},onFocus:e=>{P(!0),m.onFocus?.(e),i(`onFocus`,e,!0)},onBlur:e=>{P(!1),m.onBlur?.(e),i(`onBlur`,e,!0)}},o=$.cloneElement(e,a),s=(!!V||H)&&U!==null;return J?o:$.createElement(JB,{...F,prefixCls:g(`tooltip`,z),title:U?U(t.value):``,value:t.value,open:s,placement:K(L,h),key:n,classNames:{root:`${q}-tooltip`},getPopupContainer:R||S},o)}),ae=J?(e,t)=>{let n=$.cloneElement(e,{style:{...e.props.style,visibility:`hidden`}});return $.createElement(JB,{...F,prefixCls:g(`tooltip`,z),title:U?U(t.value):``,open:U!==null&&H,placement:K(L,h),key:`tooltip`,classNames:{root:`${q}-tooltip`},getPopupContainer:R||S,draggingDelete:t.draggingDelete},n)}:void 0,oe={...D.root,...y,...o};return $.createElement(KB,{...m,classNames:E,styles:D,step:m.step,range:r,className:re,style:oe,disabled:w,vertical:h,ref:t,prefixCls:q,handleRender:ie,activeHandleRender:ae,onChangeComplete:ee})}),rV=e=>{let{prefixCls:t,colors:n,type:r,color:i,range:a=!1,className:o,activeIndex:s,onActive:c,onDragStart:l,onDragChange:u,onKeyDelete:d,...f}=e,p={...f,track:!1},m=$.useMemo(()=>`linear-gradient(90deg, ${n.map(e=>`${e.color} ${e.percent}%`).join(`, `)})`,[n]),h=$.useMemo(()=>!i||!r?null:r===`alpha`?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`,[i,r]),g=J(l),_=J(u),v=$.useMemo(()=>({onDragStart:g,onDragChange:_}),[]),y=J((e,i)=>{let{onFocus:a,style:o,className:l,onKeyDown:u}=e.props,f={...o};return r===`gradient`&&(f.background=Nd(n,i.value)),$.cloneElement(e,{onFocus:e=>{c?.(i.index),a?.(e)},style:f,className:X(l,{[`${t}-slider-handle-active`]:s===i.index}),onKeyDown:e=>{(e.key===`Delete`||e.key===`Backspace`)&&d&&d(i.index),u?.(e)}})}),b=$.useMemo(()=>({direction:`ltr`,handleRender:y}),[]);return $.createElement(qB.Provider,{value:b},$.createElement(AB.Provider,{value:v},$.createElement(nV,{...p,className:X(o,`${t}-slider`),tooltip:{open:!1},range:{editable:a,minCount:2},styles:{rail:{background:m},handle:h?{background:h}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}})))},iV=e=>{let{value:t,onChange:n,onChangeComplete:r}=e,i=e=>n(e[0]),a=e=>r(e[0]);return $.createElement(rV,{...e,value:[t],onChange:i,onChangeComplete:a})};function aV(e){return Lt(e).sort((e,t)=>e.percent-t.percent)}var oV=$.memo(e=>{let{prefixCls:t,mode:n,onChange:r,onChangeComplete:i,onActive:a,activeIndex:o,onGradientDragging:s,colors:c}=e,l=n===`gradient`,u=$.useMemo(()=>c.map(e=>({percent:e.percent,color:e.color.toRgbString()})),[c]),d=$.useMemo(()=>u.map(e=>e.percent),[u]),f=$.useRef(u);return l?$.createElement(rV,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:u,color:null,value:d,range:!0,onChangeComplete:e=>{i(new cd(u)),o>=e.length&&a(e.length-1),s(!1)},disabled:!1,type:`gradient`,activeIndex:o,onActive:a,onDragStart:({rawValues:e,draggingIndex:t,draggingValue:n})=>{if(e.length>u.length){let e=Nd(u,n),r=Lt(u);r.splice(t,0,{percent:n,color:e}),f.current=r}else f.current=u;s(!0),r(new cd(aV(f.current)),!0)},onDragChange:({deleteIndex:e,draggingIndex:t,draggingValue:n})=>{let i=Lt(f.current);e===-1?(i[t]={...i[t],percent:n},i=aV(i)):i.splice(e,1),r(new cd(i),!0)},onKeyDelete:e=>{let t=Lt(u);t.splice(e,1);let n=new cd(t);r(n),i(n)}}):null}),sV={slider:iV},cV=()=>{let e=(0,$.useContext)(iz),{mode:t,onModeChange:n,modeOptions:r,prefixCls:i,allowClear:a,value:o,disabledAlpha:s,onChange:c,onClear:l,onChangeComplete:u,activeIndex:d,gradientDragging:f,...p}=e,m=$.useMemo(()=>o.cleared?[{percent:0,color:new cd(``)},{percent:100,color:new cd(``)}]:o.getColors(),[o]),h=!o.isGradient(),[g,_]=$.useState(o);Pe(()=>{h||_(m[d]?.color)},[h,m,f,d]);let v=$.useMemo(()=>h?o:f?g:m[d]?.color,[m,o,d,h,g,f]),[y,b]=$.useState(v),[x,S]=nc(),C=y?.equals(v)?v:y;Pe(()=>{b(v)},[x,v?.toHexString()]);let w=(e,n)=>{let r=kd(e);if(o.cleared){let e=r.toRgb();if(!e.r&&!e.g&&!e.b&&n){let{type:e,value:t=0}=n;r=new cd({h:e===`hue`?t:0,s:1,b:1,a:e===`alpha`?t/100:1})}else r=Md(r)}if(t===`single`)return r;let i=Lt(m);return i[d]={...i[d],color:r},new cd(i)},T=(e,t,n)=>{let r=w(e,n);b(r.isGradient()?r.getColors()[d].color:r),c(r,t)},E=(e,t)=>{u(w(e,t)),S()},D=e=>{c(w(e))},O=null,k=r.length>1;return(a||k)&&(O=$.createElement(`div`,{className:`${i}-operation`},k&&$.createElement(rz,{size:`small`,options:r,value:t,onChange:n}),$.createElement(oz,{prefixCls:i,value:o,onChange:e=>{c(e),l?.()},...p}))),$.createElement($.Fragment,null,O,$.createElement(oV,{...e,colors:m}),$.createElement(ad,{prefixCls:i,value:C?.toHsb(),disabledAlpha:s,onChange:(e,t)=>{T(e,!0,t)},onChangeComplete:(e,t)=>{E(e,t)},components:sV}),$.createElement(TB,{value:v,onChange:D,prefixCls:i,disabledAlpha:s,...p}))},lV=()=>{let{prefixCls:e,value:t,presets:n,onChange:r}=(0,$.useContext)(az);return Array.isArray(n)?$.createElement(Ld,{value:t,presets:n,prefixCls:e,onChange:r}):null},uV=e=>{let{prefixCls:t,presets:n,panelRender:r,value:i,onChange:a,onClear:o,allowClear:s,disabledAlpha:c,mode:l,onModeChange:u,modeOptions:d,onChangeComplete:f,activeIndex:p,onActive:m,format:h,onFormatChange:g,gradientDragging:_,onGradientDragging:v,disabledFormat:y}=e,b=`${t}-inner`,x=$.useMemo(()=>({prefixCls:t,value:i,onChange:a,onClear:o,allowClear:s,disabledAlpha:c,mode:l,onModeChange:u,modeOptions:d,onChangeComplete:f,activeIndex:p,onActive:m,format:h,onFormatChange:g,gradientDragging:_,onGradientDragging:v,disabledFormat:y}),[t,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y]),S=$.useMemo(()=>({prefixCls:t,value:i,presets:n,onChange:a}),[t,i,n,a]),C=$.createElement(`div`,{className:`${b}-content`},$.createElement(cV,null),Array.isArray(n)&&$.createElement(UR,null),$.createElement(lV,null));return $.createElement(iz.Provider,{value:x},$.createElement(az.Provider,{value:S},$.createElement(`div`,{className:b},ki(r)?r(C,{components:{Picker:cV,Presets:lV}}):C)))},dV=(0,$.forwardRef)((e,t)=>{let{color:n,prefixCls:r,open:i,disabled:a,format:o,className:s,style:c,classNames:l,styles:u,showText:d,activeIndex:f,...p}=e,m=`${r}-trigger`,h=`${m}-text`,g=`${h}-cell`,[_]=ja(`ColorPicker`),v=$.useMemo(()=>{if(!d)return``;if(ki(d))return d(n);if(n.cleared)return _.transparent;if(n.isGradient())return n.getColors().map((e,t)=>{let n=f!==-1&&f!==t;return $.createElement(`span`,{key:t,className:X(g,n&&`${g}-inactive`)},e.color.toRgbString(),` `,e.percent,`%`)});let e=n.toHexString().toUpperCase(),t=jd(n);switch(o){case`rgb`:return n.toRgbString();case`hsb`:return n.toHsbString();default:return t<100?`${e.slice(0,7)},${t}%`:e}},[n,o,d,f,_.transparent,g]),y=(0,$.useMemo)(()=>n.cleared?$.createElement(oz,{prefixCls:r,className:l.body,style:u.body}):$.createElement(Ku,{prefixCls:r,color:n.toCssString(),className:l.body,innerClassName:l.content,style:u.body,innerStyle:u.content}),[n,r,l.body,l.content,u.body,u.content]);return $.createElement(`div`,{ref:t,className:X(m,s,l.root,{[`${m}-active`]:i,[`${m}-disabled`]:a}),style:{...u.root,...c},...V(p)},y,d&&$.createElement(`div`,{className:X(h,l.description),style:u.description},v))});function fV(e,t,n){let[r]=ja(`ColorPicker`),[i,a]=v(e,t),[o,s]=$.useState(`single`),[c,l]=$.useMemo(()=>{let e=(Array.isArray(n)?n:[n]).filter(e=>e);e.length||e.push(`single`);let t=new Set(e),i=[],a=(e,n)=>{t.has(e)&&i.push({label:n,value:e})};return a(`single`,r.singleColor),a(`gradient`,r.gradientColor),[i,t]},[n,r.singleColor,r.gradientColor]),[u,d]=$.useState(null),f=J(e=>{d(e),a(e)}),p=$.useMemo(()=>{let e=kd(i||``);return e.equals(u)?u:e},[i,u]),m=$.useMemo(()=>l.has(o)?o:c[0]?.value,[l,o,c]);return $.useEffect(()=>{s(p.isGradient()?`gradient`:`single`)},[p]),[p,f,m,s,c]}var pV=(e,t)=>({backgroundImage:`conic-gradient(${t} 25%, transparent 25% 50%, ${t} 50% 75%, transparent 75% 100%)`,backgroundSize:`${e} ${e}`}),mV=(e,t)=>{let{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:i,lineWidth:a,colorFillSecondary:o}=e;return{[`${n}-color-block`]:{position:`relative`,borderRadius:r,width:t,height:t,boxShadow:i,flex:`none`,...pV(`50%`,e.colorFillSecondary),[`${n}-color-block-inner`]:{width:`100%`,height:`100%`,boxShadow:`inset 0 0 0 ${Q(a)} ${o}`,borderRadius:`inherit`}}}},hV=e=>{let{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:i,colorPickerAlphaInputWidth:a,marginXXS:o,paddingXXS:s,controlHeightSM:c,marginXS:l,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:i,padding:0,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${Q(a)}`,marginInlineStart:o},[`${t}-format-select${n}-select`]:{marginInlineEnd:l,width:`auto`,"&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(o).equal(),fontSize:r,lineHeight:Q(c)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:i},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:`auto`}}}},[`${t}-input`]:{gap:o,alignItems:`center`,flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{height:c,display:`flex`,gap:o,alignItems:`center`},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${Q(d)}`,[`${n}-input`]:{fontSize:r,textTransform:`uppercase`,lineHeight:Q(e.calc(c).sub(e.calc(m).mul(2)).equal())},[`${n}-input-prefix`]:{color:f}}}}}},gV=e=>{let{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:i,marginSM:a,colorBgElevated:o,colorFillSecondary:s,lineWidthBold:c,colorPickerHandlerSize:l}=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:i,inset:0},marginBottom:a},[`${t}-handler`]:{width:l,height:l,border:`${Q(c)} solid ${o}`,position:`relative`,borderRadius:`50%`,cursor:`pointer`,boxShadow:`${i}, 0 0 0 1px ${s}`}}},_V=e=>{let{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:i,colorPickerPresetColorSize:a,fontSizeSM:o,colorText:s,lineHeightSM:c,lineWidth:l,borderRadius:u,colorFill:d,colorWhite:f,marginXXS:p,paddingXS:m,fontHeightSM:h}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:h,color:r,paddingInlineEnd:i}},[`${n}-collapse`]:{display:`flex`,flexDirection:`column`,gap:p},[`${n}-collapse-item > ${n}-collapse-panel > ${n}-collapse-body`]:{padding:`${Q(m)} 0`},"&-label":{fontSize:o,color:s,lineHeight:c},"&-items":{display:`flex`,flexWrap:`wrap`,gap:e.calc(p).mul(1.5).equal(),[`${t}-presets-color`]:{position:`relative`,cursor:`pointer`,width:a,height:a,"&::before":{content:`""`,pointerEvents:`none`,width:e.calc(a).add(e.calc(l).mul(4)).equal(),height:e.calc(a).add(e.calc(l).mul(4)).equal(),position:`absolute`,top:e.calc(l).mul(-2).equal(),insetInlineStart:e.calc(l).mul(-2).equal(),borderRadius:u,border:`${Q(l)} 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(a).div(13).mul(5).equal(),height:e.calc(a).div(13).mul(8).equal(),border:`${Q(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:o,color:r}}}},vV=e=>{let{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:i,lineWidthBold:a,colorPickerHandlerSizeSM:o,colorPickerSliderHeight:s,marginSM:c,marginXS:l}=e,u=e.calc(o).sub(e.calc(a).mul(2).equal()).equal(),d=e.calc(o).add(e.calc(a).mul(2).equal()).equal(),f={"&:after":{transform:`scale(1)`,boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[pV(Q(s),e.colorFillSecondary),{margin:0,padding:0,height:s,borderRadius:e.calc(s).div(2).equal(),"&-rail":{height:s,borderRadius:e.calc(s).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:o,height:o,border:`${Q(a)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${i}`,outline:`none`,insetInlineStart:e.calc(a).mul(-1).equal(),top:e.calc(a).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:l,[`& ${t}-slider-handle`]:{"&:after":{transform:`scale(0.8)`},"&-active, &:focus":f}}}},yV=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${Q(e.controlOutlineWidth)} ${n}`,outline:0}),bV=e=>{let{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:`ltr`}},[`${t}-clear`]:{"&::after":{direction:`ltr`}}}}},xV=(e,t,n)=>{let{componentCls:r,borderRadiusSM:i,lineWidth:a,colorSplit:o,colorBorder:s,red6:c}=e;return{[`${r}-clear`]:{width:t,height:t,borderRadius:i,border:`${Q(a)} solid ${o}`,position:`relative`,overflow:`hidden`,cursor:`inherit`,transition:`all ${e.motionDurationFast}`,...n,"&::after":{content:`""`,position:`absolute`,insetInlineEnd:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),display:`block`,width:40,height:2,transformOrigin:`calc(100% - 1px) 1px`,transform:`rotate(-45deg)`,backgroundColor:c},"&:hover":{borderColor:s}}}},SV=e=>{let{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:i,colorWarningHover:a,colorErrorOutline:o,colorWarningOutline:s}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:{...yV(e,n,o)}},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:{...yV(e,r,s)}}}},CV=e=>{let{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:i,controlHeightXS:a,borderRadius:o,borderRadiusSM:s,borderRadiusXS:c,borderRadiusLG:l,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:o},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:c},[`${t}-trigger-text`]:{lineHeight:Q(a)}}}},wV=e=>{let{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:i,motionDurationMid:a,colorBgElevated:o,colorTextDisabled:s,colorText:c,colorBgContainerDisabled:l,borderRadius:u,marginXS:d,marginSM:f,controlHeight:p,controlHeightSM:m,colorBgTextActive:h,colorPickerPresetColorSize:g,colorPickerPreviewSize:_,lineWidth:v,colorBorder:y,paddingXXS:b,fontSize:x,colorPrimaryHover:S,controlOutline:C}=e;return[{[n]:{[`${n}-inner`]:{"&-content":{display:`flex`,flexDirection:`column`,width:r,[`& > ${t}-divider`]:{margin:`${Q(f)} 0 ${Q(d)}`}},[`${n}-panel`]:{...gV(e)},...vV(e),...mV(e,_),...hV(e),..._V(e),...xV(e,g,{marginInlineStart:`auto`}),[`${n}-operation`]:{display:`flex`,justifyContent:`space-between`,marginBottom:d}},"&-trigger":{minWidth:p,minHeight:p,borderRadius:u,border:`${Q(v)} solid ${y}`,cursor:`pointer`,display:`inline-flex`,alignItems:`flex-start`,justifyContent:`center`,transition:`all ${a}`,background:o,padding:e.calc(b).sub(v).equal(),[`${n}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(b).sub(v)).equal(),fontSize:x,color:c,alignSelf:`center`,"&-cell":{"&:not(:last-child):after":{content:`", "`},"&-inactive":{color:s}}},"&:hover":{borderColor:S},[`&${n}-trigger-active`]:{...yV(e,i,C)},"&-disabled":{color:s,background:l,cursor:`not-allowed`,"&:hover":{borderColor:h},[`${n}-trigger-text`]:{color:s}},...xV(e,m),...mV(e,m),...SV(e),...CV(e)},...bV(e)}},Zd(e,{focusElCls:`${n}-trigger-active`})]},TV=yr(`ColorPicker`,e=>{let{colorTextQuaternary:t,marginSM:n}=e;return wV(wn(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()}))}),EV=e=>{let{mode:t,value:n,defaultValue:r,format:i,defaultFormat:a,allowClear:o=!1,presets:s,children:c,trigger:l=`click`,open:u,disabled:d,placement:f=`bottomLeft`,arrow:p,panelRender:m,showText:h,style:g,className:_,size:y,rootClassName:b,prefixCls:x,styles:S,classNames:C,disabledAlpha:w=!1,onFormatChange:T,onChange:E,onClear:D,onOpenChange:O,onChangeComplete:k,getPopupContainer:A,autoAdjustOverflow:j=!0,destroyTooltipOnHide:M,destroyOnHidden:N,disabledFormat:P,...F}=e,{getPrefixCls:I,direction:L,className:R,style:z,classNames:B,styles:V,arrow:H}=Wt(`colorPicker`),U=(0,$.useContext)(Vo),W=d??U,G=I(`color-picker`,x),ee=Sy(p,H),{compactSize:K,compactItemClassnames:q}=Pl(G,L),te=jl(e=>y??K??e),ne={...e,trigger:l,allowClear:o,autoAdjustOverflow:j,disabledAlpha:w,arrow:ee,placement:f,disabled:W,size:te},[re,J]=zi([B,C],[V,S],{props:ne},{popup:{_default:`root`}}),[ie,ae]=v(!1,u),oe=!W&&ie,[se,ce]=v(a,i),le=e=>{ce(e),se!==e&&T?.(e)},Y=e=>{(!e||!W)&&(ae(e),O?.(e))},[ue,de,fe,pe,me]=fV(r,n,t),he=(0,$.useMemo)(()=>jd(ue)<100,[ue]),[ge,_e]=$.useState(null),ve=e=>{if(k){let t=kd(e);w&&he&&(t=Md(e)),k(t)}},ye=(e,t)=>{let n=kd(e);w&&he&&(n=Md(n)),de(n),_e(null),E&&E(n,n.toCssString()),t||ve(n)},[be,xe]=$.useState(0),[Se,Ce]=$.useState(!1),we=e=>{if(pe(e),e===`single`&&ue.isGradient())xe(0),ye(new cd(ue.getColors()[0].color)),_e(ue);else if(e===`gradient`&&!ue.isGradient()){let e=he?Md(ue):ue;ye(new cd(ge||[{percent:0,color:e},{percent:100,color:e}]))}},{status:Te}=$.useContext(pm),Ee=la(G),[De,Oe]=TV(G,Ee),ke=X(b,Oe,Ee,{[`${G}-rtl`]:L}),Ae=X(cv(G,Te),{[`${G}-sm`]:te===`small`,[`${G}-lg`]:te===`large`},q,R,ke,_,De),je=X(G,ke,re.popup?.root),Me={open:oe,trigger:l,placement:f,arrow:ee,rootClassName:b,getPopupContainer:A,autoAdjustOverflow:j,destroyOnHidden:N??!!M},Ne={...z,...g};return $.createElement(Vy,{classNames:{root:je},styles:{root:J.popup?.root,container:S?.popupOverlayInner},onOpenChange:Y,content:$.createElement(gm,{form:!0},$.createElement(uV,{mode:fe,onModeChange:we,modeOptions:me,prefixCls:G,value:ue,allowClear:o,disabled:W,disabledAlpha:w,presets:s,panelRender:m,format:se,onFormatChange:le,onChange:ye,onChangeComplete:ve,onClear:D,activeIndex:be,onActive:xe,gradientDragging:Se,onGradientDragging:Ce,disabledFormat:P})),...Me},c||$.createElement(dV,{activeIndex:oe?be:-1,open:oe,className:Ae,style:Ne,classNames:re,styles:J,prefixCls:G,disabled:W,showText:h,format:se,...F,color:ue}))};EV._InternalPanelDoNotUseOrYouWillBeFired=og(EV,void 0,e=>({...e,placement:`bottom`,autoAdjustOverflow:!1}),`color-picker`,e=>e);var DV=EV,OV=(e,t,n,r,i,a)=>{let{classNames:o,styles:s}=Wt(e),[c,l]=zi([o,t],[s,n],{props:a},{popup:{_default:`root`}});return $.useMemo(()=>[{...c,popup:{...c.popup,root:X(c.popup?.root,r)}},{...l,popup:{...l.popup,root:{...l.popup?.root,...i}}}],[c,l,r,i])},kV=(e,t,n)=>Ti(n)?n:t===`year`&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t===`quarter`&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t===`month`&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t===`week`&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t===`time`&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder,AV=(e,t,n)=>Ti(n)?n:t===`year`&&e.lang.rangeYearPlaceholder?e.lang.rangeYearPlaceholder:t===`quarter`&&e.lang.rangeQuarterPlaceholder?e.lang.rangeQuarterPlaceholder:t===`month`&&e.lang.rangeMonthPlaceholder?e.lang.rangeMonthPlaceholder:t===`week`&&e.lang.rangeWeekPlaceholder?e.lang.rangeWeekPlaceholder:t===`time`&&e.timePickerLocale.rangePlaceholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder,jV=(e,t)=>{let{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=Nv({...e,prefixCls:t,componentName:`DatePicker`});return[$.useMemo(()=>n===!1?!1:{clearIcon:r,...n===!0?{}:n},[n,r]),i]},[MV,NV]=[`week`,`WeekPicker`],[PV,FV]=[`month`,`MonthPicker`],[IV,LV]=[`year`,`YearPicker`],[RV,zV]=[`quarter`,`QuarterPicker`],[BV,VV]=[`time`,`TimePicker`],HV=e=>$.createElement(of,{size:`small`,type:`primary`,...e});function UV(e){return(0,$.useMemo)(()=>({button:HV,...e}),[e])}var WV=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?$.createElement($.Fragment,null,e===BV?$.createElement(j,{"aria-hidden":`true`}):$.createElement(F,{"aria-hidden":`true`}),t&&n):r,GV=e=>(0,$.forwardRef)((t,n)=>{let{prefixCls:r,getPopupContainer:i,components:a,className:o,style:s,classNames:c,styles:l,placement:u,size:d,disabled:f,bordered:p=!0,placeholder:m,status:g,variant:_,picker:v,dropdownClassName:y,popupClassName:b,popupStyle:x,rootClassName:S,suffixIcon:C,separator:w,allowClear:T,clearIcon:E,...D}=t,O=v===BV?`timePicker`:`datePicker`,{suffixIcon:k,clearIcon:A,allowClear:j}=Wt(O),[M,N]=OV(O,c,l,b||y,x),P=$.useRef(null),{getPrefixCls:F,direction:I,getPopupContainer:L,rangePicker:R}=(0,$.useContext)(Vt),z=F(`picker`,r),{compactSize:B,compactItemClassnames:V}=Pl(z,I),H=F(),U=w??R?.separator,[W,G]=vv(`rangePicker`,_,p),ee=la(z),[K,q]=yP(z,ee),te=X(K,q,ee,S),ne=Js({componentName:`RangePicker`,allowClear:T,clearIcon:E,contextAllowClear:j,contextClearIcon:A,defaultAllowClear:!0}),re=UV(a),J=jl(e=>d??B??e),ie=$.useContext(Vo),ae=f??ie,{hasFeedback:oe,status:se,feedbackIcon:ce}=(0,$.useContext)(pm),le=WV({picker:v,hasFeedback:oe,feedbackIcon:ce,suffixIcon:C===void 0?k:C});(0,$.useImperativeHandle)(n,()=>P.current);let[Y]=ja(`Calendar`,xa),ue=ve(Y,t.locale||{}),[de]=vc(`DatePicker`,N?.popup?.root?.zIndex);return $.createElement(gm,{space:!0},$.createElement(mM,{separator:$.createElement(`span`,{"aria-label":`to`,className:`${z}-separator`},U??$.createElement(h,null)),disabled:ae,ref:P,placement:u,placeholder:AV(ue,v,m),suffixIcon:le,prevIcon:$.createElement(`span`,{className:`${z}-prev-icon`}),nextIcon:$.createElement(`span`,{className:`${z}-next-icon`}),superPrevIcon:$.createElement(`span`,{className:`${z}-super-prev-icon`}),superNextIcon:$.createElement(`span`,{className:`${z}-super-next-icon`}),transitionName:`${H}-slide-up`,picker:v,...D,locale:ue.lang,getPopupContainer:i||L,generateConfig:e,components:re,direction:I,prefixCls:z,rootClassName:te,className:X({[`${z}-large`]:J===`large`,[`${z}-small`]:J===`small`,[`${z}-${W}`]:G},cv(z,lv(se,g),oe),V,o,R?.className),style:{...R?.style,...s},classNames:M,styles:{...N,popup:{...N.popup,root:{...N.popup.root,zIndex:de}}},allowClear:ne}))}),KV=e=>{let t=(t,n=`DatePicker`)=>{let r=n===VV?`timePicker`:`datePicker`;return(0,$.forwardRef)((i,a)=>{let{prefixCls:o,getPopupContainer:s,components:c,style:l,className:u,size:d,bordered:f,placement:p,placeholder:m,disabled:h,status:g,variant:_,onCalendarChange:v,classNames:y,styles:b,dropdownClassName:x,popupClassName:S,popupStyle:C,rootClassName:w,suffixIcon:T,allowClear:E,clearIcon:D,...O}=i,{suffixIcon:k,clearIcon:A,allowClear:j}=Wt(n===VV?`timePicker`:`datePicker`),{getPrefixCls:M,direction:N,getPopupContainer:P,[r]:F}=(0,$.useContext)(Vt),I=M(`picker`,o),{compactSize:L,compactItemClassnames:R}=Pl(I,N),z=jl(e=>d??L??e),B=$.useContext(Vo),V=h??B,H={...i,size:z,disabled:V,status:g,variant:_},[U,W]=OV(r,y,b,S||x,C,H),G=$.useRef(null),[ee,K]=vv(`datePicker`,_,f),q=la(I),[te,ne]=yP(I,q),re=X(te,ne,q,w);(0,$.useImperativeHandle)(a,()=>G.current);let J={showToday:!0},ie=t||i.picker,ae=M(),{onSelect:oe,multiple:se}=O,ce=oe&&t===`time`&&!se,le=(e,t,n)=>{v?.(e,t,n),ce&&oe(e)},[,Y]=jV(i,I),ue=Js({componentName:n,allowClear:E,clearIcon:D,contextAllowClear:j,contextClearIcon:A,defaultAllowClear:!0}),de=UV(c),{hasFeedback:fe,status:pe,feedbackIcon:me}=(0,$.useContext)(pm),he=WV({picker:ie,hasFeedback:fe,feedbackIcon:me,suffixIcon:T===void 0?k:T}),[ge]=ja(`DatePicker`,xa),_e=ve(ge,i.locale||{}),[ye]=vc(`DatePicker`,W?.popup?.root?.zIndex);return $.createElement(gm,{space:!0},$.createElement(QM,{ref:G,placeholder:kV(_e,ie,m),suffixIcon:he,placement:p,prevIcon:$.createElement(`span`,{className:`${I}-prev-icon`}),nextIcon:$.createElement(`span`,{className:`${I}-next-icon`}),superPrevIcon:$.createElement(`span`,{className:`${I}-super-prev-icon`}),superNextIcon:$.createElement(`span`,{className:`${I}-super-next-icon`}),transitionName:`${ae}-slide-up`,picker:t,onCalendarChange:le,...J,...O,locale:_e.lang,getPopupContainer:s||P,generateConfig:e,components:de,direction:N,disabled:V,prefixCls:I,rootClassName:re,className:X({[`${I}-large`]:z===`large`,[`${I}-small`]:z===`small`,[`${I}-${ee}`]:K},cv(I,lv(pe,g),fe),R,F?.className,u),style:{...F?.style,...l},classNames:U,styles:{...W,popup:{...W.popup,root:{...W.popup.root,zIndex:ye}}},allowClear:ue,removeIcon:Y}))})},n=t(),r=t(MV,NV),i=t(PV,FV),a=t(IV,LV),o=t(RV,zV);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:t(BV,VV),QuarterPicker:o}},qV=e=>{let{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=KV(e),s=GV(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=i,c.RangePicker=s,c.TimePicker=a,c.QuarterPicker=o,c},JV=qV(pC);JV._InternalPanelDoNotUseOrYouWillBeFired=og(JV,`popupAlign`,void 0,`picker`),JV._InternalRangePanelDoNotUseOrYouWillBeFired=og(JV.RangePicker,`popupAlign`,void 0,`picker`),JV.generatePicker=qV;var YV={xxxl:4,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},XV=$.createContext(null),ZV=e=>Je(e).map(e=>({...e?.props,key:e.key}));function QV(e,t,n){let r=$.useMemo(()=>t||ZV(n),[t,n]);return $.useMemo(()=>r.map(({span:t,...n})=>t===`filled`?{...n,filled:!0}:{...n,span:Ei(t)?t:Yv(e,t)}),[r,e])}function $V(e,t){let n=[],r=[],i=!1,a=0;return e.filter(e=>e).forEach(e=>{let{filled:o,...s}=e;if(o){r.push(s),n.push(r),r=[],a=0;return}let c=t-a;a+=e.span||1,a>=t?(a>t?(i=!0,r.push({...s,span:c})):r.push(s),n.push(r),r=[],a=0):r.push(s)}),r.length>0&&n.push(r),n=n.map(e=>{let n=e.reduce((e,t)=>e+(t.span||1),0);if(n<t){let r=e[e.length-1];return r.span=t-(n-(r.span||1)),e}return e}),[n,i]}var eH=(e,t)=>{let[n,r]=(0,$.useMemo)(()=>$V(t,e),[t,e]);return n},tH=e=>e.children,nH=e=>{let{itemPrefixCls:t,component:n,span:r,className:i,style:a,labelStyle:o,contentStyle:s,bordered:c,label:l,content:u,colon:d,type:f,styles:p,classNames:m}=e,h=n,{classNames:g,styles:_}=$.useContext(XV),[v,y]=zi([g,m],[_,p],{props:e}),b={...o,...y.label},x={...s,...y.content};return c?$.createElement(h,{colSpan:r,style:a,className:X(i,{[`${t}-item-${f}`]:f===`label`||f===`content`,[v.label]:v.label&&f===`label`,[v.content]:v.content&&f===`content`})},Ti(l)&&$.createElement(`span`,{style:b},l),Ti(u)&&$.createElement(`span`,{style:x},u)):$.createElement(h,{className:X(`${t}-item`,i),style:a,colSpan:r},$.createElement(`div`,{className:`${t}-item-container`},Ti(l)&&$.createElement(`span`,{style:b,className:X(`${t}-item-label`,v.label,{[`${t}-item-no-colon`]:!d})},l),Ti(u)&&$.createElement(`span`,{style:x,className:X(`${t}-item-content`,v.content)},u)))};function rH(e,{colon:t,prefixCls:n,bordered:r},{component:i,type:a,showLabel:o,showContent:s,labelStyle:c,contentStyle:l,styles:u}){return e.map(({label:e,children:d,prefixCls:f=n,className:p,style:m,labelStyle:h,contentStyle:g,span:_=1,key:v,styles:y,classNames:b},x)=>typeof i==`string`?$.createElement(nH,{key:`${a}-${v||x}`,className:p,style:m,classNames:b,styles:{label:{...c,...u?.label,...h,...y?.label},content:{...l,...u?.content,...g,...y?.content}},span:_,colon:t,component:i,itemPrefixCls:f,bordered:r,label:o?e:null,content:s?d:null,type:a}):[$.createElement(nH,{key:`label-${v||x}`,className:p,style:{...c,...u?.label,...m,...h,...y?.label},span:1,colon:t,component:i[0],itemPrefixCls:f,bordered:r,label:e,type:`label`}),$.createElement(nH,{key:`content-${v||x}`,className:p,style:{...l,...u?.content,...m,...g,...y?.content},span:_*2-1,component:i[1],itemPrefixCls:f,bordered:r,content:d,type:`content`})])}var iH=e=>{let t=$.useContext(XV),{prefixCls:n,vertical:r,row:i,index:a,bordered:o}=e;return r?$.createElement($.Fragment,null,$.createElement(`tr`,{key:`label-${a}`,className:`${n}-row`},rH(i,e,{component:`th`,type:`label`,showLabel:!0,...t})),$.createElement(`tr`,{key:`content-${a}`,className:`${n}-row`},rH(i,e,{component:`td`,type:`content`,showContent:!0,...t}))):$.createElement(`tr`,{key:a,className:`${n}-row`},rH(i,e,{component:o?[`th`,`td`]:`td`,type:`item`,showLabel:!0,showContent:!0,...t}))},aH=e=>{let{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:`auto`},[`${t}-row`]:{borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:`none`,"> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Q(e.padding)} ${Q(e.paddingLG)}`,borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:`none`}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:`none`}}}},[`&${t}-medium`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Q(e.paddingSM)} ${Q(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Q(e.paddingXS)} ${Q(e.padding)}`}}}}}},oH=e=>{let{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:i,colonMarginRight:a,colonMarginLeft:o,titleMarginBottom:s}=e;return{[t]:{...ur(e),...aH(e),"&-rtl":{direction:`rtl`},[`${t}-header`]:{display:`flex`,alignItems:`center`,marginBottom:s},[`${t}-title`]:{...lr,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:i},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:`none`,"> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:`normal`,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:`start`,"&::after":{content:`":"`,position:`relative`,top:-.5,marginInline:`${Q(o)} ${Q(a)}`},[`&${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`}}},"&-medium":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}}}},sH=yr(`Descriptions`,e=>oH(wn(e,{})),e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,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})),cH=e=>{let{prefixCls:t,title:n,extra:r,column:i,colon:a=!0,bordered:o,layout:s,children:c,className:l,rootClassName:u,style:d,size:f,labelStyle:p,contentStyle:m,styles:h,items:g,classNames:_,...v}=e,{getPrefixCls:y,direction:b,className:x,style:S,classNames:C,styles:w}=Wt(`descriptions`),T=y(`descriptions`,t),E=Zv(),D=$.useMemo(()=>Ei(i)?i:Yv(E,{...YV,...i})??3,[E,i]),O=QV(E,g,c),k=jl(f),A=eH(D,O),[j,M]=sH(T),N={...e,column:D,items:O,size:k},[P,F]=zi([C,_],[w,h],{props:N}),I=$.useMemo(()=>({labelStyle:p,contentStyle:m,styles:{label:F.label,content:F.content},classNames:{label:P.label,content:P.content}}),[p,m,F.label,F.content,P.label,P.content]);return $.createElement(XV.Provider,{value:I},$.createElement(`div`,{className:X(T,x,P.root,{[`${T}-medium`]:k===`medium`||k===`middle`,[`${T}-small`]:k===`small`,[`${T}-bordered`]:!!o,[`${T}-rtl`]:b===`rtl`},l,u,j,M),style:{...S,...F.root,...d},...v},(n||r)&&$.createElement(`div`,{className:X(`${T}-header`,P.header),style:F.header},n&&$.createElement(`div`,{className:X(`${T}-title`,P.title),style:F.title},n),r&&$.createElement(`div`,{className:X(`${T}-extra`,P.extra),style:F.extra},r)),$.createElement(`div`,{className:`${T}-view`},$.createElement(`table`,null,$.createElement(`tbody`,null,A.map((e,t)=>$.createElement(iH,{key:t,index:t,colon:a,prefixCls:T,vertical:s===`vertical`,bordered:o,row:e})))))))};cH.Item=tH;var lH=$.createContext(null),uH=$.createContext({});function dH(){return dH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dH.apply(this,arguments)}var fH=e=>{let{prefixCls:t,className:n,containerRef:r,...i}=e,{panel:a}=$.useContext(uH),o=K(a,r);return $.createElement(`div`,dH({className:X(`${t}-section`,n),role:`dialog`,ref:o},V(e,{aria:!0}),{"aria-modal":`true`},i))};function pH(e){let{prefixCls:t,direction:n,className:r,style:i,maxSize:a,containerRef:o,currentSize:s,onResize:c,onResizeEnd:l,onResizeStart:u}=e,[d,f]=$.useState(!1),[p,m]=$.useState(0),[h,g]=$.useState(0),_=n===`left`||n===`right`,v=J(e=>{e.preventDefault(),e.stopPropagation(),f(!0),m(_?e.clientX:e.clientY);let t;if(typeof s==`number`)t=s;else if(o?.current){let e=o.current.getBoundingClientRect();t=_?e.width:e.height}g(t),u?.(t)}),y=J(e=>{if(!d)return;let t=(_?e.clientX:e.clientY)-p;(n===`right`||n===`bottom`)&&(t=-t);let r=h+t;r<0&&(r=0),a&&r>a&&(r=a),c?.(r)}),b=$.useCallback(()=>{if(d&&(f(!1),o?.current)){let e=o.current.getBoundingClientRect(),t=_?e.width:e.height;l?.(t)}},[d,o,l,_]);return $.useEffect(()=>{if(d)return document.addEventListener(`mousemove`,y),document.addEventListener(`mouseup`,b),()=>{document.removeEventListener(`mousemove`,y),document.removeEventListener(`mouseup`,b)}},[d,y,b]),{dragElementProps:{className:X(`${t}-dragger`,`${t}-dragger-${n}`,{[`${t}-dragger-dragging`]:d,[`${t}-dragger-horizontal`]:_,[`${t}-dragger-vertical`]:!_},r),style:i,onMouseDown:v},isDragging:d}}function mH(e){if(typeof e==`string`){let t=Number(e.replace(/px$/i,``));if(parseFloat(e)===t&&$e(!1,"Invalid value type of `width` or `height` which should be number type instead."),!Number.isNaN(t))return t}return e}function hH(e,t,n,r,i){let[a]=A(t&&(r??i!==!1),e);return $.useEffect(()=>{t&&n===!0&&e()?.focus({preventScroll:!0})},[t]),a}function gH(){return gH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gH.apply(this,arguments)}var _H=$.forwardRef((e,t)=>{let{prefixCls:n,open:r,placement:i,inline:a,push:o,forceRender:s,autoFocus:c,focusTrap:l,classNames:u,rootClassName:d,rootStyle:f,zIndex:p,className:m,id:h,style:g,motion:_,width:v,height:y,size:b,maxSize:x,children:S,mask:C,maskClosable:w,maskMotion:T,maskClassName:E,maskStyle:D,afterOpenChange:O,onClose:k,onMouseEnter:A,onMouseOver:j,onMouseLeave:M,onClick:N,onKeyDown:P,onKeyUp:F,styles:I,drawerRender:L,resizable:R,defaultSize:z}=e,B=$.useRef(null);$.useImperativeHandle(t,()=>B.current);let H=hH(()=>B.current,r,c,l,C),[U,W]=$.useState(!1),G=$.useContext(lH),ee;ee=typeof o==`boolean`?o?{}:{distance:0}:o||{};let K=ee?.distance??G?.pushDistance??180,q=$.useMemo(()=>({pushDistance:K,push:()=>{W(!0)},pull:()=>{W(!1)}}),[K]);$.useEffect(()=>{r?G?.push?.():G?.pull?.()},[r]),$.useEffect(()=>()=>{G?.pull?.()},[]);let te=$.createElement(wi,gH({key:`mask`},T,{visible:C&&r}),({className:e,style:t},i)=>$.createElement(`div`,{className:X(`${n}-mask`,e,u?.mask,E),style:{...t,...D,...I?.mask},onClick:w&&r?k:void 0,ref:i})),ne=typeof _==`function`?_(i):_,[re,ie]=$.useState(),ae=i===`left`||i===`right`,oe=$.useMemo(()=>mH(b??(ae?v:y)??re??z??(ae?378:void 0)),[b,v,y,z,ae,re]),se=$.useMemo(()=>{let e={};if(U&&K)switch(i){case`top`:e.transform=`translateY(${K}px)`;break;case`bottom`:e.transform=`translateY(${-K}px)`;break;case`left`:e.transform=`translateX(${K}px)`;break;default:e.transform=`translateX(${-K}px)`;break}return ae?e.width=mH(oe):e.height=mH(oe),e},[U,K,i,ae,oe]),ce=$.useRef(null),le=!!R,Y=typeof R==`object`&&R||{},ue=J(e=>{ie(e),Y.onResize?.(e)}),{dragElementProps:de,isDragging:fe}=pH({prefixCls:`${n}-resizable`,direction:i,className:u?.dragger,style:I?.dragger,maxSize:x,containerRef:ce,currentSize:oe,onResize:ue,onResizeStart:Y.onResizeStart,onResizeEnd:Y.onResizeEnd}),pe={onMouseEnter:A,onMouseOver:j,onMouseLeave:M,onClick:N,onKeyDown:P,onKeyUp:F,onFocus:e=>{H(e.target)}},me=$.createElement(wi,gH({key:`panel`},ne,{visible:r,forceRender:s,onVisibleChanged:O,removeOnLeave:!1,leavedClassName:`${n}-content-wrapper-hidden`}),({className:t,style:r},i)=>{let a=$.createElement(fH,gH({id:h,containerRef:i,prefixCls:n,className:X(m,u?.section),style:{...g,...I?.section}},V(e,{aria:!0}),pe),S);return $.createElement(`div`,gH({ref:ce,className:X(`${n}-content-wrapper`,fe&&`${n}-content-wrapper-dragging`,u?.wrapper,!fe&&t),style:{...r,...se,...I?.wrapper}},V(e,{data:!0})),le&&$.createElement(`div`,de),L?L(a):a)}),he={...f};return p&&(he.zIndex=p),$.createElement(lH.Provider,{value:q},$.createElement(`div`,{className:X(n,`${n}-${i}`,d,{[`${n}-open`]:r,[`${n}-inline`]:a}),style:he,tabIndex:-1,ref:B},te,me))}),vH=e=>{let{open:t=!1,prefixCls:n=`rc-drawer`,placement:r=`right`,autoFocus:i=!0,keyboard:a=!0,width:o,height:s,size:c,maxSize:l,mask:u=!0,maskClosable:d=!0,getContainer:f,forceRender:p,afterOpenChange:m,destroyOnHidden:h,onMouseEnter:g,onMouseOver:_,onMouseLeave:v,onClick:y,onKeyDown:b,onKeyUp:x,onClose:S,resizable:C,defaultSize:w,focusTriggerAfterClose:T,panelRef:E}=e,[D,O]=$.useState(!1),[k,A]=$.useState(!1);Pe(()=>{A(!0)},[]);let j=k?t:!1,M=$.useRef(null),N=$.useRef(null);Pe(()=>{j&&(N.current=document.activeElement)},[j]);let P=e=>{O(e),m?.(e),!e&&T!==!1&&N.current&&!M.current?.contains(N.current)&&N.current?.focus({preventScroll:!0})},F=$.useMemo(()=>({panel:E}),[E]);if(!p&&!D&&!j&&h)return null;let I={onMouseEnter:g,onMouseOver:_,onMouseLeave:v,onClick:y,onKeyDown:b,onKeyUp:x},L={...e,open:j,prefixCls:n,placement:r,autoFocus:i,keyboard:a,width:o,height:s,size:c,maxSize:l,defaultSize:w,mask:u,maskClosable:d,inline:f===!1,afterOpenChange:P,ref:M,resizable:C,...I};return $.createElement(uH.Provider,{value:F},$.createElement(Qa,{open:j||p||D,autoDestroy:!1,getContainer:f,autoLock:u&&(j||D),onEsc:({top:e,event:t})=>{e&&a&&(t.stopPropagation(),S?.(t))}},$.createElement(_H,L)))},yH=e=>{let{prefixCls:t,ariaId:n,title:r,footer:i,extra:a,closable:o,loading:s,onClose:c,headerStyle:l,bodyStyle:u,footerStyle:d,children:f,classNames:p,styles:m}=e,h=Wt(`drawer`),{classNames:g,styles:_,closable:v}=h,[y,b]=zi([g,p],[_,m],{props:{...e,closable:o??v}}),x=$.useMemo(()=>{let e=o??v;if(e!==!1)return Oi(e)&&e?.placement===`end`?`end`:`start`},[o,v]),S=$.useCallback(e=>$.createElement(`button`,{type:`button`,onClick:c,className:X(`${t}-close`,{[`${t}-close-${x}`]:x===`end`},y.close),style:b.close},e),[c,t,x,y.close,b.close]),[C,w]=tc(Ys(e),Ys(h),{closable:!0,closeIconRender:S}),T=()=>!r&&!C?null:$.createElement(`div`,{style:{...b.header,...l},className:X(`${t}-header`,y.header,{[`${t}-header-close-only`]:C&&!r&&!a})},$.createElement(`div`,{className:`${t}-header-title`},x===`start`&&w,r&&$.createElement(`div`,{className:X(`${t}-title`,y.title),style:b.title,id:n},r)),a&&$.createElement(`div`,{className:X(`${t}-extra`,y.extra),style:b.extra},a),x===`end`&&w),E=()=>i?$.createElement(`div`,{className:X(`${t}-footer`,y.footer),style:{...b.footer,...d}},i):null;return $.createElement($.Fragment,null,T(),$.createElement(`div`,{className:X(`${t}-body`,y.body),style:{...b.body,...u}},s?$.createElement(Jm,{active:!0,title:!1,paragraph:{rows:5},className:`${t}-body-skeleton`}):f),E())},bH=e=>{let t=`100%`;return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},xH=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),SH=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:`none`},"&-active":{transition:`all ${t}`}},...xH({opacity:e},{opacity:1})}),CH=(e,t)=>[SH(.7,t),xH({transform:bH(e)},{transform:`none`})],wH=e=>{let{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:SH(0,n),[`${t}-panel-motion`]:[`left`,`right`,`top`,`bottom`].reduce((e,t)=>({...e,[`&-${t}`]:CH(t,n)}),{})}}},TH=e=>{let{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:i,colorBgElevated:a,motionDurationSlow:o,motionDurationMid:s,paddingXS:c,padding:l,paddingLG:u,fontSizeLG:d,lineHeightLG:f,lineWidth:p,lineType:m,colorSplit:h,marginXS:g,colorIcon:_,colorIconHover:v,colorBgTextHover:y,colorBgTextActive:b,colorText:x,fontWeightStrong:S,footerPaddingBlock:C,footerPaddingInline:w,draggerSize:T,calc:E}=e,D=`${n}-content-wrapper`,O=`${n}-resizable-dragger`;return{[n]:{position:`fixed`,inset:0,zIndex:r,pointerEvents:`none`,color:x,"&-pure":{position:`relative`,background:a,display:`flex`,flexDirection:`column`,pointerEvents:`auto`,[`&${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:i,pointerEvents:`auto`,[`&${n}-mask-blur`]:{backdropFilter:`blur(4px)`}},[D]:{position:`absolute`,zIndex:r,maxWidth:`100vw`,transition:`all ${o}`,"&-hidden":{display:`none`}},[`&-left > ${D}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${D}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${D}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${D}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-section`]:{display:`flex`,flexDirection:`column`,width:`100%`,height:`100%`,overflow:`auto`,background:a,pointerEvents:`auto`},[`${n}-header`]:{display:`flex`,flex:0,alignItems:`center`,padding:`${Q(l)} ${Q(u)}`,fontSize:d,lineHeight:f,borderBottom:`${Q(p)} ${m} ${h}`,"&-title":{display:`flex`,flex:1,alignItems:`center`,minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:`none`},[`${n}-close`]:{display:`inline-flex`,width:E(d).add(c).equal(),height:E(d).add(c).equal(),borderRadius:t,justifyContent:`center`,alignItems:`center`,color:_,fontWeight:S,fontSize:d,fontStyle:`normal`,lineHeight:1,textAlign:`center`,textTransform:`none`,textDecoration:`none`,background:`transparent`,border:0,cursor:`pointer`,transition:`all ${s}`,textRendering:`auto`,[`&${n}-close-end`]:{marginInlineStart:g},[`&:not(${n}-close-end)`]:{marginInlineEnd:g},"&:hover":{color:v,backgroundColor:y,textDecoration:`none`},"&:active":{backgroundColor:b},...mr(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:`${Q(C)} ${Q(w)}`,borderTop:`${Q(p)} ${m} ${h}`},[O]:{position:`absolute`,zIndex:1,backgroundColor:`transparent`,userSelect:`none`,pointerEvents:`auto`,"&:hover":{backgroundColor:e.colorPrimary,opacity:.2},"&-dragging":{backgroundColor:e.colorPrimary,opacity:.3}},[`${O}-left`]:{top:0,bottom:0,right:{_skip_check_:!0,value:0},width:T,cursor:`col-resize`},[`${O}-right`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},width:T,cursor:`col-resize`},[`${O}-top`]:{insetInline:0,bottom:0,height:T,cursor:`row-resize`},[`${O}-bottom`]:{insetInline:0,top:0,height:T,cursor:`row-resize`},[`${D}-dragging`]:{userSelect:`none`,transition:`none`,willChange:`width, height`,[`${n}-content`]:{pointerEvents:`none`},[`${n}-section`]:{pointerEvents:`none`}},"&-rtl":{direction:`rtl`}}}},EH=yr(`Drawer`,e=>{let t=wn(e,{});return[TH(t),wH(t)]},e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding,draggerSize:4})),DH={distance:180},OH=378,kH={motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},AH=e=>{let{rootClassName:t,size:n,defaultSize:r=OH,height:i,width:a,mask:o,push:s=DH,open:c,afterOpenChange:l,onClose:u,prefixCls:d,getContainer:f,panelRef:p=null,style:m,className:h,resizable:g,"aria-labelledby":_,focusable:v,maskClosable:y,maskStyle:b,drawerStyle:x,contentWrapperStyle:C,destroyOnClose:w,destroyOnHidden:T,...E}=e,{placement:D}=E,O=te(),k=E.title?O:void 0,{getPopupContainer:A,getPrefixCls:j,direction:M,className:N,style:P,classNames:F,styles:I,mask:L,focusable:R}=Wt(`drawer`),z=j(`drawer`,d),[B,V]=EH(z),H=f===void 0&&A?()=>A(document.body):f,U=$.useMemo(()=>Ei(n)?n:n===`large`?736:n==="default"?OH:typeof n==`string`?/^\d+(\.\d+)?$/.test(n)?Number(n):n:!D||D===`left`||D===`right`?a:i,[n,D,a,i]),W={motionName:bl(z,`mask-motion`),...kH},G=e=>({motionName:bl(z,`panel-motion-${e}`),...kH}),ee=S(p,Zm()),[K,q]=vc(`Drawer`,E.zIndex),[ne,re,J]=ic(o,L,z,y),ie=vm({...R,...v},H!==!1&&ne),{classNames:ae,styles:oe,rootStyle:se}=E,ce={...e,zIndex:K,panelRef:p,mask:ne,maskClosable:J,defaultSize:r,push:s,focusable:ie},[le,Y]=zi([F,ae],[I,oe],{props:ce}),ue=X({"no-mask":!ne,[`${z}-rtl`]:M===`rtl`},t,B,V,le.root);return $.createElement(gm,{form:!0,space:!0},$.createElement(fc.Provider,{value:q},$.createElement(vH,{prefixCls:z,onClose:u,maskMotion:W,motion:G,...E,classNames:{mask:X(le.mask,re.mask),section:le.section,wrapper:le.wrapper,dragger:le.dragger},styles:{mask:{...Y.mask,...b},section:{...Y.section,...x},wrapper:{...Y.wrapper,...C},dragger:Y.dragger},open:c,mask:ne,maskClosable:J,push:s,size:U,defaultSize:r,style:{...P,...m},rootStyle:{...se,...Y.root},className:X(N,h),rootClassName:ue,getContainer:H,afterOpenChange:l,panelRef:ee,zIndex:K,...g?{resizable:g}:{},"aria-labelledby":_??k,destroyOnHidden:T??w,focusTriggerAfterClose:ie.focusTriggerAfterClose,focusTrap:ie.trap},$.createElement(yH,{prefixCls:z,size:n,...E,ariaId:k,onClose:u}))))};AH._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,style:n,className:r,placement:i=`right`,...a}=e,{getPrefixCls:o}=$.useContext(Vt),s=o(`drawer`,t),[c,l]=EH(s),u=X(s,`${s}-pure`,`${s}-${i}`,c,l,r);return $.createElement(`div`,{className:u,style:n},$.createElement(yH,{prefixCls:s,...a}))};var jH=AH;function MH(e){return[`small`,`middle`,`medium`,`large`].includes(e)}function NH(e){return e?Ei(e):!1}var PH=$.createContext({latestIndex:0}),FH=PH.Provider,IH=e=>{let{className:t,prefix:n,index:r,children:i,separator:a,style:o,classNames:s,styles:c}=e,{latestIndex:l}=$.useContext(PH);return Ti(i)?$.createElement($.Fragment,null,$.createElement(`div`,{className:t,style:o},i),r<l&&a&&$.createElement(`span`,{className:X(`${n}-item-separator`,s?.separator),style:c?.separator},a)):null},LH=e=>{let{componentCls:t,antCls:n}=e;return{[t]:{display:`inline-flex`,"&-rtl":{direction:`rtl`},"&-vertical":{flexDirection:`column`},"&-align":{flexDirection:`column`,"&-center":{alignItems:`center`},"&-start":{alignItems:`flex-start`},"&-end":{alignItems:`flex-end`},"&-baseline":{alignItems:`baseline`}},[`${t}-item:empty`]:{display:`none`},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:`block`}}}},RH=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},zH=yr(`Space`,e=>{let t=wn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[LH(t),RH(t)]},()=>({}),{resetStyle:!1}),BH=$.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:a,style:o,classNames:s,styles:c}=Wt(`space`),{size:l=i??`small`,align:u,className:d,rootClassName:f,children:p,direction:m,orientation:h,prefixCls:g,split:_,separator:v,style:y,vertical:b,wrap:x=!1,classNames:S,styles:C,...w}=e,[T,E]=Array.isArray(l)?l:[l,l],D=MH(E),O=MH(T),k=NH(E),A=NH(T),j=Je(p,{keepEmpty:!0}),[M,N]=sc(h,b,m),P=u===void 0&&!N?`center`:u,F=v??_,I=n(`space`,g),[L,R]=zH(I),z={...e,size:l,orientation:M,align:P},[B,V]=zi([s,S],[c,C],{props:z}),H=X(I,a,L,`${I}-${M}`,{[`${I}-rtl`]:r===`rtl`,[`${I}-align-${P}`]:P,[`${I}-gap-row-${E}`]:D,[`${I}-gap-col-${T}`]:O},d,f,R,B.root),U=X(`${I}-item`,B.item),W=j.map((e,t)=>{let n=e?.key||`${U}-${t}`;return $.createElement(IH,{prefix:I,classNames:B,styles:V,className:U,key:n,index:t,separator:F,style:V.item},e)}),G=$.useMemo(()=>({latestIndex:j.reduce((e,t,n)=>Ti(t)?n:e,0)}),[j]);if(j.length===0)return null;let ee={};return x&&(ee.flexWrap=`wrap`),!O&&A&&(ee.columnGap=T),!D&&k&&(ee.rowGap=E),$.createElement(`div`,{ref:t,className:H,style:{...ee,...V.root,...o,...y},...w},$.createElement(FH,{value:G},W))});BH.Compact=Ll,BH.Addon=Pz;var VH=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=$.useContext(Vt),{prefixCls:i,type:a=`default`,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:f,menu:p,arrow:m,autoFocus:h,trigger:g,align:_,open:v,onOpenChange:y,placement:b,getPopupContainer:x,href:S,icon:C=$.createElement(Ye,null),title:w,buttonsRender:T=e=>e,mouseEnterDelay:E,mouseLeaveDelay:D,overlayClassName:O,overlayStyle:k,destroyOnHidden:A,destroyPopupOnHide:j,dropdownRender:M,popupRender:N,...P}=e,F=n(`dropdown`,i),I=`${F}-button`,L={menu:p,arrow:m,autoFocus:h,align:_,disabled:s,trigger:s?[]:g,onOpenChange:y,getPopupContainer:x||t,mouseEnterDelay:E,mouseLeaveDelay:D,classNames:{root:O},styles:{root:k},destroyOnHidden:A,popupRender:N||M},{compactSize:R,compactItemClassnames:z}=Pl(F,r),B=X(I,z,f);`destroyPopupOnHide`in e&&(L.destroyPopupOnHide=j),`open`in e&&(L.open=v),`placement`in e?L.placement=b:L.placement=r===`rtl`?`bottomLeft`:`bottomRight`;let[V,H]=T([$.createElement(XS,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:S,title:w},d),$.createElement(XS,{type:a,danger:o,icon:C})]);return $.createElement(BH.Compact,{className:B,size:R,block:!0,...P},V,$.createElement(IS,{...L},H))};VH.__ANT_BUTTON=!0;var HH=IS;HH.Button=VH;var UH=[`wrap`,`nowrap`,`wrap-reverse`],WH=[`flex-start`,`flex-end`,`start`,`end`,`center`,`space-between`,`space-around`,`space-evenly`,`stretch`,`normal`,`left`,`right`],GH=[`center`,`start`,`end`,`flex-start`,`flex-end`,`self-start`,`self-end`,`baseline`,`normal`,`stretch`],KH=(e,t)=>{let n=t.wrap===!0?`wrap`:t.wrap;return{[`${e}-wrap-${n}`]:n&&UH.includes(n)}},qH=(e,t)=>{let n={};return GH.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},JH=(e,t)=>{let n={};return WH.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n},YH=(e,t)=>X({...KH(e,t),...qH(e,t),...JH(e,t)}),XH=e=>{let{componentCls:t}=e;return{[t]:{display:`flex`,margin:0,padding:0,"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`},"&:empty":{display:`none`}}}},ZH=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},QH=e=>{let{componentCls:t}=e,n={};return UH.forEach(e=>{n[`${t}-wrap-${e}`]={flexWrap:e}}),n},$H=e=>{let{componentCls:t}=e,n={};return GH.forEach(e=>{n[`${t}-align-${e}`]={alignItems:e}}),n},eU=e=>{let{componentCls:t}=e,n={};return WH.forEach(e=>{n[`${t}-justify-${e}`]={justifyContent:e}}),n},tU=yr(`Flex`,e=>{let{paddingXS:t,padding:n,paddingLG:r}=e,i=wn(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[XH(i),ZH(i),QH(i),$H(i),eU(i)]},()=>({}),{resetStyle:!1}),nU=$.forwardRef((e,t)=>{let{prefixCls:n,rootClassName:r,className:i,style:a,flex:o,gap:s,vertical:c,orientation:l,component:d=`div`,children:f,...p}=e,{flex:m,direction:h,getPrefixCls:g}=$.useContext(Vt),_=g(`flex`,n),[v,y]=tU(_),[,b]=sc(l,c??m?.vertical),x=X(i,r,m?.className,_,v,y,YH(_,{...e,vertical:b}),{[`${_}-rtl`]:h===`rtl`,[`${_}-gap-${s}`]:MH(s),[`${_}-vertical`]:b}),S={...m?.style,...a};return Ti(o)&&(S.flex=o),Ti(s)&&!MH(s)&&(S.gap=s),$.createElement(d,{ref:t,className:x,style:S,...u(p,[`justify`,`wrap`,`align`])},f)}),rU=$.createContext(null),iU=(e,t)=>Ti(e)?Oi(e)&&!(0,$.isValidElement)(e)?{...t,...e}:{...t,title:e}:null,aU=e=>{let{componentCls:t,floatButtonSize:n,iconCls:r,antCls:i,floatButtonIconSize:a}=e,[o,s]=Sr(i,`float-btn`),c=`${t}-badge`,l=Math.SQRT2,u=(l-1)/l,d=e.calc(e.borderRadius).mul(u).equal(),f=e.calc(e.controlHeight).div(2).mul(u).equal();return{[t]:[{[o(`size`)]:Q(n)},{flexDirection:`column`,margin:0,padding:`${Q(e.paddingXXS)} 0`,width:s(`size`),minHeight:s(`size`),height:`auto`,wordBreak:`break-word`,whiteSpace:`normal`,gap:e.calc(e.paddingXXS).div(2).equal(),"&-rtl":{direction:`rtl`},[`&${t}-individual`]:{position:`fixed`,zIndex:e.zIndexPopupBase,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary},[`&${t}-pure`]:{position:`relative`,inset:`auto`},"&:empty":{display:`none`},[`${t}-icon`]:{lineHeight:1},[`&${t}-icon-only`]:{[r]:{fontSize:a}},[`${t}-content`]:{fontSize:e.fontSizeSM},[c]:{position:`absolute`,top:0,insetInlineEnd:0,[`&:not(${c}-dot)`]:{transform:`translate(50%, -50%)`}},[`&-rtl ${c}:not(${c}-dot)`]:{transform:`translate(-50%, -50%)`},"&-square":{[`${c}-dot`]:{marginTop:d,marginInlineEnd:d}},"&-circle":{[c]:{marginTop:f,marginInlineEnd:f}}}]}},oU=e=>{let{componentCls:t,antCls:n,floatButtonSize:r,padding:i}=e,a=`${t}-group`,o=`${a}-list`,[s,c]=Sr(n,`float-btn`);return{[a]:[{[s(`list-transform-start`)]:`translate(0,${Q(r)})`,[s(`list-trigger-offset`)]:`calc(${Q(r)} + ${Q(i)})`},{...ur(e),position:`fixed`,zIndex:e.zIndexPopupBase,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,gap:i,"&-rtl":{direction:`rtl`},[`&${t}-pure`]:{position:`relative`,inset:`auto`},[t]:{position:`relative`,inset:`auto`}},{[`&:not(${a}-individual) ${o}`]:{boxShadow:e.boxShadowSecondary},[`&${a}-individual ${o}`]:{gap:i},[`&-menu-mode ${o}`]:{position:`absolute`},[o]:{borderRadius:e.borderRadiusLG,"&-motion":{transition:`all ${e.motionDurationSlow}`,"&-enter, &-appear":{opacity:0,transform:c(`list-transform-start`),"&-active":{opacity:1,transform:`translate(0, 0)`}},"&-leave":{"&-active":{opacity:0,transform:c(`list-transform-start`)}}}},"&-top":{[o]:{bottom:c(`list-trigger-offset`)}},"&-bottom":{[o]:{[s(`list-transform-start`)]:`translate(0, calc(${Q(r)} * -1))`,top:c(`list-trigger-offset`)}},"&-left":{[o]:{[s(`list-transform-start`)]:`translate(${Q(r)}, 0)`,right:c(`list-trigger-offset`)}},"&-right":{[o]:{[s(`list-transform-start`)]:`translate(calc(${Q(r)} * -1), 0)`,left:c(`list-trigger-offset`)}}}]}},sU=yr(`FloatButton`,e=>{let{controlHeightLG:t,marginXXL:n,marginLG:r,fontSizeIcon:i,calc:a}=e,o=wn(e,{floatButtonIconSize:a(i).mul(1.5).equal(),floatButtonSize:t,floatButtonInsetBlockEnd:n,floatButtonInsetInlineEnd:r});return[aU(o),oU(o),nu(e)]},()=>({}),{order:-998}),cU=`float-btn`,lU=$.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,type:o=`default`,shape:s=`circle`,icon:c,description:l,content:d,tooltip:f,badge:p={},classNames:m,styles:h,...g}=e,{getPrefixCls:_,direction:v}=$.useContext(Vt),y=$.useContext(rU),b=_(cU,n),x=la(b),{shape:S,individual:C,classNames:w,styles:T}=y||{},E=S||s,D=C??!0,O=d??l,A={...e,type:o,shape:E},[j,M]=sU(b,x),[N,P]=zi([$.useMemo(()=>({icon:`${b}-icon`,content:`${b}-content`}),[b]),w,m],[T,h],{props:A}),F=!O&&!c?$.createElement(k,null):c,[I]=vc(`FloatButton`,a?.zIndex),L={...a,zIndex:I},R=u(p,[`title`,`children`,`status`,`text`]),z=`badge`in e&&$.createElement(pb,{...R,className:X(R.className,`${b}-badge`,{[`${b}-badge-dot`]:R.dot})}),B=iU(f),V=$.createElement(of,{...g,ref:t,className:X(j,M,x,b,r,i,`${b}-${o}`,`${b}-${E}`,{[`${b}-rtl`]:v===`rtl`,[`${b}-individual`]:D,[`${b}-icon-only`]:!O}),classNames:N,styles:P,style:L,shape:E,type:o,size:`large`,icon:F,_skipSemantic:!0},O,z);return B&&(V=$.createElement(Ny,{...B},V)),V}),uU=$.createElement(y,null),dU=$.forwardRef((e,t)=>{let{backTopIcon:n}=Wt(`floatButton`),{prefixCls:r,className:i,type:a=`default`,shape:o=`circle`,visibilityHeight:s=400,icon:c,target:l,onClick:u,duration:d=450,...f}=e,p=c??n??uU,[m,h]=(0,$.useState)(s===0),g=$.useRef(null);$.useImperativeHandle(t,()=>({nativeElement:g.current}));let _=()=>g.current?.ownerDocument||window,v=Rt(e=>{h(oa(e.target)>=s)});(0,$.useEffect)(()=>{let e=(l||_)();return v({target:e}),e?.addEventListener(`scroll`,v),()=>{v.cancel(),e?.removeEventListener(`scroll`,v)}},[l]);let y=e=>{ca(0,{getContainer:l||_,duration:d}),u?.(e)},{getPrefixCls:b}=(0,$.useContext)(Vt),x=b(cU,r),C=b(),w={prefixCls:x,icon:p,type:a,shape:(0,$.useContext)(rU)?.shape||o,...f};return $.createElement(wi,{visible:m,motionName:`${C}-fade`},({className:e},t)=>$.createElement(lU,{ref:S(g,t),...w,onClick:y,className:X(i,e)}))}),fU=e=>{let{prefixCls:t,className:n,style:r,classNames:i,styles:a,rootClassName:o,shape:s=`circle`,type:c=`default`,placement:l,icon:u=$.createElement(k,null),closeIcon:d,trigger:f,children:p,onOpenChange:m,open:h,onClick:g,..._}=e,{direction:y,getPrefixCls:b,closeIcon:x,classNames:S,styles:C,className:w,style:T}=Wt(`floatButtonGroup`),E=d??x??$.createElement(ne,null),D=b(cU,t),O=la(D),[A,j]=sU(D,O),M=`${D}-group`,N=f&&[`click`,`hover`].includes(f),[P]=vc(`FloatButton`,r?.zIndex),F=$.useRef(null),I=[`top`,`left`,`right`,`bottom`].includes(l)?l:`top`,[L,R]=v(!1,h),z=f===`hover`,B=f===`click`,V=J(e=>{L!==e&&(R(e),m?.(e))}),H=()=>{z&&V(!0)},U=()=>{z&&V(!1)},W=e=>{B&&V(!L),g?.(e)};$.useEffect(()=>{if(B){let e=e=>{F.current?.contains(e.target)||V(!1)};return document.addEventListener(`click`,e,{capture:!0}),()=>document.removeEventListener(`click`,e,{capture:!0})}},[B]);let G=s===`circle`,ee={...e,shape:s,type:c,placement:I},[K,q]=zi([S,i],[C,a],{props:ee}),te=$.useMemo(()=>({shape:s,individual:G,classNames:{root:K.item,icon:K.itemIcon,content:K.itemContent},styles:{root:q.item,icon:q.itemIcon,content:q.itemContent}}),[s,G,K,q]),re=$.useMemo(()=>({...te,individual:!0,classNames:{root:K.trigger,icon:K.triggerIcon,content:K.triggerContent},styles:{root:q.trigger,icon:q.triggerIcon,content:q.triggerContent}}),[te,K,q]),ie,ae=`${M}-list`,oe=e=>{let t=I===`top`||I===`bottom`,n={className:X(ae,K.list,e),style:q.list};return ie=G?$.createElement(nU,{vertical:t,...n},p):$.createElement(BH.Compact,{vertical:t,...n},p),ie};return $.createElement(rU.Provider,{value:te},$.createElement(`div`,{className:X(M,A,j,O,w,K.root,n,o,{[`${M}-rtl`]:y===`rtl`,[`${M}-individual`]:G,[`${M}-${I}`]:N,[`${M}-menu-mode`]:N}),style:{...T,zIndex:P,...q.root,...r},ref:F,onMouseEnter:H,onMouseLeave:U},N?$.createElement(wi,{visible:L,motionName:`${ae}-motion`},({className:e})=>oe(e)):oe(),N&&$.createElement(rU.Provider,{value:re},$.createElement(lU,{type:c,icon:L?E:u,"aria-label":e[`aria-label`],className:`${M}-trigger`,onClick:W,..._}))))},pU=({backTop:e,...t})=>e?$.createElement(dU,{...t,visibilityHeight:0}):$.createElement(lU,{...t});lU.BackTop=dU,lU.Group=fU,lU._InternalPanelDoNotUseOrYouWillBeFired=({className:e,items:t,classNames:n,styles:r,prefixCls:i,...a})=>{let{getPrefixCls:o}=$.useContext(Vt),s=`${o(cU,i)}-pure`;return t?$.createElement(fU,{className:X(e,s),classNames:n,styles:r,...a},t.map((e,t)=>$.createElement(pU,{key:t,...e}))):$.createElement(pU,{className:X(e,s),classNames:n,styles:r,...a})};var mU=lU;function hU(e){let[t,n]=$.useState(e);return $.useEffect(()=>{let t=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(t)}},[e]),t}var gU=e=>{let{componentCls:t,motionDurationFast:n,motionEaseInOut:r}=e,i=`${t}-show-help`,a=`${t}-show-help-item`;return{[i]:{transition:`opacity ${n} ${r}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[a]:{overflow:`hidden`,transition:`${[`height`,`opacity`,`transform`].map(e=>`${e} ${n} ${r}`).join(`, `)} !important`,[`&${a}-appear, &${a}-enter`]:{transform:`translateY(-5px)`,opacity:0,"&-active":{transform:`translateY(0)`,opacity:1}},[`&${a}-leave-active`]:{transform:`translateY(-5px)`}}}}},_U=e=>({legend:{display:`block`,width:`100%`,marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:`inherit`,border:0,borderBottom:`${Q(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, input[type='radio']:focus, input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Q(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:`block`,paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),vU=(e,t)=>{let{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},yU=e=>{let{componentCls:t}=e;return{[t]:{...ur(e),..._U(e),[`${t}-text`]:{display:`inline-block`,paddingInlineEnd:e.paddingSM},"&-small":{...vU(e,e.controlHeightSM)},"&-large":{...vU(e,e.controlHeightLG)}}}},bU=e=>{let{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:i,labelRequiredMarkColor:a,labelColor:o,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:l,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e,[f]=Sr(i,`grid`);return{[t]:{...ur(e),marginBottom:d,verticalAlign:`top`,"&-with-help":{transition:`none`},[`&-hidden,
224
+ &-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":{verticalAlign:`middle`,textWrap:`balance`}},"> label":{position:`relative`,display:`inline-flex`,alignItems:`center`,maxWidth:`100%`,height:c,color:o,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:`top`},[`&${t}-required`]:{"&::before":{display:`inline-block`,marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:`sans-serif`,lineHeight:1,content:`"*"`},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:`none`}}},[`${t}-optional`]:{display:`inline-block`,marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:`none`}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:`help`,writingMode:`horizontal-tb`,marginInlineStart:e.marginXXS},"&::after":{content:`":"`,position:`relative`,marginBlock:0,marginInlineStart:l,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:`"\\a0"`}}},[`${t}-control`]:{[f(`display`)]:`flex`,flexDirection:`column`,flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:`100%`},"&-input":{position:`relative`,display:`flex`,alignItems:`center`,minHeight:e.controlHeight,"&-content":{flex:`auto`,maxWidth:`100%`,[`&:has(> ${i}-switch:only-child, > ${i}-rate:only-child)`]:{display:`flex`,alignItems:`center`}}}},[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:Su,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:`none`,"&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}},xU=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:`initial`,textAlign:`start`,"> label":{margin:0,"&::after":{visibility:`hidden`}}}),SU=e=>{let{antCls:t,formItemCls:n}=e;return{[`${n}-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`}},[`${t}-col-24${n}-label,
225
+ ${t}-col-xl-24${n}-label`]:xU(e)}}},CU=e=>{let{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:`flex`,flexWrap:`wrap`,[`${n}-inline`]:{flex:`none`,marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:`nowrap`},[`> ${n}-label,
226
+ > ${n}-control`]:{display:`inline-block`,verticalAlign:`top`},[`> ${n}-label`]:{flex:`none`},[`${t}-text`]:{display:`inline-block`},[`${n}-has-feedback`]:{display:`inline-block`}}}}},wU=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:xU(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:`wrap`,[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:`0 0 100%`,maxWidth:`100%`}}}}}},TU=e=>{let{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:`column`},[`${n}-label > label`]:{height:`auto`},[`${n}-control`]:{width:`100%`},[`${n}-label,
227
+ ${r}-col-24${n}-label,
228
+ ${r}-col-xl-24${n}-label`]:xU(e)},[`@media (max-width: ${Q(e.screenXSMax)})`]:[wU(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:xU(e)}}}],[`@media (max-width: ${Q(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:xU(e)}}},[`@media (max-width: ${Q(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:xU(e)}}},[`@media (max-width: ${Q(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:xU(e)}}}}},EU=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}),DU=(e,t)=>wn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),OU=yr(`Form`,(e,{rootPrefixCls:t})=>{let n=DU(e,t);return[yU(n),bU(n),gU(n),SU(n),CU(n),TU(n),Zl(n),Su]},EU,{order:-1e3}),kU=[];function AU(e,t,n,r=0){return{key:typeof e==`string`?e:`${t}-${r}`,error:e,errorStatus:n}}var jU=({help:e,helpStatus:t,errors:n=kU,warnings:r=kU,className:i,fieldId:a,onVisibleChanged:o})=>{let{prefixCls:s}=$.useContext(fm),{classNames:c,styles:l}=$.useContext(lm),u=`${s}-item-explain`,d=la(s),[f,p]=OU(s,d),m=$.useMemo(()=>yl(s),[s]),h=hU(n),g=hU(r),_=$.useMemo(()=>Ti(e)?[AU(e,`help`,t)]:[].concat(Lt(h.map((e,t)=>AU(e,`error`,`error`,t))),Lt(g.map((e,t)=>AU(e,`warning`,`warning`,t)))),[e,t,h,g]),v=$.useMemo(()=>{let e={};return _.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),_.map((t,n)=>({...t,key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[_]),y={};return a&&(y.id=`${a}_help`),$.createElement(wi,{motionDeadline:m.motionDeadline,motionName:`${s}-show-help`,visible:!!v.length,onVisibleChanged:o},e=>{let{className:t,style:n}=e;return $.createElement(`div`,{...y,className:X(u,t,c?.help,p,d,i,f),style:{...l?.help,...n}},$.createElement(Ci,{keys:v,...yl(s),motionName:`${s}-show-help-item`,component:!1},e=>{let{key:t,error:n,errorStatus:r,className:i,style:a}=e;return $.createElement(`div`,{key:t,className:X(i,c?.helpItem,{[`${u}-${r}`]:r}),style:{...l?.helpItem,...a}},n)}))})},MU=$.forwardRef((e,t)=>{let n=$.useContext(Vo),{getPrefixCls:r,direction:i,requiredMark:a,colon:o,scrollToFirstError:s,className:c,style:l,styles:u,classNames:d,tooltip:f,labelAlign:p}=Wt(`form`),{prefixCls:m,className:h,rootClassName:g,size:_,disabled:v=n,form:y,colon:b,labelAlign:x,labelWrap:S,labelCol:C,wrapperCol:w,layout:T=`horizontal`,scrollToFirstError:E,requiredMark:D,onFinishFailed:O,name:k,style:A,feedbackIcons:j,variant:M,classNames:N,styles:P,tooltip:F,...I}=e,L=jl(_),R=$.useContext(ua),z=$.useMemo(()=>D===void 0?a===void 0?!0:a:D,[D,a]),B=b??o,V=x??p,H={...f,...F},U=r(`form`,m),W=la(U),[G,ee]=OU(U,W),K={...e,size:L,disabled:v,layout:T,colon:B,requiredMark:z},[q,te]=zi([d,N],[u,P],{props:K}),ne=X(U,`${U}-${T}`,{[`${U}-hide-required-mark`]:z===!1,[`${U}-rtl`]:i===`rtl`,[`${U}-large`]:L===`large`,[`${U}-small`]:L===`small`},ee,W,G,c,h,g,q.root),[re]=oN(y),{__INTERNAL__:J}=re;J.name=k;let ie=$.useMemo(()=>({name:k,labelAlign:V,labelCol:C,labelWrap:S,wrapperCol:w,layout:T,colon:B,requiredMark:z,itemRef:J.itemRef,form:re,feedbackIcons:j,tooltip:H,classNames:q,styles:te}),[k,V,C,w,T,B,z,re,j,q,te,H]),ae=$.useRef(null);$.useImperativeHandle(t,()=>({...re,nativeElement:ae.current?.nativeElement}));let oe=(e,t)=>{if(e){let n={block:`nearest`};Oi(e)&&(n={...n,...e}),re.scrollToField(t,n)}},se=e=>{if(O?.(e),e.errorFields.length){let t=e.errorFields[0].name;if(E!==void 0){oe(E,t);return}s!==void 0&&oe(s,t)}};return $.createElement(hm.Provider,{value:M},$.createElement(Ho,{disabled:v},$.createElement(Uo.Provider,{value:L},$.createElement(dm,{validateMessages:R},$.createElement(lm.Provider,{value:ie},$.createElement(mm,{status:!0},$.createElement(cm,{id:k,...I,name:k,onFinishFailed:se,form:re,ref:ae,style:{...te?.root,...l,...A},className:ne})))))))}),NU=e=>{if(ki(e))return e;let t=Je(e);return t.length<=1?t[0]:t},PU=()=>{let{status:e,errors:t=[],warnings:n=[]}=$.useContext(pm);return{status:e,errors:t,warnings:n}};PU.Context=pm;function FU(e){let[t,n]=$.useState(e),r=$.useRef(null),i=$.useRef([]),a=$.useRef(!1);$.useEffect(()=>(a.current=!1,()=>{a.current=!0,Y.cancel(r.current),r.current=null}),[]);function o(e){a.current||(r.current===null&&(i.current=[],r.current=Y(()=>{r.current=null,n(e=>{let t=e;return i.current.forEach(e=>{t=e(t)}),t})})),i.current.push(e))}return[t,o]}var IU=()=>{let{itemRef:e}=$.useContext(lm),t=$.useRef({});return(n,r)=>{let i=r&&Oi(r)&&z(r),a=n.join(`_`);return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=S(e(n),i)),t.current.ref}},LU=e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:`flex`}}}},RU=xr([`Form`,`item-item`],(e,{rootPrefixCls:t})=>LU(DU(e,t))),zU=24,BU=e=>{let{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:a,errors:o,warnings:s,_internalItemRender:c,extra:l,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p,label:m}=e,h=`${t}-item`,g=$.useContext(lm),{classNames:_,styles:v}=g,y=$.useMemo(()=>{let e={...i||g.wrapperCol||{}};return m===null&&!r&&!i&&g.labelCol&&[void 0].concat(Lt(Kv)).forEach(t=>{let n=t?[t]:[],r=oe(g.labelCol,n),i=Oi(r)?r:{},a=oe(e,n),o=Oi(a)?a:{};`span`in i&&!(`offset`in o)&&i.span<zU&&(e=ge(e,[].concat(n,[`offset`]),i.span))}),e},[i,g.wrapperCol,g.labelCol,m,r]),b=X(`${h}-control`,y.className),x=$.useMemo(()=>{let{labelCol:e,wrapperCol:t,...n}=g;return n},[g]),S=$.useRef(null),[C,w]=$.useState(0);Pe(()=>{l&&S.current?w(S.current.clientHeight):w(0)},[l]);let T=$.createElement(`div`,{className:`${h}-control-input`},$.createElement(`div`,{className:X(`${h}-control-input-content`,_?.content),style:v?.content},a)),E=$.useMemo(()=>({prefixCls:t,status:n}),[t,n]),D=f!==null||o.length||s.length?$.createElement(fm.Provider,{value:E},$.createElement(jU,{fieldId:d,errors:o,warnings:s,help:u,helpStatus:n,className:`${h}-explain-connected`,onVisibleChanged:p})):null,O={};d&&(O.id=`${d}_extra`);let k=l?$.createElement(`div`,{...O,className:X(`${h}-extra`,_?.extra),style:v?.extra,ref:S},l):null,A=D||k?$.createElement(`div`,{className:`${h}-additional`,style:f?{minHeight:f+C}:{}},D,k):null,j=c&&c.mark===`pro_table_render`&&c.render?c.render(e,{input:T,errorList:D,extra:k}):$.createElement($.Fragment,null,T,A);return $.createElement(lm.Provider,{value:x},$.createElement(MR,{...y,className:b},j),$.createElement(RU,{prefixCls:t}))},VU=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:i,colon:a,required:o,requiredMark:s,tooltip:c,vertical:l})=>{let[u]=ja(`Form`),{labelAlign:d,labelCol:f,labelWrap:p,colon:m,classNames:h,styles:g,tooltip:_}=$.useContext(lm);if(!t)return null;let v=r||f||{},y=i||d,b=`${e}-item-label`,x=X(b,y===`left`&&`${b}-left`,v.className,{[`${b}-wrap`]:!!p}),S=t,C=a===!0||m!==!1&&a!==!1;C&&!l&&typeof t==`string`&&t.trim()&&(S=t.replace(/[:|:]\s*$/,``));let w=iU(c,_);if(w){let t=$.createElement(Ny,{...w},$.createElement(`span`,{className:`${e}-item-tooltip`,onClick:e=>{e.preventDefault()},tabIndex:-1},w.icon||w.children||$.createElement(be,null)));S=$.createElement($.Fragment,null,S,t)}let T=s===`optional`,E=ki(s),D=s===!1;E?S=s(S,{required:!!o}):T&&!o&&(S=$.createElement($.Fragment,null,S,$.createElement(`span`,{className:`${e}-item-optional`,title:``},u?.optional||wa.Form?.optional)));let O;D?O=`hidden`:(T||E)&&(O=`optional`);let k=X(h?.label,{[`${e}-item-required`]:o,[`${e}-item-required-mark-${O}`]:O,[`${e}-item-no-colon`]:!C});return $.createElement(MR,{...v,className:x},$.createElement(`label`,{htmlFor:n,className:k,style:g?.label,title:typeof t==`string`?t:``},S))},HU={success:L,warning:re,error:ie,validating:Ne};function UU({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:i,prefixCls:a,meta:o,noStyle:s,name:c}){let l=`${a}-item`,{feedbackIcons:u}=$.useContext(lm),d=rN(t,n,o,null,!!r,i),{isFormItemInput:f,status:p,hasFeedback:m,feedbackIcon:h,name:g}=$.useContext(pm),_=$.useMemo(()=>{let e;if(r){let i=r!==!0&&r.icons||u,a=d&&i?.({status:d,errors:t,warnings:n})?.[d],o=d?HU[d]:null;e=a!==!1&&o?$.createElement(`span`,{className:X(`${l}-feedback-icon`,`${l}-feedback-icon-${d}`)},a||$.createElement(o,null)):null}let i={status:d||``,errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:e,isFormItemInput:!0,name:c};return s&&(i.status=(d??p)||``,i.isFormItemInput=f,i.hasFeedback=!!(r??m),i.feedbackIcon=r===void 0?h:i.feedbackIcon,i.name=c??g),i},[d,r,s,f,p]);return $.createElement(pm.Provider,{value:_},e)}function WU(e){let{prefixCls:t,className:n,rootClassName:r,style:i,help:a,errors:o,warnings:s,validateStatus:c,meta:l,hasFeedback:d,hidden:f,children:p,fieldId:m,required:h,isRequired:g,onSubItemMetaChange:_,layout:v,name:y,...b}=e,x=`${t}-item`,{requiredMark:S,layout:C}=$.useContext(lm),w=v||C,T=w===`vertical`,E=$.useRef(null),D=hU(o),O=hU(s),k=Ti(a),A=!!(k||o.length||s.length),j=!!E.current&&M(E.current),[N,P]=$.useState(null);Pe(()=>{if(A&&E.current){let e=getComputedStyle(E.current);P(Number.parseInt(e.marginBottom,10))}},[A,j]);let F=e=>{e||P(null)},I=((e=!1)=>rN(e?D:l.errors,e?O:l.warnings,l,``,!!d,c))(),L=X(x,n,r,{[`${x}-with-help`]:k||D.length||O.length,[`${x}-has-feedback`]:I&&d,[`${x}-has-success`]:I===`success`,[`${x}-has-warning`]:I===`warning`,[`${x}-has-error`]:I===`error`,[`${x}-is-validating`]:I===`validating`,[`${x}-hidden`]:f,[`${x}-${w}`]:w});return $.createElement(`div`,{className:L,style:i,ref:E},$.createElement(FR,{className:`${x}-row`,...u(b,`_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`.split(`.`))},$.createElement(VU,{htmlFor:m,...e,requiredMark:S,required:h??g,prefixCls:t,vertical:T}),$.createElement(BU,{...e,...l,errors:D,warnings:O,prefixCls:t,status:I,help:a,marginBottom:N,onErrorVisibleChanged:F},$.createElement(um.Provider,{value:_},$.createElement(UU,{prefixCls:t,meta:l,errors:l.errors,warnings:l.warnings,hasFeedback:d,validateStatus:I,name:y},p)))),!!N&&$.createElement(`div`,{className:`${x}-margin-offset`,style:{marginBottom:-N}}))}var GU=`__SPLIT__`;function KU(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{let r=e[n],i=t[n];return r===i||ki(r)||ki(i)})}var qU=$.memo(e=>e.children,(e,t)=>KU(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));function JU(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function YU(e){let{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:o,rules:s,children:l,required:u,label:d,messageVariables:f,trigger:p=`onChange`,validateTrigger:m,hidden:h,help:g,layout:_}=e,{getPrefixCls:v}=$.useContext(Vt),{name:y}=$.useContext(lm),b=NU(l),x=ki(b),S=$.useContext(um),{validateTrigger:C}=$.useContext(kf),w=Ti(m)?m:C,T=Ti(t),D=v(`form`,a),O=la(D),[k,A]=OU(D,O);gt(`Form.Item`);let j=$.useContext(Af),M=$.useRef(null),[N,P]=FU({}),[F,I]=E(()=>JU()),L=e=>{let t=j?.getKey(e.name);if(I(e.destroy?JU():e,!0),n&&g!==!1&&S){let n=e.name;if(e.destroy)n=M.current||n;else if(t!==void 0){let[e,r]=t;n=[e].concat(Lt(r)),M.current=n}S(e,n)}},R=(e,t)=>{P(n=>{let r={...n},i=[].concat(Lt(e.name.slice(0,-1)),Lt(t)).join(GU);return e.destroy?delete r[i]:r[i]=e,r})},[z,B]=$.useMemo(()=>{let e=Lt(F.errors),t=Lt(F.warnings);return Object.values(N).forEach(n=>{e.push.apply(e,Lt(n.errors||[])),t.push.apply(t,Lt(n.warnings||[]))}),[e,t]},[N,F.errors,F.warnings]),V=IU();function H(i,a,o){return n&&!h?$.createElement(UU,{prefixCls:D,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:z,warnings:B,noStyle:!0,name:t},i):$.createElement(WU,{key:`row`,...e,className:X(r,A,O,k),prefixCls:D,fieldId:a,isRequired:o,errors:z,warnings:B,meta:F,onSubItemMetaChange:R,layout:_,name:t},i)}if(!T&&!x&&!i)return H(b);let U={};return typeof d==`string`?U.label=d:t&&(U.label=String(t)),f&&(U={...U,...f}),$.createElement(Jp,{...e,messageVariables:U,trigger:p,validateTrigger:w,onMetaChange:L},(n,r,a)=>{let l=tN(t).length&&r?r.name:[],d=nN(l,y),f=u===void 0?s?.some(e=>{if(Oi(e)&&e.required&&!e.warningOnly)return!0;if(ki(e)){let t=e(a);return t?.required&&!t?.warningOnly}return!1}):u,m={...n},h=null;if(Array.isArray(b)&&T)h=b;else if(!(x&&(!(o||i)||T))&&!(i&&!x&&!T))if($.isValidElement(b)){let t={...b.props,...m};if(t.id||(t.id=d),g||z.length>0||B.length>0||e.extra){let n=[];(g||z.length>0)&&n.push(`${d}_help`),e.extra&&n.push(`${d}_extra`),t[`aria-describedby`]=n.join(` `)}z.length>0&&(t[`aria-invalid`]=`true`),f&&(t[`aria-required`]=`true`),c(b)&&(t.ref=V(l,b)),new Set([].concat(Lt(tN(p)),Lt(tN(w)))).forEach(e=>{t[e]=(...t)=>{m[e]?.(...t),b.props[e]?.(...t)}});let n=[t[`aria-required`],t[`aria-invalid`],t[`aria-describedby`]];h=$.createElement(qU,{control:m,update:b,childProps:n},Io(b,t))}else h=x&&(o||i)&&!T?b(a):b;return H(h,d,f)})}var XU=YU;XU.useStatus=PU;var ZU=({prefixCls:e,children:t,...n})=>{let{getPrefixCls:r}=$.useContext(Vt),i=r(`form`,e),a=$.useMemo(()=>({prefixCls:i,status:`error`}),[i]);return $.createElement(Yp,{...n},(e,n,r)=>$.createElement(fm.Provider,{value:a},t(e.map(e=>({...e,fieldKey:e.key})),n,{errors:r.errors,warnings:r.warnings})))};function QU(){let{form:e}=$.useContext(lm);return e}var $U=MU;$U.Item=XU,$U.List=ZU,$U.ErrorList=jU,$U.useForm=oN,$U.useFormInstance=QU,$U.useWatch=sm,$U.Provider=dm;var eW=$.createContext(null);function tW(e){return new Promise(t=>{if(!e){t(!1);return}let n=document.createElement(`img`);n.onerror=()=>t(!1),n.onload=()=>t(!0),n.src=e})}function nW(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}var rW={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function iW(e,t,n,r){let i=(0,$.useRef)(null),a=(0,$.useRef)([]),[o,s]=(0,$.useState)(rW),c=e=>{s(rW),tt(rW,o)||r?.({transform:rW,action:e})},l=(e,t)=>{i.current===null&&(a.current=[],i.current=Y(()=>{s(e=>{let n=e;return a.current.forEach(e=>{n={...n,...e}}),i.current=null,r?.({transform:n,action:t}),n})})),a.current.push({...o,...e})};return{transform:o,resetTransform:c,updateTransform:l,dispatchZoomChange:(r,i,a,s,c)=>{let{width:u,height:d,offsetWidth:f,offsetHeight:p,offsetLeft:m,offsetTop:h}=e.current,g=r,_=o.scale*r;_>n?(_=n,g=n/o.scale):_<t&&(_=c?_:t,g=_/o.scale);let v=a??innerWidth/2,y=s??innerHeight/2,b=g-1,x=b*u*.5,S=b*d*.5,C=b*(v-o.x-m),w=b*(y-o.y-h),T=o.x-(C-x),E=o.y-(w-S);if(r<1&&_===1){let e=f*_,t=p*_,{width:n,height:r}=nW();e<=n&&t<=r&&(T=0,E=0)}l({x:T,y:E,scale:_},i)}}}function aW(e,t,n,r){let i=t+n,a=(n-r)/2;if(n>r){if(t>0)return{[e]:a};if(t<0&&i<r)return{[e]:-a}}else if(t<0||i>r)return{[e]:t<0?a:-a};return{}}function oW(e,t,n,r){let{width:i,height:a}=nW(),o=null;return e<=i&&t<=a?o={x:0,y:0}:(e>i||t>a)&&(o={...aW(`x`,n,e,i),...aW(`y`,r,t,a)}),o}function sW(e,t,n,r,i,a,o){let{rotate:s,scale:c,x:l,y:u}=i,[d,f]=(0,$.useState)(!1),p=(0,$.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),m=e=>{!t||e.button!==0||(e.preventDefault(),e.stopPropagation(),p.current={diffX:e.pageX-l,diffY:e.pageY-u,transformX:l,transformY:u},f(!0))},h=e=>{n&&d&&a({x:e.pageX-p.current.diffX,y:e.pageY-p.current.diffY},`move`)},g=()=>{if(n&&d){f(!1);let{transformX:t,transformY:n}=p.current;if(!(l!==t&&u!==n))return;let r=e.current.offsetWidth*c,i=e.current.offsetHeight*c,{left:o,top:d}=e.current.getBoundingClientRect(),m=s%180!=0,h=oW(m?i:r,m?r:i,o,d);h&&a({...h},`dragRebound`)}};return(0,$.useEffect)(()=>{if(t){window.addEventListener(`mouseup`,g,!1),window.addEventListener(`mousemove`,h,!1);try{window.top!==window.self&&(window.top.addEventListener(`mouseup`,g,!1),window.top.addEventListener(`mousemove`,h,!1))}catch(e){`${e}`}}return()=>{window.removeEventListener(`mouseup`,g),window.removeEventListener(`mousemove`,h);try{window.top?.removeEventListener(`mouseup`,g),window.top?.removeEventListener(`mousemove`,h)}catch{}}},[n,d,l,u,s,t]),{isMoving:d,onMouseDown:m,onMouseMove:h,onMouseUp:g,onWheel:e=>{if(!n||e.deltaY==0)return;let t=Math.abs(e.deltaY/100),i=1+Math.min(t,1)*r;e.deltaY>0&&(i=1/i),o(i,`wheel`,e.clientX,e.clientY)}}}function cW({src:e,isCustomPlaceholder:t,fallback:n}){let[r,i]=(0,$.useState)(t?`loading`:`normal`),a=(0,$.useRef)(!1),o=r===`error`;(0,$.useEffect)(()=>{let t=!0;return tW(e).then(e=>{!e&&t&&i(`error`)}),()=>{t=!1}},[e]),(0,$.useEffect)(()=>{t&&!a.current?i(`loading`):o&&i(`normal`)},[e]);let s=()=>{i(`normal`)};return[e=>{a.current=!1,r===`loading`&&e?.complete&&(e.naturalWidth||e.naturalHeight)&&(a.current=!0,s())},o&&n?{src:n}:{onLoad:s,src:e},r]}function lW(e,t){let n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function uW(e,t,n,r){let i=lW(e,n),a=lW(t,r);if(i===0&&a===0)return[e.x,e.y];let o=i/(i+a);return[e.x+o*(t.x-e.x),e.y+o*(t.y-e.y)]}function dW(e,t,n,r,i,a,o){let{rotate:s,scale:c,x:l,y:u}=i,[d,f]=(0,$.useState)(!1),p=(0,$.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:`none`}),m=e=>{p.current={...p.current,...e}};return(0,$.useEffect)(()=>{let e=e=>{e.preventDefault()};return n&&t&&window.addEventListener(`touchmove`,e,{passive:!1}),()=>{window.removeEventListener(`touchmove`,e)}},[n,t]),{isTouching:d,onTouchStart:e=>{if(!t)return;e.stopPropagation(),f(!0);let{touches:n=[]}=e;n.length>1?m({point1:{x:n[0].clientX,y:n[0].clientY},point2:{x:n[1].clientX,y:n[1].clientY},eventType:`touchZoom`}):m({point1:{x:n[0].clientX-l,y:n[0].clientY-u},eventType:`move`})},onTouchMove:e=>{let{touches:t=[]}=e,{point1:n,point2:r,eventType:i}=p.current;if(t.length>1&&i===`touchZoom`){let e={x:t[0].clientX,y:t[0].clientY},i={x:t[1].clientX,y:t[1].clientY},[a,s]=uW(n,r,e,i);o(lW(e,i)/lW(n,r),`touchZoom`,a,s,!0),m({point1:e,point2:i,eventType:`touchZoom`})}else i===`move`&&(a({x:t[0].clientX-n.x,y:t[0].clientY-n.y},`move`),m({eventType:`move`}))},onTouchEnd:()=>{if(!n)return;if(d&&f(!1),m({eventType:`none`}),r>c)return a({x:0,y:0,scale:r},`touchZoom`);let t=e.current.offsetWidth*c,i=e.current.offsetHeight*c,{left:o,top:l}=e.current.getBoundingClientRect(),u=s%180!=0,p=oW(u?i:t,u?t:i,o,l);p&&a({...p},`dragRebound`)}}}function fW(e){let{prefixCls:t,icon:n,onClick:r,className:i,style:a}=e;return $.createElement(`button`,{className:X(`${t}-close`,i),style:a,onClick:r},n)}function pW(e){let{prefixCls:t,showProgress:n,current:r,count:i,showSwitch:a,classNames:o,styles:s,icons:c,image:l,transform:u,countRender:d,actionsRender:f,scale:p,minScale:m,maxScale:h,onActive:g,onFlipY:_,onFlipX:v,onRotateLeft:y,onRotateRight:b,onZoomOut:x,onZoomIn:S,onClose:C,onReset:w}=e,{left:T,right:E,prev:D,next:O,flipY:k,flipX:A,rotateLeft:j,rotateRight:M,zoomOut:N,zoomIn:P}=c,F=n&&$.createElement(`div`,{className:`${t}-progress`},d?d(r+1,i):$.createElement(`bdi`,null,`${r+1} / ${i}`)),I=`${t}-actions-action`,L=({type:e,disabled:t,onClick:n,icon:r})=>$.createElement(`button`,{type:`button`,key:e,className:X(I,`${I}-${e}`,{[`${I}-disabled`]:!!t}),onClick:n,disabled:!!t,"aria-label":e},r),R=a?L({icon:D??T,onClick:()=>g(-1),type:`prev`,disabled:r===0}):void 0,z=a?L({icon:O??E,onClick:()=>g(1),type:`next`,disabled:r===i-1}):void 0,B=L({icon:k,onClick:_,type:`flipY`}),V=L({icon:A,onClick:v,type:`flipX`}),H=L({icon:j,onClick:y,type:`rotateLeft`}),U=L({icon:M,onClick:b,type:`rotateRight`}),W=L({icon:N,onClick:x,type:`zoomOut`,disabled:p<=m}),G=L({icon:P,onClick:S,type:`zoomIn`,disabled:p===h}),ee=$.createElement(`div`,{className:X(`${t}-actions`,o.actions),style:s.actions},B,V,H,U,W,G);return $.createElement(`div`,{className:X(`${t}-footer`,o.footer),style:s.footer},F,f?f(ee,{icons:{prevIcon:R,nextIcon:z,flipYIcon:B,flipXIcon:V,rotateLeftIcon:H,rotateRightIcon:U,zoomOutIcon:W,zoomInIcon:G},actions:{onActive:g,onFlipY:_,onFlipX:v,onRotateLeft:y,onRotateRight:b,onZoomOut:x,onZoomIn:S,onReset:w,onClose:C},transform:u,current:r,total:i,image:l}):ee)}function mW(e){let{prefixCls:t,onActive:n,current:r,count:i,icons:{left:a,right:o,prev:s,next:c}}=e,l=`${t}-switch`,u=r===0,d=r===i-1;return $.createElement($.Fragment,null,$.createElement(`button`,{className:X(l,`${l}-prev`,{[`${l}-disabled`]:u}),onClick:()=>n(-1),disabled:u},s??a),$.createElement(`button`,{type:`button`,className:X(l,`${l}-next`,{[`${l}-disabled`]:d}),onClick:()=>n(1),disabled:d},c??o))}function hW(){return hW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hW.apply(this,arguments)}var gW=({fallback:e,src:t,imgRef:n,...r})=>{let[i,a]=cW({src:t,fallback:e});return $.createElement(`img`,hW({ref:e=>{n.current=e,i(e)}},r,a))},_W=e=>{let{prefixCls:t,rootClassName:n,src:r,alt:i,imageInfo:a,fallback:o,movable:s=!0,onClose:c,open:l,afterOpenChange:u,maskClosable:d=!0,icons:p={},closeIcon:m,getContainer:h,current:g=0,count:_=1,countRender:v,scaleStep:y=.5,minScale:b=1,maxScale:x=50,motionName:S=`fade`,imageRender:C,imgCommonProps:w,actionsRender:T,onTransform:E,onChange:D,classNames:O={},styles:k={},mousePosition:j,zIndex:M,focusTrap:N=!0}=e,P=(0,$.useRef)(),F=(0,$.useRef)(null),I=(0,$.useRef)(null),L=(0,$.useContext)(eW),R=L&&_>1,z=L&&_>=1,[B,V]=(0,$.useState)(!0),{transform:H,resetTransform:U,updateTransform:W,dispatchZoomChange:G}=iW(P,b,x,E),{isMoving:ee,onMouseDown:K,onWheel:q}=sW(P,s,l,y,H,W,G),{isTouching:te,onTouchStart:ne,onTouchMove:re,onTouchEnd:ie}=dW(P,s,l,b,H,W,G),{rotate:ae,scale:oe}=H;(0,$.useEffect)(()=>{B||V(!0)},[B]),(0,$.useEffect)(()=>{l||U(`close`)},[l]);let se=$.createElement(gW,hW({},w,{width:e.width,height:e.height,imgRef:P,className:`${t}-img`,alt:i,style:{transform:`translate3d(${H.x}px, ${H.y}px, 0) scale3d(${H.flipX?`-`:``}${oe}, ${H.flipY?`-`:``}${oe}, 1) rotate(${ae}deg)`,transitionDuration:(!B||te)&&`0s`},fallback:o,src:r,onWheel:q,onMouseDown:K,onDoubleClick:e=>{l&&(oe===1?G(1+y,`doubleClick`,e.clientX,e.clientY):W({x:0,y:0,scale:1},`doubleClick`))},onTouchStart:ne,onTouchMove:re,onTouchEnd:ie,onTouchCancel:ie})),ce={url:r,alt:i,...a},le=()=>{G(1+y,`zoomIn`)},Y=()=>{G(1/(1+y),`zoomOut`)},ue=()=>{W({rotate:ae+90},`rotateRight`)},de=()=>{W({rotate:ae-90},`rotateLeft`)},fe=()=>{W({flipX:!H.flipX},`flipX`)},pe=()=>{W({flipY:!H.flipY},`flipY`)},me=()=>{U(`reset`)},he=e=>{let t=g+e;t>=0&&t<=_-1&&(V(!1),U(e<0?`prev`:`next`),D?.(t,g))},ge=J(e=>{if(l){let{keyCode:t}=e;R&&(t===f.LEFT?he(-1):t===f.RIGHT&&he(1))}});(0,$.useEffect)(()=>{if(l)return window.addEventListener(`keydown`,ge),()=>{window.removeEventListener(`keydown`,ge)}},[l]);let[_e,ve]=(0,$.useState)(!1);$.useEffect(()=>{l&&ve(!0)},[l]);let ye=e=>{e||(ve(!1),I.current?.focus?.(),I.current=null),u?.(e)},[be,xe]=(0,$.useState)(!1);Pe(()=>{l&&xe(!0)},[l]);let Se=({top:e})=>{e&&c?.()};Pe(()=>{l&&(I.current=document.activeElement)},[l]),A(N&&l&&be,()=>F.current);let Ce={...k.body};return j&&(Ce.transformOrigin=`${j.x}px ${j.y}px`),$.createElement(Qa,{open:be&&l,autoDestroy:!1,getContainer:h,autoLock:_e,onEsc:Se},$.createElement(wi,{motionName:S,visible:be&&l,motionAppear:!0,motionEnter:!0,motionLeave:!0,onVisibleChanged:ye},({className:e,style:r})=>{let a={...k.root,...r};return M&&(a.zIndex=M),$.createElement(`div`,{ref:F,className:X(t,n,O.root,e,{[`${t}-movable`]:s,[`${t}-moving`]:ee}),style:a,role:`dialog`,"aria-modal":`true`,"aria-label":i,tabIndex:-1},$.createElement(`div`,{className:X(`${t}-mask`,O.mask),style:k.mask,onClick:d?c:void 0}),$.createElement(`div`,{className:X(`${t}-body`,O.body),style:Ce},C?C(se,{transform:H,image:ce,...L?{current:g}:{}}):se),m!==!1&&m!==null&&$.createElement(fW,{prefixCls:t,icon:m===!0?p.close:m||p.close,onClick:c,className:O.close,style:k.close}),R&&$.createElement(mW,{prefixCls:t,current:g,count:_,icons:p,onActive:he}),$.createElement(pW,{prefixCls:t,showProgress:z,current:g,count:_,showSwitch:R,classNames:O,styles:k,image:ce,transform:H,icons:p,countRender:v,actionsRender:T,scale:oe,minScale:b,maxScale:x,onActive:he,onFlipY:pe,onFlipX:fe,onRotateLeft:de,onRotateRight:ue,onZoomOut:Y,onZoomIn:le,onClose:c,onReset:me}))}))},vW=[`crossOrigin`,`decoding`,`draggable`,`loading`,`referrerPolicy`,`sizes`,`srcSet`,`useMap`,`alt`,`fetchPriority`];function yW(e){let[t,n]=$.useState({}),r=$.useCallback((e,t)=>(n(n=>({...n,[e]:t})),()=>{n(t=>{let n={...t};return delete n[e],n})}),[]);return[$.useMemo(()=>e?e.map(e=>{if(typeof e==`string`)return{data:{src:e}};let t={};return Object.keys(e).forEach(n=>{[`src`,...vW].includes(n)&&(t[n]=e[n])}),{data:t}}):Object.keys(t).reduce((e,n)=>{let{canPreview:r,data:i}=t[n];return r&&e.push({data:i,id:n}),e},[]),[e,t]),r,!!e]}function bW(){return bW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bW.apply(this,arguments)}var xW=({previewPrefixCls:e=`rc-image-preview`,classNames:t,styles:n,children:r,icons:i={},items:a,preview:o,fallback:s})=>{let{open:c,onOpenChange:l,current:u,onChange:d,...f}=o&&typeof o==`object`?o:{},[p,m,h]=yW(a),[g,_]=v(0,u),[y,b]=(0,$.useState)(!1),{src:x,...S}=p[g]?.data||{},[C,w]=v(!!c,c),T=J(e=>{w(e),e!==C&&l?.(e,{current:g})}),[E,D]=(0,$.useState)(null),O=$.useCallback((e,t,n,r)=>{let i=h?p.findIndex(e=>e.data.src===t):p.findIndex(t=>t.id===e);_(i<0?0:i),T(!0),D({x:n,y:r}),b(!0)},[p,h]);$.useEffect(()=>{C?y||_(0):b(!1)},[C]);let k=(e,t)=>{_(e),d?.(e,t)},A=()=>{T(!1),D(null)},j=$.useMemo(()=>({register:m,onPreview:O}),[m,O]);return $.createElement(eW.Provider,{value:j},r,$.createElement(_W,bW({"aria-hidden":!C,open:C,prefixCls:e,onClose:A,mousePosition:E,imgCommonProps:S,src:x,fallback:s,icons:i,current:g,count:p.length,onChange:k},f,{classNames:t?.popup,styles:n?.popup})))},SW=0;function CW(e,t){let[n]=$.useState(()=>(SW+=1,String(SW))),r=$.useContext(eW),i={data:t,canPreview:e};return $.useEffect(()=>{if(r)return r.register(n,i)},[]),$.useEffect(()=>{r&&r.register(n,i)},[e,t]),n}function wW(){return wW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wW.apply(this,arguments)}var TW=e=>{let{prefixCls:t=`rc-image`,previewPrefixCls:n=`${t}-preview`,rootClassName:r,className:i,style:a,classNames:o={},styles:s={},width:c,height:l,src:u,alt:d,placeholder:f,fallback:p,preview:m=!0,onClick:h,onError:g,onKeyDown:_,...y}=e,b=(0,$.useContext)(eW),x=!!m,{src:S,open:C,onOpenChange:w,cover:T,rootClassName:E,...D}=m&&typeof m==`object`?m:{},O=typeof T==`object`&&T.placement&&T.placement||`center`,k=typeof T==`object`&&T.coverNode?T.coverNode:T,[A,j]=v(!!C,C),[M,N]=(0,$.useState)(null),P=e=>{j(e),w?.(e)},F=()=>{P(!1)},I=f&&f!==!0,L=S??u,[R,z,B]=cW({src:u,isCustomPlaceholder:I,fallback:p}),V=(0,$.useMemo)(()=>{let t={};return vW.forEach(n=>{e[n]!==void 0&&(t[n]=e[n])}),t},vW.map(t=>e[t])),H=CW(x,(0,$.useMemo)(()=>({...V,src:L}),[L,V])),U=e=>{let t=e.target.getBoundingClientRect(),n=t.x+t.width/2,r=t.y+t.height/2;b?b.onPreview(H,L,n,r):(N({x:n,y:r}),P(!0)),h?.(e)},W=e=>{if(_?.(e),x&&(e.key===`Enter`||e.key===` `)){e.preventDefault();let t=e.target.getBoundingClientRect(),n=t.x+t.width/2,r=t.y+t.height/2;b?b.onPreview(H,L,n,r):(N({x:n,y:r}),P(!0))}};return $.createElement($.Fragment,null,$.createElement(`div`,wW({},y,{className:X(t,r,o.root,{[`${t}-error`]:B===`error`}),onClick:x?U:h,role:x?`button`:y.role,tabIndex:x&&y.tabIndex==null?0:y.tabIndex,"aria-label":x?y[`aria-label`]??d:y[`aria-label`],onKeyDown:W,style:{width:c,height:l,...s.root}}),$.createElement(`img`,wW({},V,{className:X(`${t}-img`,{[`${t}-img-placeholder`]:f===!0},o.image,i),style:{height:l,...s.image,...a},ref:R},z,{width:c,height:l,onError:g})),B===`loading`&&$.createElement(`div`,{"aria-hidden":`true`,className:`${t}-placeholder`},f),T!==!1&&x&&$.createElement(`div`,{className:X(`${t}-cover`,o.cover,`${t}-cover-${O}`),style:{display:a?.display===`none`?`none`:void 0,...s.cover}},k)),!b&&x&&$.createElement(_W,wW({"aria-hidden":!A,open:A,prefixCls:n,onClose:F,mousePosition:M,src:L,alt:d,imageInfo:{width:c,height:l},fallback:p,imgCommonProps:V},D,{classNames:o?.popup,styles:s?.popup,rootClassName:X(E,r)})))};TW.PreviewGroup=xW;var EW=TW,DW=(e,t,n,r,i,a,o)=>{let[s]=vc(`ImagePreview`,e?.zIndex),[c,l,u]=ic(e?.mask,t?.mask,`${n}-preview`);return $.useMemo(()=>{if(!e)return e;let{cover:d,getContainer:f,closeIcon:p,rootClassName:m}=e,{closeIcon:h}=t??{};return{motionName:bl(`${n}-preview`,`fade`),...e,...o?{cover:d??o}:{},icons:a,getContainer:f??i,zIndex:s,closeIcon:p??h,rootClassName:X(r,m),mask:c,maskClosable:u,blurClassName:l.mask}},[e,t,n,r,i,o,a,s,c,u,l])};function OW(e){return Oi(e)&&!(0,$.isValidElement)(e)}function kW(e){return(0,$.useMemo)(()=>!e||!OW(e)?{}:typeof e.progress==`boolean`?{progressConfig:e.progress?{}:void 0}:{progressConfig:e.progress},[e])}function AW(e){return(0,$.isValidElement)(e)?[e,void 0]:typeof e==`boolean`||Oi(e)?[void 0,e]:[void 0,void 0]}function jW(e){let t=(0,$.useMemo)(()=>typeof e==`boolean`?e?{}:null:Oi(e)?e:{},[e]);return(0,$.useMemo)(()=>{if(!t)return[t,``,``];let{open:e,onOpenChange:n,cover:r,actionsRender:i,visible:a,onVisibleChange:o,rootClassName:s,maskClassName:c,mask:l,forceRender:u,destroyOnClose:d,toolbarRender:f,...p}=t,m;n?m=n:o&&(m=(e,t)=>{let{current:n}=t||{};n===void 0?o(e,!e):o(e,!e,n)});let[h,g]=AW(l);return[{...p,open:e??a,onOpenChange:m,cover:r??h,mask:g,actionsRender:i??f},s,c]},[t])}var MW=new at(`antImageProgressActive`,{"0%":{backgroundPosition:`200% 0`},"100%":{backgroundPosition:`-200% 0`}}),NW=(e,t,n,r=`translate(0%, 0%)`,i=.8)=>new at(e,{"0%":{transform:r,opacity:i},"50%":{transform:t,opacity:n},"100%":{transform:r,opacity:i}}),PW=NW(`antImageInkFlow1`,`translate(15%, -20%) scale(1.25)`,.5),FW=NW(`antImageInkFlow2`,`translate(-18%, 15%) scale(0.85)`,.9,`translate(0%, 0%) scale(1.1)`,.7),IW=NW(`antImageInkFlow3`,`translate(8%, 10%) scale(1.15)`,.8,`translate(0%, 0%) scale(0.85)`,.65),LW=e=>({position:e||`absolute`,inset:0}),RW=e=>{let{componentCls:t,motionDurationSlow:n,colorTextLightSolid:r}=e;return{[t]:{[`${t}-cover`]:{position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,color:r,background:new pe(`#000`).setA(.3).toRgbString(),cursor:`pointer`,opacity:0,transition:`opacity ${n}`},"&:hover, &:focus-visible":{[`${t}-cover`]:{opacity:1}},[`${t}-cover-top`]:{inset:`0 0 auto 0`,justifyContent:`center`},[`${t}-cover-bottom`]:{inset:`auto 0 0 0`,justifyContent:`center`}}}},zW=e=>{let{componentCls:t,motionDurationMid:n,motionEaseInOut:r,progressAnimationDuration:i}=e,a={position:`absolute`,width:`150%`,height:`150%`,left:`-25%`,top:`-25%`,animationTimingFunction:r,animationIterationCount:`infinite`,pointerEvents:`none`,willChange:`transform, opacity`};return{[`${t}-progress-wrapper`]:{position:`relative`,display:`inline-block`,overflow:`hidden`,borderRadius:`inherit`,backgroundColor:e.colorBgBase,backdropFilter:`blur(8px)`,[`${t}-progress-ink-1`]:{...a,background:`radial-gradient(ellipse 65% 55% at 25% 30%, rgba(100, 180, 255, 0.98) 0%, transparent 55%)`,animationName:PW,animationDuration:i,filter:`blur(40px)`,"&::before":{content:`""`,...a,background:`radial-gradient(ellipse 60% 65% at 75% 45%, rgba(180, 140, 255, 0.95) 0%, transparent 50%)`,animationName:FW,animationDuration:`calc(${i} + 2s)`,animationDelay:`-1s`,filter:`blur(45px)`},"&::after":{content:`""`,...a,background:`radial-gradient(ellipse 55% 50% at 50% 70%, rgba(100, 220, 220, 0.9) 0%, transparent 45%)`,animationName:IW,animationDuration:`calc(${i} + 0.5s)`,animationDelay:`-2s`,filter:`blur(38px)`}},[`${t}-progress-ink-2`]:{...a,background:`radial-gradient(ellipse 45% 40% at 60% 20%, rgba(255, 150, 200, 0.88) 0%, transparent 45%)`,animationName:IW,animationDuration:`calc(${i} + 1.5s)`,animationDelay:`-3s`,filter:`blur(42px)`,"&::before":{content:`""`,...a,background:`radial-gradient(ellipse 50% 55% at 20% 75%, rgba(160, 190, 255, 0.88) 0%, transparent 50%)`,animationName:PW,animationDuration:`calc(${i} + 2.5s)`,animationDelay:`-2.5s`,filter:`blur(35px)`}},[`${t}-progress-content`]:{position:`absolute`,top:`50%`,left:0,transform:`translateY(-50%)`,display:`flex`,flexDirection:`column`,alignItems:`center`,width:`100%`,paddingInline:e.paddingLG,textAlign:`center`,fontSize:e.fontSize,color:e.colorTextSecondary,zIndex:1},[`${t}-progress-rail`]:{width:`100%`,height:6,marginTop:e.marginSM,backgroundColor:`rgba(255, 255, 255, 0.5)`,borderRadius:e.borderRadiusXS,overflow:`hidden`,backdropFilter:`blur(4px)`,"&::before":{content:`""`,display:`block`,height:`100%`,width:`var(--progress-percent, 0%)`,background:`linear-gradient(90deg, rgba(120, 170, 255, 0.85) 0%, rgba(160, 150, 245, 0.85) 40%, rgba(130, 200, 220, 0.85) 60%, rgba(120, 170, 255, 0.85) 100%)`,backgroundSize:`200% 100%`,borderRadius:e.borderRadiusXS/2,transition:`width ${n} ease`,animationName:MW,animationDuration:i,animationTimingFunction:`linear`,animationIterationCount:`infinite`}},[`${t}-progress-indicator`]:{marginTop:e.marginXS}}}},BW=e=>{let{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i,colorBgMask:a,marginXL:o,marginSM:s,margin:c,colorTextLightSolid:l,paddingSM:u,paddingLG:d,previewOperationHoverColor:f,previewOperationColorDisabled:p,previewOperationSize:m,zIndexPopup:h}=e,g=new pe(a).setA(.1),_=g.clone().setA(.2),v={position:`absolute`,color:l,backgroundColor:g.toRgbString(),borderRadius:`50%`,padding:u,outline:0,border:0,cursor:`pointer`,transition:`all ${r}`,display:`flex`,fontSize:m,"&:hover":{backgroundColor:_.toRgbString()},"&:active":{backgroundColor:g.toRgbString()},"&:focus-visible":pr(e)};return{[`${i}-preview`]:{textAlign:`center`,inset:0,position:`fixed`,userSelect:`none`,zIndex:h,[`${n}-mask`]:{inset:0,position:`absolute`,background:a,backdropFilter:`blur(0px)`,transition:`backdrop-filter ${r}`,[`&${i}-preview-mask-blur`]:{backdropFilter:`blur(4px)`},[`&${i}-preview-mask-hidden`]:{display:`none`}},[`${n}-body`]:{...LW(),"pointer-events":`none`,display:`flex`,alignItems:`center`,justifyContent:`center`,"> *":{pointerEvents:`auto`}},[`${n}-img`]:{maxWidth:`100%`,maxHeight:`70%`,verticalAlign:`middle`,transform:`scale3d(1, 1, 1)`,transition:`transform ${r} ${t} 0s`},[`&-movable ${n}-img`]:{cursor:`grab`},[`&-moving ${n}-img`]:{cursor:`grabbing`},[`${n}-close`]:{...v,top:s,insetInlineEnd:s},[`${n}-switch`]:{...v,top:`50%`,transform:`translateY(-50%)`,"&-disabled":{"&, &:hover, &:active":{color:p,background:`transparent`,cursor:`not-allowed`}},"&-prev":{insetInlineStart:s},"&-next":{insetInlineEnd:s}},[`${n}-footer`]:{position:`absolute`,bottom:o,left:{_skip_check_:!0,value:`50%`},display:`flex`,flexDirection:`column`,alignItems:`center`,color:e.previewOperationColor,transform:`translateX(-50%)`,gap:c},[`${n}-actions`]:{display:`flex`,gap:u,padding:`0 ${Q(d)}`,backgroundColor:g.toRgbString(),borderRadius:100,fontSize:m,"&-action":{color:`inherit`,background:`transparent`,border:0,font:`inherit`,padding:u,cursor:`pointer`,transition:`all ${r}`,display:`flex`,[`&:not(${n}-actions-action-disabled):hover`]:{color:f},"&:focus-visible":pr(e),"&-disabled":{color:p,cursor:`not-allowed`}}}}}},VW=e=>{let{componentCls:t}=e;return{[t]:{position:`relative`,display:`inline-block`,...mr(e),[`${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}-placeholder`]:{...LW()}}}},HW=e=>{let{previewCls:t,motionDurationSlow:n}=e;return{[t]:{"&-fade":{transition:`opacity ${n}`,"&-enter, &-appear":{opacity:0,[`${t}-body`]:{transform:`scale(0)`},"&-active":{opacity:1,[`${t}-body`]:{transform:`scale(1)`,transition:`transform ${n}`}}},"&-leave":{opacity:1,"&-active":{opacity:0,[`${t}-body`]:{transform:`scale(0)`,transition:`transform ${n}`}}}}}}},UW=yr(`Image`,e=>{let t=wn(e,{previewCls:`${e.componentCls}-preview`,imagePreviewSwitchSize:e.controlHeightLG});return[VW(t),RW(t),zW(t),BW(t),HW(t)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new pe(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new pe(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new pe(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5,progressAnimationDuration:`3s`})),WW={rotateLeft:$.createElement(a,null),rotateRight:$.createElement(Se,null),zoomIn:$.createElement(d,null),zoomOut:$.createElement(p,null),close:$.createElement(ne,null),left:$.createElement(ee,null),right:$.createElement(T,null),flipX:$.createElement(N,null),flipY:$.createElement(N,{rotate:90})},GW=({previewPrefixCls:e,preview:t,classNames:n,styles:r,...i})=>{let{getPrefixCls:a,getPopupContainer:o,direction:s,preview:c,classNames:l,styles:u}=Wt(`image`),d=a(`image`,e),f=`${d}-preview`,p=la(d),[m,h]=UW(d,p),g=X(m,h,p),[_,v,y]=jW(t),[b,x,S]=jW(c),C=$.useMemo(()=>({...WW,left:s===`rtl`?$.createElement(T,null):$.createElement(ee,null),right:s===`rtl`?$.createElement(ee,null):$.createElement(T,null)}),[s]),w=DW(_,b,d,g,o,WW),{mask:E,blurClassName:D}=w??{},O={...i,classNames:n,styles:r},[k,A]=zi([l,n,{cover:X(S,y),popup:{root:X(x,v),mask:X({[`${d}-preview-mask-hidden`]:!E},D)}}],[u,r],{props:O},{popup:{_default:`root`}});return $.createElement(EW.PreviewGroup,{preview:w,previewPrefixCls:f,icons:C,...i,classNames:k,styles:A})},KW={position:`absolute`,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,border:0},qW=e=>{let{prefixCls:t,percent:n,render:r,classNames:i,styles:a,rootClassName:o,rootStyle:s,width:c,height:l}=e,u=Ei(n)&&Number.isFinite(n),d=u?Math.max(0,Math.min(100,Math.round(n))):0,f=u?{role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d,"aria-label":`${d}%`}:{"aria-busy":!0},p=u?$.createElement(`div`,{className:X(`${t}-progress-rail`,i?.rail),style:{...a?.rail,"--progress-percent":`${d}%`}}):null,m=r?r(p,d):$.createElement($.Fragment,null,p,u&&$.createElement(`div`,{className:X(`${t}-progress-indicator`,i?.indicator),style:a?.indicator},`${d}%`));return $.createElement(`div`,{className:X(t,`${t}-progress-wrapper`,i?.root,o),style:{width:c,height:l,...s,...a?.root},...f},!u&&$.createElement(`span`,{role:`status`,"aria-live":`polite`,style:KW},`Loading`),$.createElement(`div`,{className:`${t}-progress-ink-1`}),$.createElement(`div`,{className:`${t}-progress-ink-2`}),$.createElement(`div`,{className:X(`${t}-progress-content`,i?.content),style:a?.content},m))},JW=e=>{let{prefixCls:t,preview:n,className:r,rootClassName:i,style:a,styles:o,classNames:s,wrapperStyle:c,fallback:l,placeholder:u,...d}=e,{getPrefixCls:f,getPopupContainer:p,className:m,style:h,preview:g,styles:_,classNames:v,fallback:y}=Wt(`image`),b=f(`image`,t),x=la(b),[S,C]=UW(b,x),w=X(i,S,C,x),T=X(r,S,m),[E,D,O]=jW(n),[k,A,j]=jW(g),M=DW(E,k,b,w,p,WW,!0),N={...e,preview:M},P=$.useMemo(()=>({cover:X(j,O),popup:{root:X(A,D)}}),[D,O,A,j]),{mask:F,blurClassName:I}=M??{},L=$.useMemo(()=>({mask:X({[`${b}-preview-mask-hidden`]:!F},I)}),[F,b,I]),[R,z]=zi($.useMemo(()=>[v,s,P,{popup:L}],[v,s,P,L]),[_,{root:c},o],{props:N},{popup:{_default:`root`},placeholder:{}}),B={...h,...a},V=l??y,{progressConfig:H}=kW(u),U=H!==void 0,{percent:W,render:G}=H||{},ee=R?.placeholder?.progress,K=z?.placeholder?.progress,{width:q,height:te,src:ne,...re}=d,J=OW(u)?void 0:u,ie=J&&!ne,ae=ie?e=>J:G;return U||ie?$.createElement(qW,{prefixCls:b,percent:W,render:ae,classNames:ee,styles:K,rootClassName:X(w,T),rootStyle:{...B,...z?.root},width:q,height:te}):$.createElement(EW,{prefixCls:b,preview:M||!1,rootClassName:w,className:T,style:B,fallback:V,placeholder:J,width:q,height:te,src:ne,...re,classNames:R,styles:z})};JW.PreviewGroup=GW;var YW=e=>{let{getPrefixCls:t,direction:n}=(0,$.useContext)(Vt),{prefixCls:r,className:i}=e,a=t(`input-group`,r),[o,s]=iP(t(`input`)),c=X(a,s,{[`${a}-lg`]:e.size===`large`,[`${a}-sm`]:e.size===`small`,[`${a}-compact`]:e.compact,[`${a}-rtl`]:n===`rtl`},o,i),l=(0,$.useContext)(pm),u=(0,$.useMemo)(()=>({...l,isFormItemInput:!1}),[l]);return $.createElement(pm.Provider,{value:u},$.createElement(BH.Compact,{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},XW=e=>{let{componentCls:t,paddingXS:n}=e;return{[t]:{display:`inline-flex`,alignItems:`center`,flexWrap:`nowrap`,columnGap:n,[`${t}-input-wrapper`]:{position:`relative`,[`${t}-mask-icon`]:{position:`absolute`,zIndex:`1`,top:`50%`,right:`50%`,transform:`translate(50%, -50%)`,pointerEvents:`none`},[`${t}-mask-input`]:{color:`transparent`,caretColor:e.colorText,"&::selection":{color:`transparent`}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":`none`,margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":`textfield`}},"&-rtl":{direction:`rtl`},[`${t}-input`]:{textAlign:`center`,paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},ZW=yr([`Input`,`OTP`],e=>XW(wn(e,kN(e))),AN),QW=$.forwardRef((e,t)=>{let{className:n,value:r,onChange:i,onActiveChange:a,index:o,mask:s,onFocus:c,...l}=e,{getPrefixCls:u}=$.useContext(Vt),d=u(`otp`),f=typeof s==`string`?s:r,p=$.useRef(null);$.useImperativeHandle(t,()=>p.current);let m=e=>{i(o,e.target.value)},h=()=>{Y(()=>{let e=p.current?.input;document.activeElement===e&&e&&e.select()})},g=e=>{c?.(e),h()},_=e=>{let{key:t,ctrlKey:n,metaKey:i}=e;t===`ArrowLeft`?a(o-1):t===`ArrowRight`?a(o+1):t===`z`&&(n||i)?e.preventDefault():t===`Backspace`&&!r&&a(o-1),h()};return $.createElement(`span`,{className:`${d}-input-wrapper`,role:`presentation`},s&&r!==``&&r!==void 0&&$.createElement(`span`,{className:`${d}-mask-icon`,"aria-hidden":`true`},f),$.createElement(vB,{"aria-label":`OTP Input ${o+1}`,type:s===!0?`password`:`text`,...l,ref:p,value:r,onInput:m,onFocus:g,onKeyDown:_,onMouseDown:h,onMouseUp:h,className:X(n,{[`${d}-mask-input`]:s})}))});function $W(e){return(e||``).split(``)}var eG=e=>{let{index:t,prefixCls:n,separator:r,className:i,style:a}=e,o=ki(r)?r(t):r;return o?$.createElement(`span`,{className:X(`${n}-separator`,i),style:a},o):null},tG=$.forwardRef((e,t)=>{let{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:c,separator:l,variant:u,disabled:d,status:f,autoFocus:p,mask:m,type:h,autoComplete:g,onInput:_,onFocus:v,inputMode:y,classNames:b,styles:x,className:S,style:C,...w}=e,{classNames:T,styles:E,getPrefixCls:D,direction:O,style:k,className:A}=Wt(`otp`),j=D(`otp`,n),M={...e,length:r},[N,P]=zi([T,b],[E,x],{props:M}),F=V(w,{aria:!0,data:!0,attr:!0}),[I,L]=ZW(j),R=jl(e=>i??e),z=$.useContext(pm),B=lv(z.status,f),H=$.useMemo(()=>({...z,status:B,hasFeedback:!1,feedbackIcon:null}),[z,B]),U=$.useRef(null),W=$.useRef({});$.useImperativeHandle(t,()=>({focus:()=>{W.current[0]?.focus()},blur:()=>{for(let e=0;e<r;e+=1)W.current[e]?.blur()},nativeElement:U.current}));let G=e=>c?c(e):e,[ee,K]=$.useState(()=>$W(G(a||``)));$.useEffect(()=>{o!==void 0&&K($W(o))},[o]);let q=J(e=>{K(e),_&&_(e),s&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>ee[t]!==e)&&s(e.join(``))}),te=J((e,t)=>{let n=Lt(ee);for(let t=0;t<e;t+=1)n[t]||(n[t]=``);t.length<=1?n[e]=t:n=n.slice(0,e).concat($W(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];--e)n.pop();return n=$W(G(n.map(e=>e||` `).join(``))).map((e,t)=>e===` `&&!n[t]?n[t]:e),n}),ne=(e,t)=>{let n=te(e,t),i=Math.min(e+t.length,r-1);i!==e&&n[e]!==void 0&&W.current[i]?.focus(),q(n)},re=e=>{W.current[e]?.focus()},ie=(e,t)=>{for(let e=0;e<t;e+=1)if(!W.current[e]?.input?.value){W.current[e]?.focus();break}v?.(e)},ae={variant:u,disabled:d,status:B,mask:m,type:h,inputMode:y,autoComplete:g};return $.createElement(`div`,{...F,ref:U,className:X(S,j,{[`${j}-sm`]:R===`small`,[`${j}-lg`]:R===`large`,[`${j}-rtl`]:O===`rtl`},L,I,A,N.root),style:{...P.root,...k,...C},role:`group`},$.createElement(pm.Provider,{value:H},Array.from({length:r}).map((e,t)=>{let n=`otp-${t}`,i=ee[t]||``;return $.createElement($.Fragment,{key:n},$.createElement(QW,{ref:e=>{W.current[t]=e},index:t,size:R,htmlSize:1,className:X(N.input,`${j}-input`),style:P.input,onChange:ne,value:i,onActiveChange:re,autoFocus:t===0&&p,onFocus:e=>ie(e,t),...ae}),t<r-1&&$.createElement(eG,{separator:l,index:t,prefixCls:j,className:X(N.separator),style:P.separator}))})))}),nG=e=>e?$.createElement(Ue,null):$.createElement(H,null),rG={click:`onClick`,hover:`onMouseOver`},iG=$.forwardRef((e,t)=>{let{disabled:n,action:r=`click`,visibilityToggle:i=!0,iconRender:a,prefixCls:o,inputPrefixCls:s,suffix:c,className:l,style:u,classNames:d,styles:f,...p}=e,{getPrefixCls:m,className:h,style:g,classNames:_,styles:v,iconRender:y}=Wt(`inputPassword`),[b]=ja(`global`),x=$.useContext(Vo),C=n??x,w={...e,disabled:C},[T,E]=zi([_,d],[v,f],{props:w}),D=Oi(i)&&i.visible!==void 0,[O,k]=(0,$.useState)(()=>D?i.visible:!1),A=(0,$.useRef)(null);$.useEffect(()=>{D&&k(i.visible)},[D,i]);let j=gB(A),M=()=>{if(C)return;O&&j();let e=!O;k(e),Oi(i)&&i.onVisibleChange?.(e)},N=e=>{let t=rG[r]||``,n=(a||y||nG)(O);return $.createElement(`span`,{key:`passwordIcon`,role:`button`,tabIndex:C?-1:0,className:`${e}-icon`,"aria-disabled":C,"aria-pressed":O,"aria-label":O?b.hide:b.show,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),M())},[t]:M},n)},P=m(`input`,s),F=m(`input-password`,o),I=i&&N(F),L=X(F,h,l,{[`${F}-${e.size}`]:!!e.size}),R={...p,type:O?`text`:`password`,prefixCls:P,suffix:$.createElement($.Fragment,null,I,c),disabled:C,className:L,style:{...g,...u},classNames:T,styles:E};return $.createElement(vB,{ref:S(t,A),...R})}),aG=yr([`Input`,`Search`],e=>{let{componentCls:t}=e,n=`${t}-btn`;return{[t]:{width:`100%`,[n]:{"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}}}}}),oG=$.forwardRef((e,t)=>{let{prefixCls:n,inputPrefixCls:r,className:i,size:a,style:o,enterButton:s=!1,searchIcon:c,addonAfter:l,loading:d,disabled:f,onSearch:p,onChange:m,onCompositionStart:h,onCompositionEnd:g,variant:_,onPressEnter:v,classNames:y,styles:b,hidden:x,...C}=e,{direction:w,getPrefixCls:T,classNames:E,styles:D,searchIcon:O}=Wt(`inputSearch`),k={...e,enterButton:s},[A,j]=zi([E,y],[D,b],{props:k},{button:{_default:`root`}}),M=$.useRef(!1),N=T(`input-search`,n),P=T(`input`,r),[F,I]=aG(N),{compactSize:L}=Pl(N,w),R=jl(e=>a??L??e),z=$.useRef(null),B=e=>{e?.target&&e.type===`click`&&p&&p(e.target.value,e,{source:`clear`}),m?.(e)},H=e=>{document.activeElement===z.current?.input&&e.preventDefault()},U=e=>{p&&p(z.current?.input?.value,e,{source:`input`})},G=e=>{M.current||d||(v?.(e),U(e))},ee=typeof s==`boolean`?qs(c,O,$.createElement(W,null)):null,K=`${N}-btn`,q=X(K,{[`${K}-${_}`]:_}),te,ne=s||{},re=ne.type&&ne.type.__ANT_BUTTON===!0;te=re||ne.type===`button`?Io(ne,{onMouseDown:H,onClick:e=>{ne?.props?.onClick?.(e),U(e)},key:`enterButton`,...re?{className:q,size:R}:{}}):$.createElement(of,{classNames:A.button,styles:j.button,className:q,color:s?`primary`:`default`,size:R,disabled:f,key:`enterButton`,onMouseDown:H,onClick:U,loading:d,icon:ee,variant:_===`borderless`||_===`filled`||_===`underlined`?`text`:s?`solid`:void 0},s),l&&(te=[te,Io(l,{key:`addonAfter`})]);let J=X(N,I,{[`${N}-rtl`]:w===`rtl`,[`${N}-${R}`]:!!R,[`${N}-with-button`]:!!s},i,F,A.root),ie=e=>{M.current=!0,h?.(e)},ae=e=>{M.current=!1,g?.(e)},oe=V(C,{data:!0}),se=u({...C,classNames:u(A,[`button`,`root`]),styles:u(j,[`button`,`root`]),prefixCls:P,type:`search`,size:R,variant:_,onPressEnter:G,onCompositionStart:ie,onCompositionEnd:ae,onChange:B,disabled:f},Object.keys(oe));return $.createElement(Ll,{className:J,style:{...o,...j.root},...oe,hidden:x},$.createElement(vB,{ref:S(z,t),...se}),te)}),sG=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:`100%`,height:`auto`,minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:`bottom`,transition:`all ${e.motionDurationSlow}`,resize:`vertical`,[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:`auto`},[r]:{position:`relative`,"&-show-count":{[`${t}-data-count`]:{position:`absolute`,bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:`nowrap`,pointerEvents:`none`}},[`
229
+ &-allow-clear > ${t},
230
+ &-affix-wrapper${r}-has-feedback ${t}
231
+ `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:`inherit`,border:`none`,outline:`none`,background:`transparent`,minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:`none !important`}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:`absolute`,insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`,pointerEvents:`none`}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:`ltr`,insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},cG=yr([`Input`,`TextArea`],e=>sG(wn(e,kN(e))),AN,{resetFont:!1}),lG=(0,$.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,size:i,disabled:a,status:o,allowClear:s,classNames:c,rootClassName:l,className:u,style:d,styles:f,variant:p,showCount:m,onMouseDown:h,onResize:g,..._}=e,{getPrefixCls:v,direction:y,allowClear:b,autoComplete:x,className:S,style:C,classNames:w,styles:T}=Wt(`textArea`),E=$.useContext(Vo),D=a??E,{status:O,hasFeedback:k,feedbackIcon:A}=$.useContext(pm),j=lv(O,o),[M,N]=zi([w,c],[T,f],{props:e}),P=$.useRef(null);$.useImperativeHandle(t,()=>({resizableTextArea:P.current?.resizableTextArea,focus:e=>{xe(P.current?.resizableTextArea?.textArea,e)},blur:()=>P.current?.blur(),nativeElement:P.current?.nativeElement||null}));let F=v(`input`,n),I=la(F),[L,R]=rP(F,l);cG(F,I);let{compactSize:z,compactItemClassnames:B}=Pl(F,y),V=jl(e=>i??z??e),[H,U]=vv(`textArea`,p,r),W=Js({allowClear:s,contextAllowClear:b,componentName:`TextArea`}),[G,ee]=$.useState(!1),[K,q]=$.useState(!1),te=e=>{ee(!0),h?.(e);let t=()=>{ee(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},ne=e=>{if(g?.(e),G&&ki(getComputedStyle)){let e=P.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&q(!0)}};return $.createElement(mB,{autoComplete:x,..._,style:{...N.root,...C,...d},styles:N,disabled:D,allowClear:W,className:X(R,I,u,l,B,S,M.root,{[`${F}-textarea-affix-wrapper-resize-dirty`]:K}),classNames:{...M,textarea:X({[`${F}-sm`]:V===`small`,[`${F}-lg`]:V===`large`},L,M.textarea,G&&`${F}-mouse-active`),variant:X({[`${F}-${H}`]:U},cv(F,j)),affixWrapper:X(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:y===`rtl`,[`${F}-affix-wrapper-sm`]:V===`small`,[`${F}-affix-wrapper-lg`]:V===`large`,[`${F}-textarea-show-count`]:m||e.count?.show},L)},prefixCls:F,suffix:k&&$.createElement(`span`,{className:`${F}-textarea-suffix`},A),showCount:m,ref:P,onResize:ne,onMouseDown:te})}),uG=vB;uG.Group=YW,uG.Search=oG,uG.TextArea=lG,uG.Password=iG,uG.OTP=tG;function dG(e,t,n){return typeof n==`boolean`?n:e.length?!0:Je(t).some(e=>e.type===dS)}var fG=({suffixCls:e,tagName:t,displayName:n})=>n=>$.forwardRef((r,i)=>$.createElement(n,{ref:i,suffixCls:e,tagName:t,...r})),pG=$.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:i,tagName:a,...o}=e,{getPrefixCls:s}=$.useContext(Vt),c=s(`layout`,n),[l]=aS(c),u=r?`${c}-${r}`:c;return $.createElement(a,{className:X(n||u,i,l),ref:t,...o})}),mG=$.forwardRef((e,t)=>{let{direction:n}=$.useContext(Vt),[r,i]=$.useState([]),{prefixCls:a,className:o,rootClassName:s,children:c,hasSider:l,tagName:d,style:f,...p}=e,m=u(p,[`suffixCls`]),{getPrefixCls:h,className:g,style:_}=Wt(`layout`),v=h(`layout`,a),y=dG(r,c,l),[b,x]=aS(v),S=X(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n===`rtl`},g,o,s,b,x),C=$.useMemo(()=>({siderHook:{addSider:e=>{i(t=>[].concat(Lt(t),[e]))},removeSider:e=>{i(t=>t.filter(t=>t!==e))}}}),[]);return $.createElement(tS.Provider,{value:C},$.createElement(d,{ref:t,className:S,style:{..._,...f},...m},c))}),hG=fG({tagName:`div`,displayName:`Layout`})(mG),gG=fG({suffixCls:`header`,tagName:`header`,displayName:`Header`})(pG),_G=fG({suffixCls:`footer`,tagName:`footer`,displayName:`Footer`})(pG),vG=fG({suffixCls:`content`,tagName:`main`,displayName:`Content`})(pG),yG=hG;yG.Header=gG,yG.Footer=_G,yG.Content=vG,yG.Sider=dS,yG._InternalSiderContext=lS;var bG={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:`页码`},xG=[10,20,50,100],SG=e=>{let{pageSizeOptions:t=xG,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[p,m]=$.useState(``),h=$.useMemo(()=>!p||Number.isNaN(p)?void 0:Number(p),[p]),g=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,_=e=>{let t=e.target.value;/^\d*$/.test(t)&&m(t)},v=e=>{a||p===``||(m(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(h))},y=e=>{p!==``&&(e.keyCode===f.ENTER||e.type===`click`)&&(m(``),o?.(h))},b=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),x=`${s}-options`;if(!u&&!o)return null;let S=null,C=null,w=null;return u&&d&&(S=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${x}-size-changer`,options:b().map(e=>({label:g(e),value:e}))})),o&&(a&&(w=typeof a==`boolean`?$.createElement(`button`,{type:`button`,onClick:y,onKeyUp:y,disabled:c,className:`${x}-quick-jumper-button`},n.jump_to_confirm):$.createElement(`span`,{onClick:y,onKeyUp:y},a)),C=$.createElement(`div`,{className:`${x}-quick-jumper`},n.jump_to,$.createElement(`input`,{disabled:c,type:`text`,value:p,onChange:_,onKeyUp:y,onBlur:v,"aria-label":n.page}),n.page,w)),$.createElement(`li`,{className:x},S,C)},CG=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=X(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},m=l(n,`page`,$.createElement(`a`,{rel:`nofollow`},n));return m?$.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},m):null};function wG(){return wG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wG.apply(this,arguments)}var TG=(e,t,n)=>n;function EG(){}function DG(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function OG(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var kG=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=EG,hideOnSinglePage:p,align:m,showPrevNextJumpers:h=!0,showQuickJumper:g,showLessItems:_,showTitle:y=!0,onShowSizeChange:b=EG,locale:x=bG,style:S,totalBoundaryShowSizeChanger:C=50,disabled:w,simple:T,showTotal:E,showSizeChanger:D=c>C,sizeChangerRender:O,pageSizeOptions:k,itemRender:A=TG,jumpPrevIcon:j,jumpNextIcon:M,prevIcon:N,nextIcon:P}=e,F=$.useRef(null),[I,L]=v(u,l),[R,z]=v(s,o),B=Math.max(1,Math.min(R,OG(void 0,I,c))),[H,U]=$.useState(B);(0,$.useEffect)(()=>{U(B)},[B]),`current`in e;let W=Math.max(1,B-(_?3:5)),G=Math.min(OG(void 0,I,c),B+(_?3:5));function ee(n,r){let i=n||$.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=$.createElement(n,e)),i}function K(e){let t=e.target.value,n=OG(void 0,I,c),r;return r=t===``?t:Number.isNaN(Number(t))?H:t>=n?n:Number(t),r}function q(e){return DG(e)&&e!==B&&DG(c)&&c>0}let te=c>I?g:!1;function ne(e){(e.keyCode===f.UP||e.keyCode===f.DOWN)&&e.preventDefault()}function re(e){let t=K(e);switch(t!==H&&U(t),e.keyCode){case f.ENTER:ae(t);break;case f.UP:ae(t-1);break;case f.DOWN:ae(t+1);break;default:break}}function J(e){ae(K(e))}function ie(e){let t=OG(e,I,c),n=B>t&&t!==0?t:B;L(e),U(n),b?.(B,e),z(n),d?.(n,e)}function ae(e){if(q(e)&&!w){let t=OG(void 0,I,c),n=e;return e>t?n=t:e<1&&(n=1),n!==H&&U(n),z(n),d?.(n,I),n}return B}let oe=B>1,se=B<OG(void 0,I,c);function ce(){oe&&ae(B-1)}function le(){se&&ae(B+1)}function Y(){ae(W)}function ue(){ae(G)}function de(e,t,...n){(e.key===`Enter`||e.charCode===f.ENTER||e.keyCode===f.ENTER)&&t(...n)}function fe(e){de(e,ce)}function pe(e){de(e,le)}function me(e){de(e,Y)}function he(e){de(e,ue)}function ge(e){let t=A(e,`prev`,ee(N,`prev page`));return $.isValidElement(t)?$.cloneElement(t,{disabled:!oe}):t}function _e(e){let t=A(e,`next`,ee(P,`next page`));return $.isValidElement(t)?$.cloneElement(t,{disabled:!se}):t}function ve(e){(e.type===`click`||e.keyCode===f.ENTER)&&ae(H)}let ye=null,be=V(e,{aria:!0,data:!0}),xe=E&&$.createElement(`li`,{className:`${t}-total-text`},E(c,[c===0?0:(B-1)*I+1,B*I>c?c:B*I])),Se=null,Ce=OG(void 0,I,c);if(p&&c<=I)return null;let we=[],Te={rootPrefixCls:t,onClick:ae,onKeyPress:de,showTitle:y,itemRender:A,page:-1,className:i?.item,style:a?.item},Ee=B-1>0?B-1:0,De=B+1<Ce?B+1:Ce,Oe=g&&g.goButton,ke=typeof T==`object`?T.readOnly:!T,Ae=Oe,je=null;T&&(Oe&&(Ae=typeof Oe==`boolean`?$.createElement(`button`,{type:`button`,onClick:ve,onKeyUp:ve},x.jump_to_confirm):$.createElement(`span`,{onClick:ve,onKeyUp:ve},Oe),Ae=$.createElement(`li`,{title:y?`${x.jump_to}${B}/${Ce}`:null,className:`${t}-simple-pager`},Ae)),je=$.createElement(`li`,{title:y?`${B}/${Ce}`:null,className:X(`${t}-simple-pager`,i?.item),style:a?.item},ke?H:$.createElement(`input`,{type:`text`,"aria-label":x.jump_to,value:H,disabled:w,onKeyDown:ne,onKeyUp:re,onChange:re,onBlur:J,size:3}),$.createElement(`span`,{className:`${t}-slash`},`/`),Ce));let Me=_?1:2;if(Ce<=3+Me*2){Ce||we.push($.createElement(CG,wG({},Te,{key:`noPager`,page:1,className:`${t}-item-disabled`})));for(let e=1;e<=Ce;e+=1)we.push($.createElement(CG,wG({},Te,{key:e,page:e,active:B===e})))}else{let e=_?x.prev_3:x.prev_5,n=_?x.next_3:x.next_5,r=A(W,`jump-prev`,ee(j,`prev page`)),i=A(G,`jump-next`,ee(M,`next page`));h&&(ye=r?$.createElement(`li`,{title:y?e:null,key:`prev`,onClick:Y,tabIndex:0,onKeyDown:me,className:X(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!j})},r):null,Se=i?$.createElement(`li`,{title:y?n:null,key:`next`,onClick:ue,tabIndex:0,onKeyDown:he,className:X(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!M})},i):null);let a=Math.max(1,B-Me),o=Math.min(B+Me,Ce);B-1<=Me&&(o=1+Me*2),Ce-B<=Me&&(a=Ce-Me*2);for(let e=a;e<=o;e+=1)we.push($.createElement(CG,wG({},Te,{key:e,page:e,active:B===e})));if(B-1>=Me*2&&B!==3&&(we[0]=$.cloneElement(we[0],{className:X(`${t}-item-after-jump-prev`,we[0].props.className)}),we.unshift(ye)),Ce-B>=Me*2&&B!==Ce-2){let e=we[we.length-1];we[we.length-1]=$.cloneElement(e,{className:X(`${t}-item-before-jump-next`,e.props.className)}),we.push(Se)}a!==1&&we.unshift($.createElement(CG,wG({},Te,{key:1,page:1}))),o!==Ce&&we.push($.createElement(CG,wG({},Te,{key:Ce,page:Ce})))}let Ne=ge(Ee);if(Ne){let e=!oe||!Ce;Ne=$.createElement(`li`,{title:y?x.prev_page:null,onClick:ce,tabIndex:e?null:0,onKeyDown:fe,className:X(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Ne)}let Pe=_e(De);if(Pe){let e,n;T?(e=!se,n=oe?0:null):(e=!se||!Ce,n=e?null:0),Pe=$.createElement(`li`,{title:y?x.next_page:null,onClick:le,tabIndex:n,onKeyDown:pe,className:X(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Pe)}let Fe=X(t,r,{[`${t}-start`]:m===`start`,[`${t}-center`]:m===`center`,[`${t}-end`]:m===`end`,[`${t}-simple`]:T,[`${t}-disabled`]:w});return $.createElement(`ul`,wG({className:Fe,style:S,ref:F},be),xe,Ne,T?je:we,Pe,$.createElement(SG,{locale:x,rootPrefixCls:t,disabled:w,selectPrefixCls:n,changeSize:ie,pageSize:I,pageSizeOptions:k,quickGo:te?ae:null,goButton:Ae,showSizeChanger:D,sizeChangerRender:O}))},AG=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-item`]:{cursor:`not-allowed`,backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`},a:{color:e.colorTextDisabled,backgroundColor:`transparent`,border:`none`,cursor:`not-allowed`},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},[`${t}-simple&`]:{backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},jG=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...YN(e),width:e.paginationMiniQuickJumperInputWidth}}}}},MG=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...JN(e)}}}}},NG=e=>{let{componentCls:t,antCls:n}=e,[,r]=Sr(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${Q(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:`none`,transition:`border-color ${e.motionDurationMid}`,color:`inherit`,"&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Q(e.inputOutlineOffset)} 0 ${Q(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},PG=e=>{let{componentCls:t,antCls:n}=e,[,r]=Sr(n,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:`block`,margin:`auto`,color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:`center`,textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
232
+ ${t}-prev,
233
+ ${t}-jump-prev,
234
+ ${t}-jump-next
235
+ `]:{marginInlineEnd:r(`item-spacing-actual`)},[`
236
+ ${t}-prev,
237
+ ${t}-next,
238
+ ${t}-jump-prev,
239
+ ${t}-jump-next
240
+ `]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:r(`item-size-actual`),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,borderRadius:e.borderRadius,cursor:`pointer`,transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:`pointer`,userSelect:`none`},[`${t}-item-link`]:{display:`block`,width:`100%`,height:`100%`,padding:0,fontSize:e.fontSizeSM,textAlign:`center`,backgroundColor:`transparent`,border:`${Q(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:`none`,transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:`transparent`}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:`inline-block`,marginInlineStart:e.margin,verticalAlign:`middle`,"&-size-changer":{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:r(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:r(`item-size-actual`),verticalAlign:`baseline`,input:{...XN(e),...NN(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...MN(e)},width:e.quickJumperInputWidth,height:r(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:r(`item-spacing-actual`),marginInlineEnd:r(`item-spacing-actual`)}}}}},FG=e=>{let{componentCls:t,antCls:n}=e,[,r]=Sr(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:Q(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${Q(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${Q(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:`none`}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},IG=e=>{let{componentCls:t,antCls:n}=e,[r,i]=Sr(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:Q(e.itemSize),[r(`item-spacing-actual`)]:Q(e.marginXS),"&-small":{[r(`item-size-actual`)]:Q(e.itemSizeSM),[r(`item-spacing-actual`)]:Q(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:Q(e.itemSizeLG),[r(`item-spacing-actual`)]:Q(e.marginSM)},...ur(e),display:`flex`,alignItems:`center`,"&-start":{justifyContent:`start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`end`},"ul, ol":{margin:0,padding:0,listStyle:`none`},"&::after":{display:`block`,clear:`both`,height:0,overflow:`hidden`,visibility:`hidden`,content:`""`},[`${t}-total-text`]:{display:`inline-block`,height:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:Q(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...FG(e),...PG(e),...NG(e),...jG(e),...MG(e),...AG(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:`none`}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:`none`}}},[`&${e.componentCls}-rtl`]:{direction:`rtl`}}},LG=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...mr(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...pr(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:pr(e)}}}},RG=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...AN(e)}),zG=e=>wn(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:`0.13em`},kN(e)),BG=yr(`Pagination`,e=>{let t=zG(e);return[IG(t),LG(t)]},RG),VG=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &: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`]:{[`${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:`${Q(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}}}}},HG=xr([`Pagination`,`bordered`],e=>VG(zG(e)),RG);function UG(e){return(0,$.useMemo)(()=>typeof e==`boolean`?[e,{}]:Oi(e)?[!0,e]:[void 0,void 0],[e])}var WG=e=>{let{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:c,responsive:u,showSizeChanger:d,selectComponentClass:f,pageSizeOptions:p,styles:m,classNames:h,...g}=e,{xs:_}=Zv(u),[,v]=cr(),{getPrefixCls:y,direction:b,showSizeChanger:x,className:S,style:C,classNames:w,styles:E,totalBoundaryShowSizeChanger:D}=Wt(`pagination`),O=y(`pagination`,n),[k,A]=BG(O),j=jl(s),M=j===`small`||!!(_&&!j&&u),N={...e,size:j},[P,F]=zi([w,h],[E,m],{props:N}),[I]=ja(`Pagination`,da),L={...I,...c},[R,z]=UG(d),[V,H]=UG(x),U=R??V,W=z??H,G=f||Lv,K=$.useMemo(()=>p?p.map(Number):void 0,[p]),q=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,{className:s,onChange:c}=W||{},l=o.find(e=>String(e.value)===String(n))?.value;return $.createElement(G,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...W,value:l,onChange:(e,t)=>{r?.(e),c?.(e,t)},size:j,className:X(a,s)})},te=$.useMemo(()=>{let e=$.createElement(`span`,{className:`${O}-item-ellipsis`},`•••`);return{prevIcon:$.createElement(`button`,{className:`${O}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?$.createElement(T,null):$.createElement(ee,null)),nextIcon:$.createElement(`button`,{className:`${O}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?$.createElement(ee,null):$.createElement(T,null)),jumpPrevIcon:$.createElement(`a`,{className:`${O}-item-link`},$.createElement(`div`,{className:`${O}-item-container`},b===`rtl`?$.createElement(B,{className:`${O}-item-link-icon`}):$.createElement(l,{className:`${O}-item-link-icon`}),e)),jumpNextIcon:$.createElement(`a`,{className:`${O}-item-link`},$.createElement(`div`,{className:`${O}-item-container`},b===`rtl`?$.createElement(l,{className:`${O}-item-link-icon`}):$.createElement(B,{className:`${O}-item-link-icon`}),e))}},[b,O]),ne=y(`select`,r),re=X({[`${O}-${t}`]:!!t,[`${O}-${j}`]:j,[`${O}-mini`]:M,[`${O}-rtl`]:b===`rtl`,[`${O}-bordered`]:v.wireframe},S,i,a,P.root,k,A),J={...F.root,...C,...o};return $.createElement($.Fragment,null,v.wireframe&&$.createElement(HG,{prefixCls:O}),$.createElement(kG,{...te,...g,styles:F,classNames:P,style:J,prefixCls:O,selectPrefixCls:ne,className:re,locale:L,pageSizeOptions:K,showSizeChanger:U,totalBoundaryShowSizeChanger:g.totalBoundaryShowSizeChanger??D,sizeChangerRender:q}))},GG=100,KG=GG/5,qG=GG/2-KG/2,JG=qG*2*Math.PI,YG=50,XG=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return $.createElement(`circle`,{className:X(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:qG,cx:YG,cy:YG,strokeWidth:KG,style:n})},ZG=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=$.useState(!1);Pe(()=>{e!==0&&o(!0)},[e!==0]);let s=Math.max(Math.min(e,100),0);if(!a)return null;let c={strokeDashoffset:`${JG/4}`,strokeDasharray:`${JG*s/100} ${JG*(100-s)/100}`};return $.createElement(`span`,{className:X(r,`${n}-progress`,{[i]:s<=0})},$.createElement(`svg`,{viewBox:`0 0 ${GG} ${GG}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},$.createElement(XG,{dotClassName:n,hasCircleCls:!0}),$.createElement(XG,{dotClassName:n,style:c})))};function QG(e){let{prefixCls:t,percent:n=0,className:r,style:i}=e,a=`${t}-dot`,o=`${a}-holder`,s=`${o}-hidden`;return $.createElement($.Fragment,null,$.createElement(`span`,{className:X(o,r,n>0&&s),style:i},$.createElement(`span`,{className:X(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>$.createElement(`i`,{className:`${t}-dot-item`,key:e})))),$.createElement(ZG,{prefixCls:t,percent:n}))}function $G(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&$.isValidElement(n)?Io(n,e=>({className:X(e.className,o,i),style:{...e.style,...a},percent:r})):$.createElement(QG,{prefixCls:t,percent:r,className:i,style:a})}var eK=new at(`antSpinMove`,{to:{opacity:1}}),tK=new at(`antRotate`,{to:{transform:`rotate(405deg)`}}),nK=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...ur(e),position:`relative`,"&-rtl":{direction:`rtl`},[`&${n}, ${n}`]:{display:`flex`,alignItems:`center`,flexDirection:`column`,gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:`inline-flex`},[n]:{position:`absolute`,top:`50%`,left:{_skip_check_:!0,value:`50%`},transform:`translate(-50%, -50%)`,zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${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`}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:`both`,opacity:.5,userSelect:`none`,pointerEvents:`none`,"&::after":{opacity:.4,pointerEvents:`auto`}}},"&-fullscreen":{position:`fixed`,inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:`none`,transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:`auto`},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},rK=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=Sr(n,`spin`);return{[t]:{[i(`dot-holder-size`)]:e.dotSize,[i(`dot-item-size`)]:`calc((${a(`dot-holder-size`)} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:`1em`,height:`1em`,fontSize:a(`dot-holder-size`),display:`inline-block`,transition:[`transform`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),transformOrigin:`50% 50%`,lineHeight:1,"&-hidden":{transform:`scale(0.3)`,opacity:0}},position:`relative`,display:`inline-block`,fontSize:a(`dot-holder-size`),width:`1em`,height:`1em`,"&-spin":{transform:`rotate(45deg)`,animationName:tK,animationDuration:`1.2s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`},"&-item":{position:`absolute`,display:`block`,width:a(`dot-item-size`),height:a(`dot-item-size`),background:`currentColor`,borderRadius:`100%`,transform:`scale(0.75)`,transformOrigin:`50% 50%`,opacity:.3,animationName:eK,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`}},"&-progress":{position:`absolute`,left:`50%`,top:0,transform:`translateX(-50%)`},"&-circle":{strokeLinecap:`round`,transition:[`stroke-dashoffset`,`stroke-dasharray`,`stroke`,`stroke-width`,`opacity`].map(e=>`${e} ${r} ease`).join(`,`),fillOpacity:0,stroke:`currentcolor`},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},iK=e=>{let{componentCls:t}=e,[n]=Sr(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},aK=yr(`Spin`,e=>{let t=wn(e,{spinDotDefault:e.colorTextDescription});return[nK(t),rK(t),iK(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),oK=200,sK=[[30,.05],[70,.03],[96,.01]];function cK(e,t){let[n,r]=$.useState(0),i=$.useRef(null),a=t===`auto`;return $.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(e=>{let t=100-e;for(let n=0;n<sK.length;n+=1){let[r,i]=sK[n];if(e<=r)return e+t*i}return e})},oK)),()=>{i.current&&(clearInterval(i.current),i.current=null)}),[a,e]),a?n:t}var lK;function uK(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var dK=e=>{let{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:a,size:o,tip:s,description:c,wrapperClassName:l,style:u,children:d,fullscreen:f=!1,indicator:p,percent:m,classNames:h,styles:g,..._}=e,{getPrefixCls:v,direction:y,indicator:b,className:x,style:S,classNames:C,styles:w}=Wt(`spin`),T=v(`spin`,t),[E,D]=aK(T),[O,k]=$.useState(()=>n&&!uK(n,r)),A=cK(O,m);$.useEffect(()=>{if(n){let e=UF(r,()=>{k(!0)});return e(),()=>{e?.cancel?.()}}k(!1)},[r,n]);let j=jl(e=>o??e),M=c??s,N={...e,size:j,spinning:O,tip:M,description:M,fullscreen:f,children:d,percent:A},[P,F]=zi([C,h],[w,g],{props:N}),I=p??b??lK,L=d!==void 0,R=L||f,z=$.createElement($.Fragment,null,$.createElement($G,{className:X(P.indicator),style:F.indicator,prefixCls:T,indicator:I,percent:A}),M&&$.createElement(`div`,{className:X(`${T}-description`,P.tip,P.description),style:{...F.tip,...F.description}},M));return $.createElement(`div`,{className:X(T,{[`${T}-sm`]:j===`small`,[`${T}-lg`]:j===`large`,[`${T}-spinning`]:O,[`${T}-rtl`]:y===`rtl`,[`${T}-fullscreen`]:f},a,P.root,f&&P.mask,R?l:[`${T}-section`,P.section],x,i,E,D),style:{...F.root,...R?{}:F.section,...f?F.mask:{},...S,...u},"aria-live":`polite`,"aria-busy":O,..._},O&&(R?$.createElement(`div`,{className:X(`${T}-section`,P.section),style:F.section},z):z),L&&$.createElement(`div`,{className:X(`${T}-container`,P.container),style:F.container},d))};dK.setDefaultIndicator=e=>{lK=e};var fK=$.createContext({});fK.Consumer;var pK=({prefixCls:e,className:t,avatar:n,title:r,description:i,...a})=>{let{getPrefixCls:o}=(0,$.useContext)(Vt),s=o(`list`,e),c=X(`${s}-item-meta`,t),l=$.createElement(`div`,{className:`${s}-item-meta-content`},r&&$.createElement(`h4`,{className:`${s}-item-meta-title`},r),i&&$.createElement(`div`,{className:`${s}-item-meta-description`},i));return $.createElement(`div`,{...a,className:c},n&&$.createElement(`div`,{className:`${s}-item-meta-avatar`},n),(r||i)&&l)},mK=$.forwardRef((e,t)=>{let{prefixCls:n,children:r,actions:i,extra:a,styles:o,className:s,classNames:c,colStyle:l,...u}=e,{grid:d,itemLayout:f}=(0,$.useContext)(fK),{getPrefixCls:p,list:m}=(0,$.useContext)(Vt),h=e=>X(m?.item?.classNames?.[e],c?.[e]),g=e=>({...m?.item?.styles?.[e],...o?.[e]}),_=()=>{let e=Je(r);return e.some(e=>typeof e==`string`)&&e.length>1},v=()=>f===`vertical`?!!a:!_(),y=p(`list`,n),b=i&&i.length>0&&$.createElement(`ul`,{className:X(`${y}-item-action`,h(`actions`)),key:`actions`,style:g(`actions`)},i.map((e,t)=>$.createElement(`li`,{key:`${y}-item-action-${t}`},e,t!==i.length-1&&$.createElement(`em`,{className:`${y}-item-action-split`})))),x=d?`div`:`li`,S=$.createElement(x,{...u,...d?{}:{ref:t},className:X(`${y}-item`,{[`${y}-item-no-flex`]:!v()},s)},f===`vertical`&&a?[$.createElement(`div`,{className:`${y}-item-main`,key:`content`},r,b),$.createElement(`div`,{className:X(`${y}-item-extra`,h(`extra`)),key:`extra`,style:g(`extra`)},a)]:[r,b,Io(a,{key:`extra`})]);return d?$.createElement(MR,{ref:t,flex:1,style:l},S):S});mK.Meta=pK;var hK=e=>{let{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:a,itemPaddingLG:o,marginLG:s,borderRadiusLG:c}=e,l=Q(e.calc(c).sub(e.lineWidth).equal());return{[t]:{border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header`]:{borderRadius:`${l} ${l} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${l} ${l}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${Q(i)} ${Q(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},gK=e=>{let{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:a,margin:o}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:`wrap`,[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:`wrap-reverse`,[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${Q(o)}`}}}}}},_K=e=>{let{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:a,marginLG:o,padding:s,itemPadding:c,colorPrimary:l,itemPaddingSM:u,itemPaddingLG:d,paddingXS:f,margin:p,colorText:m,colorTextDescription:h,motionDurationSlow:g,lineWidth:_,headerBg:v,footerBg:y,emptyTextPadding:b,metaMarginBottom:x,avatarMarginRight:S,titleMarginBottom:C,descriptionFontSize:w}=e;return{[t]:{...ur(e),position:`relative`,"--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:`none`},[`${t}-header`]:{background:v},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:o,[`${n}-pagination-options`]:{textAlign:`start`}},[`${t}-spin`]:{minHeight:i,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:S},[`${t}-item-meta-content`]:{flex:`1 0`,width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${Q(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${g}`,"&:hover":{color:l}}},[`${t}-item-meta-description`]:{color:h,fontSize:w,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 ${Q(f)}`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:`center`,"&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineEnd:0,width:_,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:`translateY(-50%)`,backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${Q(s)} 0`,color:h,fontSize:e.fontSizeSM,textAlign:`center`},[`${t}-empty-text`]:{padding:b,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:o},[`${t}-item-meta`]:{marginBlockEnd:x,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:C,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:`auto`,"> li":{padding:`0 ${Q(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:`none`}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Q(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:`${Q(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`}}}}},vK=yr(`List`,e=>{let t=wn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[_K(t),hK(t),gK(t)]},e=>({contentWidth:220,itemPadding:`${Q(e.paddingContentVertical)} 0`,itemPaddingSM:`${Q(e.paddingContentVerticalSM)} ${Q(e.paddingContentHorizontal)}`,itemPaddingLG:`${Q(e.paddingContentVerticalLG)} ${Q(e.paddingContentHorizontalLG)}`,headerBg:`transparent`,footerBg:`transparent`,emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),{extraCssVarPrefixCls:({prefixCls:e})=>[`${e}-container`]}),yK=$.forwardRef((e,t)=>{let{pagination:n=!1,prefixCls:r,bordered:i=!1,split:a=!0,className:o,rootClassName:s,style:c,children:l,itemLayout:u,loadMore:d,grid:f,dataSource:p=[],size:m,header:h,footer:g,loading:_=!1,rowKey:v,renderItem:y,locale:b,...x}=e,S=Oi(n)?n:{},[C,w]=$.useState(S.defaultCurrent||1),[T,E]=$.useState(S.defaultPageSize||10),{getPrefixCls:D,direction:O,className:k,style:A}=Wt(`list`),{renderEmpty:j}=$.useContext(Vt),M={current:1,total:0,position:`bottom`},N=e=>(t,r)=>{w(t),E(r),n&&n?.[e]?.(t,r)},P=N(`onChange`),F=N(`onShowSizeChange`),I=(e,t)=>{if(!y)return null;let n;return n=ki(v)?v(e):v?e[v]:e.key,n||(n=`list-item-${t}`),$.createElement($.Fragment,{key:n},y(e,t))},L=!!(d||n||g),R=D(`list`,r),[z,B]=vK(R),V=_;typeof V==`boolean`&&(V={spinning:V});let H=!!V?.spinning,U=jl(m),W=``;switch(U){case`large`:W=`lg`;break;case`small`:W=`sm`;break;default:break}let G=X(R,{[`${R}-vertical`]:u===`vertical`,[`${R}-${W}`]:W,[`${R}-split`]:a,[`${R}-bordered`]:i,[`${R}-loading`]:H,[`${R}-grid`]:!!f,[`${R}-something-after-last-item`]:L,[`${R}-rtl`]:O===`rtl`},k,o,s,z,B),ee=`${R}-container`,K=He(M,{total:p.length,current:C,pageSize:T},n||{}),q=Math.ceil(K.total/K.pageSize);K.current=Math.min(K.current,q);let te=n&&$.createElement(`div`,{className:X(`${R}-pagination`)},$.createElement(WG,{align:`end`,...K,onChange:P,onShowSizeChange:F})),ne=Lt(p);n&&p.length>(K.current-1)*K.pageSize&&(ne=Lt(p).splice((K.current-1)*K.pageSize,K.pageSize));let re=Zv(Object.keys(f||{}).some(e=>Gv.includes(e))),J=$.useMemo(()=>{for(let e=0;e<Gv.length;e+=1){let t=Gv[e];if(re[t])return t}},[re]),ie=$.useMemo(()=>{if(!f)return;let e=J&&f[J]?f[J]:f.column;if(e)return{width:`${100/e}%`,maxWidth:`${100/e}%`}},[JSON.stringify(f),J]),ae=H&&$.createElement(`div`,{style:{minHeight:53}});if(ne.length>0){let e=ne.map(I);ae=f?$.createElement(FR,{className:X(ee,B),gutter:f.gutter},$.Children.map(e,e=>$.createElement(`div`,{key:e?.key,style:ie},e))):$.createElement(`ul`,{className:X(`${R}-items`,ee,B)},e)}else !l&&!H&&(ae=$.createElement(`div`,{className:`${R}-empty-text`},b?.emptyText||j?.(`List`)||$.createElement(_v,{componentName:`List`})));let oe=K.position,se=$.useMemo(()=>({grid:f,itemLayout:u}),[JSON.stringify(f),u]);return $.createElement(fK.Provider,{value:se},$.createElement(`div`,{ref:t,style:{...A,...c},className:G,...x},(oe===`top`||oe===`both`)&&te,h&&$.createElement(`div`,{className:`${R}-header`},h),$.createElement(dK,{...V},ae,l),g&&$.createElement(`div`,{className:`${R}-footer`},g),d||(oe===`bottom`||oe===`both`)&&te))});yK.Item=mK;function bK(e){let t=$.useRef(0),n=()=>{Y.cancel(t.current)};return $.useEffect(()=>n,[]),J(()=>{n(),t.current=Y(e)})}function xK(e,t,n){let[r,i]=$.useMemo(()=>{let r=Array(t).fill(0),i=new Map;for(let a=0;a<e.length;a+=1){let[o,s,c]=e[a],l=c??r.indexOf(Math.min.apply(Math,Lt(r)));l=Math.min(l,t-1);let u=r[l];i.set(o,{column:l,top:u}),r[l]+=s+n}return[i,Math.max(0,Math.max.apply(Math,Lt(r))-n)]},[t,e,n]);return[r,i]}function SK(){let e=$.useRef(null);return e.current===null&&(e.current=new Map),[(t,n)=>{e.current.set(t,n)},t=>e.current.get(t)]}var CK=$.forwardRef((e,t)=>{let{item:n,style:r,prefixCls:i,itemRender:a,className:o,index:s,column:c,onResize:l}=e,u=`${i}-item`,d=(0,$.useMemo)(()=>n.children??a?.({...n,index:s,column:c}),[n,a,c,s]),f=$.createElement(`div`,{ref:t,style:r,className:X(u,o)},d);return l&&(f=$.createElement(jt,{onResize:l},f)),f}),wK=yr(`Masonry`,e=>{let{componentCls:t}=e,n=`${t}-item`;return{[t]:{position:`relative`,boxSizing:`border-box`,display:`flex`,flexDirection:`column`,flexWrap:`wrap`,"&-rtl":{direction:`rtl`},[`& > ${n}`]:{boxSizing:`border-box`,"&-fade":{"&-appear":{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseOut}`,opacity:0,"&-active":{opacity:1}},"&-leave":{transition:`opacity ${e.motionDurationFast} ${e.motionEaseOut}`,opacity:1,"&-active":{opacity:0}}},[`&:not(${n}-fade)`]:{transition:[`left`,`right`,`top`].map(t=>`${t} ${e.motionDurationSlow} ${e.motionEaseOut}`).join(`,`)}}}}}),TK=$.forwardRef((e,t)=>{let{rootClassName:n,className:r,style:i,classNames:a,styles:o,columns:s,prefixCls:c,gutter:l=0,items:u,itemRender:d,onLayoutChange:f,fresh:p}=e,{getPrefixCls:m,direction:h,className:g,style:_,classNames:v,styles:y}=Wt(`masonry`),b=m(`masonry`,c),x=m(),[C,w]=wK(b,la(b)),[T,E]=Sr(x,`masonry`),D=$.useRef(null);$.useImperativeHandle(t,()=>({nativeElement:D.current}));let[O,k]=SK(),[A,j]=$.useState([]);$.useEffect(()=>{j(u||[])},[u]);let M=Zv(),[N=0,P=N]=NR(l,M),F=$.useMemo(()=>{if(!s)return 3;if(Ei(s))return s;let e=Gv.find(e=>M[e]&&s[e]!==void 0);return e?s[e]:s.xs??1},[s,M]),I={...e,columns:F},[L,R]=zi([v,a],[y,o],{props:I}),[z,B]=$.useState([]),V=bK(()=>{let e=A.map((e,t)=>{let n=e.key??t,r=k(n)?.getBoundingClientRect();return[n,r?r.height:0,e.column]});B(t=>tt(t,e)?t:e)}),[H,U]=xK(z,F,P),W=$.useMemo(()=>A.map((e,t)=>{let n=e.key??t;return{item:e,itemIndex:t,itemKey:n,key:n,position:H.get(n)}}),[A,H]);$.useEffect(()=>{V()},[A,F]);let[G,ee]=$.useState([]);return Pe(()=>{f&&W.every(({position:e})=>e)&&ee(e=>{let t=W.map(({item:e,position:t})=>[e,t.column]);return tt(e,t)?e:t})},[W]),Pe(()=>{f&&u&&u.length===G.length&&f(G.map(([e,t])=>({...e,column:t})))},[G]),$.createElement(jt,{onResize:V},$.createElement(`div`,{ref:D,className:X(b,g,L.root,n,r,C,w,{[`${b}-rtl`]:h===`rtl`}),style:{height:U,...R.root,..._,...i},onLoad:V,onError:V},$.createElement(Ci,{keys:W,component:!1,motionAppear:!0,motionLeave:!0,motionName:`${b}-item-fade`},(e,t)=>{let{item:n,itemKey:r,position:i={},itemIndex:a,key:o,className:s,style:c}=e,{column:l=0}=i,u={[T(`item-width`)]:`calc((100% + ${N}px) / ${F})`,insetInlineStart:`calc(${E(`item-width`)} * ${l})`,width:`calc(${E(`item-width`)} - ${N}px)`,top:i.top,position:`absolute`};return $.createElement(CK,{prefixCls:b,key:o,item:n,style:{...c,...R.item,...u},className:X(L.item,s),ref:S(t,e=>O(r,e)),index:a,itemRender:d,column:l,onResize:p?V:null})})))});function EK(){let[e,t]=(0,$.useState)({id:0,callback:null}),n=(0,$.useCallback)(e=>{t(({id:t})=>({id:t+1,callback:e}))},[]);return(0,$.useEffect)(()=>{e.callback?.()},[e]),n}var DK=$.createContext(null);function OK(e){let{notFoundContent:t,activeIndex:n,setActiveIndex:r,selectOption:i,onFocus:a,onBlur:o,onScroll:s}=$.useContext(DK),{prefixCls:c,options:l,opened:u}=e,d=l[n]||{},f=(0,$.useRef)(null);return(0,$.useEffect)(()=>{if(n===-1||!f.current||!u)return;let e=f.current?.findItem?.({key:d.key});e&&e.scrollIntoView({block:`nearest`,inline:`nearest`})},[n,d.key,u]),$.createElement(eS,{ref:f,prefixCls:`${c}-menu`,activeKey:d.key,onSelect:({key:e})=>{i(l.find(({key:t})=>t===e))},onFocus:a,onBlur:o,onScroll:s},l.map((e,t)=>{let{key:n,disabled:i,className:a,style:o,label:s}=e;return $.createElement(Ax,{key:n,disabled:i,className:a,style:o,onMouseEnter:()=>{i||r(t)}},s)}),!l.length&&$.createElement(Ax,{disabled:!0},t))}var kK={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}}},AK=e=>{let{prefixCls:t,options:n,children:r,visible:i,transitionName:a,getPopupContainer:o,popupClassName:s,popupStyle:c,direction:l,placement:u}=e,d=`${t}-dropdown`,[f,p]=$.useState(!1),m=$.createElement(OK,{prefixCls:d,options:n,opened:f}),h=(0,$.useMemo)(()=>{let e;return e=l===`rtl`?u===`top`?`topLeft`:`bottomLeft`:u===`top`?`topRight`:`bottomRight`,e},[l,u]);return $.createElement(No,{prefixCls:d,popupVisible:i,popup:m,popupPlacement:h,popupMotion:{motionName:a},builtinPlacements:kK,getPopupContainer:o,popupClassName:s,popupStyle:c,afterOpenChange:p},r)},jK=()=>null;function MK(e){let{selectionStart:t}=e;return e.value.slice(0,t)}function NK(e,t){return t.reduce((t,n)=>{let r=e.lastIndexOf(n);return r>t.location?{location:r,prefix:n}:t},{location:-1,prefix:``})}function PK(e){return(e||``).toLowerCase()}function FK(e,t,n){let r=e[0];if(!r||r===n)return e;let i=e,a=t.length;for(let e=0;e<a;e+=1)if(PK(i[e])!==PK(t[e])){i=i.slice(e);break}else e===a-1&&(i=i.slice(a));return i}function IK(e,t){let{measureLocation:n,prefix:r,targetText:i,selectionStart:a,split:o}=t,s=e.slice(0,n);s[s.length-o.length]===o&&(s=s.slice(0,s.length-o.length)),s&&(s=`${s}${o}`);let c=FK(e.slice(a),i.slice(a-n-r.length),o);c.slice(0,o.length)===o&&(c=c.slice(o.length));let l=`${s}${r}${i}${o}`;return{text:`${l}${c}`,selectionLocation:l.length}}function LK(e,t){e.setSelectionRange(t,t),e.blur(),e.focus()}function RK(e,t){return!t||e.indexOf(t)===-1}function zK(e,{value:t=``}){let n=e.toLowerCase();return t.toLowerCase().indexOf(n)!==-1}var BK=$.createContext({});function VK(){return VK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VK.apply(this,arguments)}var HK=(0,$.forwardRef)((e,t)=>{let{prefixCls:n,className:r,style:i,classNames:a,styles:o,prefix:s=`@`,split:c=` `,notFoundContent:l=`Not Found`,value:u,defaultValue:d,children:p,options:m,allowClear:h,hasWrapper:g,silent:_,validateSearch:y=RK,filterOption:b=zK,onChange:x,onKeyDown:S,onKeyUp:C,onPressEnter:w,onSearch:T,onSelect:E,onFocus:D,onBlur:O,transitionName:k,placement:A,direction:j,getPopupContainer:M,popupClassName:N,rows:P=1,visible:F,onPopupScroll:I,...L}=e,R=(0,$.useMemo)(()=>Array.isArray(s)?s:[s],[s]),z=(0,$.useRef)(null),B=(0,$.useRef)(null),V=(0,$.useRef)(null),H=()=>B.current?.resizableTextArea?.textArea;$.useImperativeHandle(t,()=>({focus:()=>B.current?.focus(),blur:()=>B.current?.blur(),textarea:B.current?.resizableTextArea?.textArea,nativeElement:z.current}));let[U,W]=(0,$.useState)(!1),[G,ee]=(0,$.useState)(``),[K,q]=(0,$.useState)(``),[ne,re]=(0,$.useState)(0),[J,ie]=(0,$.useState)(0),[ae,oe]=(0,$.useState)(!1),se=te(e.id),[ce,le]=v(d||``,u),{open:Y}=(0,$.useContext)(BK);(0,$.useEffect)(()=>{U&&V.current&&(V.current.scrollTop=H().scrollTop)},[U]);let[ue,de,fe,pe]=$.useMemo(()=>{if(Y)for(let e=0;e<R.length;e+=1){let t=R[e],n=ce.lastIndexOf(t);if(n>=0)return[!0,``,t,n]}return[U,G,K,ne]},[Y,U,R,ce,G,K,ne]),me=$.useCallback(e=>{let t;return t=m&&m.length>0?m.map(e=>({...e,key:`${e?.key??e.value}-${se}`})):Je(p).map(({props:e,key:t})=>({...e,label:e.children,key:`${t||e.value}-${se}`})),t.filter(t=>b===!1?!0:b(e,t))},[m,se,p,b]),he=$.useMemo(()=>me(de),[me,de]),ge=$.useCallback((e,t=1)=>{let n=he.length;if(!n)return-1;for(let r=0;r<n;r+=1){let i=(e+r*t+n)%n;if(!he[i]?.disabled)return i}return-1},[he]);(0,$.useEffect)(()=>{if(!ue)return;let e=he[J];(!e||e.disabled)&&ie(ge(0))},[ue,he,J,ge,ie]);let _e=EK(),ve=(e,t,n)=>{W(!0),ee(e),q(t),re(n),ie(ge(0))},ye=e=>{W(!1),re(0),ee(``),_e(e)},be=e=>{le(e),x?.(e)},xe=({target:{value:e}})=>{be(e)},Se=e=>{if(!e||e.disabled)return;let{value:t=``}=e,{text:n,selectionLocation:r}=IK(ce,{measureLocation:pe,targetText:t,prefix:fe,selectionStart:H()?.selectionStart,split:c});be(n),ye(()=>{LK(H(),r)}),E?.(e,fe)},Ce=e=>{let{which:t}=e;if(S?.(e),ue){if(t===f.UP||t===f.DOWN){if(!he.length)return;let n=t===f.UP?-1:1,r=ge(J+n,n);r!==-1&&ie(r),e.preventDefault()}else if(t===f.ESC)ye();else if(t===f.ENTER){if(e.preventDefault(),_)return;if(!he.length){ye();return}let t=J;if((!he[t]||he[t].disabled)&&(t=ge(0)),t===-1){ye();return}ie(t),Se(he[t])}}},we=e=>{let{key:t,which:n}=e,r=e.target,i=MK(r),{location:a,prefix:o}=NK(i,R);if(C?.(e),[f.ESC,f.UP,f.DOWN,f.ENTER].indexOf(n)===-1)if(a!==-1){let e=i.slice(a+o.length),r=y(e,c),s=!!me(e).length;r?(t===o||t===`Shift`||n===f.ALT||t===`AltGraph`||ue||e!==de&&s)&&ve(e,o,a):ue&&ye(),T&&r&&T(e,o)}else ue&&ye()},Te=e=>{!ue&&w&&w(e)},Ee=(0,$.useRef)(),De=e=>{window.clearTimeout(Ee.current),!ae&&e&&D&&D(e),oe(!0)},Oe=e=>{Ee.current=window.setTimeout(()=>{oe(!1),ye(),O?.(e)},0)},ke=()=>{De()},Ae=()=>{Oe()},je=e=>{I?.(e)},Me=$.useMemo(()=>{let e=o?.textarea?.resize??i?.resize,t={...o?.textarea};return e!==void 0&&(t.resize=e),{...o,textarea:t}},[i,o]),Ne=$.createElement($.Fragment,null,$.createElement(mB,VK({classNames:{textarea:a?.textarea},styles:Me,ref:B,value:ce},L,{rows:P,onChange:xe,onKeyDown:Ce,onKeyUp:we,onPressEnter:Te,onFocus:De,onBlur:Oe})),ue&&$.createElement(`div`,{ref:V,className:`${n}-measure`},ce.slice(0,pe),$.createElement(DK.Provider,{value:{notFoundContent:l,activeIndex:J,setActiveIndex:ie,selectOption:Se,onFocus:ke,onBlur:Ae,onScroll:je}},$.createElement(AK,{prefixCls:n,transitionName:k,placement:A,direction:j,options:he,visible:!0,getPopupContainer:M,popupClassName:X(N,a?.popup),popupStyle:o?.popup},$.createElement(`span`,null,fe))),ce.slice(pe+fe.length)));return g?Ne:$.createElement(`div`,{className:X(n,r),style:i,ref:z},Ne)}),UK=(0,$.forwardRef)(({suffix:e,prefixCls:t=`rc-mentions`,defaultValue:n,value:r,id:i,allowClear:a,onChange:o,classNames:s,styles:c,className:l,disabled:u,onClear:d,...f},p)=>{let m=!!(e||a),h=(0,$.useRef)(null),g=(0,$.useRef)(null);(0,$.useImperativeHandle)(p,()=>({...g.current,nativeElement:h.current?.nativeElement||g.current?.nativeElement}));let[_,y]=v(n||``,r),b=e=>{y(e),o?.(e)};return $.createElement(Yz,{suffix:e,prefixCls:t,value:_,allowClear:a,handleReset:()=>{b(``)},className:X(t,l,{[`${t}-has-suffix`]:m}),classNames:s,disabled:u,ref:h,onClear:d},$.createElement(HK,VK({className:s?.mentions,styles:c,classNames:s,prefixCls:t,id:i,ref:g,onChange:b,disabled:u,hasWrapper:m},f)))});UK.Option=jK;var WK=UK,GK=(e,t={})=>!Ti(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],KK=e=>{let{componentCls:t,fontSize:n,paddingXXS:r,colorBgElevated:i,borderRadiusLG:a,boxShadowSecondary:o,itemPaddingVertical:s,controlPaddingHorizontal:c,colorText:l,borderRadius:u,lineHeight:d,colorTextDisabled:f,controlItemBgHover:p,motionDurationSlow:m}=e;return{[t]:{"&-dropdown":{...ur(e),position:`absolute`,top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:`border-box`,fontSize:n,fontVariant:`initial`,padding:r,backgroundColor:i,borderRadius:a,outline:`none`,boxShadow:o,"&-hidden":{display:`none`},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,margin:0,paddingInlineStart:0,overflow:`auto`,listStyle:`none`,outline:`none`,"&-item":{...lr,position:`relative`,display:`block`,minWidth:e.controlItemWidth,padding:`${Q(s)} ${Q(c)}`,color:l,borderRadius:u,fontWeight:`normal`,lineHeight:d,cursor:`pointer`,transition:`background-color ${m} ease`,"&:hover":{backgroundColor:p},"&-disabled":{color:f,cursor:`not-allowed`,"&:hover":{color:f,backgroundColor:p,cursor:`not-allowed`}},"&-selected":{color:l,fontWeight:e.fontWeightStrong,backgroundColor:p},"&-active":{backgroundColor:p}}}}}}},qK=e=>{let{componentCls:t,colorText:n,antCls:r,colorTextDisabled:i,calc:a}=e,[o,s]=Sr(r,`cmp-mentions`);return{[t]:[ur(e),XN(e,{largeStyle:{padding:0},smallStyle:{padding:0}}),FN(e),VN(e),RN(e),KN(e),{[o(`padding-inline`)]:e.paddingInline,[o(`padding-block`)]:e.paddingBlock,[o(`control-height`)]:e.controlHeight,display:`flex`,padding:0,whiteSpace:`pre-wrap`,"> textarea":[ur(e),qN(e.colorTextPlaceholder),{background:`transparent`,border:`none`,borderRadius:`inherit`,outline:`none`,flex:`auto`,minWidth:0,resize:`none`,"&:disabled":{color:i}}],[`> textarea, ${t}-measure`]:{color:n,boxSizing:`border-box`,margin:0,minHeight:a(s(`control-height`)).sub(a(e.lineWidth).mul(2).equal()).equal(),paddingInline:s(`padding-inline`),paddingBlock:s(`padding-block`),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`},[`${t}-measure`]:{position:`absolute`,inset:0,zIndex:-1,color:`transparent`,pointerEvents:`none`,"> span":{display:`inline-block`,minHeight:`1em`}},[`${t}-suffix`]:{display:`inline-flex`,alignItems:`center`,flex:`none`,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,position:`absolute`,top:`50%`,transform:`translateY(-50%)`,insetInlineEnd:s(`padding-inline`),columnGap:e.marginXS,[`${t}-clear-icon`]:{cursor:`pointer`,border:0,background:`transparent`,"&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`}},[`${r}-form-item-feedback-icon`]:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`}}},{"&-has-suffix":{"> textarea":{paddingInlineEnd:a(e.paddingXXS).mul(1.5).add(e.fontSizeIcon).add(s(`padding-inline`)).equal()}}},{"&-disabled":{"> textarea":{...MN(e)}}},{"&-lg":{[o(`padding-inline`)]:e.paddingInlineLG,[o(`padding-block`)]:e.paddingBlockLG,[o(`control-height`)]:e.controlHeightLG},"&-sm":{[o(`padding-inline`)]:e.paddingInlineSM,[o(`padding-block`)]:e.paddingBlockSM,[o(`control-height`)]:e.controlHeightSM}}]}},JK=yr(`Mentions`,e=>{let t=wn(e,kN(e));return[qK(t),KK(t)]},e=>({...AN(e),dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50,itemPaddingVertical:(e.controlHeight-e.fontHeight)/2})),{Option:YK}=WK;function XK(){return!0}var ZK=$.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,disabled:a,loading:o,filterOption:s,children:c,notFoundContent:l,options:u,status:d,allowClear:f,popupClassName:p,style:m,variant:h,classNames:g,styles:_,size:v,...y}=e,[b,x]=$.useState(!1),C=S(t,$.useRef(null)),w=jl(e=>v??e),{getPrefixCls:T,direction:E,allowClear:D,className:O,style:k,classNames:A,styles:j}=Wt(`mentions`),{renderEmpty:M}=$.useContext(Vt),{status:N,hasFeedback:P,feedbackIcon:F}=$.useContext(pm),I=lv(N,d),L=$.useContext(Vo),R=a??L,z=T(`mentions`,n),B={...e,disabled:R,status:I,variant:h},[V,H]=zi([A,g],[j,_],{props:B}),U=(...e)=>{y.onFocus&&y.onFocus.apply(y,e),x(!0)},W=(...e)=>{y.onBlur&&y.onBlur.apply(y,e),x(!1)},G=$.useMemo(()=>l===void 0?M?.(`Select`)||$.createElement(_v,{componentName:`Select`}):l,[l,M]),ee=$.useMemo(()=>o?$.createElement(YK,{value:`ANTD_SEARCHING`,disabled:!0},$.createElement(dK,{size:`small`})):c,[o,c]),K=o?[{value:`ANTD_SEARCHING`,disabled:!0,label:$.createElement(dK,{size:`small`})}]:u,q=o?XK:s,te=Js({allowClear:f,contextAllowClear:D,defaultAllowClear:!1,componentName:`Mentions`}),ne=la(z),[re,J]=JK(z,ne),[ie,ae]=vv(`mentions`,h),[oe]=vc(`SelectLike`,H.popup?.zIndex),se=P&&$.createElement($.Fragment,null,F),ce=X(O,r,i,J,ne,V.root,{[`${z}-sm`]:w===`small`,[`${z}-lg`]:w===`large`});return $.createElement(WK,{silent:o,prefixCls:z,notFoundContent:G,className:ce,disabled:R,allowClear:te,direction:E,style:{...H.root,...k,...m},...y,filterOption:q,onFocus:U,onBlur:W,ref:C,options:K,suffix:se,styles:{textarea:H.textarea,popup:{...H.popup,zIndex:oe},suffix:H.suffix},classNames:{textarea:X(V.textarea),popup:X(V.popup,p,i,re,J,ne),suffix:V.suffix,mentions:X({[`${z}-disabled`]:R,[`${z}-focused`]:b,[`${z}-rtl`]:E===`rtl`},re),variant:X({[`${z}-${ie}`]:ae},cv(z,I)),affixWrapper:re}},ee)});ZK.Option=YK,ZK._InternalPanelDoNotUseOrYouWillBeFired=og(ZK,void 0,void 0,`mentions`),ZK.getMentions=(e=``,t={})=>{let{prefix:n=`@`,split:r=` `}=t,i=GK(n);return e.split(r).reduce((e,t=``)=>{let n=null;if(i.some(e=>t.slice(0,e.length)===e?(n=e,!0):!1),n!==null){let r={prefix:n,value:t.slice(n.length)};r.value&&e.push(r)}return e},[])};var QK=e=>{let{items:t,classNames:n,style:r}=e,{getPrefixCls:i}=Wt(`message`),a=i(`message`),o=la(a),[s,c]=el(a,o),l=`${a}-notice`,u=t.map(e=>{let{content:t,duration:n,key:r,type:i}=e,o=i?`${l}-icon-${i}`:void 0;return{key:r,duration:n,icon:nl(i),title:t,className:`${l}-${i}`,classNames:{wrapper:`${a}-${i}`,icon:o}}});return $.createElement(Ls,{prefixCls:a,placement:`top`,configList:u,className:X(s,c,o),classNames:{...n,wrapper:n?.wrapper,title:n?.title},style:r,stack:!1})},$K=null,eq=e=>e(),tq=[],nq={};function rq(){let{getContainer:e,duration:t,rtl:n,maxCount:r,top:i,stack:a}=nq,o=e?.()||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i,stack:a}}var iq=$.forwardRef((e,t)=>{let{messageConfig:n,sync:r}=e,{getPrefixCls:i}=(0,$.useContext)(Vt),a=nq.prefixCls||i(`message`),o=(0,$.useContext)($h),[s,c]=pl({...n,prefixCls:a,...o.message});return $.useImperativeHandle(t,()=>{let e={...s};return Object.keys(e).forEach(t=>{e[t]=(...e)=>(r(),s[t].apply(s,e))}),{instance:e,sync:r}}),c}),aq=$.forwardRef((e,t)=>{let[n,r]=$.useState(rq),i=()=>{r(rq)};$.useEffect(i,[]);let a=as(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),l=$.createElement(iq,{ref:t,sync:i,messageConfig:n});return $.createElement(ss,{prefixCls:o,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(l):l)}),oq=()=>{if(!$K){let e=document.createDocumentFragment(),t={fragment:e};$K=t,eq(()=>{Me($.createElement(aq,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,oq())})}}),e)});return}$K.instance&&(tq.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case`open`:eq(()=>{let t=$K.instance.open({...nq,...e.config});t?.then(e.resolve),e.setCloseFn(t)});break;case`destroy`:eq(()=>{$K?.instance.destroy(e.key)});break;default:eq(()=>{var n;let r=(n=$K.instance)[t].apply(n,Lt(e.args));r?.then(e.resolve),e.setCloseFn(r)})}}),tq=[])};function sq(e){nq={...nq,...e},eq(()=>{$K?.sync?.()})}function cq(e){let t=al(t=>{let n,r={type:`open`,config:e,resolve:t,setCloseFn:e=>{n=e}};return tq.push(r),()=>{n?eq(()=>{n()}):r.skipped=!0}});return oq(),t}function lq(e,t){let n=al(n=>{let r,i={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return tq.push(i),()=>{r?eq(()=>{r()}):i.skipped=!0}});return oq(),n}var uq=e=>{tq.push({type:`destroy`,key:e}),oq()},dq=[`success`,`info`,`warning`,`error`,`loading`],fq={open:cq,destroy:uq,config:sq,useMessage:ml,_InternalPanelDoNotUseOrYouWillBeFired:rl,_InternalListDoNotUseOrYouWillBeFired:QK};dq.forEach(e=>{fq[e]=(...t)=>lq(e,t)});var pq=ag(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f}=$.useContext(Vt),{className:p,style:m,classNames:h,styles:g}=Wt(`modal`),_=f(),v=t||f(`modal`),y=la(_),[b,x]=yh(v,y),[S,C]=zi([h,l],[g,u],{props:e}),w=`${v}-confirm`,T={};return T=a?{closable:i??!1,title:``,footer:``,children:$.createElement(wh,{...e,prefixCls:v,confirmPrefixCls:w,rootPrefixCls:_,content:s})}:{closable:i??!0,title:o,footer:c!==null&&$.createElement(th,{...e}),children:s},$.createElement(vf,{prefixCls:v,className:X(b,`${v}-pure-panel`,a&&w,a&&`${w}-${a}`,n,p,x,y,S.root),style:{...m,...C.root},...d,closeIcon:eh(v,r),closable:i,classNames:S,styles:C,...T})});function mq(e){return jh(Mh(e))}var hq=xh;hq.useModal=Vh,hq.info=function(e){return jh(Nh(e))},hq.success=function(e){return jh(Ph(e))},hq.error=function(e){return jh(Fh(e))},hq.warning=mq,hq.warn=mq,hq.confirm=function(e){return jh(Ih(e))},hq.destroyAll=function(){for(;Dh.length;){let e=Dh.pop();e&&e()}},hq.config=Lh,hq._InternalPanelDoNotUseOrYouWillBeFired=pq;var gq=e=>{let{items:t,classNames:n,placement:r=`topRight`,style:i}=e,{getPrefixCls:a}=Wt(`notification`),o=a(`notification`),s=la(o),[c,l]=Kc(o,s),u=`${o}-notice`,d=t.map(e=>{let{actions:t,description:n,duration:r,key:i,showProgress:a,title:o,type:s}=e,c=`${u}-icon-${s}`;return{key:i,actions:t,closable:{closeIcon:Uh(u)},description:n,duration:r,icon:Hh[s],showProgress:a,title:o,className:`${u}-${s}`,classNames:{icon:c}}});return $.createElement(Ls,{prefixCls:o,placement:r,configList:d,className:X(c,l,s),classNames:n,style:i,stack:!1})},_q=null,vq=e=>e(),yq=[],bq={};function xq(){let{getContainer:e,rtl:t,maxCount:n,top:r,bottom:i,showProgress:a,pauseOnHover:o}=bq,s=e?.()||document.body;return{getContainer:()=>s,rtl:t,maxCount:n,top:r,bottom:i,showProgress:a,pauseOnHover:o}}var Sq=$.forwardRef((e,t)=>{let{notificationConfig:n,sync:r}=e,{getPrefixCls:i}=(0,$.useContext)(Vt),a=bq.prefixCls||i(`notification`),o=(0,$.useContext)($h),[s,c]=Zh({...n,prefixCls:a,...o.notification});return $.useEffect(r,[]),$.useImperativeHandle(t,()=>{let e={...s};return Object.keys(e).forEach(t=>{e[t]=(...e)=>(r(),s[t].apply(s,e))}),{instance:e,sync:r}}),c}),Cq=$.forwardRef((e,t)=>{let[n,r]=$.useState(xq),i=()=>{r(xq)};$.useEffect(i,[]);let a=as(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),l=$.createElement(Sq,{ref:t,sync:i,notificationConfig:n});return $.createElement(ss,{prefixCls:o,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(l):l)}),wq=()=>{if(!_q){let e=document.createDocumentFragment(),t={fragment:e};_q=t,vq(()=>{Me($.createElement(Cq,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,wq())})}}),e)});return}_q.instance&&(yq.forEach(e=>{switch(e.type){case`open`:vq(()=>{_q.instance.open({...bq,...e.config})});break;case`destroy`:vq(()=>{_q?.instance?.destroy(e.key)});break}}),yq=[])};function Tq(e){bq={...bq,...e},vq(()=>{_q?.sync?.()})}function Eq(e){yq.push({type:`open`,config:e}),wq()}var Dq=e=>{yq.push({type:`destroy`,key:e}),wq()},Oq=[`success`,`info`,`warning`,`error`],kq={open:Eq,destroy:Dq,config:Tq,useNotification:Qh,_InternalPanelDoNotUseOrYouWillBeFired:Wh,_InternalListDoNotUseOrYouWillBeFired:gq};Oq.forEach(e=>{kq[e]=t=>Eq({...t,type:e})});var Aq=yr(`Popconfirm`,e=>{let{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:c,fontSize:l,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:l},[`${t}-message`]:{marginBottom:c,display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${t}-message-icon ${n}`]:{color:o,fontSize:l,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:`normal`}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:`end`,whiteSpace:`nowrap`,button:{marginInlineStart:c}}}}},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),jq=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:c=`primary`,icon:l=$.createElement(re,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:m,classNames:h,styles:g}=e,{getPrefixCls:_}=$.useContext(Vt),[v]=ja(`Popconfirm`,wa.Popconfirm),y=ry(i),b=ry(a);return $.createElement(`div`,{className:`${t}-inner-content`,onClick:m},$.createElement(`div`,{className:`${t}-message`},l&&$.createElement(`span`,{className:X(`${t}-message-icon`,h?.icon),style:g?.icon},l),$.createElement(`div`,{className:`${t}-message-text`},y&&$.createElement(`div`,{className:X(`${t}-title`,h?.title),style:g?.title},y),b&&$.createElement(`div`,{className:X(`${t}-description`,h?.content),style:g?.content},b))),$.createElement(`div`,{className:`${t}-buttons`},u&&$.createElement(of,{onClick:p,size:`small`,...r},o||v?.cancelText),$.createElement(sf,{buttonProps:{size:`small`,...Hl(c),...n},actionFn:f,close:d,prefixCls:_(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},s||v?.okText)))},Mq=e=>{let{prefixCls:t,placement:n,className:r,style:i,...a}=e,{getPrefixCls:o}=$.useContext(Vt),s=o(`popconfirm`,t);return Aq(s),$.createElement(By,{placement:n,className:X(s,r),style:i,content:$.createElement(jq,{prefixCls:s,...a})})},Nq=$.forwardRef((e,t)=>{let{prefixCls:n,placement:r=`top`,trigger:i,okType:a=`primary`,icon:o=$.createElement(re,null),children:s,overlayClassName:c,onOpenChange:l,overlayStyle:d,styles:f,arrow:p,classNames:m,...h}=e,{getPrefixCls:g,className:_,style:y,classNames:b,styles:x,arrow:S,trigger:C}=Wt(`popconfirm`),[w,T]=v(e.defaultOpen??!1,e.open),E=Sy(p,S),D=i||C||`click`,O=e=>{T(e),l?.(e)},k=()=>{O(!1)},A=t=>e.onConfirm?.call(void 0,t),j=t=>{O(!1),e.onCancel?.call(void 0,t)},M=t=>{let{disabled:n=!1}=e;n||O(t)},N=g(`popconfirm`,n),P={...e,placement:r,trigger:D,okType:a,overlayStyle:d,styles:f,classNames:m},[F,I]=zi([b,m],[x,f],{props:P}),L=X(N,_,c,F.root);return Aq(N),$.createElement(Vy,{arrow:E,...u(h,[`title`]),trigger:D,placement:r,onOpenChange:M,open:w,ref:t,classNames:{root:L,container:F.container,arrow:F.arrow},styles:{root:{...y,...I.root,...d},container:I.container,arrow:I.arrow},content:$.createElement(jq,{okType:a,icon:o,...e,prefixCls:N,close:k,onConfirm:A,onCancel:j,classNames:F,styles:I}),"data-popover-inject":!0},s)});Nq._InternalPanelDoNotUseOrYouWillBeFired=Mq;var Pq={percent:0,prefixCls:`rc-progress`,strokeColor:`#2db7f5`,strokeLinecap:`round`,strokeWidth:1,railColor:`#D9D9D9`,railWidth:1,gapPosition:`bottom`,loading:!1},Fq=()=>{let e=(0,$.useRef)([]),t=(0,$.useRef)(null);return(0,$.useEffect)(()=>{let n=Date.now(),r=!1;e.current.forEach(e=>{if(!e)return;r=!0;let i=e.style;i.transitionDuration=`.3s, .3s, .3s, .06s`,t.current&&n-t.current<100&&(i.transitionDuration=`0s, 0s`)}),r&&(t.current=Date.now())}),e.current},Iq=({bg:e,children:t})=>$.createElement(`div`,{style:{width:`100%`,height:`100%`,background:e}},t);function Lq(e,t){return Object.keys(e).map(n=>{let r=`${Math.floor(parseFloat(n)*t)}%`;return`${e[n]} ${r}`})}var Rq=$.forwardRef((e,t)=>{let{prefixCls:n,color:r,gradientId:i,radius:a,className:o,style:s,ptg:c,strokeLinecap:l,strokeWidth:u,size:d,gapDegree:f}=e,p=r&&typeof r==`object`,m=p?`#FFF`:void 0,h=d/2,g=$.createElement(`circle`,{className:X(`${n}-circle-path`,o),r:a,cx:h,cy:h,stroke:m,strokeLinecap:l,strokeWidth:u,opacity:c===0?0:1,style:s,ref:t});if(!p)return g;let _=`${i}-conic`,v=f?`${180+f/2}deg`:`0deg`,y=Lq(r,(360-f)/360),b=Lq(r,1),x=`conic-gradient(from ${v}, ${y.join(`, `)})`,S=`linear-gradient(to ${f?`bottom`:`top`}, ${b.join(`, `)})`;return $.createElement($.Fragment,null,$.createElement(`mask`,{id:_},g),$.createElement(`foreignObject`,{x:0,y:0,width:d,height:d,mask:`url(#${_})`},$.createElement(Iq,{bg:S},$.createElement(Iq,{bg:x}))))}),zq=(e,t,n,r,i,a,o,s,c,l,u=0)=>{let d=n/100*360*((360-a)/360),f=a===0?0:{bottom:0,top:180,left:90,right:-90}[o],p=(100-r)/100*t;return c===`round`&&r!==100&&(p+=l/2,p>=t&&(p=t-.01)),{stroke:typeof s==`string`?s:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:p+u,transform:`rotate(${i+d+f}deg)`,transformOrigin:`50px 50px`,transition:`stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s`,fillOpacity:0}},Bq=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};let n=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:`rotate(0deg)`,animation:`${n} 1s linear infinite`},indeterminateStyleAnimation:$.createElement(`style`,null,`@keyframes ${n} {
241
+ 0% { transform: rotate(0deg); }
242
+ 100% { transform: rotate(360deg); }
243
+ }`)}});function Vq(){return Vq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vq.apply(this,arguments)}function Hq(e){let t=e??[];return Array.isArray(t)?t:[t]}var Uq=e=>{let{id:t,prefixCls:n,classNames:r={},styles:i={},steps:a,strokeWidth:o,railWidth:s,gapDegree:c=0,gapPosition:l,railColor:u,strokeLinecap:d,style:f,className:p,strokeColor:m,percent:h,loading:g,..._}={...Pq,...e},v=te(t),y=`${v}-gradient`,b=50-o/2,x=Math.PI*2*b,S=c>0?90+c/2:-90,C=x*((360-c)/360),{count:w,gap:T}=typeof a==`object`?a:{count:a,gap:2},E=Hq(h),D=Hq(m),O=D.find(e=>e&&typeof e==`object`),k=O&&typeof O==`object`?`butt`:d,{indeterminateStyleProps:A,indeterminateStyleAnimation:j}=Bq({id:v,loading:g}),M=zq(x,C,0,100,S,c,l,u,k,o),N=Fq(),P=()=>{let e=0;return E.map((t,a)=>{let s=D[a]||D[D.length-1],u=zq(x,C,e,t,S,c,l,s,k,o);return e+=t,$.createElement(Rq,{key:a,color:s,ptg:t,radius:b,prefixCls:n,gradientId:y,className:r.track,style:{...u,...A,...i.track},strokeLinecap:k,strokeWidth:o,gapDegree:c,ref:e=>{N[a]=e},size:100})}).reverse()},F=()=>{let e=Math.round(w*(E[0]/100)),t=100/w,a=0;return Array(w).fill(null).map((s,d)=>{let f=d<=e-1?D[0]:u,p=f&&typeof f==`object`?`url(#${y})`:void 0,m=zq(x,C,a,t,S,c,l,f,`butt`,o,T);return a+=(C-m.strokeDashoffset+T)*100/C,$.createElement(`circle`,{key:d,className:X(`${n}-circle-path`,r.track),r:b,cx:50,cy:50,stroke:p,strokeWidth:o,opacity:1,style:{...m,...i.track},ref:e=>{N[d]=e}})})};return $.createElement(`svg`,Vq({className:X(`${n}-circle`,r.root,p),viewBox:`0 0 100 100`,style:{...i.root,...f},id:t,role:`presentation`},_),!w&&$.createElement(`circle`,{className:X(`${n}-circle-rail`,r.rail),r:b,cx:50,cy:50,stroke:u,strokeLinecap:k,strokeWidth:s||o,style:{...M,...i.rail}}),w?F():P(),j)};function Wq(e){return!e||e<0?0:e>100?100:e}function Gq({success:e}){let t;return e&&`percent`in e&&(t=e.percent),t}var Kq=({percent:e,success:t})=>{let n=Wq(Gq({success:t}));return[n,Wq(Wq(e)-n)]},qq=({success:e={},strokeColor:t})=>{let{strokeColor:n}=e;return[n||Te.green,t||null]},Jq=(e,t,n)=>{let r=-1,i=-1;if(t===`step`){let t=n.steps,a=n.strokeWidth;typeof e==`string`||e===void 0?(r=e===`small`?2:14,i=a??8):Ei(e)?[r,i]=[e,e]:[r=14,i=8]=Array.isArray(e)?e:[e.width,e.height],r*=t}else if(t===`line`){let t=n?.strokeWidth;typeof e==`string`||e===void 0?i=t||(e===`small`?6:8):Ei(e)?[r,i]=[e,e]:[r=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else (t===`circle`||t===`dashboard`)&&(typeof e==`string`||e===void 0?[r,i]=e===`small`?[60,60]:[120,120]:Ei(e)?[r,i]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return[r,i]},Yq=3,Xq=e=>Yq/e*100,Zq=[`root`,`body`,`indicator`],Qq=e=>{let{prefixCls:t,classNames:n,styles:r,railColor:i,trailColor:a,strokeLinecap:o=`round`,gapPosition:s,gapPlacement:c,gapDegree:l,width:d=120,type:f,children:p,success:m,size:h=d,steps:g}=e,{direction:_}=Wt(`progress`),v=i??a,[y,b]=Jq(h,`circle`),{strokeWidth:x}=e;x===void 0&&(x=Math.max(Xq(y),6));let S={width:y,height:b,fontSize:y*.15+6},C=$.useMemo(()=>{if(l||l===0)return l;if(f===`dashboard`)return 75},[l,f]),w=Kq(e),T=$.useMemo(()=>{let e=(c??s)||f===`dashboard`&&`bottom`||void 0,t=_===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[_,c,s,f]),E=Oi(e.strokeColor),D=qq({success:m,strokeColor:e.strokeColor}),O=X(`${t}-body`,{[`${t}-circle-gradient`]:E},n.body),k=$.createElement(Uq,{steps:g,percent:g?w[1]:w,strokeWidth:x,railWidth:x,strokeColor:g?D[1]:D,strokeLinecap:o,railColor:v,prefixCls:t,gapDegree:C,gapPosition:T,classNames:u(n,Zq),styles:u(r,Zq)}),A=y<=20,j=$.createElement(`div`,{className:O,style:{...S,...r.body}},k,!A&&p);return A?$.createElement(Ny,{title:p},j):j},$q=`--progress-line-stroke-color`,eJ=e=>{let t=e?`100%`:`-100%`;return new at(`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}})},tJ=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{...ur(e),display:`inline-flex`,"&-rtl":{direction:`rtl`},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:`nowrap`,verticalAlign:`middle`,wordBreak:`normal`,[n]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},nJ=e=>{let{componentCls:t}=e;return{[`${t}-line`]:{position:`relative`,width:`100%`,fontSize:e.fontSize,[`${t}-body`]:{display:`inline-flex`,alignItems:`center`,width:`100%`,gap:e.marginXS},[`${t}-rail`]:{flex:`auto`,background:e.remainingColor,borderRadius:e.lineBorderRadius,position:`relative`,width:`100%`,overflow:`hidden`},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:`""`,position:`absolute`,inset:0,backgroundColor:e.colorBgContainer,borderRadius:`inherit`,opacity:0,animationName:eJ(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:`infinite`}},[`${t}-track`]:{position:`absolute`,insetInlineStart:0,insetBlock:0,borderRadius:`inherit`,background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:`max-content`,display:`flex`,alignItems:`center`,"&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:`column`,alignItems:`center`,gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:`100%`,display:`flex`,justifyContent:`center`,[`&${t}-indicator-end`]:{justifyContent:`end`},[`&${t}-indicator-start`]:{justifyContent:`start`},[`&${t}-indicator-bright`]:{color:`rgba(0, 0, 0, 0.45)`}}}}},rJ=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:`relative`,lineHeight:1,backgroundColor:`transparent`},[`${t}-indicator`]:{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}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:`bottom`}}}},iJ=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:`inline-block`,"&-body":{display:`flex`,flexDirection:`row`,alignItems:`center`,gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},aJ=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},oJ=yr(`Progress`,e=>{let t=e.calc(e.marginXXS).div(2).equal(),n=wn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:`2.4s`});return[tJ(n),nJ(n),rJ(n),iJ(n),aJ(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:`1em`,circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`})),sJ=e=>{let t=[];return Object.keys(e).forEach(n=>{let r=Number.parseFloat(n.replace(/%/g,``));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((e,t)=>e.key-t.key),t.map(({key:e,value:t})=>`${t} ${e}%`).join(`, `)},cJ=(e,t)=>{let{from:n=Te.blue,to:r=Te.blue,direction:i=t===`rtl`?`to left`:`to right`,...a}=e;if(Object.keys(a).length!==0){let e=`linear-gradient(${i}, ${sJ(a)})`;return{background:e,[$q]:e}}let o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[$q]:o}},lJ=e=>{let{prefixCls:t,classNames:n,styles:r,direction:i,percent:a,size:o,strokeWidth:s,strokeColor:c,strokeLinecap:l=`round`,children:u,railColor:d,trailColor:f,percentPosition:p,success:m}=e,{align:h,type:g}=p,_=d??f,v=l===`square`||l===`butt`?0:void 0,[y,b]=Jq(o??[-1,s||(o===`small`?6:8)],`line`,{strokeWidth:s}),x={backgroundColor:_||void 0,borderRadius:v,height:b},S=`${t}-track`,C=c&&typeof c!=`string`?cJ(c,i):{[$q]:c,background:c},w={width:`${Wq(a)}%`,height:b,borderRadius:v,...C},T=Gq(e),E={width:`${Wq(T)}%`,height:b,borderRadius:v,backgroundColor:m?.strokeColor};return $.createElement(`div`,{className:X(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:h===`center`&&g===`outer`}),style:{width:y>0?y:`100%`,...r.body}},$.createElement(`div`,{className:X(`${t}-rail`,n.rail),style:{...x,...r.rail}},$.createElement(`div`,{className:X(S,n.track),style:{...w,...r.track}},g===`inner`&&u),T!==void 0&&$.createElement(`div`,{className:X(S,`${S}-success`,n.track),style:{...E,...r.track}})),g===`outer`&&u)},uJ=e=>{let{classNames:t,styles:n,size:r,steps:i,rounding:a=Math.round,percent:o=0,strokeWidth:s=8,strokeColor:c,railColor:l,trailColor:u,prefixCls:d,children:f}=e,p=a(o/100*i),[m,h]=Jq(r??[r===`small`?2:14,s],`step`,{steps:i,strokeWidth:s}),g=m/i,_=Array.from({length:i}),v=l??u;for(let e=0;e<i;e++){let r=Array.isArray(c)?c[e]:c;_[e]=$.createElement(`div`,{key:e,className:X(`${d}-steps-item`,{[`${d}-steps-item-active`]:e<=p-1},t.track),style:{backgroundColor:e<=p-1?r:v,width:g,height:h,...n.track}})}return $.createElement(`div`,{className:X(`${d}-steps-body`,t.body),style:n.body},_,f)},dJ=[`normal`,`exception`,`active`,`success`],fJ=$.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,classNames:a,styles:o,steps:s,strokeColor:c,percent:l=0,size:d=`medium`,showInfo:f=!0,type:p=`line`,status:m,format:h,style:g,percentPosition:v={},...y}=e,{align:b=`end`,type:x=`outer`}=v,S=Array.isArray(c)?c[0]:c,C=typeof c==`string`||Array.isArray(c)?c:void 0,w=$.useMemo(()=>S?new pe(typeof S==`string`?S:Object.values(S)[0]).isLight():!1,[c]),T=$.useMemo(()=>{let t=Gq(e);return Number.parseInt(t===void 0?(l??0)?.toString():(t??0)?.toString(),10)},[l,e.success]),E=$.useMemo(()=>!dJ.includes(m)&&T>=100?`success`:m||`normal`,[m,T]),{getPrefixCls:D,direction:O,className:k,style:A,classNames:j,styles:M}=Wt(`progress`),N=D(`progress`,n),[P,F]=oJ(N),I={...e,percent:l,type:p,size:d,showInfo:f,percentPosition:v},[R,z]=zi([j,a],[M,o],{props:I}),B=p===`line`,V=B&&!s,H=$.useMemo(()=>{if(!f)return null;let t=Gq(e),n,r=h||(e=>`${e}%`),i=B&&w&&x===`inner`;return x===`inner`||h||E!==`exception`&&E!==`success`?n=r(Wq(l),Wq(t)):E===`exception`?n=B?$.createElement(ie,null):$.createElement(ne,null):E===`success`&&(n=B?$.createElement(L,null):$.createElement(_,null)),$.createElement(`span`,{className:X(`${N}-indicator`,{[`${N}-indicator-bright`]:i,[`${N}-indicator-${b}`]:V,[`${N}-indicator-${x}`]:V},R.indicator),style:z.indicator,title:typeof n==`string`?n:void 0},n)},[f,l,T,E,p,N,h,B,w,x,b,V,R.indicator,z.indicator]),U={...e,classNames:R,styles:z},W;p===`line`?W=s?$.createElement(uJ,{...U,strokeColor:C,prefixCls:N,steps:Oi(s)?s.count:s},H):$.createElement(lJ,{...U,strokeColor:S,prefixCls:N,direction:O,percentPosition:{align:b,type:x}},H):(p===`circle`||p===`dashboard`)&&(W=$.createElement(Qq,{...U,strokeColor:S,prefixCls:N,progressStatus:E},H));let G=X(N,`${N}-status-${E}`,{[`${N}-${p===`dashboard`&&`circle`||p}`]:p!==`line`,[`${N}-inline-circle`]:p===`circle`&&Jq(d,`circle`)[0]<=20,[`${N}-line`]:V,[`${N}-line-align-${b}`]:V,[`${N}-line-position-${x}`]:V,[`${N}-steps`]:s,[`${N}-show-info`]:f,[`${N}-small`]:d===`small`,[`${N}-rtl`]:O===`rtl`},k,r,i,R.root,P,F);return $.createElement(`div`,{ref:t,style:{...A,...z.root,...g},className:G,role:`progressbar`,"aria-valuenow":T,"aria-valuemin":0,"aria-valuemax":100,...u(y,[`railColor`,`trailColor`,`strokeWidth`,`width`,`gapDegree`,`gapPosition`,`gapPlacement`,`strokeLinecap`,`success`])},W)}),pJ,mJ;function hJ(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function gJ(e,t){return(e>>>t&1)!=0}function _J(e){if(!e)throw Error(`Assertion error`)}var vJ=class{constructor(e,t){Z(this,`modeBits`,void 0),Z(this,`numBitsCharCount`,void 0),this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};pJ=vJ,$t(pJ,`NUMERIC`,new pJ(1,[10,12,14])),$t(pJ,`ALPHANUMERIC`,new pJ(2,[9,11,13])),$t(pJ,`BYTE`,new pJ(4,[8,16,16])),$t(pJ,`KANJI`,new pJ(8,[8,10,12])),$t(pJ,`ECI`,new pJ(7,[0,0,0]));var yJ=class{constructor(e,t){Z(this,`ordinal`,void 0),Z(this,`formatBits`,void 0),this.ordinal=e,this.formatBits=t}};mJ=yJ,$t(mJ,`LOW`,new mJ(0,1)),$t(mJ,`MEDIUM`,new mJ(1,0)),$t(mJ,`QUARTILE`,new mJ(2,3)),$t(mJ,`HIGH`,new mJ(3,2));var bJ=class e{static makeBytes(t){let n=[];for(let e of t)hJ(e,8,n);return new e(vJ.BYTE,t.length,n)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError(`String contains non-numeric characters`);let n=[];for(let e=0;e<t.length;){let r=Math.min(t.length-e,3);hJ(parseInt(t.substring(e,e+r),10),r*3+1,n),e+=r}return new e(vJ.NUMERIC,t.length,n)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw RangeError(`String contains unencodable characters in alphanumeric mode`);let n=[],r;for(r=0;r+2<=t.length;r+=2){let i=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r))*45;i+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),hJ(i,11,n)}return r<t.length&&hJ(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,n),new e(vJ.ALPHANUMERIC,t.length,n)}static makeSegments(t){return t==``?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let n=[];if(t<0)throw RangeError(`ECI assignment value out of range`);if(t<128)hJ(t,8,n);else if(t<16384)hJ(2,2,n),hJ(t,14,n);else if(t<1e6)hJ(6,3,n),hJ(t,21,n);else throw RangeError(`ECI assignment value out of range`);return new e(vJ.ECI,0,n)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}constructor(e,t,n){if(Z(this,`mode`,void 0),Z(this,`numChars`,void 0),Z(this,`bitData`,void 0),this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(let r of e){let e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){let t=encodeURI(e),n=[];for(let e=0;e<t.length;e++)t.charAt(e)==`%`?(n.push(parseInt(t.substring(e+1,e+3),16)),e+=2):n.push(t.charCodeAt(e));return n}};Z(bJ,`NUMERIC_REGEX`,/^[0-9]*$/),Z(bJ,`ALPHANUMERIC_REGEX`,/^[A-Z0-9 $%*+.\/:-]*$/),Z(bJ,`ALPHANUMERIC_CHARSET`,`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`);var xJ=class e{static encodeText(t,n){let r=bJ.makeSegments(t);return e.encodeSegments(r,n)}static encodeBinary(t,n){let r=bJ.makeBytes(t);return e.encodeSegments([r],n)}static encodeSegments(t,n,r=1,i=40,a=-1,o=!0){if(!(e.MIN_VERSION<=r&&r<=i&&i<=e.MAX_VERSION)||a<-1||a>7)throw RangeError(`Invalid value`);let s,c;for(s=r;;s++){let r=e.getNumDataCodewords(s,n)*8,a=bJ.getTotalBits(t,s);if(a<=r){c=a;break}if(s>=i)throw RangeError(`Data too long`)}let l=n;for(let t of[yJ.MEDIUM,yJ.QUARTILE,yJ.HIGH])o&&c<=e.getNumDataCodewords(s,t)*8&&(l=t);let u=[];for(let e of t){hJ(e.mode.modeBits,4,u),hJ(e.numChars,e.mode.numCharCountBits(s),u);for(let t of e.getData())u.push(t)}_J(u.length==c);let d=e.getNumDataCodewords(s,l)*8;_J(u.length<=d),hJ(0,Math.min(4,d-u.length),u),hJ(0,(8-u.length%8)%8,u),_J(u.length%8==0);for(let e=236;u.length<d;e^=253)hJ(e,8,u);let f=[];for(;f.length*8<u.length;)f.push(0);return u.forEach((e,t)=>{f[t>>>3]|=e<<7-(t&7)}),new e(s,l,f,a)}constructor(t,n,r,i){Z(this,`size`,void 0),Z(this,`mask`,void 0),Z(this,`modules`,[]),Z(this,`isFunction`,[]),Z(this,`version`,void 0),Z(this,`errorCorrectionLevel`,void 0);let a=i;if(this.version=t,this.errorCorrectionLevel=n,t<e.MIN_VERSION||t>e.MAX_VERSION)throw RangeError(`Version value out of range`);if(a<-1||a>7)throw RangeError(`Mask value out of range`);this.size=t*4+17;let o=[];for(let e=0;e<this.size;e++)o.push(!1);for(let e=0;e<this.size;e++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();let s=this.addEccAndInterleave(r);if(this.drawCodewords(s),a==-1){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let n=this.getPenaltyScore();n<e&&(a=t,e=n),this.applyMask(t)}}_J(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)n==0&&r==0||n==0&&r==t-1||n==t-1&&r==0||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.errorCorrectionLevel.formatBits<<3|e,n=t;for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let r=(t<<10|n)^21522;_J(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,gJ(r,e));this.setFunctionModule(8,7,gJ(r,6)),this.setFunctionModule(8,8,gJ(r,7)),this.setFunctionModule(7,8,gJ(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,gJ(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,gJ(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,gJ(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;_J(t>>>18==0);for(let e=0;e<18;e++){let n=gJ(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,i!=2&&i!=4)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!=1)}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(t){let n=this.version,r=this.errorCorrectionLevel;if(t.length!=e.getNumDataCodewords(n,r))throw RangeError(`Invalid argument`);let i=e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],o=Math.floor(e.getNumRawDataModules(n)/8),s=i-o%i,c=Math.floor(o/i),l=[],u=e.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<i;n++){let i=t.slice(r,r+c-a+(n<s?0:1));r+=i.length;let o=e.reedSolomonComputeRemainder(i,u);n<s&&i.push(0),l.push(i.concat(o))}let d=[];for(let e=0;e<l[0].length;e++)l.forEach((t,n)=>{(e!=c-a||n>=s)&&d.push(t[e])});return _J(d.length==o),d}drawCodewords(t){if(t.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let e=this.size-1;e>=1;e-=2){e==6&&(e=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){let a=e-i,o=e+1&2?r:this.size-1-r;!this.isFunction[o][a]&&n<t.length*8&&(this.modules[o][a]=gJ(t[n>>>3],7-(n&7)),n++)}}_J(n==t.length*8)}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error(`Unreachable`)}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let t=0;for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[n][o]==r?(i++,i==5?t+=e.PENALTY_N1:i>5&&t++):(this.finderPenaltyAddHistory(i,a),r||(t+=this.finderPenaltyCountPatterns(a)*e.PENALTY_N3),r=this.modules[n][o],i=1);t+=this.finderPenaltyTerminateAndCount(r,i,a)*e.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][n]==r?(i++,i==5?t+=e.PENALTY_N1:i>5&&t++):(this.finderPenaltyAddHistory(i,a),r||(t+=this.finderPenaltyCountPatterns(a)*e.PENALTY_N3),r=this.modules[o][n],i=1);t+=this.finderPenaltyTerminateAndCount(r,i,a)*e.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){let i=this.modules[n][r];i==this.modules[n][r+1]&&i==this.modules[n+1][r]&&i==this.modules[n+1][r+1]&&(t+=e.PENALTY_N2)}let n=0;for(let e of this.modules)n=e.reduce((e,t)=>e+ +!!t,n);let r=this.size*this.size,i=Math.ceil(Math.abs(n*20-r*10)/r)-1;return _J(0<=i&&i<=9),t+=i*e.PENALTY_N4,_J(0<=t&&t<=2568888),t}getAlignmentPatternPositions(){if(this.version==1)return[];{let e=Math.floor(this.version/7)+2,t=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(t){if(t<e.MIN_VERSION||t>e.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*t+128)*t+64;if(t>=2){let e=Math.floor(t/7)+2;n-=(25*e-10)*e-55,t>=7&&(n-=36)}return _J(208<=n&&n<=29648),n}static getNumDataCodewords(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]}static reedSolomonComputeDivisor(t){if(t<1||t>255)throw RangeError(`Degree out of range`);let n=[];for(let e=0;e<t-1;e++)n.push(0);n.push(1);let r=1;for(let i=0;i<t;i++){for(let t=0;t<n.length;t++)n[t]=e.reedSolomonMultiply(n[t],r),t+1<n.length&&(n[t]^=n[t+1]);r=e.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(t,n){let r=n.map(()=>0);for(let i of t){let t=i^r.shift();r.push(0),n.forEach((n,i)=>{r[i]^=e.reedSolomonMultiply(n,t)})}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return _J(n>>>8==0),n}finderPenaltyCountPatterns(e){let t=e[1];_J(t<=this.size*3);let n=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){let r=t;return e&&(this.finderPenaltyAddHistory(r,n),r=0),r+=this.size,this.finderPenaltyAddHistory(r,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){let n=e;t[0]==0&&(n+=this.size),t.pop(),t.unshift(n)}};Z(xJ,`MIN_VERSION`,1),Z(xJ,`MAX_VERSION`,40),Z(xJ,`PENALTY_N1`,3),Z(xJ,`PENALTY_N2`,3),Z(xJ,`PENALTY_N3`,40),Z(xJ,`PENALTY_N4`,10),Z(xJ,`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]]),Z(xJ,`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 SJ={L:yJ.LOW,M:yJ.MEDIUM,Q:yJ.QUARTILE,H:yJ.HIGH},CJ=`#FFFFFF`,wJ=`#000000`,TJ=.1,EJ=(e,t=0)=>{let n=[];return e.forEach((e,r)=>{let i=null;e.forEach((a,o)=>{if(!a&&i!==null){n.push(`M${i+t} ${r+t}h${o-i}v1H${i+t}z`),i=null;return}if(o===e.length-1){if(!a)return;i===null?n.push(`M${o+t},${r+t} h1v1H${o+t}z`):n.push(`M${i+t},${r+t} h${o+1-i}v1H${i+t}z`);return}a&&i===null&&(i=o)})}),n.join(``)},DJ=(e,t)=>e.slice().map((e,n)=>n<t.y||n>=t.y+t.h?e:e.map((e,n)=>n<t.x||n>=t.x+t.w?e:!1)),OJ=(e,t,n,r)=>{if(r==null)return null;let i=e.length+n*2,a=Math.floor(t*TJ),o=i/t,s=(r.width||a)*o,c=(r.height||a)*o,l=r.x==null?e.length/2-s/2:r.x*o,u=r.y==null?e.length/2-c/2:r.y*o,d=r.opacity==null?1:r.opacity,f=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(u);f={x:e,y:t,w:Math.ceil(s+l-e),h:Math.ceil(c+u-t)}}let p=r.crossOrigin;return{x:l,y:u,h:c,w:s,excavation:f,opacity:d,crossOrigin:p}},kJ=(e,t)=>t==null?e?4:0:Math.max(Math.floor(t),0),AJ=(()=>{try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),jJ=e=>{let{value:t,level:n,minVersion:r,includeMargin:i,marginSize:a,imageSettings:o,size:s,boostLevel:c}=e,l=$.useMemo(()=>{let e=(Array.isArray(t)?t:[t]).reduce((e,t)=>(e.push(...bJ.makeSegments(t)),e),[]);return xJ.encodeSegments(e,SJ[n],r,void 0,void 0,c)},[t,n,r,c]);return $.useMemo(()=>{let e=l.getModules(),t=kJ(i,a);return{cells:e,margin:t,numCells:e.length+t*2,calculatedImageSettings:OJ(e,s,t,o),qrcode:l}},[l,s,o,i,a])},MJ=$.forwardRef((e,t)=>{let{value:n,size:r=128,level:i=`L`,bgColor:a=CJ,fgColor:o=wJ,includeMargin:s=!1,minVersion:c=1,marginSize:l,style:u,imageSettings:d,boostLevel:f,...p}=e,m=d?.src,h=$.useRef(null),g=$.useRef(null),_=$.useCallback(e=>{h.current=e,typeof t==`function`?t(e):t&&(t.current=e)},[t]),[,v]=$.useState(!1),{margin:y,cells:b,numCells:x,calculatedImageSettings:S}=jJ({value:n,level:i,minVersion:c,includeMargin:s,marginSize:l,imageSettings:d,size:r,boostLevel:f});$.useEffect(()=>{if(h.current){let e=h.current,t=e.getContext(`2d`);if(!t)return;let n=b,i=g.current,s=S!=null&&i!==null&&i.complete&&i.naturalHeight!==0&&i.naturalWidth!==0;s&&S.excavation!=null&&(n=DJ(b,S.excavation));let c=window.devicePixelRatio||1;e.height=e.width=r*c;let l=r/x*c;t.scale(l,l),t.fillStyle=a,t.fillRect(0,0,x,x),t.fillStyle=o,AJ?t.fill(new Path2D(EJ(n,y))):b.forEach((e,n)=>{e.forEach((e,r)=>{e&&t.fillRect(r+y,n+y,1,1)})}),S&&(t.globalAlpha=S.opacity),s&&t.drawImage(i,S.x+y,S.y+y,S.w,S.h)}}),$.useEffect(()=>{v(!1)},[m]);let C={height:r,width:r,...u},w=null;return m!=null&&(w=$.createElement(`img`,{alt:`QR-Code`,src:m,key:m,style:{display:`none`},onLoad:()=>{v(!0)},ref:g,crossOrigin:S?.crossOrigin})),$.createElement($.Fragment,null,$.createElement(`canvas`,ld({style:C,height:r,width:r,ref:_,role:`img`},p)),w)}),NJ=$.forwardRef((e,t)=>{let{value:n,size:r=128,level:i=`L`,bgColor:a=CJ,fgColor:o=wJ,includeMargin:s=!1,minVersion:c=1,title:l,marginSize:u,imageSettings:d,boostLevel:f,...p}=e,{margin:m,cells:h,numCells:g,calculatedImageSettings:_}=jJ({value:n,level:i,minVersion:c,includeMargin:s,marginSize:u,imageSettings:d,size:r,boostLevel:f}),v=h,y=null;d!=null&&_!=null&&(_.excavation!=null&&(v=DJ(h,_.excavation)),y=$.createElement(`image`,{href:d.src,height:_.h,width:_.w,x:_.x+m,y:_.y+m,preserveAspectRatio:`none`,opacity:_.opacity,crossOrigin:_.crossOrigin}));let b=EJ(v,m);return $.createElement(`svg`,ld({height:r,width:r,viewBox:`0 0 ${g} ${g}`,ref:t,role:`img`},p),!!l&&$.createElement(`title`,null,l),$.createElement(`path`,{fill:a,d:`M0,0 h${g}v${g}H0z`,shapeRendering:`crispEdges`}),$.createElement(`path`,{fill:o,d:b,shapeRendering:`crispEdges`}),y)}),PJ=$.createElement(dK,null);function FJ({prefixCls:e,locale:t,onRefresh:n,statusRender:r,status:i}){let a={expired:$.createElement($.Fragment,null,$.createElement(`p`,{className:`${e}-expired`},t?.expired),n&&$.createElement(of,{type:`link`,icon:$.createElement(Ge,null),onClick:n},t?.refresh)),loading:PJ,scanned:$.createElement(`p`,{className:`${e}-scanned`},t?.scanned)};return(r??(e=>a[e.status]))({status:i,locale:t,onRefresh:n})}var IJ=e=>{let{componentCls:t,lineWidth:n,lineType:r,colorSplit:i}=e;return{[t]:{...ur(e),display:`flex`,justifyContent:`center`,alignItems:`center`,padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${Q(n)} ${r} ${i}`,position:`relative`,overflow:`hidden`,[`& > ${t}-cover`]:{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.QRCodeCoverBackgroundColor,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}}},LJ=yr(`QRCode`,e=>IJ(wn(e,{QRCodeTextColor:e.colorText})),e=>({QRCodeCoverBackgroundColor:new pe(e.colorBgContainer).setA(.96).toRgbString()})),RJ=e=>{let[,t]=cr(),{value:n,type:r=`canvas`,icon:i=``,size:a=160,iconSize:o,color:s=t.colorText,errorLevel:c=`M`,status:l=`active`,bordered:d=!0,onRefresh:f,style:p,className:m,rootClassName:h,prefixCls:g,bgColor:_=`transparent`,marginSize:v,statusRender:y,classNames:b,styles:x,boostLevel:S,...C}=e,{getPrefixCls:w,className:T,style:E,classNames:D,styles:O}=Wt(`qrcode`),k={...e,bgColor:_,type:r,size:a,status:l,bordered:d,errorLevel:c},[A,j]=zi([D,b],[O,x],{props:k}),M=w(`qrcode`,g),[N,P]=LJ(M),F={src:i,x:void 0,y:void 0,height:Ei(o)?o:o?.height??40,width:Ei(o)?o:o?.width??40,excavate:!0,crossOrigin:`anonymous`},I=V(C,!0),L=u(C,Object.keys(I)),R={value:n,size:a,level:c,bgColor:_,fgColor:s,style:{width:p?.width,height:p?.height},imageSettings:i?F:void 0,marginSize:v,boostLevel:S,...I},[z]=ja(`QRCode`);if(!n)return null;let B=X(M,m,h,N,P,T,A.root,{[`${M}-borderless`]:!d}),H={backgroundColor:_,...j.root,...E,...p,width:p?.width??a,height:p?.height??a};return $.createElement(`div`,{...L,className:B,style:H},l!==`active`&&$.createElement(`div`,{className:X(`${M}-cover`,A.cover),style:j.cover},$.createElement(FJ,{prefixCls:M,locale:z,status:l,onRefresh:f,statusRender:y})),r===`canvas`?$.createElement(MJ,{...R}):$.createElement(NJ,{...R}))};function zJ(e,t){let{disabled:n,prefixCls:r,character:i,characterRender:a,index:o,count:s,value:c,allowHalf:l,focused:u,onHover:d,onClick:p}=e,m=e=>{d(e,o)},h=e=>{p(e,o)},g=e=>{e.keyCode===f.ENTER&&p(e,o)},_=o+1,v=new Set([r]);c===0&&o===0&&u?v.add(`${r}-focused`):l&&c+.5>=_&&c<_?(v.add(`${r}-half`),v.add(`${r}-active`),u&&v.add(`${r}-focused`)):(_<=c?v.add(`${r}-full`):v.add(`${r}-zero`),_===c&&u&&v.add(`${r}-focused`));let y=typeof i==`function`?i(e):i,b=$.createElement(`li`,{className:X(Array.from(v)),ref:t},$.createElement(`div`,{onClick:n?null:h,onKeyDown:n?null:g,onMouseMove:n?null:m,role:`radio`,"aria-checked":c>o?`true`:`false`,"aria-posinset":o+1,"aria-setsize":s,tabIndex:n?-1:0},$.createElement(`div`,{className:`${r}-first`},y),$.createElement(`div`,{className:`${r}-second`},y)));return a&&(b=a(b,e)),b}var BJ=$.forwardRef(zJ);function VJ(){let e=$.useRef({});function t(t){return e.current[t]}function n(t){return n=>{e.current[t]=n}}return[t,n]}function HJ(e){let t=e.pageXOffset,n=`scrollLeft`;if(typeof t!=`number`){let r=e.document;t=r.documentElement[n],typeof t!=`number`&&(t=r.body[n])}return t}function UJ(e){let t,n,r=e.ownerDocument,{body:i}=r,a=r&&r.documentElement,o=e.getBoundingClientRect();return t=o.left,n=o.top,t-=a.clientLeft||i.clientLeft||0,n-=a.clientTop||i.clientTop||0,{left:t,top:n}}function WJ(e){let t=UJ(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=HJ(r),t.left}function GJ(){return GJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GJ.apply(this,arguments)}function KJ(e,t){let{prefixCls:n=`rc-rate`,className:r,defaultValue:i,value:a,count:o=5,allowHalf:s=!1,allowClear:c=!0,keyboard:l=!0,character:u=`★`,characterRender:d,disabled:p,direction:m=`ltr`,tabIndex:h=0,autoFocus:g,onHoverChange:_,onChange:y,onFocus:b,onBlur:x,onKeyDown:S,onMouseLeave:C,...w}=e,[T,E]=VJ(),D=$.useRef(null),O=()=>{p||D.current?.focus()};$.useImperativeHandle(t,()=>({focus:O,blur:()=>{p||D.current?.blur()}}));let[k,A]=v(i||0,a),[j,M]=v(null),N=(e,t)=>{let n=m===`rtl`,r=e+1;if(s){let i=T(e),a=WJ(i),o=i.clientWidth;(n&&t-a>o/2||!n&&t-a<o/2)&&(r-=.5)}return r},P=e=>{A(e),y?.(e)},[F,I]=$.useState(!1),L=()=>{I(!0),b?.()},R=()=>{I(!1),x?.()},[z,B]=$.useState(null),H=(e,t)=>{let n=N(t,e.pageX);n!==j&&(B(n),M(null)),_?.(n)},U=e=>{p||(B(null),M(null),_?.(void 0)),e&&C?.(e)},W=(e,t)=>{let n=N(t,e.pageX),r=!1;c&&(r=n===k),U(),P(r?0:n),M(r?n:null)},G=e=>{let{keyCode:t}=e,n=m===`rtl`,r=s?.5:1;l&&(t===f.RIGHT&&k<o&&!n?(P(k+r),e.preventDefault()):t===f.LEFT&&k>0&&!n||t===f.RIGHT&&k>0&&n?(P(k-r),e.preventDefault()):t===f.LEFT&&k<o&&n&&(P(k+r),e.preventDefault())),S?.(e)};$.useEffect(()=>{g&&!p&&O()},[]);let ee=Array(o).fill(0).map((e,t)=>$.createElement(BJ,{ref:E(t),index:t,count:o,disabled:p,prefixCls:`${n}-star`,allowHalf:s,value:z===null?k:z,onClick:W,onHover:H,key:e||t,character:u,characterRender:d,focused:F})),K=X(n,r,{[`${n}-disabled`]:p,[`${n}-rtl`]:m===`rtl`});return $.createElement(`ul`,GJ({className:K,onMouseLeave:U,tabIndex:p?-1:h,onFocus:p?null:L,onBlur:p?null:R,onKeyDown:p?null:G,ref:D},V(w,{aria:!0,data:!0,attr:!0})),ee)}var qJ=$.forwardRef(KJ),JJ=e=>{let{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:`${Q(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`}}}},YJ=e=>({[`&-rtl${e.componentCls}`]:{direction:`rtl`}}),XJ=e=>{let{componentCls:t}=e;return{[t]:{...ur(e),display:`inline-block`,margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:`none`,outline:`none`,"&-small":{fontSize:e.starSizeSM},"&-large":{fontSize:e.starSizeLG},[`&-disabled${t} ${t}-star`]:{cursor:`default`,"> div:hover":{transform:`scale(1)`}},...JJ(e),...YJ(e)}}},ZJ=yr(`Rate`,e=>XJ(wn(e,{})),e=>({starColor:e.yellow6,starSize:e.controlHeight*.625,starSizeSM:e.controlHeightSM*.625,starSizeLG:e.controlHeightLG*.625,starHoverScale:`scale(1.1)`,starBg:e.colorFillContent})),QJ=$.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,tooltips:o,character:s=$.createElement(le,null),disabled:c,size:l,...u}=e,d=(e,{index:t})=>{if(!o)return e;let n=o[t];return Oi(n)?$.createElement(Ny,{...n},e):$.createElement(Ny,{title:n},e)},{getPrefixCls:f,direction:p,className:m,style:h}=Wt(`rate`),g=f(`rate`,n),[_,v]=ZJ(g),y={...h,...a},b=$.useContext(Vo),x=c??b,S=jl(e=>l??e);return $.createElement(qJ,{ref:t,character:s,characterRender:d,disabled:x,...u,className:X({[`${g}-large`]:S===`large`,[`${g}-small`]:S===`small`},r,i,_,v,m),style:y,prefixCls:g,direction:p})}),$J=()=>$.createElement(`svg`,{width:`252`,height:`294`},$.createElement(`title`,null,`No Found`),$.createElement(`g`,{fill:`none`,fillRule:`evenodd`},$.createElement(`circle`,{cx:`126.75`,cy:`128.1`,r:`126`,fill:`#E4EBF7`}),$.createElement(`circle`,{cx:`31.55`,cy:`130.8`,r:`8.3`,fill:`#FFF`}),$.createElement(`path`,{stroke:`#FFF`,d:`m37 134.3 10.5 6m.9 6.2-12.7 10.8`,strokeWidth:`2`}),$.createElement(`path`,{fill:`#FFF`,d:`M39.9 159.4a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m17.7-16.2a5.7 5.7 0 1 1-11.4-1.1 5.7 5.7 0 0 1 11.4 1.1M99 27h29.8a4.6 4.6 0 1 0 0-9.2H99a4.6 4.6 0 1 0 0 9.2m11.4 18.3h29.8a4.6 4.6 0 0 0 0-9.2h-29.8a4.6 4.6 0 1 0 0 9.2`}),$.createElement(`path`,{fill:`#FFF`,d:`M112.8 26.9h15.8a4.6 4.6 0 1 0 0 9.1h-15.8a4.6 4.6 0 0 0 0-9.1m71.7 108.8a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2`}),$.createElement(`path`,{stroke:`#FFF`,d:`m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13`,strokeWidth:`2`}),$.createElement(`path`,{fill:`#FFF`,d:`M184.7 170a6.8 6.8 0 1 1-13.6-1.3 6.8 6.8 0 0 1 13.6 1.4m18.6-16.8a6.9 6.9 0 1 1-13.7-1.4 6.9 6.9 0 0 1 13.7 1.4`}),$.createElement(`path`,{stroke:`#FFF`,d:`M152 192.3a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm73.3-76.2a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm-9 35a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.5 0zM177 107.6a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.4-15.4a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm6.8 88.5a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0z`,strokeWidth:`2`}),$.createElement(`path`,{stroke:`#FFF`,d:`m214.4 153.3-2 20.2-10.8 6m-28-4.7-6.3 9.8H156l-4.5 6.5m23.5-66v-15.7m46 7.8-13 8-15.2-8V94.4`,strokeWidth:`2`}),$.createElement(`path`,{fill:`#FFF`,d:`M166.6 66h-4a4.8 4.8 0 0 1-4.7-4.8 4.8 4.8 0 0 1 4.7-4.7h4a4.8 4.8 0 0 1 4.7 4.7 4.8 4.8 0 0 1-4.7 4.7`}),$.createElement(`circle`,{cx:`204.3`,cy:`30`,r:`29.5`,fill:`#1677ff`}),$.createElement(`path`,{fill:`#FFF`,d:`M206 38.4c.5.5.7 1.1.7 2s-.2 1.4-.7 1.9a3 3 0 0 1-2 .7c-.8 0-1.5-.3-2-.8s-.8-1.1-.8-1.9.3-1.4.8-2c.5-.4 1.2-.7 2-.7.7 0 1.4.3 2 .8m4.2-19.5c1.5 1.3 2.2 3 2.2 5.2a7.2 7.2 0 0 1-1.5 4.5l-3 2.7a5 5 0 0 0-1.3 1.7 5.2 5.2 0 0 0-.6 2.4v.5h-4v-.5c0-1.4.1-2.5.6-3.5s1.9-2.5 4.2-4.5l.4-.5a4 4 0 0 0 1-2.6c0-1.2-.4-2-1-2.8-.7-.6-1.6-1-2.9-1-1.5 0-2.6.5-3.3 1.5-.4.5-.6 1-.8 1.9a2 2 0 0 1-2 1.6 2 2 0 0 1-2-2.4c.4-1.6 1-2.8 2.1-3.8a8.5 8.5 0 0 1 6.3-2.3c2.3 0 4.2.6 5.6 2`}),$.createElement(`path`,{fill:`#FFB594`,d:`M52 76.1s21.8 5.4 27.3 16c5.6 10.7-6.3 9.2-15.7 5C52.8 92 39 85 52 76`}),$.createElement(`path`,{fill:`#FFC6A0`,d:`m90.5 67.5-.5 2.9c-.7.5-4.7-2.7-4.7-2.7l-1.7.8-1.3-5.7s6.8-4.6 9-5c2.4-.5 9.8 1 10.6 2.3 0 0 1.3.4-2.2.6-3.6.3-5 .5-6.8 3.2l-2.4 3.6`}),$.createElement(`path`,{fill:`#FFF`,d:`M128 111.4a36.7 36.7 0 0 0-8.9-15.5c-3.5-3-9.3-2.2-11.3-4.2-1.3-1.2-3.2-1.2-3.2-1.2L87.7 87c-2.3-.4-2.1-.7-6-1.4-1.6-1.9-3-1.1-3-1.1l-7-1.4c-1-1.5-2.5-1-2.5-1l-2.4-.9C65 91.2 59 95 59 95c1.8 1.1 15.7 8.3 15.7 8.3l5.1 37.1s-3.3 5.7 1.4 9.1c0 0 19.9-3.7 34.9-.3 0 0 3-2.6 1-8.8.5-3 1.4-8.3 1.7-11.6.4.7 2 1.9 3.1 3.4 0 0 9.4-7.3 11-14a17 17 0 0 1-2.2-2.4c-.5-.8-.3-2-.7-2.8-.7-1-1.8-1.3-2-1.6`}),$.createElement(`path`,{fill:`#CBD1D1`,d:`M101 290s4.4 2 7.4 1c2.9-1 4.6.7 7.1 1.2 2.6.5 6.9 1.1 11.7-1.3 0-5.5-6.9-4-12-6.7-2.5-1.4-3.7-4.7-3.5-8.8h-9.5s-1.2 10.6-1 14.6`}),$.createElement(`path`,{fill:`#2B0849`,d:`M101 289.8s2.5 1.3 6.8.7c3-.5 3.7.5 7.4 1 3.8.6 10.8 0 11.9-.9.4 1.1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.6-.5-1.8-1.4-5.2-1.9-5.7-.2-4 1-7.4-.3-7.4-.3l-.1-2.7z`}),$.createElement(`path`,{fill:`#A4AABA`,d:`M108.3 276h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6`}),$.createElement(`path`,{fill:`#CBD1D1`,d:`M57.5 272.4s-2 7.4-4.4 12.3c-1.8 3.7-4.3 7.5 5.4 7.5 6.7 0 9-.5 7.4-6.6-1.5-6.1.3-13.2.3-13.2h-8.7z`}),$.createElement(`path`,{fill:`#2B0849`,d:`M51.5 289.8s2 1.2 6.6 1.2c6 0 8.3-1.7 8.3-1.7s.6 1.1-.7 2.2c-1 .8-3.6 1.6-7.4 1.5-4.1 0-5.8-.5-6.7-1.1-.8-.6-.7-1.6-.1-2.1`}),$.createElement(`path`,{fill:`#A4AABA`,d:`M58.4 274.3s0 1.5-.3 3c-.3 1.4-1 3-1.1 4 0 1.2 4.5 1.7 5.1.1.6-1.5 1.3-6.4 2-7.2.6-.9-5-2.2-5.7.1`}),$.createElement(`path`,{fill:`#7BB2F9`,d:`m99.7 278.5 13.3.1s1.3-54.5 1.9-64.4c.5-9.9 3.8-43.4 1-63.1l-12.6-.7-22.8.8-1.2 10c0 .5-.7.8-.7 1.4-.1.5.4 1.3.3 2-2.4 14-6.4 33-8.8 46.6 0 .7-1.2 1-1.4 2.7 0 .3.2 1.5 0 1.8-6.8 18.7-10.9 47.8-14.2 61.9h14.6s2.2-8.6 4-17c2.9-12.9 23.2-85 23.2-85l3-.5 1 46.3s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.8-1 11.8c-.4 4.8 0 39.2 0 39.2`}),$.createElement(`path`,{stroke:`#648BD8`,d:`M76 221.6c1.2.1 4.1-2 7-5m23.4 8.5s2.7-1 6-3.8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#648BD8`,d:`M107.3 222.1s2.7-1.1 6-3.9`,strokeLinecap:`round`,strokeLinejoin:`round`}),$.createElement(`path`,{stroke:`#648BD8`,d:`M74.7 224.8s2.7-.6 6.5-3.4m4.8-69.8c-.2 3.1.3 8.6-4.3 9.2m22-11s0 14-1.4 15.1a15 15 0 0 1-3 2m.5-16.5s0 13-1.2 24.4m-5 1.1s7.3-1.7 9.5-1.7M74.3 206a212 212 0 0 1-1 4.5s-1.4 1.9-1 3.8c.5 2-1 2-5 15.4A353 353 0 0 0 61 257l-.2 1.2m14.9-60.5a321 321 0 0 1-.9 4.8m7.8-50.4-1.2 10.5s-1.1.1-.5 2.2c.1 1.4-2.7 15.8-5.2 30.5m-19.6 79h13.3`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{fill:`#192064`,d:`M116.2 148.2s-17-3-35.9.2c.2 2.5 0 4.2 0 4.2s14.7-2.8 35.7-.3c.3-2.4.2-4 .2-4`}),$.createElement(`path`,{fill:`#FFF`,d:`M106.3 151.2v-5a.8.8 0 0 0-.8-.8h-7.8a.8.8 0 0 0-.8.8v5a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8`}),$.createElement(`path`,{fill:`#192064`,d:`M105.2 150.2v-3a.6.6 0 0 0-.6-.7 94.3 94.3 0 0 0-5.9 0 .7.7 0 0 0-.6.6v3.1a.6.6 0 0 0 .6.7 121.1 121.1 0 0 1 5.8 0c.4 0 .7-.3.7-.7`}),$.createElement(`path`,{stroke:`#648BD8`,d:`M100.3 275.4h12.3m-11.2-4.9.1 6.5m0-12.5a915.8 915.8 0 0 0 0 4.4m-.5-94 .9 44.7s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.2 0 3.4-.6 1.5-1 21.1-1.1 35.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{fill:`#FFC6A0`,d:`M46.9 83.4s-.5 6 7.2 5.6c11.2-.7 9.2-9.4 31.5-21.7-.7-2.7-2.4-4.7-2.4-4.7s-11 3-22.6 8c-6.8 3-13.4 6.4-13.7 12.8m57.6 7.7.9-5.4-8.9-11.4-5 5.3-1.8 7.9a.3.3 0 0 0 .1.3c1 .8 6.5 5 14.4 3.5a.3.3 0 0 0 .3-.2`}),$.createElement(`path`,{fill:`#FFC6A0`,d:`M94 79.4s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.1-3.7c.6-1 1.6-4.1 1.6-4.1l13.5 3c0 5.3-2.3 19.5-7.8 20-8.9.6-12.5-9.5-12.5-9.5`}),$.createElement(`path`,{fill:`#520038`,d:`M113.9 73.4c2.6-2 3.4-9.7 3.4-9.7s-2.4-.5-6.6-2c-4.7-2.1-12.8-4.8-17.5 1-9.6 3.2-2 19.8-2 19.8l2.7-3s-4-3.3-2-6.3c2-3.5 3.8 1 3.8 1s.7-2.3 3.6-3.3c.4-.7 1-2.6 1.4-3.8a1 1 0 0 1 1.3-.7l11.4 2.6c.5.2.8.7.8 1.2l-.3 3.2z`}),$.createElement(`path`,{fill:`#552950`,d:`M105 76c-.1.7-.6 1.1-1 1-.6 0-.9-.6-.8-1.2.1-.6.6-1 1-1 .6 0 .9.7.8 1.3m7.1 1.6c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.5-1 1-1 .5.1.8.7.7 1.3`}),$.createElement(`path`,{stroke:`#DB836E`,d:`m110.1 74.8-.9 1.7-.3 4.3h-2.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#5C2552`,d:`M110.8 74.5s1.8-.7 2.6.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#DB836E`,d:`M92.4 74.3s.5-1.1 1.1-.7c.6.4 1.3 1.4.6 2-.8.5.1 1.6.1 1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#5C2552`,d:`M103.3 73s1.8 1 4.1.9`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#DB836E`,d:`M103.7 81.8s2.2 1.2 4.4 1.2m-3.5 1.3s1 .4 1.6.3m-11.5-3.4s2.3 7.4 10.4 7.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#E4EBF7`,d:`M81.5 89.4s.4 5.6-5 12.8M69 82.7s-.7 9.2-8.2 14.2m68.6 26s-5.3 7.4-9.4 10.7m-.7-26.3s.5 4.4-2.1 32`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{fill:`#F2D7AD`,d:`M150 151.2h-49.8a1 1 0 0 1-1-1v-31.7c0-.5.4-1 1-1H150c.6 0 1 .5 1 1v31.7a1 1 0 0 1-1 1`}),$.createElement(`path`,{fill:`#F4D19D`,d:`M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1`}),$.createElement(`path`,{fill:`#F2D7AD`,d:`M123.6 127.9H92.9a.5.5 0 0 1-.4-.8l6.4-9.1c.2-.3.5-.5.8-.5h31.1l-7.2 10.4z`}),$.createElement(`path`,{fill:`#CC9B6E`,d:`M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z`}),$.createElement(`path`,{fill:`#F4D19D`,d:`M158.3 127.9h-18.7a2 2 0 0 1-1.6-.8l-7.2-9.6h20c.5 0 1 .3 1.2.6l6.7 9a.5.5 0 0 1-.4.8`}),$.createElement(`path`,{fill:`#CC9B6E`,d:`M157.8 128.5h-19.3l-7.9-10.5.4-.3 7.7 10.3h19.1zm-27.2 22.2v-8.2h.4v8.2zm-.1-10.9v-21.4h.4l.1 21.4zm-18.6 1.1-.5-.1 1.5-5.2.5.2zm-3.5.2-2.6-3 2.6-3.4.4.3-2.4 3.1 2.4 2.6zm8.2 0-.4-.4 2.4-2.6-2.4-3 .4-.4 2.7 3.4z`}),$.createElement(`path`,{fill:`#FFC6A0`,d:`m154.3 131.9-3.1-2v3.5l-1 .1a85 85 0 0 1-4.8.3c-1.9 0-2.7 2.2 2.2 2.6l-2.6-.6s-2.2 1.3.5 2.3c0 0-1.6 1.2.6 2.6-.6 3.5 5.2 4 7 3.6a6.1 6.1 0 0 0 4.6-5.2 8 8 0 0 0-3.4-7.2`}),$.createElement(`path`,{stroke:`#DB836E`,d:`M153.7 133.6s-6.5.4-8.4.3c-1.8 0-1.9 2.2 2.4 2.3 3.7.2 5.4 0 5.4 0`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#DB836E`,d:`M145.2 135.9c-1.9 1.3.5 2.3.5 2.3s3.5 1 6.8.6m-.6 2.9s-6.3.1-6.7-2.1c-.3-1.4.4-1.4.4-1.4m.5 2.7s-1 3.1 5.5 3.5m-.4-14.5v3.5M52.8 89.3a18 18 0 0 0 13.6-7.8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{fill:`#5BA02E`,d:`M168.6 248.3a6.6 6.6 0 0 1-6.7-6.6v-66.5a6.6 6.6 0 1 1 13.3 0v66.5a6.6 6.6 0 0 1-6.6 6.6`}),$.createElement(`path`,{fill:`#92C110`,d:`M176.5 247.7a6.6 6.6 0 0 1-6.6-6.7v-33.2a6.6 6.6 0 1 1 13.3 0V241a6.6 6.6 0 0 1-6.7 6.7`}),$.createElement(`path`,{fill:`#F2D7AD`,d:`M186.4 293.6H159a3.2 3.2 0 0 1-3.2-3.2v-46.1a3.2 3.2 0 0 1 3.2-3.2h27.5a3.2 3.2 0 0 1 3.2 3.2v46.1a3.2 3.2 0 0 1-3.2 3.2`}),$.createElement(`path`,{stroke:`#E4EBF7`,d:`M89 89.5s7.8 5.4 16.6 2.8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}))),eY=()=>$.createElement(`svg`,{width:`254`,height:`294`},$.createElement(`title`,null,`Server Error`),$.createElement(`g`,{fill:`none`,fillRule:`evenodd`},$.createElement(`path`,{fill:`#E4EBF7`,d:`M0 128.1v-2C0 56.5 56.3.2 125.7.2h2.1C197.2.3 253.5 56.6 253.5 126v2.1c0 69.5-56.3 125.7-125.7 125.7h-2.1A125.7 125.7 0 0 1 0 128.1`}),$.createElement(`path`,{fill:`#FFF`,d:`M40 132.1a8.3 8.3 0 1 1-16.6-1.7 8.3 8.3 0 0 1 16.6 1.7`}),$.createElement(`path`,{stroke:`#FFF`,d:`m37.2 135.6 10.5 6m1 6.3-12.8 10.8`,strokeWidth:`2`}),$.createElement(`path`,{fill:`#FFF`,d:`M40.1 160.8a5.7 5.7 0 1 1-11.3-1.1 5.7 5.7 0 0 1 11.3 1.1M58 144.6a5.7 5.7 0 1 1-11.4-1.2 5.7 5.7 0 0 1 11.4 1.2M99.7 27.4h30a4.6 4.6 0 1 0 0-9.2h-30a4.6 4.6 0 0 0 0 9.2M111 46h30a4.6 4.6 0 1 0 0-9.3h-30a4.6 4.6 0 1 0 0 9.3m2.5-18.6h16a4.6 4.6 0 1 0 0 9.3h-16a4.6 4.6 0 0 0 0-9.3m36.7 42.7h-4a4.8 4.8 0 0 1-4.8-4.8 4.8 4.8 0 0 1 4.8-4.8h4a4.8 4.8 0 0 1 4.7 4.8 4.8 4.8 0 0 1-4.7 4.8`}),$.createElement(`circle`,{cx:`201.35`,cy:`30.2`,r:`29.7`,fill:`#FF603B`}),$.createElement(`path`,{fill:`#FFF`,d:`m203.6 19.4-.7 15a1.5 1.5 0 0 1-3 0l-.7-15a2.2 2.2 0 1 1 4.4 0m-.3 19.4c.5.5.8 1.1.8 1.9s-.3 1.4-.8 1.9a3 3 0 0 1-2 .7 2.5 2.5 0 0 1-1.8-.7c-.6-.6-.8-1.2-.8-2 0-.7.2-1.3.8-1.8.5-.5 1.1-.7 1.8-.7.8 0 1.5.2 2 .7`}),$.createElement(`path`,{fill:`#FFB594`,d:`M119.3 133.3c4.4-.6 3.6-1.2 4-4.8.8-5.2-3-17-8.2-25.1-1-10.7-12.6-11.3-12.6-11.3s4.3 5 4.2 16.2c1.4 5.3.8 14.5.8 14.5s5.3 11.4 11.8 10.5`}),$.createElement(`path`,{fill:`#FFF`,d:`M101 91.6s1.4-.6 3.2.6c8 1.4 10.3 6.7 11.3 11.4 1.8 1.2 1.8 2.3 1.8 3.5l1.5 3s-7.2 1.7-11 6.7c-1.3-6.4-6.9-25.2-6.9-25.2`}),$.createElement(`path`,{fill:`#FFB594`,d:`m94 90.5 1-5.8-9.2-11.9-5.2 5.6-2.6 9.9s8.4 5 16 2.2`}),$.createElement(`path`,{fill:`#FFC6A0`,d:`M83 78.2s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.2-3.7c.5-1 1.5-4.2 1.5-4.2l13.6 3.2c0 5.2-2.3 19.5-7.9 20-8.9.6-12.5-9.6-12.5-9.6`}),$.createElement(`path`,{fill:`#520038`,d:`M103 72.2c2.6-2 3.5-9.7 3.5-9.7s-2.5-.5-6.7-2c-4.7-2.2-12.9-4.9-17.6.9-9.5 4.4-2 20-2 20l2.7-3.1s-4-3.3-2.1-6.3c2.2-3.5 4 1 4 1s.6-2.3 3.5-3.3c.4-.7 1-2.7 1.5-3.8A1 1 0 0 1 91 65l11.5 2.7c.5.1.8.6.8 1.2l-.3 3.2z`}),$.createElement(`path`,{fill:`#552950`,d:`M101.2 76.5c0 .6-.6 1-1 1-.5-.1-.9-.7-.8-1.3.1-.6.6-1 1.1-1 .5.1.8.7.7 1.3m-7-1.4c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.6-1 1-1 .5.1.9.7.8 1.3`}),$.createElement(`path`,{stroke:`#DB836E`,d:`m99.2 73.6-.9 1.7-.3 4.3h-2.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#5C2552`,d:`M100 73.3s1.7-.7 2.4.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#DB836E`,d:`M81.4 73s.4-1 1-.6c.7.4 1.4 1.4.6 2s.2 1.6.2 1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#5C2552`,d:`M92.3 71.7s1.9 1.1 4.2 1`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#DB836E`,d:`M92.7 80.6s2.3 1.2 4.4 1.2m-3.4 1.4s1 .4 1.5.3M83.7 80s1.8 6.6 9.2 8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#E4EBF7`,d:`M95.5 91.7s-1 2.8-8.2 2c-7.3-.6-10.3-5-10.3-5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{fill:`#FFF`,d:`M78.1 87.5s6.6 5 16.5 2.5c0 0 9.6 1 11.5 5.3 5.4 11.8.6 36.8 0 40 3.5 4-.4 8.4-.4 8.4-15.7-3.5-35.8-.6-35.8-.6-4.9-3.5-1.3-9-1.3-9l-6.2-23.8c-2.5-15.2.8-19.8 3.5-20.7 3-1 8-1.3 8-1.3.6 0 1.1 0 1.4-.2 2.4-1.3 2.8-.6 2.8-.6`}),$.createElement(`path`,{fill:`#FFC6A0`,d:`M65.8 89.8s-6.8.5-7.6 8.2c-.4 8.8 3 11 3 11s6.1 22 16.9 22.9c8.4-2.2 4.7-6.7 4.6-11.4-.2-11.3-7-17-7-17s-4.3-13.7-9.9-13.7`}),$.createElement(`path`,{fill:`#FFC6A0`,d:`M71.7 124.2s.9 11.3 9.8 6.5c4.8-2.5 7.6-13.8 9.8-22.6A201 201 0 0 0 94 96l-5-1.7s-2.4 5.6-7.7 12.3c-4.4 5.5-9.2 11.1-9.5 17.7`}),$.createElement(`path`,{stroke:`#E4EBF7`,d:`M108.5 105.2s1.7 2.7-2.4 30.5c2.4 2.2 1 6-.2 7.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{fill:`#FFC6A0`,d:`M123.3 131.5s-.5 2.8-11.8 2c-15.2-1-25.3-3.2-25.3-3.2l.9-5.8s.7.2 9.7-.1c11.9-.4 18.7-6 25-1 4 3.2 1.5 8.1 1.5 8.1`}),$.createElement(`path`,{fill:`#FFF`,d:`M70.2 91s-5.6-4.8-11 2.7c-3.3 7.2.5 15.2 2.6 19.5-.3 3.8 2.4 4.3 2.4 4.3s0 1 1.5 2.7c4-7 6.7-9.1 13.7-12.5-.3-.7-1.9-3.3-1.8-3.8.2-1.7-1.3-2.6-1.3-2.6s-.3-.2-1.2-2.8c-.8-2.3-2-5.1-4.9-7.5`}),$.createElement(`path`,{fill:`#CBD1D1`,d:`M90.2 288s4.9 2.3 8.3 1.2c3.2-1 5.2.7 8 1.3a20 20 0 0 0 13.3-1.4c-.2-6.2-7.8-4.5-13.6-7.6-2.9-1.6-4.2-5.3-4-10H91.5s-1.5 12-1.3 16.5`}),$.createElement(`path`,{fill:`#2B0849`,d:`M90.2 287.8s2.8 1.5 7.6.8c3.5-.5 3.3.6 7.5 1.3 4.2.6 13-.2 14.3-1.2.5 1.3-.4 2.4-.4 2.4s-1.7.6-5.4.9c-2.3.1-8.1.3-10.2-.6-2-1.6-4.9-1.5-6-.3-4.5 1.1-7.2-.3-7.2-.3l-.2-3z`}),$.createElement(`path`,{fill:`#A4AABA`,d:`M98.4 272.3h3.5s0 7.5 5.2 9.6c-5.3.7-9.7-2.6-8.7-9.6`}),$.createElement(`path`,{fill:`#CBD1D1`,d:`M44.4 272s-2.2 7.8-4.7 13c-1.9 3.8-4.4 7.8 5.8 7.8 7 0 9.3-.5 7.7-7-1.6-6.3.3-13.8.3-13.8h-9z`}),$.createElement(`path`,{fill:`#2B0849`,d:`M38 290.3s2.3 1.2 7 1.2c6.4 0 8.7-1.7 8.7-1.7s.6 1.1-.7 2.2c-1 1-3.8 1.7-7.7 1.7-4.4 0-6.1-.6-7-1.3-1-.5-.8-1.6-.2-2.1`}),$.createElement(`path`,{fill:`#A4AABA`,d:`M45.3 274s0 1.6-.3 3.1-1.1 3.3-1.2 4.4c0 1.2 4.8 1.6 5.4 0 .7-1.6 1.4-6.8 2-7.6.7-.9-5.1-2.2-5.9.1`}),$.createElement(`path`,{fill:`#7BB2F9`,d:`M89.5 277.6h13.9s1.3-56.6 1.9-66.8c.6-10.3 4-45.1 1-65.6l-13-.7-23.7.8-1.3 10.4c0 .5-.7.9-.8 1.4 0 .6.5 1.4.4 2L59.6 206c-.1.7-1.3 1-1.5 2.8 0 .3.2 1.6.1 1.8-7.1 19.5-12.2 52.6-15.6 67.2h15.1L62 259c3-13.3 24-88.3 24-88.3l3.2-1-.2 48.6s-.2 1.3.4 2.1c.5.8-.6 1.2-.4 2.4l.4 1.8-1 12.4c-.4 4.9 1.2 40.7 1.2 40.7`}),$.createElement(`path`,{stroke:`#648BD8`,d:`M64.6 218.9c1.2 0 4.2-2.1 7.2-5.1m24.2 8.7s3-1.1 6.4-4`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#648BD8`,d:`M97 219.4s2.9-1.2 6.3-4`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1`}),$.createElement(`path`,{stroke:`#648BD8`,d:`M63.2 222.1s2.7-.6 6.7-3.5m5-72.4c-.3 3.2.3 8.8-4.5 9.4m22.8-11.3s.1 14.6-1.4 15.7c-2.3 1.7-3 2-3 2m.4-17s.3 13-1 25m-4.7.7s6.8-1 9.1-1M46 270l-.9 4.6m1.8-11.3-.8 4.1m16.6-64.9c-.3 1.6 0 2-.4 3.4 0 0-2.8 2-2.3 4s-.3 3.4-4.5 17.2c-1.8 5.8-4.3 19-6.2 28.3l-1.1 5.8m16-67-1 4.9m8.1-52.3-1.2 10.9s-1.2.1-.5 2.3c0 1.4-2.8 16.4-5.4 31.6m-20 82.1h13.9`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{fill:`#192064`,d:`M106.2 142.1c-3-.5-18.8-2.7-36.2.2a.6.6 0 0 0-.6.7v3a.6.6 0 0 0 .8.6c3.3-.5 17-2.4 35.6-.3.4 0 .7-.2.7-.5.2-1.4.2-2.5.2-3a.6.6 0 0 0-.5-.7`}),$.createElement(`path`,{fill:`#FFF`,d:`M96.4 145.3v-5.1a.8.8 0 0 0-.8-.9 114.1 114.1 0 0 0-8.1 0 .8.8 0 0 0-.9.8v5.1c0 .5.4.9.9.9h8a.8.8 0 0 0 .9-.8`}),$.createElement(`path`,{fill:`#192064`,d:`M95.2 144.3v-3.2a.7.7 0 0 0-.6-.7h-6.1a.7.7 0 0 0-.6.7v3.2c0 .4.3.7.6.7h6c.4 0 .7-.3.7-.7`}),$.createElement(`path`,{stroke:`#648BD8`,d:`M90.1 273.5h12.8m-11.7-3.7v6.3m-.3-12.6v4.5m-.5-97.6 1 46.4s.7 1.6-.3 2.8c-.9 1.1 2.6.7 1 2.3-1.7 1.6.9 1.2 0 3.5-.6 1.6-1 22-1.2 36.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#E4EBF7`,d:`M73.7 98.7 76 103s2 .8 1.8 2.7l.8 2.2m-14.3 8.7c.2-1 2.2-7.1 12.6-10.5m.7-16s7.7 6 16.5 2.7`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{fill:`#FFC6A0`,d:`M92 87s5.5-.9 7.5-4.6c1.3-.3.8 2.2-.3 3.7l-1 1.5s.2.3.2.9c0 .6-.2.6-.3 1v1l-.4 1c-.1.2 0 .6-.2.9-.2.4-1.6 1.8-2.6 2.8-3.8 3.6-5 1.7-6-.4-1-1.8-.7-5.1-.9-6.9-.3-2.9-2.6-3-2-4.4.4-.7 3 .7 3.4 1.8.7 2 2.9 1.8 2.6 1.7`}),$.createElement(`path`,{stroke:`#DB836E`,d:`M99.8 82.4c-.5.1-.3.3-1 1.3-.6 1-4.8 2.9-6.4 3.2-2.5.5-2.2-1.6-4.2-2.9-1.7-1-3.6-.6-1.4 1.4 1 1 1 1.1 1.4 3.2.3 1.5-.7 3.7.7 5.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),$.createElement(`path`,{stroke:`#E59788`,d:`M79.5 108.7c-2 2.9-4.2 6.1-5.5 8.7`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),$.createElement(`path`,{fill:`#FFC6A0`,d:`M87.7 124.8s-2-2-5.1-2.8c-3-.7-3.6-.1-5.5.1-2 .3-4-.9-3.7.7.3 1.7 5 1 5.2 2.1.2 1.1-6.3 2.8-8.3 2.2-.8.8.5 1.9 2 2.2.3 1.5 2.3 1.5 2.3 1.5s.7 1 2.6 1.1c2.5 1.3 9-.7 11-1.5 2-.9-.5-5.6-.5-5.6`}),$.createElement(`path`,{stroke:`#E59788`,d:`M73.4 122.8s.7 1.2 3.2 1.4c2.3.3 2.6.6 2.6.6s-2.6 3-9.1 2.3m2.3 2.2s3.8 0 5-.7m-2.4 2.2s2 0 3.3-.6m-1 1.7s1.7 0 2.8-.5m-6.8-9s-.6-1.1 1.3-.5c1.7.5 2.8 0 5.1.1 1.4.1 3-.2 4 .2 1.6.8 3.6 2.2 3.6 2.2s10.6 1.2 19-1.1M79 108s-8.4 2.8-13.2 12.1`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),$.createElement(`path`,{stroke:`#E4EBF7`,d:`M109.3 112.5s3.4-3.6 7.6-4.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#E59788`,d:`M107.4 123s9.7-2.7 11.4-.9`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),$.createElement(`path`,{stroke:`#BFCDDD`,d:`m194.6 83.7 4-4M187.2 91l3.7-3.6m.9-3-4.5-4.7m11.2 11.5-4.2-4.3m-65 76.3 3.7-3.7M122.3 170l3.5-3.5m.8-2.9-4.3-4.2M133 170l-4-4`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`}),$.createElement(`path`,{fill:`#A3B4C6`,d:`M190.2 211.8h-1.6a4 4 0 0 1-4-4v-32.1a4 4 0 0 1 4-4h1.6a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4`}),$.createElement(`path`,{fill:`#A3B4C6`,d:`M237.8 213a4.8 4.8 0 0 1-4.8 4.8h-86.6a4.8 4.8 0 0 1 0-9.6H233a4.8 4.8 0 0 1 4.8 4.8`}),$.createElement(`path`,{fill:`#A3B4C6`,d:`M154.1 190.1h70.5v-84.6h-70.5z`}),$.createElement(`path`,{fill:`#BFCDDD`,d:`M225 190.1h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2m0-59.3h-71.1a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.3v19a3.2 3.2 0 0 1-3.2 3.1`}),$.createElement(`path`,{fill:`#FFF`,d:`M159.6 120.5a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8v-3.2c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8`}),$.createElement(`path`,{fill:`#BFCDDD`,d:`M225 160.5h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2`}),$.createElement(`path`,{stroke:`#7C90A5`,d:`M173.5 130.8h49.3m-57.8 0h6m-15 0h6.7m11.1 29.8h49.3m-57.7 0h6m-15.8 0h6.7`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{fill:`#FFF`,d:`M159.6 151a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V147c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8m-63 29a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.5 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V176c0-.5.3-.8.8-.8h22.4c.5 0 .8.3.8.8v3.2c0 .4-.3.8-.8.8`}),$.createElement(`path`,{fill:`#BFCDDD`,d:`M203 221.1h-27.3a2.4 2.4 0 0 1-2.4-2.4v-11.4a2.4 2.4 0 0 1 2.4-2.5H203a2.4 2.4 0 0 1 2.4 2.5v11.4a2.4 2.4 0 0 1-2.4 2.4`}),$.createElement(`path`,{stroke:`#A3B4C6`,d:`M177.3 207.2v11.5m23.8-11.5v11.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{fill:`#5BA02E`,d:`M162.9 267.9a9.4 9.4 0 0 1-9.4-9.4v-14.8a9.4 9.4 0 0 1 18.8 0v14.8a9.4 9.4 0 0 1-9.4 9.4`}),$.createElement(`path`,{fill:`#92C110`,d:`M171.2 267.8a9.4 9.4 0 0 1-9.4-9.4V255a9.4 9.4 0 0 1 18.8 0v3.4a9.4 9.4 0 0 1-9.4 9.4`}),$.createElement(`path`,{fill:`#F2D7AD`,d:`M181.3 293.7h-27.7a3.2 3.2 0 0 1-3.2-3.2v-20.7a3.2 3.2 0 0 1 3.2-3.2h27.7a3.2 3.2 0 0 1 3.2 3.2v20.7a3.2 3.2 0 0 1-3.2 3.2`}))),tY=e=>{let{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:a,paddingXS:o,paddingLG:s,marginXS:c,lineHeight:l}=e;return{[t]:{padding:`${Q(e.calc(s).mul(2).equal())} ${Q(a)}`,"&-rtl":{direction:`rtl`}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:`auto`},[`${t} ${t}-icon`]:{marginBottom:s,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:l,textAlign:`center`},[`${t} ${t}-body`]:{marginTop:s,padding:`${Q(s)} ${Q(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:`center`,"& > *":{marginInlineEnd:o,"&:last-child":{marginInlineEnd:0}}}}},nY=e=>{let{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}}},rY=e=>[tY(e),nY(e)],iY=yr(`Result`,e=>{let t=e.colorInfo,n=e.colorError,r=e.colorSuccess,i=e.colorWarning;return rY(wn(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295}))},e=>{let{fontSizeHeading3:t,fontSize:n,paddingLG:r}=e;return{titleFontSize:t,subtitleFontSize:n,iconFontSize:Ei(t)?t*3:`calc(${t} * 3)`,extraMargin:`${r}px 0 0 0`}}),aY=()=>$.createElement(`svg`,{width:`251`,height:`294`},$.createElement(`title`,null,`Unauthorized`),$.createElement(`g`,{fill:`none`,fillRule:`evenodd`},$.createElement(`path`,{fill:`#E4EBF7`,d:`M0 129v-2C0 58.3 55.6 2.7 124.2 2.7h2c68.6 0 124.2 55.6 124.2 124.1v2.1c0 68.6-55.6 124.2-124.1 124.2h-2.1A124.2 124.2 0 0 1 0 129`}),$.createElement(`path`,{fill:`#FFF`,d:`M41.4 133a8.2 8.2 0 1 1-16.4-1.7 8.2 8.2 0 0 1 16.4 1.6`}),$.createElement(`path`,{stroke:`#FFF`,d:`m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7`,strokeWidth:`2`}),$.createElement(`path`,{fill:`#FFF`,d:`M41.5 161.3a5.6 5.6 0 1 1-11.2-1.2 5.6 5.6 0 0 1 11.2 1.2m17.7-16a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m41.2-115.8H130a4.6 4.6 0 1 0 0-9.1h-29.6a4.6 4.6 0 0 0 0 9.1m11.3 18.3h29.7a4.6 4.6 0 1 0 0-9.2h-29.7a4.6 4.6 0 1 0 0 9.2`}),$.createElement(`path`,{fill:`#FFF`,d:`M114 29.5h15.8a4.6 4.6 0 1 0 0 9.1H114a4.6 4.6 0 0 0 0-9.1m71.3 108.2a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2`}),$.createElement(`path`,{stroke:`#FFF`,d:`m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13`,strokeWidth:`2`}),$.createElement(`path`,{fill:`#FFF`,d:`M185.6 172a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.5 1.3m18.6-16.6a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.6 1.4`}),$.createElement(`path`,{stroke:`#FFF`,d:`M153 194a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm73-75.8a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm-9 34.9a2.2 2.2 0 1 1-4.3 0 2.2 2.2 0 0 1 4.4 0zm-39.2-43.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.3-15.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm6.7 88a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0z`,strokeWidth:`2`}),$.createElement(`path`,{stroke:`#FFF`,d:`m215.1 155.3-1.9 20-10.8 6m-27.8-4.7-6.3 9.8H157l-4.5 6.4m23.4-65.5v-15.7m45.6 7.8-12.8 7.9-15.2-7.9V96.7`,strokeWidth:`2`}),$.createElement(`path`,{fill:`#A26EF4`,d:`M180.7 29.3a29.3 29.3 0 1 1 58.6 0 29.3 29.3 0 0 1-58.6 0`}),$.createElement(`path`,{fill:`#FFF`,d:`m221.4 41.7-21.5-.1a1.7 1.7 0 0 1-1.7-1.8V27.6a1.7 1.7 0 0 1 1.8-1.7h21.5c1 0 1.8.9 1.8 1.8l-.1 12.3a1.7 1.7 0 0 1-1.7 1.7`}),$.createElement(`path`,{fill:`#FFF`,d:`M215.1 29.2c0 2.6-2 4.6-4.5 4.6a4.6 4.6 0 0 1-4.5-4.7v-6.9c0-2.6 2-4.6 4.6-4.6 2.5 0 4.5 2 4.4 4.7v6.9zm-4.5-14a6.9 6.9 0 0 0-7 6.8v7.3a6.9 6.9 0 0 0 13.8.1V22a6.9 6.9 0 0 0-6.8-6.9zm-43 53.2h-4a4.7 4.7 0 0 1-4.7-4.8 4.7 4.7 0 0 1 4.7-4.7h4a4.7 4.7 0 0 1 4.7 4.8 4.7 4.7 0 0 1-4.7 4.7`}),$.createElement(`path`,{fill:`#5BA02E`,d:`M168.2 248.8a6.6 6.6 0 0 1-6.6-6.6v-66a6.6 6.6 0 0 1 13.2 0v66a6.6 6.6 0 0 1-6.6 6.6`}),$.createElement(`path`,{fill:`#92C110`,d:`M176.1 248.2a6.6 6.6 0 0 1-6.6-6.6v-33a6.6 6.6 0 1 1 13.3 0v33a6.6 6.6 0 0 1-6.7 6.6`}),$.createElement(`path`,{fill:`#F2D7AD`,d:`M186 293.9h-27.4a3.2 3.2 0 0 1-3.2-3.2v-45.9a3.2 3.2 0 0 1 3.2-3.1H186a3.2 3.2 0 0 1 3.2 3.1v46a3.2 3.2 0 0 1-3.2 3`}),$.createElement(`path`,{fill:`#FFF`,d:`M82 147.7s6.3-1 17.5-1.3c11.8-.4 17.6 1 17.6 1s3.7-3.8 1-8.3c1.3-12.1 6-32.9.3-48.3-1.1-1.4-3.7-1.5-7.5-.6-1.4.3-7.2-.2-8-.1l-15.3-.4-8-.5c-1.6-.1-4.3-1.7-5.5-.3-.4.4-2.4 5.6-2 16l8.7 35.7s-3.2 3.6 1.2 7`}),$.createElement(`path`,{fill:`#FFC6A0`,d:`m75.8 73.3-1-6.4 12-6.5s7.4-.1 8 1.2c.8 1.3-5.5 1-5.5 1s-1.9 1.4-2.6 2.5c-1.7 2.4-1 6.5-8.4 6-1.7.3-2.5 2.2-2.5 2.2`}),$.createElement(`path`,{fill:`#FFB594`,d:`M52.4 77.7S66.7 87 77.4 92c1 .5-2 16.2-11.9 11.8-7.4-3.3-20.1-8.4-21.5-14.5-.7-3.2 2.6-7.6 8.4-11.7M142 80s-6.7 3-13.9 6.9c-3.9 2.1-10.1 4.7-12.3 8-6.2 9.3 3.5 11.2 13 7.5 6.6-2.7 29-12.1 13.2-22.4`}),$.createElement(`path`,{fill:`#FFC6A0`,d:`m76.2 66.4 3 3.8S76.4 73 73 76c-7 6.2-12.8 14.3-16 16.4-4 2.7-9.7 3.3-12.2 0-3.5-5.1.5-14.7 31.5-26`}),$.createElement(`path`,{fill:`#FFF`,d:`M64.7 85.1s-2.4 8.4-9 14.5c.7.5 18.6 10.5 22.2 10 5.2-.6 6.4-19 1.2-20.5-.8-.2-6-1.3-8.9-2.2-.9-.2-1.6-1.7-3.5-1l-2-.8zm63.7.7s5.3 2 7.3 13.8c-.6.2-17.6 12.3-21.8 7.8-6.6-7-.8-17.4 4.2-18.6 4.7-1.2 5-1.4 10.3-3`}),$.createElement(`path`,{stroke:`#E4EBF7`,d:`M78.2 94.7s.9 7.4-5 13`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#E4EBF7`,d:`M87.4 94.7s3.1 2.6 10.3 2.6c7.1 0 9-3.5 9-3.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.9`}),$.createElement(`path`,{fill:`#FFC6A0`,d:`m117.2 68.6-6.8-6.1s-5.4-4.4-9.2-1c-3.9 3.5 4.4 2.2 5.6 4.2 1.2 2.1.9 1.2-2 .5-5.7-1.4-2.1.9 3 5.3 2 1.9 7 1 7 1l2.4-3.9z`}),$.createElement(`path`,{fill:`#FFB594`,d:`m105.3 91.3-.3-11H89l-.5 10.5c0 .4.2.8.6 1 2 1.3 9.3 5 15.8.4.2-.2.4-.5.4-.9`}),$.createElement(`path`,{fill:`#5C2552`,d:`M107.6 74.2c.8-1.1 1-9 1-11.9a1 1 0 0 0-1-1l-4.6-.4c-7.7-1-17 .6-18.3 6.3-5.4 5.9-.4 13.3-.4 13.3s2 3.5 4.3 6.8c.8 1 .4-3.8 3-6a47.9 47.9 0 0 1 16-7`}),$.createElement(`path`,{fill:`#FFC6A0`,d:`M88.4 83.2s2.7 6.2 11.6 6.5c7.8.3 9-7 7.5-17.5l-1-5.5c-6-2.9-15.4.6-15.4.6s-.6 2-.2 5.5c-2.3 2-1.8 5.6-1.8 5.6s-1-2-2-2.3c-.9-.3-2 0-2.3 2-1 4.6 3.6 5.1 3.6 5.1`}),$.createElement(`path`,{stroke:`#DB836E`,d:`m100.8 77.1 1.7-1-1-4.3.7-1.4`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{fill:`#552950`,d:`M105.5 74c0 .8-.4 1.4-1 1.4-.4 0-.8-.7-.8-1.4s.5-1.2 1-1.2.9.6.8 1.3m-8 .2c0 .8-.4 1.3-.9 1.3s-.9-.6-.9-1.3c0-.7.5-1.3 1-1.3s1 .6.9 1.3`}),$.createElement(`path`,{stroke:`#DB836E`,d:`M91.1 86.8s5.3 5 12.7 2.3`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{fill:`#DB836E`,d:`M99.8 81.9s-3.6.2-1.5-2.8c1.6-1.5 5-.4 5-.4s1 3.9-3.5 3.2`}),$.createElement(`path`,{stroke:`#5C2552`,d:`M102.9 70.6s2.5.8 3.4.7m-12.4.7s2.5-1.2 4.8-1.1`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`}),$.createElement(`path`,{stroke:`#DB836E`,d:`M86.3 77.4s1 .9 1.5 2c-.4.6-1 1.2-.3 1.9m11.8 2.4s2 .2 2.5-.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#E4EBF7`,d:`m87.8 115.8 15.7-3m-3.3 3 10-2m-43.7-27s-1.6 8.8-6.7 14M128.3 88s3 4 4 11.7`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#DB836E`,d:`M64 84.8s-6 10-13.5 10`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),$.createElement(`path`,{fill:`#FFC6A0`,d:`m112.4 66-.2 5.2 12 9.2c4.5 3.6 8.9 7.5 11 8.7 4.8 2.8 8.9 3.3 11 1.8 4.1-2.9 4.4-9.9-8.1-15.3-4.3-1.8-16.1-6.3-25.7-9.7`}),$.createElement(`path`,{stroke:`#DB836E`,d:`M130.5 85.5s4.6 5.7 11.7 6.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),$.createElement(`path`,{stroke:`#E4EBF7`,d:`M121.7 105.7s-.4 8.6-1.3 13.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#648BD8`,d:`M115.8 161.5s-3.6-1.5-2.7-7.1`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{fill:`#CBD1D1`,d:`M101.5 290.2s4.3 2.1 7.4 1c2.9-.9 4.6.7 7.2 1.3 2.5.5 6.9 1 11.7-1.3 0-5.6-7-4-12-6.8-2.6-1.4-3.8-4.7-3.6-8.8h-9.5s-1.4 10.6-1.2 14.6`}),$.createElement(`path`,{fill:`#2B0849`,d:`M101.5 290s2.4 1.4 6.8.7c3-.4 3.7.5 7.5 1 3.7.6 10.8 0 11.9-.8.4 1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.7-.5-1.8-1.4-5.2-2-5.7-.3-4 1-7.4-.3-7.4-.3l-.2-2.6z`}),$.createElement(`path`,{fill:`#A4AABA`,d:`M108.8 276.2h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6`}),$.createElement(`path`,{fill:`#CBD1D1`,d:`M57.6 272.5s-2 7.5-4.5 12.4c-1.8 3.7-4.2 7.6 5.5 7.6 6.7 0 9-.5 7.5-6.7-1.5-6.1.3-13.3.3-13.3h-8.8z`}),$.createElement(`path`,{fill:`#2B0849`,d:`M51.5 290s2.2 1.2 6.7 1.2c6.1 0 8.3-1.6 8.3-1.6s.6 1-.6 2.1c-1 .9-3.6 1.6-7.4 1.6-4.2 0-6-.6-6.8-1.2-.9-.5-.7-1.6-.2-2`}),$.createElement(`path`,{fill:`#A4AABA`,d:`M58.5 274.4s0 1.6-.3 3-1 3.1-1.1 4.2c0 1.1 4.5 1.5 5.2 0 .6-1.6 1.3-6.5 1.9-7.3.6-.8-5-2.1-5.7.1`}),$.createElement(`path`,{fill:`#7BB2F9`,d:`m100.9 277 13.3.1s1.3-54.2 1.8-64c.6-9.9 3.8-43.2 1-62.8l-12.4-.7-22.8.8-1.2 10c0 .4-.6.8-.7 1.3 0 .6.4 1.3.3 2-2.3 14-6.3 32.9-8.7 46.4-.1.6-1.2 1-1.4 2.6 0 .3.2 1.6 0 1.8-6.8 18.7-10.8 47.6-14.1 61.6h14.5s2.2-8.6 4-17a3984 3984 0 0 1 23-84.5l3-.5 1 46.1s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.7-1 11.9c-.4 4.6 0 39 0 39`}),$.createElement(`path`,{stroke:`#648BD8`,d:`M77.4 220.4c1.2.1 4-2 7-4.9m23.1 8.4s2.8-1 6.1-3.8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{stroke:`#648BD8`,d:`M108.5 221s2.7-1.2 6-4`,strokeLinecap:`round`,strokeLinejoin:`round`}),$.createElement(`path`,{stroke:`#648BD8`,d:`M76.1 223.6s2.6-.6 6.5-3.4m4.7-69.4c-.2 3.1.3 8.5-4.3 9m21.8-10.7s.1 14-1.3 15c-2.2 1.6-3 1.9-3 1.9m.5-16.4s0 12.8-1.2 24.3m-4.9 1s7.2-1.6 9.4-1.6m-28.6 31.5-1 4.5s-1.5 1.8-1 3.7c.4 2-1 2-5 15.3-1.7 5.6-4.4 18.5-6.3 27.5l-4 18.4M77 196.7a313.3 313.3 0 0 1-.8 4.8m7.7-50-1.2 10.3s-1 .2-.5 2.3c.1 1.3-2.6 15.6-5.1 30.2M57.6 273h13.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),$.createElement(`path`,{fill:`#192064`,d:`M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4`}),$.createElement(`path`,{fill:`#FFF`,d:`M107.5 150.4v-5a.8.8 0 0 0-.8-.7H99a.8.8 0 0 0-.7.8v4.8c0 .5.3.9.8.8a140.8 140.8 0 0 1 7.7 0 .8.8 0 0 0 .8-.7`}),$.createElement(`path`,{fill:`#192064`,d:`M106.4 149.4v-3a.6.6 0 0 0-.6-.7 94.1 94.1 0 0 0-5.8 0 .6.6 0 0 0-.7.7v3c0 .4.3.7.7.7h5.7c.4 0 .7-.3.7-.7`}),$.createElement(`path`,{stroke:`#648BD8`,d:`M101.5 274h12.3m-11.1-5v6.5m0-12.4v4.3m-.5-93.4.9 44.4s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.1 0 3.4-.6 1.5-1 21-1.1 35`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}))),oY={success:L,error:ie,info:re,warning:qe},sY={404:$J,500:eY,403:aY},cY=Object.keys(sY),lY=({icon:e,status:t,className:n,style:r})=>{if(cY.includes(`${t}`)){let e=sY[t];return $.createElement(`div`,{className:n,style:r},$.createElement(e,null))}let i=$.createElement(oY[t]);return e===null||e===!1?null:$.createElement(`div`,{className:n,style:r},e||i)},uY=({className:e,extra:t,style:n})=>t?$.createElement(`div`,{className:e,style:n},t):null,dY=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:i,title:a,style:o,children:s,status:c=`info`,icon:l,extra:u,styles:d,classNames:f,...p}=e,{getPrefixCls:m,direction:h,className:g,style:_,classNames:v,styles:y}=Wt(`result`),b={...e,status:c},[x,S]=zi([v,f],[y,d],{props:b}),C=m(`result`,t),[w,T]=iY(C),E=X(C,`${C}-${c}`,n,g,r,{[`${C}-rtl`]:h===`rtl`},w,T,x.root),D=X(`${C}-title`,x.title),O=X(`${C}-subtitle`,x.subTitle),k=X(`${C}-extra`,x.extra),A=X(`${C}-body`,x.body),j=X(`${C}-icon`,{[`${C}-image`]:cY.includes(`${c}`)},x.icon),M={...S.root,..._,...o},N=V(p,{aria:!0,data:!0});return $.createElement(`div`,{...N,className:E,style:M},$.createElement(lY,{className:j,style:S.icon,status:c,icon:l}),Ti(a)&&$.createElement(`div`,{className:D,style:S.title},a),Ti(i)&&$.createElement(`div`,{className:O,style:S.subTitle},i),$.createElement(uY,{className:k,extra:u,style:S.extra}),Ti(s)&&$.createElement(`div`,{className:A,style:S.body},s))};dY.PRESENTED_IMAGE_403=sY[403],dY.PRESENTED_IMAGE_404=sY[404],dY.PRESENTED_IMAGE_500=sY[500];var fY=FR,pY=(0,$.forwardRef)((e,t)=>{let{prefixCls:n,className:r,children:i,destroyOnHidden:a=!1,size:o,style:s,supportMotion:c}=e,l=o===0||typeof o==`string`&&Number.parseFloat(o)===0,u=X(`${n}-panel`,{[`${n}-panel-hidden`]:l,[`${n}-panel-transition`]:c},r),d=o!==void 0;return $.createElement(`div`,{ref:t,className:u,style:{...s,flexBasis:d?o:`auto`,flexGrow:+!d}},!(a&&l)&&i)}),mY=()=>null;function hY(e){if(Oi(e))return{...e,showCollapsibleIcon:e.showCollapsibleIcon===void 0?`auto`:e.showCollapsibleIcon};let t=!!e;return{start:t,end:t,showCollapsibleIcon:`auto`}}function gY(e){return $.useMemo(()=>Je(e).filter(e=>$.isValidElement(e)).map(e=>{let{props:t}=e,{collapsible:n,...r}=t;return{...r,collapsible:hY(n)}}),[e])}function _Y(e,t){return e.collapsible&&t.collapsible?e.showCollapsibleIcon===!0||t.showCollapsibleIcon===!0?!0:e.showCollapsibleIcon===`auto`||t.showCollapsibleIcon===`auto`?`auto`:!1:e.collapsible?e.showCollapsibleIcon:t.collapsible?t.showCollapsibleIcon:!1}function vY(e,t,n){return $.useMemo(()=>{let r=[];for(let i=0;i<e.length-1;i+=1){let a=e[i],o=e[i+1],s=t[i],c=t[i+1],{resizable:l=!0,min:u,collapsible:d}=a,{resizable:f=!0,min:p,collapsible:m}=o,h=l&&f&&(s!==0||!u)&&(c!==0||!p),g=!!d.end&&s>0,_=!!m.start&&c===0&&s>0,v=g||_,y=!!m.start&&c>0,b=!!d.end&&s===0&&c>0,x=y||b,S=_Y({collapsible:g,showCollapsibleIcon:d.showCollapsibleIcon},{collapsible:_,showCollapsibleIcon:m.showCollapsibleIcon}),C=_Y({collapsible:y,showCollapsibleIcon:m.showCollapsibleIcon},{collapsible:b,showCollapsibleIcon:d.showCollapsibleIcon});r[i]={resizable:h,startCollapsible:!!(n?x:v),endCollapsible:!!(n?v:x),showStartCollapsibleIcon:n?C:S,showEndCollapsibleIcon:n?S:C}}return r},[t,e,n])}function yY(e,t,n){let r=0,i=[];e.forEach((e,t)=>{e===void 0?i.push(t):r+=e});let a=1-r,o=i.length;if(e.length&&!i.length&&r!==1){if(r===0){let t=1/e.length;return e.map(()=>t)}let t=1/r;return e.map(e=>e*t)}if(a<0){let t=1/r;return e.map(e=>e===void 0?0:e*t)}let s=0,c=0,l=0,u=1;for(let e of i){let r=t[e]||0,i=n[e]||1;s+=r,c+=i,l=Math.max(l,r),u=Math.min(u,i)}if(s>1&&c<1){let t=1/o;return e.map(e=>e===void 0?t:e)}let d=a/o;if(l<=d&&d<=u)return e.map(e=>e===void 0?d:e);let f=Lt(e),p=a-s;for(let e=0;e<o;e+=1){let r=i[e],a=t[r]||0,o=n[r]||1;f[r]=a;let s=o-a,c=Math.min(s,p);f[r]+=c,p-=c}return f}function bY(e){return Number(e.slice(0,-1))/100}function xY(e){return typeof e==`string`&&e.endsWith(`%`)}function SY(e,t){let n=e.map(e=>e.size),r=e.length,i=t||0,a=e=>e*i,[o,s]=$.useState(()=>e.map(e=>e.defaultSize)),c=$.useMemo(()=>n.some(Ti)?n:o,[r,o,n]),l=$.useMemo(()=>e.map(e=>xY(e.min)?bY(e.min):(e.min||0)/i),[e,i]),u=$.useMemo(()=>e.map(e=>xY(e.max)?bY(e.max):(e.max||i)/i),[e,i]),d=$.useMemo(()=>{let e=[];for(let t=0;t<r;t+=1){let n=c[t];if(xY(n))e[t]=bY(n);else if(n||n===0){let r=Number(n);Number.isNaN(r)||(e[t]=r/i)}else e[t]=void 0}return yY(e,l,u)},[r,c,i,l,u]),f=$.useMemo(()=>d.map(a),[d,i]);return[$.useMemo(()=>t?f:c,[f,c,t]),f,d,l,u,s]}function CY(e,t,n,r,i,a){let o=e.map(e=>[e.min,e.max]),s=r||0,c=e=>e*s;function l(e,t){return typeof e==`string`?c(bY(e)):e??t}let[u,d]=$.useState([]),f=$.useRef([]),[p,m]=$.useState(null),h=()=>n.map(c);return[e=>{d(h()),m({index:e,confirmed:!1})},(e,n)=>{let r=null;if((!p||!p.confirmed)&&n!==0){if(n>0)r=e,m({index:e,confirmed:!0});else for(let n=e;n>=0;--n)if(u[n]>0&&t[n].resizable){r=n,m({index:n,confirmed:!0});break}}let a=r??p?.index??e,c=Lt(u),d=a+1,f=l(o[a][0],0),h=l(o[d][0],0),g=l(o[a][1],s),_=l(o[d][1],s),v=n;return c[a]+v<f&&(v=f-c[a]),c[d]-v<h&&(v=c[d]-h),c[a]+v>g&&(v=g-c[a]),c[d]-v>_&&(v=c[d]-_),c[a]+=v,c[d]-=v,i(c),c},()=>{m(null)},(e,t)=>{let n=h(),r=a?t===`start`?`end`:`start`:t,c=r===`start`?e:e+1,u=r===`start`?e+1:e,d=n[c],p=n[u];if(d!==0&&p!==0)n[c]=0,n[u]+=d,f.current[e]=d;else{let t=d+p,r=l(o[c][0],0),i=l(o[c][1],s),a=l(o[u][0],0),m=l(o[u][1],s),h=Math.max(r,t-m),g=Math.min(i,t-a),_=a||(g-h)/2,v=f.current[e],y=t-v;v&&v<=m&&v>=a&&y<=i&&y>=r?(n[u]=v,n[c]=y):(n[c]-=_,n[u]+=_)}return i(n),n},p?.index]}var wY=e=>Ei(e)&&Number.isFinite(e)?Math.round(e):0,TY=300,EY=e=>{let{prefixCls:t,rootPrefixCls:n,vertical:r,index:i,active:a,ariaNow:o,ariaMin:s,ariaMax:c,resizable:l,draggerIcon:u,draggerStyle:d,draggerClassName:f,collapsibleIcon:p,startCollapsible:m,endCollapsible:h,onDraggerDoubleClick:g,onOffsetStart:_,onOffsetUpdate:v,onOffsetEnd:y,onCollapse:b,lazy:S,containerSize:C,showStartCollapsibleIcon:w,showEndCollapsibleIcon:E}=e,D=`${t}-bar`,O=(0,$.useRef)(0),[k]=Sr(n,`splitter`),[A,j]=(0,$.useState)(null),[M,N]=(0,$.useState)(0),P=r?0:M,F=r?M:0,I=e=>{e.stopPropagation();let t=Date.now(),n=t-O.current;n>0&&n<TY||(O.current=t,l&&e.currentTarget&&(j([e.pageX,e.pageY]),_(i)))},L=e=>{if(l&&e.touches.length===1){let t=e.touches[0];j([t.pageX,t.pageY]),_(i)}},R=e=>{let t=C*o/100,n=t+e,r=Math.max(0,C*s/100),i=Math.min(C,C*c/100);return Math.max(r,Math.min(i,n))-t},z=J((e,t)=>{N(R(r?t:e))}),B=J(()=>{v(i,P,F,!0),N(0),y(!0)}),V=e=>{switch(e){case!0:return`${D}-collapse-bar-always-visible`;case!1:return`${D}-collapse-bar-always-hidden`;case`auto`:return`${D}-collapse-bar-hover-only`}};Pe(()=>{if(!A)return;let e={mousemove:e=>{let{pageX:t,pageY:n}=e,r=t-A[0],a=n-A[1];S?z(r,a):v(i,r,a)},mouseup:()=>{S?B():y(),j(null)},touchmove:e=>{if(e.touches.length===1){let t=e.touches[0],n=t.pageX-A[0],r=t.pageY-A[1];S?z(n,r):v(i,n,r)}},touchend:()=>{S?B():y(),j(null)}};for(let[t,n]of Object.entries(e))window.addEventListener(t,n);return()=>{for(let[t,n]of Object.entries(e))window.removeEventListener(t,n)}},[A,i,S]);let H={[k(`bar-preview-offset`)]:`${M}px`},[U,W,G,K]=$.useMemo(()=>{let e=null,t=null,n=p?.start!==void 0,i=p?.end!==void 0;return r?(e=n?p.start:$.createElement(x,null),t=i?p.end:$.createElement(q,null)):(e=n?p.start:$.createElement(ee,null),t=i?p.end:$.createElement(T,null)),[e,t,n,i]},[p,r]);return $.createElement(`div`,{className:D,role:`separator`,"aria-valuenow":wY(o),"aria-valuemin":wY(s),"aria-valuemax":wY(c)},S&&$.createElement(`div`,{className:X(`${D}-preview`,{[`${D}-preview-active`]:!!M}),style:H}),$.createElement(`div`,{style:d?.default,className:X(`${D}-dragger`,{[`${D}-dragger-disabled`]:!l,[`${D}-dragger-active`]:a,[`${D}-dragger-customize`]:u!==void 0},f?.default,a&&f?.active),onMouseDown:I,onTouchStart:L,onDoubleClick:()=>g?.(i)},u===void 0?null:$.createElement(`div`,{className:X(`${D}-dragger-icon`)},u)),m&&$.createElement(`div`,{className:X(`${D}-collapse-bar`,`${D}-collapse-bar-start`,{[`${D}-collapse-bar-customize`]:G},V(w)),onClick:()=>b(i,`start`)},$.createElement(`span`,{className:X(`${D}-collapse-icon`,`${D}-collapse-start`)},U)),h&&$.createElement(`div`,{className:X(`${D}-collapse-bar`,`${D}-collapse-bar-end`,{[`${D}-collapse-bar-customize`]:K},V(E)),onClick:()=>b(i,`end`)},$.createElement(`span`,{className:X(`${D}-collapse-icon`,`${D}-collapse-end`)},W)))},DY={position:`absolute`,top:`50%`,left:{_skip_check_:!0,value:`50%`},transform:`translate(-50%, -50%)`},OY=yr(`Splitter`,e=>{let{componentCls:t,colorFill:n,splitBarDraggableSize:r,splitBarSize:i,splitTriggerSize:a,controlItemBgHover:o,controlItemBgActive:s,controlItemBgActiveHover:c,colorPrimary:l,antCls:u,calc:d}=e,[,f]=Sr(u,`splitter`),p=`${t}-bar`,m=`${t}-mask`,h=`${t}-panel`,g=d(a).div(2).equal(),_={position:`absolute`,background:e.colorPrimary,opacity:.2,pointerEvents:`none`,transition:`none`,zIndex:1,display:`none`};return{[t]:{...ur(e),display:`flex`,width:`100%`,height:`100%`,alignItems:`stretch`,[`> ${p}`]:{flex:`none`,position:`relative`,userSelect:`none`,[`${p}-dragger`]:{...DY,zIndex:1,"&::before":{content:`""`,background:o,...DY},"&::after":{content:`""`,background:n,...DY},[`&:hover:not(${p}-dragger-active)`]:{"&::before":{background:s}},"&-active":{zIndex:2,"&::before":{background:c}},[`&-active${p}-dragger-customize`]:{[`${p}-dragger-icon`]:{color:l}},[`&-disabled${p}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:`default`,"&::before":{background:o}},"&::after":{display:`none`},[`${p}-dragger-icon`]:{display:`none`}},"&-customize":{[`${p}-dragger-icon`]:{...DY,display:`flex`,alignItems:`center`,color:n},"&::after":{display:`none`}}},[`${p}-collapse-bar`]:{...DY,zIndex:e.zIndexPopupBase,background:o,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:`pointer`,opacity:0,display:`flex`,alignItems:`center`,justifyContent:`center`,[`&:hover:not(${p}-collapse-bar-customize)`]:{background:s},[`&:active:not(${p}-collapse-bar-customize)`]:{background:c},[`${p}-collapse-icon`]:{display:`flex`,alignItems:`center`}},[`${p}-collapse-bar-customize`]:{background:`transparent`},"&:hover, &:active":{[`${p}-collapse-bar-hover-only`]:{opacity:1}},[`${p}-collapse-bar-hover-only`]:{"@media(hover:none)":{opacity:1}},[`${p}-collapse-bar-always-hidden`]:{display:`none`},[`${p}-collapse-bar-always-visible`]:{opacity:1}},[m]:{position:`fixed`,zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:`col-resize`},"&-vertical":{cursor:`row-resize`}},"&-horizontal":{flexDirection:`row`,[`> ${p}`]:{width:0,[`${p}-preview`]:{height:`100%`,width:i,..._,[`&${p}-preview-active`]:{display:`block`,transform:`translate3d(${f(`bar-preview-offset`)}, 0, 0)`}},[`${p}-dragger`]:{cursor:`col-resize`,height:`100%`,width:a,"&::before":{height:`100%`,width:i},"&::after":{height:r,width:i}},[`${p}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:!0,value:`auto`},right:{_skip_check_:!0,value:g},transform:`translateY(-50%)`},"&-end":{left:{_skip_check_:!0,value:g},right:{_skip_check_:!0,value:`auto`},transform:`translateY(-50%)`}}}},"&-vertical":{flexDirection:`column`,[`> ${p}`]:{height:0,[`${p}-preview`]:{height:i,width:`100%`,..._,[`&${p}-preview-active`]:{display:`block`,transform:`translate3d(0, ${f(`bar-preview-offset`)}, 0)`}},[`${p}-dragger`]:{cursor:`row-resize`,width:`100%`,height:a,"&::before":{width:`100%`,height:i},"&::after":{width:r,height:i}},[`${p}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:`auto`,bottom:g,transform:`translateX(-50%)`},"&-end":{top:g,bottom:`auto`,transform:`translateX(-50%)`}}}},[h]:{overflow:`auto`,scrollbarWidth:`thin`,boxSizing:`border-box`,"&-hidden":{overflow:`hidden`},[`&:has(${t}:only-child)`]:{overflow:`hidden`},"&-transition":{transition:`flex-basis ${e.motionDurationSlow} ${e.motionEaseInOut}`,...xu()}}}}},e=>{let t=e.splitBarSize||2,n=e.splitTriggerSize||6,r=e.resizeSpinnerSize||20;return{splitBarSize:t,splitTriggerSize:n,splitBarDraggableSize:e.splitBarDraggableSize??r,resizeSpinnerSize:r}}),kY=e=>{let{prefixCls:t,className:n,classNames:r,collapsible:i,style:a,styles:o,layout:s,orientation:c,vertical:l,children:u,destroyOnHidden:d,draggerIcon:f,collapsibleIcon:p,rootClassName:m,onDraggerDoubleClick:h,onResizeStart:g,onResize:_,onResizeEnd:v,lazy:y}=e,{getPrefixCls:b,direction:x,className:S,style:C,classNames:w,styles:T}=Wt(`splitter`),E=b(`splitter`,t),D=b(),O=la(E),[k,A]=OY(E,O),[j,M]=sc(c,l,s),N=x===`rtl`,P=!M&&N,F=gY(u),[I,L]=(0,$.useState)(),R=e=>{let{offsetWidth:t,offsetHeight:n}=e,r=M?n:t;r!==0&&L(r)},[z,B,V,H,U,W]=SY(F,I),G=vY(F,B,P),[ee,K,q,te,ne]=CY(F,G,V,I,W,P),re=J(e=>{ee(e),g?.(B)}),ie=J((e,t,n)=>{let r=K(e,t);n?v?.(r):_?.(r)}),ae=J(e=>{q(),e||v?.(B)}),oe=J((t,n)=>{let r=te(t,n);_?.(r),v?.(r);let i=r.map(e=>Math.abs(e)<2**-52);e.onCollapse?.(i,r)}),se={...e,vertical:M,orientation:j},[ce,le]=zi([w,r],[T,o],{props:se},{dragger:{_default:`default`}}),Y=X(E,n,`${E}-${j}`,{[`${E}-rtl`]:N},m,ce.root,S,A,O,k),ue=`${E}-mask`,de=$.useMemo(()=>{let e=[],t=0,n=F.length;for(let r=0;r<n;r+=1)t+=V[r],e.push(t);return e},[V,F.length]),fe={...le.root,...C,...a};return $.createElement(jt,{onResize:R},$.createElement(`div`,{style:fe,className:Y},F.map((e,t)=>{let n={...e,className:X(ce.panel,e.className),style:{...le.panel,...e.style}},r=$.createElement(pY,{...n,prefixCls:E,size:z[t],supportMotion:i?.motion&&ne===void 0,destroyOnHidden:e.destroyOnHidden??d}),a=null,o=G[t];if(o){let e=(de[t-1]||0)+H[t],n=(de[t+1]||100)-U[t+1],r=(de[t-1]||0)+U[t],s=(de[t+1]||100)-H[t+1];a=$.createElement(EY,{lazy:y,index:t,active:ne===t,prefixCls:E,rootPrefixCls:D,vertical:M,resizable:o.resizable,draggerStyle:le.dragger,draggerClassName:ce.dragger,draggerIcon:f,collapsibleIcon:i?.icon||p,ariaNow:de[t]*100,ariaMin:Math.max(e,n)*100,ariaMax:Math.min(r,s)*100,startCollapsible:o.startCollapsible,endCollapsible:o.endCollapsible,showStartCollapsibleIcon:o.showStartCollapsibleIcon,showEndCollapsibleIcon:o.showEndCollapsibleIcon,onDraggerDoubleClick:h,onOffsetStart:re,onOffsetUpdate:(e,t,n,r)=>{let i=M?n:t;P&&(i=-i),ie(e,i,r)},onOffsetEnd:ae,onCollapse:oe,containerSize:I||0})}return $.createElement($.Fragment,{key:`split-panel-${t}`},r,a)}),Ei(ne)&&$.createElement(`div`,{"aria-hidden":!0,className:X(ue,`${ue}-${j}`)})))};kY.Panel=mY;var AY=e=>{let{value:t,formatter:n,precision:r,decimalSeparator:i,groupSeparator:a=``,prefixCls:o,className:s,style:c}=e,l;if(ki(n))l=n(t);else{let e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(!n||e===`-`)l=e;else{let e=n[1],t=n[2]||`0`,s=n[4]||``;t=t.replace(/\B(?=(\d{3})+(?!\d))/g,a),Ei(r)&&(s=s.padEnd(r,`0`).slice(0,r>0?r:0)),s&&(s=`${i}${s}`),l=[$.createElement(`span`,{key:`int`,className:`${o}-content-value-int`},e,t),s&&$.createElement(`span`,{key:`decimal`,className:`${o}-content-value-decimal`},s)]}}return $.createElement(`span`,{className:s,style:c},l)},jY=e=>{let{componentCls:t,marginXXS:n,padding:r,colorTextDescription:i,titleFontSize:a,colorTextHeading:o,contentFontSize:s,fontFamily:c}=e;return{[t]:{...ur(e),[`${t}-header`]:{paddingBottom:n,[`${t}-title`]:{color:i,fontSize:a}},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:o,fontSize:s,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}}}}},MY=yr(`Statistic`,e=>jY(wn(e,{})),e=>{let{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}}),NY=$.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,valueStyle:o,value:s=0,title:c,valueRender:l,prefix:u,suffix:d,loading:f=!1,formatter:p,precision:m,decimalSeparator:h=`.`,groupSeparator:g=`,`,onMouseEnter:_,onMouseLeave:v,styles:y,classNames:b,...x}=e,{getPrefixCls:S,direction:C,className:w,style:T,classNames:E,styles:D}=Wt(`statistic`),O=S(`statistic`,n),[k,A]=MY(O),j={...e,decimalSeparator:h,groupSeparator:g,loading:f,value:s},[M,N]=zi([E,b],[D,y],{props:j}),P=X(O,{[`${O}-rtl`]:C===`rtl`},w,r,i,M.root,k,A),F=X(`${O}-header`,M.header),I=X(`${O}-title`,M.title),L=X(`${O}-content`,M.content),R=X(`${O}-content-value`,M.value),z=X(`${O}-content-prefix`,M.prefix),B=X(`${O}-content-suffix`,M.suffix),H=$.createElement(AY,{decimalSeparator:h,groupSeparator:g,prefixCls:O,formatter:p,precision:m,value:s,className:R,style:N.value}),U=$.useRef(null);$.useImperativeHandle(t,()=>({nativeElement:U.current}));let W=V(x,{aria:!0,data:!0});return $.createElement(`div`,{...W,className:P,style:{...N.root,...T,...a},ref:U,onMouseEnter:_,onMouseLeave:v},c&&$.createElement(`div`,{className:F,style:N.header},$.createElement(`div`,{className:I,style:N.title},c)),$.createElement(Jm,{paragraph:!1,loading:f,className:`${O}-skeleton`,active:!0},$.createElement(`div`,{className:L,style:{...o,...N.content}},u&&$.createElement(`span`,{className:z,style:N.prefix},u),ki(l)?l(H):H,d&&$.createElement(`span`,{className:B,style:N.suffix},d))))}),PY=[[`Y`,1e3*60*60*24*365],[`M`,1e3*60*60*24*30],[`D`,1e3*60*60*24],[`H`,1e3*60*60],[`m`,1e3*60],[`s`,1e3],[`S`,1]];function FY(e,t){let n=e,r=/\[[^\]]*]/g,i=(t.match(r)||[]).map(e=>e.slice(1,-1)),a=t.replace(r,`[]`),o=PY.reduce((e,[t,r])=>{if(e.includes(t)){let i=Math.floor(n/r);return n-=i*r,e.replace(RegExp(`${t}+`,`g`),e=>{let t=e.length;return i.toString().padStart(t,`0`)})}return e},a),s=0;return o.replace(r,()=>{let e=i[s];return s+=1,e})}function IY(e,t,n){let{format:r=``}=t,i=new Date(e).getTime(),a=Date.now();return FY(Math.max(n?i-a:a-i,0),r)}var LY=1e3/60;function RY(e){return new Date(e).getTime()}var zY=e=>{let{value:t,format:n=`HH:mm:ss`,onChange:r,onFinish:i,type:a,...o}=e,s=a===`countdown`,[c,l]=$.useState(null),u=J(()=>{let e=Date.now(),n=RY(t);l({});let a=s?n-e:e-n;return r?.(a),s&&n<e?(i?.(),!1):!0});$.useEffect(()=>{let e,t=()=>{u()||window.clearInterval(e)},n=()=>{e=window.setInterval(t,LY)},r=()=>{window.clearInterval(e)};return n(),()=>{r()}},[t,s]),$.useEffect(()=>{l({})},[]);let d=(e,t)=>c?IY(e,{...t,format:n},s):`-`,f=e=>Io(e,{title:void 0});return $.createElement(NY,{...o,value:t,valueRender:f,formatter:d})},BY=$.memo(e=>$.createElement(zY,{...e,type:`countdown`}));NY.Timer=zY,NY.Countdown=BY;var VY=NY;function HY(e){let{prefixCls:t,className:n,style:r,status:i}=e,a=`${t}-rail`;return $.createElement(`div`,{className:X(a,`${a}-${i}`,n),style:r})}var UY=$.createContext({}),WY=$.createContext(null);function GY(){return GY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GY.apply(this,arguments)}var KY=$.createContext({}),qY=$.forwardRef((e,t)=>{let{className:n,style:r,children:i,...a}=e,{prefixCls:o,classNames:s,styles:c}=$.useContext(WY),{className:l,style:u}=$.useContext(KY),d=`${o}-item`;return $.createElement(`div`,GY({},V(a,!1),{ref:t,className:X(`${d}-icon`,s.itemIcon,l,n),style:{...c.itemIcon,...u,...r}}),i)});function JY(){return JY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JY.apply(this,arguments)}function YY(e){return e!=null}function XY(e){let{prefixCls:t,classNames:n,styles:r,data:i,last:a,nextStatus:o,active:s,index:c,itemRender:l,iconRender:u,itemWrapperRender:d,onClick:p}=e,m=`${t}-item`,{railFollowPrevStatus:h}=$.useContext(UY),{ItemComponent:g}=$.useContext(WY),{onClick:_,title:v,subTitle:y,content:b,description:x,disabled:S,icon:C,status:w,className:T,style:E,classNames:D={},styles:O={},...k}=i,A=b??x,j={item:{...i,content:A},index:c,active:s},M=!!(p||_)&&!S,N={};M&&(N.role=`button`,N.tabIndex=0,N.onClick=e=>{_?.(e),p(c)},N.onKeyDown=e=>{let{which:t}=e;(t===f.ENTER||t===f.SPACE)&&p(c)});let P=w||`wait`,F=YY(v),I=YY(y),L=X(m,`${m}-${P}`,{[`${m}-custom`]:C,[`${m}-active`]:s,[`${m}-disabled`]:S===!0,[`${m}-empty-header`]:!F&&!I},T,n.item,D.root),R=$.createElement(qY,null);u&&(R=u(R,{...j,components:{Icon:qY}}));let z=$.createElement(`div`,{className:X(`${m}-wrapper`,n.itemWrapper,D.wrapper),style:{...r.itemWrapper,...O.wrapper}},$.createElement(KY.Provider,{value:{className:D.icon,style:O.icon}},R),$.createElement(`div`,{className:X(`${m}-section`,n.itemSection,D.section),style:{...r.itemSection,...O.section}},$.createElement(`div`,{className:X(`${m}-header`,n.itemHeader,D.header),style:{...r.itemHeader,...O.header}},F&&$.createElement(`div`,{className:X(`${m}-title`,n.itemTitle,D.title),style:{...r.itemTitle,...O.title}},v),I&&$.createElement(`div`,{title:typeof y==`string`?y:void 0,className:X(`${m}-subtitle`,n.itemSubtitle,D.subtitle),style:{...r.itemSubtitle,...O.subtitle}},y),!a&&$.createElement(HY,{prefixCls:m,className:X(n.itemRail,D.rail),style:{...r.itemRail,...O.rail},status:h?w:o})),YY(A)&&$.createElement(`div`,{className:X(`${m}-content`,n.itemContent,D.content),style:{...r.itemContent,...O.content}},A))),B=$.createElement(g,JY({},k,N,{className:L,style:{...r.item,...O.root,...E}}),d?d(z):z);return l&&(B=l(B,j)||null),B}function ZY(){return ZY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZY.apply(this,arguments)}var QY={};function $Y(e){let{prefixCls:t=`rc-steps`,style:n,className:r,classNames:i=QY,styles:a=QY,rootClassName:o,orientation:s,titlePlacement:c,components:l,status:u=`process`,current:d=0,initial:f=0,onChange:p,items:m,iconRender:h,itemRender:g,itemWrapperRender:_,...v}=e,y=s===`vertical`,b=y?`vertical`:`horizontal`,x=!y&&c===`vertical`?`vertical`:`horizontal`,S=X(t,`${t}-${b}`,`${t}-title-${x}`,o,r,i.root),C=$.useMemo(()=>(m||[]).filter(Boolean),[m]),w=$.useMemo(()=>C.map(({status:e},t)=>{let n=f+t;return e||(n===d?u:n<d?`finish`:`wait`)}),[C,u,d,f]),T=e=>{p&&d!==e&&p(e)},{root:E=`div`,item:D=`div`}=l||{},O=$.useMemo(()=>({prefixCls:t,classNames:i,styles:a,ItemComponent:D}),[t,i,a,D]),k=(e,n)=>{let r=f+n,o=w[n],s=w[n+1],c={...e,status:o};return $.createElement(XY,{key:r,prefixCls:t,classNames:i,styles:a,data:c,nextStatus:s,active:r===d,index:r,last:C.length-1===n,iconRender:h,itemRender:g,itemWrapperRender:_,onClick:p&&T})};return $.createElement(E,ZY({className:S,style:{...n,...a?.root}},v),$.createElement(WY.Provider,{value:O},C.map(k)))}var eX=$Y,tX=$.createContext(null),nX=e=>{let{prefixCls:t}=e;return $.createElement(`svg`,{className:`${t}-panel-arrow`,viewBox:`0 0 100 100`,xmlns:`http://www.w3.org/2000/svg`,preserveAspectRatio:`none`},$.createElement(`title`,null,`Arrow`),$.createElement(`path`,{d:`M 0 0 L 100 50 L 0 100`}))},rX=e=>{let{prefixCls:t,rootPrefixCls:n,children:r,percent:i}=e,a=`${t}-item-progress-icon`,o=`${a}-circle`,[,s]=Sr(n,`cmp-steps`),c=`calc(${s(`progress-radius`)} * 2 * ${Math.PI*i/100}) 9999`;return $.createElement($.Fragment,null,$.createElement(`svg`,{className:`${a}-svg`,viewBox:`0 0 100 100`,width:`100%`,height:`100%`,xmlns:`http://www.w3.org/2000/svg`,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":i},$.createElement(`title`,null,`Progress`),$.createElement(`circle`,{className:X(o,`${o}-rail`)}),$.createElement(`circle`,{className:X(o,`${o}-ptg`),strokeDasharray:c,transform:`rotate(-90 50 50)`})),r)},iX=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-item`,[i,a]=Sr(n,`cmp-steps`);return{[`${t}-horizontal`]:{[`> ${r}`]:{flex:`1 1 auto`,minWidth:e.iconSize,[`${r}-rail`]:{[i(`horizontal-rail-margin`)]:`calc(${a(`icon-size-max`)} / 2 + ${a(`item-wrapper-padding-top`)})`,position:`static`,marginTop:a(`horizontal-rail-margin`),width:`auto`,borderBlockStartWidth:a(`rail-size`),flex:1,minWidth:0,alignSelf:`flex-start`,transform:`translateY(-50%)`}}}}},aX=e=>{let{componentCls:t,customIconFontSize:n,motionDurationSlow:r,iconSize:i,lineWidth:a,lineType:o,antCls:s}=e,c=`${t}-item`,[l,u]=Sr(s,`cmp-steps`);return{[t]:{[l(`icon-size`)]:i,[l(`icon-border-width`)]:a,[`${c}-icon`]:{width:u(`icon-size`),height:u(`icon-size`),margin:0,flex:`none`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:u(`icon-size`),textAlign:`center`,borderRadius:u(`icon-size`),border:`${u(`icon-border-width`)} ${o} transparent`,transition:[`background-color`,`border`,`color`,`inset`,`transform`].map(e=>`${e} ${r}`).join(`, `),zIndex:1},[`${c}-custom ${c}-icon`]:{background:`none`,border:0,fontSize:n}}}},oX=e=>{let{componentCls:t,inlineDotSize:n,paddingXS:r,lineWidth:i,antCls:a,calc:o}=e,s=o(r).add(i).equal(),c=`${t}-item`,[l,u]=Sr(a,`cmp-steps`);return{[`${t}-inline`]:{[l(`items-offset`)]:`0`,[l(`item-wrapper-padding-top`)]:s,display:`inline-flex`,"&:before":{content:`""`,flex:u(`items-offset`)},[c]:{[l(`title-vertical-row-gap`)]:r,[l(`icon-size`)]:n,[l(`icon-size-active`)]:n,[l(`title-font-size`)]:e.fontSizeSM,[l(`title-line-height`)]:e.lineHeightSM,[l(`item-title-color`)]:e.colorTextSecondary,[l(`subtitle-font-size`)]:e.fontSizeSM,[l(`subtitle-line-height`)]:e.lineHeightSM,[l(`item-subtitle-color`)]:e.colorTextQuaternary,[l(`rail-size`)]:e.lineWidth,[l(`title-horizontal-rail-gap`)]:`0px`,flex:1,"&-wrapper":{paddingInline:e.paddingXXS,marginInline:e.calc(e.marginXXS).div(2).equal(),borderRadius:e.borderRadiusSM,cursor:`pointer`,transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[`${c}-icon-dot`]:{"&:after":{display:`none`}}},"&-title":{fontWeight:`normal`,whiteSpace:`nowrap`},"&-content":{display:`none`}}}}};function sX(e){return(e||`--ant-not-exist`).replace(/var\((.*)\)/,`$1`)}var cX=(e,t,n)=>{let{calc:r,componentCls:i,descriptionMaxWidth:a,antCls:o}=e,s=`${i}-item`,[,c]=Sr(o,`cmp-steps`);return{[`@container style(${sX(a)})`]:[{[`${s}-icon`]:{marginInlineStart:r(a).sub(c(`icon-size`)).div(2).equal()},[`${s}-rail`]:{width:`auto`,insetInlineStart:r(a).add(c(`icon-size`)).div(2).add(t).equal(),insetInlineEnd:r(a).sub(c(`icon-size`)).div(2).sub(t).mul(-1).equal()}},n]}},lX=e=>{let{componentCls:t,descriptionMaxWidth:n,marginXS:r,fontHeightLG:i,margin:a,paddingSM:o,marginXXS:s,antCls:c,calc:l}=e,u=`${t}-item`,[d,f]=Sr(c,`cmp-steps`);return{[t]:{[d(`icon-size-max`)]:`max(${f(`icon-size`)}, ${f(`icon-size-active`,f(`icon-size`))})`,[`${u}-icon`]:{marginBlockStart:`calc((${f(`heading-height`)} - ${f(`icon-size`)}) / 2)`}},[`${t}-title-horizontal`]:{[d(`title-horizontal-item-margin`)]:a,[d(`title-horizontal-rail-margin`)]:a,[d(`title-horizontal-title-height`)]:i,[d(`heading-height`)]:`max(${f(`icon-size`)}, ${f(`title-horizontal-title-height`)})`,[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${u}:not(:first-child)`]:{marginInlineStart:f(`title-horizontal-item-margin`)},[`${u}:last-child`]:{flex:`0 1 auto`},[`${u}-wrapper`]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[`${u}-wrapper`]:{columnGap:e.margin},[`${u}-empty-header`]:{[`${u}-header`]:{minHeight:`auto`},[`${u}-content`]:{marginTop:l(f(`heading-height`)).sub(e.fontHeight).div(2).equal()}}},[`${u}-section`]:{flex:1,minWidth:0},[`${u}-header`]:{minHeight:f(`heading-height`)},[`${u}-title`]:{flex:`0 1 auto`},[`${u}-content`]:{maxWidth:n},[`${u}-subtitle`]:{flex:`0 9999 auto`},[`&${t}-horizontal ${u}-rail`]:{[d(`item-wrapper-padding-top`)]:`0px`,flex:`1 1 0%`,marginInlineStart:f(`title-horizontal-rail-margin`)}},[`${t}-title-vertical`]:{[d(`title-vertical-row-gap`)]:o,[d(`title-horizontal-rail-gap`)]:s,[d(`heading-height`)]:f(`icon-size-max`),[`> ${u}`]:{flex:`1 1 0%`,[`${u}-wrapper`]:{flexDirection:`column`,rowGap:f(`title-vertical-row-gap`),alignItems:`center`},[`${u}-section`]:{alignSelf:`stretch`},[`${u}-header`]:{flexDirection:`column`,alignItems:`center`},[`${u}-title, ${u}-subtitle, ${u}-content`]:{textAlign:`center`,maxWidth:`100%`},[`${u}-subtitle`]:{margin:0},[`${u}-rail`]:{position:`absolute`,top:0,width:`calc(100% - ${f(`icon-size`)} - ${f(`title-horizontal-rail-gap`)} * 2)`,insetInlineStart:`calc(50% + ${f(`icon-size`)} / 2 + ${f(`title-horizontal-rail-gap`)})`}},...cX(e,r,{[`${u}:last-child`]:{flex:`none`},[`${u}-icon`]:{alignSelf:`flex-start`},[`${u}-section`]:{width:n}})}}},uX=e=>{let{componentCls:t,fontSizeIcon:n,navContentMaxWidth:r,navArrowColor:i,colorPrimary:a,motionDurationSlow:o,antCls:s,calc:c}=e,l=`${t}-item`,u=a,[d,f]=Sr(s,`cmp-steps`);return{[`${t}${t}-navigation`]:{[l.repeat(4)]:{display:`flex`,justifyContent:`center`,position:`relative`,flex:1,marginInlineStart:0,[`${l}-wrapper`]:{paddingBlock:e.paddingSM},[`${l}-section`]:{maxWidth:r},[`${l}-rail`]:{display:`none`},"&:before":{position:`absolute`,display:`block`,backgroundColor:u,transition:`all ${o}`,transitionTimingFunction:`ease-out`,content:`""`},"&:not(:last-child):after":{position:`absolute`,display:`block`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${i}`,borderBottom:`none`,borderInlineStart:`none`,borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${i}`,content:`""`},[`&${l}-active`]:{[d(`item-content-active-color`)]:f(`item-content-color`),[d(`item-icon-active-bg-color`)]:f(`item-icon-bg-color`),[d(`item-icon-active-border-color`)]:f(`item-icon-border-color`),[d(`item-icon-active-text-color`)]:f(`item-icon-text-color`)}},[`&${t}-horizontal`]:{[l]:{"&:before":{bottom:0,insetInlineStart:`50%`,width:0,height:e.lineWidthBold},[`&${l}-active:before`]:{insetInlineStart:0,width:`100%`},"&:not(:last-child):after":{top:`50%`,insetInlineStart:c(n).div(2).mul(-1).add(`100%`).equal(),width:n,height:n,transform:`translateY(-50%) rotate(45deg)`}}},[`&${t}-vertical`]:{[l.repeat(4)]:{[`${l}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:`50%`,width:e.lineWidthBold,height:0},[`&${l}-active::before`]:{top:0,height:`100%`},"&:not(:last-child):after":{left:{_skip_check_:!0,value:`50%`},top:`100%`,width:c(n).div(3).mul(2).equal(),height:c(n).div(3).mul(2).equal(),transform:`translateY(-50%) translateX(-50%) rotate(135deg)`}}}}}},dX=e=>{let{componentCls:t,lineWidthBold:n,borderRadius:r,borderRadiusSM:i,motionDurationMid:a,paddingXS:o,lineType:s,paddingSM:c,antCls:l,calc:u}=e,d=`${t}-item`,[f,p]=Sr(l,`cmp-steps`),m=`${Q(n)} ${s} ${p(`panel-border-color`)}`;return{[`${t}${t}-panel`]:[{[`${d}-rail`]:{display:`none`},[`&${t}-horizontal`]:{alignItems:`stretch`,[d]:{flex:1,margin:0}}},{"&":{[f(`panel-padding`)]:c,[f(`item-border-radius`)]:r,[d]:{[f(`panel-bg-color`)]:p(`item-icon-bg-color`),[f(`panel-border-color`)]:p(`item-icon-border-color`),[f(`panel-active-bg-color`)]:p(`item-icon-active-bg-color`),[f(`panel-active-border-color`)]:p(`item-icon-active-border-color`),[f(`panel-title-height`)]:`calc(${p(`title-font-size`)} * ${p(`title-line-height`)})`,[f(`item-base-height`)]:u(p(`panel-padding`)).mul(2).add(p(`icon-size`)).add(p(`panel-title-height`)).equal(),[f(`item-base-width`)]:`calc(${p(`item-base-height`)} * 0.7071)`,transition:`background-color ${a}`}},[`${d}-icon`]:{display:`none`},[`${d}-header`]:{minHeight:`auto`},[`${t}-panel-arrow`]:{position:`absolute`,top:u(n).mul(-1).equal(),insetInlineStart:`100%`,zIndex:1,height:u(n).mul(2).add(`100%`).equal(),width:p(`item-base-width`),overflow:`visible`,strokeLinecap:`round`,path:{fill:p(`panel-bg-color`),stroke:p(`panel-border-color`),strokeWidth:n,vectorEffect:`non-scaling-stroke`,transition:`fill ${a}`}},[`${d}:last-child ${t}-panel-arrow`]:{display:`none`},[d]:{padding:p(`panel-padding`),background:p(`panel-bg-color`),position:`relative`,borderBlock:m,"&:not(:first-child)":{paddingInlineStart:`calc(${p(`panel-padding`)} + ${p(`item-base-width`)})`},"&:first-child":{borderInlineStart:m,borderStartStartRadius:p(`item-border-radius`),borderEndStartRadius:p(`item-border-radius`)},"&:last-child":{borderInlineEnd:m,borderStartEndRadius:p(`item-border-radius`),borderEndEndRadius:p(`item-border-radius`)},"&-active":{background:p(`panel-active-bg-color`),borderColor:p(`panel-active-border-color`),[`${t}-panel-arrow`]:{path:{fill:p(`panel-active-bg-color`),stroke:p(`panel-active-border-color`)}},[`${d}-title, ${d}-subtitle, ${d}-content`]:{color:p(`item-icon-active-text-color`)}}}},{[`&${t}-small`]:{[f(`panel-padding`)]:o,[f(`item-border-radius`)]:i}},{[`&${t}-filled`]:{[d]:{"&:not(:first-child)":{clipPath:`polygon(${[`${Q(n)} 0`,`calc(100% + ${p(`item-base-width`)}) 0`,`calc(100% + ${p(`item-base-width`)}) 100%`,`${Q(n)} 100%`,`calc(${p(`item-base-width`)} + ${Q(n)}) 50%`].join(`,`)})`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:u(n).div(2).mul(-1).equal(),height:u(n).add(`100%`).equal()}}}]}},fX=e=>{let{calc:t,antCls:n,componentCls:r,lineWidthBold:i,motionDurationSlow:a}=e,o=`${r}-item`,[s,c]=Sr(n,`cmp-steps`),l=t(i).add(i).equal();return{[`${r}${r}-with-progress`]:{[s(`item-wrapper-padding-top`)]:l,[`${o}${o}-process`]:{[`${o}-icon`]:{position:`relative`}},[`${o}-progress-icon`]:{"&-svg":{[s(`svg-size`)]:t(l).mul(2).add(c(`icon-size`)).equal(),[s(`icon-size-ptg-unitless`)]:`calc(100 / tan(atan2(${c(`svg-size`)}, 1px)))`,fontSize:c(`svg-size`),lineHeight:c(`icon-size-ptg-unitless`),position:`absolute`,inset:t(l).mul(-1).equal(),width:`auto`,height:`auto`},"&-circle":{lineHeight:c(`icon-size-ptg-unitless`),strokeWidth:t(c(`icon-size-ptg-unitless`)).mul(i).equal(),[s(`progress-radius`)]:t(c(`svg-size`)).sub(i).mul(c(`icon-size-ptg-unitless`)).div(2).equal(),r:c(`progress-radius`),fill:`none`,cx:50,cy:50,transition:`all ${a} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}}}},pX=e=>{let{componentCls:t,iconSize:n,dotSize:r,dotCurrentSize:i,marginXXS:a,lineWidthBold:o,fontSizeSM:s,antCls:c}=e,l=`${t}-item`,[u,d]=Sr(c,`cmp-steps`);return{[`${t}${t}-dot`]:{[u(`icon-size-active`)]:i,[u(`icon-size`)]:r,[u(`dot-icon-size`)]:r,[u(`dot-icon-border-width`)]:o,[u(`rail-size`)]:o,[u(`icon-border-width`)]:o,[`${l}-custom ${l}-icon`]:{fontSize:s},[`${l}-icon`]:{position:`relative`,"&:after":{content:`""`,width:n,height:n,display:`block`,position:`absolute`,top:`50%`,left:{_skip_check_:!0,value:`50%`},transform:`translate(-50%, -50%)`}},[`${l}-active ${l}-icon`]:{[u(`icon-size`)]:d(`icon-size-active`)},[`&${t}-horizontal`]:{[`&, &${t}-small`]:cX(e,a)}}}},mX=e=>{let{componentCls:t,lineWidthBold:n,antCls:r}=e,i=`${t}-item`,[,a]=Sr(r,`cmp-steps`);return{[`${t}${t}-rtl`]:{direction:`rtl`,[`&${t}-navigation${t}-horizontal`]:{[`${i}:after`]:{transform:`translateY(-50%) rotate(-45deg)`}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:`scaleX(-1)`},[`&${t}-filled`]:{[i]:{"&:not(:first-child)":{clipPath:`polygon(${[`calc(0px - ${a(`item-base-width`)}) 0px`,`calc(100% - ${Q(n)}) 0px`,`calc(100% - ${a(`item-base-width`)} - ${Q(n)}) 50%`,`calc(100% - ${Q(n)}) 100%`,`calc(0px - ${a(`item-base-width`)}) 100%`].join(`,`)})`}}}}}}},hX=e=>{let{componentCls:t,iconSizeSM:n,fontSize:r,lineHeight:i,marginXS:a,fontHeight:o,marginSM:s,paddingXS:c,antCls:l}=e,[u]=Sr(l,`cmp-steps`);return{[`${t}${t}-small`]:{[u(`icon-size`)]:n,[u(`title-horizontal-item-margin`)]:s,[u(`title-vertical-row-gap`)]:c,[u(`title-font-size`)]:r,[u(`title-line-height`)]:i,[u(`title-horizontal-rail-margin`)]:a,[u(`title-horizontal-title-height`)]:o,[`&${t}-horizontal${t}-title-vertical`]:cX(e,a)}}},gX=`wait`,_X=`process`,vX=`finish`,yX=`error`,bX=e=>{let{componentCls:t,colorTextDisabled:n,colorTextLightSolid:r,colorPrimary:i,colorTextLabel:a,colorError:o,colorErrorHover:s,colorErrorBgFilledHover:c,colorFillTertiary:l,colorErrorBg:u,colorPrimaryBgHover:d,colorPrimaryBg:f,colorText:p,colorTextDescription:m,colorBgContainer:h,colorPrimaryHover:g,lineType:_,antCls:v}=e,y=`${t}-item`,[b,x]=Sr(v,`cmp-steps`);return{[t]:[{[y]:{[b(`item-solid-line-color`)]:`#000`,[b(`item-title-color`)]:`#000`,[b(`item-content-color`)]:`#000`,[b(`item-subtitle-color`)]:x(`item-content-color`),[b(`item-icon-custom-color`)]:`#000`,[b(`item-icon-bg-color`)]:`#000`,[b(`item-icon-border-color`)]:`#000`,[b(`item-icon-text-color`)]:`#fff`,[b(`item-icon-dot-color`)]:`#000`,[b(`item-icon-dot-bg-color`)]:x(`item-icon-dot-color`),[b(`item-icon-dot-border-color`)]:x(`item-icon-dot-color`),[b(`item-text-hover-color`)]:`#000`,[b(`item-icon-bg-hover-color`)]:x(`item-icon-bg-color`),[b(`item-icon-border-hover-color`)]:x(`item-icon-border-color`),[b(`item-icon-text-hover-color`)]:x(`item-icon-text-color`),[b(`item-content-active-color`)]:x(`item-content-color`),[b(`item-icon-active-bg-color`)]:x(`item-icon-bg-color`),[b(`item-icon-active-border-color`)]:x(`item-icon-border-color`),[b(`item-icon-active-text-color`)]:x(`item-icon-text-color`),[b(`item-process-rail-line-style`)]:_},[`${y}-rail`]:{borderColor:x(`item-solid-line-color`)},[`${y}-custom ${y}-icon`]:{color:x(`item-icon-custom-color`)},[`${y}-title`]:{color:x(`item-title-color`)},[`${y}-subtitle`]:{color:x(`item-subtitle-color`)},[`${y}-content`]:{color:x(`item-content-color`)},[`${y}-active ${y}-icon`]:{},[`${y}-active ${y}-content`]:{color:x(`item-content-active-color`)},[`${y}[role='button']:not(${y}-active):hover`]:{[`${y}-title, ${y}-content`]:{color:x(`item-text-hover-color`)}},[`&:not(${t}-dot)`]:{[`${y}:not(${y}-custom)`]:{[`${y}-icon`]:{background:x(`item-icon-bg-color`),borderColor:x(`item-icon-border-color`),color:x(`item-icon-text-color`)},[`&[role='button']:not(${y}-active):hover`]:{[`${y}-icon`]:{background:x(`item-icon-bg-hover-color`),borderColor:x(`item-icon-border-hover-color`),color:x(`item-icon-text-hover-color`)}},[`&${y}-active`]:{[`${y}-icon`]:{background:x(`item-icon-active-bg-color`),borderColor:x(`item-icon-active-border-color`),color:x(`item-icon-active-text-color`)}}}},[`&${t}-dot`]:{[`${y}-icon`]:{background:x(`item-icon-dot-bg-color`),borderColor:x(`item-icon-dot-border-color`),color:x(`item-icon-dot-color`),[`&${y}-icon-dot-custom`]:{background:`transparent`,border:`none`}}}},{[`${y}-${gX}`]:{[b(`item-icon-custom-color`)]:n,[b(`item-title-color`)]:m,[b(`item-content-color`)]:m,[b(`item-content-active-color`)]:p,[b(`item-text-hover-color`)]:g},[`${y}-rail-${gX}`]:{[b(`item-solid-line-color`)]:n},[`${y}-${_X}`]:{[b(`item-icon-custom-color`)]:i,[b(`item-title-color`)]:p,[b(`item-content-color`)]:m,[b(`item-content-active-color`)]:p,[b(`item-text-hover-color`)]:g},[`${y}-rail-${_X}`]:{[b(`item-solid-line-color`)]:i,[b(`rail-line-style`)]:x(`item-process-rail-line-style`)},[`${y}-${vX}`]:{[b(`item-icon-custom-color`)]:i,[b(`item-title-color`)]:p,[b(`item-content-color`)]:m,[b(`item-content-active-color`)]:p,[b(`item-text-hover-color`)]:g},[`${y}-rail-${vX}`]:{[b(`item-solid-line-color`)]:i},[`${y}-${yX}`]:{[b(`item-icon-custom-color`)]:o,[b(`item-title-color`)]:o,[b(`item-content-color`)]:o,[b(`item-content-active-color`)]:o,[b(`item-text-hover-color`)]:s},[`${y}-rail-${yX}`]:{[b(`item-solid-line-color`)]:o}},{[`&${t}-filled`]:{[y]:{[b(`item-icon-dot-border-color`)]:`transparent`},[`${y}-${gX}`]:{[b(`item-icon-bg-color`)]:l,[b(`item-icon-border-color`)]:`transparent`,[b(`item-icon-text-color`)]:a,[b(`item-icon-dot-bg-color`)]:n,[b(`item-icon-bg-hover-color`)]:d,[b(`item-icon-border-hover-color`)]:`transparent`,[b(`item-icon-text-hover-color`)]:i,[b(`item-icon-active-bg-color`)]:i,[b(`item-icon-active-border-color`)]:`transparent`,[b(`item-icon-active-text-color`)]:r},[`${y}-${_X}, ${y}-${vX}`]:{[b(`item-icon-bg-color`)]:f,[b(`item-icon-border-color`)]:`transparent`,[b(`item-icon-text-color`)]:i,[b(`item-icon-dot-bg-color`)]:i,[b(`item-icon-bg-hover-color`)]:d,[b(`item-icon-border-hover-color`)]:`transparent`,[b(`item-icon-text-hover-color`)]:i,[b(`item-icon-active-bg-color`)]:i,[b(`item-icon-active-border-color`)]:`transparent`,[b(`item-icon-active-text-color`)]:r},[`${y}-${yX}`]:{[b(`item-icon-bg-color`)]:u,[b(`item-icon-border-color`)]:`transparent`,[b(`item-icon-text-color`)]:o,[b(`item-icon-dot-bg-color`)]:o,[b(`item-icon-bg-hover-color`)]:c,[b(`item-icon-border-hover-color`)]:`transparent`,[b(`item-icon-text-hover-color`)]:o,[b(`item-icon-active-bg-color`)]:o,[b(`item-icon-active-border-color`)]:`transparent`,[b(`item-icon-active-text-color`)]:r}}},{[`&${t}-outlined`]:{[y]:{[b(`item-icon-dot-bg-color`)]:`transparent`},[`${y}-${gX}`]:{[b(`item-icon-bg-color`)]:h,[b(`item-icon-border-color`)]:n,[b(`item-icon-text-color`)]:n,[b(`item-icon-dot-color`)]:n,[b(`item-icon-bg-hover-color`)]:`transparent`,[b(`item-icon-border-hover-color`)]:g,[b(`item-icon-text-hover-color`)]:g,[b(`item-icon-active-bg-color`)]:l},[`${y}-${_X}, ${y}-${vX}`]:{[b(`item-icon-bg-color`)]:h,[b(`item-icon-border-color`)]:i,[b(`item-icon-text-color`)]:i,[b(`item-icon-dot-color`)]:i,[b(`item-icon-bg-hover-color`)]:`transparent`,[b(`item-icon-border-hover-color`)]:g,[b(`item-icon-text-hover-color`)]:g,[b(`item-icon-active-bg-color`)]:f},[`${y}-${yX}`]:{[b(`item-icon-bg-color`)]:h,[b(`item-icon-border-color`)]:o,[b(`item-icon-text-color`)]:o,[b(`item-icon-dot-color`)]:o,[b(`item-icon-bg-hover-color`)]:`transparent`,[b(`item-icon-border-hover-color`)]:s,[b(`item-icon-text-hover-color`)]:s,[b(`item-icon-active-bg-color`)]:u}}}]}},xX=e=>{let{componentCls:t,marginXXS:n,paddingSM:r,controlHeight:i,antCls:a,calc:o}=e,s=`${t}-item`,[c,l]=Sr(a,`cmp-steps`);return{[`${t}-vertical`]:{[c(`vertical-rail-margin`)]:o(n).mul(1.5).equal(),flexDirection:`column`,alignItems:`stretch`,[`> ${s}`]:{minHeight:o(i).mul(1.5).equal(),paddingBottom:r,"&:last-child":{paddingBottom:0},[`${s}-icon`]:{marginInlineStart:`calc((${l(`icon-size-max`)} - ${l(`icon-size`)}) / 2)`},[`${s}-rail`]:{[c(`rail-offset`)]:o(l(`heading-height`)).sub(l(`icon-size`)).div(2).equal(),borderInlineStartWidth:l(`rail-size`),position:`absolute`,top:o(l(`icon-size`)).add(l(`item-wrapper-padding-top`)).add(l(`rail-offset`)).add(l(`vertical-rail-margin`)).equal(),insetInlineStart:o(l(`icon-size-max`)).div(2).equal(),bottom:o(l(`vertical-rail-margin`)).sub(l(`rail-offset`)).equal(),marginInlineStart:`calc(${l(`rail-size`)} / -2)`}}}}},SX=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-item`,[i,a]=Sr(n,`cmp-steps`);return{[t]:{[i(`title-font-size`)]:e.fontSizeLG,[i(`title-line-height`)]:e.lineHeightLG,[i(`subtitle-font-size`)]:e.fontSize,[i(`subtitle-line-height`)]:e.lineHeight,[i(`item-wrapper-padding-top`)]:`0px`,[i(`rail-size`)]:e.lineWidth,[i(`rail-line-style`)]:e.lineType,...ur(e),display:`flex`,flexWrap:`nowrap`,alignItems:`flex-start`,[r]:{flex:`none`,position:`relative`},[`${r}-wrapper`]:{display:`flex`,flexWrap:`nowrap`,paddingTop:a(`item-wrapper-padding-top`)},[`${r}-header`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`center`},[`${r}-title`]:{color:e.colorText,fontSize:a(`title-font-size`),lineHeight:a(`title-line-height`),wordBreak:`break-word`},[`${r}-subtitle`]:{color:e.colorTextDescription,fontWeight:`normal`,fontSize:a(`subtitle-font-size`),lineHeight:a(`subtitle-line-height`),marginInlineStart:e.marginXS,wordBreak:`break-word`},[`${r}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:`break-word`},[`${r}-rail`]:{borderStyle:a(`rail-line-style`),borderWidth:0},[`${r}-title, ${r}-subtitle, ${r}-content, ${r}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${r}-title, ${r}-subtitle, ${r}-content`]:lr},[`${r}[role='button']:not(${r}-active):hover`]:{cursor:`pointer`}}}},CX=yr(`Steps`,e=>{let t=wn(e,{inlineDotSize:6});return[SX(t),aX(t),xX(t),iX(t),lX(t),hX(t),pX(t),bX(t),uX(t),dX(t),oX(t),fX(t),mX(t)]},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:`unset`,descriptionMaxWidth:void 0,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})),wX={itemIcon:Sl},TX=e=>{let{size:t,className:n,rootClassName:r,style:i,variant:a=`filled`,type:o,classNames:s,styles:c,direction:l,orientation:u,responsive:d=!0,progressDot:f,labelPlacement:p,titlePlacement:m,ellipsis:h,offset:g=0,items:v,percent:y,current:b=0,onChange:x,iconRender:S,...C}=e,w=$.useContext(tX),T=Wt(`steps`),{getPrefixCls:E,direction:D,className:O,style:k}=T,A,j,M={};w?M={root:w.rootComponent,item:w.itemComponent}:{classNames:A,styles:j}=T;let N=E(),P=E(`steps`,e.prefixCls),F=`${P}-item-icon`,[I,L]=CX(P),[R]=Sr(N,`cmp-steps`),z=jl(t),B=$.useMemo(()=>(v||[]).filter(Boolean),[v]),{xs:V}=Zv(d),H=$.useMemo(()=>o&&o!=="default"?o:f?`dot`:o,[f,o]),U=H===`inline`,W=H===`dot`||H===`inline`,G=$.useMemo(()=>H===`dot`&&ki(f)?f:void 0,[H,f]),ee=$.useMemo(()=>H===`panel`?`horizontal`:d&&V||(u||l)===`vertical`?`vertical`:`horizontal`,[u,l,H,d,V]),K=$.useMemo(()=>W||ee===`vertical`?ee===`vertical`?`horizontal`:`vertical`:o===`navigation`?`horizontal`:m||p||`horizontal`,[W,p,ee,m,o]),q=U?void 0:y,te={...e,variant:a,size:z,type:H,orientation:ee,titlePlacement:K,current:b,percent:q,responsive:d,offset:g},[re,J]=zi([wX,A,s],[j,c],{props:te}),ie=(e,t)=>{let{item:n,index:r,active:i,components:{Icon:a}}=t,{status:o,icon:s}=n,c=null;if(W||s)c=s;else switch(o){case`finish`:c=$.createElement(_,{className:`${F}-finish`});break;case`error`:c=$.createElement(ne,{className:`${F}-error`});break;default:{let e=$.createElement(`span`,{className:`${F}-number`},t.index+1);o===`process`&&q!==void 0&&(e=$.createElement(rX,{prefixCls:P,rootPrefixCls:N,percent:q},e)),c=e}}let l=$.createElement(a,null,c);return S?l=S(l,{index:r,active:i,item:n,components:{Icon:a}}):ki(G)&&(l=G(l,{index:r,...n})),l},ae=(e,t)=>{let n=e;return U&&t.item.content&&(n=$.createElement(Ny,{destroyOnHidden:!0,title:t.item.content},e)),$.createElement(Al,{component:`Steps`,disabled:t.item.disabled||!x,colorSource:a===`filled`?`color`:null},n)},oe=H===`panel`?e=>$.createElement($.Fragment,null,e,$.createElement(nX,{prefixCls:P})):void 0,se={[R(`items-offset`)]:`${g}`,...k,...i},ce=X(O,`${P}-${a}`,{[`${P}-${H}`]:H===`dot`?!1:H,[`${P}-rtl`]:D===`rtl`,[`${P}-dot`]:W,[`${P}-ellipsis`]:h,[`${P}-with-progress`]:q!==void 0,[`${P}-small`]:z===`small`},n,r,I,L);return $.createElement(eX,{...C,prefixCls:P,className:ce,style:se,classNames:re,styles:J,orientation:ee,titlePlacement:K,components:M,current:b,items:B,onChange:x,iconRender:ie,itemRender:ae,itemWrapperRender:oe})};function EX(){return EX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EX.apply(this,arguments)}var DX=$.forwardRef(({prefixCls:e=`rc-switch`,className:t,checked:n,defaultChecked:r,disabled:i,loadingIcon:a,checkedChildren:o,unCheckedChildren:s,onClick:c,onChange:l,onKeyDown:u,styles:d,classNames:p,...m},h)=>{let[g,_]=v(r??!1,n);function y(e,t){let n=g;return i||(n=e,_(n),l?.(n,t)),n}function b(e){e.which===f.LEFT?y(!1,e):e.which===f.RIGHT&&y(!0,e),u?.(e)}function x(e){let t=y(!g,e);c?.(t,e)}let S=X(e,t,{[`${e}-checked`]:g,[`${e}-disabled`]:i});return $.createElement(`button`,EX({},m,{type:`button`,role:`switch`,"aria-checked":g,disabled:i,className:S,ref:h,onKeyDown:b,onClick:x}),a,$.createElement(`span`,{className:`${e}-inner`},$.createElement(`span`,{className:X(`${e}-inner-checked`,p?.content),style:d?.content},o),$.createElement(`span`,{className:X(`${e}-inner-unchecked`,p?.content),style:d?.content},s)))});DX.displayName=`Switch`;var OX=e=>{let{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:c}=e,l=`${t}-inner`,u=Q(c(s).add(c(r).mul(2)).equal()),d=Q(c(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:Q(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked, ${l}-unchecked`]:{minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Q(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},kX=e=>{let{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}}}},AX=e=>{let{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:`absolute`,top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,...xu(),"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:`""`,...xu()}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${Q(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},jX=e=>{let{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,switchDuration:s,calc:c}=e,l=`${t}-inner`,u=Q(c(o).add(c(r).mul(2)).equal()),d=Q(c(a).mul(2).equal());return{[t]:{[l]:{display:`block`,overflow:`hidden`,borderRadius:100,height:`100%`,paddingInlineStart:a,paddingInlineEnd:i,transition:[`padding-inline-start`,`padding-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...xu(),[`${l}-checked, ${l}-unchecked`]:{display:`block`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:`none`,minHeight:n,transition:[`margin-inline-start`,`margin-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...xu()},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(r).mul(2).equal(),marginInlineEnd:c(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(r).mul(-1).mul(2).equal(),marginInlineEnd:c(r).mul(2).equal()}}}}}},MX=e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...ur(e),position:`relative`,display:`inline-block`,boxSizing:`border-box`,minWidth:r,height:n,lineHeight:Q(n),verticalAlign:`middle`,background:e.colorTextQuaternary,border:`0`,borderRadius:100,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,userSelect:`none`,...xu(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...mr(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`}}}},NX=yr(`Switch`,e=>{let t=wn(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[MX(t),jX(t),AX(t),kX(t),OX(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=a-4,c=o-4;return{trackHeight:a,trackHeightSM:o,trackMinWidth:s*2+8,trackMinWidthSM:c*2+4,trackPadding:2,handleBg:i,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new pe(`#00230b`).setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),PX=$.forwardRef((e,t)=>{let{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:c,checked:l,value:u,defaultChecked:d,defaultValue:f,onChange:p,styles:m,classNames:h,...g}=e,[_,y]=v(d??f??!1,l??u),{getPrefixCls:b,direction:x,className:S,style:C,classNames:w,styles:T}=Wt(`switch`),E=$.useContext(Vo),D=(i??E)||a,O=b(`switch`,n),[k,A]=NX(O),j=jl(r),M={...e,size:j,disabled:D},[N,P]=zi([w,h],[T,m],{props:M}),F=$.createElement(`div`,{className:X(`${O}-handle`,N.indicator),style:P.indicator},a&&$.createElement(Ne,{className:`${O}-loading-icon`})),I=X(S,{[`${O}-small`]:j===`small`,[`${O}-loading`]:a,[`${O}-rtl`]:x===`rtl`},o,s,N.root,k,A),L={...P.root,...C,...c},R=(...e)=>{y(e[0]),p?.(...e)};return $.createElement(Al,{component:`Switch`,disabled:D},$.createElement(DX,{...g,classNames:N,styles:P,checked:_,onChange:R,prefixCls:O,className:I,style:L,disabled:D,ref:t,loadingIcon:F}))});PX.__ANT_SWITCH=!0;var FX={},IX=`rc-table-internal-hook`;function LX(e){let t=$.createContext(void 0);return{Context:t,Provider:({value:e,children:n})=>{let r=$.useRef(e);r.current=e;let[i]=$.useState(()=>({getValue:()=>r.current,listeners:new Set}));return Pe(()=>{(0,Kt.unstable_batchedUpdates)(()=>{i.listeners.forEach(t=>{t(e)})})},[e]),$.createElement(t.Provider,{value:i},n)},defaultValue:e}}function RX(e,t){let n=J(typeof t==`function`?t:e=>{if(t===void 0)return e;if(!Array.isArray(t))return e[t];let n={};return t.forEach(t=>{n[t]=e[t]}),n}),r=$.useContext(e?.Context),{listeners:i,getValue:a}=r||{},o=$.useRef();o.current=n(r?a():e?.defaultValue);let[,s]=$.useState({});return Pe(()=>{if(!r)return;function e(e){let t=n(e);tt(o.current,t,!0)||s({})}return i.add(e),()=>{i.delete(e)}},[r]),o.current}function zX(){return zX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zX.apply(this,arguments)}function BX(){let e=$.createContext(null);function t(){return $.useContext(e)}function n(n,r){let i=c(n),a=(a,o)=>{let s=i?{ref:o}:{},c=$.useRef(0),l=$.useRef(a);return t()===null?((!r||r(l.current,a))&&(c.current+=1),l.current=a,$.createElement(e.Provider,{value:c.current},$.createElement(n,zX({},a,s)))):$.createElement(n,zX({},a,s))};return i?$.forwardRef(a):a}function r(e,n){let r=c(e),i=(n,i)=>{let a=r?{ref:i}:{};return t(),$.createElement(e,zX({},n,a))};return $.memo(r?$.forwardRef(i):i,n)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var{makeImmutable:VX,responseImmutable:HX,useImmutableMark:UX}=BX(),{makeImmutable:WX,responseImmutable:GX,useImmutableMark:KX}=BX(),qX=LX(),JX=$.createContext({renderWithProps:!1}),YX=`RC_TABLE_KEY`;function XX(e){return e==null?[]:Array.isArray(e)?e:[e]}function ZX(e){let t=[],n={};return e.forEach(e=>{let{key:r,dataIndex:i}=e||{},a=r||XX(i).join(`-`)||YX;for(;n[a];)a=`${a}_next`;n[a]=!0,t.push(a)}),t}function QX(e){return e!=null}function $X(e){return typeof e==`number`&&!Number.isNaN(e)}function eZ(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!$.isValidElement(e)}function tZ(e,t,n,r,i,a){let o=$.useContext(JX);return Qe(()=>{if(QX(r))return[r];let a=oe(e,t==null||t===``?[]:Array.isArray(t)?t:[t]),s=a,c;if(i){let t=i(a,e,n);eZ(t)?(s=t.children,c=t.props,o.renderWithProps=!0):s=t}return[s,c]},[KX(),e,r,t,i,n],(e,t)=>{if(a){let[,n]=e,[,r]=t;return a(r,n)}return o.renderWithProps?!0:!tt(e,t,!0)})}function nZ(e,t,n,r){let i=e+t-1;return e<=r&&i>=n}function rZ(e,t){return RX(qX,n=>[nZ(e,t||1,n.hoverStartRow,n.hoverEndRow),n.onHover])}function iZ(){return iZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iZ.apply(this,arguments)}var aZ=({ellipsis:e,rowType:t,children:n})=>{let r,i=e===!0?{showTitle:!0}:e;return i&&(i.showTitle||t===`header`)&&(typeof n==`string`||typeof n==`number`?r=n.toString():$.isValidElement(n)&&typeof n.props?.children==`string`&&(r=n.props?.children)),r},oZ=$.memo(e=>{let{component:t,children:n,ellipsis:r,scope:i,prefixCls:a,className:o,style:s,align:c,record:l,render:u,dataIndex:d,renderIndex:f,shouldCellUpdate:p,index:m,rowType:h,colSpan:g,rowSpan:_,fixStart:v,fixEnd:y,fixedStartShadow:b,fixedEndShadow:x,offsetFixedStartShadow:S,offsetFixedEndShadow:C,zIndex:w,zIndexReverse:T,appendNode:E,additionalProps:D={},isSticky:O}=e,k=`${a}-cell`,{allColumnsFixedLeft:A,rowHoverable:j}=RX(qX,[`allColumnsFixedLeft`,`rowHoverable`]),[M,N]=tZ(l,d,f,n,u,p),P={},F=typeof v==`number`&&!A,I=typeof y==`number`&&!A,[L,R]=RX(qX,({scrollInfo:e})=>{if(!F&&!I)return[!1,!1];let[t,n]=e;return[(F&&b&&t)-S>=1,(I&&x&&n-t)-C>1]});F&&(P.insetInlineStart=v,P[`--z-offset`]=w,P[`--z-offset-reverse`]=T),I&&(P.insetInlineEnd=y,P[`--z-offset`]=w,P[`--z-offset-reverse`]=T);let z=N?.colSpan??D.colSpan??g??1,B=N?.rowSpan??D.rowSpan??_??1,[V,H]=rZ(m,B),U=J(e=>{l&&H(m,m+B-1),D?.onMouseEnter?.(e)}),W=J(e=>{l&&H(-1,-1),D?.onMouseLeave?.(e)});if(z===0||B===0)return null;let G=D.title??aZ({rowType:h,ellipsis:r,children:M}),ee=X(k,o,{[`${k}-fix`]:F||I,[`${k}-fix-start`]:F,[`${k}-fix-end`]:I,[`${k}-fix-start-shadow`]:b,[`${k}-fix-start-shadow-show`]:b&&L,[`${k}-fix-end-shadow`]:x,[`${k}-fix-end-shadow-show`]:x&&R,[`${k}-ellipsis`]:r,[`${k}-with-append`]:E,[`${k}-fix-sticky`]:(F||I)&&O,[`${k}-row-hover`]:!N&&V},D.className,N?.className),K={};c&&(K.textAlign=c);let q={...N?.style,...P,...K,...D.style,...s},te=M;return typeof te==`object`&&!Array.isArray(te)&&!$.isValidElement(te)&&(te=null),r&&(b||x)&&(te=$.createElement(`span`,{className:`${k}-content`},te)),$.createElement(t,iZ({},N,D,{className:ee,style:q,title:G,scope:i,onMouseEnter:j?U:void 0,onMouseLeave:j?W:void 0,colSpan:z===1?null:z,rowSpan:B===1?null:B}),E,te)});function sZ(e){return e.fixed===`start`}function cZ(e){return e.fixed===`end`}function lZ(e,t,n,r){let i=n[e]||{},a=n[t]||{},o=null,s=null;sZ(i)&&sZ(a)?o=r.start[e]:cZ(a)&&cZ(i)&&(s=r.end[t]);let c=!1,l=!1,u=0,d=0;o!==null&&(c=!n[t+1]||!sZ(n[t+1]),u=n.length*2-e,d=n.length+e),s!==null&&(l=!n[e-1]||!cZ(n[e-1]),u=t,d=n.length-t);let f=0,p=0;if(c)for(let t=0;t<e;t+=1)sZ(n[t])||(f+=r.widths[t]||0);if(l)for(let e=n.length-1;e>t;--e)cZ(n[e])||(p+=r.widths[e]||0);return{fixStart:o,fixEnd:s,fixedStartShadow:c,fixedEndShadow:l,offsetFixedStartShadow:f,offsetFixedEndShadow:p,isSticky:r.isSticky,zIndex:u,zIndexReverse:d}}var uZ=$.createContext({});function dZ(){return dZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dZ.apply(this,arguments)}var fZ=e=>{let{className:t,index:n,children:r,colSpan:i=1,rowSpan:a,align:o}=e,{prefixCls:s}=RX(qX,[`prefixCls`]),{scrollColumnIndex:c,stickyOffsets:l,flattenColumns:u}=$.useContext(uZ),d=n+i-1+1===c?i+1:i,f=$.useMemo(()=>lZ(n,n+d-1,u,l),[n,d,u,l]);return $.createElement(oZ,dZ({className:t,index:n,component:`td`,prefixCls:s,record:null,dataIndex:null,align:o,colSpan:d,rowSpan:a,render:()=>r},f))},pZ=e=>{let{children:t,...n}=e;return $.createElement(`tr`,n,t)},mZ=e=>{let{children:t}=e;return t};mZ.Row=pZ,mZ.Cell=fZ;var hZ=GX(e=>{let{children:t,stickyOffsets:n,flattenColumns:r}=e,i=RX(qX,`prefixCls`),a=r.length-1,o=r[a],s=$.useMemo(()=>({stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o?.scrollbar?a:null}),[o,r,a,n]);return $.createElement(uZ.Provider,{value:s},$.createElement(`tfoot`,{className:`${i}-summary`},t))}),gZ=mZ;function _Z(e){return null}function vZ(e){return null}function yZ(e,t,n,r,i,a,o){let s=a(t,o);e.push({record:t,indent:n,index:o,rowKey:s});let c=i?.has(s);if(t&&Array.isArray(t[r])&&c)for(let o=0;o<t[r].length;o+=1)yZ(e,t[r][o],n+1,r,i,a,o)}function bZ(e,t,n,r){return $.useMemo(()=>{if(n?.size){let i=[];for(let a=0;a<e?.length;a+=1){let o=e[a];yZ(i,o,0,t,n,r,a)}return i}return e?.map((e,t)=>({record:e,indent:0,index:t,rowKey:r(e,t)}))},[e,t,n,r])}function xZ(e,t,n,r){let i=RX(qX,[`prefixCls`,`fixedInfoList`,`flattenColumns`,`expandableType`,`expandRowByClick`,`onTriggerExpand`,`rowClassName`,`expandedRowClassName`,`indentSize`,`expandIcon`,`expandedRowRender`,`expandIconColumnIndex`,`expandedKeys`,`childrenColumnName`,`rowExpandable`,`onRow`]),{flattenColumns:a,expandableType:o,expandedKeys:s,childrenColumnName:c,onTriggerExpand:l,rowExpandable:u,onRow:d,expandRowByClick:f,rowClassName:p}=i,m=o===`nest`,h=o===`row`&&(!u||u(e)),g=h||m,_=s&&s.has(t),v=c&&e&&e[c],y=J(l),b=d?.(e,n),x=b?.onClick,S=(t,...n)=>{f&&g&&l(e,t),x?.(t,...n)},C;typeof p==`string`?C=p:typeof p==`function`&&(C=p(e,n,r));let w=ZX(a);return{...i,columnsKey:w,nestExpandable:m,expanded:_,hasNestChildren:v,record:e,onTriggerExpand:y,rowSupportExpand:h,expandable:g,rowProps:{...b,className:X(C,b?.className),onClick:S}}}var SZ=e=>{let{prefixCls:t,children:n,component:r,cellComponent:i,className:a,expanded:o,colSpan:s,isEmpty:c,stickyOffset:l=0}=e,{scrollbarSize:u,fixHeader:d,fixColumn:f,componentWidth:p,horizonScroll:m}=RX(qX,[`scrollbarSize`,`fixHeader`,`fixColumn`,`componentWidth`,`horizonScroll`]),h=n;return(c?m&&p:f)&&(h=$.createElement(`div`,{style:{width:p-l-(d&&!c?u:0),position:`sticky`,left:l,overflow:`hidden`},className:`${t}-expanded-row-fixed`},h)),$.createElement(r,{className:a,style:{display:o?null:`none`}},$.createElement(oZ,{component:i,prefixCls:t,colSpan:s},h))};function CZ({prefixCls:e,record:t,onExpand:n,expanded:r,expandable:i}){let a=`${e}-row-expand-icon`;if(!i)return $.createElement(`span`,{className:X(a,`${e}-row-spaced`)});let o=e=>{n(t,e),e.stopPropagation()};return $.createElement(`span`,{className:X(a,{[`${e}-row-expanded`]:r,[`${e}-row-collapsed`]:!r}),onClick:o})}function wZ(e,t,n){let r=[];function i(e){(e||[]).forEach((e,a)=>{r.push(t(e,a)),i(e[n])})}return i(e),r}function TZ(e,t,n,r){return typeof e==`string`?e:typeof e==`function`?e(t,n,r):``}function EZ(){return EZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EZ.apply(this,arguments)}function DZ(e,t,n,r,i,a=[],o=0){let{record:s,prefixCls:c,columnsKey:l,fixedInfoList:u,expandIconColumnIndex:d,nestExpandable:f,indentSize:p,expandIcon:m,expanded:h,hasNestChildren:g,onTriggerExpand:_,expandable:v,expandedKeys:y}=e,b=l[n],x=u[n],S;n===(d||0)&&f&&(S=$.createElement($.Fragment,null,$.createElement(`span`,{style:{paddingLeft:`${p*r}px`},className:`${c}-row-indent indent-level-${r}`}),m({prefixCls:c,expanded:h,expandable:g,record:s,onExpand:_})));let C=t.onCell?.(s,i)||{};if(o){let{rowSpan:e=1}=C;if(v&&e&&n<o){let t=e;for(let n=i;n<i+e;n+=1){let e=a[n];y.has(e)&&(t+=1)}C.rowSpan=t}}return{key:b,fixedInfo:x,appendCellNode:S,additionalCellProps:C}}var OZ=GX(e=>{let{className:t,style:n,classNames:r,styles:i,record:a,index:o,renderIndex:s,rowKey:c,rowKeys:l,indent:u=0,rowComponent:d,cellComponent:f,scopeCellComponent:p,expandedRowInfo:m}=e,h=xZ(a,c,o,u),{prefixCls:g,flattenColumns:_,expandedRowClassName:v,expandedRowRender:y,rowProps:b,expanded:x,rowSupportExpand:S}=h,C=$.useRef(!1);C.current||(C.current=x);let w=TZ(v,a,o,u),T=$.createElement(d,EZ({},b,{"data-row-key":c,className:X(t,`${g}-row`,`${g}-row-level-${u}`,b?.className,r.row,{[w]:u>=1}),style:{...n,...b?.style,...i.row}}),_.map((e,t)=>{let{render:n,dataIndex:c,className:d}=e,{key:_,fixedInfo:v,appendCellNode:y,additionalCellProps:b}=DZ(h,e,t,u,o,l,m?.offset);return $.createElement(oZ,EZ({className:X(d,r.cell),style:i.cell,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?p:f,prefixCls:g,key:_,record:a,index:o,renderIndex:s,dataIndex:c,render:n,shouldCellUpdate:e.shouldCellUpdate},v,{appendNode:y,additionalProps:b}))})),E;if(S&&(C.current||x)){let e=y(a,o,u+1,x);E=$.createElement(SZ,{expanded:x,className:X(`${g}-expanded-row`,`${g}-expanded-row-level-${u+1}`,w),prefixCls:g,component:d,cellComponent:f,colSpan:m?m.colSpan:_.length,isEmpty:!1,stickyOffset:m?.sticky},e)}return $.createElement($.Fragment,null,T,E)}),kZ=e=>{let{columnKey:t,onColumnResize:n,title:r}=e,i=$.useRef(null);return Pe(()=>{i.current&&n(t,i.current.offsetWidth)},[]),$.createElement(jt,{data:t},$.createElement(`td`,{ref:i,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},$.createElement(`div`,{style:{height:0,overflow:`hidden`,fontWeight:`bold`}},r||`\xA0`)))},AZ=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{let i=$.useRef(null),{measureRowRender:a}=RX(qX,[`measureRowRender`]),o=$.createElement(`tr`,{"aria-hidden":`true`,className:`${e}-measure-row`,style:{height:0},ref:i},$.createElement(jt.Collection,{onBatchResize:e=>{M(i.current)&&e.forEach(({data:e,size:t})=>{n(e,t.offsetWidth)})}},t.map(e=>{let t=r.find(t=>t.key===e)?.title,i=$.isValidElement(t)?$.cloneElement(t,{ref:null}):t;return $.createElement(kZ,{key:e,columnKey:e,onColumnResize:n,title:i})})));return typeof a==`function`?a(o):o},jZ=GX(e=>{let{data:t,measureColumnWidth:n}=e,{prefixCls:r,getComponent:i,onColumnResize:a,flattenColumns:o,getRowKey:s,expandedKeys:c,childrenColumnName:l,emptyNode:u,classNames:d,styles:f,expandedRowOffset:p=0,colWidths:m}=RX(qX,[`prefixCls`,`getComponent`,`onColumnResize`,`flattenColumns`,`getRowKey`,`expandedKeys`,`childrenColumnName`,`emptyNode`,`classNames`,`styles`,`expandedRowOffset`,`fixedInfoList`,`colWidths`]),{body:h={}}=d||{},{body:g={}}=f||{},_=bZ(t,l,c,s),v=$.useMemo(()=>_.map(e=>e.rowKey),[_]),y=$.useRef({renderWithProps:!1}),b=$.useMemo(()=>{let e=o.length-p,t=0;for(let e=0;e<p;e+=1)t+=m[e]||0;return{offset:p,colSpan:e,sticky:t}},[o.length,p,m]),x=i([`body`,`wrapper`],`tbody`),S=i([`body`,`row`],`tr`),C=i([`body`,`cell`],`td`),w=i([`body`,`cell`],`th`),T;T=t.length?_.map((e,t)=>{let{record:n,indent:r,index:i,rowKey:a}=e;return $.createElement(OZ,{classNames:h,styles:g,key:a,rowKey:a,rowKeys:v,record:n,index:t,renderIndex:i,rowComponent:S,cellComponent:C,scopeCellComponent:w,indent:r,expandedRowInfo:b})}):$.createElement(SZ,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:S,cellComponent:C,colSpan:o.length,isEmpty:!0},u);let E=ZX(o);return $.createElement(JX.Provider,{value:y.current},$.createElement(x,{style:g.wrapper,className:X(`${r}-tbody`,h.wrapper)},n&&$.createElement(AZ,{prefixCls:r,columnsKey:E,onColumnResize:a,columns:o}),T))}),MZ=`RC_TABLE_INTERNAL_COL_DEFINE`;function NZ(e){let{expandable:t,...n}=e,r;return r=`expandable`in e?{...n,...t}:n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}function PZ(){return PZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PZ.apply(this,arguments)}var FZ=e=>{let{colWidths:t,columns:n,columCount:r}=e,{tableLayout:i}=RX(qX,[`tableLayout`]),a=[],o=r||n.length,s=!1;for(let e=o-1;e>=0;--e){let r=t[e],o=n&&n[e],c,l;if(o&&(c=o[MZ],i===`auto`&&(l=o.minWidth)),r||l||c||s){let{columnType:t,...n}=c||{};a.unshift($.createElement(`col`,PZ({key:e,style:{width:r,minWidth:l}},n))),s=!0}}return a.length>0?$.createElement(`colgroup`,null,a):null};function IZ(e,t){return(0,$.useMemo)(()=>{let n=[];for(let r=0;r<t;r+=1){let t=e[r];if(t!==void 0)n[r]=t;else return null}return n},[e.join(`_`),t])}var LZ=$.forwardRef((e,t)=>{let{className:n,style:r,noData:i,columns:a,flattenColumns:o,colWidths:s,colGroup:c,columCount:l,stickyOffsets:u,direction:d,fixHeader:f,stickyTopOffset:p,stickyBottomOffset:m,stickyClassName:h,scrollX:g,tableLayout:_=`fixed`,onScroll:v,maxContentScroll:y,children:b,...x}=e,{prefixCls:S,scrollbarSize:C,isSticky:w,getComponent:T}=RX(qX,[`prefixCls`,`scrollbarSize`,`isSticky`,`getComponent`]),E=T([`header`,`table`],`table`),D=w&&!f?0:C,k=$.useRef(null),A=$.useCallback(e=>{O(t,e),O(k,e)},[]);$.useEffect(()=>{function e(e){let{currentTarget:t,deltaX:n}=e;if(n){let{scrollLeft:r,scrollWidth:i,clientWidth:a}=t,o=i-a,s=r+n;d===`rtl`?(s=Math.max(-o,s),s=Math.min(0,s)):(s=Math.min(o,s),s=Math.max(0,s)),v({currentTarget:t,scrollLeft:s}),e.preventDefault()}}let t=k.current;return t?.addEventListener(`wheel`,e,{passive:!1}),()=>{t?.removeEventListener(`wheel`,e)}},[]);let j=o[o.length-1],M={fixed:j?j.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${S}-cell-scrollbar`})},N=(0,$.useMemo)(()=>D?[...a,M]:a,[D,a]),P=(0,$.useMemo)(()=>D?[...o,M]:o,[D,o]),F=(0,$.useMemo)(()=>{let{start:e,end:t}=u;return{...u,start:e,end:[...t.map(e=>e+D),0],isSticky:w}},[D,u,w]),I=IZ(s,l),L=(0,$.useMemo)(()=>{let e=!I||!I.length||I.every(e=>!e);return i||e},[i,I]);return $.createElement(`div`,{style:{overflow:`hidden`,...w?{top:p,bottom:m}:{},...r},ref:A,className:X(n,{[h]:!!h})},$.createElement(E,{style:{tableLayout:_,minWidth:`100%`,width:g}},L?c:$.createElement(FZ,{colWidths:[...I,D],columCount:l+1,columns:P}),b({...x,stickyOffsets:F,columns:N,flattenColumns:P})))}),RZ=$.memo(LZ);function zZ(){return zZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zZ.apply(this,arguments)}var BZ=e=>{let{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:i,cellComponent:a,onHeaderRow:o,index:s,classNames:c,styles:l}=e,{prefixCls:u}=RX(qX,[`prefixCls`]),d;o&&(d=o(t.map(e=>e.column),s));let f=ZX(t.map(e=>e.column));return $.createElement(i,zZ({},d,{className:c.row,style:l.row}),t.map((e,t)=>{let{column:i,colStart:o,colEnd:s,colSpan:c}=e,l=lZ(o,s,r,n),d=i?.onHeaderCell?.(i)||{};return $.createElement(oZ,zZ({},e,{scope:i.title?c>1?`colgroup`:`col`:null,ellipsis:i.ellipsis,align:i.align,component:a,prefixCls:u,key:f[t]},l,{additionalProps:d,rowType:`header`}))}))};function VZ(e,t,n){let r=[];function i(e,a,o=0){r[o]=r[o]||[];let s=a;return e.filter(Boolean).map(e=>{let a={key:e.key,className:X(e.className,t.cell)||``,style:n.cell,children:e.title,column:e,colStart:s},c=1,l=e.children;return l&&l.length>0&&(c=i(l,s,o+1).reduce((e,t)=>e+t,0),a.hasSubColumns=!0),`colSpan`in e&&({colSpan:c}=e),`rowSpan`in e&&(a.rowSpan=e.rowSpan),a.colSpan=c,a.colEnd=a.colStart+c-1,r[o].push(a),s+=c,c})}i(e,0);let a=r.length;for(let e=0;e<a;e+=1)r[e].forEach(t=>{!(`rowSpan`in t)&&!t.hasSubColumns&&(t.rowSpan=a-e)});return r}var HZ=GX(e=>{let{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:i}=e,{prefixCls:a,getComponent:o,classNames:s,styles:c}=RX(qX,[`prefixCls`,`getComponent`,`classNames`,`styles`]),{header:l={}}=s||{},{header:u={}}=c||{},d=$.useMemo(()=>VZ(n,l,u),[n,l,u]),f=o([`header`,`wrapper`],`thead`),p=o([`header`,`row`],`tr`),m=o([`header`,`cell`],`th`);return $.createElement(f,{className:X(`${a}-thead`,l.wrapper),style:u.wrapper},d.map((e,n)=>$.createElement(BZ,{classNames:l,styles:u,key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:p,cellComponent:m,onHeaderRow:i,index:n})))});function UZ(e,t=``){return typeof t==`number`?t:t.endsWith(`%`)?e*parseFloat(t)/100:null}function WZ(e,t,n){return $.useMemo(()=>{if(t&&t>0){let r=0,i=0;e.forEach(e=>{let n=UZ(t,e.width);n?r+=n:i+=1});let a=Math.max(t,n),o=Math.max(a-r,i),s=i,c=o/i,l=0,u=e.map(e=>{let n={...e},r=UZ(t,n.width);if(r)n.width=r;else{let e=Math.floor(c);n.width=s===1?o:e,o-=e,--s}return l+=n.width,n});if(l<a){let e=a/l;o=a,u.forEach((t,n)=>{let r=Math.floor(t.width*e);t.width=n===u.length-1?o:r,o-=r})}return[u,Math.max(l,a)]}return[e,t]},[e,t,n])}function GZ(e){return Je(e).filter(e=>$.isValidElement(e)).map(e=>{let{key:t,props:n}=e,{children:r,...i}=n,a={key:t,...i};return r&&(a.children=GZ(r)),a})}function KZ(e){return e.filter(e=>e&&typeof e==`object`&&!e.hidden).map(e=>{let t=e.children;return t&&t.length>0?{...e,children:KZ(t)}:e})}function qZ(e,t=`key`){return e.filter(e=>e&&typeof e==`object`).reduce((e,n,r)=>{let{fixed:i}=n,a=i===!0||i===`left`?`start`:i===`right`?`end`:i,o=`${t}-${r}`,s=n.children;return s&&s.length>0?[...e,...qZ(s,o).map(e=>({...e,fixed:e.fixed??a}))]:[...e,{key:o,...n,fixed:a}]},[])}function JZ({prefixCls:e,columns:t,children:n,expandable:r,expandedKeys:i,columnTitle:a,getRowKey:o,onTriggerExpand:s,expandIcon:c,rowExpandable:l,expandIconColumnIndex:u,expandedRowOffset:d=0,direction:f,expandRowByClick:p,columnWidth:m,fixed:h,scrollWidth:g,clientWidth:_},v){let y=$.useMemo(()=>KZ((t||GZ(n)||[]).slice()),[t,n]),b=$.useMemo(()=>{if(r){let t=y.slice();if(!t.includes(FX)){let e=u||0,n=e===0&&(h===`right`||h===`end`)?y.length:e;n>=0&&t.splice(n,0,FX)}let n=t.indexOf(FX);t=t.filter((e,t)=>e!==FX||t===n);let r=y[n],f;f=h||(r?r.fixed:null);let g={[MZ]:{className:`${e}-expand-icon-col`,columnType:`EXPAND_COLUMN`},title:a,fixed:f,className:`${e}-row-expand-icon-cell`,width:m,render:(t,n,r)=>{let a=o(n,r),u=c({prefixCls:e,expanded:i.has(a),expandable:l?l(n):!0,record:n,onExpand:s});return p?$.createElement(`span`,{onClick:e=>e.stopPropagation()},u):u}};return t.map((e,t)=>{let n=e===FX?g:e;return t<d?{...n,fixed:n.fixed||`start`}:n})}return y.filter(e=>e!==FX)},[r,y,o,i,c,f,d]),x=$.useMemo(()=>{let e=b;return v&&(e=v(e)),e.length||(e=[{render:()=>null}]),e},[v,b,f]),[S,C]=WZ($.useMemo(()=>qZ(x),[x,f,g]),g,_);return[x,S,C]}function YZ(e,t,n){let r=NZ(e),{expandIcon:i,expandedRowKeys:a,defaultExpandedRowKeys:o,defaultExpandAllRows:s,expandedRowRender:c,onExpand:l,onExpandedRowsChange:u,childrenColumnName:d}=r,f=i||CZ,p=d||`children`,m=$.useMemo(()=>c?`row`:e.expandable&&e.internalHooks===`rc-table-internal-hook`&&e.expandable.__PARENT_RENDER_ICON__||t.some(e=>e&&typeof e==`object`&&e[p])?`nest`:!1,[!!c,t]),[h,g]=$.useState(()=>o||(s?wZ(t,n,p):[])),_=$.useMemo(()=>new Set(a||h||[]),[a,h]);return[r,m,_,f,p,$.useCallback(e=>{let r=n(e,t.indexOf(e)),i,a=_.has(r);a?(_.delete(r),i=[..._]):i=[..._,r],g(i),l&&l(!a,e),u&&u(i)},[n,_,t,l,u])]}function XZ(e,t){let n=$.useMemo(()=>e.map((n,r)=>lZ(r,r,e,t)),[e,t]);return Qe(()=>n,[n],(e,t)=>!tt(e,t))}function ZZ(e){let t=(0,$.useRef)(e),[,n]=(0,$.useState)({}),r=(0,$.useRef)(null),i=(0,$.useRef)([]);function a(e){i.current.push(e);let a=Promise.resolve();r.current=a,a.then(()=>{if(r.current===a){let e=i.current,a=t.current;i.current=[],e.forEach(e=>{t.current=e(t.current)}),r.current=null,a!==t.current&&n({})}})}return(0,$.useEffect)(()=>()=>{r.current=null},[]),[t.current,a]}function QZ(e){let t=(0,$.useRef)(e||null),n=(0,$.useRef)(null);function r(){clearTimeout(n.current)}function i(e){t.current=e,r(),n.current=setTimeout(()=>{t.current=null,n.current=void 0},100)}function a(){return t.current}return(0,$.useEffect)(()=>r,[]),[i,a]}function $Z(){let[e,t]=$.useState(-1),[n,r]=$.useState(-1);return[e,n,$.useCallback((e,n)=>{t(e),r(n)},[])]}var eQ=et()?window:null;function tQ(e,t){let{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:i=0,getContainer:a=()=>eQ}=typeof e==`object`?e:{},o=a()||eQ,s=!!e;return $.useMemo(()=>({isSticky:s,stickyClassName:s?`${t}-sticky-holder`:``,offsetHeader:n,offsetSummary:r,offsetScroll:i,container:o}),[s,i,n,r,t,o])}function nQ(e,t){return(0,$.useMemo)(()=>{let n=t.length,r=(n,r,i)=>{let a=[],o=0;for(let s=n;s!==r;s+=i)a.push(o),t[s].fixed&&(o+=e[s]||0);return a};return{start:r(0,n,1),end:r(n-1,-1,-1).reverse(),widths:e}},[e,t])}var rQ=e=>{let{children:t,className:n,style:r}=e;return $.createElement(`div`,{className:n,style:r},t)};function iQ(e){let t=I(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 aQ=`mouseup`,oQ=`mousemove`,sQ=`scroll`,cQ=`resize`,lQ=$.forwardRef((e,t)=>{let{scrollBodyRef:n,onScroll:r,offsetScroll:i,container:a,direction:o}=e,s=RX(qX,`prefixCls`),c=n.current?.scrollWidth||0,l=n.current?.clientWidth||0,u=c&&l/c*l,d=$.useRef(null),[f,p]=ZZ({scrollLeft:0,isHiddenScrollBar:!0}),m=$.useRef({delta:0,x:0}),[h,g]=$.useState(!1),_=$.useRef(null);$.useEffect(()=>()=>{Y.cancel(_.current)},[]);let v=()=>{g(!1)},y=e=>{e.persist(),m.current.delta=e.pageX-f.scrollLeft,m.current.x=0,g(!0),e.preventDefault()},b=e=>{let{buttons:t}=e||window?.event;if(!h||t===0){h&&g(!1);return}let n=m.current.x+e.pageX-m.current.x-m.current.delta,i=o===`rtl`;n=Math.max(i?u-l:0,Math.min(i?0:l-u,n)),(!i||Math.abs(n)+Math.abs(u)<l)&&(r({scrollLeft:n/l*(c+2)}),m.current.x=e.pageX)},x=()=>{Y.cancel(_.current),_.current=Y(()=>{if(!n.current)return;let e=iQ(n.current).top,t=e+n.current.offsetHeight,r=a===window?document.documentElement.scrollTop+window.innerHeight:iQ(a).top+a.clientHeight;t-U()<=r||e>=r-i?p(e=>({...e,isHiddenScrollBar:!0})):p(e=>({...e,isHiddenScrollBar:!1}))})},S=e=>{p(t=>({...t,scrollLeft:e/c*l||0}))};return $.useImperativeHandle(t,()=>({setScrollLeft:S,checkScrollBarVisible:x})),$.useEffect(()=>(document.body.addEventListener(aQ,v,!1),document.body.addEventListener(oQ,b,!1),x(),()=>{document.body.removeEventListener(aQ,v),document.body.removeEventListener(oQ,b)}),[u,h]),$.useEffect(()=>{if(n.current){let e=[],t=I(n.current);for(;t;)e.push(t),t=t.parentElement;return e.forEach(e=>{e.addEventListener(sQ,x,!1)}),window.addEventListener(cQ,x,!1),window.addEventListener(sQ,x,!1),a.addEventListener(sQ,x,!1),()=>{e.forEach(e=>{e.removeEventListener(sQ,x)}),window.removeEventListener(cQ,x),window.removeEventListener(sQ,x),a.removeEventListener(sQ,x)}}},[a]),$.useEffect(()=>{f.isHiddenScrollBar||p(e=>{let t=n.current;return t?{...e,scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}:e})},[f.isHiddenScrollBar]),c<=l||!u||f.isHiddenScrollBar?null:$.createElement(`div`,{style:{height:U(),width:l,bottom:i},className:`${s}-sticky-scroll`},$.createElement(`div`,{onMouseDown:y,ref:d,className:X(`${s}-sticky-scroll-bar`,{[`${s}-sticky-scroll-bar-active`]:h}),style:{width:`${u}px`,transform:`translate3d(${f.scrollLeft}px, 0, 0)`}}))});function uQ(){return uQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uQ.apply(this,arguments)}var dQ=`rc-table`,fQ=[],pQ={};function mQ(){return`No Data`}var hQ=$.forwardRef((e,t)=>{let n={rowKey:`key`,prefixCls:dQ,emptyText:mQ,...e},{prefixCls:r,className:i,rowClassName:a,style:o,classNames:s,styles:c,data:l,rowKey:u,scroll:d,tableLayout:f,direction:p,title:h,footer:g,summary:_,caption:v,id:y,showHeader:b,components:x,emptyText:S,onRow:C,onHeaderRow:w,measureRowRender:T,onScroll:E,internalHooks:D,transformColumns:O,internalRefs:k,tailor:A,getContainerWidth:j,sticky:M,rowHoverable:N=!0}=n,P=l||fQ,F=!!P.length,L=D===IX,R=$.useCallback((e,t)=>oe(x,e)||t,[x]),z=$.useMemo(()=>typeof u==`function`?u:e=>e&&e[u],[u]),B=R([`body`]),[H,U,W]=$Z(),[G,ee,K,q,te,ne]=YZ(n,P,z),re=d?.x,[ie,ae]=$.useState(0),[se,ce,le]=JZ({...n,...G,expandable:!!G.expandedRowRender,columnTitle:G.columnTitle,expandedKeys:K,getRowKey:z,onTriggerExpand:ne,expandIcon:q,expandIconColumnIndex:G.expandIconColumnIndex,direction:p,scrollWidth:L&&A&&typeof re==`number`?re:null,clientWidth:ie},L?O:null),Y=le??re,ue=$.useMemo(()=>({columns:se,flattenColumns:ce}),[se,ce]),de=$.useRef(null),fe=$.useRef(null),pe=$.useRef(null),me=$.useRef(null);$.useImperativeHandle(t,()=>({nativeElement:de.current,scrollTo:e=>{if(pe.current instanceof HTMLElement){let{index:t,top:n,key:r,offset:i,align:a=`nearest`}=e;if($X(n))pe.current?.scrollTo({top:n});else{let e=r??z(P[t]),n=pe.current.querySelector(`[data-row-key="${e}"]`);if(n&&(n.scrollIntoView({block:a}),i)){let e=pe.current;e.scrollTo({top:e.scrollTop+i})}}}else pe.current?.scrollTo&&pe.current.scrollTo(e)}}));let he=$.useRef(null),[ge,_e]=$.useState(!1),[ve,ye]=$.useState(!1),[be,xe]=$.useState(new Map),Se=ZX(ce).map(e=>be.get(e)),Ce=$.useMemo(()=>Se,[Se.join(`_`)]),we=nQ(Ce,ce),Te=d&&QX(d.y),Ee=d&&QX(Y)||!!G.fixed,De=Ee&&ce.some(({fixed:e})=>e),Oe=$.useRef(null),{isSticky:ke,offsetHeader:Ae,offsetSummary:je,offsetScroll:Me,stickyClassName:Ne,container:Fe}=tQ(M,r),Ie=$.useMemo(()=>_?.(P),[_,P]),Le=(Te||ke)&&$.isValidElement(Ie)&&Ie.type===mZ&&Ie.props.fixed,Re,ze,Be;Te&&(ze={overflowY:F?`scroll`:`auto`,maxHeight:d.y}),Ee&&(Re={overflowX:`auto`},Te||(ze={overflowY:`hidden`}),Be={width:Y===!0?`auto`:Y,minWidth:`100%`});let Ve=$.useCallback((e,t)=>{xe(n=>{if(n.get(e)!==t){let r=new Map(n);return r.set(e,t),r}return n})},[]),[He,Ue]=QZ(null);function We(e,t){t&&(typeof t==`function`?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(()=>{t.scrollLeft=e},0)))}let[Ge,Ke]=$.useState([0,0]),qe=J(({currentTarget:e,scrollLeft:t})=>{let n=typeof t==`number`?t:e.scrollLeft,r=e||pQ;(!Ue()||Ue()===r)&&(He(r),We(n,fe.current),We(n,pe.current),We(n,he.current),We(n,Oe.current?.setScrollLeft));let i=e||fe.current;if(i){let e=L&&A&&typeof Y==`number`?Y:i.scrollWidth,t=i.clientWidth,r=Math.abs(n);if(Ke(n=>{let i=[r,e-t];return tt(n,i)?n:i}),e===t){_e(!1),ye(!1);return}_e(r>0),ye(r<e-t-1)}}),Je=J(e=>{qe(e),E?.(e)}),Ye=()=>{Ee&&pe.current?qe({currentTarget:I(pe.current),scrollLeft:pe.current?.scrollLeft}):(_e(!1),ye(!1))},Xe=e=>{Oe.current?.checkScrollBarVisible();let t=e??de.current?.offsetWidth??0;L&&j&&de.current&&(t=j(de.current,t)||t),t!==ie&&(Ye(),ae(t))};Pe(()=>{Ee&&Xe()},[Ee]);let Ze=$.useRef(!1);$.useEffect(()=>{Ze.current&&Ye()},[Ee,l,se.length]),$.useEffect(()=>{Ze.current=!0},[]);let[Qe,$e]=$.useState(0);Pe(()=>{(!A||!L)&&(pe.current instanceof Element?$e(m(pe.current).width):$e(m(me.current).width))},[]),$.useEffect(()=>{L&&k&&(k.body.current=pe.current)});let et=$.useCallback(e=>$.createElement($.Fragment,null,$.createElement(HZ,e),Le===`top`&&$.createElement(hZ,e,Ie)),[Le,Ie]),nt=$.useCallback(e=>$.createElement(hZ,e,Ie),[Ie]),rt=R([`table`],`table`),Z=$.useMemo(()=>f||(De?Y===`max-content`?`auto`:`fixed`:Te||ke||ce.some(({ellipsis:e})=>e)?`fixed`:`auto`),[Te,De,ce,f,ke]),it,at={colWidths:Ce,columCount:ce.length,stickyOffsets:we,onHeaderRow:w,fixHeader:Te,scroll:d},ot=$.useMemo(()=>F?null:typeof S==`function`?S():S,[F,S]),st=$.createElement(jZ,{data:P,measureColumnWidth:Te||Ee||ke}),Q=$.createElement(FZ,{colWidths:ce.map(({width:e})=>e),columns:ce}),ct=v==null?void 0:$.createElement(`caption`,{className:`${r}-caption`},v),lt=V(n,{data:!0}),ut=V(n,{aria:!0});if(Te||ke){let e;typeof B==`function`?(e=B(P,{scrollbarSize:Qe,ref:pe,onScroll:qe}),at.colWidths=ce.map(({width:e},t)=>{let n=t===ce.length-1?e-Qe:e;return typeof n==`number`&&!Number.isNaN(n)?n:0})):e=$.createElement(`div`,{style:{...Re,...ze},onScroll:Je,ref:pe,className:`${r}-body`},$.createElement(rt,uQ({style:{...Be,tableLayout:Z}},ut),ct,Q,st,!Le&&Ie&&$.createElement(hZ,{stickyOffsets:we,flattenColumns:ce},Ie)));let t={noData:!P.length,maxContentScroll:Ee&&Y===`max-content`,...at,...ue,direction:p,stickyClassName:Ne,scrollX:Y,tableLayout:Z,onScroll:qe};it=$.createElement($.Fragment,null,b!==!1&&$.createElement(RZ,uQ({},t,{stickyTopOffset:Ae,className:`${r}-header`,ref:fe,colGroup:Q}),et),e,Le&&Le!==`top`&&$.createElement(RZ,uQ({},t,{stickyBottomOffset:je,className:`${r}-summary`,ref:he,colGroup:Q}),nt),ke&&pe.current&&pe.current instanceof Element&&$.createElement(lQ,{ref:Oe,offsetScroll:Me,scrollBodyRef:pe,onScroll:qe,container:Fe,direction:p}))}else it=$.createElement(`div`,{style:{...Re,...ze,...c?.content},className:X(`${r}-content`,s?.content),onScroll:qe,ref:pe},$.createElement(rt,uQ({style:{...Be,tableLayout:Z}},ut),ct,Q,b!==!1&&$.createElement(HZ,uQ({},at,ue)),st,Ie&&$.createElement(hZ,{stickyOffsets:we,flattenColumns:ce},Ie)));let dt={...o};ke&&(dt[`--columns-count`]=ce.length);let ft=$.createElement(`div`,uQ({className:X(r,i,{[`${r}-rtl`]:p===`rtl`,[`${r}-fix-start-shadow`]:Ee,[`${r}-fix-end-shadow`]:Ee,[`${r}-fix-start-shadow-show`]:Ee&&ge,[`${r}-fix-end-shadow-show`]:Ee&&ve,[`${r}-layout-fixed`]:f===`fixed`,[`${r}-fixed-header`]:Te,[`${r}-fixed-column`]:De,[`${r}-scroll-horizontal`]:Ee,[`${r}-has-fix-start`]:ce[0]?.fixed,[`${r}-has-fix-end`]:ce[ce.length-1]?.fixed===`end`}),style:dt,id:y,ref:de},lt),h&&$.createElement(rQ,{className:X(`${r}-title`,s?.title),style:c?.title},h(P)),$.createElement(`div`,{ref:me,className:X(`${r}-container`,s?.section),style:c?.section},it),g&&$.createElement(rQ,{className:X(`${r}-footer`,s?.footer),style:c?.footer},g(P)));Ee&&(ft=$.createElement(jt,{onResize:({offsetWidth:e})=>Xe(e)},ft));let pt=XZ(ce,we),mt=$.useMemo(()=>({scrollX:Y,scrollInfo:Ge,classNames:s,styles:c,prefixCls:r,getComponent:R,scrollbarSize:Qe,direction:p,fixedInfoList:pt,isSticky:ke,componentWidth:ie,fixHeader:Te,fixColumn:De,horizonScroll:Ee,tableLayout:Z,rowClassName:a,expandedRowClassName:G.expandedRowClassName,expandIcon:q,expandableType:ee,expandRowByClick:G.expandRowByClick,expandedRowRender:G.expandedRowRender,expandedRowOffset:G.expandedRowOffset,onTriggerExpand:ne,expandIconColumnIndex:G.expandIconColumnIndex,indentSize:G.indentSize,allColumnsFixedLeft:ce.every(e=>e.fixed===`start`),emptyNode:ot,columns:se,flattenColumns:ce,onColumnResize:Ve,colWidths:Ce,hoverStartRow:H,hoverEndRow:U,onHover:W,rowExpandable:G.rowExpandable,onRow:C,getRowKey:z,expandedKeys:K,childrenColumnName:te,rowHoverable:N,measureRowRender:T}),[Y,Ge,s,c,r,R,Qe,p,pt,ke,ie,Te,De,Ee,Z,a,G.expandedRowClassName,q,ee,G.expandRowByClick,G.expandedRowRender,G.expandedRowOffset,ne,G.expandIconColumnIndex,G.indentSize,ot,se,ce,Ve,Ce,H,U,W,G.rowExpandable,C,z,K,te,N,T]);return $.createElement(qX.Provider,{value:mt},ft)}),gQ=e=>WX(hQ,e),_Q=gQ();_Q.EXPAND_COLUMN=FX,_Q.INTERNAL_HOOKS=IX,_Q.Column=_Z,_Q.ColumnGroup=vZ,_Q.Summary=gZ;var vQ=LX(null),yQ=LX(null);function bQ(){return bQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bQ.apply(this,arguments)}function xQ(e,t,n){return n[e+(t||1)]-(n[e]||0)}var SQ=e=>{let{rowInfo:t,column:n,colIndex:r,indent:i,index:a,component:o,renderIndex:s,record:c,style:l,className:u,inverse:d,getHeight:f}=e,{render:p,dataIndex:m,className:h,width:g}=n,{columnsOffset:_}=RX(yQ,[`columnsOffset`]),{key:v,fixedInfo:y,appendCellNode:b,additionalCellProps:x}=DZ(t,n,r,i,a),{style:S,colSpan:C=1,rowSpan:w=1}=x,T=xQ(r-1,C,_),E=C>1?g-T:0,D={...S,...l,flex:`0 0 ${T}px`,width:`${T}px`,marginRight:E,pointerEvents:`auto`},O=$.useMemo(()=>d?w<=1:C===0||w===0||w>1,[w,C,d]);O?D.visibility=`hidden`:d&&(D.height=f?.(w));let k=O?()=>null:p,A={};return(w===0||C===0)&&(A.rowSpan=1,A.colSpan=1),$.createElement(oZ,bQ({className:X(h,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:v,record:c,index:a,renderIndex:s,dataIndex:m,render:k,shouldCellUpdate:n.shouldCellUpdate},y,{appendNode:b,additionalProps:{...x,style:D,...A}}))};function CQ(){return CQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CQ.apply(this,arguments)}var wQ=GX($.forwardRef((e,t)=>{let{data:n,index:r,className:i,rowKey:a,style:o,extra:s,getHeight:c,...l}=e,{record:u,indent:d,index:f}=n,{scrollX:p,flattenColumns:m,prefixCls:h,fixColumn:g,componentWidth:_,classNames:v,styles:y}=RX(qX,[`prefixCls`,`flattenColumns`,`fixColumn`,`componentWidth`,`scrollX`,`classNames`,`styles`]),{getComponent:b}=RX(vQ,[`getComponent`]),x=xZ(u,a,r,d),S=b([`body`,`row`],`div`),C=b([`body`,`cell`],`div`),{rowSupportExpand:w,expanded:T,rowProps:E,expandedRowRender:D,expandedRowClassName:O}=x,k=TZ(O,u,r,d),A;if(w&&T){let e=D(u,r,d+1,T),t={};g&&(t={style:{"--virtual-width":`${_}px`}});let n=`${h}-expanded-row-cell`;A=$.createElement(S,{className:X(`${h}-expanded-row`,`${h}-expanded-row-level-${d+1}`,k)},$.createElement(oZ,{component:C,prefixCls:h,className:X(n,{[`${n}-fixed`]:g}),additionalProps:t},e))}let j={...o,width:p};s&&(j.position=`absolute`,j.pointerEvents=`none`);let M=$.createElement(S,CQ({},E,l,{"data-row-key":a,ref:w?null:t,className:X(i,`${h}-row`,E?.className,v?.body?.row,{[k]:d>=1,[`${h}-row-extra`]:s}),style:{...j,...E?.style,...y?.body?.row}}),m.map((e,t)=>$.createElement(SQ,{key:t,className:v?.body?.cell,style:y?.body?.cell,component:C,rowInfo:x,column:e,colIndex:t,indent:d,index:r,renderIndex:f,record:u,inverse:s,getHeight:c})));return w?$.createElement(`div`,{ref:t},M,A):M})),TQ={start:`top`,end:`bottom`,nearest:`auto`},EQ=GX($.forwardRef((e,t)=>{let{data:n,onScroll:r}=e,{flattenColumns:i,onColumnResize:a,getRowKey:o,expandedKeys:s,prefixCls:c,childrenColumnName:l,scrollX:u,direction:d}=RX(qX,[`flattenColumns`,`onColumnResize`,`getRowKey`,`prefixCls`,`expandedKeys`,`childrenColumnName`,`scrollX`,`direction`]),{sticky:f,scrollY:p,listItemHeight:m,getComponent:h,onScroll:g}=RX(vQ),_=$.useRef(null),v=bZ(n,l,s,o),y=$.useMemo(()=>{let e=0;return i.map(({width:t,minWidth:n,key:r})=>{let i=Math.max(t||0,n||0);return e+=i,[r,i,e]})},[i]),b=$.useMemo(()=>y.map(e=>e[2]),[y]);$.useEffect(()=>{y.forEach(([e,t])=>{a(e,t)})},[y]),$.useImperativeHandle(t,()=>{let e={scrollTo:e=>{let{align:t,offset:n,...r}=e,i=TQ[t]??(n?`top`:`auto`);_.current?.scrollTo({...r,offset:n,align:i})},nativeElement:_.current?.nativeElement};return Object.defineProperty(e,"scrollLeft",{get:()=>_.current?.getScrollInfo().x||0,set:e=>{_.current?.scrollTo({left:e})}}),Object.defineProperty(e,"scrollTop",{get:()=>_.current?.getScrollInfo().y||0,set:e=>{_.current?.scrollTo({top:e})}}),e});let x=(e,t)=>{let n=v[t]?.record,{onCell:r}=e;return r?r(n,t)?.rowSpan??1:1},S=e=>{let{start:t,end:n,getSize:r,offsetY:a}=e;if(n<0)return null;let s=i.filter(e=>x(e,t)===0),c=t;for(let e=t;e>=0;--e)if(s=s.filter(t=>x(t,e)===0),!s.length){c=e;break}let l=i.filter(e=>x(e,n)!==1),u=n;for(let e=n;e<v.length;e+=1)if(l=l.filter(t=>x(t,e)!==1),!l.length){u=Math.max(e-1,n);break}let d=[];for(let e=c;e<=u;e+=1)v[e]&&i.some(t=>x(t,e)>1)&&d.push(e);return d.map(e=>{let t=v[e],n=o(t.record,e),i=t=>{let i=e+t-1,a=v[i];if(!a||!a.record){let e=Math.min(i,v.length-1),t=v[e],a=r(n,o(t.record,e));return a.bottom-a.top}let s=r(n,o(a.record,i));return s.bottom-s.top},s=r(n);return $.createElement(wQ,{key:e,data:t,rowKey:n,index:e,style:{top:-a+s.top},extra:!0,getHeight:i})})},C=$.useMemo(()=>({columnsOffset:b}),[b]),w=`${c}-tbody`,T=h([`body`,`wrapper`]),E={};return f&&(E.position=`sticky`,E.bottom=0,typeof f==`object`&&f.offsetScroll&&(E.bottom=f.offsetScroll)),$.createElement(yQ.Provider,{value:C},$.createElement(U_,{fullHeight:!1,ref:_,prefixCls:`${w}-virtual`,styles:{horizontalScrollBar:E},className:w,height:p,itemHeight:m||24,data:v,itemKey:e=>o(e.record),component:T,scrollWidth:u,direction:d,onVirtualScroll:({x:e})=>{r({currentTarget:_.current?.nativeElement,scrollLeft:e})},onScroll:g,extraRender:S},(e,t,n)=>{let r=o(e.record,t);return $.createElement(wQ,{data:e,rowKey:r,index:t,style:n.style})}))}));function DQ(){return DQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DQ.apply(this,arguments)}var OQ=(e,t)=>{let{ref:n,onScroll:r}=t;return $.createElement(EQ,{ref:n,data:e,onScroll:r})},kQ=$.forwardRef((e,t)=>{let{data:n,columns:r,scroll:i,sticky:a,prefixCls:o=dQ,className:s,listItemHeight:c,components:l,onScroll:u}=e,{x:d,y:f}=i||{};typeof d!=`number`&&(d=1),typeof f!=`number`&&(f=500);let p=J((e,t)=>oe(l,e)||t),m=J(u),h=$.useMemo(()=>({sticky:a,scrollY:f,listItemHeight:c,getComponent:p,onScroll:m}),[a,f,c,p,m]);return $.createElement(vQ.Provider,{value:h},$.createElement(_Q,DQ({},e,{className:X(s,`${o}-virtual`),scroll:{...i,x:d},components:{...l,body:n?.length?OQ:void 0},columns:r,internalHooks:IX,tailor:!0,ref:t})))}),AQ=e=>WX(kQ,e);AQ();var jQ=e=>null,MQ=e=>null,NQ=$.createContext(null),PQ=$.createContext({}),FQ=$.memo(({prefixCls:e,level:t,isStart:n,isEnd:r})=>{let i=`${e}-indent-unit`,a=[];for(let e=0;e<t;e+=1)a.push($.createElement(`span`,{key:e,className:X(i,{[`${i}-start`]:n[e],[`${i}-end`]:r[e]})}));return $.createElement(`span`,{"aria-hidden":`true`,className:`${e}-indent`},a)});function IQ(){return IQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IQ.apply(this,arguments)}var LQ=`open`,RQ=`close`,zQ=`---`,BQ=e=>{let{eventKey:t,className:n,style:r,dragOver:i,dragOverGapTop:a,dragOverGapBottom:o,isLeaf:s,isStart:c,isEnd:l,expanded:u,selected:d,checked:f,halfChecked:p,loading:m,domRef:h,active:g,data:_,onMouseMove:v,selectable:y,treeId:b,...x}=e,S=G(b,t),C=$.useContext(NQ),{classNames:w,styles:T}=C||{},E=$.useContext(PQ),D=$.useRef(null),[O,k]=$.useState(!1),A=!!(C.disabled||e.disabled||E.nodeDisabled?.(_)),j=$.useMemo(()=>!C.checkable||e.checkable===!1?!1:C.checkable,[C.checkable,e.checkable]),M=t=>{A||C.onNodeSelect(t,NL(e))},N=t=>{A||!j||e.disableCheckbox||C.onNodeCheck(t,NL(e),!f)},P=$.useMemo(()=>typeof y==`boolean`?y:C.selectable,[y,C.selectable]),F=t=>{C.onNodeClick(t,NL(e)),P?M(t):N(t)},I=t=>{C.onNodeDoubleClick(t,NL(e))},L=t=>{C.onNodeMouseEnter(t,NL(e))},R=t=>{C.onNodeMouseLeave(t,NL(e))},z=t=>{C.onNodeContextMenu(t,NL(e))},B=$.useMemo(()=>!!(C.draggable&&(!C.draggable.nodeDraggable||C.draggable.nodeDraggable(_))),[C.draggable,_]),H=t=>{t.stopPropagation(),k(!0),C.onNodeDragStart(t,e);try{t.dataTransfer.setData(`text/plain`,``)}catch{}},U=t=>{t.preventDefault(),t.stopPropagation(),C.onNodeDragEnter(t,e)},W=t=>{t.preventDefault(),t.stopPropagation(),C.onNodeDragOver(t,e)},ee=t=>{t.stopPropagation(),C.onNodeDragLeave(t,e)},K=t=>{t.stopPropagation(),k(!1),C.onNodeDragEnd(t,e)},q=t=>{t.preventDefault(),t.stopPropagation(),k(!1),C.onNodeDrop(t,e)},te=t=>{m||C.onNodeExpand(t,NL(e))},ne=$.useMemo(()=>{let{children:e}=SL(C.keyEntities,t)||{};return!!(e||[]).length},[C.keyEntities,t]),re=$.useMemo(()=>jL(s,C.loadData,ne,e.loaded),[s,C.loadData,ne,e.loaded]);$.useEffect(()=>{m||typeof C.loadData==`function`&&u&&!re&&!e.loaded&&C.onNodeLoad(NL(e))},[m,C.loadData,C.onNodeLoad,u,re,e]);let J=$.useMemo(()=>C.draggable?.icon?$.createElement(`span`,{className:`${C.prefixCls}-draggable-icon`},C.draggable.icon):null,[C.draggable]),ie=t=>{let n=e.switcherIcon||C.switcherIcon;return typeof n==`function`?n({...e,isLeaf:t}):n},ae=()=>{if(re){let e=ie(!0);return e===!1?null:$.createElement(`span`,{className:X(`${C.prefixCls}-switcher`,`${C.prefixCls}-switcher-noop`,w?.itemSwitcher),style:T?.itemSwitcher},e)}let e=ie(!1);return e===!1?null:$.createElement(`span`,{onClick:te,className:X(`${C.prefixCls}-switcher`,`${C.prefixCls}-switcher_${u?LQ:RQ}`,w?.itemSwitcher),style:T?.itemSwitcher},e)},oe=$.useMemo(()=>{if(!j)return null;let t=typeof j==`boolean`?null:j;return $.createElement(`span`,{className:X(`${C.prefixCls}-checkbox`,{[`${C.prefixCls}-checkbox-checked`]:f,[`${C.prefixCls}-checkbox-indeterminate`]:!f&&p,[`${C.prefixCls}-checkbox-disabled`]:A||e.disableCheckbox}),onClick:N,role:`checkbox`,"aria-checked":p?`mixed`:f,"aria-disabled":A||e.disableCheckbox,"aria-labelledby":S},t)},[j,f,p,A,e.disableCheckbox,S]),se=$.useMemo(()=>re?null:u?LQ:RQ,[re,u]),ce=$.useMemo(()=>$.createElement(`span`,{className:X(w?.itemIcon,`${C.prefixCls}-iconEle`,`${C.prefixCls}-icon__${se||`docu`}`,{[`${C.prefixCls}-icon_loading`]:m}),style:T?.itemIcon}),[C.prefixCls,se,m]),le=$.useMemo(()=>{let n=!!C.draggable;return!e.disabled&&n&&C.dragOverNodeKey===t?C.dropIndicatorRender({dropPosition:C.dropPosition,dropLevelOffset:C.dropLevelOffset,indent:C.indent,prefixCls:C.prefixCls,direction:C.direction}):null},[C.dropPosition,C.dropLevelOffset,C.indent,C.prefixCls,C.direction,C.draggable,C.dragOverNodeKey,C.dropIndicatorRender]),Y=$.useMemo(()=>{let{title:t=zQ}=e,n=`${C.prefixCls}-node-content-wrapper`,r;if(C.showIcon){let t=e.icon||C.icon;r=t?$.createElement(`span`,{className:X(w?.itemIcon,`${C.prefixCls}-iconEle`,`${C.prefixCls}-icon__customize`),style:T?.itemIcon},typeof t==`function`?t(e):t):ce}else C.loadData&&m&&(r=ce);let i;return i=typeof t==`function`?t(_):C.titleRender?C.titleRender(_):t,$.createElement(`span`,{ref:D,title:typeof t==`string`?t:``,className:X(n,`${n}-${se||`normal`}`,{[`${C.prefixCls}-node-selected`]:!A&&(d||O)}),onMouseEnter:L,onMouseLeave:R,onContextMenu:z,onClick:F,onDoubleClick:I},r,$.createElement(`span`,{className:X(`${C.prefixCls}-title`,w?.itemTitle),style:T?.itemTitle},i),le)},[C.prefixCls,C.showIcon,e,C.icon,ce,C.titleRender,_,se,L,R,z,F,I]),ue=V(x,{aria:!0,data:!0}),{level:de}=SL(C.keyEntities,t)||{},fe=l[l.length-1],pe=!A&&B,me=C.draggingNodeKey===t;return $.createElement(`div`,IQ({ref:h,role:`treeitem`,id:S,"aria-expanded":re?void 0:u,"aria-selected":P&&!A?d:void 0,"aria-checked":j&&!A?p?`mixed`:f:void 0,"aria-disabled":A,className:X(n,`${C.prefixCls}-treenode`,w?.item,{[`${C.prefixCls}-treenode-disabled`]:A,[`${C.prefixCls}-treenode-switcher-${u?`open`:`close`}`]:!s,[`${C.prefixCls}-treenode-checkbox-checked`]:f,[`${C.prefixCls}-treenode-checkbox-indeterminate`]:p,[`${C.prefixCls}-treenode-selected`]:d,[`${C.prefixCls}-treenode-loading`]:m,[`${C.prefixCls}-treenode-active`]:g,[`${C.prefixCls}-treenode-leaf-last`]:fe,[`${C.prefixCls}-treenode-draggable`]:B,dragging:me,"drop-target":C.dropTargetKey===t,"drop-container":C.dropContainerKey===t,"drag-over":!A&&i,"drag-over-gap-top":!A&&a,"drag-over-gap-bottom":!A&&o,"filter-node":C.filterTreeNode?.(NL(e)),[`${C.prefixCls}-treenode-leaf`]:re}),style:{...r,...T?.item},draggable:pe,onDragStart:pe?H:void 0,onDragEnter:B?U:void 0,onDragOver:B?W:void 0,onDragLeave:B?ee:void 0,onDrop:B?q:void 0,onDragEnd:B?K:void 0,onMouseMove:v},ue),$.createElement(FQ,{prefixCls:C.prefixCls,level:de,isStart:c,isEnd:l}),J,ae(),oe,Y)};BQ.isTreeNode=1;function VQ(e,t){if(!e)return[];let n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function HQ(e,t){let n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function UQ(e){return e.split(`-`)}function WQ(e,t){let n=[],r=SL(t,e);function i(e=[]){e.forEach(({key:e,children:t})=>{n.push(e),i(t)})}return i(r.children),n}function GQ(e){if(e.parent){let t=UQ(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function KQ(e){let t=UQ(e.pos);return Number(t[t.length-1])===0}function qQ(e,t,n,r,i,a,o,s,c,l){let{clientX:u,clientY:d}=e,{top:f,height:p}=e.target.getBoundingClientRect(),m=((l===`rtl`?-1:1)*((i?.x||0)-u)-12)/r,h=c.filter(e=>s[e]?.children?.length),g=SL(s,n.eventKey);if(d<f+p/2){let e=o.findIndex(e=>e.key===g.key),t=o[e<=0?0:e-1].key;g=SL(s,t)}let _=g.key,v=g,y=g.key,b=0,x=0;if(!h.includes(_))for(let e=0;e<m&&GQ(g);e+=1)g=g.parent,x+=1;let S=t.data,C=g.node,w=!0;return KQ(g)&&g.level===0&&d<f+p/2&&a({dragNode:S,dropNode:C,dropPosition:-1})&&g.key===n.eventKey?b=-1:(v.children||[]).length&&h.includes(y)?a({dragNode:S,dropNode:C,dropPosition:0})?b=0:w=!1:x===0?m>-1.5?a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:0})?b=0:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1,{dropPosition:b,dropLevelOffset:x,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:y,dropContainerKey:b===0?null:g.parent?.key||null,dropAllowed:w}}function JQ(e,t){if(!e)return;let{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function YQ(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e==`object`)t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return $e(!1,"`checkedKeys` is not an array or an object"),null;return t}function XQ(e,t){let n=new Set;function r(e){if(n.has(e))return;let i=SL(t,e);if(!i)return;n.add(e);let{parent:a,node:o}=i;o.disabled||a&&r(a.key)}return(e||[]).forEach(e=>{r(e)}),[...n]}var ZQ={},QQ=`SELECT_ALL`,$Q=`SELECT_INVERT`,e$=`SELECT_NONE`,t$=[],n$=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),Oi(t)&&e in t&&n$(e,t[e],n)}),n),r$=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,getTitleCheckboxProps:o,onChange:s,onSelect:c,onSelectAll:l,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:h,fixed:g,renderCell:_,hideSelectAll:y,checkStrictly:b=!0}=t||{},{prefixCls:x,data:S,pageData:C,getRecordByKey:w,getRowKey:T,expandType:E,childrenColumnName:D,locale:O,getPopupContainer:k}=e,A=gt(`Table`),[j,M]=ac(e=>e),[N,P]=v(i||t$,r),F=N??t$,I=$.useRef(new Map),L=(0,$.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=w(e);!n&&I.current.has(e)&&(n=I.current.get(e)),t.set(e,n)}),I.current=t}},[w,n]);$.useEffect(()=>{L(F)},[F,L]);let R=(0,$.useMemo)(()=>n$(D,C),[D,C]),{keyEntities:z}=(0,$.useMemo)(()=>{if(b)return{keyEntities:null};let e=S;if(n){let t=new Set(R.map(T)),n=Array.from(I.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat(Lt(e),Lt(n))}return AL(e,{externalGetKey:T,childrenPropName:D})},[S,T,b,D,n,R]),B=(0,$.useMemo)(()=>{let e=new Map;return R.forEach((t,n)=>{let r=T(t,n),i=(a?a(t):null)||{};e.set(r,i)}),e},[R,T,a]),V=(0,$.useCallback)(e=>{let t=T(e),n;return n=B.has(t)?B.get(T(e)):a?a(e):void 0,!!n?.disabled},[B,T]),[H,U]=(0,$.useMemo)(()=>{if(b)return[F,[]];let{checkedKeys:e,halfCheckedKeys:t}=VL(F,!0,z,V);return[e||[],t]},[F,b,z,V]),W=(0,$.useMemo)(()=>{let e=m===`radio`?H.slice(0,1):H;return new Set(e)},[H,m]),G=(0,$.useMemo)(()=>m===`radio`?new Set:new Set(U),[U,m]);$.useEffect(()=>{t||P(t$)},[!!t]);let ee=(0,$.useCallback)((e,t)=>{let r,i;L(e),n?(r=e,i=e.map(e=>I.current.get(e))):(r=[],i=[],e.forEach(e=>{let t=w(e);t!==void 0&&(r.push(e),i.push(t))})),P(r),s?.(r,i,{type:t})},[P,w,s,n]),K=(0,$.useCallback)((e,t,n,r)=>{if(c){let i=n.map(w);c(w(e),t,i,r)}ee(n,`single`)},[c,w,ee]),te=(0,$.useMemo)(()=>!h||y?null:(h===!0?[QQ,$Q,e$]:h).map(e=>{let t;return t=e===`SELECT_ALL`?{key:`all`,text:O.selectionAll,onSelect(){ee(S.reduce((e,t,n)=>{let r=T(t,n);return(!B.get(r)?.disabled||W.has(r))&&e.push(r),e},[]),`all`)}}:e===`SELECT_INVERT`?{key:`invert`,text:O.selectInvert,onSelect(){let e=new Set(W);C.forEach((t,n)=>{let r=T(t,n);B.get(r)?.disabled||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);u&&(A.deprecated(!1,`onSelectInvert`,`onChange`),u(t)),ee(t,`invert`)}}:e===`SELECT_NONE`?{key:`none`,text:O.selectNone,onSelect(){d?.(),ee(Array.from(W).filter(e=>B.get(e)?.disabled),`none`)}}:e,{...t,onSelect:e=>{t.onSelect?.(e),M(null)}}}),[h,y,O.selectionAll,O.selectInvert,O.selectNone,B,W,S,C,T,u,ee]);return[(0,$.useCallback)(e=>{if(!t)return e.filter(e=>e!==ZQ);let n=Lt(e),r=new Set(W),i=R.reduce((e,t,n)=>{let r=T(t,n);return B.get(r).disabled||e.push(r),e},[]),a=i.every(e=>r.has(e)),s=i.some(e=>r.has(e)),c=()=>{let e=[];a?i.forEach(t=>{r.delete(t),e.push(t)}):i.forEach(t=>{r.has(t)||(r.add(t),e.push(t))});let t=Array.from(r);l?.(!a,t.map(w),e.map(w)),ee(t,`all`),M(null)},u,d;if(m!==`radio`){let e;if(te){let t={getPopupContainer:k,items:te.map((e,t)=>{let{key:n,text:r,onSelect:a}=e;return{key:n??t,onClick:()=>{a?.(i)},label:r}})};e=$.createElement(`div`,{className:`${x}-selection-extra`},$.createElement(HH,{menu:t,getPopupContainer:k},$.createElement(`span`,null,$.createElement(q,null))))}let t=R.reduce((e,t,n)=>{let i=T(t,n),a=B.get(i)||{},o={checked:r.has(i),...a};return o.disabled&&e.push(o),e},[]),n=!!t.length&&t.length===R.length,l=n&&t.every(({checked:e})=>e),f=n&&t.some(({checked:e})=>e),p=o?.()||{},{onChange:m,disabled:h}=p;d=$.createElement(kR,{"aria-label":e?`Custom selection`:`Select all`,...p,checked:n?l:!!R.length&&a,indeterminate:n?!l&&f:!a&&s,onChange:e=>{c(),m?.(e)},disabled:h??(R.length===0||n),skipGroup:!0}),u=!y&&$.createElement(`div`,{className:`${x}-selection`},d,e)}let v;v=m===`radio`?(e,t,n)=>{let i=T(t,n),a=r.has(i),o=B.get(i);return{node:$.createElement(SN,{...o,checked:a,onClick:e=>{e.stopPropagation(),o?.onClick?.(e)},onChange:e=>{r.has(i)||K(i,!0,[i],e.nativeEvent),o?.onChange?.(e)}}),checked:a}}:(e,t,n)=>{let a=T(t,n),o=r.has(a),s=G.has(a),c=B.get(a),l;return l=E===`nest`?s:c?.indeterminate??s,{node:$.createElement(kR,{...c,indeterminate:l,checked:o,skipGroup:!0,onClick:e=>{e.stopPropagation(),c?.onClick?.(e)},onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,s=i.indexOf(a),l=W.size>0&&i.some(e=>W.has(e));if(n&&b&&l){let e=j(s,i,r),t=Array.from(r);f?.(!o,t.map(w),e.map(w)),ee(t,`multiple`)}else{let e=H;if(b){let n=o?VQ(e,a):HQ(e,a);K(a,!o,n,t)}else{let{checkedKeys:n,halfCheckedKeys:r}=VL([].concat(Lt(e),[a]),!0,z,V),i=n;if(o){let e=new Set(n);e.delete(a),i=VL(Array.from(e),{checked:!1,halfCheckedKeys:r},z,V).checkedKeys}K(a,!o,i,t)}}M(o?null:s),c?.onChange?.(e)}}),checked:o}};let S=(e,t,n)=>{let{node:r,checked:i}=v(e,t,n);return _?_(i,t,n,r):r};if(!n.includes(ZQ))if(n.findIndex(e=>e.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`)===0){let[e,...t]=n;n=[e,ZQ].concat(Lt(t))}else n=[ZQ].concat(Lt(n));let C=n.indexOf(ZQ);n=n.filter((e,t)=>e!==ZQ||t===C);let D=n[C-1],O=n[C+1],A=g;A===void 0&&(O?.fixed===void 0?D?.fixed!==void 0&&(A=D.fixed):A=O.fixed),A&&D&&D.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`&&D.fixed===void 0&&(D.fixed=A);let N=X(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:h&&m===`checkbox`}),P={fixed:A,width:p,className:`${x}-selection-column`,title:t?.columnTitle?ki(t.columnTitle)?t.columnTitle(d):t.columnTitle:u,render:S,onCell:t.onCell,align:t.align,[MZ]:{className:N}};return n.map(e=>e===ZQ?P:e)},[T,R,t,H,W,G,p,te,E,B,f,K,V]),W]};function i$(e){return t=>{let{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:o}=t,s=`${n}-row-expand-icon`;return $.createElement(`button`,{type:`button`,onClick:e=>{r(i,e),e.stopPropagation()},className:X(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&a,[`${s}-collapsed`]:o&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function a$(e){return(t,n)=>{let r=t.querySelector(`.${e}-container`),i=n;if(r){let e=getComputedStyle(r),t=Number.parseInt(e.borderLeftWidth,10),a=Number.parseInt(e.borderRightWidth,10);i=n-t-a}return i}}var o$=(e,t)=>$.useMemo(()=>{if(!t)return e;let n=e=>e.map(e=>e===ZQ||e===FX?e:`children`in e&&Array.isArray(e.children)?{...He(t,e),children:n(e.children)}:He(u(t,[`children`]),e));return n(e)},[e,t]),s$=(e,t)=>`key`in e&&Ti(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join(`.`):e.dataIndex:t;function c$(e,t){return t?`${t}-${e}`:`${e}`}var l$=(e,t)=>ki(e)?e(t):e,u$=(e,t)=>{let n=l$(e,t);return Oi(n)||Array.isArray(n)?``:n},d$=e=>{let{dropPosition:t,dropLevelOffset:n,indent:r}=e,i={pointerEvents:`none`,position:`absolute`,right:0,backgroundColor:`red`,height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r;break}return $.createElement(`div`,{style:i})};function f$(e,t){let[n,r]=$.useState(!1);Pe(()=>{if(n)return e(),()=>{t()}},[n]),Pe(()=>(r(!0),()=>{r(!1)}),[])}function p$(){return p$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p$.apply(this,arguments)}var m$=$.forwardRef((e,t)=>{let{className:n,style:r,motion:i,motionNodes:a,motionType:o,onMotionStart:s,onMotionEnd:c,active:l,treeNodeRequiredProps:u,...d}=e,[f,p]=$.useState(!0),{prefixCls:m}=$.useContext(NQ),h=a&&o!==`hide`;Pe(()=>{a&&h!==f&&p(h)},[a]);let g=()=>{a&&s()},_=$.useRef(!1),v=()=>{a&&!_.current&&(_.current=!0,c())};return f$(g,v),a?$.createElement(wi,p$({ref:t,visible:f},i,{motionAppear:o===`show`,onVisibleChanged:e=>{h===e&&v()}}),({className:e,style:t},n)=>$.createElement(`div`,{ref:n,className:X(`${m}-treenode-motion`,e),style:t},a.map(e=>{let{data:{...t},title:n,key:r,isStart:i,isEnd:a}=e;delete t.children;let o=ML(r,u);return $.createElement(BQ,p$({},t,o,{title:n,active:l,data:e.data,key:r,isStart:i,isEnd:a}))}))):$.createElement(BQ,p$({domRef:t,className:n,style:r},d,{active:l}))});function h$(e=[],t=[]){let n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(e,t){let n=new Map;e.forEach(e=>{n.set(e,!0)});let r=t.filter(e=>!n.has(e));return r.length===1?r[0]:null}return n<r?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}function g$(e,t,n){let r=e[e.findIndex(e=>e.key===n)+1],i=t.findIndex(e=>e.key===n);if(r){let e=t.findIndex(e=>e.key===r.key);return t.slice(i+1,e)}return t.slice(i+1)}function _$(){return _$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_$.apply(this,arguments)}var v$=`RC_TREE_MOTION_${Math.random()}`,y$={key:v$},b$={key:v$,level:0,index:0,pos:`0`,node:y$,nodes:[y$]},x$={parent:null,children:[],pos:b$.pos,data:y$,title:null,key:v$,isStart:[],isEnd:[]};function S$(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function C$(e){let{key:t,pos:n}=e;return TL(t,n)}var w$=$.forwardRef((e,t)=>{let{prefixCls:n,data:r,selectable:i,checkable:a,expandedKeys:o,selectedKeys:s,checkedKeys:c,loadedKeys:l,loadingKeys:u,halfCheckedKeys:d,keyEntities:f,disabled:p,dragging:m,dragOverNodeKey:h,dropPosition:g,motion:_,height:v,itemHeight:y,virtual:b,scrollWidth:x,focusable:S,activeItem:C,tabIndex:w,onKeyDown:T,onFocus:E,onBlur:D,onMouseDown:O,onActiveChange:k,onListChangeStart:A,onListChangeEnd:j,...M}=e,N=te(),P=$.useRef(null),F=$.useRef(null);$.useImperativeHandle(t,()=>({scrollTo:e=>{P.current.scrollTo(e)},getIndentWidth:()=>F.current.offsetWidth}));let[I,L]=$.useState(o),[R,z]=$.useState(r),[B,V]=$.useState(r),[H,U]=$.useState([]),[W,ee]=$.useState(null),K=$.useRef(r);K.current=r;function q(){let e=K.current;z(e),V(e),U([]),ee(null),j()}Pe(()=>{L(o);let e=h$(I,o);if(e.key!==null)if(e.add){let t=R.findIndex(({key:t})=>t===e.key),n=S$(g$(R,r,e.key),b,v,y),i=R.slice();i.splice(t+1,0,x$),V(i),U(n),ee(`show`)}else{let t=r.findIndex(({key:t})=>t===e.key),n=S$(g$(r,R,e.key),b,v,y),i=r.slice();i.splice(t+1,0,x$),V(i),U(n),ee(`hide`)}else R!==r&&(z(r),V(r))},[o,r]),$.useEffect(()=>{m||q()},[m]);let ne=_?B:r,re={expandedKeys:o,selectedKeys:s,loadedKeys:l,loadingKeys:u,checkedKeys:c,halfCheckedKeys:d,dragOverNodeKey:h,dropPosition:g,keyEntities:f};return $.createElement($.Fragment,null,$.createElement(`div`,{className:`${n}-treenode`,"aria-hidden":!0,style:{position:`absolute`,pointerEvents:`none`,visibility:`hidden`,height:0,overflow:`hidden`,border:0,padding:0}},$.createElement(`div`,{className:`${n}-indent`},$.createElement(`div`,{ref:F,className:`${n}-indent-unit`}))),$.createElement(U_,_$({},M,{data:ne,itemKey:C$,height:v,fullHeight:!1,virtual:b,itemHeight:y,scrollWidth:x,prefixCls:`${n}-list`,ref:P,role:`tree`,tabIndex:S!==!1&&!p?w:void 0,"aria-activedescendant":C?G(N,C.key):void 0,onKeyDown:T,onFocus:E,onBlur:D,onMouseDown:O,onVisibleChange:e=>{e.every(e=>C$(e)!==v$)&&q()}}),e=>{let{pos:t,data:{...n},title:r,key:i,isStart:a,isEnd:o}=e,s=TL(i,t);delete n.key,delete n.children;let c=ML(s,re);return $.createElement(m$,_$({},n,c,{title:r,active:!!C&&i===C.key,pos:t,data:e.data,isStart:a,isEnd:o,motion:_,motionNodes:i===v$?H:null,motionType:W,onMotionStart:A,onMotionEnd:q,treeNodeRequiredProps:re,treeId:N,onMouseMove:()=>{k(null)}}))}))});function T$(){return T$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T$.apply(this,arguments)}var E$=10,D$=class extends $.Component{constructor(...e){super(...e),Z(this,`destroyed`,!1),Z(this,`delayedDragEnterLogic`,void 0),Z(this,`loadingRetryTimes`,{}),Z(this,`state`,{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],activeKey:null,listChanging:!1,prevProps:null,fieldNames:EL()}),Z(this,`dragStartMousePosition`,null),Z(this,`dragNodeProps`,null),Z(this,`currentMouseOverDroppableNodeKey`,null),Z(this,`focusedByMouse`,!1),Z(this,`listRef`,$.createRef()),Z(this,`onNodeDragStart`,(e,t)=>{let{expandedKeys:n,keyEntities:r}=this.state,{onDragStart:i}=this.props,{eventKey:a}=t;this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY};let o=VQ(n,a);this.setState({draggingNodeKey:a,dragChildrenKeys:WQ(a,r),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(o),window.addEventListener(`dragend`,this.onWindowDragEnd),i?.({event:e,node:NL(t)})}),Z(this,`onNodeDragEnter`,(e,t)=>{let{expandedKeys:n,keyEntities:r,dragChildrenKeys:i,flattenNodes:a,indent:o}=this.state,{onDragEnter:s,onExpand:c,allowDrop:l,direction:u}=this.props,{pos:d,eventKey:f}=t;if(this.currentMouseOverDroppableNodeKey!==f&&(this.currentMouseOverDroppableNodeKey=f),!this.dragNodeProps){this.resetDragState();return}let{dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v,dragOverNodeKey:y}=qQ(e,this.dragNodeProps,t,o,this.dragStartMousePosition,l,a,r,n,u);if(i.includes(h)||!v){this.resetDragState();return}if(this.delayedDragEnterLogic||(this.delayedDragEnterLogic={}),Object.keys(this.delayedDragEnterLogic).forEach(e=>{clearTimeout(this.delayedDragEnterLogic[e])}),this.dragNodeProps.eventKey!==t.eventKey&&(e.persist(),this.delayedDragEnterLogic[d]=window.setTimeout(()=>{if(this.state.draggingNodeKey===null)return;let i=[...n],a=SL(r,t.eventKey);a&&(a.children||[]).length&&(i=HQ(n,t.eventKey)),this.props.hasOwnProperty(`expandedKeys`)||this.setExpandedKeys(i),c?.(i,{node:NL(t),expanded:!0,nativeEvent:e.nativeEvent})},800)),this.dragNodeProps.eventKey===h&&m===0){this.resetDragState();return}this.setState({dragOverNodeKey:y,dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v}),s?.({event:e,node:NL(t),expandedKeys:n})}),Z(this,`onNodeDragOver`,(e,t)=>{let{dragChildrenKeys:n,flattenNodes:r,keyEntities:i,expandedKeys:a,indent:o}=this.state,{onDragOver:s,allowDrop:c,direction:l}=this.props;if(!this.dragNodeProps)return;let{dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}=qQ(e,this.dragNodeProps,t,o,this.dragStartMousePosition,c,r,i,a,l);n.includes(f)||!h||(this.dragNodeProps.eventKey===f&&d===0?this.state.dropPosition===null&&this.state.dropLevelOffset===null&&this.state.dropTargetKey===null&&this.state.dropContainerKey===null&&this.state.dropTargetPos===null&&this.state.dropAllowed===!1&&this.state.dragOverNodeKey===null||this.resetDragState():u===this.state.dropPosition&&d===this.state.dropLevelOffset&&f===this.state.dropTargetKey&&p===this.state.dropContainerKey&&m===this.state.dropTargetPos&&h===this.state.dropAllowed&&g===this.state.dragOverNodeKey||this.setState({dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}),s?.({event:e,node:NL(t)}))}),Z(this,`onNodeDragLeave`,(e,t)=>{this.currentMouseOverDroppableNodeKey===t.eventKey&&!e.currentTarget.contains(e.relatedTarget)&&(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);let{onDragLeave:n}=this.props;n?.({event:e,node:NL(t)})}),Z(this,`onWindowDragEnd`,e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener(`dragend`,this.onWindowDragEnd)}),Z(this,`onNodeDragEnd`,(e,t)=>{let{onDragEnd:n}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),n?.({event:e,node:NL(t)}),this.dragNodeProps=null,window.removeEventListener(`dragend`,this.onWindowDragEnd)}),Z(this,`onNodeDrop`,(e,t,n=!1)=>{let{dragChildrenKeys:r,dropPosition:i,dropTargetKey:a,dropTargetPos:o,dropAllowed:s}=this.state;if(!s)return;let{onDrop:c}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),a===null)return;let l={...ML(a,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===a,data:SL(this.state.keyEntities,a).node};$e(!r.includes(a),`Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.`);let u=UQ(o),d={event:e,node:NL(l),dragNode:this.dragNodeProps?NL(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(r),dropToGap:i!==0,dropPosition:i+Number(u[u.length-1])};n||c?.(d),this.dragNodeProps=null}),Z(this,`cleanDragState`,()=>{let{draggingNodeKey:e}=this.state;e!==null&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null}),Z(this,`triggerExpandActionExpand`,(e,t)=>{let{expandedKeys:n,flattenNodes:r}=this.state,{expanded:i,key:a,isLeaf:o}=t;if(o||e.shiftKey||e.metaKey||e.ctrlKey)return;let s=r.filter(e=>e.key===a)[0],c=NL({...ML(a,this.getTreeNodeRequiredProps()),data:s.data});this.setExpandedKeys(i?VQ(n,a):HQ(n,a)),this.onNodeExpand(e,c)}),Z(this,`onNodeClick`,(e,t)=>{let{onClick:n,expandAction:r}=this.props;r===`click`&&this.triggerExpandActionExpand(e,t),n?.(e,t)}),Z(this,`onNodeDoubleClick`,(e,t)=>{let{onDoubleClick:n,expandAction:r}=this.props;r===`doubleClick`&&this.triggerExpandActionExpand(e,t),n?.(e,t)}),Z(this,`onNodeSelect`,(e,t)=>{let{selectedKeys:n}=this.state,{keyEntities:r,fieldNames:i}=this.state,{onSelect:a,multiple:o}=this.props,{selected:s}=t,c=t[i.key],l=!s;n=l?o?HQ(n,c):[c]:VQ(n,c);let u=n.map(e=>{let t=SL(r,e);return t?t.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:n}),a?.(n,{event:`select`,selected:l,node:t,selectedNodes:u,nativeEvent:e.nativeEvent})}),Z(this,`onNodeCheck`,(e,t,n)=>{let{keyEntities:r,checkedKeys:i,halfCheckedKeys:a}=this.state,{checkStrictly:o,onCheck:s}=this.props,{key:c}=t,l,u={event:`check`,node:t,checked:n,nativeEvent:e.nativeEvent};if(o){let e=n?HQ(i,c):VQ(i,c);l={checked:e,halfChecked:VQ(a,c)},u.checkedNodes=e.map(e=>SL(r,e)).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=VL([...i,c],!0,r);if(!n){let n=new Set(e);n.delete(c),{checkedKeys:e,halfCheckedKeys:t}=VL(Array.from(n),{checked:!1,halfCheckedKeys:t},r)}l=e,u.checkedNodes=[],u.checkedNodesPositions=[],u.halfCheckedKeys=t,e.forEach(e=>{let t=SL(r,e);if(!t)return;let{node:n,pos:i}=t;u.checkedNodes.push(n),u.checkedNodesPositions.push({node:n,pos:i})}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}s?.(l,u)}),Z(this,`onNodeLoad`,e=>{let{key:t}=e,{keyEntities:n}=this.state;if(SL(n,t)?.children?.length)return;let r=new Promise((n,r)=>{this.setState(({loadedKeys:i=[],loadingKeys:a=[]})=>{let{loadData:o,onLoad:s}=this.props;return!o||i.includes(t)||a.includes(t)?null:(o(e).then(()=>{let{loadedKeys:r}=this.state,i=HQ(r,t);s?.(i,{event:`load`,node:e}),this.setUncontrolledState({loadedKeys:i}),this.setState(e=>({loadingKeys:VQ(e.loadingKeys,t)})),n()}).catch(e=>{if(this.setState(e=>({loadingKeys:VQ(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=E$){let{loadedKeys:e}=this.state;$e(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:HQ(e,t)}),n()}r(e)}),{loadingKeys:HQ(a,t)})})});return r.catch(()=>{}),r}),Z(this,`onNodeMouseEnter`,(e,t)=>{let{onMouseEnter:n}=this.props;n?.({event:e,node:t})}),Z(this,`onNodeMouseLeave`,(e,t)=>{let{onMouseLeave:n}=this.props;n?.({event:e,node:t})}),Z(this,`onNodeContextMenu`,(e,t)=>{let{onRightClick:n}=this.props;n&&(e.preventDefault(),n({event:e,node:t}))}),Z(this,`onMouseDown`,e=>{this.focusedByMouse=!0;let{onMouseDown:t}=this.props;t?.(e)}),Z(this,`onGlobalMouseUp`,()=>{this.focusedByMouse=!1}),Z(this,`onFocus`,(...e)=>{let{onFocus:t,disabled:n}=this.props,{activeKey:r,selectedKeys:i,flattenNodes:a}=this.state;if(!this.focusedByMouse&&!n&&r===null){let e=i.find(e=>a.some(t=>t.key===e));e===void 0?this.onActiveChange(a?.[0]?.key||null):this.onActiveChange(e)}t?.(...e)}),Z(this,`onBlur`,(...e)=>{let{onBlur:t}=this.props;this.onActiveChange(null),t?.(...e)}),Z(this,`getTreeNodeRequiredProps`,()=>{let{expandedKeys:e,selectedKeys:t,loadedKeys:n,loadingKeys:r,checkedKeys:i,halfCheckedKeys:a,dragOverNodeKey:o,dropPosition:s,keyEntities:c}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:n||[],loadingKeys:r||[],checkedKeys:i||[],halfCheckedKeys:a||[],dragOverNodeKey:o,dropPosition:s,keyEntities:c}}),Z(this,`setExpandedKeys`,e=>{let{treeData:t,fieldNames:n}=this.state,r=OL(t,e,n);this.setUncontrolledState({expandedKeys:e,flattenNodes:r},!0)}),Z(this,`onNodeExpand`,(e,t)=>{let{expandedKeys:n}=this.state,{listChanging:r,fieldNames:i}=this.state,{onExpand:a,loadData:o}=this.props,{expanded:s}=t,c=t[i.key];if(r)return;let l=n.includes(c),u=!s;if($e(s&&l||!s&&!l,`Expand state not sync with index check`),n=u?HQ(n,c):VQ(n,c),this.setExpandedKeys(n),a?.(n,{node:t,expanded:u,nativeEvent:e.nativeEvent}),u&&o){let e=this.onNodeLoad(t);e&&e.then(()=>{let e=OL(this.state.treeData,n,i);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{let{expandedKeys:e}=this.state,t=VQ(e,c);this.setExpandedKeys(t)})}}),Z(this,`onListChangeStart`,()=>{this.setUncontrolledState({listChanging:!0})}),Z(this,`onListChangeEnd`,()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})}),Z(this,`onActiveChange`,e=>{let{activeKey:t}=this.state,{onActiveChange:n,itemScrollOffset:r=0}=this.props;t!==e&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:r}),n?.(e))}),Z(this,`getActiveItem`,()=>{let{activeKey:e,flattenNodes:t}=this.state;return e===null?null:t.find(({key:t})=>t===e)||null}),Z(this,`offsetActiveKey`,e=>{let{flattenNodes:t,activeKey:n}=this.state,r=t.findIndex(({key:e})=>e===n);r===-1&&e<0&&(r=t.length),r=(r+e+t.length)%t.length;let i=t[r];if(i){let{key:e}=i;this.onActiveChange(e)}else this.onActiveChange(null)}),Z(this,`onKeyDown`,e=>{let{activeKey:t,expandedKeys:n,checkedKeys:r,flattenNodes:i,keyEntities:a}=this.state,{onKeyDown:o,checkable:s,selectable:c,disabled:l,loadData:u}=this.props;if(l)return;switch(e.key){case`ArrowUp`:this.offsetActiveKey(-1),e.preventDefault();break;case`ArrowDown`:this.offsetActiveKey(1),e.preventDefault();break;case`Home`:this.onActiveChange(i?.[0]?.key),e.preventDefault();break;case`End`:this.onActiveChange(i?.[i.length-1]?.key),e.preventDefault();break}let d=this.getActiveItem();if(d&&d.data){let i=NL({...ML(t,this.getTreeNodeRequiredProps()),data:d.data,active:!0}),o=!!SL(a,t)?.children?.length,l=!jL(d.data.isLeaf,u,o,i.loaded),f=s&&!i.disabled&&i.checkable!==!1&&!i.disableCheckbox,p=!s&&c&&!i.disabled&&i.selectable!==!1;switch(e.key){case`ArrowLeft`:l&&n.includes(t)?this.onNodeExpand({},i):d.parent&&this.onActiveChange(d.parent.key),e.preventDefault();break;case`ArrowRight`:l&&!n.includes(t)?this.onNodeExpand({},i):d.children&&d.children.length&&this.onActiveChange(d.children[0].key),e.preventDefault();break;case`Enter`:l?(e.preventDefault(),this.onNodeExpand({},i)):f?r.includes(t)||(e.preventDefault(),this.onNodeCheck({},i,!0)):p&&!i.selected&&(e.preventDefault(),this.onNodeSelect({},i));break;case` `:f?(e.preventDefault(),this.onNodeCheck({},i,!r.includes(t))):p&&(e.preventDefault(),this.onNodeSelect({},i));break}}o?.(e)}),Z(this,`setUncontrolledState`,(e,t=!1,n=null)=>{if(!this.destroyed){let r=!1,i=!0,a={};Object.keys(e).forEach(t=>{if(this.props.hasOwnProperty(t)){i=!1;return}r=!0,a[t]=e[t]}),r&&(!t||i)&&this.setState({...a,...n})}}),Z(this,`scrollTo`,e=>{this.listRef.current.scrollTo(e)})}componentDidMount(){this.destroyed=!1,this.onUpdated(),window.addEventListener(`mouseup`,this.onGlobalMouseUp)}componentDidUpdate(){this.onUpdated()}onUpdated(){let{activeKey:e,itemScrollOffset:t=0}=this.props;e!==void 0&&e!==this.state.activeKey&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:t}))}componentWillUnmount(){window.removeEventListener(`dragend`,this.onWindowDragEnd),window.removeEventListener(`mouseup`,this.onGlobalMouseUp),this.destroyed=!0}static getDerivedStateFromProps(e,t){let{prevProps:n}=t,r={prevProps:e};function i(t){return!n&&e.hasOwnProperty(t)||n&&n[t]!==e[t]}let a,{fieldNames:o}=t;if(i(`fieldNames`)&&(o=EL(e.fieldNames),r.fieldNames=o),i(`treeData`)?{treeData:a}=e:i(`children`)&&($e(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=DL(e.children)),a){r.treeData=a;let e=AL(a,{fieldNames:o});r.keyEntities={[v$]:b$,...e.keyEntities}}let s=r.keyEntities||t.keyEntities;if(i(`expandedKeys`)||n&&i(`autoExpandParent`))r.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?XQ(e.expandedKeys,s):e.expandedKeys;else if(!n&&e.defaultExpandAll){let e={...s};delete e[v$];let t=[];Object.keys(e).forEach(n=>{let r=e[n];r.children&&r.children.length&&t.push(r.key)}),r.expandedKeys=t}else !n&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?XQ(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,(a||r.expandedKeys)&&(r.flattenNodes=OL(a||t.treeData,r.expandedKeys||t.expandedKeys,o)),e.selectable&&(i(`selectedKeys`)?r.selectedKeys=JQ(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r.selectedKeys=JQ(e.defaultSelectedKeys,e))),e.checkable){let o;if(i(`checkedKeys`)?o=YQ(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?o=YQ(e.defaultCheckedKeys)||{}:a&&(o=YQ(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),o){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=o;if(!e.checkStrictly){let e=VL(t,!0,s);({checkedKeys:t,halfCheckedKeys:n}=e)}r.checkedKeys=t,r.halfCheckedKeys=n}}return i(`loadedKeys`)&&(r.loadedKeys=e.loadedKeys),r}resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}render(){let{flattenNodes:e,keyEntities:t,draggingNodeKey:n,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c}=this.state,{prefixCls:l,className:u,style:d,styles:f,classNames:p,showLine:m,focusable:h,tabIndex:g=0,selectable:_,showIcon:v,icon:y,switcherIcon:b,draggable:x,checkable:S,checkStrictly:C,disabled:w,motion:T,loadData:E,filterTreeNode:D,height:O,itemHeight:k,scrollWidth:A,virtual:j,titleRender:M,dropIndicatorRender:N,onContextMenu:P,onScroll:F,direction:I,rootClassName:L,rootStyle:R}=this.props,z=V(this.props,{aria:!0,data:!0}),B;x&&(B=typeof x==`object`?x:typeof x==`function`?{nodeDraggable:x}:{});let H={styles:f,classNames:p,prefixCls:l,selectable:_,showIcon:v,icon:y,switcherIcon:b,draggable:B,draggingNodeKey:n,checkable:S,checkStrictly:C,disabled:w,keyEntities:t,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c,direction:I,dropIndicatorRender:N,loadData:E,filterTreeNode:D,titleRender:M,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return $.createElement(NQ.Provider,{value:H},$.createElement(`div`,{className:X(l,u,L,{[`${l}-show-line`]:m}),style:R},$.createElement(w$,T$({ref:this.listRef,prefixCls:l,style:d,data:e,disabled:w,selectable:_,checkable:!!S,motion:T,dragging:n!==null,height:O,itemHeight:k,virtual:j,focusable:h,tabIndex:g,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:P,onScroll:F,scrollWidth:A},this.getTreeNodeRequiredProps(),z))))}};Z(D$,`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:d$,allowDrop:()=>!0,expandAction:!1}),Z(D$,`TreeNode`,BQ);var O$=D$,k$=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:i,borderRadius:a,controlItemBgHover:o})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:`static`,[`&:has(${e}-drop-indicator)`]:{position:`relative`},[`> *:not(${e}-drop-indicator)`]:{position:`relative`},"&:hover":{background:`transparent`},"&:before":{position:`absolute`,inset:0,transition:`background-color ${i}`,content:`""`,borderRadius:a},"&:hover:before":{background:o}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:`transparent`,"&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),A$=new at(`ant-tree-node-fx-do-not-use`,{"0%":{opacity:0},"100%":{opacity:1}}),j$=(e,t)=>({[`.${e}-switcher-icon`]:{display:`inline-block`,fontSize:10,verticalAlign:`baseline`,svg:{transition:`transform ${t.motionDurationSlow}`}}}),M$=(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:`${Q(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:`50%`,content:`""`}}}),N$=(e,t)=>{let{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,switcherSize:s,motionDurationMid:c,nodeSelectedBg:l,nodeHoverBg:u,colorTextQuaternary:d,controlItemBgActiveDisabled:f}=t;return{[n]:{...ur(t),"--rc-virtual-list-scrollbar-bg":t.colorSplit,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)`},[`${n}-list`]:{"&:focus-visible":{outline:`none`,[`${r}-active ${n}-node-content-wrapper`]:{...pr(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:A$,animationDuration:t.motionDurationSlow,animationPlayState:`running`,animationFillMode:`forwards`,content:`""`,pointerEvents:`none`,borderRadius:t.borderRadius}}},[r]:{display:`flex`,alignItems:`flex-start`,marginBottom:i,lineHeight:Q(a),position:`relative`,"&:before":{content:`""`,position:`absolute`,zIndex:1,insetInlineStart:0,width:`100%`,top:`100%`,height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:`not-allowed`,"&:hover":{background:`transparent`}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:f},[`${n}-checkbox-disabled`]:{pointerEvents:`unset`},[`&: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:t.fontWeightStrong},"&-draggable":{cursor:`grab`,[`${n}-draggable-icon`]:{flexShrink:0,width:s,textAlign:`center`,visibility:`visible`,color:d},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:`hidden`}}},[`${n}-indent`]:{alignSelf:`stretch`,whiteSpace:`nowrap`,userSelect:`none`,"&-unit":{display:`inline-block`,width:o}},[`${n}-draggable-icon`]:{visibility:`hidden`},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(s).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-checkbox`]:{flexShrink:0,alignSelf:`flex-start`,marginBlockStart:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:{...j$(e,t),position:`relative`,flex:`none`,alignSelf:`stretch`,width:s,textAlign:`center`,cursor:`pointer`,userSelect:`none`,transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:`unset`},"&:before":{pointerEvents:`none`,content:`""`,width:s,height:a,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(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:`""`},"&:after":{position:`absolute`,width:t.calc(t.calc(s).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:`""`}}},[`${n}-node-content-wrapper`]:{position:`relative`,minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:`transparent`,borderRadius:t.borderRadius,cursor:`pointer`,transition:[`all ${c}`,`border 0s`,`line-height 0s`,`box-shadow 0s`].join(`, `),...M$(e,t),"&:hover":{backgroundColor:u},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:`inline-block`,width:s,height:a,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(s).div(2).equal(),bottom:t.calc(i).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:`${Q(t.calc(a).div(2).equal())} !important`}}}},P$=(e,t,n=!0)=>{let r=`.${e}`,i=wn(t,{treeCls:r,treeNodeCls:`${r}-treenode`,treeNodePadding:t.calc(t.paddingXS).div(2).equal()});return[N$(e,i),n&&k$(i)].filter(Boolean)},F$=e=>{let{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,switcherSize:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},I$=yr(`Tree`,(e,{prefixCls:t})=>[{[e.componentCls]:fR(`${t}-checkbox`,e)},P$(t,e),Zl(e)],e=>{let{colorTextLightSolid:t,colorPrimary:n}=e;return{...F$(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}}),L$=e=>{let{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a=`ltr`}=e,o=a===`ltr`?`left`:`right`,s=a===`ltr`?`right`:`left`,c={[o]:-n*i+4,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[o]=i+4;break}return $.createElement(`div`,{style:c,className:`${r}-drop-indicator`})},R$=e=>{let{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:c}=r;if(c)return $.isValidElement(a)?a:$.createElement(Ne,{className:`${t}-switcher-loading-icon`});let l;if(Oi(i)&&(l=i.showLeafIcon),o){if(!i)return null;if(typeof l!=`boolean`&&l){let e=ki(l)?l(r):l,n=`${t}-switcher-line-custom-icon`;return $.isValidElement(e)?Io(e,{className:X(e.props?.className,n)}):e}return l?$.createElement(ae,{className:`${t}-switcher-line-icon`}):$.createElement(`span`,{className:`${t}-switcher-leaf-line`})}let u=`${t}-switcher-icon`,d=ki(n)?n(r):n;return $.isValidElement(d)?Io(d,{className:X(d.props?.className,i?`${t}-switcher-line-icon`:u)}):d===void 0?i?s?$.createElement(me,{className:`${t}-switcher-line-icon`}):$.createElement(fe,{className:`${t}-switcher-line-icon`}):$.createElement(je,{className:u}):d},z$=$.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,className:i,style:a,classNames:o,styles:s}=Wt(`tree`),{virtual:c}=$.useContext(Vt),{prefixCls:l,className:u,showIcon:d=!1,showLine:f,switcherIcon:p,switcherLoadingIcon:m,blockNode:h=!1,children:g,checkable:_=!1,selectable:v=!0,draggable:y,disabled:b,motion:x,style:S,rootClassName:C,classNames:w,styles:T,icon:E}=e,D=$.useContext(Vo),O=b??D,k=n(`tree`,l),A=n(),j=x??{...yl(A),motionAppear:!1},M={...e,showIcon:d,blockNode:h,checkable:_,selectable:v,disabled:O,motion:j},[N,P]=zi([o,w],[s,T],{props:M}),F={...M,showLine:!!f,icon:E,dropIndicatorRender:L$},[I,L]=I$(k),[,R]=cr(),z=R.paddingXS/2+(R.Tree?.titleHeight||R.controlHeightSM),B=$.useMemo(()=>{if(!y)return!1;let e={};switch(typeof y){case`function`:e.nodeDraggable=y;break;case`object`:e={...y};break;default:break}return e.icon!==!1&&(e.icon=e.icon||$.createElement(Ee,null)),e},[y]),V=e=>$.createElement(R$,{prefixCls:k,switcherIcon:p,switcherLoadingIcon:m,treeNodeProps:e,showLine:f});return $.createElement(O$,{itemHeight:z,ref:t,virtual:c,...F,prefixCls:k,className:X({[`${k}-icon-hide`]:!d,[`${k}-block-node`]:h,[`${k}-unselectable`]:!v,[`${k}-rtl`]:r===`rtl`,[`${k}-disabled`]:O},i,u,I,L),style:{...a,...S},rootClassName:X(N.root,C),rootStyle:P.root,classNames:N,styles:P,direction:r,checkable:_&&$.createElement(`span`,{className:`${k}-checkbox-inner`}),selectable:v,switcherIcon:V,draggable:B},g)}),B$=0,V$=1,H$=2;function U$(e,t,n){let{key:r,children:i}=n;function a(e){let a=e[r],o=e[i];t(a,e)!==!1&&U$(o||[],t,n)}e.forEach(a)}function W$({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:i}){let a=[],o=B$;if(n&&n===r)return[n];if(!n||!r)return[];function s(e){return e===n||e===r}return U$(e,e=>{if(o===H$)return!1;if(s(e)){if(a.push(e),o===B$)o=V$;else if(o===V$)return o=H$,!1}else o===V$&&a.push(e);return t.includes(e)},EL(i)),a}function G$(e,t,n){let r=Lt(t),i=[];return U$(e,(e,t)=>{let n=r.indexOf(e);return n!==-1&&(i.push(t),r.splice(n,1)),!!r.length},EL(n)),i}function K$(e){let{isLeaf:t,expanded:n}=e;return t?$.createElement(ae,null):n?$.createElement(he,null):$.createElement(_e,null)}function q$({treeData:e,children:t}){return e||DL(t)}var J$=$.forwardRef((e,t)=>{let{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i,...a}=e,o=$.useRef(null),s=$.useRef(null),c=()=>{let{keyEntities:e}=AL(q$(a),{fieldNames:a.fieldNames}),t,o=a.expandedKeys||i||[];return t=n?Object.keys(e):r?XQ(o,e):o,t},[l,u]=$.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,f]=$.useState(()=>c());$.useEffect(()=>{`selectedKeys`in a&&u(a.selectedKeys)},[a.selectedKeys]),$.useEffect(()=>{`expandedKeys`in a&&f(a.expandedKeys)},[a.expandedKeys]);let p=(e,t)=>(`expandedKeys`in a||f(e),a.onExpand?.(e,t)),m=(e,t)=>{let{multiple:n,fieldNames:r}=a,{node:i,nativeEvent:c}=t,{key:l=``}=i,f=q$(a),p={...t,selected:!0},m=c?.ctrlKey||c?.metaKey,h=c?.shiftKey,g;n&&m?(g=e,o.current=l,s.current=g,p.selectedNodes=G$(f,g,r)):n&&h?(g=Array.from(new Set([].concat(Lt(s.current||[]),Lt(W$({treeData:f,expandedKeys:d,startKey:l,endKey:o.current,fieldNames:r}))))),p.selectedNodes=G$(f,g,r)):(g=[l],o.current=l,s.current=g,p.selectedNodes=G$(f,g,r)),a.onSelect?.(g,p),`selectedKeys`in a||u(g)},{getPrefixCls:h,direction:g}=$.useContext(Vt),{prefixCls:_,className:v,showIcon:y=!0,expandAction:b=`click`,...x}=a,S=h(`tree`,_),C=X(`${S}-directory`,{[`${S}-directory-rtl`]:g===`rtl`},v);return $.createElement(z$,{icon:K$,ref:t,blockNode:!0,...x,showIcon:y,expandAction:b,prefixCls:S,className:C,expandedKeys:d,selectedKeys:l,onSelect:m,onExpand:p})}),Y$=z$;Y$.DirectoryTree=J$,Y$.TreeNode=BQ;var X$=e=>{let{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?$.createElement(`div`,{className:`${r}-filter-dropdown-search`},$.createElement(vB,{prefix:$.createElement(W,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},Z$=e=>{let{keyCode:t}=e;t===f.ENTER&&e.stopPropagation()},Q$=$.forwardRef((e,t)=>$.createElement(`div`,{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:Z$,ref:t},e.children));function $$(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(Lt(t),Lt($$(n))))}),t}function e1(e){return e.some(({children:e})=>e)}var t1=(e,t)=>typeof t==`string`||Ei(t)?t.toString().toLowerCase().includes(e):!1,n1=e=>{let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s}=e;return t.map((e,t)=>{let c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:n1({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s})};let l=i?kR:SN,u={key:e.value===void 0?t:c,label:$.createElement($.Fragment,null,$.createElement(l,{checked:r.includes(c)}),$.createElement(`span`,null,e.text))};return o?ki(s)?s(o,e)?u:null:t1(o,e.text)?u:null:u})};function r1(e){return e||[]}var i1=e=>{let{tablePrefixCls:t,prefixCls:n,column:r,dropdownPrefixCls:i,columnKey:a,filterOnClose:o,filterMultiple:s,filterMode:c=`menu`,filterSearch:l=!1,filterState:u,triggerFilter:d,locale:f,children:p,getPopupContainer:m,rootClassName:h}=e,{filterResetToDefaultFilteredValue:g,defaultFilteredValue:_,filterDropdownProps:v={},filterDropdownOpen:y,onFilterDropdownOpenChange:b}=r,[x,S]=$.useState(!1),C=$.useContext(xy),w=!!(u&&(u.filteredKeys?.length||u.forceFiltered)),T=e=>{S(e),v.onOpenChange?.(e),b?.(e)},E=v.open??y??x,D=u?.filteredKeys,[O,k]=dc(r1(D)),A=({selectedKeys:e})=>{k(e)},j=(e,{node:t,checked:n})=>{A(s?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};$.useEffect(()=>{x&&A({selectedKeys:r1(D)})},[D]);let[M,N]=$.useState([]),P=e=>{N(e)},[F,I]=$.useState(``),L=$.useMemo(()=>F.trim().toLowerCase(),[F]),R=e=>{let{value:t}=e.target;I(t)};$.useEffect(()=>{x||I(``)},[x]);let z=e=>{let t=e?.length?e:null;if(t===null&&(!u||!u.filteredKeys)||tt(t,u?.filteredKeys,!0))return null;d({column:r,key:a,filteredKeys:t})},B=()=>{T(!1),z(O())},V=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&z([]),t&&T(!1),I(``),k(g?(_||[]).map(String):[])},H=({closeDropdown:e}={closeDropdown:!0})=>{e&&T(!1),z(O())},U=(e,t)=>{t.source===`trigger`&&(e&&D!==void 0&&k(r1(D)),T(e),!e&&!r.filterDropdown&&o&&B())},W=X({[`${i}-menu-without-submenu`]:!e1(r.filters||[])}),G=e=>{e.target.checked?k($$(r?.filters).map(String)):k([])},ee=({filters:e})=>(e||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:e.value===void 0?String(t):n};return e.children&&(r.children=ee({filters:e.children})),r}),K=e=>({...e,text:e.title,value:e.key,children:e.children?.map(K)||[]}),q,{direction:te,renderEmpty:ne}=$.useContext(Vt);if(ki(r.filterDropdown))q=r.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:e=>A({selectedKeys:e}),selectedKeys:O(),confirm:H,clearFilters:V,filters:r.filters,visible:E,close:()=>{T(!1)}});else if(r.filterDropdown)q=r.filterDropdown;else{let e=O()||[];q=$.createElement($.Fragment,null,(()=>{let a=ne?.(`Table.filter`)??$.createElement(gv,{image:gv.PRESENTED_IMAGE_SIMPLE,description:f.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:`16px 0`}});if((r.filters||[]).length===0)return a;if(c===`tree`)return $.createElement($.Fragment,null,$.createElement(X$,{filterSearch:l,value:F,onChange:R,tablePrefixCls:t,locale:f}),$.createElement(`div`,{className:`${t}-filter-dropdown-tree`},s?$.createElement(kR,{checked:e.length===$$(r.filters).length,indeterminate:e.length>0&&e.length<$$(r.filters).length,className:`${t}-filter-dropdown-checkall`,onChange:G},f?.filterCheckall??f?.filterCheckAll):null,$.createElement(Y$,{checkable:!0,selectable:!1,blockNode:!0,multiple:s,checkStrictly:!s,className:`${i}-menu`,onCheck:j,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:ee({filters:r.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:L?e=>ki(l)?l(F,K(e)):t1(L,e.title):void 0})));let o=n1({filters:r.filters||[],filterSearch:l,prefixCls:n,filteredKeys:O(),filterMultiple:s,searchValue:F,normalizedSearchValue:L}),u=o.every(e=>e===null);return $.createElement($.Fragment,null,$.createElement(X$,{filterSearch:l,value:F,onChange:R,tablePrefixCls:t,locale:f}),u?a:$.createElement(MS,{selectable:!0,multiple:s,prefixCls:`${i}-menu`,className:W,onSelect:A,onDeselect:A,selectedKeys:e,getPopupContainer:m,openKeys:M,onOpenChange:P,items:o}))})(),$.createElement(`div`,{className:`${n}-dropdown-btns`},$.createElement(of,{type:`link`,size:`small`,disabled:g?tt((_||[]).map(String),e,!0):e.length===0,onClick:()=>V()},f.filterReset),$.createElement(of,{type:`primary`,size:`small`,onClick:B},f.filterConfirm)))}r.filterDropdown&&(q=$.createElement(gS,{selectable:void 0},q)),q=$.createElement(Q$,{className:`${n}-dropdown`},q);let re=(()=>{let e;return e=ki(r.filterIcon)?r.filterIcon(w):r.filterIcon?r.filterIcon:$.createElement(Ve,null),$.createElement(`span`,{role:`button`,tabIndex:-1,className:X(`${n}-trigger`,{active:w}),onClick:e=>{e.stopPropagation()}},e)})();if(C)return $.createElement(`div`,{className:`${n}-column`},$.createElement(`span`,{className:`${t}-column-title`},p),re);let J=He({trigger:[`click`],placement:te===`rtl`?`bottomLeft`:`bottomRight`,children:re,getPopupContainer:m},{...v,rootClassName:X(h,v.rootClassName),open:E,onOpenChange:U,popupRender:()=>ki(v?.dropdownRender)?v.dropdownRender(q):q});return $.createElement(`div`,{className:`${n}-column`},$.createElement(`span`,{className:`${t}-column-title`},p),$.createElement(HH,{...J}))},a1=(e,t,n)=>{let r=[];return(e||[]).forEach((e,i)=>{let a=c$(i,n),o=e.filterDropdown!==void 0;if(e.filters||o||`onFilter`in e)if(`filteredValue`in e){let t=e.filteredValue;o||(t=t?.map(String)??t),r.push({column:e,key:s$(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:s$(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});`children`in e&&(r=[].concat(Lt(r),Lt(a1(e.children,t,a))))}),r};function o1(e,t,n,r,i,a,o,s,c){return n.map((n,l)=>{let u=c$(l,s),{filterOnClose:d=!0,filterMultiple:f=!0,filterMode:p,filterSearch:m}=n,h=n;if(h.filters||h.filterDropdown){let s=s$(h,u),l=r.find(({key:e})=>s===e);h={...h,title:r=>$.createElement(i1,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:s,filterState:l,filterOnClose:d,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:a,locale:i,getPopupContainer:o,rootClassName:c},l$(n.title,r))}}return`children`in h&&(h={...h,children:o1(e,t,h.children,r,i,a,o,u,c)}),h})}var s1=e=>{let t={};return e.forEach(({key:e,filteredKeys:n,column:r})=>{let i=e,{filters:a,filterDropdown:o}=r;o?t[i]=n||null:Array.isArray(n)?t[i]=$$(a).filter(e=>n.includes(String(e))):t[i]=null}),t},c1=(e,t,n)=>t.reduce((e,r)=>{let{column:{onFilter:i,filters:a},filteredKeys:o}=r;if(i&&o&&o.length){let r=$$(a),s=new Map;r.forEach(e=>{let t=String(e);s.has(t)||s.set(t,e)});let c=o.map(e=>{let t=String(e);return s.get(t)??e});return(e=>e.reduce((e,r)=>{let a={...r};return a[n]&&(a[n]=c1(a[n],t,n)),c.some(e=>i(e,a))&&e.push(a),e},[]))(e)}return e},e),l1=e=>e.flatMap(e=>`children`in e?[e].concat(Lt(l1(e.children||[]))):[e]),u1=e=>{let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:o,rootClassName:s}=e;gt(`Table`);let c=$.useMemo(()=>l1(r||[]),[r]),[l,u]=$.useState(()=>a1(c,!0)),d=$.useMemo(()=>{let e=a1(c,!1);if(e.length===0)return e;let t=!0;if(e.forEach(({filteredKeys:e})=>{e!==void 0&&(t=!1)}),t){let e=(c||[]).map((e,t)=>s$(e,c$(t)));return l.reduce((t,n)=>{let r=e.indexOf(n.key);if(r!==-1){let e=c[r];t.push({...n,column:{...n.column,...e},forceFiltered:e.filtered})}return t},[])}return e},[c,l]),f=$.useMemo(()=>s1(d),[d]),p=e=>{let t=d.filter(({key:t})=>t!==e.key);t.push(e),u(t),i(s1(t),t)};return[e=>o1(t,n,e,d,o,p,a,void 0,s),d,f]},d1=(e,t,n)=>{let r=$.useRef({});function i(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let i=new Map;function a(e){e.forEach((e,r)=>{let o=n(e,r);i.set(o,e),Oi(e)&&t in e&&a(e[t]||[])})}a(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap?.get(i)}return[i]};function f1(e,t){let n={current:e.current,pageSize:e.pageSize},r=Oi(t)?t:{};return Object.keys(r).forEach(t=>{let r=e[t];ki(r)||(n[t]=r)}),n}function p1(e,t,n){let{total:r=0,...i}=Oi(n)?n:{},[a,o]=(0,$.useState)(()=>({current:`defaultCurrent`in i?i.defaultCurrent:1,pageSize:`defaultPageSize`in i?i.defaultPageSize:10})),s=He(a,i,{total:r>0?r:e}),c=Math.ceil((r||e)/s.pageSize);s.current>c&&(s.current=c||1);let l=(e,t)=>{o({current:e??1,pageSize:t||s.pageSize})},u=(e,r)=>{n&&n.onChange?.(e,r),l(e,r),t(e,r||s?.pageSize)};return n===!1?[{},()=>{}]:[{...s,onChange:u},l]}var m1=`ascend`,h1=`descend`,g1=e=>Oi(e.sorter)&&Ei(e.sorter.multiple)?e.sorter.multiple:!1,_1=e=>ki(e)?e:Oi(e)&&e.compare?e.compare:!1,v1=(e,t)=>t?e[e.indexOf(t)+1]:e[0],y1=(e,t,n)=>{let r=[],i=(e,t)=>{r.push({column:e,key:s$(e,t),multiplePriority:g1(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,a)=>{let o=c$(a,n);e.children?(`sortOrder`in e&&i(e,o),r=[].concat(Lt(r),Lt(y1(e.children,t,o)))):e.sorter&&(`sortOrder`in e?i(e,o):t&&e.defaultSortOrder&&r.push({column:e,key:s$(e,o),multiplePriority:g1(e),sortOrder:e.defaultSortOrder}))}),r},b1=(e,t,n,r,i,a,o,s,c)=>(t||[]).map((t,l)=>{let u=c$(l,s),d=t;if(d.sorter){let s=d.sortDirections||i,l=d.showSorterTooltip===void 0?o:d.showSorterTooltip,p=s$(d,u),m=n.find(({key:e})=>e===p),h=m?m.sortOrder:null,g=v1(s,h),_;if(t.sortIcon)_=t.sortIcon({sortOrder:h});else{let t=s.includes(m1)&&$.createElement(we,{className:X(`${e}-column-sorter-up`,{active:h===m1})}),n=s.includes(h1)&&$.createElement(ze,{className:X(`${e}-column-sorter-down`,{active:h===h1})});_=$.createElement(`span`,{className:X(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(t&&n)})},$.createElement(`span`,{className:`${e}-column-sorter-inner`,"aria-hidden":`true`},t,n))}let{cancelSort:v,triggerAsc:y,triggerDesc:b}=a||{},x=v;g===h1?x=b:g===m1&&(x=y);let S=Oi(l)?{title:x,...l}:{title:x};d={...d,className:X(d.className,{[`${e}-column-sort`]:h}),title:n=>{let r=`${e}-column-sorters`,i=$.createElement(`span`,{className:`${e}-column-title`},l$(t.title,n)),a=$.createElement(`div`,{className:r},i,_);return l?typeof l!=`boolean`&&l?.target===`sorter-icon`?$.createElement(`div`,{className:X(r,`${r}-tooltip-target-sorter`)},i,$.createElement(Ny,{...S},_)):$.createElement(Ny,{...S},a):a},onHeaderCell:n=>{let i=t.onHeaderCell?.(n)||{},a=i.onClick,o=i.onKeyDown;i.onClick=e=>{r({column:t,key:p,sortOrder:g,multiplePriority:g1(t)}),a?.(e)},i.onKeyDown=e=>{e.keyCode===f.ENTER&&(r({column:t,key:p,sortOrder:g,multiplePriority:g1(t)}),o?.(e))};let s=u$(t.title,{}),l=s?.toString();return h&&(i[`aria-sort`]=h===`ascend`?`ascending`:`descending`),i[`aria-description`]=c?.sortable,i[`aria-label`]=l||``,i.className=X(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(s??``).toString()),i}}}return`children`in d&&(d={...d,children:b1(e,d.children,n,r,i,a,o,u,c)}),d}),x1=e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},S1=e=>{let t=e.reduce((e,t)=>(t.sortOrder&&e.push(x1(t)),e),[]);return t.length===0&&e.length?{...x1(e[e.length-1]),column:void 0,order:void 0,field:void 0,columnKey:void 0}:t.length<=1?t[0]||{}:t},C1=(e,t,n)=>{let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),i=e.slice(),a=r.filter(({column:{sorter:e},sortOrder:t})=>_1(e)&&t);return a.length?i.sort((e,t)=>{for(let n=0;n<a.length;n+=1){let{column:{sorter:r},sortOrder:i}=a[n],o=_1(r);if(o&&i){let n=o(e,t,i);if(n!==0)return i===m1?n:-n}}return 0}).map(e=>{let r=e[n];return r?{...e,[n]:C1(r,t,n)}:e}):i},w1=e=>{let{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:a,onSorterChange:o,globalLocale:s}=e,[c,l]=$.useState(()=>y1(n,!0)),u=(e,t)=>{let n=[];return e.forEach((e,r)=>{let i=c$(r,t);if(n.push(s$(e,i)),Array.isArray(e.children)){let t=u(e.children,i);n.push.apply(n,Lt(t))}}),n},d=$.useMemo(()=>{let e=!0,t=y1(n,!1);if(!t.length){let e=u(n);return c.filter(({key:t})=>e.includes(t))}let r=[];function i(t){e?r.push(t):r.push({...t,sortOrder:null})}let a=null;return t.forEach(t=>{a===null?(i(t),t.sortOrder&&(t.multiplePriority===!1?e=!1:a=!0)):(a&&t.multiplePriority!==!1||(e=!1),i(t))}),r},[n,c]),f=$.useMemo(()=>{let e=d.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:e,sortColumn:e[0]?.column,sortOrder:e[0]?.order}},[d]),p=e=>{let t;t=e.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?[e]:[].concat(Lt(d.filter(({key:t})=>t!==e.key)),[e]),l(t),o(S1(t),t)};return[e=>b1(t,e,d,p,r,i,a,void 0,s),d,f,()=>S1(d)]},T1=(e,t)=>e.map(e=>{let n={...e};return n.title=l$(e.title,t),`children`in n&&(n.children=T1(n.children,t)),n}),E1=e=>[$.useCallback(t=>T1(t,e),[e])],D1=gQ((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),O1=AQ((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),k1=e=>{let{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:a,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:c}=e,l=`${Q(n)} ${r} ${i}`,u=(e,r,i)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > th, > table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${Q(c(r).mul(-1).equal())}
244
+ ${Q(c(c(i).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:{[`> ${t}-title`]:{border:l,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:l,borderTop:l,[`> ${t}-content, > ${t}-header, > ${t}-body, > ${t}-summary`]:{"> table":{"> thead > tr > th, > thead > tr > td, > tbody > tr > th, > tbody > tr > td, > tfoot > tr > th, > tfoot > tr > td":{borderInlineEnd:l},"> thead":{"> tr:not(:last-child) > th":{borderBottom:l},"> tr > th::before":{backgroundColor:`transparent !important`}},"> thead > tr, > tbody > tr, > tfoot > tr":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:l}},"> tbody > tr > th, > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${Q(c(o).mul(-1).equal())} ${Q(c(c(s).add(n)).mul(-1).equal())}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:l,content:`""`}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
245
+ > tr${t}-expanded-row,
246
+ > tr${t}-placeholder
247
+ `]:{"> th, > td":{borderInlineEnd:0}}}}},...u(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...u(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${t}-footer`]:{border:l,borderTop:0}},[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Q(n)} 0 ${Q(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:l}}}},A1=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...lr,wordBreak:`keep-all`,[`
248
+ &${t}-cell-fix-start-shadow,
249
+ &${t}-cell-fix-end-shadow
250
+ `]:{overflow:`visible`,[`${t}-cell-content`]:{...lr,display:`block`}},[`${t}-column-title`]:{...lr,wordBreak:`keep-all`}}}}},j1=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:`center`,color:e.colorTextDisabled,"&:hover > th, &:hover > td":{background:e.colorBgContainer}}}}},M1=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:a,lineType:o,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:l,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:_,expandIconScale:v,calc:y}=e,b=`${Q(i)} ${o} ${s}`,x=y(m).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:l},[`${t}-row-expand-icon-cell`]:{textAlign:`center`,[`${t}-row-expand-icon`]:{display:`inline-flex`,float:`none`,verticalAlign:`sub`}},[`${t}-row-indent`]:{height:1,float:`left`},[`${t}-row-expand-icon`]:{...vr(e),position:`relative`,float:`left`,width:g,height:g,color:`inherit`,lineHeight:Q(g),background:c,border:b,borderRadius:u,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:`currentcolor`},"&::before, &::after":{position:`absolute`,background:`currentcolor`,transition:`transform ${r} ease-out`,content:`""`},"&::before":{top:_,insetInlineEnd:x,insetInlineStart:x,height:i},"&::after":{top:x,bottom:x,insetInlineStart:_,width:i,transform:`rotate(90deg)`},"&-collapsed::before":{transform:`rotate(-180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`},"&-spaced":{"&::before, &::after":{display:`none`,content:`none`},background:`transparent`,border:0,visibility:`hidden`}},[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:`flex`,table:{flex:`auto`,width:`100%`}}},[`${t}-expanded-row-fixed`]:{position:`relative`,margin:`${Q(y(d).mul(-1).equal())} ${Q(y(f).mul(-1).equal())}`,padding:`${Q(d)} ${Q(f)}`}}}},N1=e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:s,colorText:c,lineWidth:l,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorIcon:_,colorPrimary:v,tableHeaderFilterActiveBg:y,colorTextDisabled:b,tableFilterDropdownBg:x,tableFilterDropdownHeight:S,controlItemBgHover:C,controlItemBgActive:w,boxShadowSecondary:T,filterDropdownMenuBg:E,calc:D}=e,O=`${n}-dropdown`,k=`${t}-filter-dropdown`,A=`${n}-tree`,j=`${Q(l)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:`flex`,justifyContent:`space-between`},[`${t}-filter-trigger`]:{position:`relative`,display:`flex`,alignItems:`center`,marginBlock:D(o).mul(-1).equal(),marginInline:`${Q(o)} ${Q(D(m).div(2).mul(-1).equal())}`,padding:`0 ${Q(o)}`,color:f,fontSize:p,borderRadius:h,cursor:`pointer`,transition:`all ${g}`,"&:hover":{color:_,background:y},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[k]:{...ur(e),minWidth:i,backgroundColor:x,borderRadius:h,boxShadow:T,overflow:`hidden`,[`${O}-menu`]:{maxHeight:S,overflowX:`hidden`,border:0,boxShadow:`none`,borderRadius:`unset`,backgroundColor:E,"&:empty::after":{display:`block`,padding:`${Q(s)} 0`,color:b,fontSize:p,textAlign:`center`,content:`"Not Found"`}},[`${k}-tree`]:{paddingBlock:`${Q(s)} 0`,paddingInline:s,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:C},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:w}}},[`${k}-search`]:{padding:s,borderBottom:j,"&-input":{input:{minWidth:a},[r]:{color:b}}},[`${k}-checkall`]:{width:`100%`,marginBottom:o,marginInlineStart:o},[`${k}-btns`]:{display:`flex`,justifyContent:`space-between`,padding:`${Q(D(s).sub(l).equal())} ${Q(s)}`,overflow:`hidden`,borderTop:j}}}},{[`${n}-dropdown ${k}, ${k}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:`calc(100vh - 130px)`,overflowX:`hidden`,overflowY:`auto`}}}]};function P1({colorSplit:e}){return[{boxShadow:`inset 10px 0 8px -8px ${e}`},{boxShadow:`inset -10px 0 8px -8px ${e}`}]}var F1=e=>{let{componentCls:t,lineWidth:n,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,calc:o}=e,s=`${t}-cell`,c=`${s}-fix`,l={position:`absolute`,top:0,bottom:o(n).mul(-1).equal(),width:30,transition:`box-shadow ${r}`,content:`""`,pointerEvents:`none`},[u,d]=P1(e);return{[`${t}-wrapper`]:{[`${s}${c}`]:{position:`sticky`},[c]:{zIndex:`calc(var(--z-offset-reverse) + ${i})`,background:a,"&:after":l,"&-start:after":{insetInlineStart:`100%`},"&-end:after":{insetInlineEnd:`100%`},"&-start-shadow-show:after":u,"&-end-shadow-show:after":d},[`${t}-container`]:{position:`relative`,"&:before, &:after":{...l,zIndex:`calc(var(--columns-count) * 2 + ${i} + 1)`},"&:before":{insetInlineStart:0},"&:after":{insetInlineEnd:0}},[`${t}-has-fix-start ${t}-container:before`]:{display:`none`},[`${t}-has-fix-end ${t}-container:after`]:{display:`none`},[`${t}-fix-start-shadow-show ${t}-container:before`]:u,[`${t}-fix-end-shadow-show ${t}-container:after`]:d}}},I1=e=>{let{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${Q(r)} 0`},[`${t}-pagination`]:{display:`flex`,flexWrap:`wrap`,rowGap:e.paddingXS,"> *":{flex:`none`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`}}}}},L1=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${Q(n)} ${Q(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"&::before":{borderStartStartRadius:n},"&::after":{borderStartEndRadius:n},[`> ${t}-content`]:{borderStartStartRadius:n,borderStartEndRadius:n},"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${Q(n)} ${Q(n)}`}}}}},R1=e=>{let{componentCls:t}=e,[n,r]=P1(e);return{[`${t}-wrapper-rtl`]:{direction:`rtl`,table:{direction:`rtl`},[`${t}-row-expand-icon`]:{float:`right`,"&::after":{transform:`rotate(-90deg)`},"&-collapsed::before":{transform:`rotate(180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`}},[`${t}-cell-fix`]:{"&-start-shadow-show:after":r,"&-end-shadow-show:after":n},[`${t}-container`]:{[`${t}-row-indent`]:{float:`right`}},[`${t}-fix-start-shadow-show ${t}-container:before`]:r,[`${t}-fix-end-shadow-show ${t}-container:after`]:n}}},z1=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:a,paddingXS:o,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:l,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:l,[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(l).add(m(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).add(m(o).mul(2)).equal()}},[`
251
+ table tr th${t}-selection-column,
252
+ table tr td${t}-selection-column,
253
+ ${t}-selection-column
254
+ `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:`center`,[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:`transparent !important`},[`${t}-selection`]:{position:`relative`,display:`inline-flex`,flexDirection:`column`},[`${t}-selection-extra`]:{position:`absolute`,top:0,zIndex:1,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,marginInlineStart:`100%`,paddingInlineStart:Q(m(p).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:`baseline`,"&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},B1=e=>{let{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(e,i,a,o)=>({[`${t}${t}-${e}`]:{fontSize:o,[`
255
+ ${t}-title,
256
+ ${t}-footer,
257
+ ${t}-cell,
258
+ ${t}-thead > tr > th,
259
+ ${t}-tbody > tr > th,
260
+ ${t}-tbody > tr > td,
261
+ tfoot > tr > th,
262
+ tfoot > tr > td
263
+ `]:{padding:`${Q(i)} ${Q(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:Q(r(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${Q(r(i).mul(-1).equal())} ${Q(r(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:Q(r(i).mul(-1).equal()),marginInline:`${Q(r(n).sub(a).equal())} ${Q(r(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:Q(r(a).div(4).equal())}}});return{[`${t}-wrapper`]:{...i(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...i(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},V1=e=>{let{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:`transparent !important`}},"&:focus-visible":{color:e.colorPrimary},[`
264
+ &${t}-cell-fix-left:hover,
265
+ &${t}-cell-fix-right:hover
266
+ `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:`transparent !important`}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:`relative`,zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:`flex`,flex:`auto`,alignItems:`center`,justifyContent:`space-between`,"&::after":{position:`absolute`,inset:0,width:`100%`,height:`100%`,content:`""`}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:`none`}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:`inline-flex`,flexDirection:`column`,alignItems:`center`},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:`-0.3em`}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},H1=e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:o,stickyScrollBarBorderRadius:s,lineWidth:c,lineType:l,tableBorderColor:u,zIndexTableFixed:d}=e,f=`${Q(c)} ${l} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:`sticky`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,background:e.colorBgContainer},"&-scroll":{position:`sticky`,bottom:0,height:`${Q(a)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,display:`flex`,alignItems:`center`,background:o,borderTop:f,opacity:n,"&:hover":{transformOrigin:`center bottom`},"&-bar":{height:a,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform 0s`,position:`absolute`,bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},U1=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,a=`${Q(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:`relative`,zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${Q(i(n).mul(-1).equal())} 0 ${r}`}}}},W1=e=>{let{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:a,calc:o}=e,s=`${Q(r)} ${i} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
267
+ & > ${t}-row,
268
+ & > div:not(${t}-row) > ${t}-row
269
+ `]:{display:`flex`,boxSizing:`border-box`,width:`100%`}},[`${t}-cell`]:{borderBottom:s,transition:`background-color ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:`sticky`,insetInlineStart:0,overflow:`hidden`,width:`calc(var(--virtual-width) - ${Q(r)})`,borderInlineEnd:`none`}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:`""`,insetInline:0,bottom:0,borderBottom:s,position:`absolute`},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:`""`,position:`absolute`,insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},G1=e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:a,lineWidth:o,lineType:s,tableBorderColor:c,tableFontSize:l,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:_,calc:v}=e,y=`${Q(o)} ${s} ${c}`;return{[`${t}-wrapper`]:{clear:`both`,maxWidth:`100%`,"--rc-virtual-list-scrollbar-bg":e.tableScrollBg,...fr(),[t]:{...ur(e),fontSize:l,background:u,borderRadius:`${Q(d)} ${Q(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:`100%`,textAlign:`start`,borderRadius:`${Q(d)} ${Q(d)} 0 0`,borderCollapse:`separate`,borderSpacing:0},[`
270
+ ${t}-cell,
271
+ ${t}-thead > tr > th,
272
+ ${t}-tbody > tr > th,
273
+ ${t}-tbody > tr > td,
274
+ tfoot > tr > th,
275
+ tfoot > tr > td
276
+ `]:{position:`relative`,padding:`${Q(r)} ${Q(i)}`,overflowWrap:`break-word`},[`${t}-title`]:{padding:`${Q(r)} ${Q(i)}`},[`${t}-thead`]:{"> tr > th, > tr > td":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:`center`},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,width:1,height:`1.6em`,backgroundColor:h,transform:`translateY(-50%)`,transition:`background-color ${p}`,content:`""`}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{borderBottom:y,transition:[`background-color`,`border-color`].map(e=>`${e} ${p}`).join(`, `),[`
277
+ > ${t}-wrapper:only-child,
278
+ > ${t}-expanded-row-fixed > ${t}-wrapper:only-child
279
+ `]:{[t]:{marginBlock:Q(v(r).mul(-1).equal()),marginInline:`${Q(v(a).sub(i).equal())}
280
+ ${Q(v(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:`0 !important`,borderBlock:`0 !important`,[`${t}-measure-cell-content`]:{height:0,overflow:`hidden`,pointerEvents:`none`}}}},[`${t}-footer`]:{padding:`${Q(r)} ${Q(i)}`,color:g,background:_}}}},K1=e=>{let{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:c,paddingSM:l,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:h,fontSizeSM:g,lineHeight:_,lineWidth:v,colorIcon:y,colorIconHover:b,opacityLoading:x,controlInteractiveSize:S}=e,C=new pe(i).onBackground(n).toHexString(),w=new pe(a).onBackground(n).toHexString(),T=new pe(t).onBackground(n).toHexString(),E=new pe(y),D=new pe(b),O=S/2-v,k=O*2+v*3;return{headerBg:T,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:w,bodySortBg:T,rowHoverBg:T,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:l,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:T,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*_-v*3)/2-Math.ceil((g*1.4-v*3)/2),headerIconColor:E.clone().setA(E.a*x).toRgbString(),headerIconHoverColor:D.clone().setA(D.a*x).toRgbString(),expandIconHalfInner:O,expandIconSize:k,expandIconScale:S/k}},q1=2,J1=yr(`Table`,e=>{let{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:l,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:_,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:b,footerBg:x,footerColor:S,headerBorderRadius:C,cellFontSize:w,cellFontSizeMD:T,cellFontSizeSM:E,headerSplitColor:D,fixedHeaderSortActiveBg:O,headerFilterHoverBg:k,filterDropdownBg:A,expandIconBg:j,selectionColumnWidth:M,stickyScrollBarBg:N,calc:P}=e,F=wn(e,{tableFontSize:w,tableBg:r,tableRadius:C,tablePaddingVertical:m,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:_,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:b,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:x,tableHeaderCellSplitColor:D,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:l,tableFixedHeaderSortActiveBg:O,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:A,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:q1,tableFontSizeMiddle:T,tableFontSizeSmall:E,tableSelectionColumnWidth:M,tableExpandIconBg:j,tableExpandColumnWidth:P(i).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[G1(F),I1(F),U1(F),V1(F),N1(F),k1(F),L1(F),M1(F),U1(F),j1(F),z1(F),F1(F),H1(F),A1(F),B1(F),R1(F),W1(F)]},K1,{resetFont:!1,unitless:{expandIconScale:!0}}),Y1=[],X1=$.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,classNames:o,styles:s,size:c,bordered:l,dropdownPrefixCls:d,dataSource:f,pagination:p,rowSelection:m,rowKey:h,rowClassName:g,column:_,columns:v,children:y,childrenColumnName:b,onChange:x,getPopupContainer:S,loading:C,expandIcon:w,expandable:T,expandedRowRender:E,expandIconColumnIndex:D,indentSize:O,scroll:k,sortDirections:A,locale:j,showSorterTooltip:M={target:`full-header`},virtual:N}=e;gt(`Table`);let P=o$($.useMemo(()=>v||GZ(y),[v,y]),_),F=Zv($.useMemo(()=>P.some(e=>e.responsive),[P])),I=$.useMemo(()=>{let e=new Set(Object.keys(F).filter(e=>F[e]));return P.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[P,F]),L=u(e,[`className`,`style`,`column`,`columns`]),{locale:R=wa,table:z}=$.useContext(Vt),{getPrefixCls:B,direction:V,renderEmpty:H,getPopupContainer:U,className:W,style:G,classNames:ee,styles:K}=Wt(`table`),q=jl(e=>c===`middle`?`medium`:c??e),te={...e,size:q,bordered:l},[ne,re]=zi([ee,o],[K,s],{props:te},{pagination:{_default:`root`},header:{_default:`wrapper`},body:{_default:`wrapper`}}),J={...R.Table,...j},[ie]=ja(`global`,wa.global),ae=f||Y1,oe=B(`table`,n),se=B(`dropdown`,d),[,ce]=cr(),le=$.useMemo(()=>Oi(m)?{columnWidth:ce.Table?.selectionColumnWidth,...m}:m,[m,ce.Table?.selectionColumnWidth]),Y=la(oe),[ue,de]=J1(oe,Y),fe={childrenColumnName:b,expandIconColumnIndex:D,...T,expandIcon:T?.expandIcon??z?.expandable?.expandIcon},{childrenColumnName:pe=`children`}=fe,me=$.useMemo(()=>ae.some(e=>e?.[pe])?`nest`:E||T?.expandedRowRender?`row`:null,[pe,ae]),he={body:$.useRef(null)},ge=a$(oe),_e=$.useRef(null),ve=$.useRef(null);uc(t,()=>({...ve.current,nativeElement:_e.current}));let ye=h||z?.rowKey||`key`,be=k??z?.scroll,xe=$.useMemo(()=>ki(ye)?ye:e=>e?.[ye],[ye]),[Se]=d1(ae,pe,xe),Ce={},we=(e,t,n=!1)=>{let r={...Ce,...e};n&&(Ce.resetPagination?.(),r.pagination?.current&&(r.pagination.current=1),p&&p.onChange?.(1,r.pagination?.pageSize)),k&&k.scrollToFirstRowOnChange!==!1&&he.body.current&&ca(0,{getContainer:()=>he.body.current}),x?.(r.pagination,r.filters,r.sorter,{currentDataSource:c1(C1(ae,r.sorterStates,pe),r.filterStates,pe),action:t})},[Te,Ee,De,Oe]=w1({prefixCls:oe,mergedColumns:I,onSorterChange:(e,t)=>{we({sorter:e,sorterStates:t},`sort`,!1)},sortDirections:A||[`ascend`,`descend`],tableLocale:J,showSorterTooltip:M,globalLocale:ie}),ke=$.useMemo(()=>C1(ae,Ee,pe),[pe,ae,Ee]);Ce.sorter=Oe(),Ce.sorterStates=Ee;let[Ae,je,Me]=u1({prefixCls:oe,locale:J,dropdownPrefixCls:se,mergedColumns:I,onFilterChange:(e,t)=>{we({filters:e,filterStates:t},`filter`,!0)},getPopupContainer:S||U,rootClassName:X(i,Y)}),Ne=c1(ke,je,pe);Ce.filters=Me,Ce.filterStates=je;let[Pe]=E1($.useMemo(()=>{let e={};return Object.keys(Me).forEach(t=>{Me[t]!==null&&(e[t]=Me[t])}),{...De,filters:e}},[De,Me])),[Fe,Ie]=p1(Ne.length,(e,t)=>{we({pagination:{...Ce.pagination,current:e,pageSize:t}},`paginate`)},p);Ce.pagination=p===!1?{}:f1(Fe,p),Ce.resetPagination=Ie;let Le=$.useMemo(()=>{if(p===!1||!Fe.pageSize)return Ne;let{current:e=1,total:t,pageSize:n=10}=Fe;return Ne.length<t?Ne.length>n?Ne.slice((e-1)*n,e*n):Ne:Ne.slice((e-1)*n,e*n)},[!!p,Ne,Fe?.current,Fe?.pageSize,Fe?.total]),[Re,ze]=r$({prefixCls:oe,data:Ne,pageData:Le,getRowKey:xe,getRecordByKey:Se,expandType:me,childrenColumnName:pe,locale:J,getPopupContainer:S||U},le),Be=(e,t,n)=>X({[`${oe}-row-selected`]:ze.has(xe(e,t))},ki(g)?g(e,t,n):g);fe.__PARENT_RENDER_ICON__=fe.expandIcon,fe.expandIcon=fe.expandIcon||w||i$(J),me===`nest`&&fe.expandIconColumnIndex===void 0?fe.expandIconColumnIndex=+!!le:fe.expandIconColumnIndex>0&&le&&--fe.expandIconColumnIndex,Ei(fe.indentSize)||(fe.indentSize=Ei(O)?O:15);let Ve=$.useCallback(e=>Pe(Re(Ae(Te(e)))),[Te,Ae,Re]),He,Ue;if(p!==!1&&Fe?.total){let e;e=Fe.size?Fe.size:q===`small`||q===`medium`?`small`:void 0;let t=(t=`end`)=>$.createElement(WG,{...Fe,classNames:ne.pagination,styles:re.pagination,className:X(`${oe}-pagination ${oe}-pagination-${t}`,Fe.className),size:e}),{placement:n,position:r}=Fe,i=n??r,a=e=>{let t=e.toLowerCase();return t.includes(`center`)?`center`:t.includes(`left`)||t.includes(`start`)?`start`:`end`};if(Array.isArray(i)){let[e,n]=[`top`,`bottom`].map(e=>i.find(t=>t.includes(e))),r=i.every(e=>`${e}`==`none`);!e&&!n&&!r&&(Ue=t()),e&&(He=t(a(e))),n&&(Ue=t(a(n)))}else Ue=t()}let We=$.useMemo(()=>{if(typeof C==`boolean`)return{spinning:C};if(Oi(C))return{spinning:!0,...C}},[C]),Ge=X(de,Y,`${oe}-wrapper`,W,{[`${oe}-wrapper-rtl`]:V===`rtl`},r,i,ne.root,ue),Ke={...re.root,...G,...a},qe=$.useMemo(()=>We?.spinning&&ae===Y1?null:j?.emptyText===void 0?H?.(`Table`)||$.createElement(_v,{componentName:`Table`}):j.emptyText,[We?.spinning,ae,j?.emptyText,H]),Je=N?O1:D1,Ye={},Xe=$.useMemo(()=>{let{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:i,paddingSM:a}=ce,o=Math.floor(e*t);switch(q){case`medium`:return a*2+o+n;case`small`:return i*2+o+n;default:return r*2+o+n}},[ce,q]);return N&&(Ye.listItemHeight=Xe),$.createElement(`div`,{ref:_e,className:Ge,style:Ke},$.createElement(dK,{spinning:!1,...We},He,$.createElement(Je,{...Ye,...L,scroll:be,classNames:ne,styles:re,ref:ve,columns:I,direction:V,expandable:fe,prefixCls:oe,className:X({[`${oe}-medium`]:q===`medium`,[`${oe}-small`]:q===`small`,[`${oe}-bordered`]:l,[`${oe}-empty`]:ae.length===0},de,Y,ue),data:Le,rowKey:xe,rowClassName:Be,emptyText:qe,internalHooks:IX,internalRefs:he,transformColumns:Ve,getContainerWidth:ge,measureRowRender:e=>$.createElement(xy.Provider,{value:!0},$.createElement(ss,{getPopupContainer:e=>e},e))}),Ue))}),Z1=$.forwardRef((e,t)=>{let n=$.useRef(0);return n.current+=1,$.createElement(X1,{...e,ref:t,_renderTimes:n.current})});Z1.SELECTION_COLUMN=ZQ,Z1.EXPAND_COLUMN=FX,Z1.SELECTION_ALL=QQ,Z1.SELECTION_INVERT=$Q,Z1.SELECTION_NONE=e$,Z1.Column=jQ,Z1.ColumnGroup=MQ,Z1.Summary=gZ;var Q1=Z1,$1=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:{...ur(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:`not-allowed`,[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:`transparent`}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:`flex`,flexWrap:`wrap`,gap:e.paddingXS}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}},[`&${e.componentCls}-solid`]:{borderColor:`transparent`,color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:`transparent`,backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,backgroundColor:e.colorBgContainerDisabled,a:{cursor:`not-allowed`,pointerEvents:`none`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:`not-allowed`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},e0=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return wn(e,{tagFontSize:i,tagLineHeight:Q(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},t0=e=>{let t=Fd(new cd(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new pe(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},n0=yr(`Tag`,e=>$1(e0(e)),t0),r0=$.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l,disabled:u,...d}=e,{getPrefixCls:f,tag:p}=$.useContext(Vt),m=$.useContext(Vo),h=u??m,g=e=>{h||(c?.(!a),l?.(e))},_=f(`tag`,n),[v,y]=n0(_),b=X(_,`${_}-checkable`,{[`${_}-checkable-checked`]:a,[`${_}-checkable-disabled`]:h},p?.className,i,v,y);return $.createElement(`span`,{...d,ref:t,style:{...r,...p?.style},className:b,onClick:g},s,$.createElement(`span`,null,o))}),i0=$.forwardRef((e,t)=>{let{id:n,prefixCls:r,rootClassName:i,className:a,style:o,classNames:s,styles:c,disabled:l,options:u,value:d,defaultValue:f,onChange:p,multiple:m,...h}=e,{getPrefixCls:g,direction:_,className:y,style:b,classNames:x,styles:S}=Wt(`tag`),C=g(`tag`,r),w=`${C}-checkable-group`,[T,E]=n0(C,la(C)),[D,O]=zi([x,s],[S,c],{props:e}),k=(0,$.useMemo)(()=>Array.isArray(u)?u.map(e=>Oi(e)?e:{value:e,label:e}):[],[u]),[A,j]=v(f,d),M=(e,t)=>{let n=null;if(m){let r=A||[];n=e?[].concat(Lt(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;j(n),p?.(n)},N=$.useRef(null);(0,$.useImperativeHandle)(t,()=>({nativeElement:N.current}));let P=V(h,{aria:!0,data:!0});return $.createElement(`div`,{...P,className:X(w,y,i,{[`${w}-disabled`]:l,[`${w}-rtl`]:_===`rtl`},T,E,a,D.root),style:{...b,...O.root,...o},id:n,ref:N},k.map(e=>$.createElement(r0,{key:e.value,className:X(`${w}-item`,D.item,e.className),style:{...O.item,...e.style},checked:m?(A||[]).includes(e.value):A===e.value,onChange:t=>M(t,e),disabled:l},e.label)))});function a0(e,t){let{color:n,variant:r,bordered:i}=e;return $.useMemo(()=>{let e=n?.endsWith(`-inverse`),a;a=r||(e?`solid`:i===!1?`filled`:t||`filled`);let o=e?n?.replace(`-inverse`,``):n;o===void 0&&a===`solid`&&(o=`default`);let s=ky(o),c=Ay(o),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new pe(o).toHsl();e.l=.95,l.backgroundColor=new pe(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var o0=e=>Cr(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),s0=xr([`Tag`,`preset`],e=>o0(e0(e)),t0);function c0(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var l0=(e,t,n)=>{let r=c0(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},u0=xr([`Tag`,`status`],e=>{let t=e0(e);return[l0(t,`success`,`Success`),l0(t,`processing`,`Info`),l0(t,`error`,`Error`),l0(t,`warning`,`Warning`)]},t0),d0=$.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:c,variant:l,onClose:d,bordered:f,disabled:p,href:m,target:h,styles:g,classNames:_,...v}=e,{getPrefixCls:y,direction:b,className:x,variant:S,style:C,classNames:w,styles:T}=Wt(`tag`),[E,D,O,k,A]=a0(e,S),j=O||k,M=$.useContext(Vo),N=p??M,{tag:P}=$.useContext(Vt),[F,I]=$.useState(!0),L=u(v,[`closeIcon`,`closable`]),R={...e,color:D,variant:E,disabled:N},[z,B]=zi([w,_],[T,g],{props:R}),V=$.useMemo(()=>{let e={...B.root,...C,...a};return N||(e={...A,...e}),e},[B.root,C,a,A,N]),H=y(`tag`,n),[U,W]=n0(H),G=X(H,x,z.root,`${H}-${E}`,{[`${H}-${D}`]:j,[`${H}-hidden`]:!F,[`${H}-rtl`]:b===`rtl`,[`${H}-disabled`]:N},r,i,U,W),ee=e=>{N||(e.stopPropagation(),d?.(e),!e.defaultPrevented&&I(!1))},[,K]=tc(Ys(e),Ys(P),{closable:!1,closeIconRender:e=>Fo(e,$.createElement(`span`,{className:X(`${H}-close-icon`,z.close),onClick:ee,style:B.close},e),e=>({onClick:t=>{e?.onClick?.(t),ee(t)},className:X(e?.className,`${H}-close-icon`,z.close),style:{...B.close,...e?.style}}))}),q=ki(v.onClick)||o&&o.type===`a`,te=Io(s,{className:X($.isValidElement(s)?s.props?.className:void 0,z.icon),style:B.icon}),ne=te?$.createElement($.Fragment,null,te,o&&$.createElement(`span`,{className:z.content,style:B.content},o)):o,re=m?`a`:`span`,J=$.createElement(re,{...L,ref:t,className:G,style:V,href:N?void 0:m,target:h,onClick:N?void 0:L.onClick,...m&&N?{"aria-disabled":!0}:{}},ne,K,O&&$.createElement(s0,{key:`preset`,prefixCls:H}),k&&$.createElement(u0,{key:`status`,prefixCls:H}));return q?$.createElement(Al,{component:`Tag`},J):J});d0.CheckableTag=r0,d0.CheckableTagGroup=i0;var f0=e=>{let t=e?.algorithm?it(e.algorithm):Qn;return ut({...Bn,...e?.token},{override:e?.token},t,rr)};function p0(e){let{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}var m0=(e,t)=>{let n=t??Zn(e),r=n.fontSizeSM,i=n.controlHeight-4;return{...n,...p0(t??e),...Gn(r),controlHeight:i,...Wn({...n,controlHeight:i})}},h0=(e,t)=>new pe(e).setA(t).toRgbString(),g0=(e,t)=>new pe(e).lighten(t).toHexString(),_0=e=>{let t=Be(e,{theme:`dark`});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},v0=(e,t,n)=>{let r=e||`#000`,i=t||`#fff`;return{colorBgBase:r,colorTextBase:i,colorShadow:n||`rgba(255, 255, 255, 0.2)`,colorText:h0(i,.85),colorTextSecondary:h0(i,.65),colorTextTertiary:h0(i,.45),colorTextQuaternary:h0(i,.25),colorFill:h0(i,.18),colorFillSecondary:h0(i,.12),colorFillTertiary:h0(i,.08),colorFillQuaternary:h0(i,.04),colorBgSolid:h0(i,.95),colorBgSolidHover:h0(i,1),colorBgSolidActive:h0(i,.9),colorBgElevated:g0(r,12),colorBgContainer:g0(r,8),colorBgLayout:g0(r,0),colorBgSpotlight:g0(r,26),colorBgBlur:h0(i,.04),colorBorder:g0(r,26),colorBorderDisabled:g0(r,26),colorBorderSecondary:g0(r,19)}},y0=(e,t)=>{let n=Object.keys(zn).map(t=>{let n=Be(e[t],{theme:`dark`});return Array.from({length:10},()=>1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e),{})}).reduce((e,t)=>(e={...e,...t},e),{}),r=t??Zn(e),i=Vn(e,{generateColorPalettes:_0,generateNeutralColorPalettes:v0}),a=Fn.reduce((t,n)=>{let r=e[n];if(r){let e=_0(r);t[`${n}Hover`]=e[7],t[`${n}Active`]=e[5]}return t},{});return{...r,...n,...i,...a,colorPrimaryBg:i.colorPrimaryBorder,colorPrimaryBgHover:i.colorPrimaryBorderHover}};function b0(){let[e,t,n,r]=cr();return{theme:e,token:t,hashId:n,cssVar:r}}var x0={defaultSeed:$n.token,useToken:b0,defaultAlgorithm:Zn,darkAlgorithm:y0,compactAlgorithm:m0,getDesignToken:f0,defaultConfig:$n,_internalContext:er},{TimePicker:S0,RangePicker:C0}=JV,w0=$.forwardRef((e,t)=>$.createElement(C0,{...e,picker:`time`,mode:void 0,ref:t})),T0=$.forwardRef((e,t)=>{let{addon:n,renderExtraFooter:r,variant:i,bordered:a,classNames:o,styles:s,popupClassName:c,popupStyle:l,...u}=e,[d]=vv(`timePicker`,i,a),f=$.useMemo(()=>{if(r)return r;if(n)return n},[n,r]),[p,m]=OV(`timePicker`,o,s,c,l,{...e,variant:d});return $.createElement(S0,{...u,mode:void 0,ref:t,renderExtraFooter:f,variant:d,classNames:p,styles:m})}),E0=og(T0,`popupAlign`,void 0,`picker`);T0._InternalPanelDoNotUseOrYouWillBeFired=E0,T0.RangePicker=w0,T0._InternalPanelDoNotUseOrYouWillBeFired=E0;var D0=e=>{let{componentCls:t,fontHeight:n,antCls:r,paddingXS:i}=e,[a,o]=Sr(r,`cmp-steps`),[s,c]=Sr(r,`timeline`),l=`${t}-item`;return{[`${t}-horizontal`]:{[a(`title-vertical-row-gap`)]:i,[s(`content-height`)]:Q(n),alignItems:`stretch`,[`&${t}-layout-alternate`]:{[l]:{[`${l}-wrapper`]:{[s(`alternate-content-offset`)]:`calc(${c(`content-height`)} + ${o(`title-vertical-row-gap`)} * 2 + ${o(`icon-size-max`)})`,height:`calc(${c(`content-height`)} * 2 + ${o(`title-vertical-row-gap`)} * 2 + ${o(`icon-size-max`)})`},[`${l}-icon`]:{position:`absolute`},[`${l}-icon, ${l}-rail`]:{position:`absolute`,top:`50%`,transform:`translateY(-50%)`,margin:0},[`${l}-title, ${l}-subtitle, ${l}-content`]:{whiteSpace:`nowrap`,maxWidth:`unset`},[`${l}-title`]:{position:`absolute`,left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%)`},[`${l}-content`]:{position:`absolute`,left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%)`},"&-placement-start":{[`${l}-title`]:{bottom:c(`alternate-content-offset`)},[`${l}-content`]:{top:c(`alternate-content-offset`)}},"&-placement-end":{[`${l}-title`]:{top:c(`alternate-content-offset`)},[`${l}-content`]:{bottom:c(`alternate-content-offset`)}}}},[`&:not(${t}-layout-alternate)`]:{[`${l}-placement-end`]:{display:`flex`,alignItems:`flex-end`,[`${l}-wrapper`]:{flex:`auto`,flexDirection:`column-reverse`},[`${l}-rail`]:{top:`auto`,bottom:o(`horizontal-rail-margin`),transform:`translateY(50%)`}}}}}},O0=e=>{let{componentCls:t,tailColor:n,fontHeight:r,dotSize:i,dotBg:a,dotBorderWidth:o,fontSize:s,lineHeight:c,colorText:l,tailWidth:u,colorPrimary:d,colorError:f,colorSuccess:p,colorTextDisabled:m,antCls:h}=e,g=`${t}-item`,[_,v]=Sr(h,`cmp-steps`);return{[t]:[{...ur(e),[g]:{[_(`title-horizontal-title-height`)]:r,[_(`vertical-rail-margin`)]:`0px`,[_(`title-horizontal-rail-gap`)]:`0px`,[_(`icon-dot-size-origin`)]:v(`icon-size-active`),[_(`icon-dot-size-custom`)]:i,[_(`item-icon-dot-bg-color-origin`)]:v(`item-icon-dot-bg-color`),[_(`item-icon-dot-bg-color-custom`)]:a,[_(`icon-size`)]:v(`icon-dot-size-custom`,v(`icon-dot-size-origin`)),[`${g}-icon`]:{[_(`dot-icon-border-width`)]:o,[_(`dot-icon-size`)]:v(`icon-size`),[_(`item-icon-dot-bg-color`)]:v(`item-icon-dot-bg-color-custom`,v(`item-icon-dot-bg-color-origin`))},[`${g}-title`]:{fontSize:s,lineHeight:c},[`${g}-content`]:{color:l},[`${g}-rail`]:{[_(`item-solid-line-color`)]:n,[_(`rail-size`)]:u}}},{[g]:{[_(`item-process-rail-line-style`)]:`dotted`},[`${g}${g}${g}-color`]:{"&-blue":{[_(`item-icon-dot-color`)]:d},"&-red":{[_(`item-icon-dot-color`)]:f},"&-green":{[_(`item-icon-dot-color`)]:p},"&-gray":{[_(`item-icon-dot-color`)]:m}}}]}},k0=e=>{let{calc:t,componentCls:n,itemPaddingBottom:r,margin:i,antCls:a}=e,o=`${n}-item`,[,s]=Sr(a,`cmp-steps`),[c,l]=Sr(a,`timeline`);return{[`${n}:not(${n}-horizontal)`]:{[c(`head-span`)]:`12`,[c(`head-span-ptg`)]:`calc(${l(`head-span`)} / 24 * 100%)`,[`&${n}-layout-alternate`]:{[o]:{[c(`alternate-gap`)]:t(i).mul(2).add(s(`dot-icon-size`)).equal(),minHeight:`auto`,paddingBottom:r,[`${o}-icon, ${o}-rail`]:{position:`absolute`,insetInlineStart:l(`head-span-ptg`)},[`${o}-icon`]:{marginInlineStart:`calc(${s(`icon-size`)} / -2)`},[`${o}-section`]:{display:`flex`,flexWrap:`nowrap`,gap:l(`alternate-gap`)},[`${o}-header`]:{textAlign:`end`,flexDirection:`column`,alignItems:`stretch`,flex:`1 1 calc(${l(`head-span-ptg`)} - ${l(`alternate-gap`)} / 2)`},[`${o}-content`]:{textAlign:`start`,flex:`1 1 calc(100% - ${l(`head-span-ptg`)} - ${l(`alternate-gap`)} / 2)`},"&-placement-end":{[`${o}-header`]:{textAlign:`start`,order:1},[`${o}-content`]:{textAlign:`end`},[`${o}-icon, ${o}-rail`]:{insetInlineStart:`calc(100% - ${l(`head-span-ptg`)})`}}}},[`&:not(${n}-layout-alternate)`]:{[`${o}-placement-end`]:{textAlign:`end`,[`${o}-icon`]:{order:1},[`${o}-rail`]:{insetInlineStart:`auto`,insetInlineEnd:`calc(${s(`icon-size`)} / 2)`,marginInlineEnd:`calc(${s(`rail-size`)} / -2)`}}}}}},A0=yr(`Timeline`,e=>{let t=wn(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return[O0(t),k0(t),D0(t)]},e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.lineWidthBold,dotBg:void 0,dotSize:void 0,itemPaddingBottom:e.padding*1.25})),j0=(e,t,n,r,i,a,o)=>{let s=`${t}-item`,[c]=Sr(e,`cmp-steps`),l=$.useMemo(()=>Array.isArray(r)?r:Je(i).map(e=>({...e.props})),[r,i]);return $.useMemo(()=>{let e=l.map((e,t)=>{let{label:r,children:i,title:a,content:o,color:l,className:u,style:d,icon:f,dot:p,placement:m,position:h,loading:g,..._}=e,v=d,y=u;l&&([`blue`,`red`,`green`,`gray`].includes(l)?y=X(u,`${s}-color-${l}`):v={[c(`item-icon-dot-color`)]:l,...d});let b=m??h??(n===`alternate`?t%2==0?`start`:`end`:n);y=X(y,`${s}-placement-${b}`);let x=f??p;return!x&&g&&(x=$.createElement(Ne,null)),{..._,title:a??r,content:o??i,style:v,className:y,icon:x,status:g?`process`:`finish`}});return a&&e.push({icon:o??$.createElement(Ne,null),content:a,status:`process`}),e},[l,a,n,s,c,o])},M0={rootComponent:`ol`,itemComponent:`li`},N0=e=>{let{getPrefixCls:t,direction:n,className:r,style:i,classNames:a,styles:o}=Wt(`timeline`),{prefixCls:s,className:c,style:l,classNames:u,styles:d,variant:f=`outlined`,mode:p,orientation:m=`vertical`,titleSpan:h,items:g,children:_,reverse:v,pending:y,pendingDot:b,...x}=e,S=t(),C=t(`timeline`,s),[w,T]=A0(C),[E]=Sr(S,`timeline`),D=$.useMemo(()=>({item:`${C}-item`,itemTitle:`${C}-item-title`,itemIcon:`${C}-item-icon`,itemContent:`${C}-item-content`,itemRail:`${C}-item-rail`,itemWrapper:`${C}-item-wrapper`,itemSection:`${C}-item-section`,itemHeader:`${C}-item-header`}),[C]),O=$.useMemo(()=>p===`left`?`start`:p===`right`?`end`:[`alternate`,`start`,`end`].includes(p)?p:`start`,[p]),k=j0(S,C,O,g,_,y,b),A=$.useMemo(()=>v?Lt(k).reverse():k,[v,k]),j={...e,variant:f,mode:O,orientation:m,items:A},[M,N]=zi([D,a,u],[o,d],{props:j}),P=$.useMemo(()=>({railFollowPrevStatus:v}),[v]),F=$.useMemo(()=>O===`alternate`||m===`vertical`&&A.some(e=>e.title),[A,O,m]),I={...i,...l};return Ti(h)&&O!==`alternate`&&(Ei(h)?I[E(`head-span`)]=h:I[E(`head-span-ptg`)]=h),$.createElement(tX.Provider,{value:M0},$.createElement(UY.Provider,{value:P},$.createElement(TX,{...x,className:X(C,r,c,w,T,{[`${C}-${m}`]:m===`horizontal`,[`${C}-layout-alternate`]:F,[`${C}-rtl`]:n===`rtl`}),style:I,classNames:M,styles:N,variant:f,orientation:m,type:`dot`,items:A,current:A.length-1})))};N0.Item=()=>{};var P0=N0;function F0(e){return typeof e==`object`&&!!e}function I0(e,t,n){if(e===!1||t===!1&&(!F0(e)||!e.closeIcon))return null;let r=typeof t==`boolean`?void 0:t;return F0(e)?{...e,closeIcon:e.closeIcon??r}:n||e||t?{closeIcon:r}:`empty`}function L0(e,t,n,r){return $.useMemo(()=>{let i=I0(e,t,!1),a=I0(n,r,!0);return i===`empty`?a:i},[n,r,e,t])}function R0(e){let t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:r,right:i,bottom:a,left:o}=e.getBoundingClientRect();return r>=0&&o>=0&&i<=t&&a<=n}function z0(e,t,n){return n??t??(e===null?`center`:`bottom`)}function B0(e){return typeof e==`number`&&!Number.isNaN(e)}function V0(e,t,n,r,i,a){let[o,s]=(0,$.useState)(void 0);Pe(()=>{s((typeof e==`function`?e():e)||null)});let[c,l]=(0,$.useState)(null),u=J(()=>{if(o){!i&&!R0(o)&&t&&o.scrollIntoView(r);let{left:e,top:n,width:s,height:c}=o.getBoundingClientRect(),u={left:e,top:n,width:s,height:c,radius:0};if(i){let e=a.current?.parentElement?.getBoundingClientRect();e&&(u.left-=e.left,u.top-=e.top)}l(e=>JSON.stringify(e)===JSON.stringify(u)?e:u)}else l(null)}),d=e=>(Array.isArray(n?.offset)?n?.offset[e]:n?.offset)??6;return Pe(()=>(u(),window.addEventListener(`resize`,u),window.addEventListener(`scroll`,u),()=>{window.removeEventListener(`resize`,u),window.removeEventListener(`scroll`,u)}),[o,t,u]),[(0,$.useMemo)(()=>{if(!c)return c;let e=d(0),t=d(1),r=B0(n?.radius)?n?.radius:2;return{left:c.left-e,top:c.top-t,width:c.width+e*2,height:c.height+t*2,radius:r}},[c,n]),o]}function H0(){return H0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H0.apply(this,arguments)}var U0={fill:`transparent`,pointerEvents:`auto`},W0=e=>{let{prefixCls:t,rootClassName:n,pos:r,showMask:i,style:a={},fill:o=`rgba(0,0,0,0.5)`,open:s,animated:c,zIndex:l,disabledInteraction:u,styles:d,classNames:f,getPopupContainer:p,onEsc:m}=e,h=`${t}-mask-${te()}`,g=typeof c==`object`?c?.placeholder:c,_=typeof navigator<`u`&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?{width:`100%`,height:`100%`}:{width:`100vw`,height:`100vh`},v=p===!1;return $.createElement(Qa,{open:s,autoLock:!v,getContainer:p,onEsc:m},$.createElement(`div`,{className:X(`${t}-mask`,n,f?.mask),style:{position:v?`absolute`:`fixed`,left:0,right:0,top:0,bottom:0,zIndex:l,pointerEvents:r&&!u?`none`:`auto`,...a,...d?.mask}},i?$.createElement(`svg`,{style:{width:`100%`,height:`100%`}},$.createElement(`defs`,null,$.createElement(`mask`,{id:h},$.createElement(`rect`,H0({x:`0`,y:`0`},_,{fill:`white`})),r&&$.createElement(`rect`,{x:r.left,y:r.top,rx:r.radius,width:r.width,height:r.height,fill:`black`,className:g?`${t}-placeholder-animated`:``}))),$.createElement(`rect`,{x:`0`,y:`0`,width:`100%`,height:`100%`,fill:o,mask:`url(#${h})`}),r&&$.createElement($.Fragment,null,$.createElement(`rect`,H0({},U0,{x:`0`,y:`0`,width:`100%`,height:Math.max(r.top,0)})),$.createElement(`rect`,H0({},U0,{x:`0`,y:`0`,width:Math.max(r.left,0),height:`100%`})),$.createElement(`rect`,H0({},U0,{x:`0`,y:r.top+r.height,width:`100%`,height:`calc(100% - ${r.top+r.height}px)`})),$.createElement(`rect`,H0({},U0,{x:r.left+r.width,y:`0`,width:`calc(100% - ${r.left+r.width}px)`,height:`100%`})))):null))},G0=[0,0],K0={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 q0(e=!1){let t={};return Object.keys(K0).forEach(n=>{t[n]={...K0[n],autoArrow:e,targetOffset:G0}}),t}q0();function J0(){return J0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J0.apply(this,arguments)}function Y0(e){let{prefixCls:t,current:n,total:r,title:i,description:a,onClose:o,onPrev:s,onNext:c,onFinish:l,className:u,closable:d,classNames:f,styles:p}=e,m=V(d||{},!0),h=d?.closeIcon??$.createElement(`span`,{className:`${t}-close-x`},`×`),g=!!d;return $.createElement(`div`,{className:X(`${t}-panel`,u)},$.createElement(`div`,{className:X(`${t}-section`,f?.section),style:p?.section},g&&$.createElement(`button`,J0({type:`button`,onClick:o,"aria-label":`Close`},m,{className:X(`${t}-close`,f?.close),style:p?.close}),h),$.createElement(`div`,{className:X(`${t}-header`,f?.header),style:p?.header},$.createElement(`div`,{className:X(`${t}-title`,f?.title),style:p?.title},i)),$.createElement(`div`,{className:X(`${t}-description`,f?.description),style:p?.description},a),$.createElement(`div`,{className:X(`${t}-footer`,f?.footer),style:p?.footer},$.createElement(`div`,{className:`${t}-sliders`},r>1?[...Array.from({length:r}).keys()].map((e,t)=>$.createElement(`span`,{key:e,className:t===n?`active`:``})):null),$.createElement(`div`,{className:X(`${t}-actions`,f?.actions),style:p?.actions},n===0?null:$.createElement(`button`,{className:`${t}-prev-btn`,onClick:s},`Prev`),n===r-1?$.createElement(`button`,{className:`${t}-finish-btn`,onClick:l},`Finish`):$.createElement(`button`,{className:`${t}-next-btn`,onClick:c},`Next`)))))}var X0=e=>{let{current:t,renderPanel:n}=e;return $.createElement($.Fragment,null,typeof n==`function`?n(e,t):$.createElement(Y0,e))},Z0=$.forwardRef((e,t)=>{let{open:n,autoLock:r,getContainer:i,domRef:a,className:o,style:s,fallbackDOM:c}=e;return $.useImperativeHandle(t,()=>a.current||c()),$.createElement(Qa,{open:n,autoLock:r,getContainer:i},$.createElement(`div`,{ref:a,className:o,style:s}))});function Q0(){return Q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q0.apply(this,arguments)}var $0={left:`50%`,top:`50%`,width:1,height:1},e2={block:`center`,inline:`center`},t2=e=>{let{prefixCls:t=`rc-tour`,steps:n=[],defaultCurrent:r,current:i,keyboard:a=!0,onChange:o,onClose:s,onFinish:c,open:l,defaultOpen:u,mask:d=!0,arrow:p=!0,rootClassName:m,placement:h,renderPanel:g,gap:_,animated:y,scrollIntoViewOptions:b=e2,zIndex:x=1001,closeIcon:S,closable:C,builtinPlacements:w,disabledInteraction:T,styles:E,classNames:D,className:O,style:k,getPopupContainer:A,...j}=e,M=$.useRef(),[N,P]=v(r||0,i),[F,I]=v(u,l),L=N<0||N>=n.length?!1:F??!0,[R,z]=$.useState(L),B=$.useRef(L);Pe(()=>{L&&(B.current||P(0),z(!0)),B.current=L},[L,P]);let{target:V,placement:H,style:U,arrow:W,className:G,mask:ee,scrollIntoViewOptions:K=e2,closeIcon:q,closable:te}=n[N]||{},ne=L0(te,q,C,S),re=L&&(ee??d),ie=K??b,ae=$.useRef(null),oe=A===!1,[se,ce]=V0(V,l,_,ie,oe,ae),le=z0(ce,h,H),Y=ce?W===void 0?p:W:!1,ue=typeof Y==`object`?Y.pointAtCenter:!1;Pe(()=>{M.current?.forceAlign()},[ue,N]);let de=e=>{P(e),o?.(e)},fe=(0,$.useMemo)(()=>w?typeof w==`function`?w({arrowPointAtCenter:ue}):w:q0(ue),[w,ue]),pe=()=>{I(!1),s?.(N)},me=J(({event:e})=>{a&&ne!==null&&(e.preventDefault(),pe())}),he=J(e=>{if(!f.isEditableTarget(e)){if(a&&e.key===`ArrowLeft`){N>0&&(e.preventDefault(),de(N-1));return}if(a&&e.key===`ArrowRight`){N<n.length-1&&(e.preventDefault(),de(N+1));return}}});if(Pe(()=>{if(L)return window.addEventListener(`keydown`,he),()=>{window.removeEventListener(`keydown`,he)}},[L,he]),ce===void 0||!R)return null;let ge=()=>$.createElement(X0,Q0({styles:E,classNames:D,arrow:Y,key:`content`,prefixCls:t,total:n.length,renderPanel:g,onPrev:()=>{de(N-1)},onNext:()=>{de(N+1)},onClose:pe,current:N,onFinish:()=>{pe(),c?.()}},n[N],{closable:ne})),_e=typeof re==`boolean`?re:!!re,ve=typeof re==`boolean`?void 0:re;return $.createElement($.Fragment,null,$.createElement(W0,{getPopupContainer:A,styles:E,classNames:D,zIndex:x,prefixCls:t,pos:se,showMask:_e,style:ve?.style,fill:ve?.color,open:L,animated:y,rootClassName:m,disabledInteraction:T,onEsc:me}),$.createElement(No,Q0({},j,{getPopupContainer:A,builtinPlacements:fe,ref:M,popupStyle:U,popupPlacement:le,popupVisible:L,popupClassName:X(m,G),prefixCls:t,popup:ge,forceRender:!1,autoDestroy:!0,zIndex:x,arrow:!!Y}),$.createElement(Z0,{open:L,autoLock:!oe,getContainer:A,domRef:ae,fallbackDOM:()=>ce||document.body,className:X(O,m,`${t}-target-placeholder`),style:{...se||$0,position:oe?`absolute`:`fixed`,pointerEvents:`none`,...k}})))},n2=e=>{let{stepProps:t,current:n,type:r,indicatorsRender:i,actionsRender:a}=e,{prefixCls:o,total:s=1,title:c,onClose:l,onPrev:u,onNext:d,onFinish:f,cover:p,description:m,nextButtonProps:h,prevButtonProps:g,type:_,closable:v,classNames:y={},styles:b={}}=t,x=_??r,S=V(v??{},!0),[C]=ja(`global`,wa.global),[w]=ja(`Tour`,wa.Tour),T=$.createElement(`button`,{type:`button`,onClick:l,className:X(`${o}-close`,y.close),style:b.close,"aria-label":C?.close,...S},v?.closeIcon||$.createElement(ne,{className:`${o}-close-icon`})),E=n===s-1,D=()=>{u?.(),g?.onClick?.()},O=()=>{E?f?.():d?.(),h?.onClick?.()},k=Ti(c)?$.createElement(`div`,{className:X(`${o}-header`,y.header),style:b.header},$.createElement(`div`,{className:X(`${o}-title`,y.title),style:b.title},c)):null,A=Ti(m)?$.createElement(`div`,{className:X(`${o}-description`,y.description),style:b.description},m):null,j=Ti(p)?$.createElement(`div`,{className:X(`${o}-cover`,y.cover),style:b.cover},p):null,M;M=i?i(n,s):Lt(Array.from({length:s}).keys()).map((e,t)=>$.createElement(`span`,{key:e,className:X(t===n&&`${o}-indicator-active`,`${o}-indicator`,y.indicator),style:b.indicator}));let N=x===`primary`?`default`:`primary`,P={type:`default`,ghost:x===`primary`},F=$.createElement($.Fragment,null,n===0?null:$.createElement(of,{size:`small`,...P,...g,onClick:D,className:X(`${o}-prev-btn`,g?.className)},g?.children??w?.Previous),$.createElement(of,{size:`small`,type:N,...h,onClick:O,className:X(`${o}-next-btn`,h?.className)},h?.children??(E?w?.Finish:w?.Next)));return $.createElement(`div`,{className:`${o}-panel`},$.createElement(`div`,{className:X(`${o}-section`,y.section),style:b.section},v&&T,j,k,A,$.createElement(`div`,{className:X(`${o}-footer`,y.footer),style:b.footer},s>1&&$.createElement(`div`,{className:X(`${o}-indicators`,y.indicators),style:b.indicators},M),$.createElement(`div`,{className:X(`${o}-actions`,y.actions),style:b.actions},a?a(F,{current:n,total:s}):F))))},r2=e=>{let{componentCls:t,padding:n,paddingXS:r,borderRadius:i,borderRadiusXS:a,colorPrimary:o,colorFill:s,indicatorHeight:c,indicatorWidth:l,boxShadowTertiary:u,zIndexPopup:d,colorBgElevated:f,fontWeightStrong:p,marginXS:m,colorTextLightSolid:h,tourBorderRadius:g,colorWhite:_,primaryNextBtnHoverBg:v,closeBtnSize:y,motionDurationSlow:b,antCls:x,primaryPrevBtnBg:S,motionDurationMid:C}=e,[w,T]=Sr(x,`tooltip`);return[{[t]:{...ur(e),position:`absolute`,zIndex:d,maxWidth:`fit-content`,visibility:`visible`,width:520,[w(`arrow-background-color`)]:f,"&-pure":{maxWidth:`100%`,position:`relative`},[`&${t}-hidden`]:{display:`none`},[`${t}-panel`]:{position:`relative`},[`${t}-section`]:{textAlign:`start`,textDecoration:`none`,borderRadius:g,boxShadow:u,position:`relative`,backgroundColor:f,border:`none`,backgroundClip:`padding-box`,[`${t}-close`]:{position:`absolute`,top:n,insetInlineEnd:n,color:e.colorIcon,background:`none`,border:`none`,width:y,height:y,borderRadius:e.borderRadiusSM,transition:[`color`,`background-color`].map(e=>`${e} ${C}`).join(`, `),display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,"&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...mr(e)},[`${t}-cover`]:{textAlign:`center`,padding:`${Q(e.calc(n).add(y).add(r).equal())} ${Q(n)} 0`,img:{width:`100%`}},[`${t}-header`]:{padding:`${Q(n)} ${Q(n)} ${Q(r)}`,width:`calc(100% - ${Q(y)})`,wordBreak:`break-word`,[`${t}-title`]:{fontWeight:p}},[`${t}-description`]:{padding:`0 ${Q(n)}`,wordWrap:`break-word`},[`${t}-footer`]:{padding:`${Q(r)} ${Q(n)} ${Q(n)}`,textAlign:`end`,borderRadius:`0 0 ${Q(a)} ${Q(a)}`,display:`flex`,[`${t}-indicators`]:{display:`inline-block`,[`${t}-indicator`]:{width:l,height:c,display:`inline-block`,borderRadius:`50%`,background:s,"&:not(:last-child)":{marginInlineEnd:c},"&-active":{background:o}}},[`${t}-actions`]:{marginInlineStart:`auto`,[`${x}-btn`]:{marginInlineStart:m}}}},[`${t}-primary, &${t}-primary`]:{[w(`arrow-background-color`)]:o,[`${t}-section`]:{color:h,textAlign:`start`,textDecoration:`none`,backgroundColor:o,borderRadius:i,boxShadow:u,[`${t}-close`]:{color:h},[`${t}-indicators`]:{[`${t}-indicator`]:{background:S,"&-active":{background:h}}},[`${t}-prev-btn`]:{color:h,borderColor:S,backgroundColor:o,"&:hover":{backgroundColor:S,borderColor:`transparent`}},[`${t}-next-btn`]:{color:o,borderColor:`transparent`,background:_,"&:hover":{background:v}}}}},[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${b}`}},[[`&-placement-left`,`&-placement-leftTop`,`&-placement-leftBottom`,`&-placement-right`,`&-placement-rightTop`,`&-placement-rightBottom`].join(`,`)]:{[`${t}-section`]:{borderRadius:e.min(g,8)}}},hy(e,T(`arrow-background-color`))]},i2=yr(`Tour`,e=>{let{borderRadiusLG:t}=e;return r2(wn(e,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t}))},e=>({zIndexPopup:e.zIndexPopupBase+70,closeBtnSize:e.fontSize*e.lineHeight,primaryPrevBtnBg:new pe(e.colorTextLightSolid).setA(.15).toRgbString(),primaryNextBtnHoverBg:new pe(e.colorBgTextHover).onBackground(e.colorWhite).toRgbString(),...py({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...dy(e)})),a2=ag(e=>{let{prefixCls:t,current:n=0,total:r=6,className:i,style:a,type:o,closable:s,closeIcon:c,...l}=e,{getPrefixCls:u}=$.useContext(Vt),d=u(`tour`,t),[f,p]=i2(d),[m,h]=tc({closable:s,closeIcon:c},null,{closable:!0,closeIconRender:e=>$.isValidElement(e)?Io(e,{className:X(e.props?.className,`${d}-close-icon`)}):e});return $.createElement(zy,{prefixCls:d,hashId:f,className:X(i,`${d}-pure`,o&&`${d}-${o}`,p),style:a},$.createElement(n2,{stepProps:{...l,prefixCls:d,total:r,closable:m?{closeIcon:h}:void 0},current:n,type:o}))}),o2=e=>{let{prefixCls:t,type:n,rootClassName:r,indicatorsRender:i,actionsRender:a,steps:o,closeIcon:s,keyboard:c=!0,classNames:l,styles:u,className:d,style:f,...p}=e,{getPrefixCls:m,direction:h,closeIcon:g,className:_,style:v,classNames:y,styles:b}=Wt(`tour`),x=m(`tour`,t),[S,C]=i2(x),[,w]=cr(),T=$.useMemo(()=>o?.map(e=>({...e,className:X(e.className,{[`${x}-primary`]:(e.type??n)===`primary`})})),[x,o,n]),E={...e,steps:T},[D,O]=zi([y,l],[b,u],{props:E}),k=e=>by({arrowPointAtCenter:e?.arrowPointAtCenter??!0,autoAdjustOverflow:!0,offset:w.marginXXS,arrowWidth:w.sizePopupArrow,borderRadius:w.borderRadius}),A=X({[`${x}-rtl`]:h===`rtl`},S,C,r,_,D.root,d),j={...O,mask:{...O.root,...O.mask,...v,...f}},M=(e,t)=>$.createElement(n2,{styles:j,classNames:D,type:n,stepProps:e,current:t,indicatorsRender:i,actionsRender:a}),[N,P]=vc(`Tour`,p.zIndex);return $.createElement(fc.Provider,{value:P},$.createElement(t2,{...p,styles:j,classNames:D,closeIcon:s??g,keyboard:c,zIndex:N,rootClassName:A,prefixCls:x,animated:!0,renderPanel:M,builtinPlacements:k,steps:T}))};o2._InternalPanelDoNotUseOrYouWillBeFired=a2;var s2=e=>{let t=new Map;return e.forEach((e,n)=>{t.set(e,n)}),t},c2=e=>{let t=new Map;return e.forEach(({disabled:e,key:n},r)=>{e&&t.set(n,r)}),t};function l2(e,t){let n=e===`right`;return t===`rtl`?n?$.createElement(ee,null):$.createElement(T,null):n?$.createElement(T,null):$.createElement(ee,null)}var u2=({type:e,actions:t,moveToLeft:n,moveToRight:r,leftActive:i,rightActive:a,direction:o,disabled:s})=>{let c=e===`right`,l=c?t[0]:t[1],u=c?r:n,d=c?a:i,f=l2(e,o);if($.isValidElement(l)){let e=l;return $.cloneElement(e,{disabled:s||!d,onClick:t=>{e?.props?.onClick?.(t),u?.(t)}})}return $.createElement(of,{type:`primary`,size:`small`,disabled:s||!d,onClick:e=>u?.(e),icon:f},l)},d2=e=>{let{className:t,style:n,oneWay:r,actions:i,...a}=e;return $.createElement(`div`,{className:t,style:n},$.createElement(u2,{type:`right`,actions:i,...a}),!r&&$.createElement(u2,{type:`left`,actions:i,...a}),i.slice(r?1:2))},f2=(e,t,n)=>{let r=$.useMemo(()=>(e||[]).map(e=>t?{...e,key:t(e)}:e),[e,t]),[i,a]=$.useMemo(()=>{let e=[],t=Array.from({length:n?.length??0}),i=s2(n||[]);return r.forEach(n=>{if(i.has(n.key)){let e=i.get(n.key);t[e]=n}else e.push(n)}),[e,t]},[r,n]);return[r,i.filter(Boolean),a.filter(Boolean)]},p2=[];function m2(e,t){let n=e.filter(e=>t.has(e));return e.length===n.length?e:n}function h2(e){return Array.from(e).join(`;`)}function g2(e,t,n){let[r,i]=$.useMemo(()=>[new Set(e.map(e=>e?.key)),new Set(t.map(e=>e?.key))],[e,t]),[a,o]=v(p2,n),s=$.useMemo(()=>m2(a,r),[a,r]),c=$.useMemo(()=>m2(a,i),[a,i]);return $.useEffect(()=>{o([].concat(Lt(m2(a,r)),Lt(m2(a,i))))},[h2(r),h2(i)]),[s,c,J(e=>{o([].concat(Lt(e),Lt(c)))}),J(e=>{o([].concat(Lt(s),Lt(e)))})]}var _2=e=>{let{placeholder:t=``,value:n,prefixCls:r,disabled:i,onChange:a,handleClear:o}=e,s=$.useCallback(e=>{a?.(e),e.target.value===``&&o?.()},[a]);return $.createElement(vB,{placeholder:t,className:r,value:n,onChange:s,disabled:i,allowClear:!0,prefix:$.createElement(W,null)})},v2=$.memo(e=>{let{prefixCls:t,classNames:n,styles:r,renderedText:i,renderedEl:a,item:o,checked:s,disabled:c,onClick:l,onRemove:u,showRemove:d}=e,f=c||o?.disabled,p=X(`${t}-content-item`,n.item,{[`${t}-content-item-disabled`]:f,[`${t}-content-item-checked`]:s&&!f}),m;(typeof i==`string`||Ei(i))&&(m=String(i));let[h]=ja(`Transfer`,wa.Transfer),g={className:p,style:r.item,title:m},_=$.createElement(`span`,{className:X(`${t}-content-item-text`,n.itemContent),style:r.itemContent},a);return d?$.createElement(`li`,{...g},_,$.createElement(`button`,{type:`button`,disabled:f,className:`${t}-content-item-remove`,"aria-label":h?.remove,onClick:()=>u?.(o)},$.createElement(ue,null))):(g.onClick=f?void 0:e=>l(o,e),$.createElement(`li`,{...g},$.createElement(kR,{className:X(`${t}-checkbox`,n.itemIcon),style:r.itemIcon,checked:s,disabled:f}),_))}),y2=[`handleFilter`,`handleClear`,`checkedKeys`],b2=e=>({simple:!0,showSizeChanger:!1,showLessItems:!1,...e}),x2=$.forwardRef((e,t)=>{let{prefixCls:n,classNames:r,styles:i,filteredRenderItems:a,selectedKeys:o,disabled:s,showRemove:c,pagination:l,onScroll:u,onItemSelect:d,onItemRemove:f}=e,[p,m]=$.useState(1),h=$.useMemo(()=>l?b2(Oi(l)?l:{}):null,[l]),[g,_]=v(10,h?.pageSize);$.useEffect(()=>{if(h){let e=Math.ceil(a.length/g);m(Math.min(p,e))}},[a,h,g]);let y=(e,t)=>{d(e.key,!o.includes(e.key),t)},b=e=>{f?.([e.key])},x=e=>{m(e)},S=(e,t)=>{m(e),_(t)},C=$.useMemo(()=>h?a.slice((p-1)*g,p*g):a,[p,a,h,g]);$.useImperativeHandle(t,()=>({items:C}));let w=h?$.createElement(WG,{size:`small`,disabled:s,simple:h.simple,pageSize:g,showLessItems:h.showLessItems,showSizeChanger:h.showSizeChanger,className:`${n}-pagination`,total:a.length,current:p,onChange:x,onShowSizeChange:S}):null;return $.createElement($.Fragment,null,$.createElement(`ul`,{className:X(`${n}-content`,r.list,{[`${n}-content-show-remove`]:c}),style:i.list,onScroll:u},(C||[]).map(({renderedEl:e,renderedText:t,item:a})=>$.createElement(v2,{key:a.key,prefixCls:n,classNames:r,styles:i,item:a,renderedText:t,renderedEl:e,showRemove:c,onClick:y,onRemove:b,checked:o.includes(a.key),disabled:s}))),w)}),S2=()=>null;function C2(e){return Ti(e)&&Oi(e)&&!$.isValidElement(e)}function w2(e){return e.filter(e=>!e.disabled).map(e=>e.key)}function T2(e,t){for(let n of[e,t.title,t.key]){if(Di(n))return n;if(Ei(n))return String(n)}return``}var E2=e=>e!==void 0,D2=e=>Oi(e)?{...e,defaultValue:e.defaultValue||``}:{defaultValue:``,placeholder:``},O2=e=>{let{prefixCls:t,style:n,classNames:r,styles:i,dataSource:a=[],titleText:o=``,checkedKeys:s,disabled:c,showSearch:l=!1,searchPlaceholder:d,notFoundContent:f,selectAll:p,deselectAll:m,selectCurrent:h,selectInvert:g,removeAll:_,removeCurrent:v,showSelectAll:y=!0,showRemove:b,pagination:x,direction:S,itemsUnit:C,itemUnit:w,selectAllLabel:T,selectionsIcon:E,footer:D,renderList:O,onItemSelectAll:k,onItemRemove:A,handleFilter:j,handleClear:M,filterOption:N,render:P=S2}=e,F=`${t}-section`,I=`${t}-list`,L=D2(l),[R,z]=(0,$.useState)(L.defaultValue),B=(0,$.useRef)({}),V=e=>{z(e.target.value),j(e)},H=()=>{z(``),M()},U=(e,t)=>ki(N)?N(R,t,S):e.includes(R),W=e=>{let t=O?O({...e,onItemSelect:(t,n)=>e.onItemSelect(t,n)}):null,n=!!t;return n||(t=$.createElement(x2,{ref:B,...e,prefixCls:I})),{customize:n,bodyContent:t}},G=e=>{let t=P(e),n=C2(t);return{item:e,renderedEl:n?t.label:t,renderedText:n?t.value:T2(t,e)}},ee=(0,$.useMemo)(()=>Array.isArray(f)?f[S===`left`?0:1]:f,[f,S]),[K,te]=(0,$.useMemo)(()=>{let e=[],t=[];return a.forEach(n=>{let r=G(n);R&&!U(r.renderedText,n)||(e.push(n),t.push(r))}),[e,t]},[a,R,N,S]),ne=(0,$.useMemo)(()=>K.filter(e=>s.includes(e.key)&&!e.disabled),[s,K]),re=(0,$.useMemo)(()=>{if(ne.length===0)return`none`;let e=s2(s);return K.every(t=>e.has(t.key)||!!t.disabled)?`all`:`part`},[ne.length,s,K]),J=()=>{let t=l?$.createElement(`div`,{className:`${I}-body-search-wrapper`},$.createElement(_2,{prefixCls:`${I}-search`,onChange:V,handleClear:H,placeholder:L.placeholder||d,value:R,disabled:c})):null,{customize:n,bodyContent:a}=W({...u(e,y2),filteredItems:K,filteredRenderItems:te,selectedKeys:s,classNames:r,styles:i}),o;return o=n?$.createElement(`div`,{className:`${I}-body-customize-wrapper`},a):K.length?a:$.createElement(`div`,{className:`${I}-body-not-found`},ee),$.createElement(`div`,{className:X(`${I}-body`,{[`${I}-body-with-search`]:l},r.body),style:i.body},t,o)},ie=$.createElement(kR,{disabled:!a.some(e=>!e.disabled)||c,checked:re===`all`,indeterminate:re===`part`,className:`${I}-checkbox`,onChange:()=>{k?.(K.filter(e=>!e.disabled).map(({key:e})=>e),re!==`all`)}}),ae=(e,t)=>{if(T)return ki(T)?T({selectedCount:e,totalCount:t}):T;let n=t>1?C:w;return $.createElement($.Fragment,null,(e>0?`${e}/`:``)+t,` `,n)},oe=D&&(D.length<2?D(e):D(e,{direction:S})),se=oe?$.createElement(`div`,{className:X(`${I}-footer`,r.footer),style:i.footer},oe):null,ce=!b&&!x&&ie,le;le=b?[x?{key:`removeCurrent`,label:v,onClick(){let e=w2((B.current?.items||[]).map(e=>e.item));A?.(e)}}:null,{key:`removeAll`,label:_,onClick(){A?.(w2(K))}}].filter(Boolean):[{key:`selectAll`,label:re===`all`?m:p,onClick(){let e=w2(K);k?.(e,e.length!==s.length)}},x?{key:`selectCurrent`,label:h,onClick(){let e=B.current?.items||[];k?.(w2(e.map(e=>e.item)),!0)}}:null,{key:`selectInvert`,label:g,onClick(){let e=w2((B.current?.items||[]).map(e=>e.item)),t=new Set(s),n=new Set(t);e.forEach(e=>{t.has(e)?n.delete(e):n.add(e)}),k?.(Lt(n),`replace`)}}];let Y=$.createElement(HH,{className:`${I}-header-dropdown`,menu:{items:le},disabled:c},E2(E)?E:$.createElement(q,null));return $.createElement(`div`,{className:X(F,r.section,{[`${F}-with-pagination`]:!!x,[`${F}-with-footer`]:!!oe}),style:{...n,...i.section}},$.createElement(`div`,{className:X(`${I}-header`,r.header),style:i.header},y?$.createElement($.Fragment,null,ce,Y):null,$.createElement(`span`,{className:`${I}-header-selected`},ae(ne.length,K.length)),$.createElement(`span`,{className:X(`${I}-header-title`,r.title),style:i.title},o)),J(),se)},k2=e=>{let{antCls:t,componentCls:n,listHeight:r,controlHeightLG:i}=e,a=`${t}-table`,o=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-section`]:{flex:`1 1 50%`,width:`auto`,height:`auto`,minHeight:r,minWidth:0},[`${a}-wrapper`]:{[`${a}-small`]:{border:0,borderRadius:0,[`${a}-selection-column`]:{width:i,minWidth:i}},[`${a}-pagination${a}-pagination`]:{margin:0,padding:e.paddingXS}},[`${o}[disabled]`]:{backgroundColor:`transparent`}}}},A2=(e,t)=>{let{componentCls:n,colorBorder:r}=e;return{[`${n}-section`]:{borderColor:t,[`${n}-list-search:not([disabled])`]:{borderColor:r}}}},j2=e=>{let{componentCls:t}=e;return{[`${t}-status-error`]:{...A2(e,e.colorError)},[`${t}-status-warning`]:{...A2(e,e.colorWarning)}}},M2=e=>{let{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:i,itemHeight:a,headerHeight:o,transferHeaderVerticalPadding:s,itemPaddingBlock:c,controlItemBgActive:l,colorTextDisabled:u,colorTextSecondary:d,listHeight:f,listWidth:p,listWidthLG:m,fontSizeIcon:h,marginXS:g,paddingSM:_,lineType:v,antCls:y,iconCls:b,motionDurationSlow:x,controlItemBgHover:S,borderRadiusLG:C,colorBgContainer:w,colorText:T,controlItemBgActiveHover:E}=e,D=Q(e.calc(C).sub(i).equal());return{display:`flex`,flexDirection:`column`,width:p,height:f,border:`${Q(i)} ${v} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:m,height:`auto`},[`${t}-list`]:{"&-search":{[`${b}-search`]:{color:u}},"&-header":{display:`flex`,flex:`none`,alignItems:`center`,height:o,padding:`${Q(e.calc(s).sub(i).equal())} ${Q(_)} ${Q(s)}`,color:T,background:w,borderBottom:`${Q(i)} ${v} ${r}`,borderRadius:`${Q(C)} ${Q(C)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:`none`},"&-title":{...lr,flex:`0 1 auto`,textAlign:`end`,marginInlineStart:`auto`},"&-dropdown":{...dr(),fontSize:h,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:_}},"&-content":{flex:`auto`,margin:0,padding:0,overflow:`auto`,listStyle:`none`,borderRadius:`0 0 ${D} ${D}`,"&-item":{display:`flex`,alignItems:`center`,minHeight:a,padding:`${Q(c)} ${Q(_)}`,transition:`all ${x}`,"> *:not(:last-child)":{marginInlineEnd:g},"> *":{flex:`none`},"&-text":{...lr,flex:`auto`},"&-remove":{...vr(e),color:n,"&:hover, &:focus":{color:d},"&:disabled":{color:u,cursor:`not-allowed`}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:S,cursor:`pointer`},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:E}},"&-checked":{backgroundColor:l},"&-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:`${Q(i)} ${v} ${r}`,[`${y}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:`none`,width:`100%`,margin:`auto 0`,color:u,textAlign:`center`},"&-footer":{borderTop:`${Q(i)} ${v} ${r}`},"&-checkbox":{lineHeight:1}}}},N2=e=>{let{antCls:t,iconCls:n,componentCls:r,marginXS:i,marginXXS:a,fontSizeIcon:o,colorBgContainerDisabled:s}=e;return{[r]:{...ur(e),position:`relative`,display:`flex`,alignItems:`stretch`,[`${r}-disabled`]:{[`${r}-section`]:{background:s}},[`${r}-section`]:M2(e),[`${r}-actions`]:{display:`flex`,flex:`none`,flexDirection:`column`,alignSelf:`center`,margin:`0 ${Q(i)}`,verticalAlign:`middle`,gap:a,[`${t}-btn ${n}`]:{fontSize:o}}}}},P2=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:`rtl`}}},F2=yr(`Transfer`,e=>{let t=wn(e);return[N2(t),k2(t),j2(t),P2(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:i,lineWidth:a}=e,o=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:i,itemHeight:r,itemPaddingBlock:(r-o)/2,transferHeaderVerticalPadding:Math.ceil((i-a-o)/2)}}),I2=e=>{let{prefixCls:t,className:n,rootClassName:r,classNames:i,styles:a,style:o,listStyle:s,operationStyle:c,operations:l,actions:u,dataSource:d,targetKeys:f=[],selectedKeys:p,selectAllLabels:m=[],locale:h={},titles:g,disabled:_,showSearch:v=!1,showSelectAll:y,oneWay:b,pagination:x,status:S,selectionsIcon:C,filterOption:w,render:T,footer:E,children:D,rowKey:O,onScroll:k,onChange:A,onSearch:j,onSelectChange:M}=e,{getPrefixCls:N,renderEmpty:P,direction:F,className:I,style:L,classNames:R,styles:z,selectionsIcon:B}=Wt(`transfer`),V=(0,$.useContext)(Vo),H=_??V,U={...e,disabled:H},W=N(`transfer`,t),[G,ee]=F2(W),K=u||l||[],q=F===`rtl`,[te,ne,re]=f2(d,O,f),[J,ie,ae,oe]=g2(ne,re,p),[se,ce]=ac(e=>e.key),[le,Y]=ac(e=>e.key),ue=(0,$.useCallback)((e,t)=>{e===`left`?ae(ki(t)?t(J||[]):t):oe(ki(t)?t(ie||[]):t)},[J,ie]),de=(e,t)=>{(e===`left`?ce:Y)(t)},fe=(0,$.useCallback)((e,t)=>{e===`left`?M?.(t,ie):M?.(J,t)},[J,ie]),pe=e=>g??e.titles??[],me=e=>{k?.(`left`,e)},he=e=>{k?.(`right`,e)},ge=e=>{let t=e===`right`?J:ie,n=c2(te),r=t.filter(e=>!n.has(e)),i=s2(r),a=e===`right`?r.concat(f):f.filter(e=>!i.has(e)),o=e===`right`?`left`:`right`;ue(o,[]),fe(o,[]),A?.(a,e,r)},_e=()=>{ge(`left`),de(`left`,null)},ve=()=>{ge(`right`),de(`right`,null)},ye=(e,t,n)=>{ue(e,r=>{let i=[];if(n===`replace`)i=t;else if(n)i=Array.from(new Set([].concat(Lt(r),Lt(t))));else{let e=s2(t);i=r.filter(t=>!e.has(t))}return fe(e,i),i}),de(e,null)},be=(e,t)=>ye(`left`,e,t),xe=(e,t)=>ye(`right`,e,t),Se=e=>j?.(`left`,e.target.value),Ce=e=>j?.(`right`,e.target.value),we=()=>j?.(`left`,``),Te=()=>j?.(`right`,``),Ee=(e,t,n,r,i)=>{t.has(n)&&(t.delete(n),de(e,null)),r&&(t.add(n),de(e,i))},De=(e,t,n,r)=>{(e===`left`?se:le)(r,t,n)},Oe=(t,n,r,i)=>{let a=t===`left`,o=a?J:ie,s=new Set(o),c=(a?ne:re).filter(e=>!e.disabled),l=c.findIndex(e=>e.key===n);i&&o.length>0?De(t,c,s,l):Ee(t,s,n,r,l);let u=Array.from(s);fe(t,u),e.selectedKeys||ue(t,u)},ke=(e,t,n)=>{Oe(`left`,e,t,n?.shiftKey)},Ae=(e,t,n)=>{Oe(`right`,e,t,n?.shiftKey)},je=e=>{ue(`right`,[]),A?.(f.filter(t=>!e.includes(t)),`left`,Lt(e))},Me=e=>ki(s)?s({direction:e}):s||{},{hasFeedback:Ne,status:Pe}=(0,$.useContext)(pm),Fe=e=>({...e,notFoundContent:P?.(`Transfer`)||$.createElement(_v,{componentName:`Transfer`}),...h}),Ie=lv(Pe,S),Le=!D&&x,Re=re.filter(e=>ie.includes(e.key)&&!e.disabled).length>0,ze=ne.filter(e=>J.includes(e.key)&&!e.disabled).length>0,[Be,Ve]=zi([R,i],[z,a],{props:U},{source:{},target:{}}),He=X(W,{[`${W}-disabled`]:H,[`${W}-customize-list`]:!!D,[`${W}-rtl`]:q},cv(W,Ie,Ne),I,n,r,G,ee,Be.root),[Ue]=ja(`Transfer`,wa.Transfer),We=Fe(Ue),[Ge,Ke]=pe(We),qe=C??B,Je=[`section`,`header`,`title`,`body`,`list`,`item`,`itemIcon`,`itemContent`,`footer`],Ye=e=>{let t={...Be},n=Be[e];return Je.forEach(e=>{t[e]=X(Be[e],n?.[e])}),t},Xe=e=>{let t={...Ve},n=Ve[e];return Je.forEach(e=>{t[e]={...Ve[e],...n?.[e]}}),t},Ze=Ye(`source`),Qe=Ye(`target`),$e=Xe(`source`),et=Xe(`target`);return $.createElement(`div`,{className:He,style:{...L,...Ve.root,...o}},$.createElement(O2,{prefixCls:W,style:Me(`left`),classNames:Ze,styles:$e,titleText:Ge,dataSource:ne,filterOption:w,checkedKeys:J,handleFilter:Se,handleClear:we,onItemSelect:ke,onItemSelectAll:be,render:T,showSearch:v,renderList:D,footer:E,onScroll:me,disabled:H,direction:q?`right`:`left`,showSelectAll:y,selectAllLabel:m[0],pagination:Le,selectionsIcon:qe,...We}),$.createElement(d2,{className:X(`${W}-actions`,Be.actions),rightActive:ze,moveToRight:ve,leftActive:Re,actions:K,moveToLeft:_e,style:{...c,...Ve.actions},disabled:H,direction:F,oneWay:b}),$.createElement(O2,{prefixCls:W,style:Me(`right`),classNames:Qe,styles:et,titleText:Ke,dataSource:re,filterOption:w,checkedKeys:ie,handleFilter:Ce,handleClear:Te,onItemSelect:Ae,onItemSelectAll:xe,onItemRemove:je,render:T,showSearch:v,renderList:D,footer:E,onScroll:he,disabled:H,direction:q?`left`:`right`,showSelectAll:y,selectAllLabel:m[1],showRemove:b,pagination:Le,selectionsIcon:qe,...We}))};I2.List=O2,I2.Search=_2,I2.Operation=d2;var L2=(e=>{let t=$.useRef({valueLabels:new Map});return $.useMemo(()=>{let{valueLabels:n}=t.current,r=new Map,i=e.map(e=>{let{value:t,label:i}=e,a=i??n.get(t);return r.set(t,a),{...e,label:a}});return t.current.valueLabels=r,[i]},[e])}),R2=(e,t,n,r)=>$.useMemo(()=>{let i=e=>e.map(({value:e})=>e),a=i(e),o=i(t),s=a.filter(e=>!r[e]),c=a,l=o;if(n){let e=VL(a,!0,r);c=e.checkedKeys,l=e.halfCheckedKeys}return[Array.from(new Set([...s,...c])),l]},[e,t,n,r]),z2=e=>Array.isArray(e)?e:e===void 0?[]:[e],B2=e=>{let{label:t,value:n,children:r}=e||{};return{_title:t?[t]:[`title`,`label`],value:n||`value`,key:n||`value`,children:r||`children`}},V2=e=>!e||e.disabled||e.disableCheckbox||e.checkable===!1,H2=(e,t)=>{let n=[],r=e=>{e.forEach(e=>{let i=e[t.children];i&&(n.push(e[t.value]),r(i))})};return r(e),n},U2=e=>e==null,W2=((e,t)=>$.useMemo(()=>AL(e,{fieldNames:t,initWrapper:e=>({...e,valueEntities:new Map}),processEntity:(e,n)=>{let r=e.node[t.value];n.valueEntities.set(r,e)}}),[e,t])),G2=()=>null;function K2(e){return Je(e).map(e=>{if(!$.isValidElement(e)||!e.type)return null;let{key:t,props:{children:n,value:r,...i}}=e,a={key:t,value:r,...i},o=K2(n);return o.length&&(a.children=o),a}).filter(e=>e)}function q2(e){if(!e)return e;let t={...e};return`props`in t||Object.defineProperty(t,"props",{get(){return $e(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function J2(e,t,n,r,i,a){let o=null,s=null;function c(){function e(r,i=`0`,c=!1){return r.map((r,l)=>{let u=`${i}-${l}`,d=r[a.value],f=n.includes(d),p=e(r[a.children]||[],u,f),m=$.createElement(G2,r,p.map(e=>e.node));if(t===d&&(o=m),f){let e={pos:u,node:m,children:p};return c||s.push(e),e}return null}).filter(e=>e)}s||(s=[],e(r),s.sort(({node:{props:{value:e}}},{node:{props:{value:t}}})=>n.indexOf(e)-n.indexOf(t)))}Object.defineProperty(e,"triggerNode",{get(){return $e(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),c(),o}}),Object.defineProperty(e,"allCheckedNodes",{get(){return $e(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),c(),i?s:s.map(({node:e})=>e)}})}var Y2=(e,t,n)=>{let{fieldNames:r,treeNodeFilterProp:i,filterTreeNode:a}=n,{children:o}=r;return $.useMemo(()=>{if(!t||a===!1)return e;let n=typeof a==`function`?a:(e,n)=>String(n[i]).toUpperCase().includes(t.toUpperCase()),r=(e,i=!1)=>e.reduce((e,a)=>{let s=a[o],c=i||n(t,q2(a)),l=r(s||[],c);return(c||l.length)&&e.push({...a,isLeaf:void 0,[o]:l}),e},[]);return r(e)},[e,t,o,i,a])};function X2(e){let t=$.useRef();return t.current=e,$.useCallback((...e)=>t.current(...e),[])}function Z2(e,t){let{id:n,pId:r,rootPId:i}=t,a=new Map,o=[];return e.forEach(e=>{let t=e[n],r={...e,key:e.key||t};a.set(t,r)}),a.forEach(e=>{let t=e[r],n=a.get(t);n?(n.children=n.children||[],n.children.push(e)):(t===i||i===null)&&o.push(e)}),o}function Q2(e,t,n){return $.useMemo(()=>e?n?Z2(e,{id:`id`,pId:`pId`,rootPId:null,...typeof n==`object`?n:{}}):e:K2(t),[t,n,e])}var $2=$.createContext(null),e4=$.createContext(null);function t4(){return t4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t4.apply(this,arguments)}var n4={width:0,height:0,display:`flex`,overflow:`hidden`,opacity:0,border:0,padding:0,margin:0},r4=$.forwardRef((e,t)=>{let{prefixCls:n,multiple:r,searchValue:i,toggleOpen:a,open:o,notFoundContent:s}=lg(),{virtual:c,listHeight:l,listItemHeight:u,listItemScrollOffset:d,treeData:p,fieldNames:m,onSelect:h,popupMatchSelectWidth:g,treeExpandAction:_,treeTitleRender:v,onPopupScroll:y,leftMaxCount:b,leafCountOnly:x,valueEntities:S,classNames:C,styles:w}=$.useContext(e4),{checkable:T,checkedKeys:E,halfCheckedKeys:D,treeExpandedKeys:O,treeDefaultExpandAll:k,treeDefaultExpandedKeys:A,onTreeExpand:j,treeIcon:M,showTreeIcon:N,switcherIcon:P,treeLine:F,treeNodeFilterProp:I,loadData:L,treeLoadedKeys:R,treeMotion:z,onTreeLoad:B,keyEntities:V}=$.useContext($2),H=$.useRef(),U=Qe(()=>p,[o,p],(e,t)=>t[0]&&e[1]!==t[1]),W=$.useMemo(()=>T?{checked:E,halfChecked:D}:null,[T,E,D]);$.useEffect(()=>{o&&!r&&E.length&&H.current?.scrollTo({key:E[0]})},[o]);let G=e=>{e.preventDefault()},ee=(e,t)=>{let{node:n}=t;T&&V2(n)||(h(n.key,{selected:!E.includes(n.key)}),r||a(!1))},[K,q]=$.useState(A),[te,ne]=$.useState(null),re=$.useMemo(()=>O?[...O]:i?te:K,[K,te,O,i]),ie=e=>{q(e),ne(e),j&&j(e)},ae=String(i).toLowerCase(),oe=e=>ae?String(e[I]).toLowerCase().includes(ae):!1;$.useEffect(()=>{i&&ne(H2(p,m))},[i]);let[se,ce]=$.useState(()=>new Map);$.useEffect(()=>{b&&ce(new Map)},[b]);function le(e){let t=e[m.value];if(!se.has(t)){let e=S.get(t);if((e.children||[]).length!==0){let n=e.children.filter(e=>!e.node.disabled&&!e.node.disableCheckbox&&!E.includes(e.node[m.value])).length;se.set(t,n>b)}else se.set(t,!1)}return se.get(t)}let Y=J(e=>{let t=e[m.value];return E.includes(t)||b===null?!1:b<=0?!0:x&&b?le(e):!1}),ue=e=>{for(let t of e)if(!(t.disabled||t.selectable===!1)){if(i){if(oe(t))return t}else return t;if(t[m.children]){let e=ue(t[m.children]);if(e)return e}}return null},[de,fe]=$.useState(null),pe=V[de];$.useEffect(()=>{if(!o)return;let e=null;e=!r&&E.length&&!i?E[0]:(()=>{let e=ue(U);return e?e[m.value]:null})(),fe(e)},[o,i]),$.useImperativeHandle(t,()=>({scrollTo:H.current?.scrollTo,onKeyDown:e=>{let{which:t}=e;switch(t){case f.UP:case f.DOWN:case f.LEFT:case f.RIGHT:H.current?.onKeyDown(e);break;case f.ENTER:if(pe){let e=Y(pe.node),{selectable:t,value:n,disabled:r}=pe?.node||{};t!==!1&&!r&&!e&&ee(null,{node:{key:de},selected:!E.includes(n)})}break;case f.ESC:a(!1)}},onKeyUp:()=>{}}));let me=Qe(()=>!i,[i,O||K],([e],[t,n])=>e!==t&&!!(t||n))?L:null;if(U.length===0)return $.createElement(`div`,{role:`listbox`,className:`${n}-empty`,onMouseDown:G},s);let X={fieldNames:m};return R&&(X.loadedKeys=R),re&&(X.expandedKeys=re),$.createElement(`div`,{onMouseDown:G},pe&&o&&$.createElement(`span`,{style:n4,"aria-live":`assertive`},pe.node.value),$.createElement(PQ.Provider,{value:{nodeDisabled:Y}},$.createElement(O$,t4({classNames:C?.popup,styles:w?.popup,ref:H,focusable:!1,prefixCls:`${n}-tree`,treeData:U,height:l,itemHeight:u,itemScrollOffset:d,virtual:c!==!1&&g!==!1,multiple:r,icon:M,showIcon:N,switcherIcon:P,showLine:F,loadData:me,motion:z,activeKey:de,checkable:T,checkStrictly:!0,checkedKeys:W,selectedKeys:T?[]:E,defaultExpandAll:k,titleRender:v},X,{onActiveChange:fe,onSelect:ee,onCheck:ee,onExpand:ie,onLoad:B,filterTreeNode:oe,expandAction:_,onScroll:y}))))}),i4=`SHOW_ALL`,a4=`SHOW_PARENT`,o4=`SHOW_CHILD`;function s4(e,t,n,r){let i=new Set(e);return t===`SHOW_CHILD`?e.filter(e=>{let t=n[e];return!t||!t.children||!t.children.some(({node:e})=>i.has(e[r.value]))||!t.children.every(({node:e})=>V2(e)||i.has(e[r.value]))}):t===`SHOW_PARENT`?e.filter(e=>{let t=n[e],r=t?t.parent:null;return!r||V2(r.node)||!i.has(r.key)}):e}function c4(e,t){let{searchValue:n,inputValue:r,onSearch:i,autoClearSearchValue:a,filterTreeNode:o,treeNodeFilterProp:s}=t;return $.useMemo(()=>{let t=typeof e==`object`,c={searchValue:n??r,onSearch:i,autoClearSearchValue:a,filterTreeNode:o,treeNodeFilterProp:s,...t?e:{}};return[t?!0:e,c]},[e,n,r,i,a,o,s])}function l4(){return l4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l4.apply(this,arguments)}function u4(e){return!e||typeof e!=`object`}var d4=$.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-tree-select`,value:i,defaultValue:a,onChange:o,onSelect:s,onDeselect:c,showSearch:l,searchValue:u,inputValue:d,onSearch:f,autoClearSearchValue:p,filterTreeNode:m,treeNodeFilterProp:h,showCheckedStrategy:g,treeNodeLabelProp:_,multiple:y,treeCheckable:b,treeCheckStrictly:x,labelInValue:S,maxCount:C,fieldNames:w,treeDataSimpleMode:T,treeData:E,children:D,loadData:O,treeLoadedKeys:k,onTreeLoad:A,treeDefaultExpandAll:j,treeExpandedKeys:M,treeDefaultExpandedKeys:N,onTreeExpand:P,treeExpandAction:F,virtual:I,listHeight:L=200,listItemHeight:R=20,listItemScrollOffset:z=0,onPopupVisibleChange:B,popupMatchSelectWidth:V=!0,treeLine:H,treeIcon:U,showTreeIcon:W,switcherIcon:G,treeMotion:ee,treeTitleRender:K,onPopupScroll:q,classNames:ne,styles:re,...J}=e,ie=te(n),ae=b&&!x,oe=b||x,se=x||S,ce=oe||y,[le,Y]=c4(l,{searchValue:u,inputValue:d,onSearch:f,autoClearSearchValue:p,filterTreeNode:m,treeNodeFilterProp:h}),{searchValue:ue,onSearch:de,autoClearSearchValue:fe=!0,filterTreeNode:pe,treeNodeFilterProp:me=`value`}=Y,[X,he]=v(a,i),ge=$.useMemo(()=>b?g||`SHOW_CHILD`:i4,[g,b]),_e=$.useMemo(()=>B2(w),[JSON.stringify(w)]),[ve,ye]=v(``,ue),be=ve||``,xe=e=>{ye(e),de?.(e)},Se=Q2(E,D,T),{keyEntities:Ce,valueEntities:we}=W2(Se,_e),Te=$.useCallback(e=>{let t=[],n=[];return e.forEach(e=>{we.has(e)?n.push(e):t.push(e)}),{missingRawValues:t,existRawValues:n}},[we]),Ee=Y2(Se,be,{fieldNames:_e,treeNodeFilterProp:me,filterTreeNode:pe}),De=$.useCallback(e=>{if(e){if(_)return e[_];let{_title:t}=_e;for(let n=0;n<t.length;n+=1){let r=e[t[n]];if(r!==void 0)return r}}},[_e,_]),Oe=$.useCallback(e=>z2(e).map(e=>u4(e)?{value:e}:e),[]),ke=$.useCallback(e=>Oe(e).map(e=>{let{label:t}=e,{value:n,halfChecked:r}=e,i,a=we.get(n);return a?(t=K?K(a.node):t??De(a.node),i=a.node.disabled):t===void 0&&(t=Oe(X).find(e=>e.value===n).label),{label:t,value:n,halfChecked:r,disabled:i}}),[we,De,Oe,X]),Ae=$.useMemo(()=>Oe(X===null?[]:X),[Oe,X]),[je,Me]=$.useMemo(()=>{let e=[],t=[];return Ae.forEach(n=>{n.halfChecked?t.push(n):e.push(n)}),[e,t]},[Ae]),Ne=$.useMemo(()=>je.map(e=>e.value),[je]),[Pe,Fe]=R2(je,Me,ae,Ce),[Ie]=L2($.useMemo(()=>{let e=ke(s4(Pe,ge,Ce,_e).map(e=>Ce[e]?.node?.[_e.value]??e).map(e=>{let t=je.find(t=>t.value===e);return{value:e,label:S?t?.label:K?.(t)}})),t=e[0];return!ce&&t&&U2(t.value)&&U2(t.label)?[]:e.map(e=>({...e,label:e.label??e.value}))},[_e,ce,Pe,je,ke,ge,Ce])),Le=$.useMemo(()=>ce&&(ge===`SHOW_CHILD`||x||!b)?C:null,[C,ce,x,ge,b]),Re=X2((e,t,n)=>{let r=s4(e,ge,Ce,_e);if(!(Le&&r.length>Le)&&(he(ke(e)),fe&&ye(``),o)){let i=e;ae&&(i=r.map(e=>{let t=we.get(e);return t?t.node[_e.value]:e}));let{triggerValue:a,selected:s}=t||{triggerValue:void 0,selected:void 0},c=i;if(x){let e=Me.filter(e=>!i.includes(e.value));c=[...c,...e]}let l=ke(c),u={preValue:je,triggerValue:a},d=!0;(x||n===`selection`&&!s)&&(d=!1),J2(u,a,e,Se,d,_e),oe?u.checked=s:u.selected=s;let f=se?l:l.map(e=>e.value);o(ce?f:f[0],se?null:l.map(e=>e.label),u)}}),ze=$.useCallback((e,{selected:t,source:n})=>{let r=Ce[e]?.node,i=r?.[_e.value]??e;if(!ce)Re([i],{selected:!0,triggerValue:i},`option`);else{let e=t?[...Ne,i]:Pe.filter(e=>e!==i);if(ae){let{missingRawValues:n,existRawValues:r}=Te(e),i=r.map(e=>we.get(e).key),a;t?{checkedKeys:a}=VL(i,!0,Ce):{checkedKeys:a}=VL(i,{checked:!1,halfCheckedKeys:Fe},Ce),e=[...n,...a.map(e=>Ce[e].node[_e.value])]}Re(e,{selected:t,triggerValue:i},n||`option`)}t||!ce?s?.(i,q2(r)):c?.(i,q2(r))},[Te,we,Ce,_e,ce,Ne,Re,ae,s,c,Pe,Fe,C]),Be=$.useCallback(e=>{B&&B(e)},[B]),Ve=X2((e,t)=>{let n=e.map(e=>e.value);if(t.type===`clear`){Re(n,{},`selection`);return}t.values.length&&ze(t.values[0].value,{selected:!1,source:`selection`})}),He=$.useMemo(()=>({virtual:I,popupMatchSelectWidth:V,listHeight:L,listItemHeight:R,listItemScrollOffset:z,treeData:Ee,fieldNames:_e,onSelect:ze,treeExpandAction:F,treeTitleRender:K,onPopupScroll:q,leftMaxCount:C===void 0?null:C-Ie.length,leafCountOnly:ge===`SHOW_CHILD`&&!x&&!!b,valueEntities:we,classNames:ne,styles:re}),[I,V,L,R,z,Ee,_e,ze,F,K,q,C,Ie.length,ge,x,b,we,ne,re]),Ue=$.useMemo(()=>({checkable:oe,loadData:O,treeLoadedKeys:k,onTreeLoad:A,checkedKeys:Pe,halfCheckedKeys:Fe,treeDefaultExpandAll:j,treeExpandedKeys:M,treeDefaultExpandedKeys:N,onTreeExpand:P,treeIcon:U,treeMotion:ee,showTreeIcon:W,switcherIcon:G,treeLine:H,treeNodeFilterProp:me,keyEntities:Ce}),[oe,O,k,A,Pe,Fe,j,M,N,P,U,ee,W,G,H,me,Ce]);return $.createElement(e4.Provider,{value:He},$.createElement($2.Provider,{value:Ue},$.createElement(f_,l4({ref:t},J,{classNames:ne,styles:re,id:ie,prefixCls:r,mode:ce?`multiple`:void 0,displayValues:Ie,onDisplayValuesChange:Ve,autoClearSearchValue:fe,showSearch:le,searchValue:be,onSearch:xe,OptionList:r4,emptyOptions:!Se.length,onPopupVisibleChange:Be,popupMatchSelectWidth:V}))))});d4.TreeNode=G2,d4.SHOW_ALL=i4,d4.SHOW_PARENT=a4,d4.SHOW_CHILD=o4;var f4=d4,p4=e=>{let{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,i=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${Q(e.paddingXS)} ${Q(e.calc(e.paddingXS).div(2).equal())}`},P$(n,wn(e,{colorBgContainer:r}),!1),{[i]:{borderRadius:0,[`${i}-list-holder-inner`]:{alignItems:`stretch`,[`${i}-treenode`]:{[`${i}-node-content-wrapper`]:{flex:`auto`}}}}},fR(`${n}-checkbox`,e),{"&-rtl":{direction:`rtl`,[`${i}-switcher${i}-switcher_close`]:{[`${i}-switcher-icon svg`]:{transform:`rotate(90deg)`}}}}]}]};function m4(e,t,n){return yr(`TreeSelect`,e=>p4(wn(e,{treePrefixCls:t})),F$,{resetFont:!1})(e,n)}var h4=$.forwardRef((e,t)=>{let{prefixCls:n,size:r,disabled:i,bordered:a=!0,style:o,className:s,rootClassName:c,treeCheckable:l,multiple:d,listHeight:f=256,listItemHeight:p,placement:m,notFoundContent:h,switcherIcon:g,treeLine:_,getPopupContainer:v,popupClassName:y,dropdownClassName:b,treeIcon:x=!1,transitionName:S,choiceTransitionName:C=``,status:w,treeExpandAction:T,builtinPlacements:E,dropdownMatchSelectWidth:D,popupMatchSelectWidth:O,allowClear:k,variant:A,dropdownStyle:j,dropdownRender:M,popupRender:N,onDropdownVisibleChange:P,onOpenChange:F,tagRender:I,maxCount:L,showCheckedStrategy:R,treeCheckStrictly:z,styles:B,classNames:V,...H}=e,{getPrefixCls:U,getPopupContainer:W,direction:G,styles:ee,classNames:K,switcherIcon:q}=Wt(`treeSelect`),{renderEmpty:te,virtual:ne,popupMatchSelectWidth:re,popupOverflow:J}=$.useContext(Vt),[,ie]=cr(),ae=p??ie?.controlHeightSM+ie?.paddingXXS,oe=U(),se=U(`select`,n),ce=U(`select-tree`,n),le=U(`tree-select`,n),{compactSize:Y,compactItemClassnames:ue}=Pl(se,G),de=la(se),fe=la(le),[pe,me]=Mv(se,de);m4(le,ce,fe);let[he,ge]=vv(`treeSelect`,A,a),_e=jl(e=>r??Y??e),ve=$.useContext(Vo),ye=i??ve,{status:be,hasFeedback:xe,isFormItemInput:Se,feedbackIcon:Ce}=$.useContext(pm),we=lv(be,w),Te={...e,size:_e,disabled:ye,status:we,variant:he},[Ee,De]=zi([K,V],[ee,B],{props:Te},{popup:{_default:`root`}}),Oe=X(y||b,`${le}-dropdown`,{[`${le}-dropdown-rtl`]:G===`rtl`},c,Ee.root,Ee.popup?.root,me,de,fe,pe),ke=Pv(N||M),Ae=F||P,je=!!(l||d),Me=$.useMemo(()=>{if(!(L&&(R===`SHOW_ALL`&&!z||R===`SHOW_PARENT`)))return L},[L,R,z]),Ne=Fv(e.suffixIcon,e.showArrow),Pe=O??D??re,{suffixIcon:Fe,removeIcon:Ie,clearIcon:Le}=Nv({...H,multiple:je,showSuffixIcon:Ne,hasFeedback:xe,feedbackIcon:Ce,prefixCls:se,componentName:`TreeSelect`}),Re=k===!0?{clearIcon:Le}:k,ze;ze=h===void 0?te?.(`Select`)||$.createElement(_v,{componentName:`Select`}):h;let Be=u(H,[`suffixIcon`,`removeIcon`,`clearIcon`]),Ve=$.useMemo(()=>m===void 0?G===`rtl`?`bottomRight`:`bottomLeft`:m,[m,G]),He=X(!n&&le,{[`${se}-lg`]:_e===`large`,[`${se}-sm`]:_e===`small`,[`${se}-rtl`]:G===`rtl`,[`${se}-${he}`]:ge,[`${se}-in-form-item`]:Se},cv(se,we,xe),ue,s,c,Ee?.root,me,de,fe,pe),Ue=g??q,We=e=>$.createElement(R$,{prefixCls:ce,switcherIcon:Ue,treeNodeProps:e,showLine:_}),[Ge]=vc(`SelectLike`,De.popup?.root?.zIndex);return $.createElement(f4,{classNames:Ee,styles:De,virtual:ne,disabled:ye,...Be,popupMatchSelectWidth:Pe,builtinPlacements:bv(E,J),ref:t,prefixCls:se,className:He,style:{...De?.root,...o},listHeight:f,listItemHeight:ae,treeCheckable:l&&$.createElement(`span`,{className:`${se}-tree-checkbox-inner`}),treeLine:!!_,suffixIcon:Fe,multiple:je,placement:Ve,removeIcon:Ie,allowClear:Re,switcherIcon:We,showTreeIcon:x,notFoundContent:ze,getPopupContainer:v||W,treeMotion:null,popupClassName:Oe,popupStyle:{...De.root,...De.popup?.root,zIndex:Ge},popupRender:ke,onPopupVisibleChange:Ae,choiceTransitionName:bl(oe,``,C),transitionName:bl(oe,`slide-up`,S),treeExpandAction:T,tagRender:je?I:void 0,maxCount:Me,showCheckedStrategy:R,treeCheckStrictly:z})}),g4=og(h4,`popupAlign`,e=>u(e,[`visible`]));h4.TreeNode=G2,h4.SHOW_ALL=i4,h4.SHOW_PARENT=a4,h4.SHOW_CHILD=o4,h4._InternalPanelDoNotUseOrYouWillBeFired=g4;var _4=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},v4=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[`
281
+ h${t}&,
282
+ div&-h${t},
283
+ div&-h${t} > textarea,
284
+ h${t}
285
+ `]=_4(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},y4=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...vr(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},b4=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:Le[2]},"u, ins":{textDecoration:`underline`,textDecorationSkipInk:`auto`},"s, del":{textDecoration:`line-through`},strong:{fontWeight:e.fontWeightStrong},"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},table:{width:`100%`,textAlign:`start`,borderCollapse:`separate`,borderSpacing:0,marginBlock:`1em`,"th, td":{padding:Q(e.padding),overflowWrap:`break-word`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"thead > tr:first-child > th:first-child":{borderStartStartRadius:e.borderRadiusLG},"thead > tr:first-child > th:last-child":{borderStartEndRadius:e.borderRadiusLG},"thead > tr > th":{textAlign:`start`,position:`relative`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,backgroundColor:e.colorFillAlter,transition:`background-color ${e.motionDurationMid} ease`,"&:not(:last-child)::before":{position:`absolute`,top:`50%`,insetInlineEnd:0,width:1,height:`1.6em`,backgroundColor:e.colorSplit,transform:`translateY(-50%)`,content:`""`}},"tbody > tr":{"> th, > td":{transition:`background-color ${e.motionDurationMid} ease`},"&:hover > th, &:hover > td":{backgroundColor:e.colorFillAlter}}}}),x4=e=>{let{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:`relative`,"div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:`absolute`,insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:`normal`,fontSize:e.fontSize,fontStyle:`normal`,pointerEvents:`none`},textarea:{margin:`0!important`,MozTransition:`none`,height:`1em`}}}},S4=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),C4=()=>({"a&-ellipsis, span&-ellipsis":{display:`inline-block`,maxWidth:`100%`},"&-ellipsis-single-line":{...lr,"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`}}),w4=yr(`Typography`,e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:`break-word`,lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,userSelect:`none`},"div&, p":{marginBottom:`1em`},...v4(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}},...b4(e),...y4(e),[`${t}-actions`]:{display:`inline`},[`
286
+ ${t}-expand,
287
+ ${t}-collapse,
288
+ ${t}-edit,
289
+ ${t}-copy
290
+ `]:{...vr(e),marginInlineStart:e.marginXXS},[`${t}-actions-start`]:{[`
291
+ ${t}-expand,
292
+ ${t}-collapse,
293
+ ${t}-edit,
294
+ ${t}-copy:not(${t}-copy-icon-only)
295
+ `]:{marginInlineStart:0,marginInlineEnd:e.marginXXS}},...x4(e),...S4(e),...C4(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),T4=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,classNames:a,styles:o,direction:s,maxLength:c,autoSize:l=!0,value:u,onSave:d,onCancel:p,onEnd:m,component:h,enterIcon:g=$.createElement(ke,null)}=e,_=$.useRef(null),v=$.useRef(!1),y=$.useRef(null),[b,x]=$.useState(u);$.useEffect(()=>{x(u)},[u]),$.useEffect(()=>{if(_.current?.resizableTextArea){let{textArea:e}=_.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let S=({target:e})=>{x(e.value.replace(/[\n\r]/g,``))},C=()=>{v.current=!0},w=()=>{v.current=!1},T=({keyCode:e})=>{v.current||(y.current=e)},E=()=>{d(b.trim())},D=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{y.current!==e||v.current||t||n||r||i||(e===f.ENTER?(E(),m?.()):e===f.ESC&&p())},O=()=>{E()},[k,A]=w4(t),j=X(t,`${t}-edit-content`,{[`${t}-rtl`]:s===`rtl`,[`${t}-${h}`]:!!h},r,a.root,k,A);return $.createElement(`div`,{className:j,style:{...o.root,...i}},$.createElement(lG,{ref:_,maxLength:c,value:b,onChange:S,onKeyDown:T,onKeyUp:D,onCompositionStart:C,onCompositionEnd:w,onBlur:O,"aria-label":n,rows:1,autoSize:l,className:a.textarea,style:o.textarea}),g===null?null:Io(g,{className:`${t}-edit-content-confirm`}))},E4=(e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData(`text/plain`,e),t&&r.clipboardData?.setData(`text/html`,e),n=!0};try{return document.addEventListener(`copy`,r,{capture:!0}),document.execCommand(`copy`),n}catch{return!1}finally{document.removeEventListener(`copy`,r,{capture:!0})}},D4=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:`text/html`}),"text/plain":new Blob([e],{type:`text/plain`})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function O4(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await D4(e,n)||E4(e,n))}var k4=({copyConfig:e,children:t})=>{let[n,r]=$.useState(!1),[i,a]=$.useState(!1),o=$.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},c={};return e.format&&(c.format=e.format),$.useEffect(()=>s,[]),{copied:n,copyLoading:i,onClick:J(async n=>{n?.preventDefault(),n?.stopPropagation(),a(!0);try{await O4((ki(e.text)?await e.text():e.text)||GK(t,{skipEmpty:!0}).join(``)||``,c),a(!1),r(!0),s(),o.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(n)}catch(e){throw a(!1),e}})}},A4=(e,t)=>{let n=!!e;return $.useMemo(()=>[n,{...t,...n&&Oi(e)?e:null}],[n,e,t])},j4=e=>{let t=(0,$.useRef)(void 0);return(0,$.useEffect)(()=>{t.current=e}),t.current},M4=(e,t,n)=>(0,$.useMemo)(()=>e===!0?{title:t??n}:(0,$.isValidElement)(e)?{title:e}:Oi(e)?{title:t??n,...e}:{title:e},[e,t,n]),N4=(e,t,n,r,i)=>{let{getPrefixCls:a,direction:o,className:s,style:c,classNames:l,styles:u}=Wt(`typography`),d=r??o,f=a(`typography`,e),p={...i,prefixCls:f,direction:d},m=(0,$.useMemo)(()=>({root:s}),[s]),h=(0,$.useMemo)(()=>({root:c}),[c]),[g,_]=zi([m,l,t],[h,u,n],{props:p});return[g,_,f,d]},P4=$.forwardRef((e,t)=>{let{component:n=`article`,className:r,rootClassName:i,children:a,direction:o,style:s,classNames:c,styles:l,prefixCls:u,...d}=e,[f,p]=w4(u),m=X(u,{[`${u}-rtl`]:o===`rtl`},r,i,f,p,c?.root),h={...l?.root,...s};return $.createElement(n,{...d,className:m,style:h,ref:t},a)}),F4=$.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,direction:a,classNames:o,styles:s,...c}=e,[l,u,d,f]=N4(n,o,s,a,e);return $.createElement(P4,{ref:t,className:X(r,i),direction:f,classNames:l,styles:u,prefixCls:d,...c})}),I4=e=>e===!1?[!1,!1]:GK(e);function L4(e,t,n){return e===!0||e===void 0?t:e||n&&t}function R4(e){let t=document.createElement(`em`);e.appendChild(t);let 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}var z4=e=>[`string`,`number`].includes(typeof e),B4=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l,className:u,style:d}=e,f=I4(a),p=I4(o),{copied:m,copy:h}=r??{},g=n?m:h,v=L4(f[+!!n],g),y=typeof v==`string`?v:g;return $.createElement(Ny,{title:v},$.createElement(`button`,{type:`button`,className:X(`${t}-copy`,u,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),style:d,onClick:c,"aria-label":y,tabIndex:s},n?L4(p[1],$.createElement(_,null),!0):L4(p[0],l?$.createElement(Ne,null):$.createElement(se,null),!0)))},V4=$.forwardRef(({style:e,children:t},n)=>{let r=$.useRef(null);return $.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),$.createElement(`span`,{"aria-hidden":!0,ref:r,style:{position:`fixed`,display:`block`,left:0,top:0,pointerEvents:`none`,backgroundColor:`rgba(255, 0, 0, 0.65)`,...e}},t)}),H4=e=>e.reduce((e,t)=>e+(z4(t)?String(t).length:1),0);function U4(e,t){let n=0,r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;let a=e[i],o=z4(a)?String(a).length:1,s=n+o;if(s>t){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var W4=0,G4=1,K4=2,q4=3,J4=4,Y4={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function X4(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,measureDeps:s,miscDeps:c,onEllipsis:l}=e,u=$.useMemo(()=>Je(r),[r]),d=$.useMemo(()=>H4(u),[r]),f=$.useMemo(()=>i(u,!1),[r].concat(Lt(s))),[p,m]=$.useState(null),h=$.useRef(null),g=$.useRef(null),_=$.useRef(null),v=$.useRef(null),y=$.useRef(null),[b,x]=$.useState(!1),[S,C]=$.useState(W4),[w,T]=$.useState(0),[E,D]=$.useState(null);Pe(()=>{C(t&&n&&d?G4:W4)},[n,r,a,t,u].concat(Lt(s))),Pe(()=>{if(S===G4)C(K4),D(g.current&&getComputedStyle(g.current).whiteSpace);else if(S===K4){let e=!!_.current?.isExceed();C(e?q4:J4),m(e?[0,d]:null),x(e);let t=_.current?.getHeight()||0,n=a===1?0:v.current?.getHeight()||0,r=y.current?.getHeight()||0;T(Math.max(t,n+r)+1),l(e)}},[S]);let O=p?Math.ceil((p[0]+p[1])/2):0;Pe(()=>{let[e,t]=p||[0,0];if(e!==t){let n=(h.current?.getHeight()||0)>w,r=O;t-e===1&&(r=n?e:t),m(n?[e,r]:[r,t])}},[p,O]);let k=$.useMemo(()=>{if(!t)return i(u,!1);if(S!==q4||!p||p[0]!==p[1]){let e=i(u,!1);return[J4,W4].includes(S)?e:$.createElement(`span`,{style:{...Y4,WebkitLineClamp:a}},e)}return i(o?u:U4(u,p[0]),b)},[o,S,p,u].concat(Lt(c))),A={width:n,margin:0,padding:0,whiteSpace:E===`nowrap`?`normal`:`inherit`};return $.createElement($.Fragment,null,k,S===K4&&$.createElement($.Fragment,null,$.createElement(V4,{style:{...A,...Y4,WebkitLineClamp:a},ref:_},f),$.createElement(V4,{style:{...A,...Y4,WebkitLineClamp:a-1},ref:v},f),$.createElement(V4,{style:{...A,...Y4,WebkitLineClamp:1},ref:y},i([],!0))),S===q4&&p&&p[0]!==p[1]&&$.createElement(V4,{style:{...A,top:400},ref:h},i(U4(u,O),!0)),S===G4&&$.createElement(`span`,{style:{whiteSpace:`inherit`},ref:g}))}var Z4=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return $.createElement(Ny,{open:a,...i},r)};function Q4({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function l(e,t){t&&(c=$.createElement(e,{},c))}return l(`strong`,i),l(`u`,n),l(`del`,r),l(`code`,t),l(`mark`,e),l(`kbd`,a),l(`i`,o),c}var $4=`...`,e3=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],t3=$.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,classNames:a,styles:o,direction:s,type:c,disabled:l,children:d,ellipsis:f,editable:p,copyable:m,actions:h,component:g,title:_,onMouseEnter:y,onMouseLeave:b,...x}=e,[C]=ja(`Text`),w=$.useRef(null),T=$.useRef(null),[E,D,O,k]=N4(n,a,o,s,e),A=u(x,e3),[j,M]=A4(p),[N,F]=v(!1,M.editing),{triggerType:I=[`icon`]}=M,L=e=>{e&&M.onStart?.(),F(e)},R=j4(N);Pe(()=>{!N&&R&&T.current?.focus()},[N]);let z=e=>{e?.preventDefault(),L(!0)},B=e=>{M.onChange?.(e),L(!1)},V=()=>{M.onCancel?.(),L(!1)},[H,U]=A4(m),{placement:W=`end`}=h??{},{copied:G,copyLoading:ee,onClick:K}=k4({copyConfig:U,children:d}),[q,te]=$.useState(!1),[ne,re]=$.useState(!1),[J,ie]=$.useState(!1),[ae,oe]=$.useState(!1),[se,ce]=$.useState(!0),[le,Y]=A4(f,{expandable:!1,symbol:e=>e?C?.collapse:C?.expand}),[ue,de]=v(Y.defaultExpanded||!1,Y.expanded),fe=le&&(!ue||Y.expandable===`collapsible`),{rows:pe=1}=Y,me=$.useMemo(()=>fe&&(Y.suffix!==void 0||Y.onEllipsis||Y.expandable||j||H),[fe,Y,j,H]);Pe(()=>{le&&!me&&(te(P(`webkitLineClamp`)),re(P(`textOverflow`)))},[me,le]);let[he,ge]=$.useState(fe),_e=$.useMemo(()=>me?!1:pe===1?ne:q,[me,ne,q]);Pe(()=>{ge(_e&&fe)},[_e,fe]);let ve=M4(Y.tooltip,M.text,d),ye=he&&!!ve.title,be=fe&&(he?ye&&ae:J),xe=fe&&pe===1&&he,Se=fe&&pe>1&&he,Ce=(e,t)=>{de(t.expanded),Y.onExpand?.(e,t)},[we,Te]=$.useState(0),[Ee,De]=$.useState(!1),[Oe,ke]=$.useState(!1),Ae=({offsetWidth:e})=>{Te(e)},je=e=>{ie(e),J!==e&&Y.onEllipsis?.(e)};$.useEffect(()=>{let e=w.current;if(le&&ye&&e){let t=R4(e);ae!==t&&oe(t)}},[le,ye,d,Se,se,we]),$.useEffect(()=>{let e=w.current;if(typeof IntersectionObserver>`u`||!e||!ye||!fe)return;let t=new IntersectionObserver(()=>{ce(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[ye,fe]);let Me=$.useMemo(()=>{if(!(!le||he))return[M.text,d,_,ve.title].find(z4)},[le,he,_,ve.title,be]);if(N)return $.createElement(T4,{value:M.text??(typeof d==`string`?d:``),onSave:B,onCancel:V,onEnd:M.onEnd,prefixCls:O,className:r,style:i,direction:k,component:g,maxLength:M.maxLength,autoSize:M.autoSize,enterIcon:M.enterIcon,classNames:E,styles:D});let Ne=()=>{let{expandable:e,symbol:t}=Y;return e?$.createElement(`button`,{type:`button`,key:`expand`,className:X(`${O}-${ue?`collapse`:`expand`}`,E.action),style:D.action,onClick:e=>Ce(e,{expanded:!ue}),"aria-label":ue?C.collapse:C?.expand},ki(t)?t(ue):t):null},Fe=()=>{if(!j)return;let{icon:e,tooltip:t,tabIndex:n}=M,r=Je(t)[0]||C?.edit,i=typeof r==`string`?r:``;return I.includes(`icon`)?$.createElement(Ny,{key:`edit`,title:t===!1?``:r},$.createElement(`button`,{type:`button`,ref:T,className:X(`${O}-edit`,E.action),style:D.action,onClick:z,"aria-label":i,tabIndex:n},e||$.createElement(Ie,{role:`button`}))):null},Le=()=>H?$.createElement(B4,{key:`copy`,...U,prefixCls:O,copied:G,locale:C,onCopy:K,loading:ee,iconOnly:!Ti(d),className:E.action,style:D.action}):null,Re=e=>{let t=e&&Ne(),n=Fe(),r=Le();return!t&&!n&&!r?null:$.createElement(`span`,{key:`operations`,className:X(`${O}-actions`,E.actions,{[`${O}-actions-start`]:W===`start`}),style:D.actions,onMouseEnter:()=>De(!0),onMouseLeave:()=>De(!1)},t,n,r)},ze=e=>[e&&!ue&&$.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},$4),Y.suffix];return $.createElement(jt,{onResize:Ae,disabled:!fe},n=>$.createElement(Z4,{tooltipProps:ve,enableEllipsis:fe,isEllipsis:be,open:Oe&&!Ee},$.createElement(P4,{onMouseEnter:e=>{ke(!0),y?.(e)},onMouseLeave:e=>{ke(!1),b?.(e)},className:X({[`${O}-${c}`]:c,[`${O}-disabled`]:l,[`${O}-ellipsis`]:le,[`${O}-ellipsis-single-line`]:xe,[`${O}-ellipsis-multiple-line`]:Se,[`${O}-link`]:g===`a`},r),classNames:E,styles:D,prefixCls:O,style:{...i,WebkitLineClamp:Se?pe:void 0},component:g,ref:S(n,w,t),direction:k,onClick:I.includes(`text`)?z:void 0,"aria-label":Me?.toString(),title:_,...A},$.createElement(X4,{enableMeasure:fe&&!he,text:d,rows:pe,width:we,onEllipsis:je,expanded:ue,measureDeps:[W],miscDeps:[G,ue,ee,j,H,W,C].concat(Lt(e3.map(t=>e[t])))},(t,n)=>Q4(e,$.createElement($.Fragment,null,W===`start`?Re(n):null,t.length>0&&n&&!ue&&Me?$.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,ze(n),W===`start`?null:Re(n)))))))}),n3=$.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:a,...o}=e,s={...o,rel:r===void 0&&o.target===`_blank`?`noopener noreferrer`:r};return $.createElement(t3,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),r3=$.forwardRef((e,t)=>{let{children:n,...r}=e;return $.createElement(t3,{ref:t,...r,component:`div`},n)}),i3=$.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=$.useMemo(()=>Oi(n)?u(n,[`expandable`,`rows`]):n,[n]);return $.createElement(t3,{ref:t,...i,ellipsis:a,component:`span`},r)}),a3=[1,2,3,4,5],o3=$.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=a3.includes(n)?`h${n}`:`h1`;return $.createElement(t3,{ref:t,...i,component:a},r)}),s3=F4;s3.Text=i3,s3.Link=n3,s3.Title=o3,s3.Paragraph=r3;var c3=((e,t)=>{if(e&&t){let n=Array.isArray(t)?t:t.split(`,`),r=e.name||``,i=e.type||``,a=i.replace(/\/.*$/,``);return n.some(e=>{let t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if(t.charAt(0)===`.`){let e=r.toLowerCase(),n=t.toLowerCase(),i=[n];return(n===`.jpg`||n===`.jpeg`)&&(i=[`.jpg`,`.jpeg`]),i.some(t=>e.endsWith(t))}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,``):i===t?!0:/^\w+$/.test(t)?($e(!1,`Upload takes an invalidate 'accept' type '${t}'.Skip for check.`),!0):!1})}return!0});function l3(e,t){let n=`cannot ${e.method} ${e.action} ${t.status}'`,r=Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function u3(e){let t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function d3(e){let 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)});let n=new FormData;e.data&&Object.keys(e.data).forEach(t=>{let r=e.data[t];if(Array.isArray(r)){r.forEach(e=>{n.append(`${t}[]`,e)});return}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(l3(e,t),u3(t)):e.onSuccess(u3(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&`withCredentials`in t&&(t.withCredentials=!0);let r=e.headers||{};return r[`X-Requested-With`]!==null&&t.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),Object.keys(r).forEach(e=>{r[e]!==null&&t.setRequestHeader(e,r[e])}),t.send(n),{abort(){t.abort()}}}var f3=async(e,t)=>{let n=[],r=[];e.forEach(e=>r.push(e.webkitGetAsEntry()));async function i(e){let t=e.createReader(),n=[];for(;;){let e=await new Promise(e=>{t.readEntries(e,()=>e([]))}),r=e.length;if(!r)break;for(let t=0;t<r;t++)n.push(e[t])}return n}async function a(e){return new Promise(n=>{e.file(r=>{t(r)?(e.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=e.fullPath.replace(/^\//,``),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),n(r)):n(null)})})}let o=async(e,t)=>{if(e){if(e.path=t||``,e.isFile){let t=await a(e);t&&n.push(t)}else if(e.isDirectory){let t=await i(e);r.push(...t)}}},s=0;for(;s<r.length;)await o(r[s]),s++;return n},p3=+new Date,m3=0;function h3(){return`rc-upload-${p3}-${++m3}`}function g3(){return g3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g3.apply(this,arguments)}var _3=class extends $.Component{constructor(...e){super(...e),Z(this,`state`,{uid:h3()}),Z(this,`reqs`,{}),Z(this,`fileInput`,void 0),Z(this,`_isMounted`,void 0),Z(this,`filterFile`,(e,t=!1)=>{let{accept:n,directory:r}=this.props,i,a;if(typeof n==`string`)a=n;else{let{filter:e,format:t}=n||{};a=t,i=e===`native`?()=>!0:e}return(i||(r||t?e=>c3(e,a):()=>!0))(e)}),Z(this,`onChange`,e=>{let{files:t}=e.target,n=[...t].filter(e=>this.filterFile(e));this.uploadFiles(n),this.reset()}),Z(this,`onClick`,e=>{let t=this.fileInput;if(!t)return;let n=e.target,{onClick:r}=this.props;n&&n.tagName===`BUTTON`&&(t.parentNode.focus(),n.blur()),t.click(),r&&r(e)}),Z(this,`onKeyDown`,e=>{e.key===`Enter`&&this.onClick(e)}),Z(this,`onDataTransferFiles`,async(e,t)=>{let{multiple:n,directory:r}=this.props,i=[...e.items||[]],a=[...e.files||[]];if((a.length>0||i.some(e=>e.kind===`file`))&&t?.(),r)a=await f3(Array.prototype.slice.call(i),this.filterFile),this.uploadFiles(a);else{let e=[...a].filter(e=>this.filterFile(e,!0));n===!1&&(e=a.slice(0,1)),this.uploadFiles(e)}}),Z(this,`onFilePaste`,async e=>{let{pastable:t}=this.props;if(t&&e.type===`paste`){let t=e.clipboardData;return this.onDataTransferFiles(t,()=>{e.preventDefault()})}}),Z(this,`onFileDragOver`,e=>{e.preventDefault()}),Z(this,`onFileDrop`,async e=>{if(e.preventDefault(),e.type===`drop`){let t=e.dataTransfer;return this.onDataTransferFiles(t)}}),Z(this,`uploadFiles`,e=>{let t=[...e],n=t.map(e=>(e.uid=h3(),this.processFile(e,t)));Promise.all(n).then(e=>{let{onBatchStart:t}=this.props;t?.(e.map(({origin:e,parsedFile:t})=>({file:e,parsedFile:t}))),e.filter(e=>e.parsedFile!==null).forEach(e=>{this.post(e)})})}),Z(this,`processFile`,async(e,t)=>{let{beforeUpload:n}=this.props,r=e;if(n){try{r=await n(e,t)}catch{r=!1}if(r===!1)return{origin:e,parsedFile:null,action:null,data:null}}let{action:i}=this.props,a;a=typeof i==`function`?await i(e):i;let{data:o}=this.props,s;s=typeof o==`function`?await o(e):o;let c=(typeof r==`object`||typeof r==`string`)&&r?r:e,l;l=c instanceof File?c:new File([c],e.name,{type:e.type});let u=l;return u.uid=e.uid,{origin:e,data:s,parsedFile:u,action:a}}),Z(this,`saveFileInput`,e=>{this.fileInput=e})}componentDidMount(){this._isMounted=!0;let{pastable:e}=this.props;e&&document.addEventListener(`paste`,this.onFilePaste)}componentWillUnmount(){this._isMounted=!1,this.abort(),document.removeEventListener(`paste`,this.onFilePaste)}componentDidUpdate(e){let{pastable:t}=this.props;t&&!e.pastable?document.addEventListener(`paste`,this.onFilePaste):!t&&e.pastable&&document.removeEventListener(`paste`,this.onFilePaste)}post({data:e,origin:t,action:n,parsedFile:r}){if(!this._isMounted)return;let{onStart:i,customRequest:a,name:o,headers:s,withCredentials:c,method:l}=this.props,{uid:u}=t,d=a||d3,f={action:n,filename:o,data:e,file:r,headers:s,withCredentials:c,method:l||`post`,onProgress:e=>{let{onProgress:t}=this.props;t?.(e,r)},onSuccess:(e,t)=>{let{onSuccess:n}=this.props;n?.(e,r,t),delete this.reqs[u]},onError:(e,t)=>{let{onError:n}=this.props;n?.(e,t,r),delete this.reqs[u]}};i(t),this.reqs[u]=d(f,{defaultRequest:d3})}reset(){this.setState({uid:h3()})}abort(e){let{reqs:t}=this;if(e){let n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(e=>{t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}render(){let{component:e,prefixCls:t,className:n,classNames:r={},disabled:i,id:a,name:o,style:s,styles:c={},multiple:l,accept:u,capture:d,children:f,directory:p,openFileDialogOnClick:m,onMouseEnter:h,onMouseLeave:g,hasControlInside:_,...v}=this.props,y=typeof u==`string`?u:u?.format,b=X(t,{[`${t}-disabled`]:i,[n]:n}),x=p?{directory:`directory`,webkitdirectory:`webkitdirectory`}:{},S=i?{}:{onClick:m?this.onClick:()=>{},onKeyDown:m?this.onKeyDown:()=>{},onMouseEnter:h,onMouseLeave:g,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:_?void 0:`0`};return $.createElement(e,g3({},S,{className:b,role:_?void 0:`button`,style:s}),$.createElement(`input`,g3({},V(v,{aria:!0,data:!0}),{id:a,name:o,disabled:i,type:`file`,ref:this.saveFileInput,onClick:e=>e.stopPropagation(),key:this.state.uid,style:{display:`none`,...c.input},className:r.input,accept:y},x,{multiple:l,onChange:this.onChange},d==null?{}:{capture:d})),f)}};function v3(){return v3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v3.apply(this,arguments)}function y3(){}var b3=class extends $.Component{constructor(...e){super(...e),Z(this,`uploader`,void 0),Z(this,`saveUploader`,e=>{this.uploader=e})}abort(e){this.uploader.abort(e)}render(){return $.createElement(_3,v3({},this.props,{ref:this.saveUploader}))}};Z(b3,`defaultProps`,{component:`span`,prefixCls:`rc-upload`,data:{},headers:{},name:`file`,multipart:!1,onStart:y3,onError:y3,onSuccess:y3,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var x3=b3,S3=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:`relative`,width:`100%`,height:`100%`,textAlign:`center`,background:e.colorFillAlter,border:`${Q(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:`${Q(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:`table-cell`,verticalAlign:`middle`},[`
296
+ &:not(${t}-disabled):hover,
297
+ &-hover:not(${t}-disabled)
298
+ `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${Q(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
299
+ p${t}-text,
300
+ p${t}-hint
301
+ `]:{color:e.colorTextDisabled}}}}}},C3=e=>{let{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,motionDurationSlow:a,calc:o}=e,s=`${t}-list-item`,c=`${s}-actions`,l=`${s}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:{...fr(),lineHeight:e.lineHeight,[s]:{position:`relative`,height:o(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:`flex`,alignItems:`center`,transition:`background-color ${a}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:{...lr,padding:`0 ${Q(e.paddingXS)}`,lineHeight:i,flex:`auto`,transition:`all ${a}`},[c]:{whiteSpace:`nowrap`,[l]:{opacity:0},"@media (hover: none), (pointer: coarse)":{[l]:{opacity:1}},[n]:{color:e.actionsColor,transition:`all ${a}`},[`
302
+ ${l}:focus-visible,
303
+ &.picture ${l}
304
+ `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${s}-progress`]:{position:`absolute`,bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:`100%`,paddingInlineStart:o(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:`none`,"> div":{margin:0}}},[`${s}:hover ${l}`]:{opacity:1},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${n}`]:{color:e.colorError},[c]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:[`opacity`,`height`].map(e=>`${e} ${a}`).join(`, `),"&::before":{display:`table`,width:0,height:0,content:`""`}}}}}},w3=e=>{let{componentCls:t}=e,n=new at(`uploadAnimateInlineIn`,{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new at(`uploadAnimateInlineOut`,{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:`forwards`},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:nu(e)},n,r]},T3=e=>{let{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[`
305
+ ${o}${o}-picture,
306
+ ${o}${o}-picture-card,
307
+ ${o}${o}-picture-circle
308
+ `]:{[s]:{position:`relative`,height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:`transparent`},[`${s}-thumbnail`]:{...lr,width:r,height:r,lineHeight:Q(a(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`}},[`${s}-progress`]:{bottom:a(e.fontSize).mul(e.lineHeight).div(2).add(i).equal(),width:`calc(100% - ${Q(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${Ae[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Ae.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:`dashed`,[`${s}-name`]:{marginBottom:i}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:`50%`}}}}},E3=e=>{let{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`,c=e.uploadPicCardSize;return{[`
309
+ ${t}-wrapper${t}-picture-card-wrapper,
310
+ ${t}-wrapper${t}-picture-circle-wrapper
311
+ `]:{...fr(),display:`block`,[`${t}${t}-select`]:{width:c,height:c,textAlign:`center`,verticalAlign:`top`,backgroundColor:e.colorFillAlter,border:`${Q(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}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:`flex`,flexWrap:`wrap`,"&:not(:empty)":{minHeight:c},"@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:`inline-block`,width:c,height:c,verticalAlign:`top`},"&::after":{display:`none`},"&::before":{display:`none`},[s]:{height:`100%`,margin:0,"&::before":{position:`absolute`,zIndex:1,width:`calc(100% - ${Q(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Q(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`" "`}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:`absolute`,insetInlineStart:0,zIndex:10,width:`100%`,whiteSpace:`nowrap`,textAlign:`center`,opacity:0,transition:`all ${e.motionDurationSlow}`,[`
312
+ ${n}-eye,
313
+ ${n}-download,
314
+ ${n}-delete
315
+ `]:{zIndex:10,width:r,margin:`0 ${Q(e.marginXXS)}`,fontSize:r,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:`baseline`}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:`static`,display:`block`,width:`100%`,height:`100%`,objectFit:`contain`},[`${s}-name`]:{display:`none`,textAlign:`center`},[`${s}-file + ${s}-name`]:{position:`absolute`,bottom:e.margin,display:`block`,width:`calc(100% - ${Q(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:`none`}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${Q(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}},[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:`50%`}}}},D3=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:`rtl`}}},O3=e=>{let{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:{...ur(e),[t]:{outline:0,"input[type='file']":{cursor:`pointer`}},[`${t}-select`]:{display:`inline-block`},[`${t}-hidden`]:{display:`none`},[`${t}-disabled`]:{color:n,cursor:`not-allowed`}}}},k3=yr(`Upload`,e=>{let{fontSizeHeading3:t,marginXS:n,lineWidth:r,pictureCardSize:i,calc:a}=e,o=wn(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:i});return[O3(o),S3(o),T3(o),E3(o),C3(o),w3(o),D3(o),Zl(o)]},e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}));function A3(e){return{...e,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e}}function j3(e,t){let n=Lt(t),r=n.findIndex(({uid:t})=>t===e.uid);return r===-1?n.push(e):n[r]=e,n}function M3(e,t){let n=e.uid===void 0?`name`:`uid`;return t.filter(t=>t[n]===e[n])[0]}function N3(e,t){let n=e.uid===void 0?`name`:`uid`,r=t.filter(t=>t[n]!==e[n]);return r.length===t.length?null:r}var P3=(e=``)=>{let t=e.split(`/`),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[``])[0]},F3=e=>e.indexOf(`image/`)===0,I3=[`.avif`,`.bmp`,`.dpg`,`.gif`,`.heic`,`.heif`,`.ico`,`.jfif`,`.jpg`,`.jpeg`,`.png`,`.svg`,`.tif`,`.tiff`,`.webp`],L3=e=>{if(e.type&&!e.thumbUrl)return F3(e.type);let t=e.thumbUrl||e.url||``,n=P3(t);return/^data:image\//.test(t)||I3.includes(n?.toLowerCase()||``)?!0:!(/^data:/.test(t)||n)},R3=200;function z3(e){return new Promise(t=>{if(!e.type||!F3(e.type)){t(``);return}let n=document.createElement(`canvas`);n.width=R3,n.height=R3,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${R3}px; height: ${R3}px; z-index: 9999; display: none;`,document.body.appendChild(n);let r=n.getContext(`2d`),i=new Image;if(i.onload=()=>{let{width:e,height:a}=i,o=R3,s=R3,c=0,l=0;e>a?(s=R3/e*a,l=-(s-o)/2):(o=R3/a*e,c=-(o-s)/2),r.drawImage(i,c,l,o,s);let u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(u)},i.crossOrigin=`anonymous`,e.type.startsWith(`image/svg+xml`)){let t=new FileReader;t.onload=()=>{t.result&&typeof t.result==`string`&&(i.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith(`image/gif`)){let n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}var B3=$.forwardRef(({prefixCls:e,className:t,style:n,classNames:r,styles:i,locale:a,listType:o,file:s,items:c,progress:l,iconRender:u,actionIconRender:d,itemRender:f,isImgUrl:p,showPreviewIcon:m,showRemoveIcon:h,showDownloadIcon:g,previewIcon:_,removeIcon:v,downloadIcon:y,extra:b,onPreview:x,onDownload:S,onClose:C},w)=>{let{status:T}=s,[E,D]=$.useState(T);$.useEffect(()=>{T!==`removed`&&D(T)},[T]);let[O,k]=$.useState(!1);$.useEffect(()=>{let e=setTimeout(()=>{k(!0)},300);return()=>{clearTimeout(e)}},[]);let A=u(s),j=$.createElement(`div`,{className:`${e}-icon`},A);if(o===`picture`||o===`picture-card`||o===`picture-circle`)if(E===`uploading`||!s.thumbUrl&&!s.url){let t=X(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:E!==`uploading`});j=$.createElement(`div`,{className:t},A)}else{let t=p?.(s)?$.createElement(`img`,{src:s.thumbUrl||s.url,alt:s.name,className:`${e}-list-item-image`,crossOrigin:s.crossOrigin}):A,n=X(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:p&&!p(s)});j=$.createElement(`a`,{className:n,onClick:e=>x(s,e),href:s.url||s.thumbUrl,target:`_blank`,rel:`noopener noreferrer`},t)}let M=X(`${e}-list-item`,`${e}-list-item-${E}`,r?.item),N=typeof s.linkProps==`string`?JSON.parse(s.linkProps):s.linkProps,P=(ki(h)?h(s):h)?d((ki(v)?v(s):v)||$.createElement(ue,null),()=>C(s),e,a.removeFile,!0):null,F=(ki(g)?g(s):g)&&E===`done`?d((ki(y)?y(s):y)||$.createElement(Re,null),()=>S(s),e,a.downloadFile):null,I=o!==`picture-card`&&o!==`picture-circle`&&$.createElement(`span`,{key:`download-delete`,className:X(`${e}-list-item-actions`,{picture:o===`picture`})},F,P),L=ki(b)?b(s):b,R=L&&$.createElement(`span`,{className:`${e}-list-item-extra`},L),z=X(`${e}-list-item-name`),B=s.url?$.createElement(`a`,{key:`view`,target:`_blank`,rel:`noopener noreferrer`,className:z,title:s.name,...N,href:s.url,onClick:e=>x(s,e)},s.name,R):$.createElement(`span`,{key:`view`,className:z,onClick:e=>x(s,e),title:s.name},s.name,R),V=(ki(m)?m(s):m)&&(s.url||s.thumbUrl)?$.createElement(`a`,{href:s.url||s.thumbUrl,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>x(s,e),title:a.previewFile},ki(_)?_(s):_||$.createElement(Ue,null)):null,H=(o===`picture-card`||o===`picture-circle`)&&E!==`uploading`&&$.createElement(`span`,{className:`${e}-list-item-actions`},V,E===`done`&&F,P),{getPrefixCls:U}=$.useContext(Vt),W=U(),G=$.createElement(`div`,{className:M,style:i?.item},j,B,I,H,O&&$.createElement(wi,{motionName:`${W}-fade`,visible:E===`uploading`,motionDeadline:2e3},({className:t})=>{let n=`percent`in s?$.createElement(fJ,{type:`line`,percent:s.percent,"aria-label":s[`aria-label`],"aria-labelledby":s[`aria-labelledby`],...l}):null;return $.createElement(`div`,{className:X(`${e}-list-item-progress`,t)},n)})),ee=s.response&&typeof s.response==`string`?s.response:s.error?.statusText||s.error?.message||a.uploadError,K=E===`error`?$.createElement(Ny,{title:ee,getPopupContainer:e=>e.parentNode},G):G;return $.createElement(`div`,{className:X(`${e}-list-item-container`,t),style:n,ref:w},f?f(K,s,c,{download:S.bind(null,s),preview:x.bind(null,s),remove:C.bind(null,s)}):K)}),V3=$.forwardRef((e,t)=>{let{listType:n=`text`,previewFile:r=z3,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:c,isImageUrl:l=L3,prefixCls:d,items:f=[],showPreviewIcon:p=!0,showRemoveIcon:m=!0,showDownloadIcon:h=!1,removeIcon:g,previewIcon:_,downloadIcon:v,extra:y,progress:b={size:[-1,2],showInfo:!1},appendAction:x,appendActionVisible:S=!0,itemRender:C,disabled:w,classNames:T,styles:E}=e,[,D]=nc(),[O,k]=$.useState(!1),A=[`picture-card`,`picture-circle`].includes(n);$.useEffect(()=>{n.startsWith(`picture`)&&(f||[]).forEach(e=>{!(e.originFileObj instanceof File||e.originFileObj instanceof Blob)||e.thumbUrl!==void 0||(e.thumbUrl=``,r?.(e.originFileObj).then(t=>{e.thumbUrl=t||``,D()}))})},[n,f,r]),$.useEffect(()=>{k(!0)},[]);let j=(e,t)=>{if(i)return t?.preventDefault(),i(e)},M=e=>{ki(a)?a(e):e.url&&window.open(e.url)},N=e=>{o?.(e)},P=e=>{if(c)return c(e,n);let t=e.status===`uploading`;if(n.startsWith(`picture`)){let r=n===`picture`?$.createElement(Ne,null):s.uploading,i=l?.(e)?$.createElement(Oe,null):$.createElement(ye,null);return t?r:i}return t?$.createElement(Ne,null):$.createElement(Fe,null)},F=(e,t,n,r,i)=>{let a={type:`text`,size:`small`,title:r,onClick:n=>{t(),$.isValidElement(e)&&e.props.onClick?.(n)},className:`${n}-list-item-action`,disabled:i?w:!1};return $.isValidElement(e)?$.createElement(of,{...a,icon:Io(e,{...e.props,onClick:()=>{}})}):$.createElement(of,{...a},$.createElement(`span`,null,e))};$.useImperativeHandle(t,()=>({handlePreview:j,handleDownload:M}));let{getPrefixCls:I}=$.useContext(Vt),L=I(`upload`,d),R=I(),z=X(`${L}-list`,`${L}-list-${n}`,T?.list),B=$.useMemo(()=>u(yl(R),[`onAppearEnd`,`onEnterEnd`,`onLeaveEnd`]),[R]),V={...A?{}:B,motionDeadline:2e3,motionName:`${L}-${A?`animate-inline`:`animate`}`,keys:Lt(f.map(e=>({key:e.uid,file:e}))),motionAppear:O};return $.createElement(`div`,{className:z,style:E?.list},$.createElement(Ci,{...V,component:!1},({key:e,file:t,className:r,style:i})=>$.createElement(B3,{key:e,locale:s,prefixCls:L,className:r,style:i,classNames:T,styles:E,file:t,items:f,progress:b,listType:n,isImgUrl:l,showPreviewIcon:p,showRemoveIcon:m,showDownloadIcon:h,removeIcon:g,previewIcon:_,downloadIcon:v,extra:y,iconRender:P,actionIconRender:F,itemRender:C,onPreview:j,onDownload:M,onClose:N})),x&&$.createElement(wi,{...V,visible:S,forceRender:!0},({className:e,style:t})=>Io(x,n=>({className:X(n.className,e),style:{...t,pointerEvents:e?`none`:void 0,...n.style}}))))}),H3=`__LIST_IGNORE_${Date.now()}__`,U3=$.forwardRef((e,t)=>{let n=Wt(`upload`),{fileList:r,defaultFileList:i,onRemove:a,showUploadList:o=!0,listType:s=`text`,onPreview:c,onDownload:l,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:m,iconRender:h,isImageUrl:g,progress:_,prefixCls:y,className:b,type:x=`select`,children:S,style:C,itemRender:w,maxCount:T,data:E={},multiple:D=!1,hasControlInside:O=!0,action:k=``,accept:A,supportServerRender:j=!0,rootClassName:M,styles:N,classNames:P}=e,F=$.useContext(Vo),I=p??F,L=e.customRequest||n.customRequest,R={...n.progress,..._},z=qs(A,n.accept,``),[B,V]=v(i,r),H=B||[],[U,W]=$.useState(`drop`),G=$.useRef(null),ee=$.useRef(null);$.useMemo(()=>{let e=Date.now();(r||[]).forEach((t,n)=>{!t.uid&&!Object.isFrozen(t)&&(t.uid=`__AUTO__${e}_${n}__`)})},[r]);let K=(e,t,n)=>{let r=Lt(t),i=!1;T===1?r=r.slice(-1):T&&(i=r.length>T,r=r.slice(0,T)),(0,Kt.flushSync)(()=>{V(r)});let a={file:e,fileList:r};n&&(a.event=n),(!i||e.status===`removed`||r.some(t=>t.uid===e.uid))&&(0,Kt.flushSync)(()=>{u?.(a)})},q=async(t,n)=>{let{beforeUpload:r}=e,i=t;if(r){let e=await r(t,n);if(e===!1)return!1;if(delete t[H3],e===H3)return Object.defineProperty(t,H3,{value:!0,configurable:!0}),!1;Oi(e)&&(i=e)}return i},te=e=>{let t=e.filter(e=>!e.file[H3]);if(!t.length)return;let n=t.map(e=>A3(e.file)),r=Lt(H);n.forEach(e=>{r=j3(e,r)}),n.forEach((e,n)=>{let i=e;if(t[n].parsedFile)e.status=`uploading`;else{let{originFileObj:t}=e,n;try{n=new File([t],t.name,{type:t.type})}catch{n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=new Date().getTime()}n.uid=e.uid,i=n}K(i,r)})},ne=(e,t,n)=>{try{typeof e==`string`&&(e=JSON.parse(e))}catch{}if(!M3(t,H))return;let r=A3(t);r.status=`done`,r.percent=100,r.response=e,r.xhr=n,K(r,j3(r,H))},re=(e,t)=>{if(!M3(t,H))return;let n=A3(t);n.status=`uploading`,n.percent=e.percent,K(n,j3(n,H),e)},J=(e,t,n)=>{if(!M3(n,H))return;let r=A3(n);r.error=e,r.response=t,r.status=`error`,K(r,j3(r,H))},ie=e=>{let t;Promise.resolve(ki(a)?a(e):a).then(n=>{if(n===!1)return;let r=N3(e,H);r&&(t={...e,status:`removed`},H?.forEach(e=>{let n=t.uid===void 0?`name`:`uid`;e[n]===t[n]&&!Object.isFrozen(e)&&(e.status=`removed`)}),G.current?.abort(t),K(t,r))})},ae=e=>{W(e.type),e.type===`drop`&&d?.(e)};$.useImperativeHandle(t,()=>({onBatchStart:te,onSuccess:ne,onProgress:re,onError:J,fileList:H,upload:G.current,nativeElement:ee.current}));let{getPrefixCls:oe,direction:se,className:ce,style:le,classNames:Y,styles:ue}=Wt(`upload`),de=oe(`upload`,y),fe={...e,listType:s,showUploadList:o,type:x,multiple:D,hasControlInside:O,supportServerRender:j,disabled:I},[pe,me]=zi([Y,P],[ue,N],{props:fe}),he={onBatchStart:te,onError:J,onProgress:re,onSuccess:ne,...e,customRequest:L,data:E,multiple:D,action:k,accept:z,supportServerRender:j,prefixCls:de,disabled:I,beforeUpload:q,onChange:void 0,hasControlInside:O};delete he.className,delete he.style,(!S||I)&&delete he.id;let ge=`${de}-wrapper`,[_e,ve]=k3(de,ge),[ye]=ja(`Upload`,wa.Upload),{showRemoveIcon:be,showPreviewIcon:xe,showDownloadIcon:Se,removeIcon:Ce,previewIcon:we,downloadIcon:Te,extra:Ee}=typeof o==`boolean`?{}:o,De=be===void 0?!I:be,Oe=(e,t)=>o?$.createElement(V3,{classNames:pe,styles:me,prefixCls:de,listType:s,items:H,previewFile:f,onPreview:c,onDownload:l,onRemove:ie,showRemoveIcon:De,showPreviewIcon:xe,showDownloadIcon:Se,removeIcon:Ce,previewIcon:we,downloadIcon:Te,iconRender:h,extra:Ee,locale:{...ye,...m},isImageUrl:g,progress:R,appendAction:e,appendActionVisible:t,itemRender:w,disabled:I}):e,ke=X(ge,b,M,_e,ve,ce,pe.root,{[`${de}-rtl`]:se===`rtl`,[`${de}-picture-card-wrapper`]:s===`picture-card`,[`${de}-picture-circle-wrapper`]:s===`picture-circle`}),Ae={...me.root},je={...le,...C};if(x===`drag`){let e=X(_e,de,`${de}-drag`,{[`${de}-drag-uploading`]:H.some(e=>e.status===`uploading`),[`${de}-drag-hover`]:U===`dragover`,[`${de}-disabled`]:I,[`${de}-rtl`]:se===`rtl`},pe.trigger);return $.createElement(`span`,{className:ke,ref:ee,style:Ae},$.createElement(`div`,{className:e,style:{...je,...me.trigger},onDrop:ae,onDragOver:ae,onDragLeave:ae},$.createElement(x3,{...he,ref:G,className:`${de}-btn`},$.createElement(`div`,{className:`${de}-drag-container`},S))),Oe())}let Me=X(de,`${de}-select`,{[`${de}-disabled`]:I,[`${de}-hidden`]:!S},pe.trigger),Ne=$.createElement(`div`,{className:Me,style:{...je,...me.trigger}},$.createElement(x3,{...he,ref:G}));return s===`picture-card`||s===`picture-circle`?$.createElement(`span`,{className:ke,ref:ee,style:Ae},Oe(Ne,!!S)):$.createElement(`span`,{className:ke,ref:ee,style:Ae},Ne,Oe())}),W3=$.forwardRef((e,t)=>{let{style:n,height:r,hasControlInside:i=!1,children:a,...o}=e,s={...n,height:r};return $.createElement(U3,{ref:t,hasControlInside:i,...o,style:s,type:`drag`},a)}),G3=U3;G3.Dragger=W3,G3.LIST_IGNORE=H3;var K3={subtree:!0,childList:!0,attributeFilter:[`style`,`class`]},q3=(e,t,n=K3)=>{$.useEffect(()=>{if(!et()||!e)return;let r,i=Array.isArray(e)?e:[e];return`MutationObserver`in window&&(r=new MutationObserver(t),i.forEach(e=>{r.observe(e,n)})),()=>{r?.takeRecords(),r?.disconnect()}},[n,e])},J3=(e,t,n=1)=>{let r=document.createElement(`canvas`),i=r.getContext(`2d`),a=e*n,o=t*n;return r.setAttribute(`width`,`${a}px`),r.setAttribute(`height`,`${o}px`),i.save(),[i,r,a,o]},Y3=(e,t,n)=>[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)],X3=()=>$.useCallback((e,t,n,r,i,a,o,s)=>{let[c,l,u,d]=J3(r,i,n);if(e instanceof HTMLImageElement)c.drawImage(e,0,0,u,d);else{let{color:t,fontSize:r,fontStyle:o,fontWeight:s,fontFamily:l,textAlign:d}=a,f=Number(r)*n;c.font=`${o} normal ${s} ${f}px/${i}px ${l}`,c.fillStyle=t,c.textAlign=d,c.textBaseline=`top`,GK(e)?.forEach((e,t)=>{c.fillText(e??``,u/2,t*(f+3*n))})}let f=Math.PI/180*Number(t),p=Math.max(r,i),[m,h,g]=J3(p,p,n);m.translate(g/2,g/2),m.rotate(f),u>0&&d>0&&m.drawImage(l,-u/2,-d/2);let _=0,v=0,y=0,b=0,x=u/2,S=d/2;[[0-x,0-S],[0+x,0-S],[0+x,0+S],[0-x,0+S]].forEach(([e,t])=>{let[n,r]=Y3(e,t,f);_=Math.min(_,n),v=Math.max(v,n),y=Math.min(y,r),b=Math.max(b,r)});let C=_+g/2,w=y+g/2,T=v-_,E=b-y,D=o*n,O=s*n,k=(T+D)*2,A=E+O,[j,M]=J3(k,A),N=(e=0,t=0)=>{j.drawImage(h,C,w,T,E,e,t,T,E)};return N(),N(T+D,-E/2-O/2),N(T+D,E/2+O/2),[M.toDataURL(),k/n,A/n]},[]);function Z3(e){let t=$.useRef(!1),n=$.useRef(null),r=J(e);return()=>{t.current||(t.current=!0,r(),n.current=Y(()=>{t.current=!1}))}}function Q3(){let e=$.useRef([null,null]);return(t,n)=>{let r=t.map(e=>e instanceof HTMLElement||Number.isNaN(e)?``:e);return tt(e.current[0],r)||(e.current=[r,n()]),e.current[1]}}function $3(e){return e.replace(/([A-Z])/g,`-$1`).toLowerCase()}function e6(e){return Object.keys(e).map(t=>`${$3(t)}: ${e[t]};`).join(` `)}function t6(){return window.devicePixelRatio||1}var n6=(e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some(t)),e.type===`attributes`&&t(e.target)&&(n=!0),n},r6=()=>{},i6={visibility:`visible !important`},a6=(e,t)=>{let n=$.useRef(new Map),r=J(t??r6);return[(i,a,o)=>{if(o){let s=n.current.get(o);if(!s){let e=document.createElement(`div`);n.current.set(o,e)}let c=n.current.get(o);c.setAttribute(`style`,e6({...e,backgroundImage:`url('${i}')`,backgroundSize:`${Math.floor(a)}px`,...i6})),c.removeAttribute(`class`),c.removeAttribute(`hidden`),c.parentElement!==o&&(s&&t&&r(),o.append(c))}return n.current.get(o)},e=>{let t=n.current.get(e);t&&e&&e.removeChild(t),n.current.delete(e)},e=>Array.from(n.current.values()).includes(e)]};function o6(e,t){return e.size===t.size?e:t}var s6=100,c6=100,l6=1,u6={position:`relative`,overflow:`hidden`},d6=e=>{let{zIndex:t,rotate:n=-22,width:r,height:i,image:a,content:o,font:s={},style:c,className:l,rootClassName:u,gap:d=[s6,c6],offset:f,children:p,inherit:m=!0,onRemove:h}=e,{className:g,style:_}=Wt(`watermark`),v={...u6,..._,...c},[,y]=cr(),b=t??y.zIndexPopupBase-l6,{color:x=y.colorFill,fontSize:S=y.fontSizeLG,fontWeight:C=`normal`,fontStyle:w=`normal`,fontFamily:T=`sans-serif`,textAlign:E=`center`}=s,[D=s6,O=c6]=d,k=D/2,A=O/2,j=f?.[0]??k,M=f?.[1]??A,N=$.useMemo(()=>{let e={zIndex:b,position:`absolute`,left:0,top:0,width:`100%`,height:`100%`,pointerEvents:`none`,backgroundRepeat:`repeat`},t=j-k,n=M-A;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},[b,j,k,M,A]),[P,F]=$.useState(),[I,L]=$.useState(()=>new Set),R=$.useMemo(()=>{let e=P?[P]:[];return[].concat(e,Lt(Array.from(I)))},[P,I]),z=e=>{let t=120,n=64;if(!a&&e.measureText){e.font=`${Number(S)}px ${T}`;let r=GK(o),i=r.map(t=>{let n=e.measureText(t);return[n.width,n.fontBoundingBoxAscent+n.fontBoundingBoxDescent]});t=Math.ceil(Math.max.apply(Math,Lt(i.map(e=>e[0])))),n=Math.ceil(Math.max.apply(Math,Lt(i.map(e=>e[1]))))*r.length+(r.length-1)*3}return[r??t,i??n]},B=X3(),V=Q3(),[H,U]=$.useState(null),W=Z3(()=>{let e=document.createElement(`canvas`).getContext(`2d`);if(e){let t=t6(),[r,i]=z(e),s=e=>{let a=[e||``,n,t,r,i,{color:x,fontSize:S,fontStyle:w,fontWeight:C,fontFamily:T,textAlign:E},D,O],[o,s]=V(a,()=>B.apply(void 0,a));U([o,s])};if(a){let e=new Image;e.onload=()=>{s(e)},e.onerror=()=>{s(o)},e.crossOrigin=`anonymous`,e.referrerPolicy=`no-referrer`,e.src=a}else s(o)}}),[G,ee,K]=a6(N,h);(0,$.useEffect)(()=>{H&&R.forEach(e=>{G(H[0],H[1],e)})},[H,R]),q3(R,J(e=>{e.forEach(e=>{if(n6(e,K))W();else if(e.target===P&&e.attributeName===`style`){let e=Object.keys(u6);for(let t=0;t<e.length;t+=1){let n=e[t],r=v[n],i=P.style[n];r&&r!==i&&(P.style[n]=r)}}})})),(0,$.useEffect)(W,[n,b,r,i,a,o,x,S,C,w,T,E,D,O,j,M]);let q=$.useMemo(()=>({add:e=>{L(t=>{let n=new Set(t);return n.add(e),o6(t,n)})},remove:e=>{ee(e),L(t=>{let n=new Set(t);return n.delete(e),o6(t,n)})}}),[]),te=m?$.createElement(Xm.Provider,{value:q},p):p;return $.createElement(`div`,{ref:F,className:X(l,g,u),style:v},te)},f6=e({Affix:()=>Nr,Alert:()=>Xi,Anchor:()=>gs,App:()=>ig,AutoComplete:()=>Wv,Avatar:()=>Wy,BackTop:()=>Jy,Badge:()=>pb,BorderBeam:()=>kb,Breadcrumb:()=>YS,Button:()=>XS,Calendar:()=>EP,Card:()=>RF,Carousel:()=>eL,Cascader:()=>wR,Checkbox:()=>kR,Col:()=>RR,Collapse:()=>Od,ColorPicker:()=>DV,ConfigProvider:()=>ss,DatePicker:()=>JV,Descriptions:()=>cH,Divider:()=>UR,Drawer:()=>jH,Dropdown:()=>HH,Empty:()=>gv,Flex:()=>nU,FloatButton:()=>mU,Form:()=>$U,Grid:()=>LR,Image:()=>JW,Input:()=>uG,InputNumber:()=>Vz,Layout:()=>yG,List:()=>yK,Masonry:()=>TK,Mentions:()=>ZK,Menu:()=>MS,Modal:()=>hq,Pagination:()=>WG,Popconfirm:()=>Nq,Popover:()=>Vy,Progress:()=>fJ,QRCode:()=>RJ,Radio:()=>SN,Rate:()=>QJ,Result:()=>dY,Row:()=>fY,Segmented:()=>rz,Select:()=>Lv,Skeleton:()=>Jm,Slider:()=>nV,Space:()=>BH,Spin:()=>dK,Splitter:()=>kY,Statistic:()=>VY,Steps:()=>TX,Switch:()=>PX,Table:()=>Q1,Tabs:()=>wF,Tag:()=>d0,TimePicker:()=>T0,Timeline:()=>P0,Tooltip:()=>Ny,Tour:()=>o2,Transfer:()=>I2,Tree:()=>Y$,TreeSelect:()=>h4,Typography:()=>s3,Upload:()=>G3,Watermark:()=>d6,message:()=>fq,notification:()=>kq,theme:()=>x0,unstableSetRender:()=>p6,version:()=>Rn}),p6=()=>{};export{f6 as t};